/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */
const a=(a,i=0)=>new Promise((n=>{e(a,i,n)}));const e=(a,e=0,i)=>{let n;let r;const t={passive:true};const o=500;const s=()=>{if(n){n()}};const l=e=>{if(e===undefined||a===e.target){s();i(e)}};if(a){a.addEventListener("webkitTransitionEnd",l,t);a.addEventListener("transitionend",l,t);r=setTimeout(l,e+o);n=()=>{if(r){clearTimeout(r);r=undefined}a.removeEventListener("webkitTransitionEnd",l,t);a.removeEventListener("transitionend",l,t)}}return s};const i=(a,e)=>{if(a.componentOnReady){a.componentOnReady().then((a=>e(a)))}else{u((()=>e(a)))}};const n=(a,e=[])=>{const i={};e.forEach((e=>{if(a.hasAttribute(e)){const n=a.getAttribute(e);if(n!==null){i[e]=a.getAttribute(e)}a.removeAttribute(e)}}));return i};const r=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];const t=a=>n(a,r);const o=(a,e,i,n)=>{var r;if(typeof window!=="undefined"){const t=window;const o=(r=t===null||t===void 0?void 0:t.Ionic)===null||r===void 0?void 0:r.config;if(o){const r=o.get("_ael");if(r){return r(a,e,i,n)}else if(o._ael){return o._ael(a,e,i,n)}}}return a.addEventListener(e,i,n)};const s=(a,e,i,n)=>{var r;if(typeof window!=="undefined"){const t=window;const o=(r=t===null||t===void 0?void 0:t.Ionic)===null||r===void 0?void 0:r.config;if(o){const r=o.get("_rel");if(r){return r(a,e,i,n)}else if(o._rel){return o._rel(a,e,i,n)}}}return a.removeEventListener(e,i,n)};const l=(a,e=a)=>a.shadowRoot||e;const u=a=>{if(typeof __zone_symbol__requestAnimationFrame==="function"){return __zone_symbol__requestAnimationFrame(a)}if(typeof requestAnimationFrame==="function"){return requestAnimationFrame(a)}return setTimeout(a)};const c=a=>!!a.shadowRoot&&!!a.attachShadow;const d=a=>{const e=a.closest("ion-item");if(e){return e.querySelector("ion-label")}return null};const f=a=>{a.focus();if(a.classList.contains("ion-focusable")){const e=a.closest("ion-app");if(e){e.setFocus([a])}}};const b=(a,e)=>{let i;const n=a.getAttribute("aria-labelledby");const r=a.id;let t=n!==null&&n.trim()!==""?n:e+"-lbl";let o=n!==null&&n.trim()!==""?document.getElementById(n):d(a);if(o){if(n===null){o.id=t}i=o.textContent;o.setAttribute("aria-hidden","true")}else if(r.trim()!==""){o=document.querySelector(`label[for="${r}"]`);if(o){if(o.id!==""){t=o.id}else{o.id=t=`${r}-lbl`}i=o.textContent}}return{label:o,labelId:t,labelText:i}};const m=(a,e,i,n,r)=>{if(a||c(e)){let a=e.querySelector("input.aux-input");if(!a){a=e.ownerDocument.createElement("input");a.type="hidden";a.classList.add("aux-input");e.appendChild(a)}a.disabled=r;a.name=i;a.value=n||""}};const p=(a,e,i)=>Math.max(a,Math.min(e,i));const v=(a,e)=>{if(!a){const a="ASSERT: "+e;console.error(a);debugger;throw new Error(a)}};const w=a=>a.timeStamp||Date.now();const x=a=>{if(a){const e=a.changedTouches;if(e&&e.length>0){const a=e[0];return{x:a.clientX,y:a.clientY}}if(a.pageX!==undefined){return{x:a.pageX,y:a.pageY}}}return{x:0,y:0}};const y=a=>{const e=document.dir==="rtl";switch(a){case"start":return e;case"end":return!e;default:throw new Error(`"${a}" is not a valid value for [side]. Use "start" or "end" instead.`)}};const h=(a,e)=>{const i=a._original||a;return{_original:a,emit:_(i.emit.bind(i),e)}};const _=(a,e=0)=>{let i;return(...n)=>{clearTimeout(i);i=setTimeout(a,e,...n)}};const T=(a,e)=>{a!==null&&a!==void 0?a:a={};e!==null&&e!==void 0?e:e={};if(a===e){return true}const i=Object.keys(a);if(i.length!==Object.keys(e).length){return false}for(const n of i){if(!(n in e)){return false}if(a[n]!==e[n]){return false}}return true};export{p as a,n as b,i as c,h as d,u as e,d as f,b as g,c as h,t as i,y as j,v as k,l,o as m,s as n,_ as o,x as p,f as q,m as r,T as s,a as t,w as u};
//# sourceMappingURL=p-f44f0a67.js.map