/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */
const a=(a,e)=>{a.componentOnReady?a.componentOnReady().then((a=>e(a))):l((()=>e(a)))},e=(a,e=[])=>{const r={};return e.forEach((e=>{a.hasAttribute(e)&&(null!==a.getAttribute(e)&&(r[e]=a.getAttribute(e)),a.removeAttribute(e))})),r},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"],i=a=>e(a,r),t=(a,e,r,i)=>{if("undefined"!=typeof window){const t=window,n=t&&t.Ionic&&t.Ionic.config;if(n){const t=n.get("_ael");if(t)return t(a,e,r,i);if(n._ael)return n._ael(a,e,r,i)}}return a.addEventListener(e,r,i)},n=(a,e,r,i)=>{if("undefined"!=typeof window){const t=window,n=t&&t.Ionic&&t.Ionic.config;if(n){const t=n.get("_rel");if(t)return t(a,e,r,i);if(n._rel)return n._rel(a,e,r,i)}}return a.removeEventListener(e,r,i)},o=(a,e=a)=>a.shadowRoot||e,l=a=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(a):"function"==typeof requestAnimationFrame?requestAnimationFrame(a):setTimeout(a),s=a=>!!a.shadowRoot&&!!a.attachShadow,u=a=>{const e=a.closest("ion-item");return e?e.querySelector("ion-label"):null},d=(a,e)=>{let r;const i=a.getAttribute("aria-labelledby"),t=a.id;let n=null!==i&&""!==i.trim()?i:e+"-lbl",o=null!==i&&""!==i.trim()?document.getElementById(i):u(a);return o?(null===i&&(o.id=n),r=o.textContent,o.setAttribute("aria-hidden","true")):""!==t.trim()&&(o=document.querySelector(`label[for="${t}"]`),o&&(""!==o.id?n=o.id:o.id=n=`${t}-lbl`,r=o.textContent)),{label:o,labelId:n,labelText:r}},c=(a,e,r,i,t)=>{if(a||s(e)){let a=e.querySelector("input.aux-input");a||(a=e.ownerDocument.createElement("input"),a.type="hidden",a.classList.add("aux-input"),e.appendChild(a)),a.disabled=t,a.name=r,a.value=i||""}},f=(a,e,r)=>Math.max(a,Math.min(e,r)),m=(a,e)=>{if(!a){const a="ASSERT: "+e;throw console.error(a),new Error(a)}},b=a=>a.timeStamp||Date.now(),p=a=>{if(a){const e=a.changedTouches;if(e&&e.length>0){const a=e[0];return{x:a.clientX,y:a.clientY}}if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY}}return{x:0,y:0}},w=a=>{const e="rtl"===document.dir;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.`)}},x=(a,e)=>{const r=a._original||a;return{_original:a,emit:y(r.emit.bind(r),e)}},y=(a,e=0)=>{let r;return(...i)=>{clearTimeout(r),r=setTimeout(a,e,...i)}};export{t as a,n as b,a as c,d,c as e,x as f,o as g,e as h,i,u as j,f as k,s as l,m,w as n,y as o,p,b as q,l as r}