@pod-os/elements 0.22.2-189be95.0 → 0.22.2-1df2b92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/elements.cjs.js +1 -1
- package/dist/cjs/ion-card_31.cjs.entry.js +5 -2
- package/dist/cjs/ion-card_31.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/pos-navigation-bar/pos-navigation-bar.css +5 -10
- package/dist/collection/components/pos-navigation-bar/pos-navigation-bar.js +10 -1
- package/dist/collection/components/pos-navigation-bar/pos-navigation-bar.js.map +1 -1
- package/dist/components/pos-navigation-bar2.js +6 -3
- package/dist/components/pos-navigation-bar2.js.map +1 -1
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/elements.esm.js.map +1 -1
- package/dist/elements/{p-d6628653.entry.js → p-764e330c.entry.js} +2 -2
- package/dist/elements/{p-d6628653.entry.js.map → p-764e330c.entry.js.map} +1 -1
- package/dist/esm/elements.js +1 -1
- package/dist/esm/ion-card_31.entry.js +5 -2
- package/dist/esm/ion-card_31.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/pos-navigation-bar/pos-navigation-bar.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as e,H as r,d as i,e as n,f as o,w as s,i as a,j as c,k as l}from"./p-7a6a7690.js";import{i as d,c as h,d as b,a as u,r as f}from"./p-25270f1a.js";import{o as p,c as g,h as m}from"./p-669fab6c.js";import{g as v,c as y}from"./p-866a6047.js";import{i as w}from"./p-4d0cb38d.js";import{a as k,c as x,b as z,s as C,d as _}from"./p-0ee8b7a7.js";import{s as S,B as j}from"./p-4ccc1b59.js";import{P as L,L as I}from"./p-c984fc73.js";import{s as P}from"./p-f6671856.js";import"./p-98c00bd2.js";import{t as X}from"./p-278bf69e.js";import{s as T}from"./p-182f722d.js";import"./p-7efd6867.js";import"./p-7a33ba37.js";import"./p-8206b1f1.js";import"./p-d6769f21.js";const E=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:0.875rem;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}:host(.ion-activated){transform:scale3d(0.97, 0.97, 1)}";const O=E;const M=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:0.875rem;box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}";const U=M;const A=class{constructor(e){t(this,e);this.inheritedAriaAttributes={};this.color=undefined;this.button=false;this.type="button";this.disabled=false;this.download=undefined;this.href=undefined;this.rel=undefined;this.routerDirection="forward";this.routerAnimation=undefined;this.target=undefined}componentWillLoad(){this.inheritedAriaAttributes=d(this.el,["aria-label"])}isClickable(){return this.href!==undefined||this.button}renderCard(t){const r=this.isClickable();if(!r){return[e("slot",null)]}const{href:i,routerAnimation:n,routerDirection:o,inheritedAriaAttributes:s}=this;const a=r?i===undefined?"button":"a":"div";const c=a==="button"?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target};return e(a,Object.assign({},c,s,{class:"card-native",part:"native",disabled:this.disabled,onClick:t=>p(i,t,o,n)}),e("slot",null),r&&t==="md"&&e("ion-ripple-effect",null))}render(){const t=v(this);return e(r,{key:"b92792294360fd974324b31ed2d3db00d3e2f8cd",class:g(this.color,{[t]:true,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(t))}get el(){return i(this)}};A.style={ios:O,md:U};const D="ion-card-content{display:block;position:relative}.card-content-ios{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;font-size:1rem;line-height:1.4}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem}ion-card-header+.card-content-ios{padding-top:0}";const B=D;const R="ion-card-content{display:block;position:relative}.card-content-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:13px;padding-bottom:13px;font-size:0.875rem;line-height:1.5}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}";const $=R;const W=class{constructor(e){t(this,e)}render(){const t=v(this);return e(r,{key:"dd95806f042fcd124b18126679f671be6e32a021",class:{[t]:true,[`card-content-${t}`]:true}})}};W.style={ios:B,md:$};const F=":host{--background:transparent;--color:inherit;display:flex;position:relative;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:16px;flex-direction:column-reverse}@supports (backdrop-filter: blur(0)){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);backdrop-filter:saturate(180%) blur(30px)}}";const N=F;const H=":host{--background:transparent;--color:inherit;display:flex;position:relative;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}";const V=H;const q=class{constructor(e){t(this,e);this.color=undefined;this.translucent=false}render(){const t=v(this);return e(r,{key:"44077ad8e3edf7726d0f7a039046e32dc56a83c9",class:g(this.color,{"card-header-translucent":this.translucent,"ion-inherit-color":true,[t]:true})},e("slot",{key:"51b6f4048d25521ece18d79e5361c762af41cae7"}))}};q.style={ios:N,md:V};let Z;const K=()=>{if(typeof window==="undefined"){return new Map}else{if(!Z){const t=window;t.Ionicons=t.Ionicons||{};Z=t.Ionicons.map=t.Ionicons.map||new Map}return Z}};const G=t=>{let e=Q(t.src);if(e){return e}e=J(t.name,t.icon,t.mode,t.ios,t.md);if(e){return Y(e,t)}if(t.icon){e=Q(t.icon);if(e){return e}e=Q(t.icon[t.mode]);if(e){return e}}return null};const Y=(t,e)=>{const r=K().get(t);if(r){return r}try{return n(`svg/${t}.svg`)}catch(r){console.warn(`[Ionicons Warning]: Could not load icon with name "${t}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,e)}};const J=(t,e,r,i,n)=>{r=(r&&rt(r))==="ios"?"ios":"md";if(i&&r==="ios"){t=rt(i)}else if(n&&r==="md"){t=rt(n)}else{if(!t&&e&&!tt(e)){t=e}if(et(t)){t=rt(t)}}if(!et(t)||t.trim()===""){return null}const o=t.replace(/[a-z]|-|\d/gi,"");if(o!==""){return null}return t};const Q=t=>{if(et(t)){t=t.trim();if(tt(t)){return t}}return null};const tt=t=>t.length>0&&/(\/|\.)/.test(t);const et=t=>typeof t==="string";const rt=t=>t.toLowerCase();const it=(t,e=[])=>{const r={};e.forEach((e=>{if(t.hasAttribute(e)){const i=t.getAttribute(e);if(i!==null){r[e]=t.getAttribute(e)}t.removeAttribute(e)}}));return r};const nt=t=>{if(t){if(t.dir!==""){return t.dir.toLowerCase()==="rtl"}}return(document===null||document===void 0?void 0:document.dir.toLowerCase())==="rtl"};const ot=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 r=e.firstElementChild;if(r&&r.nodeName.toLowerCase()==="svg"){const t=r.getAttribute("class")||"";r.setAttribute("class",(t+" s-ion-icon").trim());if(st(r)){return e.innerHTML}}return""};const st=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(let e=0;e<t.attributes.length;e++){const r=t.attributes[e].name;if(et(r)&&r.toLowerCase().indexOf("on")===0){return false}}for(let e=0;e<t.childNodes.length;e++){if(!st(t.childNodes[e])){return false}}}return true};const at=t=>t.startsWith("data:image/svg+xml");const ct=t=>t.indexOf(";utf8,")!==-1;const lt=new Map;const dt=new Map;let ht;const bt=(t,e)=>{let r=dt.get(t);if(!r){if(typeof fetch!=="undefined"&&typeof document!=="undefined"){if(at(t)&&ct(t)){if(!ht){ht=new DOMParser}const e=ht.parseFromString(t,"text/html");const r=e.querySelector("svg");if(r){lt.set(t,r.outerHTML)}return Promise.resolve()}else{r=fetch(t).then((r=>{if(r.ok){return r.text().then((r=>{if(r&&e!==false){r=ot(r)}lt.set(t,r||"")}))}lt.set(t,"")}));dt.set(t,r)}}else{lt.set(t,"");return Promise.resolve()}}return r};const ut=":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 ft=ut;const pt=class{constructor(e){t(this,e);this.iconName=null;this.inheritedAttributes={};this.didLoadIcon=false;this.svgContent=undefined;this.isVisible=false;this.mode=gt();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=it(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,r){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;r()}}),{rootMargin:e});i.observe(t)}else{r()}}loadIcon(){if(this.isVisible){const t=G(this);if(t){if(lt.has(t)){this.svgContent=lt.get(t)}else{bt(t,this.sanitize).then((()=>this.svgContent=lt.get(t)))}this.didLoadIcon=true}}this.iconName=J(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:t,iconName:i,inheritedAttributes:n,el:o}=this;const s=this.mode||"md";const a=i?(i.includes("arrow")||i.includes("chevron"))&&t!==false:false;const c=t||a;return e(r,Object.assign({role:"img",class:Object.assign(Object.assign({[s]:true},mt(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":c,"icon-rtl":c&&nt(o)})},n),this.svgContent?e("div",{class:"icon-inner",innerHTML:this.svgContent}):e("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return i(this)}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}};const gt=()=>typeof document!=="undefined"&&document.documentElement.getAttribute("mode")||"md";const mt=t=>t?{"ion-color":true,[`ion-color-${t}`]:true}:null;pt.style=ft;const vt=":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 yt=vt;const wt=":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 kt=wt;const xt=class{constructor(e){t(this,e);this.type="determinate";this.reversed=false;this.value=0;this.buffer=1;this.color=undefined}render(){const{color:t,type:i,reversed:n,value:o,buffer:s}=this;const a=y.getBoolean("_testing");const c=v(this);return e(r,{key:"944b79ed6fce1b2c0ed48681cd8517a5abbddd80",role:"progressbar","aria-valuenow":i==="determinate"?o:null,"aria-valuemin":"0","aria-valuemax":"1",class:g(t,{[c]:true,[`progress-bar-${i}`]:true,"progress-paused":a,"progress-bar-reversed":document.dir==="rtl"?!n:n})},i==="indeterminate"?zt():Ct(o,s))}};const zt=()=>e("div",{part:"track",class:"progress-buffer-bar"},e("div",{class:"indeterminate-bar-primary"},e("span",{part:"progress",class:"progress-indeterminate"})),e("div",{class:"indeterminate-bar-secondary"},e("span",{part:"progress",class:"progress-indeterminate"})));const Ct=(t,r)=>{const i=h(0,t,1);const n=h(0,r,1);return[e("div",{part:"progress",class:"progress",style:{transform:`scaleX(${i})`}}),e("div",{class:{"buffer-circles-container":true,"ion-hide":n===1},style:{transform:`translateX(${n*100}%)`}},e("div",{class:"buffer-circles-container",style:{transform:`translateX(-${n*100}%)`}},e("div",{part:"stream",class:"buffer-circles"}))),e("div",{part:"track",class:"progress-buffer-bar",style:{transform:`scaleX(${n})`}})]};xt.style={ios:yt,md:kt};const _t=":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 St=_t;const jt=class{constructor(e){t(this,e);this.type="bounded"}async addRipple(t,e){return new Promise((r=>{o((()=>{const i=this.el.getBoundingClientRect();const n=i.width;const o=i.height;const a=Math.sqrt(n*n+o*o);const c=Math.max(o,n);const l=this.unbounded?c:a+It;const d=Math.floor(c*Pt);const h=l/d;let b=t-i.left;let u=e-i.top;if(this.unbounded){b=n*.5;u=o*.5}const f=b-d*.5;const p=u-d*.5;const g=n*.5-b;const m=o*.5-u;s((()=>{const t=document.createElement("div");t.classList.add("ripple-effect");const e=t.style;e.top=p+"px";e.left=f+"px";e.width=e.height=d+"px";e.setProperty("--final-scale",`${h}`);e.setProperty("--translate-end",`${g}px, ${m}px`);const i=this.el.shadowRoot||this.el;i.appendChild(t);setTimeout((()=>{r((()=>{Lt(t)}))}),225+100)}))}))}))}get unbounded(){return this.type==="unbounded"}render(){const t=v(this);return e(r,{key:"f1129019a6d556b008c754aeb79618c69baea9f8",role:"presentation",class:{[t]:true,unbounded:this.unbounded}})}get el(){return i(this)}};const Lt=t=>{t.classList.add("fade-out");setTimeout((()=>{t.remove()}),200)};const It=10;const Pt=.5;jt.style=St;const Xt=".sc-ion-searchbar-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);box-sizing:border-box}.ion-color.sc-ion-searchbar-ios-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:inherit}.searchbar-search-icon.sc-ion-searchbar-ios{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ios{display:block;position:relative;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ios{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;box-shadow:var(--box-shadow);box-sizing:border-box;appearance:none}.searchbar-input.sc-ion-searchbar-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ios::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ios>div.sc-ion-searchbar-ios{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);appearance:none}.searchbar-clear-button.sc-ion-searchbar-ios:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{display:block}.searchbar-disabled.sc-ion-searchbar-ios-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-ios-h{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);--border-radius:10px;--box-shadow:none;--cancel-button-color:var(--ion-color-primary, #3880ff);--clear-button-color:var(--ion-color-step-600, #666666);--color:var(--ion-text-color, #000);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:12px;padding-bottom:12px;min-height:60px;contain:content}.searchbar-input-container.sc-ion-searchbar-ios{min-height:36px}.searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:calc(50% - 60px);margin-inline-start:calc(50% - 60px);top:0;position:absolute;width:1.375rem;height:100%;contain:strict}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{inset-inline-start:5px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{left:5px}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}[dir=rtl].sc-ion-searchbar-ios .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;right:5px}}}.searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:6px;padding-bottom:6px;height:100%;font-size:1.0625rem;font-weight:400;contain:strict}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem;-webkit-padding-end:1.75rem;padding-inline-end:1.75rem}.searchbar-clear-button.sc-ion-searchbar-ios{top:0;background-position:center;position:absolute;width:1.875rem;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{inset-inline-end:0}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{right:0}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}[dir=rtl].sc-ion-searchbar-ios .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;left:0}}}.searchbar-clear-icon.sc-ion-searchbar-ios{width:1.125rem;height:100%}.searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;flex-shrink:0;background-color:transparent;font-size:16px}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:0;margin-inline-start:0}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.875rem;padding-inline-start:1.875rem}.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{display:block}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{transition:all 300ms ease}.searchbar-animated.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{opacity:1;pointer-events:auto}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-margin-end:-100%;margin-inline-end:-100%;transform:translate3d(0, 0, 0);transition:all 300ms ease;opacity:0;pointer-events:none}.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{transition-duration:0ms}.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{color:var(--ion-color-base)}@media (any-hover: hover){.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios:hover{color:var(--ion-color-tint)}}ion-toolbar.sc-ion-searchbar-ios-h,ion-toolbar .sc-ion-searchbar-ios-h{padding-top:1px;padding-bottom:15px;min-height:52px}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color),ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color){color:inherit}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios{color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios{background:rgba(var(--ion-color-contrast-rgb), 0.07);color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}";const Tt=Xt;const Et=".sc-ion-searchbar-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);box-sizing:border-box}.ion-color.sc-ion-searchbar-md-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{color:inherit}.searchbar-search-icon.sc-ion-searchbar-md{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-md{display:block;position:relative;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-md{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;box-shadow:var(--box-shadow);box-sizing:border-box;appearance:none}.searchbar-input.sc-ion-searchbar-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-md::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-md>div.sc-ion-searchbar-md{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);appearance:none}.searchbar-clear-button.sc-ion-searchbar-md:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{display:block}.searchbar-disabled.sc-ion-searchbar-md-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-md-h{--background:var(--ion-background-color, #fff);--border-radius:2px;--box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--cancel-button-color:var(--ion-color-step-900, #1a1a1a);--clear-button-color:initial;--color:var(--ion-color-step-850, #262626);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;background:inherit}.searchbar-search-icon.sc-ion-searchbar-md{top:11px;width:1.3125rem;height:1.3125rem}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{inset-inline-start:16px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{left:16px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}[dir=rtl].sc-ion-searchbar-md .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:16px}}}.searchbar-cancel-button.sc-ion-searchbar-md{top:0;background-color:transparent;font-size:1.5em}@supports (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{inset-inline-start:9px}}@supports not (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{left:9px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}[dir=rtl].sc-ion-searchbar-md .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}@supports selector(:dir(rtl)){.searchbar-cancel-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:9px}}}.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-cancel-button.sc-ion-searchbar-md{position:absolute}.searchbar-search-icon.ion-activated.sc-ion-searchbar-md,.searchbar-cancel-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-input.sc-ion-searchbar-md{-webkit-padding-start:3.4375rem;padding-inline-start:3.4375rem;-webkit-padding-end:3.4375rem;padding-inline-end:3.4375rem;padding-top:0.375rem;padding-bottom:0.375rem;background-position:left 8px center;height:auto;font-size:1rem;font-weight:400;line-height:30px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}[dir=rtl].sc-ion-searchbar-md .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}@supports selector(:dir(rtl)){.searchbar-input.sc-ion-searchbar-md:dir(rtl){background-position:right 8px center}}.searchbar-clear-button.sc-ion-searchbar-md{top:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{inset-inline-end:13px}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{right:13px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}[dir=rtl].sc-ion-searchbar-md .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;left:13px}}}.searchbar-clear-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-clear-icon.sc-ion-searchbar-md{width:1.375rem;height:100%}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md{display:none}ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px;padding-top:3px;padding-bottom:3px}";const Ot=Et;const Mt=class{constructor(e){t(this,e);this.ionInput=a(this,"ionInput",7);this.ionChange=a(this,"ionChange",7);this.ionCancel=a(this,"ionCancel",7);this.ionClear=a(this,"ionClear",7);this.ionBlur=a(this,"ionBlur",7);this.ionFocus=a(this,"ionFocus",7);this.ionStyle=a(this,"ionStyle",7);this.isCancelVisible=false;this.shouldAlignLeft=true;this.inputId=`ion-searchbar-${Ut++}`;this.inheritedAttributes={};this.onClearInput=async t=>{this.ionClear.emit();return new Promise((e=>{setTimeout((()=>{const r=this.getValue();if(r!==""){this.value="";this.emitInputChange();if(t&&!this.focused){this.setFocus();this.focusedValue=r}}e()}),16*4)}))};this.onCancelSearchbar=async t=>{if(t){t.preventDefault();t.stopPropagation()}this.ionCancel.emit();const e=this.getValue();const r=this.focused;await this.onClearInput();if(e&&!r){this.emitValueChange(t)}if(this.nativeInput){this.nativeInput.blur()}};this.onInput=t=>{const e=t.target;if(e){this.value=e.value}this.emitInputChange(t)};this.onChange=t=>{this.emitValueChange(t)};this.onBlur=t=>{this.focused=false;this.ionBlur.emit();this.positionElements();if(this.focusedValue!==this.value){this.emitValueChange(t)}this.focusedValue=undefined};this.onFocus=()=>{this.focused=true;this.focusedValue=this.value;this.ionFocus.emit();this.positionElements()};this.focused=false;this.noAnimate=true;this.color=undefined;this.animated=false;this.autocapitalize="default";this.autocomplete="off";this.autocorrect="off";this.cancelButtonIcon=y.get("backButtonIcon",k);this.cancelButtonText="Cancel";this.clearIcon=undefined;this.debounce=undefined;this.disabled=false;this.inputmode=undefined;this.enterkeyhint=undefined;this.maxlength=undefined;this.minlength=undefined;this.name=this.inputId;this.placeholder="Search";this.searchIcon=undefined;this.showCancelButton="never";this.showClearButton="always";this.spellcheck=false;this.type="search";this.value=""}onLangChanged(t){this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{lang:t});c(this)}onDirChanged(t){this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{dir:t});c(this)}debounceChanged(){const{ionInput:t,debounce:e,originalIonInput:r}=this;this.ionInput=e===undefined?r!==null&&r!==void 0?r:t:b(t,e)}valueChanged(){const t=this.nativeInput;const e=this.getValue();if(t&&t.value!==e){t.value=e}}showCancelButtonChanged(){requestAnimationFrame((()=>{this.positionElements();c(this)}))}connectedCallback(){this.emitStyle()}componentWillLoad(){this.inheritedAttributes=Object.assign({},d(this.el,["lang","dir"]))}componentDidLoad(){this.originalIonInput=this.ionInput;this.positionElements();this.debounceChanged();setTimeout((()=>{this.noAnimate=false}),300)}emitStyle(){this.ionStyle.emit({searchbar:true})}async setFocus(){if(this.nativeInput){this.nativeInput.focus()}}async getInputElement(){if(!this.nativeInput){await new Promise((t=>u(this.el,t)))}return Promise.resolve(this.nativeInput)}emitValueChange(t){const{value:e}=this;const r=e==null?e:e.toString();this.focusedValue=r;this.ionChange.emit({value:r,event:t})}emitInputChange(t){const{value:e}=this;this.ionInput.emit({value:e,event:t})}positionElements(){const t=this.getValue();const e=this.shouldAlignLeft;const r=v(this);const i=!this.animated||t.trim()!==""||!!this.focused;this.shouldAlignLeft=i;if(r!=="ios"){return}if(e!==i){this.positionPlaceholder()}if(this.animated){this.positionCancelButton()}}positionPlaceholder(){const t=this.nativeInput;if(!t){return}const e=w(this.el);const r=(this.el.shadowRoot||this.el).querySelector(".searchbar-search-icon");if(this.shouldAlignLeft){t.removeAttribute("style");r.removeAttribute("style")}else{const i=document;const n=i.createElement("span");n.innerText=this.placeholder||"";i.body.appendChild(n);f((()=>{const i=n.offsetWidth;n.remove();const o="calc(50% - "+i/2+"px)";const s="calc(50% - "+(i/2+r.clientWidth+8)+"px)";if(e){t.style.paddingRight=o;r.style.marginRight=s}else{t.style.paddingLeft=o;r.style.marginLeft=s}}))}}positionCancelButton(){const t=w(this.el);const e=(this.el.shadowRoot||this.el).querySelector(".searchbar-cancel-button");const r=this.shouldShowCancelButton();if(e!==null&&r!==this.isCancelVisible){const i=e.style;this.isCancelVisible=r;if(r){if(t){i.marginLeft="0"}else{i.marginRight="0"}}else{const r=e.offsetWidth;if(r>0){if(t){i.marginLeft=-r+"px"}else{i.marginRight=-r+"px"}}}}}getValue(){return this.value||""}hasValue(){return this.getValue()!==""}shouldShowCancelButton(){if(this.showCancelButton==="never"||this.showCancelButton==="focus"&&!this.focused){return false}return true}shouldShowClearButton(){if(this.showClearButton==="never"||this.showClearButton==="focus"&&!this.focused){return false}return true}render(){const{cancelButtonText:t,autocapitalize:i}=this;const n=this.animated&&y.getBoolean("animated",true);const o=v(this);const s=this.clearIcon||(o==="ios"?x:z);const a=this.searchIcon||(o==="ios"?C:_);const c=this.shouldShowCancelButton();const l=this.showCancelButton!=="never"&&e("button",{key:"9c7b4d2e86d9bcd12e57c9a96723d3da598a3773","aria-label":t,"aria-hidden":c?undefined:"true",type:"button",tabIndex:o==="ios"&&!c?-1:undefined,onMouseDown:this.onCancelSearchbar,onTouchStart:this.onCancelSearchbar,class:"searchbar-cancel-button"},e("div",{key:"1c25268a776134cccd29eb752898cb8ac0eed30f","aria-hidden":"true"},o==="md"?e("ion-icon",{"aria-hidden":"true",mode:o,icon:this.cancelButtonIcon,lazy:false}):t));return e(r,{key:"feef9fc7e405656e134a76dc037aaaa1a4ce36b4",role:"search","aria-disabled":this.disabled?"true":null,class:g(this.color,{[o]:true,"searchbar-animated":n,"searchbar-disabled":this.disabled,"searchbar-no-animate":n&&this.noAnimate,"searchbar-has-value":this.hasValue(),"searchbar-left-aligned":this.shouldAlignLeft,"searchbar-has-focus":this.focused,"searchbar-should-show-clear":this.shouldShowClearButton(),"searchbar-should-show-cancel":this.shouldShowCancelButton()})},e("div",{key:"92e3925dc0de468e5665705902153837105dfa57",class:"searchbar-input-container"},e("input",Object.assign({key:"fb74faf81b347a62338ccdac981525df1c52b322","aria-label":"search text",disabled:this.disabled,ref:t=>this.nativeInput=t,class:"searchbar-input",inputMode:this.inputmode,enterKeyHint:this.enterkeyhint,name:this.name,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,minLength:this.minlength,maxLength:this.maxlength,placeholder:this.placeholder,type:this.type,value:this.getValue(),autoCapitalize:i==="default"?undefined:i,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,spellcheck:this.spellcheck},this.inheritedAttributes)),o==="md"&&l,e("ion-icon",{key:"d58c3636dac1d2e4135989f4c07dc95c51492e60","aria-hidden":"true",mode:o,icon:a,lazy:false,class:"searchbar-search-icon"}),e("button",{key:"1cece7c63ca5ca4b8799e15ee6d2bac100ef0d5e","aria-label":"reset",type:"button","no-blur":true,class:"searchbar-clear-button",onPointerDown:t=>{t.preventDefault()},onClick:()=>this.onClearInput(true)},e("ion-icon",{key:"fe3c2b9cac29002f69e95a89b554c7504e2df050","aria-hidden":"true",mode:o,icon:s,lazy:false,class:"searchbar-clear-icon"}))),o==="ios"&&l)}get el(){return i(this)}static get watchers(){return{lang:["onLangChanged"],dir:["onDirChanged"],debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}}};let Ut=0;Mt.style={ios:Tt,md:Ot};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 Dt=At;const Bt=class{constructor(e){t(this,e);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&&y.getBoolean("animated",true);const i=m("ion-avatar",this.el)||m("ion-thumbnail",this.el);const n=v(this);return e(r,{key:"4dab0fd2de666de12ad8f6dc6ed1e1de0be67ddd",class:{[n]:true,"skeleton-text-animated":t,"in-media":i}},e("span",{key:"f8f908ec24d65e63b14d9a54640a5f18f0fa8fa5"}," "))}get el(){return i(this)}};Bt.style=Dt;const Rt=":host{font-family:var(--font-sans);display:block}button#new{cursor:pointer;display:flex;align-items:center;justify-content:center;border:none;width:var(--scale-5);height:var(--scale-5);background-color:var(--pos-primary-color);color:var(--color-grey-50);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 $t=Rt;const Wt=class{constructor(e){t(this,e)}openDialog(){this.dialog.showModal()}render(){return e(r,{key:"35b8629fc9ac9d9e759009f329dc9437307649c3"},e("button",{key:"b6c0b1d06fbed05a079c1e4cb684f227fd40d098",id:"new",title:"Add a new thing",onClick:()=>this.openDialog()},e("ion-icon",{key:"2dfbcff7480dfc7397a5810ca7a33b9e583a77ee",name:"add-circle-outline"})),e("pos-dialog",{key:"a61bf93754ca323fbc23137956a00c39be81cad9",ref:t=>this.dialog=t},e("span",{key:"a4095e3c9ddd26e18ce002a05ef65d8895894589",slot:"title"},"Add a new thing"),e("pos-new-thing-form",{key:"136cfbbab823f5abc313642e1dc04f67d5d81777",slot:"content",referenceUri:this.referenceUri})))}};Wt.style=$t;const Ft=()=>new L;function Nt(t){return typeof t==="function"}function Ht(t){const e=t=>{Error.call(t);t.stack=(new Error).stack};const r=t(e);r.prototype=Object.create(Error.prototype);r.prototype.constructor=r;return r}const Vt=Ht((t=>function e(r){t(this);this.message=r?`${r.length} errors occurred during unsubscription:\n${r.map(((t,e)=>`${e+1}) ${t.toString()}`)).join("\n ")}`:"";this.name="UnsubscriptionError";this.errors=r}));function qt(t,e){if(t){const r=t.indexOf(e);0<=r&&t.splice(r,1)}}class Zt{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:r}=this;if(Nt(r)){try{r()}catch(e){t=e instanceof Vt?e.errors:[e]}}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const e of i){try{Yt(e)}catch(e){t=t!==null&&t!==void 0?t:[];if(e instanceof Vt){t=[...t,...e.errors]}else{t.push(e)}}}}if(t){throw new Vt(t)}}}add(t){var e;if(t&&t!==this){if(this.closed){Yt(t)}else{if(t instanceof Zt){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)){qt(e,t)}}remove(t){const{_finalizers:e}=this;e&&qt(e,t);if(t instanceof Zt){t._removeParent(this)}}}Zt.EMPTY=(()=>{const t=new Zt;t.closed=true;return t})();const Kt=Zt.EMPTY;function Gt(t){return t instanceof Zt||t&&"closed"in t&&Nt(t.remove)&&Nt(t.add)&&Nt(t.unsubscribe)}function Yt(t){if(Nt(t)){t()}else{t.unsubscribe()}}const Jt={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false};const Qt={setTimeout(t,e,...r){const{delegate:i}=Qt;if(i===null||i===void 0?void 0:i.setTimeout){return i.setTimeout(t,e,...r)}return setTimeout(t,e,...r)},clearTimeout(t){const{delegate:e}=Qt;return((e===null||e===void 0?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:undefined};function te(t){Qt.setTimeout((()=>{const{onUnhandledError:e}=Jt;if(e){e(t)}else{throw t}}))}function ee(){}const re=(()=>oe("C",undefined,undefined))();function ie(t){return oe("E",undefined,t)}function ne(t){return oe("N",t,undefined)}function oe(t,e,r){return{kind:t,value:e,error:r}}let se=null;function ae(t){if(Jt.useDeprecatedSynchronousErrorHandling){const e=!se;if(e){se={errorThrown:false,error:null}}t();if(e){const{errorThrown:t,error:e}=se;se=null;if(t){throw e}}}else{t()}}class ce extends Zt{constructor(t){super();this.isStopped=false;if(t){this.destination=t;if(Gt(t)){t.add(this)}}else{this.destination=ge}}static create(t,e,r){return new be(t,e,r)}next(t){if(this.isStopped){pe(ne(t),this)}else{this._next(t)}}error(t){if(this.isStopped){pe(ie(t),this)}else{this.isStopped=true;this._error(t)}}complete(){if(this.isStopped){pe(re,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 le=Function.prototype.bind;function de(t,e){return le.call(t,e)}class he{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next){try{e.next(t)}catch(t){ue(t)}}}error(t){const{partialObserver:e}=this;if(e.error){try{e.error(t)}catch(t){ue(t)}}else{ue(t)}}complete(){const{partialObserver:t}=this;if(t.complete){try{t.complete()}catch(t){ue(t)}}}}class be extends ce{constructor(t,e,r){super();let i;if(Nt(t)||!t){i={next:t!==null&&t!==void 0?t:undefined,error:e!==null&&e!==void 0?e:undefined,complete:r!==null&&r!==void 0?r:undefined}}else{let e;if(this&&Jt.useDeprecatedNextContext){e=Object.create(t);e.unsubscribe=()=>this.unsubscribe();i={next:t.next&&de(t.next,e),error:t.error&&de(t.error,e),complete:t.complete&&de(t.complete,e)}}else{i=t}}this.destination=new he(i)}}function ue(t){{te(t)}}function fe(t){throw t}function pe(t,e){const{onStoppedNotification:r}=Jt;r&&Qt.setTimeout((()=>r(t,e)))}const ge={closed:true,next:ee,error:fe,complete:ee};const me=(()=>typeof Symbol==="function"&&Symbol.observable||"@@observable")();function ve(t){return t}function ye(t){if(t.length===0){return ve}if(t.length===1){return t[0]}return function e(r){return t.reduce(((t,e)=>e(t)),r)}}class we{constructor(t){if(t){this._subscribe=t}}lift(t){const e=new we;e.source=this;e.operator=t;return e}subscribe(t,e,r){const i=ze(t)?t:new be(t,e,r);ae((()=>{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=ke(e);return new e(((e,r)=>{const i=new be({next:e=>{try{t(e)}catch(t){r(t);i.unsubscribe()}},error:r,complete:e});this.subscribe(i)}))}_subscribe(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)}[me](){return this}pipe(...t){return ye(t)(this)}toPromise(t){t=ke(t);return new t(((t,e)=>{let r;this.subscribe((t=>r=t),(t=>e(t)),(()=>t(r)))}))}}we.create=t=>new we(t);function ke(t){var e;return(e=t!==null&&t!==void 0?t:Jt.Promise)!==null&&e!==void 0?e:Promise}function xe(t){return t&&Nt(t.next)&&Nt(t.error)&&Nt(t.complete)}function ze(t){return t&&t instanceof ce||xe(t)&&Gt(t)}function Ce(t){return Nt(t===null||t===void 0?void 0:t.lift)}function _e(t){return e=>{if(Ce(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 Se(t,e,r,i,n){return new je(t,e,r,i,n)}class je extends ce{constructor(t,e,r,i,n,o){super(t);this.onFinalize=n;this.shouldUnsubscribe=o;this._next=e?function(r){try{e(r)}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=r?function(){try{r()}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 Le=Ht((t=>function e(){t(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}));class Ie extends we{constructor(){super();this.closed=false;this.currentObservers=null;this.observers=[];this.isStopped=false;this.hasError=false;this.thrownError=null}lift(t){const e=new Pe(this,this);e.operator=t;return e}_throwIfClosed(){if(this.closed){throw new Le}}next(t){ae((()=>{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){ae((()=>{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(){ae((()=>{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:r,observers:i}=this;if(e||r){return Kt}this.currentObservers=null;i.push(t);return new Zt((()=>{this.currentObservers=null;qt(i,t)}))}_checkFinalizedStatuses(t){const{hasError:e,thrownError:r,isStopped:i}=this;if(e){t.error(r)}else if(i){t.complete()}}asObservable(){const t=new we;t.source=this;return t}}Ie.create=(t,e)=>new Pe(t,e);class Pe extends Ie{constructor(t,e){super();this.destination=t;this.source=e}next(t){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.next)===null||r===void 0?void 0:r.call(e,t)}error(t){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.error)===null||r===void 0?void 0:r.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,r;return(r=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&r!==void 0?r:Kt}}function Xe(t,e,r,i){function n(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(t){o(t)}}function a(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?r(t.value):n(t.value).then(s,a)}c((i=i.apply(t,e||[])).next())}))}function Te(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.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 Ee(t){return this instanceof Ee?(this.v=t,this):new Ee(t)}function Oe(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(t,e||[]),n,o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(t){if(i[t])n[t]=function(e){return new Promise((function(r,i){o.push([t,e,r,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 Ee?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 Me(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Te==="function"?Te(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(e){r[e]=t[e]&&function(r){return new Promise((function(i,o){r=t[e](r),n(i,o,r.done,r.value)}))}}function n(t,e,r,i){Promise.resolve(i).then((function(e){t({value:e,done:r})}),e)}}typeof SuppressedError==="function"?SuppressedError:function(t,e,r){var i=new Error(r);return i.name="SuppressedError",i.error=t,i.suppressed=e,i};const Ue=t=>t&&typeof t.length==="number"&&typeof t!=="function";function Ae(t){return Nt(t===null||t===void 0?void 0:t.then)}function De(t){return Nt(t[me])}function Be(t){return Symbol.asyncIterator&&Nt(t===null||t===void 0?void 0:t[Symbol.asyncIterator])}function Re(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 $e(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}const We=$e();function Fe(t){return Nt(t===null||t===void 0?void 0:t[We])}function Ne(t){return Oe(this,arguments,(function*e(){const r=t.getReader();try{while(true){const{value:t,done:e}=yield Ee(r.read());if(e){return yield Ee(void 0)}yield yield Ee(t)}}finally{r.releaseLock()}}))}function He(t){return Nt(t===null||t===void 0?void 0:t.getReader)}function Ve(t){if(t instanceof we){return t}if(t!=null){if(De(t)){return qe(t)}if(Ue(t)){return Ze(t)}if(Ae(t)){return Ke(t)}if(Be(t)){return Ye(t)}if(Fe(t)){return Ge(t)}if(He(t)){return Je(t)}}throw Re(t)}function qe(t){return new we((e=>{const r=t[me]();if(Nt(r.subscribe)){return r.subscribe(e)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function Ze(t){return new we((e=>{for(let r=0;r<t.length&&!e.closed;r++){e.next(t[r])}e.complete()}))}function Ke(t){return new we((e=>{t.then((t=>{if(!e.closed){e.next(t);e.complete()}}),(t=>e.error(t))).then(null,te)}))}function Ge(t){return new we((e=>{for(const r of t){e.next(r);if(e.closed){return}}e.complete()}))}function Ye(t){return new we((e=>{Qe(t,e).catch((t=>e.error(t)))}))}function Je(t){return Ye(Ne(t))}function Qe(t,e){var r,i;var n,o;return Xe(this,void 0,void 0,(function*(){try{for(r=Me(t);i=yield r.next(),!i.done;){const t=i.value;e.next(t);if(e.closed){return}}}catch(t){n={error:t}}finally{try{if(i&&!i.done&&(o=r.return))yield o.call(r)}finally{if(n)throw n.error}}e.complete()}))}function tr(t){return _e(((e,r)=>{Ve(t).subscribe(Se(r,(()=>r.complete()),ee));!r.closed&&e.subscribe(r)}))}const er=class{constructor(e){t(this,e);this.sessionRestoredEmitter=a(this,"pod-os:session-restored",7);this.restorePreviousSession=false;this.disconnected$=new Ie}componentWillLoad(){this.os=Ft();this.os.onSessionRestore((t=>{this.sessionRestoredEmitter.emit({url:t})}));this.os.handleIncomingRedirect(this.restorePreviousSession);this.os.observeSession().pipe(tr(this.disconnected$)).subscribe((async t=>{S.state.webId=t.webId;if(t.isLoggedIn){const e=await this.os.fetchProfile(t.webId);S.state.profile=e}S.state.isLoggedIn=t.isLoggedIn}))}disconnectedCallback(){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 e("slot",{key:"32436fcf8726f4c6b3079f402c296bd3c6cafd04"})}};const rr="pos-router{margin:0;padding:0;display:flex;flex-direction:column;height:100%}pos-navigation-bar{max-width:var(--width-lg);margin:0}pos-add-new-thing,pos-login{flex:0 1 auto;}header,footer{display:flex;gap:var(--size-1);height:auto;justify-content:center;align-items:center;padding:var(--size-1)}footer svg{width:var(--size-5);height:var(--size-5)}footer{font-size:var(--scale-fluid-000)}header{flex-wrap:wrap;padding:0 var(--size-8)}main{flex:1;max-height:100vh;overflow:auto}@media (max-width: 640px){header{padding:0 var(--size-1) var(--size-1);justify-content:space-between}pos-navigation-bar{flex-basis:100%;order:0}pos-add-new-thing,pos-login{order:1}}";const ir=rr;const nr=class{constructor(e){t(this,e);this.restorePreviousSession=false;this.mode="standalone";this.uri=""}render(){return e(r,{key:"50b6e91f4e98be29cfa37552eb799883aeb49c9e"},e("pos-app",{key:"652617d5eaf3653caeb58b9e93dff09810a587a3",restorePreviousSession:this.restorePreviousSession},e("pos-error-toast",{key:"f4a29b30c2a4caece50c0da046426bc50a3b402e"},e("pos-router",{key:"d3f2307db47406c4d84c9b27ac767d263ae81c32",mode:this.mode,"onPod-os:route-changed":t=>this.uri=t.detail},e("header",{key:"521c8469dae209a27780d62a5922f8a15d393e07"},e("pos-add-new-thing",{key:"2fdd9716da4b3590fb0983a4b50f8c63eca26dce",referenceUri:this.uri}),e("pos-navigation-bar",{key:"6add9651de9ff5ca8496470c0df1341927683001",uri:this.uri==="pod-os:dashboard"?"":this.uri}),e("pos-login",{key:"87a60cc03fc63a2ca68b294726e7e44a09bdc835"})),e("main",{key:"dd2b3de09ca7f8957b240b030cafeeac37e76c1b"},this.uri.startsWith("pod-os:")?e("pos-internal-router",{uri:this.uri}):e("pos-resource",{key:this.uri,uri:this.uri},e("pos-type-router",null))),e("footer",{key:"ea1444713656c8740d81c5ac777b72bb6e287729"},e(or,{key:"1bba3eec9e30c30f9132a6524e00ec212169f402"}),e("span",{key:"3b38a5e1704559f271075b60a27d8334f41a09dc"},"PodOS Browser"))))))}};const or=()=>e("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M50 350 L50 100 L200 50 L350 100 L350 350 Z",style:{fill:"#008BF8",stroke:"#008BF8","stroke-width":"70"},"stroke-linejoin":"round"}),e("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"}),e("path",{d:"M150 250 L150 200 L200 180 L250 200 L250 250 Z",style:{fill:"#DC0073",stroke:"#DC0073","stroke-width":"20"},"stroke-linejoin":"round"}));nr.style=ir;const sr=":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;height:100%;background:linear-gradient(230deg, rgb(251, 251, 255) 0%, rgb(215, 223, 252) 100%)}";const ar=sr;const cr=class{constructor(e){t(this,e)}render(){return e(r,{key:"238188758d52f7a78180d9dcacf52f64d07990c4"},e("pos-getting-started",{key:"da58685fcdbe522a442675d93270fbd553a8c5db"}),e("pos-example-resources",{key:"538845ab6065040e89abb9fdac166f01e5bfa7b4"}))}};cr.style=ar;const lr=class{constructor(e){t(this,e);this.subscribeResource=a(this,"pod-os:resource",7);this.receiveResource=t=>{this.resource=t}}componentWillLoad(){P(this)}render(){return this.resource?this.resource.description():null}};const dr="dialog{background-color:var(--pos-background-color);border:none;border-radius:var(--radius-md);box-shadow:var(--shadow-md);max-width:var(--width-xs)}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(--color-grey-800)}";const hr=dr;const br=class{constructor(e){t(this,e)}async showModal(){this.dialog.showModal()}async close(){this.dialog.close()}render(){return e(r,{key:"c225a4ac0e04d0a71fdb0b98c6b2ec8619f465b2"},e("dialog",{key:"ca442886d0651fce3b9b565dba18a6bda30750cd",ref:t=>this.dialog=t},e("header",{key:"5589443a2551bb8ed14870bacdbaaf0b93b0cfe2"},e("slot",{key:"abad20ea1a223ad2229bebcca6c7f3fe09ee4d05",name:"title"}),e("button",{key:"2da0f8dfc03a15c90dc099ee824369564ac12d72",tabindex:-1,id:"close",title:"Close",onClick:()=>this.close()},e("ion-icon",{key:"bab7a9b15ebbec354e84aab7a84ca34a01e62600",name:"close-outline"}))),e("slot",{key:"51978d27aef2308e0b66374087543705f0ac391c",name:"content"})))}};br.style=hr;const ur=class{constructor(e){t(this,e)}async unhandledRejection(t){await this.showToast(t.reason)}async catchError(t){t.stopPropagation();console.error(t.detail);await this.showToast(t.detail.message)}async showToast(t){const e=await X.create({message:t,duration:1e4,position:"top",color:"danger",buttons:[{text:"Dismiss",role:"cancel"}]});await e.present()}render(){return e("slot",{key:"1abf0983dd843eb8b3342ec1fda0e25d02a2df5a"})}};const fr=":host{border:var(--size-px) solid var(--color-grey-100);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--color-white)}.links{display:flex;flex-direction:column;gap:var(--size-3);max-width:80vw}";const pr=fr;const gr=class{constructor(e){t(this,e)}render(){return e(r,{key:"85fd8b16422fb57ad1414804d7cc2c86eee39d02"},e("div",{key:"d446af3cc59ce0b9d372a37650618686aa48b8fb"},e("h2",{key:"3000fbd901554640126f7d6880d56d1bef9ed241"},"Try these... 💡"),e("p",{key:"c89defab8e6e2e7a617898f163ed7234249727d2"},"No idea where to start? Try these example resources, and follow your nose 👃"),e("div",{key:"bc9ed67f429ea468c53b591390b7fba1674b0b7d",class:"links"},e("pos-rich-link",{key:"a5fd0f04c539c2654198a0d825fbb2da891e0d14",uri:"https://pod-os.solidcommunity.net/profile/card#me"}),e("pos-rich-link",{key:"0b8dc4abeecbb4cc0f2d8957aa6e43f6877d84d0",uri:"https://angelo.veltens.org/profile/card#me"}),e("pos-rich-link",{key:"628bd8639c706134274ee3c1cd14616664ba9552",uri:"https://angelo.veltens.org/public/bookmarks"}),e("pos-rich-link",{key:"91efe195ccc2567428ea978390a9845d22beda5e",uri:"https://solidos.solidcommunity.net/profile/card#me"}))))}};gr.style=pr;const mr=":host{border:var(--size-px) solid var(--color-grey-100);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--color-white)}.question{font-weight:var(--weight-semibold);color:var(--color-grey-900)}a{font-weight:var(--weight-bold);color:var(--pos-primary-color)}";const vr=mr;const yr=class{constructor(e){t(this,e)}render(){return e(r,{key:"2347ea586342456767e9aba2b30debbd86e0b37e"},e("div",{key:"33da44a3cd289b08384b17933c16cef8063a87e2"},e("h2",{key:"7b08c85b665db29d7d0ceaea5bce32b975180300"},"Getting started 🚀"),e("p",{key:"b582fad4e229353edfe5286a417ed544f8a08659"},"🔎 Enter a URL into the above navigation bar to browse through the web of data. "),e("p",{key:"95a42fe1be9e27e03e1bf1beb9a359720dbfef8a"},"🔐 Sign in to access private resources on your Solid Pod or those of your friends or coworkers.")),e("div",{key:"be49077a2032e6208fbfc8c170ec2a4f2151d792"},e("p",{key:"15ebacbf46ab241c0001aa6df011612e27b14657",class:"question"},"New to Solid?"),e("p",{key:"41366fc5e73c5df8b07dc39236d781f9bdb16a2e"},e("a",{key:"35d1572cf1db045759434e3783c02cac98954c91",href:"https://solidproject.org/for-developers#hosted-pod-services"},"Get a Pod →"))),e("div",{key:"2c4a4d8b7f2a0aded70c541f4b511b96150c4fd4"},e("p",{key:"3a1f2bc0640b9c7a553063d4886d22eee41af0f9",class:"question"},"Want to dig deeper into PodOS?"),e("p",{key:"ec76e0f2dd6feff49ecac2d5bc51d27635412bcc"},e("a",{key:"5c49f338c15f0e9941e3929f5a81baa6521bbb1a",href:"http://pod-os.org"},"Learn more →"))))}};yr.style=vr;const wr=":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 kr=wr;const xr=class{constructor(e){t(this,e);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(){S.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 e("ion-skeleton-text",{animated:true})}if(this.networkError){return e("img",{alt:this.alt,src:this.src,onError:t=>this.onImageError(t)})}if(this.brokenFile){return e(j,{file:this.brokenFile})}if(this.imageError){return e("div",{class:"error"},e("a",{href:this.src},this.src))}return e(r,{style:{backgroundImage:this.blurredBackground?`url('${this.dataUri}')`:null}},e("img",{src:this.dataUri,alt:this.alt}))}static get watchers(){return{os:["fetchBlob"],src:["fetchBlob"]}}};xr.style=kr;const zr=class{constructor(e){t(this,e);this.uri="pod-os:dashboard"}render(){return e("pos-app-dashboard",{key:"44741d470c91f1faa732c5932788aa58b56805d4"})}};const Cr=class{constructor(e){t(this,e);this.subscribeResource=a(this,"pod-os:resource",7);this.receiveResource=t=>{this.resource=t}}componentWillLoad(){P(this)}render(){return this.resource?this.resource.label():null}};const _r=".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 Sr=_r;const jr=class{constructor(e){t(this,e);this.initializeOsEmitter=a(this,"pod-os:init",7);this.setOs=async t=>{this.os=t}}componentWillLoad(){this.initializeOsEmitter.emit(this.setOs)}login(t){const e=t.detail;this.os.login(e)}logout(){this.os.logout()}openDialog(){this.dialog.showModal()}render(){return e(r,{key:"ca905c70af384613b128154be4bb68d2956c309e"},e("div",{key:"1f18fe1812658ab7855da328337ef5a9f6145f15",class:"container"},S.state.isLoggedIn?e("pos-resource",{uri:S.state.webId},e("span",{class:"user-data"},e("pos-picture",null),e("pos-label",null))):"",!S.state.isLoggedIn&&e("button",{key:"09264faa5a12b18a805bb13cf92a9a0b190bd498",id:"login",onClick:()=>this.openDialog()},"Login"),S.state.isLoggedIn&&e("button",{key:"334759c36b3df14e59d1bf7a4ae8dd2b03e52c3a",id:"logout",onClick:()=>this.logout()},"Logout")),e("pos-dialog",{key:"e82f36add5bcd044406996639b22e20b54c39101",ref:t=>this.dialog=t},e("span",{key:"e4ea7b9181981e28222f3dffe6ca1cd1fd18cc79",slot:"title"},"Sign in to your Pod"),e("pos-login-form",{key:"5d99a85a1561178a3091ab5f6a23a856c1a373ad","onPod-os:idp-url-selected":t=>this.login(t),slot:"content"})))}};jr.style=Sr;const Lr=":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}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 Ir=Lr;const Pr=class{constructor(e){t(this,e);this.idpUrlSelected=a(this,"pod-os:idp-url-selected",7);this.idpUrl="";this.canSubmit=false}validate(){this.canSubmit=Boolean(this.idpUrl)}render(){return e("form",{key:"fc3dd44c9d9b1b1d793a7527d8a178d819475ee2",method:"dialog",onSubmit:()=>this.handleSubmit()},e("label",{key:"9cbac18a27fa549063c9aa5fce9a9a8bae15bdb1",htmlFor:"idpUrl"},"Please enter your Identity Provider"),e("input",{key:"e211e1210b6259f481562a70d3ca1843137d0c87",id:"idpUrl",type:"url",value:this.idpUrl,required:true,onInput:t=>this.handleChange(t),list:"suggestedIssuers",placeholder:"Type to search..."}),e("datalist",{key:"070952f3ad16c312992fac7be5e497d92819fbb8",id:"suggestedIssuers"},e("option",{key:"d561a03770b7cf496322966f71f6e81c54ab25b0",value:"https://solidcommunity.net"},"solidcommunity.net"),e("option",{key:"3ecf96f60823fd848344fc77871f4bad3645e19c",value:"https://solidweb.org"},"solidweb.org"),e("option",{key:"7c0c4ea6a4d975f9d7dd298e3b38fd8faa41dd2b",value:"https://solidweb.me"},"solidweb.me"),e("option",{key:"21138fe500353ff7624c20226f92c55f5a553551",value:"https://inrupt.net"},"inrupt.net"),e("option",{key:"6b7edede2e1d51aeab5c6fb6f0e7fd4be72db3c5",value:"https://login.inrupt.com"},"Inrupt PodSpaces"),e("option",{key:"c9cea1f3d258a58b0ca260c25111cd6cd6b6bf30",value:"https://trinpod.us"},"trinpod.us"),e("option",{key:"953f68426bdf806c18cbb78fd7de36ee8dae06db",value:"https://use.id"},"use.id"),e("option",{key:"58b3b5e9b3e145e2f2000028d0edd8263d2a6495",value:"https://solid.redpencil.io"},"redpencil.io"),e("option",{key:"2461aaa1b32e07635d67805a362b2f22bf28a8a7",value:"https://datapod.grant.io"},"Data Pod (grant.io)"),e("option",{key:"6ac6645ccd9f3f2234b3f44349f28f34c9f1d33d",value:"https://teamid.live"},"teamid.live")),e("input",{key:"451b150089145ca6846253067e6e6d393b333d9c",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"]}}};Pr.style=Ir;const Xr="button.main {\n display: flex;\n transition:\n width 200ms,\n background-color 500ms,\n color 500ms,\n border-color 500ms;\n flex-direction: row;\n overflow: hidden;\n height: var(--size-8);\n width: var(--size-8);\n align-items: center;\n justify-content: center;\n border-radius: var(--radius-xs);\n color: var(--color-grey-500);\n border: var(--size-px) dashed var(--color-grey-500);\n background: none;\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\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 background-color: var(--color-grey-200);\n padding: 0;\n margin: 0;\n list-style: none;\n button {\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 filter: brightness(80%);\n }\n\n &:active {\n filter: brightness(90%);\n }\n }\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(--size-8);\n background: var(--color-grey-200);\n color: var(--color-grey-700);\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 Tr=Xr;const Er=class{constructor(e){t(this,e);this.subscribePodOs=a(this,"pod-os:init",7);this.errorEmitter=a(this,"pod-os:error",7);this.indexes=[];this.showOptions=false;this.success=false;this.receivePodOs=async t=>{this.os=t;this.thing=this.os.store.get(this.uri);this.getLabelIndexes(S.state.profile);this.unsubscribeSessionChange=S.onChange("profile",(t=>{this.getLabelIndexes(t)}))}}componentWillLoad(){T(this)}disconnectedCallback(){this.unsubscribeSessionChange&&this.unsubscribeSessionChange()}hideOptions(t){if(t.target.parentNode!==this.el){this.showOptions=false}}handleKeyDown(t){if(t.key==="Escape"){this.showOptions=false}}updateUri(t){this.thing=this.os.store.get(t);this.success=false}getLabelIndexes(t){if(t){this.indexes=t.getPrivateLabelIndexes().map((t=>this.os.store.get(t).assume(I)))}}async onClick(t){t.preventDefault();this.success=false;if(this.indexes.length===1){await this.addToLabelIndex(this.indexes[0])}else if(this.indexes.length>1){this.showOptions=true}else{if(window.confirm(`🔎 To use search you have to configure a label index.\n For now you have to do this manually unfortunately.\n\n 📖 Do you want to open a page that describes how to create a label index?`)){window.open("https://github.com/pod-os/PodOS/blob/main/docs/features/full-text-search.md#full-text-search","_blank")}}}async addToLabelIndex(t){try{await this.os.addToLabelIndex(this.thing,t);this.success=true}catch(t){this.errorEmitter.emit(t)}this.showOptions=false}render(){if(!S.state.isLoggedIn||!this.uri){return null}const t="Make this findable";return e(r,null,e("button",{type:"button","aria-label":t,class:{main:true,open:this.showOptions,success:this.success},onClick:t=>this.onClick(t),title:""},this.success?e(Mr,null):e(Or,null),e("p",null,t)),this.showOptions&&e("div",{class:"options"},e("ol",{role:"listbox"},this.indexes.map((t=>e("li",{role:"option"},e("button",{onClick:e=>this.chooseOption(e,t)},e("pos-resource",{uri:t.uri,lazy:true},e("pos-label",null)))))))))}async chooseOption(t,e){t.preventDefault();await this.addToLabelIndex(e)}get el(){return i(this)}static get watchers(){return{uri:["updateUri"]}}};const Or=()=>e("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},e("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 Mr=()=>e("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},e("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"}));Er.style=Tr;const Ur=":host {\n}\n\n.suggestions ol {\n border: 1px solid var(--color-grey-200);\n display: flex;\n flex-direction: column;\n position: absolute;\n margin: 0;\n padding: 0;\n z-index: var(--layer-top);\n list-style-type: none;\n box-shadow: var(--shadow-xl);\n}\n\n.suggestions {\n position: relative;\n li {\n padding: 1rem;\n background-color: white;\n pos-rich-link {\n --background-color: inherit;\n }\n &.selected {\n background-color: var(--color-blue);\n &:hover {\n background-color: var(--color-blue-700);\n }\n }\n &:hover {\n background-color: var(--color-grey-200);\n }\n }\n}\n\n.suggestions li.selected pos-rich-link {\n --label-color: white;\n --description-color: var(--color-grey-200);\n --uri-color: var(--color-grey-200);\n}\n\nion-searchbar {\n width: 100%;\n}\n\nform {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.bar {\n flex-grow: 1;\n}\n";const Ar=Ur;const Dr=class{constructor(e){t(this,e);this.subscribePodOs=a(this,"pod-os:init",7);this.linkEmitter=a(this,"pod-os:link",7);this.uri="";this.value=this.uri;this.searchIndex=undefined;this.suggestions=[];this.selectedIndex=-1;this.receivePodOs=async t=>{this.os=t}}componentWillLoad(){T(this);S.onChange("isLoggedIn",(async t=>{var e;if(t){this.searchIndex=await this.os.buildSearchIndex(S.state.profile)}else{(e=this.searchIndex)===null||e===void 0?void 0:e.clear()}}))}onChange(t){this.value=t.detail.value;this.search()}clearSuggestions(){this.suggestions=[];this.selectedIndex=-1}onClickSelf(t){t.stopPropagation()}handleKeyDown(t){if(t.key==="Escape"){this.clearSuggestions()}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.value?this.searchIndex.search(this.value):[]}}onSubmit(t){t.preventDefault();if(this.suggestions&&this.selectedIndex>-1){this.linkEmitter.emit(this.suggestions[this.selectedIndex].ref)}else{this.linkEmitter.emit(this.value)}}render(){return e("form",{key:"4888de70ada34ea9b9c916e5ae81104c0529537e",onSubmit:t=>this.onSubmit(t)},e("pos-make-findable",{key:"50aa2beb72217c922d6c078d6902103c901becf1",uri:this.uri}),e("div",{key:"9913034bc8d6c5b5c372d8b16897f840c9083ec1",class:"bar"},e("ion-searchbar",{key:"9b03d9f1c9c0c7ee55129d6f8646b58242a29c71",enterkeyhint:"search",placeholder:"Search or enter URI",value:this.uri,debounce:300,onIonChange:t=>this.onChange(t),onIonInput:t=>this.onChange(t)}),this.suggestions.length>0?e("div",{class:"suggestions"},e("ol",null,this.suggestions.map(((t,r)=>e("li",{class:r===this.selectedIndex?"selected":""},e("pos-rich-link",{uri:t.ref})))))):null))}};Dr.style=Ar;const Br=":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}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(--color-grey-800);font-weight:var(--weight-light);background:var(--color-grey-100);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 Rr=Br;const $r=class{constructor(e){t(this,e);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(){T(this)}render(){return e("form",{key:"b3d0782ab63cbdeaa5a7b6ba13dc9117855e7254",method:"dialog",onSubmit:t=>this.handleSubmit(t)},e("label",{key:"82fc1a30178b21907374e86683784413dfe948c4",htmlFor:"type"},"Type"),e("pos-select-term",{key:"810bc7b1cd1f27bafe589534720e93db4268149d",id:"type",placeholder:"",value:this.selectedTypeUri,"onPod-os:term-selected":t=>this.onTermSelected(t)}),e("label",{key:"5b4d9f05d6ad416255c4ebb1e2e54afd2a8fb84b",htmlFor:"name"},"Name"),e("input",{key:"5a3df6ca08b9b87dedd0996ec9d031b061e74941",id:"name",type:"text",value:this.name,onInput:t=>this.handleChange(t)}),this.newUri?e("div",{id:"new-uri",title:"This will be the URI of the new thing"},this.newUri):null,e("input",{key:"0e98162ac1ff439e571fd1d9885d99c4ef8dd4cc",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"]}}};$r.style=Rr;const Wr=":host{--width:300px;--height:300px;--border-radius:var(--border-radius, 0);--object-fit:var(--object-fit, cover)}";const Fr=Wr;const Nr=class{constructor(e){t(this,e);this.subscribeResource=a(this,"pod-os:resource",7);this.blurredBackground=false;this.receiveResource=t=>{this.resource=t}}componentWillLoad(){P(this)}render(){const t=this.resource?this.resource.picture():null;if(!t)return null;return e("pos-image",{blurredBackground:this.blurredBackground,src:t.url,alt:this.resource.label()})}};Nr.style=Fr;const Hr=class{constructor(e){t(this,e);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(){S.onChange("isLoggedIn",(()=>this.loadResource()));T(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 e("ion-progress-bar",{type:"indeterminate"})}if(this.error){return e("ion-card",null,e("ion-card-header",null,e("p",null,"Sorry, something went wrong"),e("p",null,"Status:",this.error.status),e("details",null,this.error.message)),e("ion-card-content",null,e("p",null,"You can try to open the link outside PodOS:"),e("a",{href:this.uri},this.uri)))}return e("slot",null)}static get watchers(){return{os:["loadResource"],uri:["loadResource"]}}};const Vr=":host {\n --background-color: inherit;\n --label-color: var(--color-grey-900);\n --description-color: var(--color-grey-900);\n --uri-color: var(--color-grey-600);\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(--color-grey-500);\n }\n}\n\na {\n color: var(--label-color);\n max-width: 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 qr=Vr;const Zr=class{constructor(e){t(this,e);this.linkEmitter=a(this,"pod-os:link",7)}render(){return e("pos-resource",{key:"eb0e3062c238419e7274fa29a24bea785d00961b",lazy:true,uri:this.uri},e("p",{key:"221085834dea0e3b247670774c5ac16e2eaf4f13",class:"content"},e("a",{key:"a22d6d39e128b7838eb2930644df562f780e126d",href:this.uri,onClick:t=>{t.preventDefault();this.linkEmitter.emit(this.uri)}},e("pos-label",{key:"a45b74a02056aae2cf9041c1bc654789c7245d20"})),e("span",{key:"0da1d42991bbb3cddeffaa5f0db5e4af27b11375",class:"url"},new URL(this.uri).host),e("pos-description",{key:"92308832190441e9520cc948970a70ca5b0b5a6b"})))}};Zr.style=qr;const Kr=(t,e,r)=>{const i=t.get(e);if(!i){t.set(e,[r])}else if(!i.includes(r)){i.push(r)}};const Gr=(t,e)=>{let r;return(...i)=>{if(r){clearTimeout(r)}r=setTimeout((()=>{r=0;t(...i)}),e)}};const Yr=t=>!("isConnected"in t)||t.isConnected;const Jr=Gr((t=>{for(let e of t.keys()){t.set(e,t.get(e).filter(Yr))}}),2e3);const Qr=()=>{if(typeof l!=="function"){return{}}const t=new Map;return{dispose:()=>t.clear(),get:e=>{const r=l();if(r){Kr(t,e,r)}},set:e=>{const r=t.get(e);if(r){t.set(e,r.filter(c))}Jr(t)},reset:()=>{t.forEach((t=>t.forEach(c)));Jr(t)}}};const ti=(t,e=((t,e)=>t!==e))=>{let r=new Map(Object.entries(t!==null&&t!==void 0?t:{}));const i={dispose:[],get:[],set:[],reset:[]};const n=()=>{r=new Map(Object.entries(t!==null&&t!==void 0?t:{}));i.reset.forEach((t=>t()))};const o=()=>{i.dispose.forEach((t=>t()));n()};const s=t=>{i.get.forEach((e=>e(t)));return r.get(t)};const a=(t,n)=>{const o=r.get(t);if(e(n,o,t)){r.set(t,n);i.set.forEach((e=>e(t,n,o)))}};const c=typeof Proxy==="undefined"?{}:new Proxy(t,{get(t,e){return s(e)},ownKeys(t){return Array.from(r.keys())},getOwnPropertyDescriptor(){return{enumerable:true,configurable:true}},has(t,e){return r.has(e)},set(t,e,r){a(e,r);return true}});const l=(t,e)=>{i[t].push(e);return()=>{ei(i[t],e)}};const d=(e,r)=>{const i=l("set",((t,i)=>{if(t===e){r(i)}}));const n=l("reset",(()=>r(t[e])));return()=>{i();n()}};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 b=t=>{const e=r.get(t);i.set.forEach((r=>r(t,e,e)))};return{state:c,get:s,set:a,on:l,onChange:d,use:h,dispose:o,reset:n,forceUpdate:b}};const ei=(t,e)=>{const r=t.indexOf(e);if(r>=0){t[r]=t[t.length-1];t.length--}};const ri=(t,e)=>{const r=ti(t,e);r.use(Qr());return r};const ii=t=>{var e;const r=window;const i=new URL(r.location.href);const n=(e=t===null||t===void 0?void 0:t.parseURL)!==null&&e!==void 0?e:oi;const{state:o,onChange:s,dispose:a}=ri({url:i,activePath:n(i)},((t,e,r)=>{if(r==="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=n(e)};const l=t=>{const{activePath:e}=o;for(let r of t){const i=ni(e,r.path);if(i){if(r.to!=null){const i=typeof r.to==="string"?r.to:r.to(e);c(i);return l(t)}else{return{params:i,route:r}}}}return undefined};const d=()=>{const t=new URL(r.location.href);o.url=t;o.activePath=n(t)};const h=(t,e)=>{const r=l(e);if(r){if(typeof r.route.jsx==="function"){return r.route.jsx(r.params)}else{return r.route.jsx}}};const b=()=>{r.removeEventListener("popstate",d);a()};const u={Switch:h,get url(){return o.url},get activePath(){return o.activePath},push:c,onChange:s,dispose:b};d();r.addEventListener("popstate",d);return u};const ni=(t,e)=>{if(typeof e==="string"){if(e===t){return{}}}else if(typeof e==="function"){const r=e(t);if(r){return r===true?{}:{...r}}}else{const r=e.exec(t);if(r){e.lastIndex=0;return{...r}}}return undefined};const oi=t=>t.pathname.toLowerCase();const si=".toolbar{display:flex;flex-direction:row;gap:0;align-items:center;margin-left:0.5rem}pos-navigation-bar{flex-grow:1}";const ai=si;const ci=ii();const li=class{constructor(e){t(this,e);this.routeChanged=a(this,"pod-os:route-changed",7);this.mode="standalone"}linkClicked(t){this.navigate(t.detail)}sessionRestored(t){ci.push(t.detail.url)}componentWillLoad(){this.updateUri();ci.onChange("url",(()=>{this.updateUri()}))}navigate(t){ci.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 e("slot",{key:"becbb85d61b266e5398345d86e639558e3e7ab40"})}};li.style=ai;const di=":host{display:block}input{border:none;padding-top:1rem;padding-bottom:1rem}input:focus{outline:none}";const hi=di;const bi=class{constructor(e){t(this,e);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(){T(this)}setTerms(){this.terms=this.os.listKnownTerms()}handleChange(t){this.termSelected.emit({uri:t.target.value})}render(){return e(r,{key:"ded0e73b0c40db8f2c6f54e55f014c82b8134ab3"},e("input",{key:"032c78e077685319599fe76f60b6457602310c95",part:"input",list:"terms",placeholder:this.placeholder,value:this.value,onChange:t=>this.handleChange(t)}),e("datalist",{key:"12fb5283fd009920a385f085e455ef2999f138a0",part:"terms",id:"terms"},this.terms.map((t=>e("option",{value:t.uri},t.shorthand)))))}static get delegatesFocus(){return true}static get watchers(){return{os:["setTerms"]}}};bi.style=hi;var ui;(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"})(ui||(ui={}));function fi(t,e){return t.some((t=>t.uri===e))}function pi(t){if(fi(t,"http://www.w3.org/ns/ldp#Container")){return ui.LdpContainer}else if(fi(t,"http://www.w3.org/2007/ont/link#RDFDocument")){return ui.RdfDocument}else if(fi(t,"http://www.w3.org/ns/iana/media-types/application/pdf#Resource")){return ui.DocumentViewer}else if(fi(t,"http://purl.org/dc/terms/Image")){return ui.ImageViewer}else if(fi(t,"http://www.w3.org/2007/ont/link#Document")){return ui.DocumentViewer}else{return ui.Generic}}const gi=class{constructor(e){t(this,e);this.subscribeResource=a(this,"pod-os:resource",7);this.receiveResource=t=>{this.types=t.types()}}componentWillLoad(){P(this)}render(){return this.types?this.renderApp():null}renderApp(){const t=pi(this.types);return e(t,null)}};export{A as ion_card,W as ion_card_content,q as ion_card_header,pt as ion_icon,xt as ion_progress_bar,jt as ion_ripple_effect,Mt as ion_searchbar,Bt as ion_skeleton_text,Wt as pos_add_new_thing,er as pos_app,nr as pos_app_browser,cr as pos_app_dashboard,lr as pos_description,br as pos_dialog,ur as pos_error_toast,gr as pos_example_resources,yr as pos_getting_started,xr as pos_image,zr as pos_internal_router,Cr as pos_label,jr as pos_login,Pr as pos_login_form,Er as pos_make_findable,Dr as pos_navigation_bar,$r as pos_new_thing_form,Nr as pos_picture,Hr as pos_resource,Zr as pos_rich_link,li as pos_router,bi as pos_select_term,gi as pos_type_router};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as e,H as r,d as i,e as n,f as o,w as s,i as a,j as c,k as l}from"./p-7a6a7690.js";import{i as d,c as h,d as b,a as u,r as f}from"./p-25270f1a.js";import{o as p,c as g,h as m}from"./p-669fab6c.js";import{g as v,c as y}from"./p-866a6047.js";import{i as w}from"./p-4d0cb38d.js";import{a as k,c as x,b as z,s as C,d as _}from"./p-0ee8b7a7.js";import{s as S,B as j}from"./p-4ccc1b59.js";import{P as L,L as I}from"./p-c984fc73.js";import{s as P}from"./p-f6671856.js";import"./p-98c00bd2.js";import{t as X}from"./p-278bf69e.js";import{s as T}from"./p-182f722d.js";import"./p-7efd6867.js";import"./p-7a33ba37.js";import"./p-8206b1f1.js";import"./p-d6769f21.js";const E=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:0.875rem;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}:host(.ion-activated){transform:scale3d(0.97, 0.97, 1)}";const O=E;const M=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:0.875rem;box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}";const U=M;const A=class{constructor(e){t(this,e);this.inheritedAriaAttributes={};this.color=undefined;this.button=false;this.type="button";this.disabled=false;this.download=undefined;this.href=undefined;this.rel=undefined;this.routerDirection="forward";this.routerAnimation=undefined;this.target=undefined}componentWillLoad(){this.inheritedAriaAttributes=d(this.el,["aria-label"])}isClickable(){return this.href!==undefined||this.button}renderCard(t){const r=this.isClickable();if(!r){return[e("slot",null)]}const{href:i,routerAnimation:n,routerDirection:o,inheritedAriaAttributes:s}=this;const a=r?i===undefined?"button":"a":"div";const c=a==="button"?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target};return e(a,Object.assign({},c,s,{class:"card-native",part:"native",disabled:this.disabled,onClick:t=>p(i,t,o,n)}),e("slot",null),r&&t==="md"&&e("ion-ripple-effect",null))}render(){const t=v(this);return e(r,{key:"b92792294360fd974324b31ed2d3db00d3e2f8cd",class:g(this.color,{[t]:true,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(t))}get el(){return i(this)}};A.style={ios:O,md:U};const D="ion-card-content{display:block;position:relative}.card-content-ios{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;font-size:1rem;line-height:1.4}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem}ion-card-header+.card-content-ios{padding-top:0}";const B=D;const R="ion-card-content{display:block;position:relative}.card-content-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:13px;padding-bottom:13px;font-size:0.875rem;line-height:1.5}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}";const $=R;const W=class{constructor(e){t(this,e)}render(){const t=v(this);return e(r,{key:"dd95806f042fcd124b18126679f671be6e32a021",class:{[t]:true,[`card-content-${t}`]:true}})}};W.style={ios:B,md:$};const F=":host{--background:transparent;--color:inherit;display:flex;position:relative;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:16px;flex-direction:column-reverse}@supports (backdrop-filter: blur(0)){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);backdrop-filter:saturate(180%) blur(30px)}}";const N=F;const H=":host{--background:transparent;--color:inherit;display:flex;position:relative;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}";const V=H;const q=class{constructor(e){t(this,e);this.color=undefined;this.translucent=false}render(){const t=v(this);return e(r,{key:"44077ad8e3edf7726d0f7a039046e32dc56a83c9",class:g(this.color,{"card-header-translucent":this.translucent,"ion-inherit-color":true,[t]:true})},e("slot",{key:"51b6f4048d25521ece18d79e5361c762af41cae7"}))}};q.style={ios:N,md:V};let Z;const K=()=>{if(typeof window==="undefined"){return new Map}else{if(!Z){const t=window;t.Ionicons=t.Ionicons||{};Z=t.Ionicons.map=t.Ionicons.map||new Map}return Z}};const G=t=>{let e=Q(t.src);if(e){return e}e=J(t.name,t.icon,t.mode,t.ios,t.md);if(e){return Y(e,t)}if(t.icon){e=Q(t.icon);if(e){return e}e=Q(t.icon[t.mode]);if(e){return e}}return null};const Y=(t,e)=>{const r=K().get(t);if(r){return r}try{return n(`svg/${t}.svg`)}catch(r){console.warn(`[Ionicons Warning]: Could not load icon with name "${t}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,e)}};const J=(t,e,r,i,n)=>{r=(r&&rt(r))==="ios"?"ios":"md";if(i&&r==="ios"){t=rt(i)}else if(n&&r==="md"){t=rt(n)}else{if(!t&&e&&!tt(e)){t=e}if(et(t)){t=rt(t)}}if(!et(t)||t.trim()===""){return null}const o=t.replace(/[a-z]|-|\d/gi,"");if(o!==""){return null}return t};const Q=t=>{if(et(t)){t=t.trim();if(tt(t)){return t}}return null};const tt=t=>t.length>0&&/(\/|\.)/.test(t);const et=t=>typeof t==="string";const rt=t=>t.toLowerCase();const it=(t,e=[])=>{const r={};e.forEach((e=>{if(t.hasAttribute(e)){const i=t.getAttribute(e);if(i!==null){r[e]=t.getAttribute(e)}t.removeAttribute(e)}}));return r};const nt=t=>{if(t){if(t.dir!==""){return t.dir.toLowerCase()==="rtl"}}return(document===null||document===void 0?void 0:document.dir.toLowerCase())==="rtl"};const ot=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 r=e.firstElementChild;if(r&&r.nodeName.toLowerCase()==="svg"){const t=r.getAttribute("class")||"";r.setAttribute("class",(t+" s-ion-icon").trim());if(st(r)){return e.innerHTML}}return""};const st=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(let e=0;e<t.attributes.length;e++){const r=t.attributes[e].name;if(et(r)&&r.toLowerCase().indexOf("on")===0){return false}}for(let e=0;e<t.childNodes.length;e++){if(!st(t.childNodes[e])){return false}}}return true};const at=t=>t.startsWith("data:image/svg+xml");const ct=t=>t.indexOf(";utf8,")!==-1;const lt=new Map;const dt=new Map;let ht;const bt=(t,e)=>{let r=dt.get(t);if(!r){if(typeof fetch!=="undefined"&&typeof document!=="undefined"){if(at(t)&&ct(t)){if(!ht){ht=new DOMParser}const e=ht.parseFromString(t,"text/html");const r=e.querySelector("svg");if(r){lt.set(t,r.outerHTML)}return Promise.resolve()}else{r=fetch(t).then((r=>{if(r.ok){return r.text().then((r=>{if(r&&e!==false){r=ot(r)}lt.set(t,r||"")}))}lt.set(t,"")}));dt.set(t,r)}}else{lt.set(t,"");return Promise.resolve()}}return r};const ut=":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 ft=ut;const pt=class{constructor(e){t(this,e);this.iconName=null;this.inheritedAttributes={};this.didLoadIcon=false;this.svgContent=undefined;this.isVisible=false;this.mode=gt();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=it(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,r){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;r()}}),{rootMargin:e});i.observe(t)}else{r()}}loadIcon(){if(this.isVisible){const t=G(this);if(t){if(lt.has(t)){this.svgContent=lt.get(t)}else{bt(t,this.sanitize).then((()=>this.svgContent=lt.get(t)))}this.didLoadIcon=true}}this.iconName=J(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:t,iconName:i,inheritedAttributes:n,el:o}=this;const s=this.mode||"md";const a=i?(i.includes("arrow")||i.includes("chevron"))&&t!==false:false;const c=t||a;return e(r,Object.assign({role:"img",class:Object.assign(Object.assign({[s]:true},mt(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":c,"icon-rtl":c&&nt(o)})},n),this.svgContent?e("div",{class:"icon-inner",innerHTML:this.svgContent}):e("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return i(this)}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}};const gt=()=>typeof document!=="undefined"&&document.documentElement.getAttribute("mode")||"md";const mt=t=>t?{"ion-color":true,[`ion-color-${t}`]:true}:null;pt.style=ft;const vt=":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 yt=vt;const wt=":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 kt=wt;const xt=class{constructor(e){t(this,e);this.type="determinate";this.reversed=false;this.value=0;this.buffer=1;this.color=undefined}render(){const{color:t,type:i,reversed:n,value:o,buffer:s}=this;const a=y.getBoolean("_testing");const c=v(this);return e(r,{key:"944b79ed6fce1b2c0ed48681cd8517a5abbddd80",role:"progressbar","aria-valuenow":i==="determinate"?o:null,"aria-valuemin":"0","aria-valuemax":"1",class:g(t,{[c]:true,[`progress-bar-${i}`]:true,"progress-paused":a,"progress-bar-reversed":document.dir==="rtl"?!n:n})},i==="indeterminate"?zt():Ct(o,s))}};const zt=()=>e("div",{part:"track",class:"progress-buffer-bar"},e("div",{class:"indeterminate-bar-primary"},e("span",{part:"progress",class:"progress-indeterminate"})),e("div",{class:"indeterminate-bar-secondary"},e("span",{part:"progress",class:"progress-indeterminate"})));const Ct=(t,r)=>{const i=h(0,t,1);const n=h(0,r,1);return[e("div",{part:"progress",class:"progress",style:{transform:`scaleX(${i})`}}),e("div",{class:{"buffer-circles-container":true,"ion-hide":n===1},style:{transform:`translateX(${n*100}%)`}},e("div",{class:"buffer-circles-container",style:{transform:`translateX(-${n*100}%)`}},e("div",{part:"stream",class:"buffer-circles"}))),e("div",{part:"track",class:"progress-buffer-bar",style:{transform:`scaleX(${n})`}})]};xt.style={ios:yt,md:kt};const _t=":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 St=_t;const jt=class{constructor(e){t(this,e);this.type="bounded"}async addRipple(t,e){return new Promise((r=>{o((()=>{const i=this.el.getBoundingClientRect();const n=i.width;const o=i.height;const a=Math.sqrt(n*n+o*o);const c=Math.max(o,n);const l=this.unbounded?c:a+It;const d=Math.floor(c*Pt);const h=l/d;let b=t-i.left;let u=e-i.top;if(this.unbounded){b=n*.5;u=o*.5}const f=b-d*.5;const p=u-d*.5;const g=n*.5-b;const m=o*.5-u;s((()=>{const t=document.createElement("div");t.classList.add("ripple-effect");const e=t.style;e.top=p+"px";e.left=f+"px";e.width=e.height=d+"px";e.setProperty("--final-scale",`${h}`);e.setProperty("--translate-end",`${g}px, ${m}px`);const i=this.el.shadowRoot||this.el;i.appendChild(t);setTimeout((()=>{r((()=>{Lt(t)}))}),225+100)}))}))}))}get unbounded(){return this.type==="unbounded"}render(){const t=v(this);return e(r,{key:"f1129019a6d556b008c754aeb79618c69baea9f8",role:"presentation",class:{[t]:true,unbounded:this.unbounded}})}get el(){return i(this)}};const Lt=t=>{t.classList.add("fade-out");setTimeout((()=>{t.remove()}),200)};const It=10;const Pt=.5;jt.style=St;const Xt=".sc-ion-searchbar-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);box-sizing:border-box}.ion-color.sc-ion-searchbar-ios-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:inherit}.searchbar-search-icon.sc-ion-searchbar-ios{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ios{display:block;position:relative;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ios{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;box-shadow:var(--box-shadow);box-sizing:border-box;appearance:none}.searchbar-input.sc-ion-searchbar-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ios::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ios>div.sc-ion-searchbar-ios{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);appearance:none}.searchbar-clear-button.sc-ion-searchbar-ios:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{display:block}.searchbar-disabled.sc-ion-searchbar-ios-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-ios-h{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);--border-radius:10px;--box-shadow:none;--cancel-button-color:var(--ion-color-primary, #3880ff);--clear-button-color:var(--ion-color-step-600, #666666);--color:var(--ion-text-color, #000);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:12px;padding-bottom:12px;min-height:60px;contain:content}.searchbar-input-container.sc-ion-searchbar-ios{min-height:36px}.searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:calc(50% - 60px);margin-inline-start:calc(50% - 60px);top:0;position:absolute;width:1.375rem;height:100%;contain:strict}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{inset-inline-start:5px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{left:5px}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}[dir=rtl].sc-ion-searchbar-ios .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;right:5px}}}.searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:6px;padding-bottom:6px;height:100%;font-size:1.0625rem;font-weight:400;contain:strict}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem;-webkit-padding-end:1.75rem;padding-inline-end:1.75rem}.searchbar-clear-button.sc-ion-searchbar-ios{top:0;background-position:center;position:absolute;width:1.875rem;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{inset-inline-end:0}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{right:0}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}[dir=rtl].sc-ion-searchbar-ios .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;left:0}}}.searchbar-clear-icon.sc-ion-searchbar-ios{width:1.125rem;height:100%}.searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;flex-shrink:0;background-color:transparent;font-size:16px}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:0;margin-inline-start:0}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.875rem;padding-inline-start:1.875rem}.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{display:block}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{transition:all 300ms ease}.searchbar-animated.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{opacity:1;pointer-events:auto}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-margin-end:-100%;margin-inline-end:-100%;transform:translate3d(0, 0, 0);transition:all 300ms ease;opacity:0;pointer-events:none}.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{transition-duration:0ms}.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{color:var(--ion-color-base)}@media (any-hover: hover){.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios:hover{color:var(--ion-color-tint)}}ion-toolbar.sc-ion-searchbar-ios-h,ion-toolbar .sc-ion-searchbar-ios-h{padding-top:1px;padding-bottom:15px;min-height:52px}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color),ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color){color:inherit}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios{color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios{background:rgba(var(--ion-color-contrast-rgb), 0.07);color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}";const Tt=Xt;const Et=".sc-ion-searchbar-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);box-sizing:border-box}.ion-color.sc-ion-searchbar-md-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{color:inherit}.searchbar-search-icon.sc-ion-searchbar-md{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-md{display:block;position:relative;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-md{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;box-shadow:var(--box-shadow);box-sizing:border-box;appearance:none}.searchbar-input.sc-ion-searchbar-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-md::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-md>div.sc-ion-searchbar-md{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);appearance:none}.searchbar-clear-button.sc-ion-searchbar-md:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{display:block}.searchbar-disabled.sc-ion-searchbar-md-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-md-h{--background:var(--ion-background-color, #fff);--border-radius:2px;--box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--cancel-button-color:var(--ion-color-step-900, #1a1a1a);--clear-button-color:initial;--color:var(--ion-color-step-850, #262626);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;background:inherit}.searchbar-search-icon.sc-ion-searchbar-md{top:11px;width:1.3125rem;height:1.3125rem}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{inset-inline-start:16px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{left:16px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}[dir=rtl].sc-ion-searchbar-md .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:16px}}}.searchbar-cancel-button.sc-ion-searchbar-md{top:0;background-color:transparent;font-size:1.5em}@supports (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{inset-inline-start:9px}}@supports not (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{left:9px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}[dir=rtl].sc-ion-searchbar-md .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}@supports selector(:dir(rtl)){.searchbar-cancel-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:9px}}}.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-cancel-button.sc-ion-searchbar-md{position:absolute}.searchbar-search-icon.ion-activated.sc-ion-searchbar-md,.searchbar-cancel-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-input.sc-ion-searchbar-md{-webkit-padding-start:3.4375rem;padding-inline-start:3.4375rem;-webkit-padding-end:3.4375rem;padding-inline-end:3.4375rem;padding-top:0.375rem;padding-bottom:0.375rem;background-position:left 8px center;height:auto;font-size:1rem;font-weight:400;line-height:30px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}[dir=rtl].sc-ion-searchbar-md .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}@supports selector(:dir(rtl)){.searchbar-input.sc-ion-searchbar-md:dir(rtl){background-position:right 8px center}}.searchbar-clear-button.sc-ion-searchbar-md{top:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{inset-inline-end:13px}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{right:13px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}[dir=rtl].sc-ion-searchbar-md .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;left:13px}}}.searchbar-clear-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-clear-icon.sc-ion-searchbar-md{width:1.375rem;height:100%}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md{display:none}ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px;padding-top:3px;padding-bottom:3px}";const Ot=Et;const Mt=class{constructor(e){t(this,e);this.ionInput=a(this,"ionInput",7);this.ionChange=a(this,"ionChange",7);this.ionCancel=a(this,"ionCancel",7);this.ionClear=a(this,"ionClear",7);this.ionBlur=a(this,"ionBlur",7);this.ionFocus=a(this,"ionFocus",7);this.ionStyle=a(this,"ionStyle",7);this.isCancelVisible=false;this.shouldAlignLeft=true;this.inputId=`ion-searchbar-${Ut++}`;this.inheritedAttributes={};this.onClearInput=async t=>{this.ionClear.emit();return new Promise((e=>{setTimeout((()=>{const r=this.getValue();if(r!==""){this.value="";this.emitInputChange();if(t&&!this.focused){this.setFocus();this.focusedValue=r}}e()}),16*4)}))};this.onCancelSearchbar=async t=>{if(t){t.preventDefault();t.stopPropagation()}this.ionCancel.emit();const e=this.getValue();const r=this.focused;await this.onClearInput();if(e&&!r){this.emitValueChange(t)}if(this.nativeInput){this.nativeInput.blur()}};this.onInput=t=>{const e=t.target;if(e){this.value=e.value}this.emitInputChange(t)};this.onChange=t=>{this.emitValueChange(t)};this.onBlur=t=>{this.focused=false;this.ionBlur.emit();this.positionElements();if(this.focusedValue!==this.value){this.emitValueChange(t)}this.focusedValue=undefined};this.onFocus=()=>{this.focused=true;this.focusedValue=this.value;this.ionFocus.emit();this.positionElements()};this.focused=false;this.noAnimate=true;this.color=undefined;this.animated=false;this.autocapitalize="default";this.autocomplete="off";this.autocorrect="off";this.cancelButtonIcon=y.get("backButtonIcon",k);this.cancelButtonText="Cancel";this.clearIcon=undefined;this.debounce=undefined;this.disabled=false;this.inputmode=undefined;this.enterkeyhint=undefined;this.maxlength=undefined;this.minlength=undefined;this.name=this.inputId;this.placeholder="Search";this.searchIcon=undefined;this.showCancelButton="never";this.showClearButton="always";this.spellcheck=false;this.type="search";this.value=""}onLangChanged(t){this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{lang:t});c(this)}onDirChanged(t){this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{dir:t});c(this)}debounceChanged(){const{ionInput:t,debounce:e,originalIonInput:r}=this;this.ionInput=e===undefined?r!==null&&r!==void 0?r:t:b(t,e)}valueChanged(){const t=this.nativeInput;const e=this.getValue();if(t&&t.value!==e){t.value=e}}showCancelButtonChanged(){requestAnimationFrame((()=>{this.positionElements();c(this)}))}connectedCallback(){this.emitStyle()}componentWillLoad(){this.inheritedAttributes=Object.assign({},d(this.el,["lang","dir"]))}componentDidLoad(){this.originalIonInput=this.ionInput;this.positionElements();this.debounceChanged();setTimeout((()=>{this.noAnimate=false}),300)}emitStyle(){this.ionStyle.emit({searchbar:true})}async setFocus(){if(this.nativeInput){this.nativeInput.focus()}}async getInputElement(){if(!this.nativeInput){await new Promise((t=>u(this.el,t)))}return Promise.resolve(this.nativeInput)}emitValueChange(t){const{value:e}=this;const r=e==null?e:e.toString();this.focusedValue=r;this.ionChange.emit({value:r,event:t})}emitInputChange(t){const{value:e}=this;this.ionInput.emit({value:e,event:t})}positionElements(){const t=this.getValue();const e=this.shouldAlignLeft;const r=v(this);const i=!this.animated||t.trim()!==""||!!this.focused;this.shouldAlignLeft=i;if(r!=="ios"){return}if(e!==i){this.positionPlaceholder()}if(this.animated){this.positionCancelButton()}}positionPlaceholder(){const t=this.nativeInput;if(!t){return}const e=w(this.el);const r=(this.el.shadowRoot||this.el).querySelector(".searchbar-search-icon");if(this.shouldAlignLeft){t.removeAttribute("style");r.removeAttribute("style")}else{const i=document;const n=i.createElement("span");n.innerText=this.placeholder||"";i.body.appendChild(n);f((()=>{const i=n.offsetWidth;n.remove();const o="calc(50% - "+i/2+"px)";const s="calc(50% - "+(i/2+r.clientWidth+8)+"px)";if(e){t.style.paddingRight=o;r.style.marginRight=s}else{t.style.paddingLeft=o;r.style.marginLeft=s}}))}}positionCancelButton(){const t=w(this.el);const e=(this.el.shadowRoot||this.el).querySelector(".searchbar-cancel-button");const r=this.shouldShowCancelButton();if(e!==null&&r!==this.isCancelVisible){const i=e.style;this.isCancelVisible=r;if(r){if(t){i.marginLeft="0"}else{i.marginRight="0"}}else{const r=e.offsetWidth;if(r>0){if(t){i.marginLeft=-r+"px"}else{i.marginRight=-r+"px"}}}}}getValue(){return this.value||""}hasValue(){return this.getValue()!==""}shouldShowCancelButton(){if(this.showCancelButton==="never"||this.showCancelButton==="focus"&&!this.focused){return false}return true}shouldShowClearButton(){if(this.showClearButton==="never"||this.showClearButton==="focus"&&!this.focused){return false}return true}render(){const{cancelButtonText:t,autocapitalize:i}=this;const n=this.animated&&y.getBoolean("animated",true);const o=v(this);const s=this.clearIcon||(o==="ios"?x:z);const a=this.searchIcon||(o==="ios"?C:_);const c=this.shouldShowCancelButton();const l=this.showCancelButton!=="never"&&e("button",{key:"9c7b4d2e86d9bcd12e57c9a96723d3da598a3773","aria-label":t,"aria-hidden":c?undefined:"true",type:"button",tabIndex:o==="ios"&&!c?-1:undefined,onMouseDown:this.onCancelSearchbar,onTouchStart:this.onCancelSearchbar,class:"searchbar-cancel-button"},e("div",{key:"1c25268a776134cccd29eb752898cb8ac0eed30f","aria-hidden":"true"},o==="md"?e("ion-icon",{"aria-hidden":"true",mode:o,icon:this.cancelButtonIcon,lazy:false}):t));return e(r,{key:"feef9fc7e405656e134a76dc037aaaa1a4ce36b4",role:"search","aria-disabled":this.disabled?"true":null,class:g(this.color,{[o]:true,"searchbar-animated":n,"searchbar-disabled":this.disabled,"searchbar-no-animate":n&&this.noAnimate,"searchbar-has-value":this.hasValue(),"searchbar-left-aligned":this.shouldAlignLeft,"searchbar-has-focus":this.focused,"searchbar-should-show-clear":this.shouldShowClearButton(),"searchbar-should-show-cancel":this.shouldShowCancelButton()})},e("div",{key:"92e3925dc0de468e5665705902153837105dfa57",class:"searchbar-input-container"},e("input",Object.assign({key:"fb74faf81b347a62338ccdac981525df1c52b322","aria-label":"search text",disabled:this.disabled,ref:t=>this.nativeInput=t,class:"searchbar-input",inputMode:this.inputmode,enterKeyHint:this.enterkeyhint,name:this.name,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,minLength:this.minlength,maxLength:this.maxlength,placeholder:this.placeholder,type:this.type,value:this.getValue(),autoCapitalize:i==="default"?undefined:i,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,spellcheck:this.spellcheck},this.inheritedAttributes)),o==="md"&&l,e("ion-icon",{key:"d58c3636dac1d2e4135989f4c07dc95c51492e60","aria-hidden":"true",mode:o,icon:a,lazy:false,class:"searchbar-search-icon"}),e("button",{key:"1cece7c63ca5ca4b8799e15ee6d2bac100ef0d5e","aria-label":"reset",type:"button","no-blur":true,class:"searchbar-clear-button",onPointerDown:t=>{t.preventDefault()},onClick:()=>this.onClearInput(true)},e("ion-icon",{key:"fe3c2b9cac29002f69e95a89b554c7504e2df050","aria-hidden":"true",mode:o,icon:s,lazy:false,class:"searchbar-clear-icon"}))),o==="ios"&&l)}get el(){return i(this)}static get watchers(){return{lang:["onLangChanged"],dir:["onDirChanged"],debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}}};let Ut=0;Mt.style={ios:Tt,md:Ot};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 Dt=At;const Bt=class{constructor(e){t(this,e);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&&y.getBoolean("animated",true);const i=m("ion-avatar",this.el)||m("ion-thumbnail",this.el);const n=v(this);return e(r,{key:"4dab0fd2de666de12ad8f6dc6ed1e1de0be67ddd",class:{[n]:true,"skeleton-text-animated":t,"in-media":i}},e("span",{key:"f8f908ec24d65e63b14d9a54640a5f18f0fa8fa5"}," "))}get el(){return i(this)}};Bt.style=Dt;const Rt=":host{font-family:var(--font-sans);display:block}button#new{cursor:pointer;display:flex;align-items:center;justify-content:center;border:none;width:var(--scale-5);height:var(--scale-5);background-color:var(--pos-primary-color);color:var(--color-grey-50);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 $t=Rt;const Wt=class{constructor(e){t(this,e)}openDialog(){this.dialog.showModal()}render(){return e(r,{key:"35b8629fc9ac9d9e759009f329dc9437307649c3"},e("button",{key:"b6c0b1d06fbed05a079c1e4cb684f227fd40d098",id:"new",title:"Add a new thing",onClick:()=>this.openDialog()},e("ion-icon",{key:"2dfbcff7480dfc7397a5810ca7a33b9e583a77ee",name:"add-circle-outline"})),e("pos-dialog",{key:"a61bf93754ca323fbc23137956a00c39be81cad9",ref:t=>this.dialog=t},e("span",{key:"a4095e3c9ddd26e18ce002a05ef65d8895894589",slot:"title"},"Add a new thing"),e("pos-new-thing-form",{key:"136cfbbab823f5abc313642e1dc04f67d5d81777",slot:"content",referenceUri:this.referenceUri})))}};Wt.style=$t;const Ft=()=>new L;function Nt(t){return typeof t==="function"}function Ht(t){const e=t=>{Error.call(t);t.stack=(new Error).stack};const r=t(e);r.prototype=Object.create(Error.prototype);r.prototype.constructor=r;return r}const Vt=Ht((t=>function e(r){t(this);this.message=r?`${r.length} errors occurred during unsubscription:\n${r.map(((t,e)=>`${e+1}) ${t.toString()}`)).join("\n ")}`:"";this.name="UnsubscriptionError";this.errors=r}));function qt(t,e){if(t){const r=t.indexOf(e);0<=r&&t.splice(r,1)}}class Zt{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:r}=this;if(Nt(r)){try{r()}catch(e){t=e instanceof Vt?e.errors:[e]}}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const e of i){try{Yt(e)}catch(e){t=t!==null&&t!==void 0?t:[];if(e instanceof Vt){t=[...t,...e.errors]}else{t.push(e)}}}}if(t){throw new Vt(t)}}}add(t){var e;if(t&&t!==this){if(this.closed){Yt(t)}else{if(t instanceof Zt){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)){qt(e,t)}}remove(t){const{_finalizers:e}=this;e&&qt(e,t);if(t instanceof Zt){t._removeParent(this)}}}Zt.EMPTY=(()=>{const t=new Zt;t.closed=true;return t})();const Kt=Zt.EMPTY;function Gt(t){return t instanceof Zt||t&&"closed"in t&&Nt(t.remove)&&Nt(t.add)&&Nt(t.unsubscribe)}function Yt(t){if(Nt(t)){t()}else{t.unsubscribe()}}const Jt={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false};const Qt={setTimeout(t,e,...r){const{delegate:i}=Qt;if(i===null||i===void 0?void 0:i.setTimeout){return i.setTimeout(t,e,...r)}return setTimeout(t,e,...r)},clearTimeout(t){const{delegate:e}=Qt;return((e===null||e===void 0?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:undefined};function te(t){Qt.setTimeout((()=>{const{onUnhandledError:e}=Jt;if(e){e(t)}else{throw t}}))}function ee(){}const re=(()=>oe("C",undefined,undefined))();function ie(t){return oe("E",undefined,t)}function ne(t){return oe("N",t,undefined)}function oe(t,e,r){return{kind:t,value:e,error:r}}let se=null;function ae(t){if(Jt.useDeprecatedSynchronousErrorHandling){const e=!se;if(e){se={errorThrown:false,error:null}}t();if(e){const{errorThrown:t,error:e}=se;se=null;if(t){throw e}}}else{t()}}class ce extends Zt{constructor(t){super();this.isStopped=false;if(t){this.destination=t;if(Gt(t)){t.add(this)}}else{this.destination=ge}}static create(t,e,r){return new be(t,e,r)}next(t){if(this.isStopped){pe(ne(t),this)}else{this._next(t)}}error(t){if(this.isStopped){pe(ie(t),this)}else{this.isStopped=true;this._error(t)}}complete(){if(this.isStopped){pe(re,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 le=Function.prototype.bind;function de(t,e){return le.call(t,e)}class he{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next){try{e.next(t)}catch(t){ue(t)}}}error(t){const{partialObserver:e}=this;if(e.error){try{e.error(t)}catch(t){ue(t)}}else{ue(t)}}complete(){const{partialObserver:t}=this;if(t.complete){try{t.complete()}catch(t){ue(t)}}}}class be extends ce{constructor(t,e,r){super();let i;if(Nt(t)||!t){i={next:t!==null&&t!==void 0?t:undefined,error:e!==null&&e!==void 0?e:undefined,complete:r!==null&&r!==void 0?r:undefined}}else{let e;if(this&&Jt.useDeprecatedNextContext){e=Object.create(t);e.unsubscribe=()=>this.unsubscribe();i={next:t.next&&de(t.next,e),error:t.error&&de(t.error,e),complete:t.complete&&de(t.complete,e)}}else{i=t}}this.destination=new he(i)}}function ue(t){{te(t)}}function fe(t){throw t}function pe(t,e){const{onStoppedNotification:r}=Jt;r&&Qt.setTimeout((()=>r(t,e)))}const ge={closed:true,next:ee,error:fe,complete:ee};const me=(()=>typeof Symbol==="function"&&Symbol.observable||"@@observable")();function ve(t){return t}function ye(t){if(t.length===0){return ve}if(t.length===1){return t[0]}return function e(r){return t.reduce(((t,e)=>e(t)),r)}}class we{constructor(t){if(t){this._subscribe=t}}lift(t){const e=new we;e.source=this;e.operator=t;return e}subscribe(t,e,r){const i=ze(t)?t:new be(t,e,r);ae((()=>{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=ke(e);return new e(((e,r)=>{const i=new be({next:e=>{try{t(e)}catch(t){r(t);i.unsubscribe()}},error:r,complete:e});this.subscribe(i)}))}_subscribe(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)}[me](){return this}pipe(...t){return ye(t)(this)}toPromise(t){t=ke(t);return new t(((t,e)=>{let r;this.subscribe((t=>r=t),(t=>e(t)),(()=>t(r)))}))}}we.create=t=>new we(t);function ke(t){var e;return(e=t!==null&&t!==void 0?t:Jt.Promise)!==null&&e!==void 0?e:Promise}function xe(t){return t&&Nt(t.next)&&Nt(t.error)&&Nt(t.complete)}function ze(t){return t&&t instanceof ce||xe(t)&&Gt(t)}function Ce(t){return Nt(t===null||t===void 0?void 0:t.lift)}function _e(t){return e=>{if(Ce(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 Se(t,e,r,i,n){return new je(t,e,r,i,n)}class je extends ce{constructor(t,e,r,i,n,o){super(t);this.onFinalize=n;this.shouldUnsubscribe=o;this._next=e?function(r){try{e(r)}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=r?function(){try{r()}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 Le=Ht((t=>function e(){t(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}));class Ie extends we{constructor(){super();this.closed=false;this.currentObservers=null;this.observers=[];this.isStopped=false;this.hasError=false;this.thrownError=null}lift(t){const e=new Pe(this,this);e.operator=t;return e}_throwIfClosed(){if(this.closed){throw new Le}}next(t){ae((()=>{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){ae((()=>{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(){ae((()=>{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:r,observers:i}=this;if(e||r){return Kt}this.currentObservers=null;i.push(t);return new Zt((()=>{this.currentObservers=null;qt(i,t)}))}_checkFinalizedStatuses(t){const{hasError:e,thrownError:r,isStopped:i}=this;if(e){t.error(r)}else if(i){t.complete()}}asObservable(){const t=new we;t.source=this;return t}}Ie.create=(t,e)=>new Pe(t,e);class Pe extends Ie{constructor(t,e){super();this.destination=t;this.source=e}next(t){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.next)===null||r===void 0?void 0:r.call(e,t)}error(t){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.error)===null||r===void 0?void 0:r.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,r;return(r=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&r!==void 0?r:Kt}}function Xe(t,e,r,i){function n(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(t){o(t)}}function a(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?r(t.value):n(t.value).then(s,a)}c((i=i.apply(t,e||[])).next())}))}function Te(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.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 Ee(t){return this instanceof Ee?(this.v=t,this):new Ee(t)}function Oe(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(t,e||[]),n,o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(t){if(i[t])n[t]=function(e){return new Promise((function(r,i){o.push([t,e,r,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 Ee?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 Me(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Te==="function"?Te(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(e){r[e]=t[e]&&function(r){return new Promise((function(i,o){r=t[e](r),n(i,o,r.done,r.value)}))}}function n(t,e,r,i){Promise.resolve(i).then((function(e){t({value:e,done:r})}),e)}}typeof SuppressedError==="function"?SuppressedError:function(t,e,r){var i=new Error(r);return i.name="SuppressedError",i.error=t,i.suppressed=e,i};const Ue=t=>t&&typeof t.length==="number"&&typeof t!=="function";function Ae(t){return Nt(t===null||t===void 0?void 0:t.then)}function De(t){return Nt(t[me])}function Be(t){return Symbol.asyncIterator&&Nt(t===null||t===void 0?void 0:t[Symbol.asyncIterator])}function Re(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 $e(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}const We=$e();function Fe(t){return Nt(t===null||t===void 0?void 0:t[We])}function Ne(t){return Oe(this,arguments,(function*e(){const r=t.getReader();try{while(true){const{value:t,done:e}=yield Ee(r.read());if(e){return yield Ee(void 0)}yield yield Ee(t)}}finally{r.releaseLock()}}))}function He(t){return Nt(t===null||t===void 0?void 0:t.getReader)}function Ve(t){if(t instanceof we){return t}if(t!=null){if(De(t)){return qe(t)}if(Ue(t)){return Ze(t)}if(Ae(t)){return Ke(t)}if(Be(t)){return Ye(t)}if(Fe(t)){return Ge(t)}if(He(t)){return Je(t)}}throw Re(t)}function qe(t){return new we((e=>{const r=t[me]();if(Nt(r.subscribe)){return r.subscribe(e)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function Ze(t){return new we((e=>{for(let r=0;r<t.length&&!e.closed;r++){e.next(t[r])}e.complete()}))}function Ke(t){return new we((e=>{t.then((t=>{if(!e.closed){e.next(t);e.complete()}}),(t=>e.error(t))).then(null,te)}))}function Ge(t){return new we((e=>{for(const r of t){e.next(r);if(e.closed){return}}e.complete()}))}function Ye(t){return new we((e=>{Qe(t,e).catch((t=>e.error(t)))}))}function Je(t){return Ye(Ne(t))}function Qe(t,e){var r,i;var n,o;return Xe(this,void 0,void 0,(function*(){try{for(r=Me(t);i=yield r.next(),!i.done;){const t=i.value;e.next(t);if(e.closed){return}}}catch(t){n={error:t}}finally{try{if(i&&!i.done&&(o=r.return))yield o.call(r)}finally{if(n)throw n.error}}e.complete()}))}function tr(t){return _e(((e,r)=>{Ve(t).subscribe(Se(r,(()=>r.complete()),ee));!r.closed&&e.subscribe(r)}))}const er=class{constructor(e){t(this,e);this.sessionRestoredEmitter=a(this,"pod-os:session-restored",7);this.restorePreviousSession=false;this.disconnected$=new Ie}componentWillLoad(){this.os=Ft();this.os.onSessionRestore((t=>{this.sessionRestoredEmitter.emit({url:t})}));this.os.handleIncomingRedirect(this.restorePreviousSession);this.os.observeSession().pipe(tr(this.disconnected$)).subscribe((async t=>{S.state.webId=t.webId;if(t.isLoggedIn){const e=await this.os.fetchProfile(t.webId);S.state.profile=e}S.state.isLoggedIn=t.isLoggedIn}))}disconnectedCallback(){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 e("slot",{key:"32436fcf8726f4c6b3079f402c296bd3c6cafd04"})}};const rr="pos-router{margin:0;padding:0;display:flex;flex-direction:column;height:100%}pos-navigation-bar{max-width:var(--width-lg);margin:0}pos-add-new-thing,pos-login{flex:0 1 auto;}header,footer{display:flex;gap:var(--size-1);height:auto;justify-content:center;align-items:center;padding:var(--size-1)}footer svg{width:var(--size-5);height:var(--size-5)}footer{font-size:var(--scale-fluid-000)}header{flex-wrap:wrap;padding:0 var(--size-8)}main{flex:1;max-height:100vh;overflow:auto}@media (max-width: 640px){header{padding:0 var(--size-1) var(--size-1);justify-content:space-between}pos-navigation-bar{flex-basis:100%;order:0}pos-add-new-thing,pos-login{order:1}}";const ir=rr;const nr=class{constructor(e){t(this,e);this.restorePreviousSession=false;this.mode="standalone";this.uri=""}render(){return e(r,{key:"50b6e91f4e98be29cfa37552eb799883aeb49c9e"},e("pos-app",{key:"652617d5eaf3653caeb58b9e93dff09810a587a3",restorePreviousSession:this.restorePreviousSession},e("pos-error-toast",{key:"f4a29b30c2a4caece50c0da046426bc50a3b402e"},e("pos-router",{key:"d3f2307db47406c4d84c9b27ac767d263ae81c32",mode:this.mode,"onPod-os:route-changed":t=>this.uri=t.detail},e("header",{key:"521c8469dae209a27780d62a5922f8a15d393e07"},e("pos-add-new-thing",{key:"2fdd9716da4b3590fb0983a4b50f8c63eca26dce",referenceUri:this.uri}),e("pos-navigation-bar",{key:"6add9651de9ff5ca8496470c0df1341927683001",uri:this.uri==="pod-os:dashboard"?"":this.uri}),e("pos-login",{key:"87a60cc03fc63a2ca68b294726e7e44a09bdc835"})),e("main",{key:"dd2b3de09ca7f8957b240b030cafeeac37e76c1b"},this.uri.startsWith("pod-os:")?e("pos-internal-router",{uri:this.uri}):e("pos-resource",{key:this.uri,uri:this.uri},e("pos-type-router",null))),e("footer",{key:"ea1444713656c8740d81c5ac777b72bb6e287729"},e(or,{key:"1bba3eec9e30c30f9132a6524e00ec212169f402"}),e("span",{key:"3b38a5e1704559f271075b60a27d8334f41a09dc"},"PodOS Browser"))))))}};const or=()=>e("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M50 350 L50 100 L200 50 L350 100 L350 350 Z",style:{fill:"#008BF8",stroke:"#008BF8","stroke-width":"70"},"stroke-linejoin":"round"}),e("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"}),e("path",{d:"M150 250 L150 200 L200 180 L250 200 L250 250 Z",style:{fill:"#DC0073",stroke:"#DC0073","stroke-width":"20"},"stroke-linejoin":"round"}));nr.style=ir;const sr=":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;height:100%;background:linear-gradient(230deg, rgb(251, 251, 255) 0%, rgb(215, 223, 252) 100%)}";const ar=sr;const cr=class{constructor(e){t(this,e)}render(){return e(r,{key:"238188758d52f7a78180d9dcacf52f64d07990c4"},e("pos-getting-started",{key:"da58685fcdbe522a442675d93270fbd553a8c5db"}),e("pos-example-resources",{key:"538845ab6065040e89abb9fdac166f01e5bfa7b4"}))}};cr.style=ar;const lr=class{constructor(e){t(this,e);this.subscribeResource=a(this,"pod-os:resource",7);this.receiveResource=t=>{this.resource=t}}componentWillLoad(){P(this)}render(){return this.resource?this.resource.description():null}};const dr="dialog{background-color:var(--pos-background-color);border:none;border-radius:var(--radius-md);box-shadow:var(--shadow-md);max-width:var(--width-xs)}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(--color-grey-800)}";const hr=dr;const br=class{constructor(e){t(this,e)}async showModal(){this.dialog.showModal()}async close(){this.dialog.close()}render(){return e(r,{key:"c225a4ac0e04d0a71fdb0b98c6b2ec8619f465b2"},e("dialog",{key:"ca442886d0651fce3b9b565dba18a6bda30750cd",ref:t=>this.dialog=t},e("header",{key:"5589443a2551bb8ed14870bacdbaaf0b93b0cfe2"},e("slot",{key:"abad20ea1a223ad2229bebcca6c7f3fe09ee4d05",name:"title"}),e("button",{key:"2da0f8dfc03a15c90dc099ee824369564ac12d72",tabindex:-1,id:"close",title:"Close",onClick:()=>this.close()},e("ion-icon",{key:"bab7a9b15ebbec354e84aab7a84ca34a01e62600",name:"close-outline"}))),e("slot",{key:"51978d27aef2308e0b66374087543705f0ac391c",name:"content"})))}};br.style=hr;const ur=class{constructor(e){t(this,e)}async unhandledRejection(t){await this.showToast(t.reason)}async catchError(t){t.stopPropagation();console.error(t.detail);await this.showToast(t.detail.message)}async showToast(t){const e=await X.create({message:t,duration:1e4,position:"top",color:"danger",buttons:[{text:"Dismiss",role:"cancel"}]});await e.present()}render(){return e("slot",{key:"1abf0983dd843eb8b3342ec1fda0e25d02a2df5a"})}};const fr=":host{border:var(--size-px) solid var(--color-grey-100);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--color-white)}.links{display:flex;flex-direction:column;gap:var(--size-3);max-width:80vw}";const pr=fr;const gr=class{constructor(e){t(this,e)}render(){return e(r,{key:"85fd8b16422fb57ad1414804d7cc2c86eee39d02"},e("div",{key:"d446af3cc59ce0b9d372a37650618686aa48b8fb"},e("h2",{key:"3000fbd901554640126f7d6880d56d1bef9ed241"},"Try these... 💡"),e("p",{key:"c89defab8e6e2e7a617898f163ed7234249727d2"},"No idea where to start? Try these example resources, and follow your nose 👃"),e("div",{key:"bc9ed67f429ea468c53b591390b7fba1674b0b7d",class:"links"},e("pos-rich-link",{key:"a5fd0f04c539c2654198a0d825fbb2da891e0d14",uri:"https://pod-os.solidcommunity.net/profile/card#me"}),e("pos-rich-link",{key:"0b8dc4abeecbb4cc0f2d8957aa6e43f6877d84d0",uri:"https://angelo.veltens.org/profile/card#me"}),e("pos-rich-link",{key:"628bd8639c706134274ee3c1cd14616664ba9552",uri:"https://angelo.veltens.org/public/bookmarks"}),e("pos-rich-link",{key:"91efe195ccc2567428ea978390a9845d22beda5e",uri:"https://solidos.solidcommunity.net/profile/card#me"}))))}};gr.style=pr;const mr=":host{border:var(--size-px) solid var(--color-grey-100);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--color-white)}.question{font-weight:var(--weight-semibold);color:var(--color-grey-900)}a{font-weight:var(--weight-bold);color:var(--pos-primary-color)}";const vr=mr;const yr=class{constructor(e){t(this,e)}render(){return e(r,{key:"2347ea586342456767e9aba2b30debbd86e0b37e"},e("div",{key:"33da44a3cd289b08384b17933c16cef8063a87e2"},e("h2",{key:"7b08c85b665db29d7d0ceaea5bce32b975180300"},"Getting started 🚀"),e("p",{key:"b582fad4e229353edfe5286a417ed544f8a08659"},"🔎 Enter a URL into the above navigation bar to browse through the web of data. "),e("p",{key:"95a42fe1be9e27e03e1bf1beb9a359720dbfef8a"},"🔐 Sign in to access private resources on your Solid Pod or those of your friends or coworkers.")),e("div",{key:"be49077a2032e6208fbfc8c170ec2a4f2151d792"},e("p",{key:"15ebacbf46ab241c0001aa6df011612e27b14657",class:"question"},"New to Solid?"),e("p",{key:"41366fc5e73c5df8b07dc39236d781f9bdb16a2e"},e("a",{key:"35d1572cf1db045759434e3783c02cac98954c91",href:"https://solidproject.org/for-developers#hosted-pod-services"},"Get a Pod →"))),e("div",{key:"2c4a4d8b7f2a0aded70c541f4b511b96150c4fd4"},e("p",{key:"3a1f2bc0640b9c7a553063d4886d22eee41af0f9",class:"question"},"Want to dig deeper into PodOS?"),e("p",{key:"ec76e0f2dd6feff49ecac2d5bc51d27635412bcc"},e("a",{key:"5c49f338c15f0e9941e3929f5a81baa6521bbb1a",href:"http://pod-os.org"},"Learn more →"))))}};yr.style=vr;const wr=":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 kr=wr;const xr=class{constructor(e){t(this,e);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(){S.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 e("ion-skeleton-text",{animated:true})}if(this.networkError){return e("img",{alt:this.alt,src:this.src,onError:t=>this.onImageError(t)})}if(this.brokenFile){return e(j,{file:this.brokenFile})}if(this.imageError){return e("div",{class:"error"},e("a",{href:this.src},this.src))}return e(r,{style:{backgroundImage:this.blurredBackground?`url('${this.dataUri}')`:null}},e("img",{src:this.dataUri,alt:this.alt}))}static get watchers(){return{os:["fetchBlob"],src:["fetchBlob"]}}};xr.style=kr;const zr=class{constructor(e){t(this,e);this.uri="pod-os:dashboard"}render(){return e("pos-app-dashboard",{key:"44741d470c91f1faa732c5932788aa58b56805d4"})}};const Cr=class{constructor(e){t(this,e);this.subscribeResource=a(this,"pod-os:resource",7);this.receiveResource=t=>{this.resource=t}}componentWillLoad(){P(this)}render(){return this.resource?this.resource.label():null}};const _r=".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 Sr=_r;const jr=class{constructor(e){t(this,e);this.initializeOsEmitter=a(this,"pod-os:init",7);this.setOs=async t=>{this.os=t}}componentWillLoad(){this.initializeOsEmitter.emit(this.setOs)}login(t){const e=t.detail;this.os.login(e)}logout(){this.os.logout()}openDialog(){this.dialog.showModal()}render(){return e(r,{key:"ca905c70af384613b128154be4bb68d2956c309e"},e("div",{key:"1f18fe1812658ab7855da328337ef5a9f6145f15",class:"container"},S.state.isLoggedIn?e("pos-resource",{uri:S.state.webId},e("span",{class:"user-data"},e("pos-picture",null),e("pos-label",null))):"",!S.state.isLoggedIn&&e("button",{key:"09264faa5a12b18a805bb13cf92a9a0b190bd498",id:"login",onClick:()=>this.openDialog()},"Login"),S.state.isLoggedIn&&e("button",{key:"334759c36b3df14e59d1bf7a4ae8dd2b03e52c3a",id:"logout",onClick:()=>this.logout()},"Logout")),e("pos-dialog",{key:"e82f36add5bcd044406996639b22e20b54c39101",ref:t=>this.dialog=t},e("span",{key:"e4ea7b9181981e28222f3dffe6ca1cd1fd18cc79",slot:"title"},"Sign in to your Pod"),e("pos-login-form",{key:"5d99a85a1561178a3091ab5f6a23a856c1a373ad","onPod-os:idp-url-selected":t=>this.login(t),slot:"content"})))}};jr.style=Sr;const Lr=":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}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 Ir=Lr;const Pr=class{constructor(e){t(this,e);this.idpUrlSelected=a(this,"pod-os:idp-url-selected",7);this.idpUrl="";this.canSubmit=false}validate(){this.canSubmit=Boolean(this.idpUrl)}render(){return e("form",{key:"fc3dd44c9d9b1b1d793a7527d8a178d819475ee2",method:"dialog",onSubmit:()=>this.handleSubmit()},e("label",{key:"9cbac18a27fa549063c9aa5fce9a9a8bae15bdb1",htmlFor:"idpUrl"},"Please enter your Identity Provider"),e("input",{key:"e211e1210b6259f481562a70d3ca1843137d0c87",id:"idpUrl",type:"url",value:this.idpUrl,required:true,onInput:t=>this.handleChange(t),list:"suggestedIssuers",placeholder:"Type to search..."}),e("datalist",{key:"070952f3ad16c312992fac7be5e497d92819fbb8",id:"suggestedIssuers"},e("option",{key:"d561a03770b7cf496322966f71f6e81c54ab25b0",value:"https://solidcommunity.net"},"solidcommunity.net"),e("option",{key:"3ecf96f60823fd848344fc77871f4bad3645e19c",value:"https://solidweb.org"},"solidweb.org"),e("option",{key:"7c0c4ea6a4d975f9d7dd298e3b38fd8faa41dd2b",value:"https://solidweb.me"},"solidweb.me"),e("option",{key:"21138fe500353ff7624c20226f92c55f5a553551",value:"https://inrupt.net"},"inrupt.net"),e("option",{key:"6b7edede2e1d51aeab5c6fb6f0e7fd4be72db3c5",value:"https://login.inrupt.com"},"Inrupt PodSpaces"),e("option",{key:"c9cea1f3d258a58b0ca260c25111cd6cd6b6bf30",value:"https://trinpod.us"},"trinpod.us"),e("option",{key:"953f68426bdf806c18cbb78fd7de36ee8dae06db",value:"https://use.id"},"use.id"),e("option",{key:"58b3b5e9b3e145e2f2000028d0edd8263d2a6495",value:"https://solid.redpencil.io"},"redpencil.io"),e("option",{key:"2461aaa1b32e07635d67805a362b2f22bf28a8a7",value:"https://datapod.grant.io"},"Data Pod (grant.io)"),e("option",{key:"6ac6645ccd9f3f2234b3f44349f28f34c9f1d33d",value:"https://teamid.live"},"teamid.live")),e("input",{key:"451b150089145ca6846253067e6e6d393b333d9c",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"]}}};Pr.style=Ir;const Xr="button.main {\n display: flex;\n transition:\n width 200ms,\n background-color 500ms,\n color 500ms,\n border-color 500ms;\n flex-direction: row;\n overflow: hidden;\n height: var(--size-8);\n width: var(--size-8);\n align-items: center;\n justify-content: center;\n border-radius: var(--radius-xs);\n color: var(--color-grey-500);\n border: var(--size-px) dashed var(--color-grey-500);\n background: none;\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\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 background-color: var(--color-grey-200);\n padding: 0;\n margin: 0;\n list-style: none;\n button {\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 filter: brightness(80%);\n }\n\n &:active {\n filter: brightness(90%);\n }\n }\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(--size-8);\n background: var(--color-grey-200);\n color: var(--color-grey-700);\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 Tr=Xr;const Er=class{constructor(e){t(this,e);this.subscribePodOs=a(this,"pod-os:init",7);this.errorEmitter=a(this,"pod-os:error",7);this.indexes=[];this.showOptions=false;this.success=false;this.receivePodOs=async t=>{this.os=t;this.thing=this.os.store.get(this.uri);this.getLabelIndexes(S.state.profile);this.unsubscribeSessionChange=S.onChange("profile",(t=>{this.getLabelIndexes(t)}))}}componentWillLoad(){T(this)}disconnectedCallback(){this.unsubscribeSessionChange&&this.unsubscribeSessionChange()}hideOptions(t){if(t.target.parentNode!==this.el){this.showOptions=false}}handleKeyDown(t){if(t.key==="Escape"){this.showOptions=false}}updateUri(t){this.thing=this.os.store.get(t);this.success=false}getLabelIndexes(t){if(t){this.indexes=t.getPrivateLabelIndexes().map((t=>this.os.store.get(t).assume(I)))}}async onClick(t){t.preventDefault();this.success=false;if(this.indexes.length===1){await this.addToLabelIndex(this.indexes[0])}else if(this.indexes.length>1){this.showOptions=true}else{if(window.confirm(`🔎 To use search you have to configure a label index.\n For now you have to do this manually unfortunately.\n\n 📖 Do you want to open a page that describes how to create a label index?`)){window.open("https://github.com/pod-os/PodOS/blob/main/docs/features/full-text-search.md#full-text-search","_blank")}}}async addToLabelIndex(t){try{await this.os.addToLabelIndex(this.thing,t);this.success=true}catch(t){this.errorEmitter.emit(t)}this.showOptions=false}render(){if(!S.state.isLoggedIn||!this.uri){return null}const t="Make this findable";return e(r,null,e("button",{type:"button","aria-label":t,class:{main:true,open:this.showOptions,success:this.success},onClick:t=>this.onClick(t),title:""},this.success?e(Mr,null):e(Or,null),e("p",null,t)),this.showOptions&&e("div",{class:"options"},e("ol",{role:"listbox"},this.indexes.map((t=>e("li",{role:"option"},e("button",{onClick:e=>this.chooseOption(e,t)},e("pos-resource",{uri:t.uri,lazy:true},e("pos-label",null)))))))))}async chooseOption(t,e){t.preventDefault();await this.addToLabelIndex(e)}get el(){return i(this)}static get watchers(){return{uri:["updateUri"]}}};const Or=()=>e("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},e("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 Mr=()=>e("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},e("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"}));Er.style=Tr;const Ur=":host {\n}\n\n.suggestions {\n position: relative;\n}\n\n.suggestions ol {\n border: 1px solid var(--color-grey-200);\n display: flex;\n flex-direction: column;\n position: absolute;\n margin: 0;\n padding: 0;\n z-index: var(--layer-top);\n list-style-type: none;\n box-shadow: var(--shadow-xl);\n}\n\n.suggestions {\n li {\n padding: 1rem;\n background-color: white;\n pos-rich-link {\n --background-color: inherit;\n }\n &.selected {\n background-color: var(--color-blue);\n &:hover {\n background-color: var(--color-blue-700);\n }\n }\n &:hover {\n background-color: var(--color-grey-200);\n }\n }\n}\n\n.suggestions li.selected pos-rich-link {\n --label-color: white;\n --description-color: var(--color-grey-200);\n --uri-color: var(--color-grey-200);\n}\n\n.bar {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n";const Ar=Ur;const Dr=class{constructor(e){t(this,e);this.subscribePodOs=a(this,"pod-os:init",7);this.linkEmitter=a(this,"pod-os:link",7);this.uri="";this.value=this.uri;this.searchIndex=undefined;this.suggestions=[];this.selectedIndex=-1;this.receivePodOs=async t=>{this.os=t}}componentWillLoad(){T(this);S.onChange("isLoggedIn",(async t=>{var e;if(t){this.searchIndex=await this.os.buildSearchIndex(S.state.profile)}else{(e=this.searchIndex)===null||e===void 0?void 0:e.clear()}}))}onChange(t){this.value=t.detail.value;this.search()}clearSuggestions(){this.suggestions=[];this.selectedIndex=-1}onClickSelf(t){t.stopPropagation()}onFocus(){this.search()}handleKeyDown(t){if(t.key==="Escape"){this.clearSuggestions()}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.value?this.searchIndex.search(this.value):[]}}onSubmit(t){t.preventDefault();if(this.suggestions&&this.selectedIndex>-1){this.linkEmitter.emit(this.suggestions[this.selectedIndex].ref)}else{this.linkEmitter.emit(this.value)}}render(){return e("form",{key:"a8f6b83f1cf9ec1f11b33ec7431341a7b386cc7d",onSubmit:t=>this.onSubmit(t)},e("div",{key:"8a7dbee166570b0f111f6bd68370968c52b87880",class:"bar"},e("pos-make-findable",{key:"d71e706c088fb48e672077e229eb007d1ef9cb90",uri:this.uri}),e("ion-searchbar",{key:"cb9b342ca6d4aaf9001a2f5e291ae3ad08b10a33",enterkeyhint:"search",placeholder:"Search or enter URI",value:this.uri,debounce:300,onIonChange:t=>this.onChange(t),onIonInput:t=>this.onChange(t)})),this.suggestions.length>0?e("div",{class:"suggestions"},e("ol",null,this.suggestions.map(((t,r)=>e("li",{class:r===this.selectedIndex?"selected":""},e("pos-rich-link",{uri:t.ref})))))):null)}};Dr.style=Ar;const Br=":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}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(--color-grey-800);font-weight:var(--weight-light);background:var(--color-grey-100);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 Rr=Br;const $r=class{constructor(e){t(this,e);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(){T(this)}render(){return e("form",{key:"b3d0782ab63cbdeaa5a7b6ba13dc9117855e7254",method:"dialog",onSubmit:t=>this.handleSubmit(t)},e("label",{key:"82fc1a30178b21907374e86683784413dfe948c4",htmlFor:"type"},"Type"),e("pos-select-term",{key:"810bc7b1cd1f27bafe589534720e93db4268149d",id:"type",placeholder:"",value:this.selectedTypeUri,"onPod-os:term-selected":t=>this.onTermSelected(t)}),e("label",{key:"5b4d9f05d6ad416255c4ebb1e2e54afd2a8fb84b",htmlFor:"name"},"Name"),e("input",{key:"5a3df6ca08b9b87dedd0996ec9d031b061e74941",id:"name",type:"text",value:this.name,onInput:t=>this.handleChange(t)}),this.newUri?e("div",{id:"new-uri",title:"This will be the URI of the new thing"},this.newUri):null,e("input",{key:"0e98162ac1ff439e571fd1d9885d99c4ef8dd4cc",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"]}}};$r.style=Rr;const Wr=":host{--width:300px;--height:300px;--border-radius:var(--border-radius, 0);--object-fit:var(--object-fit, cover)}";const Fr=Wr;const Nr=class{constructor(e){t(this,e);this.subscribeResource=a(this,"pod-os:resource",7);this.blurredBackground=false;this.receiveResource=t=>{this.resource=t}}componentWillLoad(){P(this)}render(){const t=this.resource?this.resource.picture():null;if(!t)return null;return e("pos-image",{blurredBackground:this.blurredBackground,src:t.url,alt:this.resource.label()})}};Nr.style=Fr;const Hr=class{constructor(e){t(this,e);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(){S.onChange("isLoggedIn",(()=>this.loadResource()));T(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 e("ion-progress-bar",{type:"indeterminate"})}if(this.error){return e("ion-card",null,e("ion-card-header",null,e("p",null,"Sorry, something went wrong"),e("p",null,"Status:",this.error.status),e("details",null,this.error.message)),e("ion-card-content",null,e("p",null,"You can try to open the link outside PodOS:"),e("a",{href:this.uri},this.uri)))}return e("slot",null)}static get watchers(){return{os:["loadResource"],uri:["loadResource"]}}};const Vr=":host {\n --background-color: inherit;\n --label-color: var(--color-grey-900);\n --description-color: var(--color-grey-900);\n --uri-color: var(--color-grey-600);\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(--color-grey-500);\n }\n}\n\na {\n color: var(--label-color);\n max-width: 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 qr=Vr;const Zr=class{constructor(e){t(this,e);this.linkEmitter=a(this,"pod-os:link",7)}render(){return e("pos-resource",{key:"eb0e3062c238419e7274fa29a24bea785d00961b",lazy:true,uri:this.uri},e("p",{key:"221085834dea0e3b247670774c5ac16e2eaf4f13",class:"content"},e("a",{key:"a22d6d39e128b7838eb2930644df562f780e126d",href:this.uri,onClick:t=>{t.preventDefault();this.linkEmitter.emit(this.uri)}},e("pos-label",{key:"a45b74a02056aae2cf9041c1bc654789c7245d20"})),e("span",{key:"0da1d42991bbb3cddeffaa5f0db5e4af27b11375",class:"url"},new URL(this.uri).host),e("pos-description",{key:"92308832190441e9520cc948970a70ca5b0b5a6b"})))}};Zr.style=qr;const Kr=(t,e,r)=>{const i=t.get(e);if(!i){t.set(e,[r])}else if(!i.includes(r)){i.push(r)}};const Gr=(t,e)=>{let r;return(...i)=>{if(r){clearTimeout(r)}r=setTimeout((()=>{r=0;t(...i)}),e)}};const Yr=t=>!("isConnected"in t)||t.isConnected;const Jr=Gr((t=>{for(let e of t.keys()){t.set(e,t.get(e).filter(Yr))}}),2e3);const Qr=()=>{if(typeof l!=="function"){return{}}const t=new Map;return{dispose:()=>t.clear(),get:e=>{const r=l();if(r){Kr(t,e,r)}},set:e=>{const r=t.get(e);if(r){t.set(e,r.filter(c))}Jr(t)},reset:()=>{t.forEach((t=>t.forEach(c)));Jr(t)}}};const ti=(t,e=((t,e)=>t!==e))=>{let r=new Map(Object.entries(t!==null&&t!==void 0?t:{}));const i={dispose:[],get:[],set:[],reset:[]};const n=()=>{r=new Map(Object.entries(t!==null&&t!==void 0?t:{}));i.reset.forEach((t=>t()))};const o=()=>{i.dispose.forEach((t=>t()));n()};const s=t=>{i.get.forEach((e=>e(t)));return r.get(t)};const a=(t,n)=>{const o=r.get(t);if(e(n,o,t)){r.set(t,n);i.set.forEach((e=>e(t,n,o)))}};const c=typeof Proxy==="undefined"?{}:new Proxy(t,{get(t,e){return s(e)},ownKeys(t){return Array.from(r.keys())},getOwnPropertyDescriptor(){return{enumerable:true,configurable:true}},has(t,e){return r.has(e)},set(t,e,r){a(e,r);return true}});const l=(t,e)=>{i[t].push(e);return()=>{ei(i[t],e)}};const d=(e,r)=>{const i=l("set",((t,i)=>{if(t===e){r(i)}}));const n=l("reset",(()=>r(t[e])));return()=>{i();n()}};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 b=t=>{const e=r.get(t);i.set.forEach((r=>r(t,e,e)))};return{state:c,get:s,set:a,on:l,onChange:d,use:h,dispose:o,reset:n,forceUpdate:b}};const ei=(t,e)=>{const r=t.indexOf(e);if(r>=0){t[r]=t[t.length-1];t.length--}};const ri=(t,e)=>{const r=ti(t,e);r.use(Qr());return r};const ii=t=>{var e;const r=window;const i=new URL(r.location.href);const n=(e=t===null||t===void 0?void 0:t.parseURL)!==null&&e!==void 0?e:oi;const{state:o,onChange:s,dispose:a}=ri({url:i,activePath:n(i)},((t,e,r)=>{if(r==="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=n(e)};const l=t=>{const{activePath:e}=o;for(let r of t){const i=ni(e,r.path);if(i){if(r.to!=null){const i=typeof r.to==="string"?r.to:r.to(e);c(i);return l(t)}else{return{params:i,route:r}}}}return undefined};const d=()=>{const t=new URL(r.location.href);o.url=t;o.activePath=n(t)};const h=(t,e)=>{const r=l(e);if(r){if(typeof r.route.jsx==="function"){return r.route.jsx(r.params)}else{return r.route.jsx}}};const b=()=>{r.removeEventListener("popstate",d);a()};const u={Switch:h,get url(){return o.url},get activePath(){return o.activePath},push:c,onChange:s,dispose:b};d();r.addEventListener("popstate",d);return u};const ni=(t,e)=>{if(typeof e==="string"){if(e===t){return{}}}else if(typeof e==="function"){const r=e(t);if(r){return r===true?{}:{...r}}}else{const r=e.exec(t);if(r){e.lastIndex=0;return{...r}}}return undefined};const oi=t=>t.pathname.toLowerCase();const si=".toolbar{display:flex;flex-direction:row;gap:0;align-items:center;margin-left:0.5rem}pos-navigation-bar{flex-grow:1}";const ai=si;const ci=ii();const li=class{constructor(e){t(this,e);this.routeChanged=a(this,"pod-os:route-changed",7);this.mode="standalone"}linkClicked(t){this.navigate(t.detail)}sessionRestored(t){ci.push(t.detail.url)}componentWillLoad(){this.updateUri();ci.onChange("url",(()=>{this.updateUri()}))}navigate(t){ci.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 e("slot",{key:"becbb85d61b266e5398345d86e639558e3e7ab40"})}};li.style=ai;const di=":host{display:block}input{border:none;padding-top:1rem;padding-bottom:1rem}input:focus{outline:none}";const hi=di;const bi=class{constructor(e){t(this,e);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(){T(this)}setTerms(){this.terms=this.os.listKnownTerms()}handleChange(t){this.termSelected.emit({uri:t.target.value})}render(){return e(r,{key:"ded0e73b0c40db8f2c6f54e55f014c82b8134ab3"},e("input",{key:"032c78e077685319599fe76f60b6457602310c95",part:"input",list:"terms",placeholder:this.placeholder,value:this.value,onChange:t=>this.handleChange(t)}),e("datalist",{key:"12fb5283fd009920a385f085e455ef2999f138a0",part:"terms",id:"terms"},this.terms.map((t=>e("option",{value:t.uri},t.shorthand)))))}static get delegatesFocus(){return true}static get watchers(){return{os:["setTerms"]}}};bi.style=hi;var ui;(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"})(ui||(ui={}));function fi(t,e){return t.some((t=>t.uri===e))}function pi(t){if(fi(t,"http://www.w3.org/ns/ldp#Container")){return ui.LdpContainer}else if(fi(t,"http://www.w3.org/2007/ont/link#RDFDocument")){return ui.RdfDocument}else if(fi(t,"http://www.w3.org/ns/iana/media-types/application/pdf#Resource")){return ui.DocumentViewer}else if(fi(t,"http://purl.org/dc/terms/Image")){return ui.ImageViewer}else if(fi(t,"http://www.w3.org/2007/ont/link#Document")){return ui.DocumentViewer}else{return ui.Generic}}const gi=class{constructor(e){t(this,e);this.subscribeResource=a(this,"pod-os:resource",7);this.receiveResource=t=>{this.types=t.types()}}componentWillLoad(){P(this)}render(){return this.types?this.renderApp():null}renderApp(){const t=pi(this.types);return e(t,null)}};export{A as ion_card,W as ion_card_content,q as ion_card_header,pt as ion_icon,xt as ion_progress_bar,jt as ion_ripple_effect,Mt as ion_searchbar,Bt as ion_skeleton_text,Wt as pos_add_new_thing,er as pos_app,nr as pos_app_browser,cr as pos_app_dashboard,lr as pos_description,br as pos_dialog,ur as pos_error_toast,gr as pos_example_resources,yr as pos_getting_started,xr as pos_image,zr as pos_internal_router,Cr as pos_label,jr as pos_login,Pr as pos_login_form,Er as pos_make_findable,Dr as pos_navigation_bar,$r as pos_new_thing_form,Nr as pos_picture,Hr as pos_resource,Zr as pos_rich_link,li as pos_router,bi as pos_select_term,gi as pos_type_router};
|
|
2
|
+
//# sourceMappingURL=p-764e330c.entry.js.map
|