var b=(e,n=0)=>new Promise(t=>{c(e,n,t)}),c=(e,n=0,t)=>{let i,a,r={passive:!0},o=500,s=()=>{i&&i()},u=d=>{(d===void 0||e===d.target)&&(s(),t(d))};return e&&(e.addEventListener("webkitTransitionEnd",u,r),e.addEventListener("transitionend",u,r),a=setTimeout(u,n+o),i=()=>{a!==void 0&&(clearTimeout(a),a=void 0),e.removeEventListener("webkitTransitionEnd",u,r),e.removeEventListener("transitionend",u,r)}),s},v=(e,n)=>{e.componentOnReady?e.componentOnReady().then(t=>n(t)):h(()=>n(e))},g=e=>e.componentOnReady!==void 0,l=(e,n=[])=>{let t={};return n.forEach(i=>{e.hasAttribute(i)&&(e.getAttribute(i)!==null&&(t[i]=e.getAttribute(i)),e.removeAttribute(i))}),t},f=["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"],p=(e,n)=>{let t=f;return n&&n.length>0&&(t=t.filter(i=>!n.includes(i))),l(e,t)},y=(e,n,t,i)=>{var a;if(typeof window<"u"){let r=window,o=(a=r==null?void 0:r.Ionic)===null||a===void 0?void 0:a.config;if(o){let s=o.get("_ael");if(s)return s(e,n,t,i);if(o._ael)return o._ael(e,n,t,i)}}return e.addEventListener(n,t,i)},E=(e,n,t,i)=>{var a;if(typeof window<"u"){let r=window,o=(a=r==null?void 0:r.Ionic)===null||a===void 0?void 0:a.config;if(o){let s=o.get("_rel");if(s)return s(e,n,t,i);if(o._rel)return o._rel(e,n,t,i)}}return e.removeEventListener(n,t,i)},_=(e,n=e)=>e.shadowRoot||n,h=e=>typeof __zone_symbol__requestAnimationFrame=="function"?__zone_symbol__requestAnimationFrame(e):typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(e),m=e=>!!e.shadowRoot&&!!e.attachShadow,A=e=>{if(e.focus(),e.classList.contains("ion-focusable")){let n=e.closest("ion-app");n&&n.setFocus([e])}},T=(e,n,t,i,a)=>{if(e||m(n)){let r=n.querySelector("input.aux-input");r||(r=n.ownerDocument.createElement("input"),r.type="hidden",r.classList.add("aux-input"),n.appendChild(r)),r.disabled=a,r.name=t,r.value=i||""}},x=(e,n,t)=>Math.max(e,Math.min(n,t));var L=e=>{if(e){let n=e.changedTouches;if(n&&n.length>0){let t=n[0];return{x:t.clientX,y:t.clientY}}if(e.pageX!==void 0)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}};var R=(e,n)=>{let t=e._original||e;return{_original:e,emit:w(t.emit.bind(t),n)}},w=(e,n=0)=>{let t;return(...i)=>{clearTimeout(t),t=setTimeout(e,n,...i)}},O=(e,n)=>{if(e!=null||(e={}),n!=null||(n={}),e===n)return!0;let t=Object.keys(e);if(t.length!==Object.keys(n).length)return!1;for(let i of t)if(!(i in n)||e[i]!==n[i])return!1;return!0};export{b as a,v as b,g as c,l as d,p as e,y as f,E as g,_ as h,h as i,m as j,A as k,T as l,x as m,L as n,R as o,O as p};
