nuclo 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/modifierProcessor.d.ts.map +1 -1
- package/dist/core/reactiveAttributes.d.ts.map +1 -1
- package/dist/core/reactiveCleanup.d.ts +15 -6
- package/dist/core/reactiveCleanup.d.ts.map +1 -1
- package/dist/core/reactiveText.d.ts.map +1 -1
- package/dist/hydration/context.d.ts +31 -6
- package/dist/hydration/context.d.ts.map +1 -1
- package/dist/list/runtime.d.ts.map +1 -1
- package/dist/nuclo.cjs +1 -1
- package/dist/nuclo.cjs.map +1 -1
- package/dist/nuclo.mjs +1 -1
- package/dist/nuclo.mjs.map +1 -1
- package/dist/nuclo.umd.js +1 -1
- package/dist/nuclo.umd.js.map +1 -1
- package/dist/ssr/nuclo.ssr.cjs +1 -1
- package/dist/ssr/nuclo.ssr.cjs.map +1 -1
- package/dist/ssr/nuclo.ssr.mjs +1 -1
- package/dist/ssr/nuclo.ssr.mjs.map +1 -1
- package/dist/ssr/renderToString.d.ts.map +1 -1
- package/dist/utility/conditionalInfo.d.ts.map +1 -1
- package/dist/utility/render.d.ts.map +1 -1
- package/dist/utility/stringUtils.d.ts.map +1 -1
- package/dist/when/builder.d.ts.map +1 -1
- package/dist/when/runtime.d.ts.map +1 -1
- package/package.json +4 -2
package/dist/nuclo.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.Nuclo={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e===null||typeof e!=`object`&&typeof e!=`function`}function n(e){return e instanceof Node?!0:typeof e!=`object`||!e?!1:typeof e.nodeType==`number`}function r(e){return typeof e==`object`&&!!e}function i(e){return r(e)&&`tagName`in e}function a(e){return typeof e==`boolean`}function o(e){return typeof e==`function`}function s(e){return o(e)&&e.length===0}function c(e,t){typeof console<`u`&&console.error(`nuclo: ${e}`,t)}let l=typeof window<`u`&&typeof document<`u`,u=new WeakMap;function d(e,t,n,r,i,a){let o=u.get(e);o||(o=new Map,u.set(e,o));let s=o.get(t);s||(s=new Set,o.set(t,s)),s.add({original:n,wrapped:r,options:i,controller:a})}function f(e,t,n){n.controller?n.controller.abort():e.removeEventListener(t,n.wrapped,n.options)}function p(e,t){let n=u.get(e);if(n)if(t){let r=n.get(t);if(r){for(let n of r)f(e,t,n);n.delete(t)}}else{for(let[t,r]of n)for(let n of r)f(e,t,n);u.delete(e)}}function ee(e,t,n){return function(r){if(!l||!r||typeof r.addEventListener!=`function`)return;let i=r,a=new AbortController,o=function(n){try{t.call(i,n)}catch(t){c(`Error in '${e}' listener`,t)}},s=typeof n==`boolean`?{capture:n,signal:a.signal}:{...n||{},signal:a.signal};i.addEventListener(e,o,s),d(i,e,t,o,n,a)}}let m=new Map,h=new WeakMap,g=new Map,_=new WeakMap;function te(e,t){let n=new WeakRef(e);m.set(n,t),h.set(e,{ref:n,info:t})}function ne(e,t){let n=new WeakRef(e);g.set(n,t),_.set(e,{ref:n,info:t})}function re(e){m.delete(e)}function ie(e){g.delete(e)}function ae(e){let t=h.get(e);t&&(m.delete(t.ref),h.delete(e))}function oe(e){let t=_.get(e);t&&(g.delete(t.ref),_.delete(e))}let v=new WeakMap,y=new Set,se=new WeakMap;function ce(e,t){v.set(e,t);let n=new WeakRef(e);y.add(n),se.set(e,n)}function le(e){v.delete(e);let t=se.get(e);t&&(y.delete(t),se.delete(e))}function ue(){let e=[],t=[];for(let n of y){let r=n.deref();r===void 0?t.push(n):e.push(r)}for(let e of t)y.delete(e);return e}function de(e){return v.get(e)??null}let fe=`http://www.w3.org/2000/svg`;function b(e){return globalThis.document?document.createElement(e):null}function x(e,t){return globalThis.document?document.createElementNS(e,t):null}function S(e){return globalThis.document?document.createTextNode(e):null}function pe(){return globalThis.document?document.createDocumentFragment():null}function me(e,t){try{return e.appendChild(t),!0}catch(e){return c(`Failed to append child node`,e),!1}}function he(e){if(e.nodeType===Node.ELEMENT_NODE){let t=e;p(t),oe(t),le(t)}else e.nodeType===Node.TEXT_NODE?ae(e):e.nodeType===Node.COMMENT_NODE&&le(e);if(e.childNodes&&e.childNodes.length>0)for(let t=0;t<e.childNodes.length;t++)he(e.childNodes[t])}function ge(e){if(!e?.parentNode)return!1;try{return he(e),e.parentNode.removeChild(e),!0}catch(e){return c(`Failed to remove child node`,e),!1}}function _e(e,t,n){try{return e.insertBefore(t,n),!0}catch(e){return c(`Failed to insert node before reference`,e),!1}}function C(e){return globalThis.document?globalThis.document.createComment(e):null}function ve(e,t=`hidden`){return globalThis.document?globalThis.document.createComment(`conditional-${e}-${t}`):null}function ye(e,t){let n=C(`${e}-end`);if(!n)throw Error(`Failed to create comment: document not available`);let r=C(`${e}-start-${t}`);if(!r)throw Error(`Failed to create comment: document not available`);return{start:r,end:n}}function be(e,t){let n=e.nextSibling;for(;n&&n!==t;){let e=n.nextSibling;ge(n),n=e}}function xe(e,t){let n=t.parentNode;if(n)for(let r=0;r<e.length;r++)_e(n,e[r],t)}function Se(e,...t){if(!e)return e;for(let n=0;n<t.length;n++){let r=t[n];if(r!=null){let t;if(typeof r==`string`){let e=S(r);if(e)t=e;else continue}else t=r;me(e,t)}}return e}function w(e){return e?e.isConnected===!0:!1}function T(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return c(`Error replacing conditional node`,e),!1}}let Ce={},we=!1;function Te(e){let t=e.target;if(!t||typeof Node>`u`||!(t instanceof Node))return;let n=t;for(;n;){if(n instanceof Element){let e=_.get(n);e&&(w(n)?Ae(e.info):(ie(e.ref),_.delete(n)))}n=n.parentNode}}function Ee(){we||typeof document>`u`||typeof document.addEventListener!=`function`||(document.addEventListener(`update`,Te,!0),we=!0)}function De(e){let t=_.get(e);if(t)return t.info;let n={attributeResolvers:new Map};return ne(e,n),n}function Oe(e){return typeof e!=`object`||!e}function ke(e,t){let n;try{n=t.resolver()}catch(t){c(`Failed to resolve reactive attribute: ${e}`,t);return}let r=Oe(n);if(!(r&&Object.is(n,t.lastValue)))try{t.applyValue(n),t.lastValue=r?n:Ce}catch(t){c(`Failed to apply reactive attribute: ${e}`,t)}}function Ae(e){for(let[t,n]of e.attributeResolvers)ke(t,n)}function E(e,t,n,r){if(!(e instanceof Element)||!t||typeof n!=`function`){c(`Invalid parameters for registerAttributeResolver`);return}let i={resolver:n,applyValue:r,lastValue:Ce};if(!l){ke(t,i);return}Ee(),De(e).attributeResolvers.set(t,i),ke(t,i)}function je(e){let t=[];for(let[n,r]of g){let i=n.deref();if(i===void 0){t.push(n);continue}if(!w(i)){_.delete(i),t.push(n);continue}e&&!e.contains(i)||Ae(r)}for(let e of t)ie(e)}function Me(e){return e}function Ne(e,t,n){let r=Me(e),i=r.appendChild.bind(r),a=r.insertBefore.bind(r);r.appendChild=function(e){return a(e,t)};try{return n()}finally{r.appendChild=i}}function Pe(e,t,n){try{if(n==null||n===``)return e.style[t]=``,!0;let r=String(n);return e.style[t]=r,!0}catch{return!1}}function Fe(e,t){if(!(!e?.style||!t))for(let[n,r]of Object.entries(t))Pe(e,n,r)||c(`Failed to set style property '${n}'`)}function Ie(e,t){e&&(o(t)?E(e,`style`,t,function(t){Fe(e,t)}):Fe(e,t))}let D=new WeakMap,Le=new WeakSet;function O(e,t){let n=t.length,r=0;for(let i=0;i<=n;i++)(i===n||t.charCodeAt(i)===32)&&(i>r&&e.add(t.substring(r,i)),r=i+1)}function k(e){let t=``;for(let n of e)t&&(t+=` `),t+=n;return t}function Re(e){if(!D.has(e)){let t=new Set;e.className&&O(t,e.className),D.set(e,t)}Le.add(e)}function ze(e){return Le.has(e)}function Be(e,t){if(!t)return;let n=D.get(e);n||(n=new Set,D.set(e,n)),O(n,t)}function Ve(e,t){let n=D.get(e);if(!n||n.size===0){e.className=t||``;return}if(!t){e.className=k(n);return}let r=k(n),i=t.length,a=0;for(let e=0;e<=i;e++)if(e===i||t.charCodeAt(e)===32){if(e>a){let i=t.substring(a,e);n.has(i)||(r+=` `+i)}a=e+1}e.className=r}function He(e,t){if(!t)return;let n=e.className;if(n&&n!==t){let r=new Set;O(r,n),O(r,t),e.className=k(r)}else e.className=t}function Ue(e,t){if(typeof e!=`function`){c(`Invalid resolver provided to createReactiveTextNode`);let e=S(``);if(!e)throw Error(`Failed to create text node: document not available`);return e}let n;if(arguments.length>1)n=t;else try{n=e()}catch(e){c(`Failed to evaluate reactive text resolver`,e),n=``}let r=n===void 0?``:String(n),i=S(r);if(!i)throw Error(`Failed to create text node: document not available`);return l&&te(i,{resolver:e,lastValue:r}),i}function We(e){let t=[];for(let[n,r]of m){let i=n.deref();if(i===void 0){t.push(n);continue}if(!w(i)){h.delete(i),t.push(n);continue}if(e&&!e.contains(i))continue;let a;try{a=r.resolver()}catch(e){c(`Failed to update reactive text node`,e),a=void 0}let o=a===void 0?``:String(a);o!==r.lastValue&&(i.textContent=o,r.lastValue=o)}for(let e of t)re(e)}function Ge(e,t,n,r=!1){if(n==null)return;if(t===`style`){Ie(e,n);return}let i=(n,r=!1)=>{if(n!=null){if(t===`className`&&e instanceof HTMLElement&&r){He(e,String(n));return}if(e instanceof Element&&e.namespaceURI===`http://www.w3.org/2000/svg`)e.setAttribute(String(t),String(n));else if(t in e)try{e[t]=n}catch{e instanceof Element&&e.setAttribute(String(t),String(n))}else e instanceof Element&&e.setAttribute(String(t),String(n))}};if(o(n)&&n.length===0){let r=n;t===`className`&&e instanceof HTMLElement?(Re(e),E(e,String(t),r,function(t){Ve(e,String(t||``))})):E(e,String(t),r,function(e){i(e,!1)})}else{if(t===`className`&&e instanceof HTMLElement&&ze(e)){let t=String(n||``);t&&(Be(e,t),He(e,t));return}i(n,r)}}function A(e,t,n=!0){if(t)for(let r of Object.keys(t)){let i=t[r];Ge(e,r,i,n&&r===`className`)}}let j=new WeakMap,M=!1,Ke=new WeakMap;function N(){return M}function qe(){M=!0}function Je(){M=!1}function P(e){return Ke.get(e)??0}function Ye(e,t){Ke.set(e,t)}function F(e){let t=P(e),n=e.childNodes[t]??null;return n&&Ye(e,t+1),n}function Xe(e,t){if(!M)return null;let n=e.childNodes[P(e)];return n&&n.nodeType===1&&n.tagName.toLowerCase()===t?F(e):null}function Ze(e,t){let n=P(e),r=t-n;for(;r-- >0;){let t=e.childNodes[n];t&&e.removeChild(t)}}function Qe(e){return r(e)&&!n(e)&&`className`in e&&typeof e.className==`string`&&Object.keys(e).length===1}function $e(e){let t=P(e),n=e.childNodes[t];return!!n&&n.nodeType===8&&n.textContent?.trimStart().startsWith(`text-`)===!0}function I(e,i,a){if(i==null)return null;if(o(i)){if(s(i))try{let n=j.get(i);if(n||(n={value:i(),error:!1},j.set(i,n)),n.error)return L(a,()=>``);let r=n.value;if(Qe(r))return A(e,{className:()=>{let e=i();return Qe(e)?e.className:``}}),null;if(t(r)&&r!=null){if(N()&&$e(e)){let t=e;F(t);let n=F(t);return n&&n.nodeType===3&&te(n,{resolver:i,lastValue:n.textContent||``}),null}return L(a,i,r)}return null}catch(e){return j.set(i,{value:void 0,error:!0}),c(`Error evaluating reactive text function:`,e),L(a,()=>``)}let o=i(e,a);return o==null?null:t(o)?et(a,o):n(o)?o:(r(o)&&A(e,o),null)}let l=i;if(t(l)){if(N()&&$e(e)){let t=e;return F(t),F(t),null}return et(a,l)}return n(l)?l:(A(e,l),null)}function L(e,t,n){let r=pe();if(!r)throw Error(`Failed to create document fragment: document not available`);let i=C(` text-${e} `);i&&r.appendChild(i);let a=Ue(t,n);return r.appendChild(a),r}function et(e,t){let n=pe();if(!n)throw Error(`Failed to create document fragment: document not available`);let r=C(` text-${e} `);r&&n.appendChild(r);let i=S(String(t));return i&&n.appendChild(i),n}function R(e,t,n=0){if(!t||t.length===0)return{element:e,nextIndex:n,appended:0};let r=n,i=0,a=e;for(let n=0;n<t.length;n+=1){let o=t[n];if(o==null)continue;let s=I(e,o,r);s&&(s.parentNode!==a&&a.appendChild(s),r+=1,i+=1)}return{element:e,nextIndex:r,appended:i}}function tt(e,t){let n=b(e);return R(n,t,0),n}function nt(e,t){let n=x(fe,e);if(!n)throw Error(`Failed to create SVG element: ${e}`);return R(n,t,0),n}function rt(e,...t){return function(n,r=0){let i=n,a=i?Xe(i,e):null,o=a??b(e),s=o,c=a?s.childNodes.length:0;return R(o,t,r),a&&Ze(s,c),o}}function it(e,...t){return function(n,r=0){let i=n,a=i?Xe(i,e):null,o;if(a)o=a;else{let t=x(fe,e);if(!t)throw Error(`Failed to create SVG element: ${e}`);o=t}let s=o,c=a?s.childNodes.length:0;return R(o,t,r),a&&Ze(s,c),o}}function at(e){return(...t)=>rt(e,...t)}function ot(e){return(...t)=>it(e,...t)}let z=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.menu.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.script.search.section.select.slot.small.source.span.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`),B=`a.animate.animateMotion.animateTransform.circle.clipPath.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.metadata.mpath.path.pattern.polygon.polyline.radialGradient.rect.script.set.stop.style.svg.switch.symbol.text.textPath.title.tspan.use.view`.split(`.`),st=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`source`,`track`,`wbr`];function ct(e,t){t in e&&typeof e[t]!=`function`||(e[t]=at(t))}function lt(e,t){let n=`${t}Svg`;n in e||(e[n]=ot(t))}function ut(e=globalThis){let t=`__nuclo_tags_registered`;if(!e[t]){for(let t=0;t<B.length;t++)lt(e,B[t]);for(let t=0;t<z.length;t++)ct(e,z[t]);e[t]=!0}}function dt(e,t,n){if(o(e)){let r=e(t,n);return r&&i(r)?r:null}return e&&i(e)?e:null}function ft(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}let V=new Map;function pt(e){return Array.isArray(e)?e:Array.from(e)}function mt(e,t,n){return dt(e.renderItem(t,n),e.host,n)}function ht(e){ge(e.element);let t=e;t.element=null,t.item=null}function gt(e){let{host:t,startMarker:n,endMarker:r}=e,i=n.parentNode??t,a=pt(e.itemsProvider());if(ft(e.lastSyncedItems,a))return;let o=new Map,s=new Map;for(let t=0;t<e.records.length;t++){let n=e.records[t],r=s.get(n.item);r?r.push(n):s.set(n.item,[n])}for(let t=0;t<a.length;t++){let n=a[t];if(t<e.lastSyncedItems.length&&e.lastSyncedItems[t]===n){let r=e.records[t];if(r&&r.item===n){o.set(t,r);let e=s.get(n);e.splice(e.indexOf(r),1),e.length===0&&s.delete(n)}}}let c=Array(a.length),l=new Set(e.records),u=r;for(let t=a.length-1;t>=0;t--){let n=a[t],r=o.get(t);if(!r){let e=s.get(n);e&&e.length>0&&(r=e.shift(),e.length===0&&s.delete(n))}if(r)l.delete(r);else{let i=mt(e,n,t);if(!i){c[t]=null;continue}r={item:n,element:i}}c[t]=r;let d=r.element;d.nextSibling!==u&&i.insertBefore(d,u),u=d}for(let e of l)ht(e);e.records=c.filter(e=>e!==null),e.lastSyncedItems=a.slice(),c.length===0&&(e.records=[],e.lastSyncedItems=[])}function _t(e,t,n,r){return N()?yt(e,t,n,r):vt(e,t,n,r)}function vt(e,t,n,r){let{start:i,end:a}=ye(`list`,r),o={itemsProvider:e,renderItem:t,startMarker:i,endMarker:a,records:[],host:n,lastSyncedItems:[]},s=n;if(s.appendChild(i),s.appendChild(a),gt(o),l){let e={runtime:o};V.set(new WeakRef(i),e)}return o}function yt(e,t,n,r){let i=n,a=P(i),o=i.childNodes[a];if(!o||o.nodeType!==8||!o.textContent?.startsWith(`list-start-`))return vt(e,t,n,r);let s=F(i),c=P(i);for(;c<i.childNodes.length;){let e=i.childNodes[c];if(e.nodeType===8&&e.textContent===`list-end`)break;c++}let u=i.childNodes[c],d=pt(e()),f=[];for(let e=0;e<d.length;e++){let r=dt(t(d[e],e),n,e);r&&f.push({item:d[e],element:r})}Ye(i,c+1);let p={itemsProvider:e,renderItem:t,startMarker:s,endMarker:u,records:f,host:n,lastSyncedItems:d.slice()};if(l){let e={runtime:p};V.set(new WeakRef(s),e)}return p}function bt(e){for(let t=0;t<e.records.length;t++){let n=e.records[t];n.element=null,n.item=null}e.records=[]}function xt(e){let t=[];for(let[n,r]of V){let i=n.deref();if(!i||!w(i)||!w(r.runtime.endMarker)){bt(r.runtime),t.push(n);continue}e&&!e.contains(i)||gt(r.runtime)}for(let e of t)V.delete(e)}function St(e,t){return function(n,r){return _t(e,t,n,r).startMarker}}function Ct(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function wt(e,t){return typeof e==`function`?Ct(e,t):!!e}function Tt(e,t,n,r){return o(e)?s(e)?(j.delete(e),I(t,e,n)):Ne(t,r,()=>{let r=I(t,e,n);return r&&!r.parentNode?r:null}):I(t,e,n)}function Et(e,t,n,r){let i=[];for(let a of e){let e=Tt(a,t,n,r);e&&i.push(e)}return i}let H=new Map;function Dt(e,t){for(let t=0;t<e.length;t++)if(wt(e[t].condition))return t;return t.length>0?-1:null}function Ot(e){let{groups:t,elseContent:n,host:r,index:i,endMarker:a}=e,o=Dt(t,n);o!==e.activeIndex&&(be(e.startMarker,e.endMarker),e.activeIndex=o,o!==null&&xe(Et(o>=0?t[o].content:n,r,i,a),a))}function kt(e){let t={runtime:e};H.set(new WeakRef(e.startMarker),t)}function At(e){let t=[];for(let[n,r]of H){let i=n.deref();if(i===void 0){t.push(n);continue}if(!w(i)||!w(r.runtime.endMarker)){t.push(n);continue}if(!(e&&!e.contains(i)))try{r.runtime.update()}catch{t.push(n)}}for(let e of t)H.delete(e)}var jt=class e{groups=[];elseContent=[];constructor(e,...t){this.groups.push({condition:e,content:t})}cloneWith(t,n){let r=Object.create(e.prototype);return r.groups=[...this.groups],t&&r.groups.push(t),r.elseContent=n??[...this.elseContent],r}when(e,...t){return this.groups.push({condition:e,content:t}),this}else(...e){return this.elseContent=e,this}render(e,t){return globalThis.document?N()?this.hydrateRender(e,t):this.freshRender(e,t):null}freshRender(e,t){let{start:n,end:r}=ye(`when`,t),i=this.createRuntimeFromMarkers(e,t,n,r),a=Me(e);return a.appendChild(n),a.appendChild(r),Ot(i),n}hydrateRender(e,t){let n=e,r=P(n),i=n.childNodes[r];if(!i||i.nodeType!==8||!i.textContent?.startsWith(`when-start-`))return this.freshRender(e,t);let a=F(n),o=P(n);for(;o<n.childNodes.length;){let e=n.childNodes[o];if(e.nodeType===8&&e.textContent===`when-end`)break;o++}let s=n.childNodes[o],c=Dt([...this.groups],[...this.elseContent]);if(c!==null){let n=c>=0?this.groups[c].content:this.elseContent;for(let r of n)I(e,r,t)}return Ye(n,o+1),this.createRuntimeFromMarkers(e,t,a,s,c),a}createRuntimeFromMarkers(e,t,n,r,i=null){let a={startMarker:n,endMarker:r,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:i,update:function(){Ot(a)}};return l&&kt(a),a}};function U(e){return Object.assign(function(t,n){return e.render(t,n)},{when:function(t,...n){return U(e.cloneWith({condition:t,content:n}))},else:function(...t){return U(e.cloneWith(void 0,t))}})}function Mt(e,...t){return U(new jt(e,...t))}function Nt(e){try{return e.isSvg?nt(e.tagName,e.modifiers):tt(e.tagName,e.modifiers)}catch(t){if(c(`Error applying modifiers in conditional element "${e.tagName}"`,t),e.isSvg){let n=x(fe,e.tagName);if(!n)throw Error(`Failed to create SVG element: ${e.tagName}`,{cause:t});return n}let n=b(e.tagName);if(!n)throw Error(`Failed to create element: ${e.tagName}`,{cause:t});return n}}function Pt(e){let t=de(e);if(!t)return;let n=Ct(t.condition,e=>{c(`Error evaluating conditional condition`,e)}),r=e.nodeType===Node.ELEMENT_NODE;if(n&&!r){let n=Nt(t);ce(n,t),T(e,n)}else if(!n&&r){let n=ve(t.tagName);n&&(ce(n,t),T(e,n))}}function Ft(e){if(l)try{let t=ue();for(let n of t){if(!n.isConnected){le(n);continue}e&&!e.contains(n)||Pt(n)}}catch(e){c(`Error during conditional elements update`,e)}}function It(){if(typeof document>`u`)return;let e=document.body?[document.body,document]:[document];for(let t of e)try{t.dispatchEvent(new Event(`update`,{bubbles:!0}))}catch(e){c(`Error dispatching global update event`,e)}}let W=new Map;function Lt(e){let t=[],n=new Set;for(let r of e){if(typeof r!=`string`)continue;let e=r.trim();e&&(n.has(e)||(n.add(e),t.push(e)))}return t}function Rt(e,t){let n=W.get(e);n||(n=new Set,W.set(e,n)),n.add(new WeakRef(t))}function zt(e){let t=Lt(e);if(t.length===0)return[];let n=new Set;for(let e of t){let t=W.get(e);if(!t)continue;let r=[];for(let e of t){let t=e.deref();if(t===void 0){r.push(e);continue}if(!w(t)){r.push(e);continue}n.add(t)}for(let e of r)t.delete(e);t.size===0&&W.delete(e)}return Array.from(n)}function Bt(...e){let t=Lt(e);return function(e){if(l&&e instanceof Element)for(let n of t)Rt(n,e)}}let Vt=[xt,At,Ft,je,We,It];function Ht(...e){let t;if(e.length>0){let n=zt(e);if(n.length===1){let e=n[0];t={roots:n,contains:t=>e.contains(t)}}else t={roots:n,contains:e=>{for(let t of n)if(t.contains(e))return!0;return!1}}}for(let e of Vt)e(t)}function Ut(e,t,n=0){let r=e(t||document.body,n);return(t||document.body).appendChild(r),r}function Wt(e,t){let n=t||document.body;qe();try{return e(n,0)}finally{Je()}}let Gt=null;function Kt(e){Gt=e}let G=new Map,K=new Map,q=new Set,J=[],Y=new Map,X=null,qt=null,Z=0,Q=new Map;function Jt(e){for(let t of e)Y.has(t)||Y.set(t,[])}function Yt(e,t){try{let n=e.cssRules.length;e.insertRule(t+`{}`,n);let r=e.cssRules[n];return Q.set(t,r),r}catch{return null}}function Xt(e,t){try{e.insertRule(t,Z),Z++}catch{}}function Zt(){if(typeof document>`u`||typeof document.getElementById!=`function`)return null;if(X&&qt===document&&X.ownerNode&&X.ownerNode.isConnected)return X;let e=document.getElementById(`nuclo-styles`);if(e||(e=document.createElement(`style`),e.id=`nuclo-styles`,document.head.appendChild(e)),X=e.sheet,qt=document,Q.clear(),Z=0,!X)return null;for(let e of J)Xt(X,e);for(let[e,t]of Y){let n=Yt(X,e);if(n)for(let e of t)try{n.insertRule(e,n.cssRules.length)}catch{}}return X}function Qt(e,t){if(t===void 0)J.push(e);else{let n=Y.get(t);n||(n=[],Y.set(t,n)),n.push(e)}Gt?.(t===void 0?e:t+`{`+e+`}`);let n=Zt();if(n)if(t===void 0)Xt(n,e);else{let r=Q.get(t)??Yt(n,t);if(r)try{r.insertRule(e,r.cssRules.length)}catch{}}}function $t(e){let t=2166136261,n=2128831035;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);t=Math.imul(t^i,16777619),n=Math.imul(n^i,2246822507)}return(t>>>0).toString(36)+((n>>>9)%1296).toString(36)}function $(e,t,n,r){let i=(e??``)+`|`+t+`|`+n+`:`+r,a=G.get(i);return a===void 0?(a=`n`+$t(i),G.set(i,a),K.set(a,(e??``)+`|`+t+`|`+n),Qt(`.`+a+t+`{`+n+`:`+r+`}`,e),a):(Zt(),a)}function en(e){return K.get(e)}function tn(e,t){if(q.has(e)){Zt();return}q.add(e),Qt(t,void 0)}function nn(){let e=J.join(``);for(let[t,n]of Y)n.length>0&&(e+=t+`{`+n.join(``)+`}`);return e}function rn(){G.clear(),K.clear(),q.clear(),J.length=0,Y.clear(),Q.clear(),Z=0,X=null,qt=null,typeof document<`u`&&document.getElementById(`nuclo-styles`)?.remove()}let an={hover:`:hover`,focus:`:focus`,focusVisible:`:focus-visible`,focusWithin:`:focus-within`,active:`:active`,visited:`:visited`,disabled:`:disabled`,enabled:`:enabled`,checked:`:checked`,required:`:required`,invalid:`:invalid`,valid:`:valid`,readOnly:`:read-only`,first:`:first-child`,last:`:last-child`,only:`:only-child`,odd:`:nth-child(odd)`,even:`:nth-child(even)`,empty:`:empty`,placeholderShown:`:placeholder-shown`,placeholder:`::placeholder`,before:`::before`,after:`::after`,selection:`::selection`,marker:`::marker`,firstLine:`::first-line`,firstLetter:`::first-letter`},on={bg:[`background`],p:[`padding`],px:[`padding-left`,`padding-right`],py:[`padding-top`,`padding-bottom`],pt:[`padding-top`],pr:[`padding-right`],pb:[`padding-bottom`],pl:[`padding-left`],m:[`margin`],mx:[`margin-left`,`margin-right`],my:[`margin-top`,`margin-bottom`],mt:[`margin-top`],mr:[`margin-right`],mb:[`margin-bottom`],ml:[`margin-left`],w:[`width`],h:[`height`],minW:[`min-width`],maxW:[`max-width`],minH:[`min-height`],maxH:[`max-height`],size:[`width`,`height`],text:[`font-size`],font:[`font-family`],weight:[`font-weight`],leading:[`line-height`],tracking:[`letter-spacing`],align:[`text-align`],items:[`align-items`],justify:[`justify-content`],z:[`z-index`],rounded:[`border-radius`],shadow:[`box-shadow`],select:[`user-select`]},sn={row:{display:`flex`,"flex-direction":`row`},col:{display:`flex`,"flex-direction":`column`},center:{"align-items":`center`,"justify-content":`center`},truncate:{overflow:`hidden`,"text-overflow":`ellipsis`,"white-space":`nowrap`}},cn={background:`colors`,"background-color":`colors`,color:`colors`,"border-color":`colors`,"border-top-color":`colors`,"border-right-color":`colors`,"border-bottom-color":`colors`,"border-left-color":`colors`,"outline-color":`colors`,"caret-color":`colors`,"text-decoration-color":`colors`,"font-family":`fonts`,"box-shadow":`shadows`,"border-radius":`radii`},ln=new Set([`z-index`,`opacity`,`font-weight`,`line-height`,`flex`,`flex-grow`,`flex-shrink`,`order`,`aspect-ratio`,`zoom`,`scale`,`column-count`,`orphans`,`widows`,`tab-size`,`animation-iteration-count`,`grid-column`,`grid-row`]),un=new Map;function dn(e){let t=un.get(e);return t===void 0&&(t=e.replace(/[A-Z]/g,e=>`-`+e.toLowerCase()),un.set(e,t)),t}function fn(e){return e.charCodeAt(0)===64?e:`@media `+e}function pn(e,t){return e!==void 0&&e.startsWith(`@media`)&&t.startsWith(`@media`)?e+` and`+t.slice(6):t}function mn(e){let t={className:e};return Object.defineProperty(t,"toString",{value:()=>e,enumerable:!1}),t}function hn(...e){let t=new Map;for(let n of e){if(!n)continue;let e=(typeof n==`string`?n:n.className).split(` `);for(let n of e)n&&t.set(en(n)??n,n)}let n=``;for(let e of t.values())n+=(n?` `:``)+e;return mn(n)}function gn(e={}){let t=e.screens??{};Jt(Object.values(t).map(fn));let n=new WeakMap;function r(t,n){if(typeof n==`number`)return n===0||ln.has(t)?String(n):n+`px`;let r=cn[t];if(r!==void 0){let t=e[r]?.[n];if(t!==void 0)return t}return n}function i(e,n,a,o){for(let s in e){let c=e[s];if(c==null||c===!1)continue;if(typeof c==`object`){if(s===`raw`){let e=c;for(let t in e)o.push($(n,a,t,r(t,e[t])));continue}let e=an[s];if(e!==void 0){i(c,n,a+e,o);continue}let l=t[s];if(l!==void 0){i(c,pn(n,fn(l)),a,o);continue}let u=s.charCodeAt(0);if(u===38){i(c,n,a+s.slice(1),o);continue}if(u===64){i(c,pn(n,s),a,o);continue}continue}if(c===!0){let e=sn[s];if(e)for(let t in e)o.push($(n,a,t,e[t]));continue}let l=on[s];if(l!==void 0)for(let e of l)o.push($(n,a,e,r(e,c)));else{let e=dn(s);o.push($(n,a,e,r(e,c)))}}}function a(e){let t=n.get(e);if(t)return t;let r=[];i(e,void 0,``,r);let a=mn(r.join(` `));return n.set(e,a),a}function o(e){let t=``,n=(e,n)=>{t+=(t?`;`:``)+e+`:`+n};for(let t in e){let i=e[t];if(i==null||i===!1)continue;if(t===`raw`&&typeof i==`object`){let e=i;for(let t in e)n(t,r(t,e[t]));continue}if(typeof i==`object`)continue;if(i===!0){let e=sn[t];if(e)for(let t in e)n(t,e[t]);continue}let a=on[t];if(a!==void 0)for(let e of a)n(e,r(e,i));else{let e=dn(t);n(e,r(e,i))}}return t}function s(e){let t=``;for(let n in e)t+=n+`{`+o(e[n])+`}`;let n=`nk`+$t(t);return tn(n,`@keyframes `+n+`{`+t+`}`),n}function c(e,t){let n=e+`{`+o(t)+`}`;tn(`g|`+n,n)}return{css:a,cx:hn,keyframes:s,globalStyle:c,theme:e}}let _n=gn({}),vn=_n.css,yn=_n.keyframes,bn=_n.globalStyle;function xn(){ut();let e=globalThis;e.list=St,e.update=Ht,e.when=Mt,e.on=ee,e.scope=Bt,e.render=Ut,e.hydrate=Wt,e.createCss=gn,e.css=vn,e.cx=hn,e.keyframes=yn,e.globalStyle=bn}xn(),e.HTML_TAGS=z,e.SELF_CLOSING_TAGS=st,e.SVG_TAGS=B,e.appendChildren=Se,e.applyAttributes=A,e.applyNodeModifier=I,e.createComment=C,e.createConditionalComment=ve,e.createCss=gn,e.createHtmlElementWithModifiers=tt,e.createHtmlTagBuilder=at,e.createSvgElementWithModifiers=nt,e.createSvgTagBuilder=ot,e.css=vn,e.cx=hn,e.getCssText=nn,e.globalStyle=bn,e.hydrate=Wt,e.initializeRuntime=xn,e.isBoolean=a,e.isBrowser=l,e.isFunction=o,e.isNode=n,e.isObject=r,e.isPrimitive=t,e.isTagLike=i,e.isZeroArityFunction=s,e.keyframes=yn,e.list=St,e.on=ee,e.registerGlobalTagBuilders=ut,e.render=Ut,e.replaceNodeSafely=T,e.resetStyles=rn,e.scope=Bt,e.setSSRCollector=Kt,e.update=Ht,e.when=Mt});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.Nuclo={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e===null||typeof e!=`object`&&typeof e!=`function`}function n(e){return e instanceof Node?!0:typeof e!=`object`||!e?!1:typeof e.nodeType==`number`}function r(e){return typeof e==`object`&&!!e}function i(e){return r(e)&&`tagName`in e}function a(e){return typeof e==`boolean`}function o(e){return typeof e==`function`}function s(e){return o(e)&&e.length===0}function c(e,t){typeof console<`u`&&console.error(`nuclo: ${e}`,t)}let l=typeof window<`u`&&typeof document<`u`,u=new WeakMap;function d(e,t,n,r,i,a){let o=u.get(e);o||(o=new Map,u.set(e,o));let s=o.get(t);s||(s=new Set,o.set(t,s)),s.add({original:n,wrapped:r,options:i,controller:a})}function f(e,t,n){n.controller?n.controller.abort():e.removeEventListener(t,n.wrapped,n.options)}function p(e,t){let n=u.get(e);if(n)if(t){let r=n.get(t);if(r){for(let n of r)f(e,t,n);n.delete(t)}}else{for(let[t,r]of n)for(let n of r)f(e,t,n);u.delete(e)}}function m(e,t,n){return function(r){if(!l||!r||typeof r.addEventListener!=`function`)return;let i=r,a=new AbortController,o=function(n){try{t.call(i,n)}catch(t){c(`Error in '${e}' listener`,t)}},s=typeof n==`boolean`?{capture:n,signal:a.signal}:{...n||{},signal:a.signal};i.addEventListener(e,o,s),d(i,e,t,o,n,a)}}let h=new Set,g=new WeakMap,_=new Set,v=new WeakMap,ee=typeof FinalizationRegistry<`u`?new FinalizationRegistry(e=>{h.delete(e)}):null,te=typeof FinalizationRegistry<`u`?new FinalizationRegistry(e=>{_.delete(e)}):null;function ne(e,t){let n=g.get(e);if(n){n.info.resolver=t.resolver,n.info.lastValue=t.lastValue;return}let r=new WeakRef(e);h.add(r),g.set(e,{ref:r,info:t}),ee?.register(e,r)}function re(e,t){let n=new WeakRef(e);_.add(n),v.set(e,{ref:n,info:t}),te?.register(e,n)}function ie(e){h.delete(e)}function ae(e){_.delete(e)}function oe(e){let t=g.get(e);t&&(h.delete(t.ref),g.delete(e))}function se(e){let t=v.get(e);t&&(_.delete(t.ref),v.delete(e))}let y=new WeakMap,b=new Set,ce=new WeakMap,le=typeof FinalizationRegistry<`u`?new FinalizationRegistry(e=>{b.delete(e)}):null;function ue(e,t){y.set(e,t);let n=new WeakRef(e);b.add(n),ce.set(e,n),le?.register(e,n)}function de(e){y.delete(e);let t=ce.get(e);t&&(b.delete(t),ce.delete(e))}function fe(){let e=[],t=[];for(let n of b){let r=n.deref();r===void 0?t.push(n):e.push(r)}for(let e of t)b.delete(e);return e}function pe(e){return y.get(e)??null}let x=`http://www.w3.org/2000/svg`;function S(e){return globalThis.document?document.createElement(e):null}function C(e,t){return globalThis.document?document.createElementNS(e,t):null}function w(e){return globalThis.document?document.createTextNode(e):null}function me(){return globalThis.document?document.createDocumentFragment():null}function he(e,t){try{return e.appendChild(t),!0}catch(e){return c(`Failed to append child node`,e),!1}}function ge(e){if(e.nodeType===Node.ELEMENT_NODE){let t=e;p(t),se(t),de(t)}else e.nodeType===Node.TEXT_NODE?oe(e):e.nodeType===Node.COMMENT_NODE&&de(e);if(e.childNodes&&e.childNodes.length>0)for(let t=0;t<e.childNodes.length;t++)ge(e.childNodes[t])}function T(e){if(!e?.parentNode)return!1;try{return ge(e),e.parentNode.removeChild(e),!0}catch(e){return c(`Failed to remove child node`,e),!1}}function _e(e,t,n){try{return e.insertBefore(t,n),!0}catch(e){return c(`Failed to insert node before reference`,e),!1}}function E(e){return globalThis.document?globalThis.document.createComment(e):null}function ve(e,t=`hidden`){return globalThis.document?globalThis.document.createComment(`conditional-${e}-${t}`):null}function ye(e,t){let n=E(`${e}-end`);if(!n)throw Error(`Failed to create comment: document not available`);let r=E(`${e}-start-${t}`);if(!r)throw Error(`Failed to create comment: document not available`);return{start:r,end:n}}function be(e,t){let n=e.nextSibling;for(;n&&n!==t;){let e=n.nextSibling;T(n),n=e}}function xe(e,t){let n=t.parentNode;if(n)for(let r=0;r<e.length;r++)_e(n,e[r],t)}function Se(e,...t){if(!e)return e;for(let n=0;n<t.length;n++){let r=t[n];if(r!=null){let t;if(typeof r==`string`){let e=w(r);if(e)t=e;else continue}else t=r;he(e,t)}}return e}function D(e){return e?e.isConnected===!0:!1}function Ce(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return c(`Error replacing conditional node`,e),!1}}let we={},Te=!1;function Ee(e){let t=e.target;if(!t||typeof Node>`u`||!(t instanceof Node))return;let n=t;for(;n;){if(n instanceof Element){let e=v.get(n);e&&(D(n)?je(e.info):(ae(e.ref),v.delete(n)))}n=n.parentNode}}function De(){Te||typeof document>`u`||typeof document.addEventListener!=`function`||(document.addEventListener(`update`,Ee,!0),Te=!0)}function Oe(e){let t=v.get(e);if(t)return t.info;let n={attributeResolvers:new Map};return re(e,n),n}function ke(e){return typeof e!=`object`||!e}function Ae(e,t){let n;try{n=t.resolver()}catch(t){c(`Failed to resolve reactive attribute: ${e}`,t);return}let r=ke(n);if(!(r&&Object.is(n,t.lastValue)))try{t.applyValue(n),t.lastValue=r?n:we}catch(t){c(`Failed to apply reactive attribute: ${e}`,t)}}function je(e){for(let[t,n]of e.attributeResolvers)Ae(t,n)}function Me(e,t,n,r){if(!(e instanceof Element)||!t||typeof n!=`function`){c(`Invalid parameters for registerAttributeResolver`);return}let i={resolver:n,applyValue:r,lastValue:we};if(!l){Ae(t,i);return}De(),Oe(e).attributeResolvers.set(t,i),Ae(t,i)}function Ne(e){let t=[];for(let n of _){let r=n.deref();if(r===void 0){t.push(n);continue}let i=v.get(r);if(!i){t.push(n);continue}if(!D(r)){v.delete(r),t.push(n);continue}e&&!e.contains(r)||je(i.info)}for(let e of t)ae(e)}function Pe(e){return e}function Fe(e,t,n){let r=Pe(e),i=r.appendChild.bind(r),a=r.insertBefore.bind(r);r.appendChild=function(e){return a(e,t)};try{return n()}finally{r.appendChild=i}}function Ie(e,t,n){try{if(n==null||n===``)return e.style[t]=``,!0;let r=String(n);return e.style[t]=r,!0}catch{return!1}}function Le(e,t){if(!(!e?.style||!t))for(let n in t)Ie(e,n,t[n])||c(`Failed to set style property '${n}'`)}function Re(e,t){e&&(o(t)?Me(e,`style`,t,function(t){Le(e,t)}):Le(e,t))}let O=new WeakMap,ze=new WeakSet;function k(e,t){let n=t.length,r=0;for(let i=0;i<=n;i++)(i===n||t.charCodeAt(i)===32)&&(i>r&&e.add(t.substring(r,i)),r=i+1)}function Be(e){let t=``;for(let n of e)t&&(t+=` `),t+=n;return t}function Ve(e){if(!O.has(e)){let t=new Set;e.className&&k(t,e.className),O.set(e,t)}ze.add(e)}function He(e){return ze.has(e)}function Ue(e,t){if(!t)return;let n=O.get(e);n||(n=new Set,O.set(e,n)),k(n,t)}function We(e,t){let n=O.get(e);if(!n||n.size===0){e.className=t||``;return}if(!t){e.className=Be(n);return}let r=Be(n),i=t.length,a=0;for(let e=0;e<=i;e++)if(e===i||t.charCodeAt(e)===32){if(e>a){let i=t.substring(a,e);n.has(i)||(r+=` `+i)}a=e+1}e.className=r}function Ge(e,t){if(!t)return;let n=e.className;if(n&&n!==t){let r=new Set;k(r,n),k(r,t),e.className=Be(r)}else e.className=t}function Ke(e,t){if(typeof e!=`function`){c(`Invalid resolver provided to createReactiveTextNode`);let e=w(``);if(!e)throw Error(`Failed to create text node: document not available`);return e}let n;if(arguments.length>1)n=t;else try{n=e()}catch(e){c(`Failed to evaluate reactive text resolver`,e),n=``}let r=n===void 0?``:String(n),i=w(r);if(!i)throw Error(`Failed to create text node: document not available`);return l&&ne(i,{resolver:e,lastValue:r}),i}function qe(e){let t=[];for(let n of h){let r=n.deref();if(r===void 0){t.push(n);continue}let i=g.get(r);if(!i){t.push(n);continue}let a=i.info;if(!D(r)){g.delete(r),t.push(n);continue}if(e&&!e.contains(r))continue;let o;try{o=a.resolver()}catch(e){c(`Failed to update reactive text node`,e),o=void 0}let s=o===void 0?``:String(o);s!==a.lastValue&&(r.textContent=s,a.lastValue=s)}for(let e of t)ie(e)}function Je(e,t,n,r=!1){if(n==null)return;if(t===`style`){Re(e,n);return}let i=(n,r=!1)=>{if(n!=null){if(t===`className`&&e instanceof HTMLElement&&r){Ge(e,String(n));return}if(e instanceof Element&&e.namespaceURI===`http://www.w3.org/2000/svg`)e.setAttribute(String(t),String(n));else if(t in e)try{e[t]=n}catch{e instanceof Element&&e.setAttribute(String(t),String(n))}else e instanceof Element&&e.setAttribute(String(t),String(n))}};if(o(n)&&n.length===0){let r=n;t===`className`&&e instanceof HTMLElement?(Ve(e),Me(e,String(t),r,function(t){We(e,String(t||``))})):Me(e,String(t),r,function(e){i(e,!1)})}else{if(t===`className`&&e instanceof HTMLElement&&He(e)){let t=String(n||``);t&&(Ue(e,t),Ge(e,t));return}i(n,r)}}function A(e,t,n=!0){if(t)for(let r of Object.keys(t)){let i=t[r];Je(e,r,i,n&&r===`className`)}}let j=new WeakMap,M=!1,Ye=new WeakMap;function N(){return M}function Xe(){M=!0,Ye=new WeakMap}function Ze(){M=!1}function Qe(e){let t=M;M=!1;try{return e()}finally{M=t}}function P(e){let t=Ye.get(e);return t===void 0?e.firstChild:t}function F(e,t){Ye.set(e,t)}function $e(e){return e.nodeType===3&&!/\S/.test(e.textContent||``)}function I(e){let t=P(e),n=!1;for(;t&&$e(t);)t=t.nextSibling,n=!0;n&&F(e,t)}function L(e){let t=P(e);return t&&F(e,t.nextSibling),t}function et(e,t){if(!M)return null;I(e);let n=P(e);return n&&n.nodeType===1&&n.tagName.toLowerCase()===t?L(e):null}function tt(e,t){if(!t)return;let n=P(e);for(;n;){let r=n===t?null:n.nextSibling;e.removeChild(n),n=r}F(e,null)}function nt(e){return r(e)&&!n(e)&&`className`in e&&typeof e.className==`string`&&Object.keys(e).length===1}function rt(e){I(e);let t=P(e);return!!t&&t.nodeType===8&&t.textContent?.trimStart().startsWith(`text-`)===!0}function it(e,t){let n=P(e);if(n&&n.nodeType===3)return L(e),n.textContent!==t&&(n.textContent=t),n;let r=w(t);return r?(e.insertBefore(r,n),F(e,n),r):null}function R(e,i,a){if(i==null)return null;if(o(i)){if(s(i))try{let n=j.get(i);if(n||(n={value:i(),error:!1},j.set(i,n)),n.error)return at(a,()=>``);let r=n.value;if(nt(r))return A(e,{className:()=>{let e=i();return nt(e)?e.className:``}}),null;if(t(r)&&r!=null){if(N()&&rt(e)){let t=e;L(t);let n=String(r),a=it(t,n);return a&&ne(a,{resolver:i,lastValue:n}),null}return at(a,i,r)}return null}catch(e){return j.set(i,{value:void 0,error:!0}),c(`Error evaluating reactive text function:`,e),at(a,()=>``)}let o=i(e,a);return o==null?null:t(o)?ot(a,o):n(o)?o:(r(o)&&A(e,o),null)}let l=i;if(t(l)){if(N()&&rt(e)){let t=e;return L(t),it(t,String(l)),null}return ot(a,l)}return n(l)?l:(A(e,l),null)}function at(e,t,n){let r=me();if(!r)throw Error(`Failed to create document fragment: document not available`);let i=E(` text-${e} `);i&&r.appendChild(i);let a=Ke(t,n);return r.appendChild(a),r}function ot(e,t){let n=me();if(!n)throw Error(`Failed to create document fragment: document not available`);let r=E(` text-${e} `);r&&n.appendChild(r);let i=w(String(t));return i&&n.appendChild(i),n}function z(e,t,n=0){if(!t||t.length===0)return{element:e,nextIndex:n,appended:0};let r=n,i=0,a=e;for(let n=0;n<t.length;n+=1){let o=t[n];if(o==null)continue;let s=R(e,o,r);s&&(s.parentNode!==a&&a.appendChild(s),r+=1,i+=1)}return{element:e,nextIndex:r,appended:i}}function st(e,t){let n=S(e);return z(n,t,0),n}function ct(e,t){let n=C(x,e);if(!n)throw Error(`Failed to create SVG element: ${e}`);return z(n,t,0),n}function lt(e,...t){return function(n,r=0){let i=n,a=i?et(i,e):null,o=a??S(e),s=o,c=a?s.lastChild:null;return z(o,t,r),a&&tt(s,c),o}}function ut(e,...t){return function(n,r=0){let i=n,a=i?et(i,e):null,o;if(a)o=a;else{let t=C(x,e);if(!t)throw Error(`Failed to create SVG element: ${e}`);o=t}let s=o,c=a?s.lastChild:null;return z(o,t,r),a&&tt(s,c),o}}function dt(e){return(...t)=>lt(e,...t)}function ft(e){return(...t)=>ut(e,...t)}let B=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.menu.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.script.search.section.select.slot.small.source.span.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`),V=`a.animate.animateMotion.animateTransform.circle.clipPath.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.metadata.mpath.path.pattern.polygon.polyline.radialGradient.rect.script.set.stop.style.svg.switch.symbol.text.textPath.title.tspan.use.view`.split(`.`),pt=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`source`,`track`,`wbr`];function mt(e,t){t in e&&typeof e[t]!=`function`||(e[t]=dt(t))}function ht(e,t){let n=`${t}Svg`;n in e||(e[n]=ft(t))}function gt(e=globalThis){let t=`__nuclo_tags_registered`;if(!e[t]){for(let t=0;t<V.length;t++)ht(e,V[t]);for(let t=0;t<B.length;t++)mt(e,B[t]);e[t]=!0}}function _t(e,t,n){if(o(e)){let r=e(t,n);return r&&i(r)?r:null}return e&&i(e)?e:null}function vt(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}let H=new Set,U=new WeakMap,yt=typeof FinalizationRegistry<`u`?new FinalizationRegistry(e=>{H.delete(e)}):null;function bt(e,t){let n=new WeakRef(e);H.add(n),U.set(e,t),yt?.register(e,n)}function xt(e){return Array.isArray(e)?e:Array.from(e)}function St(e,t,n){return _t(e.renderItem(t,n),e.host,n)}function Ct(e){T(e.element);let t=e;t.element=null,t.item=null}function wt(e){let{host:t,startMarker:n,endMarker:r}=e,i=n.parentNode??t,a=xt(e.itemsProvider());if(vt(e.lastSyncedItems,a))return;let o=new Map,s=new Map;for(let t=0;t<e.records.length;t++){let n=e.records[t],r=s.get(n.item);r?r.push(n):s.set(n.item,[n])}for(let t=0;t<a.length;t++){let n=a[t];if(t<e.lastSyncedItems.length&&e.lastSyncedItems[t]===n){let r=e.records[t];if(r&&r.item===n){o.set(t,r);let e=s.get(n);e.splice(e.indexOf(r),1),e.length===0&&s.delete(n)}}}let c=Array(a.length),l=new Set(e.records);for(let t=a.length-1;t>=0;t--){let n=a[t],r=o.get(t);if(!r){let e=s.get(n);e&&e.length>0&&(r=e.shift(),e.length===0&&s.delete(n))}if(r)l.delete(r);else{let i=St(e,n,t);if(!i){c[t]=null;continue}r={item:n,element:i}}c[t]=r}for(let e of l)Ct(e);let u=r;for(let e=a.length-1;e>=0;e--){let t=c[e];if(!t)continue;let n=t.element;n.nextSibling!==u&&i.insertBefore(n,u),u=n}e.records=c.filter(e=>e!==null),e.lastSyncedItems=a.slice(),c.length===0&&(e.records=[],e.lastSyncedItems=[])}function Tt(e,t,n,r){return N()?Et(e,t,n,r):W(e,t,n,r)}function W(e,t,n,r){let{start:i,end:a}=ye(`list`,r),o={itemsProvider:e,renderItem:t,startMarker:i,endMarker:a,records:[],host:n,lastSyncedItems:[]},s=n;return s.appendChild(i),s.appendChild(a),wt(o),l&&bt(i,o),o}function Et(e,t,n,r){let i=n;I(i);let a=P(i);if(!a||a.nodeType!==8||!a.textContent?.startsWith(`list-start-`))return W(e,t,n,r);let o=L(i),s=0,c=P(i);for(;c;){if(c.nodeType===8){let e=c.textContent||``;if(e.startsWith(`list-start-`))s++;else if(e===`list-end`){if(s===0)break;s--}}c=c.nextSibling}let u=c;if(!u){let e=E(`list-end`);e&&(i.insertBefore(e,o.nextSibling),u=e)}if(!u)return W(e,t,n,r);let d=xt(e()),f=[];for(let e=0;e<d.length;e++){let r=_t(t(d[e],e),n,e);r&&f.push({item:d[e],element:r})}let p=P(i);for(;p&&p!==u;){let e=p.nextSibling;T(p),p=e}let m=u;for(let e=f.length-1;e>=0;e--){let t=f[e].element;(t.parentNode!==i||t.nextSibling!==m)&&i.insertBefore(t,m),m=t}F(i,u.nextSibling);let h={itemsProvider:e,renderItem:t,startMarker:o,endMarker:u,records:f,host:n,lastSyncedItems:d.slice()};return l&&bt(o,h),h}function Dt(e){for(let t=0;t<e.records.length;t++){let n=e.records[t];n.element=null,n.item=null}e.records=[]}function Ot(e){let t=[];for(let n of H){let r=n.deref();if(!r){t.push(n);continue}let i=U.get(r);if(!i){t.push(n);continue}if(!D(r)||!D(i.endMarker)){Dt(i),U.delete(r),t.push(n);continue}e&&!e.contains(r)||wt(i)}for(let e of t)H.delete(e)}function kt(e,t){return function(n,r){return Tt(e,t,n,r).startMarker}}function At(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function jt(e,t){return typeof e==`function`?At(e,t):!!e}function Mt(e,t,n,r){return o(e)?s(e)?(j.delete(e),R(t,e,n)):Fe(t,r,()=>{let r=R(t,e,n);return r&&!r.parentNode?r:null}):R(t,e,n)}function Nt(e,t,n,r){let i=[];for(let a of e){let e=Mt(a,t,n,r);e&&i.push(e)}return i}let G=new Set,K=new WeakMap,Pt=typeof FinalizationRegistry<`u`?new FinalizationRegistry(e=>{G.delete(e)}):null;function Ft(e,t){for(let t=0;t<e.length;t++)if(jt(e[t].condition))return t;return t.length>0?-1:null}function It(e){let{groups:t,elseContent:n,host:r,index:i,endMarker:a}=e,o=Ft(t,n);o!==e.activeIndex&&(be(e.startMarker,e.endMarker),e.activeIndex=o,o!==null&&xe(Nt(o>=0?t[o].content:n,r,i,a),a))}function Lt(e){let t=new WeakRef(e.startMarker);G.add(t),K.set(e.startMarker,e),Pt?.register(e.startMarker,t)}function Rt(e){let t=[];for(let n of G){let r=n.deref();if(r===void 0){t.push(n);continue}let i=K.get(r);if(!i){t.push(n);continue}if(!D(r)||!D(i.endMarker)){K.delete(r),t.push(n);continue}if(!(e&&!e.contains(r)))try{i.update()}catch{K.delete(r),t.push(n)}}for(let e of t)G.delete(e)}function zt(e,t){return`when-start-${e}-b${t===null?`n`:t}`}function Bt(e){let t=/-b(n|-?\d+)$/.exec(e||``);if(t)return t[1]===`n`?null:parseInt(t[1],10)}var Vt=class e{groups=[];elseContent=[];constructor(e,...t){this.groups.push({condition:e,content:t})}cloneWith(t,n){let r=Object.create(e.prototype);return r.groups=[...this.groups],t&&r.groups.push(t),r.elseContent=n??[...this.elseContent],r}when(e,...t){return this.groups.push({condition:e,content:t}),this}else(...e){return this.elseContent=e,this}render(e,t){return globalThis.document?N()?this.hydrateRender(e,t):this.freshRender(e,t):null}freshRender(e,t){let{start:n,end:r}=ye(`when`,t),i=this.createRuntimeFromMarkers(e,t,n,r),a=Pe(e);return a.appendChild(n),a.appendChild(r),It(i),n.textContent=zt(t,i.activeIndex),n}hydrateRender(e,t){let n=e;I(n);let r=P(n);if(!r||r.nodeType!==8||!r.textContent?.startsWith(`when-start-`))return this.freshRender(e,t);let i=L(n),a=0,o=P(n);for(;o;){if(o.nodeType===8){let e=o.textContent||``;if(e.startsWith(`when-start-`))a++;else if(e===`when-end`){if(a===0)break;a--}}o=o.nextSibling}let s=o,c=!1;if(!s){let e=E(`when-end`);if(!e)return i;n.insertBefore(e,i.nextSibling),s=e,c=!0}let l=Ft(this.groups,this.elseContent),u=Bt(i.textContent);if(!c&&(u===void 0||u===l)){if(l!==null){let n=l>=0?this.groups[l].content:this.elseContent;for(let r of n)R(e,r,t)}}else if(be(i,s),l!==null){let n=l>=0?this.groups[l].content:this.elseContent,r=s;Qe(()=>{xe(Nt(n,e,t,r),r)})}return F(n,s.nextSibling),this.createRuntimeFromMarkers(e,t,i,s,l),i}createRuntimeFromMarkers(e,t,n,r,i=null){let a={startMarker:n,endMarker:r,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:i,update:function(){It(a)}};return l&&Lt(a),a}};function Ht(e){return Object.assign(function(t,n){return e.render(t,n)},{when:function(t,...n){return Ht(e.cloneWith({condition:t,content:n}))},else:function(...t){return Ht(e.cloneWith(void 0,t))}})}function Ut(e,...t){return Ht(new Vt(e,...t))}function Wt(e){try{return e.isSvg?ct(e.tagName,e.modifiers):st(e.tagName,e.modifiers)}catch(t){if(c(`Error applying modifiers in conditional element "${e.tagName}"`,t),e.isSvg){let n=C(x,e.tagName);if(!n)throw Error(`Failed to create SVG element: ${e.tagName}`,{cause:t});return n}let n=S(e.tagName);if(!n)throw Error(`Failed to create element: ${e.tagName}`,{cause:t});return n}}function Gt(e){let t=pe(e);if(!t)return;let n=At(t.condition,e=>{c(`Error evaluating conditional condition`,e)}),r=e.nodeType===Node.ELEMENT_NODE;if(n&&!r){let n=Wt(t);ue(n,t),Ce(e,n)}else if(!n&&r){let n=ve(t.tagName);n&&(ue(n,t),Ce(e,n))}}function Kt(e){if(l)try{let t=fe();for(let n of t){if(!n.isConnected){de(n);continue}e&&!e.contains(n)||Gt(n)}}catch(e){c(`Error during conditional elements update`,e)}}function qt(){if(typeof document>`u`)return;let e=document.body?[document.body,document]:[document];for(let t of e)try{t.dispatchEvent(new Event(`update`,{bubbles:!0}))}catch(e){c(`Error dispatching global update event`,e)}}let q=new Map;function Jt(e){let t=[],n=new Set;for(let r of e){if(typeof r!=`string`)continue;let e=r.trim();e&&(n.has(e)||(n.add(e),t.push(e)))}return t}function Yt(e,t){let n=q.get(e);n||(n=new Set,q.set(e,n)),n.add(new WeakRef(t))}function Xt(e){let t=Jt(e);if(t.length===0)return[];let n=new Set;for(let e of t){let t=q.get(e);if(!t)continue;let r=[];for(let e of t){let t=e.deref();if(t===void 0){r.push(e);continue}if(!D(t)){r.push(e);continue}n.add(t)}for(let e of r)t.delete(e);t.size===0&&q.delete(e)}return Array.from(n)}function Zt(...e){let t=Jt(e);return function(e){if(l&&e instanceof Element)for(let n of t)Yt(n,e)}}let Qt=[Ot,Rt,Kt,Ne,qe,qt];function $t(...e){let t;if(e.length>0){let n=Xt(e);if(n.length===1){let e=n[0];t={roots:n,contains:t=>e.contains(t)}}else t={roots:n,contains:e=>{for(let t of n)if(t.contains(e))return!0;return!1}}}for(let e of Qt)e(t)}function en(e,t,n=0){let r=e(t||document.body,n);return(t||document.body).appendChild(r),r}function tn(e,t){let n=t||document.body,r=n;Xe();try{let t=e(n,0),i=t;if(i&&i.nodeType===1&&i.parentNode!==r){let e=P(r);if(e){let t=e.nextSibling;r.insertBefore(i,e),T(e),F(r,t)}else r.appendChild(i),F(r,null)}return t}finally{Ze()}}let nn=null;function rn(e){nn=e}let an=new Map,on=new Map,sn=new Set,J=[],Y=new Map,X=null,cn=null,Z=0,Q=new Map;function ln(e){for(let t of e)Y.has(t)||Y.set(t,[])}function un(e,t){try{let n=e.cssRules.length;e.insertRule(t+`{}`,n);let r=e.cssRules[n];return Q.set(t,r),r}catch{return null}}function dn(e,t){try{e.insertRule(t,Z),Z++}catch{}}function fn(){if(typeof document>`u`||typeof document.getElementById!=`function`)return null;if(X&&cn===document&&X.ownerNode&&X.ownerNode.isConnected)return X;let e=document.getElementById(`nuclo-styles`);if(e||(e=document.createElement(`style`),e.id=`nuclo-styles`,document.head.appendChild(e)),X=e.sheet,cn=document,Q.clear(),Z=0,!X)return null;for(let e of J)dn(X,e);for(let[e,t]of Y){let n=un(X,e);if(n)for(let e of t)try{n.insertRule(e,n.cssRules.length)}catch{}}return X}function pn(e,t){if(t===void 0)J.push(e);else{let n=Y.get(t);n||(n=[],Y.set(t,n)),n.push(e)}nn?.(t===void 0?e:t+`{`+e+`}`);let n=fn();if(n)if(t===void 0)dn(n,e);else{let r=Q.get(t)??un(n,t);if(r)try{r.insertRule(e,r.cssRules.length)}catch{}}}function mn(e){let t=2166136261,n=2128831035;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);t=Math.imul(t^i,16777619),n=Math.imul(n^i,2246822507)}return(t>>>0).toString(36)+((n>>>9)%1296).toString(36)}function $(e,t,n,r){let i=(e??``)+`|`+t+`|`+n+`:`+r,a=an.get(i);return a===void 0?(a=`n`+mn(i),an.set(i,a),on.set(a,(e??``)+`|`+t+`|`+n),pn(`.`+a+t+`{`+n+`:`+r+`}`,e),a):(fn(),a)}function hn(e){return on.get(e)}function gn(e,t){if(sn.has(e)){fn();return}sn.add(e),pn(t,void 0)}function _n(){let e=J.join(``);for(let[t,n]of Y)n.length>0&&(e+=t+`{`+n.join(``)+`}`);return e}function vn(){an.clear(),on.clear(),sn.clear(),J.length=0,Y.clear(),Q.clear(),Z=0,X=null,cn=null,typeof document<`u`&&document.getElementById(`nuclo-styles`)?.remove()}let yn={hover:`:hover`,focus:`:focus`,focusVisible:`:focus-visible`,focusWithin:`:focus-within`,active:`:active`,visited:`:visited`,disabled:`:disabled`,enabled:`:enabled`,checked:`:checked`,required:`:required`,invalid:`:invalid`,valid:`:valid`,readOnly:`:read-only`,first:`:first-child`,last:`:last-child`,only:`:only-child`,odd:`:nth-child(odd)`,even:`:nth-child(even)`,empty:`:empty`,placeholderShown:`:placeholder-shown`,placeholder:`::placeholder`,before:`::before`,after:`::after`,selection:`::selection`,marker:`::marker`,firstLine:`::first-line`,firstLetter:`::first-letter`},bn={bg:[`background`],p:[`padding`],px:[`padding-left`,`padding-right`],py:[`padding-top`,`padding-bottom`],pt:[`padding-top`],pr:[`padding-right`],pb:[`padding-bottom`],pl:[`padding-left`],m:[`margin`],mx:[`margin-left`,`margin-right`],my:[`margin-top`,`margin-bottom`],mt:[`margin-top`],mr:[`margin-right`],mb:[`margin-bottom`],ml:[`margin-left`],w:[`width`],h:[`height`],minW:[`min-width`],maxW:[`max-width`],minH:[`min-height`],maxH:[`max-height`],size:[`width`,`height`],text:[`font-size`],font:[`font-family`],weight:[`font-weight`],leading:[`line-height`],tracking:[`letter-spacing`],align:[`text-align`],items:[`align-items`],justify:[`justify-content`],z:[`z-index`],rounded:[`border-radius`],shadow:[`box-shadow`],select:[`user-select`]},xn={row:{display:`flex`,"flex-direction":`row`},col:{display:`flex`,"flex-direction":`column`},center:{"align-items":`center`,"justify-content":`center`},truncate:{overflow:`hidden`,"text-overflow":`ellipsis`,"white-space":`nowrap`}},Sn={background:`colors`,"background-color":`colors`,color:`colors`,"border-color":`colors`,"border-top-color":`colors`,"border-right-color":`colors`,"border-bottom-color":`colors`,"border-left-color":`colors`,"outline-color":`colors`,"caret-color":`colors`,"text-decoration-color":`colors`,"font-family":`fonts`,"box-shadow":`shadows`,"border-radius":`radii`},Cn=new Set([`z-index`,`opacity`,`font-weight`,`line-height`,`flex`,`flex-grow`,`flex-shrink`,`order`,`aspect-ratio`,`zoom`,`scale`,`column-count`,`orphans`,`widows`,`tab-size`,`animation-iteration-count`,`grid-column`,`grid-row`]),wn=new Map;function Tn(e){let t=wn.get(e);return t===void 0&&(t=e.replace(/[A-Z]/g,e=>`-`+e.toLowerCase()),wn.set(e,t)),t}function En(e){return e.charCodeAt(0)===64?e:`@media `+e}function Dn(e,t){return e!==void 0&&e.startsWith(`@media`)&&t.startsWith(`@media`)?e+` and`+t.slice(6):t}function On(e){let t={className:e};return Object.defineProperty(t,"toString",{value:()=>e,enumerable:!1}),t}function kn(...e){let t=new Map;for(let n of e){if(!n)continue;let e=(typeof n==`string`?n:n.className).split(` `);for(let n of e)n&&t.set(hn(n)??n,n)}let n=``;for(let e of t.values())n+=(n?` `:``)+e;return On(n)}function An(e={}){let t=e.screens??{};ln(Object.values(t).map(En));let n=new WeakMap;function r(t,n){if(typeof n==`number`)return n===0||Cn.has(t)?String(n):n+`px`;let r=Sn[t];if(r!==void 0){let t=e[r]?.[n];if(t!==void 0)return t}return n}function i(e,n,a,o){for(let s in e){let c=e[s];if(c==null||c===!1)continue;if(typeof c==`object`){if(s===`raw`){let e=c;for(let t in e)o.push($(n,a,t,r(t,e[t])));continue}let e=yn[s];if(e!==void 0){i(c,n,a+e,o);continue}let l=t[s];if(l!==void 0){i(c,Dn(n,En(l)),a,o);continue}let u=s.charCodeAt(0);if(u===38){i(c,n,a+s.slice(1),o);continue}if(u===64){i(c,Dn(n,s),a,o);continue}continue}if(c===!0){let e=xn[s];if(e)for(let t in e)o.push($(n,a,t,e[t]));continue}let l=bn[s];if(l!==void 0)for(let e of l)o.push($(n,a,e,r(e,c)));else{let e=Tn(s);o.push($(n,a,e,r(e,c)))}}}function a(e){let t=n.get(e);if(t)return t;let r=[];i(e,void 0,``,r);let a=On(r.join(` `));return n.set(e,a),a}function o(e){let t=``,n=(e,n)=>{t+=(t?`;`:``)+e+`:`+n};for(let t in e){let i=e[t];if(i==null||i===!1)continue;if(t===`raw`&&typeof i==`object`){let e=i;for(let t in e)n(t,r(t,e[t]));continue}if(typeof i==`object`)continue;if(i===!0){let e=xn[t];if(e)for(let t in e)n(t,e[t]);continue}let a=bn[t];if(a!==void 0)for(let e of a)n(e,r(e,i));else{let e=Tn(t);n(e,r(e,i))}}return t}function s(e){let t=``;for(let n in e)t+=n+`{`+o(e[n])+`}`;let n=`nk`+mn(t);return gn(n,`@keyframes `+n+`{`+t+`}`),n}function c(e,t){let n=e+`{`+o(t)+`}`;gn(`g|`+n,n)}return{css:a,cx:kn,keyframes:s,globalStyle:c,theme:e}}let jn=An({}),Mn=jn.css,Nn=jn.keyframes,Pn=jn.globalStyle;function Fn(){gt();let e=globalThis;e.list=kt,e.update=$t,e.when=Ut,e.on=m,e.scope=Zt,e.render=en,e.hydrate=tn,e.createCss=An,e.css=Mn,e.cx=kn,e.keyframes=Nn,e.globalStyle=Pn}Fn(),e.HTML_TAGS=B,e.SELF_CLOSING_TAGS=pt,e.SVG_TAGS=V,e.appendChildren=Se,e.applyAttributes=A,e.applyNodeModifier=R,e.createComment=E,e.createConditionalComment=ve,e.createCss=An,e.createHtmlElementWithModifiers=st,e.createHtmlTagBuilder=dt,e.createSvgElementWithModifiers=ct,e.createSvgTagBuilder=ft,e.css=Mn,e.cx=kn,e.getCssText=_n,e.globalStyle=Pn,e.hydrate=tn,e.initializeRuntime=Fn,e.isBoolean=a,e.isBrowser=l,e.isFunction=o,e.isNode=n,e.isObject=r,e.isPrimitive=t,e.isTagLike=i,e.isZeroArityFunction=s,e.keyframes=Nn,e.list=kt,e.on=m,e.registerGlobalTagBuilders=gt,e.render=en,e.replaceNodeSafely=Ce,e.resetStyles=vn,e.scope=Zt,e.setSSRCollector=rn,e.update=$t,e.when=Ut});
|
|
2
2
|
//# sourceMappingURL=nuclo.umd.js.map
|