import{g as n}from"./p-d15ec307.js";let t;const e=()=>{if("undefined"==typeof window)return new Map;if(!t){const n=window;n.Ionicons=n.Ionicons||{},t=n.Ionicons.map=n.Ionicons.map||new Map}return t},r=n=>{const t=e();Object.keys(n).forEach((e=>t.set(e,n[e])))},i=n=>{let t=u(n.src);if(t)return t;if(t=s(n.name,n.icon,n.mode,n.ios,n.md),t)return o(t);if(n.icon){if(t=u(n.icon),t)return t;if(t=u(n.icon[n.mode]),t)return t}return null},o=t=>e().get(t)||n(`svg/${t}.svg`),s=(n,t,e,r,i)=>(e="ios"===(e&&a(e))?"ios":"md",r&&"ios"===e?n=a(r):i&&"md"===e?n=a(i):(n||!t||l(t)||(n=t),d(n)&&(n=a(n))),d(n)&&""!==n.trim()?""!==n.replace(/[a-z]|-|\d/gi,"")?null:n:null),u=n=>d(n)&&(n=n.trim(),l(n))?n:null,l=n=>n.length>0&&/(\/|\.)/.test(n),d=n=>"string"==typeof n,a=n=>n.toLowerCase(),f=(n,t=[])=>{const e={};return t.forEach((t=>{n.hasAttribute(t)&&(null!==n.getAttribute(t)&&(e[t]=n.getAttribute(t)),n.removeAttribute(t))})),e},c=n=>n&&""!==n.dir?"rtl"===n.dir.toLowerCase():"rtl"===(null===document||void 0===document?void 0:document.dir.toLowerCase());export{r as a,f as b,s as c,c as d,i as g,d as i}