const t=(t,e=document)=>e.querySelectorAll(t),e=t=>(t.content||t).cloneNode(!0),l="Iℳ-"+Date.now(),n="["+l+"]",r="text/x-"+l;function o(o){let f=new WeakMap;return(c,...i)=>{let a=f.get(c);a||f.set(c,a=u(c)),a=e(a);for(let e of t(n,a)){let t=+e.getAttribute(l);e.removeAttribute(l);let n=i[+t];o(e,r===e.type,null==n?n:n.valueOf(),t)}return a}}function u(e){let r=Array(e.length-1).fill(2),o=f(e,r);r.fill(1);for(let e of t(n,o.content))r[+e.getAttribute(l)]=2;return f(e,r)}function f(t,e){let n="",o=-1;for(let u of t){n+=u;let t=0|e[++o];if(t){let e=` ${l}=${o}`;1&t&&(e=`