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