/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */
const t=t=>{try{if(t instanceof r){return t.value}if(!e()||typeof t!=="string"||t===""){return t}const s=document.createDocumentFragment();const i=document.createElement("div");s.appendChild(i);i.innerHTML=t;c.forEach((t=>{const e=s.querySelectorAll(t);for(let t=e.length-1;t>=0;t--){const c=e[t];if(c.parentNode){c.parentNode.removeChild(c)}else{s.removeChild(c)}const r=o(c);for(let t=0;t<r.length;t++){n(r[t])}}}));const l=o(s);for(let t=0;t<l.length;t++){n(l[t])}const u=document.createElement("div");u.appendChild(s);const f=u.querySelector("div");return f!==null?f.innerHTML:u.innerHTML}catch(t){console.error(t);return""}};const n=t=>{if(t.nodeType&&t.nodeType!==1){return}for(let n=t.attributes.length-1;n>=0;n--){const o=t.attributes.item(n);const e=o.name;if(!s.includes(e.toLowerCase())){t.removeAttribute(e);continue}const c=o.value;if(c!=null&&c.toLowerCase().includes("javascript:")){t.removeAttribute(e)}}const e=o(t);for(let t=0;t<e.length;t++){n(e[t])}};const o=t=>t.children!=null?t.children:t.childNodes;const e=()=>{var t;const n=window;const o=(t=n===null||n===void 0?void 0:n.Ionic)===null||t===void 0?void 0:t.config;if(o){if(o.get){return o.get("sanitizerEnabled",true)}else{return o.sanitizerEnabled===true||o.sanitizerEnabled===undefined}}return true};const s=["class","id","href","src","name","slot"];const c=["script","style","iframe","meta","link","object","embed"];class r{constructor(t){this.value=t}}export{t as s};
//# sourceMappingURL=p-7d8427eb.js.map