UNPKG

mongoku

Version:

[![CI](https://github.com/huggingface/Mongoku/actions/workflows/ci.yml/badge.svg)](https://github.com/huggingface/Mongoku/actions/workflows/ci.yml)

2 lines (1 loc) 1.48 kB
import{b1 as p,aS as l,b2 as T,X as c,b3 as h,b4 as b,as as m,j as d,Z as s,b5 as g,k as y,b6 as E,o as w,b7 as N,b8 as M}from"./IwGwbOe7.js";const x=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function A(e){return x?.createHTML(e)??e}function v(e){var t=p("template");return t.innerHTML=A(e.replaceAll("<!>","<!---->")),t.content}function a(e,t){var r=m;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function R(e,t){var r=(t&h)!==0,f=(t&b)!==0,n,i=!e.startsWith("<!>");return()=>{if(d)return a(s,null),s;n===void 0&&(n=v(i?e:"<!>"+e),r||(n=l(n)));var o=f||T?document.importNode(n,!0):n.cloneNode(!0);if(r){var _=l(o),u=o.lastChild;a(_,u)}else a(o,o);return o}}function L(e,t,r="svg"){var f=!e.startsWith("<!>"),n=`<${r}>${f?e:"<!>"+e}</${r}>`,i;return()=>{if(d)return a(s,null),s;if(!i){var o=v(n),_=l(o);i=l(_)}var u=i.cloneNode(!0);return a(u,u),u}}function C(e,t){return L(e,t,"svg")}function I(e=""){if(!d){var t=c(e+"");return a(t,t),t}var r=s;return r.nodeType!==E?(r.before(r=c()),w(r)):N(r),a(r,r),r}function S(){if(d)return a(s,null),s;var e=document.createDocumentFragment(),t=document.createComment(""),r=c();return e.append(t,r),a(t,r),e}function D(e,t){if(d){var r=m;((r.f&g)===0||r.nodes.end===null)&&(r.nodes.end=s),y();return}e!==null&&e.before(t)}const O="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(O);M();export{D as a,C as b,S as c,a as d,R as f,I as t};