import{c as e}from"./p-f44f0a67.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const o=async(o,t,r,i,n,s)=>{var a;if(o)return o.attachViewToDom(t,r,n,i);if(!(s||"string"==typeof r||r instanceof HTMLElement))throw new Error("framework delegate is missing");const c="string"==typeof r?null===(a=t.ownerDocument)||void 0===a?void 0:a.createElement(r):r;return i&&i.forEach((e=>c.classList.add(e))),n&&Object.assign(c,n),t.appendChild(c),await new Promise((o=>e(c,o))),c},t=(e,o)=>{if(o){if(e)return e.removeViewFromDom(o.parentElement,o);o.remove()}return Promise.resolve()},r=()=>{let o,t;return{attachViewToDom:async(r,i,n={},s=[])=>{var a,c;if(o=r,i){const t="string"==typeof i?null===(a=o.ownerDocument)||void 0===a?void 0:a.createElement(i):i;s.forEach((e=>t.classList.add(e))),Object.assign(t,n),o.appendChild(t),await new Promise((o=>e(t,o)))}else if(o.children.length>0){const e=null===(c=o.ownerDocument)||void 0===c?void 0:c.createElement("div");s.forEach((o=>e.classList.add(o))),e.append(...o.children),o.appendChild(e)}const m=document.querySelector("ion-app")||document.body;return t=document.createComment("ionic teleport"),o.parentNode.insertBefore(t,o),m.appendChild(o),o},removeViewFromDom:()=>(o&&t&&(t.parentNode.insertBefore(o,t),t.remove()),Promise.resolve())}};export{r as C,o as a,t as d}