nuclo 0.1.87 → 0.1.89

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.
@@ -1,3 +1,3 @@
1
- export { createReactiveTextNode, notifyReactiveTextNodes } from "./reactiveText";
2
- export { registerAttributeResolver, notifyReactiveElements } from "./reactiveAttributes";
1
+ export { createReactiveTextNode, notifyReactiveTextNodes, cleanupReactiveTextNode } from "./reactiveText";
2
+ export { registerAttributeResolver, notifyReactiveElements, cleanupReactiveElement } from "./reactiveAttributes";
3
3
  //# sourceMappingURL=reactive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reactive.d.ts","sourceRoot":"","sources":["../../src/core/reactive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"reactive.d.ts","sourceRoot":"","sources":["../../src/core/reactive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC1G,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -42,5 +42,10 @@ export declare function registerAttributeResolver<TTagName extends ElementTagNam
42
42
  * ```
43
43
  */
44
44
  export declare function notifyReactiveElements(scope?: UpdateScope): void;
45
+ /**
46
+ * Manually removes reactive element info for a specific element.
47
+ * This should be called when an element is removed from the DOM to prevent memory leaks.
48
+ */
49
+ export declare function cleanupReactiveElement(element: Element): void;
45
50
  export {};
46
51
  //# sourceMappingURL=reactiveAttributes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reactiveAttributes.d.ts","sourceRoot":"","sources":["../../src/core/reactiveAttributes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,KAAK,iBAAiB,GAAG,MAAM,OAAO,CAAC;AAsHvC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,SAAS,cAAc,EACvE,OAAO,EAAE,eAAe,CAAC,QAAQ,CAAC,EAClC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,iBAAiB,EAC3B,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GACnC,IAAI,CAUN;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,CAwBhE"}
1
+ {"version":3,"file":"reactiveAttributes.d.ts","sourceRoot":"","sources":["../../src/core/reactiveAttributes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,KAAK,iBAAiB,GAAG,MAAM,OAAO,CAAC;AAsHvC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,SAAS,cAAc,EACvE,OAAO,EAAE,eAAe,CAAC,QAAQ,CAAC,EAClC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,iBAAiB,EAC3B,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GACnC,IAAI,CAUN;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,CA6BhE;AAoBD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAS7D"}
@@ -35,5 +35,10 @@ export declare function createReactiveTextNode(resolver: TextResolver, preEvalua
35
35
  * ```
36
36
  */
37
37
  export declare function notifyReactiveTextNodes(scope?: UpdateScope): void;
38
+ /**
39
+ * Manually removes reactive text node info for a specific text node.
40
+ * This should be called when a text node is removed from the DOM to prevent memory leaks.
41
+ */
42
+ export declare function cleanupReactiveTextNode(node: Text): void;
38
43
  export {};
39
44
  //# sourceMappingURL=reactiveText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reactiveText.d.ts","sourceRoot":"","sources":["../../src/core/reactiveText.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,KAAK,YAAY,GAAG,MAAM,SAAS,CAAC;AAapC;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,gBAAgB,CA8B9G;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,CAqCjE"}
1
+ {"version":3,"file":"reactiveText.d.ts","sourceRoot":"","sources":["../../src/core/reactiveText.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,KAAK,YAAY,GAAG,MAAM,SAAS,CAAC;AAapC;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,gBAAgB,CA8B9G;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,CA0CjE;AAmBD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CASxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/list/runtime.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAkB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAiBvD,wBAAgB,IAAI,CAAC,KAAK,EAAE,QAAQ,SAAS,cAAc,EACzD,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,GACpC,IAAI,CA2EN;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,SAAS,cAAc,GAAG,cAAc,EACvF,aAAa,EAAE,iBAAiB,CAAC,KAAK,CAAC,EACvC,UAAU,EAAE,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,EACzC,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC,GAC9B,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,CAqB9B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,CAU5D"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/list/runtime.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAkB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AA6BvD,wBAAgB,IAAI,CAAC,KAAK,EAAE,QAAQ,SAAS,cAAc,EACzD,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,GACpC,IAAI,CAiFN;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,SAAS,cAAc,GAAG,cAAc,EACvF,aAAa,EAAE,iBAAiB,CAAC,KAAK,CAAC,EACvC,UAAU,EAAE,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,EACzC,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC,GAC9B,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,CA0B9B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,CA6C5D"}
package/dist/nuclo.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function t(e){return e instanceof Node}function r(e){return"object"==typeof e&&null!==e}function o(e){return r(e)&&"tagName"in e}function n(e){return"function"==typeof e}function s(e){return n(e)&&0===e.length}function i(e,t){void 0!==console&&console.error("nuclo: "+e,t)}const a="undefined"!=typeof window&&"undefined"!=typeof document;function c(e){return globalThis.document?document.createElement(e):null}function l(e,t){return globalThis.document?document.createElementNS(e,t):null}function p(e){return globalThis.document?document.createTextNode(e):null}function d(){return globalThis.document?document.createDocumentFragment():null}function u(e){if(!e?.parentNode)return!1;try{return e.parentNode.removeChild(e),!0}catch(e){return i("Failed to remove child node",e),!1}}function m(e){if(!a)return null;try{return document.createComment(e)}catch(e){return i("Failed to create comment node",e),null}}function f(e){return m(e)}function y(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return i("Failed to create conditional comment",e),null}}function g(e){if(!a)throw Error("Cannot create comment in non-browser environment");const t=m(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw Error("Failed to create comment");return t}function b(e){const t=m(e+"-end");if(!t)throw Error("Failed to create end comment");return{start:g(e+"-start"),end:t}}function h(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!a||"undefined"==typeof document)&&document.contains(e))}function x(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return i("Error replacing conditional node",e),!1}}const P=new Map,S=new Map,k={};let w=!1;function v(e){const t=e.target;if(!(t&&"undefined"!=typeof Node&&t instanceof Node))return;let r=t;for(;r;){if(r instanceof Element){let e=null,t=null;for(const[o,n]of S){const s=o.deref();if(void 0!==s){if(s===r){e=o,t=n;break}}else S.delete(o)}t&&e&&(h(r)?R(t):S.delete(e))}r=r.parentNode}}function C(e,t){let r;try{r=t.resolver()}catch(t){return void i("Failed to resolve reactive attribute: "+e,t)}const o=null===(n=r)||"object"!=typeof n;var n;if(!o||!Object.is(r,t.lastValue))try{t.applyValue(r),t.lastValue=o?r:k}catch(t){i("Failed to apply reactive attribute: "+e,t)}}function R(e){for(const[t,r]of e.attributeResolvers)C(t,r)}function B(e,t,r,o){if(!(e instanceof Element&&t&&"function"==typeof r))return void i("Invalid parameters for registerAttributeResolver");w||"undefined"!=typeof document&&"function"==typeof document.addEventListener&&(document.addEventListener("update",v,!0),w=!0);const n=function(e){for(const[t,r]of S){const o=t.deref();if(void 0!==o){if(o===e)return r}else S.delete(t)}const t={attributeResolvers:new Map};return S.set(new WeakRef(e),t),t}(e),s={resolver:r,applyValue:o,lastValue:k};n.attributeResolvers.set(t,s),C(t,s)}function T(e,t,r){try{return null==r||""===r?(e.style[t]="",!0):(e.style[t]=r+"",!0)}catch{return!1}}function I(e,t){if(e?.style&&t)for(const[r,o]of Object.entries(t))T(e,r,o)||i(`Failed to set style property '${r}'`)}const E="__nuclo_reactive_className__",W="__nuclo_static_className__";function N(e,t,r,o=!1){if(null==r)return;if("style"===t)return i=r,void((s=e)&&(n(i)?B(s,"style",i,function(e){I(s,e)}):I(s,i)));var s,i;const a=(r,o=!1)=>{if(null!=r)if("className"===t&&e instanceof HTMLElement&&o)!function(e,t){if(!t)return;const r=e.className;if(r&&r!==t){const o=new Set(r.split(" ").filter(function(e){return e}));t.split(" ").filter(function(e){return e}).forEach(function(e){o.add(e)}),e.className=Array.from(o).join(" ")}else e.className=t}(e,r+"");else if(e instanceof Element&&"http://www.w3.org/2000/svg"===e.namespaceURI)e.setAttribute(t+"",r+"");else if(t in e)try{e[t]=r}catch{e instanceof Element&&e.setAttribute(t+"",r+"")}else e instanceof Element&&e.setAttribute(t+"",r+"")};if(n(r)&&0===r.length){const o=r;"className"===t&&e instanceof HTMLElement?(function(e){e[W]||(e[W]=new Set(e.className.split(" ").filter(function(e){return e}))),e[E]=!0}(e),B(e,t+"",o,function(t){!function(e,t){const r=function(e){return e[W]}(e);if(r&&r.size>0&&t){const o=new Set(r);t.split(" ").filter(function(e){return e}).forEach(function(e){o.add(e)}),e.className=Array.from(o).join(" ")}else e.className=t||(r&&r.size>0?Array.from(r).join(" "):"")}(e,(t||"")+"")})):B(e,t+"",o,function(e){a(e,!1)})}else{if("className"===t&&e instanceof HTMLElement&&function(e){return!!e[E]}(e)){const t=(r||"")+"";if(t){!function(e,t){t&&(e[W]||(e[W]=new Set),t.split(" ").filter(function(e){return e}).forEach(function(t){e[W].add(t)}))}(e,t);const r=new Set(e.className.split(" ").filter(function(e){return e}));t.split(" ").filter(function(e){return e}).forEach(function(e){r.add(e)}),e.className=Array.from(r).join(" ")}return}a(r,o)}}function A(e,t,r=!0){if(t)for(const o of Object.keys(t))N(e,o,t[o],r&&"className"===o)}const L=new WeakMap;function F(o,a,c){if(null==a)return null;if(n(a)){if(s(a))try{let n=L.get(a);if(n||(n={value:a(),error:!1},L.set(a,n)),n.error)return M(c,function(){return""});const s=n.value;if(r(s)&&!t(s)&&"className"in s&&"string"==typeof s.className&&1===Object.keys(s).length){const e=a;return A(o,{className:function(){const t=e();return r(t)&&"className"in t&&"string"==typeof t.className?t.className:""}}),null}return e(s)&&null!=s?M(c,a,s):null}catch(e){return L.set(a,{value:void 0,error:!0}),i("Error evaluating reactive text function:",e),M(c,function(){return""})}const n=a(o,c);return null==n?null:e(n)?j(c,n):t(n)?n:(r(n)&&A(o,n),null)}const l=a;return e(l)?j(c,l):t(l)?l:(A(o,l),null)}function M(e,t,r){const o=d();if(!o)throw Error("Failed to create document fragment: document not available");const n=f(` text-${e} `);n&&o.appendChild(n);const s=function(e,t){if("function"!=typeof e){i("Invalid resolver provided to createReactiveTextNode");const e=p("");if(!e)throw Error("Failed to create text node: document not available");return e}let r;if(arguments.length>1)r=t;else try{r=e()}catch(e){i("Failed to evaluate reactive text resolver",e),r=""}const o=void 0===r?"":r+"",n=p(o);if(!n)throw Error("Failed to create text node: document not available");return P.set(new WeakRef(n),{resolver:e,lastValue:o}),n}(t,r);return o.appendChild(s),o}function j(e,t){const r=d();if(!r)throw Error("Failed to create document fragment: document not available");const o=f(` text-${e} `);o&&r.appendChild(o);const n=p(t+"");return n&&r.appendChild(n),r}function D(e,t,r=0){if(!t||0===t.length)return{element:e,nextIndex:r,appended:0};let o=r,n=0;const s=e;for(let r=0;t.length>r;r+=1){const i=t[r];if(null==i)continue;const a=F(e,i,o);a&&(a.parentNode!==s&&s.appendChild(a),o+=1,n+=1)}return{element:e,nextIndex:o,appended:n}}function O(e,t){const r=c(e);return D(r,t,0),r}function z(e,t){const r=l("http://www.w3.org/2000/svg",e);if(!r)throw Error("Failed to create SVG element: "+e);return D(r,t,0),r}function V(e){return(...t)=>function(e,...t){return function(r,o){const n=c(e);return D(n,t,o),n}}(e,...t)}function $(e){return(...t)=>function(e,...t){return function(r,o){const n=l("http://www.w3.org/2000/svg",e);if(!n)throw Error("Failed to create SVG element: "+e);return D(n,t,o),n}}(e,...t)}const _=["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"],G=["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"];function q(e=globalThis){const t="__nuclo_tags_registered";e[t]||(G.forEach(t=>function(e,t){const r=t+"Svg";r in e||(e[r]=$(t))}(e,t)),_.forEach(t=>function(e,t){t in e&&"function"!=typeof e[t]||(e[t]=V(t))}(e,t)),e[t]=!0)}const H=new Set;function U(e,t,r){return function(e,t,r){if(n(e)){const n=e(t,r);return n&&o(n)?n:null}return e&&o(e)?e:null}(e.renderItem(t,r),e.host,r)}function X(e){u(e.element)}function Y(e){const{host:t,startMarker:r,endMarker:o}=e,n=r.parentNode??t,s=e.itemsProvider();if(function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;e.length>r;r++)if((r in e?e[r]:void 0)!==(r in t?t[r]:void 0))return!1;return!0}(e.lastSyncedItems,s))return;const i=new Map,a=new Map;e.records.forEach(function(e){const t=a.get(e.item);t?t.push(e):a.set(e.item,[e])}),s.forEach(function(t,r){if(e.lastSyncedItems.length>r&&e.lastSyncedItems[r]===t){const o=e.records[r];if(o&&o.item===t){i.set(r,o);const e=a.get(t);e.splice(e.indexOf(o),1),0===e.length&&a.delete(t)}}});const c=[],l=new Set(e.records);let p=o;for(let t=s.length-1;t>=0;t--){const r=s[t];let o=i.get(t);if(!o){const e=a.get(r);e&&e.length>0&&(o=e.shift(),0===e.length&&a.delete(r))}if(o)l.delete(o);else{const n=U(e,r,t);if(!n)continue;o={item:r,element:n}}c.unshift(o);const d=o.element;d.nextSibling!==p&&n.insertBefore(d,p),p=d}l.forEach(X),e.records=c,e.lastSyncedItems=[...s]}function J(e,t){return function(r){const o=function(e,t,r){const{start:o,end:n}=b("list"),s={itemsProvider:e,renderItem:t,startMarker:o,endMarker:n,records:[],host:r,lastSyncedItems:[]},i=r;return i.appendChild(o),i.appendChild(n),H.add(s),Y(s),s}(e,t,r);return o.startMarker}}function Q(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function K(e,t){return"function"==typeof e?Q(e,t):!!e}function Z(e,t,r,o){return n(e)?s(e)?(L.delete(e),F(t,e,r)):function(e,t,r){const o=e,n=o.appendChild.bind(o),s=o.insertBefore.bind(o);o.appendChild=function(e){return s(e,t)};try{return r()}finally{o.appendChild=n}}(t,o,()=>{const o=F(t,e,r);return o&&!o.parentNode?o:null}):F(t,e,r)}const ee=new Set;function te(e){const{groups:t,elseContent:r,host:o,index:n,endMarker:s}=e,a=function(e,t){for(let t=0;e.length>t;t++)if(K(e[t].condition))return t;return t.length>0?-1:null}(t,r);if(a===e.activeIndex)return;if(function(e,t){let r=e.nextSibling;for(;r&&r!==t;){const e=r.nextSibling;u(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=a,null===a)return;const c=function(e,t,r,o){const n=[];for(const s of e){const e=Z(s,t,r,o);e&&n.push(e)}return n}(0>a?r:t[a].content,o,n,s);!function(e,t){const r=t.parentNode;r&&e.forEach(function(e){!function(e,t,r){try{return e.insertBefore(t,r),!0}catch(e){return i("Failed to insert node before reference",e),!1}}(r,e,t)})}(c,s)}class re{groups=[];elseContent=[];constructor(e,...t){this.groups.push({condition:e,content:t})}when(e,...t){return this.groups.push({condition:e,content:t}),this}else(...e){return this.elseContent=e,this}render(e,t){if(!a)return f("when-ssr")||null;const{start:r,end:o}=b("when"),n={startMarker:r,endMarker:o,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:function(){te(n)}};!function(e){ee.add(e)}(n);const s=e;return s.appendChild(r),s.appendChild(o),te(n),r}}function oe(e){return Object.assign(function(t,r){return e.render(t,r)},{when:function(t,...r){return e.when(t,...r),oe(e)},else:function(...t){return e.else(...t),oe(e)}})}function ne(e,...t){return oe(new re(e,...t))}const se=new Set;function ie(e,t){e._conditionalInfo=t,se.add(new WeakRef(e))}function ae(e){for(const t of se)if(t.deref()===e){se.delete(t);break}}function ce(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=Q(t.condition,e=>{i("Error evaluating conditional condition",e)}),o=e.nodeType===Node.ELEMENT_NODE;if(r&&!o){const r=function(e){try{return e.isSvg?z(e.tagName,e.modifiers):O(e.tagName,e.modifiers)}catch(t){if(i(`Error applying modifiers in conditional element "${e.tagName}"`,t),e.isSvg){const t=l("http://www.w3.org/2000/svg",e.tagName);if(!t)throw Error("Failed to create SVG element: "+e.tagName);return t}const r=c(e.tagName);if(!r)throw Error("Failed to create element: "+e.tagName);return r}}(t);ie(r,t),x(e,r)}else if(!r&&o){const r=y(t.tagName);r&&(ie(r,t),x(e,r))}}const le=new Map;function pe(e){const t=[],r=new Set;for(const o of e){if("string"!=typeof o)continue;const e=o.trim();e&&(r.has(e)||(r.add(e),t.push(e)))}return t}function de(e,t){let r=le.get(e);r||(r=new Set,le.set(e,r)),r.add(new WeakRef(t))}function ue(...e){const t=pe(e);return function(e){if(e instanceof Element)for(const r of t)de(r,e)}}const me=[function(e){H.forEach(function(t){t.startMarker.isConnected&&t.endMarker.isConnected?e&&!e.contains(t.startMarker)||Y(t):H.delete(t)})},function(e){ee.forEach(function(t){if(!e||e.contains(t.startMarker))try{t.update()}catch(e){ee.delete(t)}})},function(e){if(a)try{const t=function(){const e=[],t=[];for(const r of se){const o=r.deref();void 0===o?t.push(r):e.push(o)}for(const e of t)se.delete(e);return e}();for(const r of t)r.isConnected?e&&!e.contains(r)||ce(r):ae(r)}catch(e){i("Error during conditional elements update",e)}},function(e){const t=[];for(const[r,o]of S){const n=r.deref();void 0!==n&&h(n)?e&&!e.contains(n)||R(o):t.push(r)}for(const e of t)S.delete(e)},function(e){const t=[];for(const[r,o]of P){const n=r.deref();if(void 0===n){t.push(r);continue}if(!h(n)){t.push(r);continue}if(e&&!e.contains(n))continue;let s;try{s=o.resolver()}catch(e){i("Failed to update reactive text node",e),s=void 0}const a=void 0===s?"":s+"";a!==o.lastValue&&(n.textContent=a,o.lastValue=a)}for(const e of t)P.delete(e)},function(){if("undefined"==typeof document)return;const e=document.body?[document.body,document]:[document];for(const t of e)try{t.dispatchEvent(new Event("update",{bubbles:!0}))}catch(e){i("Error dispatching global update event",e)}}];function fe(...e){let t;if(e.length>0){const r=function(e){const t=pe(e);if(0===t.length)return[];const r=new Set;for(const e of t){const t=le.get(e);if(!t)continue;const o=[];for(const e of t){const t=e.deref();void 0!==t&&h(t)?r.add(t):o.push(e)}for(const e of o)t.delete(e);0===t.size&&le.delete(e)}return Array.from(r)}(e);if(1===r.length){const e=r[0];t={roots:r,contains:function(t){return e.contains(t)}}}else t={roots:r,contains:function(e){for(const t of r)if(t.contains(e))return!0;return!1}}}for(const e of me)e(t)}const ye=new WeakMap;function ge(e,t,r){return function(o){if(!o||"function"!=typeof o.addEventListener)return;const n=o,s=function(r){try{t.call(n,r)}catch(t){i(`Error in '${e}' listener`,t)}};n.addEventListener(e,s,r),function(e,t,r,o,n){let s=ye.get(e);s||(s=new Map,ye.set(e,s));let i=s.get(t);i||(i=new Set,s.set(t,i)),i.add({original:r,wrapped:o,options:n})}(n,e,t,s,r)}}function be(e,t,r=0){const o=e(t||document.body,r);return(t||document.body).appendChild(o),o}const he=[{name:"display",cssProperty:"display"},{name:"grid",cssProperty:"display",defaultValue:"grid",isShorthand:!0},{name:"bg",cssProperty:"background-color"},{name:"color",cssProperty:"color"},{name:"accentColor",cssProperty:"accent-color"},{name:"fontSize",cssProperty:"font-size"},{name:"fontWeight",cssProperty:"font-weight"},{name:"fontFamily",cssProperty:"font-family"},{name:"lineHeight",cssProperty:"line-height"},{name:"letterSpacing",cssProperty:"letter-spacing"},{name:"textAlign",cssProperty:"text-align"},{name:"textDecoration",cssProperty:"text-decoration"},{name:"fontStyle",cssProperty:"font-style"},{name:"fontVariant",cssProperty:"font-variant"},{name:"fontStretch",cssProperty:"font-stretch"},{name:"textTransform",cssProperty:"text-transform"},{name:"textIndent",cssProperty:"text-indent"},{name:"textOverflow",cssProperty:"text-overflow"},{name:"textShadow",cssProperty:"text-shadow"},{name:"whiteSpace",cssProperty:"white-space"},{name:"wordSpacing",cssProperty:"word-spacing"},{name:"wordWrap",cssProperty:"word-wrap"},{name:"overflowWrap",cssProperty:"overflow-wrap"},{name:"textAlignLast",cssProperty:"text-align-last"},{name:"textJustify",cssProperty:"text-justify"},{name:"textDecorationLine",cssProperty:"text-decoration-line"},{name:"textDecorationColor",cssProperty:"text-decoration-color"},{name:"textDecorationStyle",cssProperty:"text-decoration-style"},{name:"textDecorationThickness",cssProperty:"text-decoration-thickness"},{name:"textUnderlineOffset",cssProperty:"text-underline-offset"},{name:"verticalAlign",cssProperty:"vertical-align"},{name:"position",cssProperty:"position"},{name:"padding",cssProperty:"padding"},{name:"paddingTop",cssProperty:"padding-top"},{name:"paddingRight",cssProperty:"padding-right"},{name:"paddingBottom",cssProperty:"padding-bottom"},{name:"paddingLeft",cssProperty:"padding-left"},{name:"margin",cssProperty:"margin"},{name:"marginTop",cssProperty:"margin-top"},{name:"marginRight",cssProperty:"margin-right"},{name:"marginBottom",cssProperty:"margin-bottom"},{name:"marginLeft",cssProperty:"margin-left"},{name:"width",cssProperty:"width"},{name:"height",cssProperty:"height"},{name:"minWidth",cssProperty:"min-width"},{name:"maxWidth",cssProperty:"max-width"},{name:"minHeight",cssProperty:"min-height"},{name:"maxHeight",cssProperty:"max-height"},{name:"boxSizing",cssProperty:"box-sizing"},{name:"top",cssProperty:"top"},{name:"right",cssProperty:"right"},{name:"bottom",cssProperty:"bottom"},{name:"left",cssProperty:"left"},{name:"zIndex",cssProperty:"z-index"},{name:"flexDirection",cssProperty:"flex-direction"},{name:"alignItems",cssProperty:"align-items"},{name:"justifyContent",cssProperty:"justify-content"},{name:"gap",cssProperty:"gap"},{name:"flexWrap",cssProperty:"flex-wrap"},{name:"flexGrow",cssProperty:"flex-grow"},{name:"flexShrink",cssProperty:"flex-shrink"},{name:"flexBasis",cssProperty:"flex-basis"},{name:"alignSelf",cssProperty:"align-self"},{name:"alignContent",cssProperty:"align-content"},{name:"justifySelf",cssProperty:"justify-self"},{name:"justifyItems",cssProperty:"justify-items"},{name:"gridTemplateColumns",cssProperty:"grid-template-columns"},{name:"gridTemplateRows",cssProperty:"grid-template-rows"},{name:"gridTemplateAreas",cssProperty:"grid-template-areas"},{name:"gridColumn",cssProperty:"grid-column"},{name:"gridRow",cssProperty:"grid-row"},{name:"gridColumnStart",cssProperty:"grid-column-start"},{name:"gridColumnEnd",cssProperty:"grid-column-end"},{name:"gridRowStart",cssProperty:"grid-row-start"},{name:"gridRowEnd",cssProperty:"grid-row-end"},{name:"gridArea",cssProperty:"grid-area"},{name:"gridAutoColumns",cssProperty:"grid-auto-columns"},{name:"gridAutoRows",cssProperty:"grid-auto-rows"},{name:"gridAutoFlow",cssProperty:"grid-auto-flow"},{name:"border",cssProperty:"border"},{name:"borderTop",cssProperty:"border-top"},{name:"borderRight",cssProperty:"border-right"},{name:"borderBottom",cssProperty:"border-bottom"},{name:"borderLeft",cssProperty:"border-left"},{name:"borderWidth",cssProperty:"border-width"},{name:"borderStyle",cssProperty:"border-style"},{name:"borderColor",cssProperty:"border-color"},{name:"borderTopWidth",cssProperty:"border-top-width"},{name:"borderRightWidth",cssProperty:"border-right-width"},{name:"borderBottomWidth",cssProperty:"border-bottom-width"},{name:"borderLeftWidth",cssProperty:"border-left-width"},{name:"borderTopStyle",cssProperty:"border-top-style"},{name:"borderRightStyle",cssProperty:"border-right-style"},{name:"borderBottomStyle",cssProperty:"border-bottom-style"},{name:"borderLeftStyle",cssProperty:"border-left-style"},{name:"borderTopColor",cssProperty:"border-top-color"},{name:"borderRightColor",cssProperty:"border-right-color"},{name:"borderBottomColor",cssProperty:"border-bottom-color"},{name:"borderLeftColor",cssProperty:"border-left-color"},{name:"borderRadius",cssProperty:"border-radius"},{name:"borderTopLeftRadius",cssProperty:"border-top-left-radius"},{name:"borderTopRightRadius",cssProperty:"border-top-right-radius"},{name:"borderBottomLeftRadius",cssProperty:"border-bottom-left-radius"},{name:"borderBottomRightRadius",cssProperty:"border-bottom-right-radius"},{name:"outline",cssProperty:"outline"},{name:"outlineWidth",cssProperty:"outline-width"},{name:"outlineStyle",cssProperty:"outline-style"},{name:"outlineColor",cssProperty:"outline-color"},{name:"outlineOffset",cssProperty:"outline-offset"},{name:"backgroundColor",cssProperty:"background-color"},{name:"backgroundImage",cssProperty:"background-image"},{name:"backgroundRepeat",cssProperty:"background-repeat"},{name:"backgroundPosition",cssProperty:"background-position"},{name:"backgroundSize",cssProperty:"background-size"},{name:"backgroundAttachment",cssProperty:"background-attachment"},{name:"backgroundClip",cssProperty:"background-clip"},{name:"backgroundOrigin",cssProperty:"background-origin"},{name:"boxShadow",cssProperty:"box-shadow"},{name:"opacity",cssProperty:"opacity"},{name:"transition",cssProperty:"transition"},{name:"transitionProperty",cssProperty:"transition-property"},{name:"transitionDuration",cssProperty:"transition-duration"},{name:"transitionTimingFunction",cssProperty:"transition-timing-function"},{name:"transitionDelay",cssProperty:"transition-delay"},{name:"transform",cssProperty:"transform"},{name:"transformOrigin",cssProperty:"transform-origin"},{name:"transformStyle",cssProperty:"transform-style"},{name:"perspective",cssProperty:"perspective"},{name:"perspectiveOrigin",cssProperty:"perspective-origin"},{name:"backfaceVisibility",cssProperty:"backface-visibility"},{name:"animation",cssProperty:"animation"},{name:"animationName",cssProperty:"animation-name"},{name:"animationDuration",cssProperty:"animation-duration"},{name:"animationTimingFunction",cssProperty:"animation-timing-function"},{name:"animationDelay",cssProperty:"animation-delay"},{name:"animationIterationCount",cssProperty:"animation-iteration-count"},{name:"animationDirection",cssProperty:"animation-direction"},{name:"animationFillMode",cssProperty:"animation-fill-mode"},{name:"animationPlayState",cssProperty:"animation-play-state"},{name:"filter",cssProperty:"filter"},{name:"backdropFilter",cssProperty:"backdrop-filter"},{name:"overflow",cssProperty:"overflow"},{name:"overflowX",cssProperty:"overflow-x"},{name:"overflowY",cssProperty:"overflow-y"},{name:"visibility",cssProperty:"visibility"},{name:"objectFit",cssProperty:"object-fit"},{name:"objectPosition",cssProperty:"object-position"},{name:"listStyle",cssProperty:"list-style"},{name:"listStyleType",cssProperty:"list-style-type"},{name:"listStylePosition",cssProperty:"list-style-position"},{name:"listStyleImage",cssProperty:"list-style-image"},{name:"borderCollapse",cssProperty:"border-collapse"},{name:"borderSpacing",cssProperty:"border-spacing"},{name:"captionSide",cssProperty:"caption-side"},{name:"emptyCells",cssProperty:"empty-cells"},{name:"tableLayout",cssProperty:"table-layout"},{name:"content",cssProperty:"content"},{name:"quotes",cssProperty:"quotes"},{name:"counterReset",cssProperty:"counter-reset"},{name:"counterIncrement",cssProperty:"counter-increment"},{name:"appearance",cssProperty:"appearance"},{name:"userSelect",cssProperty:"user-select"},{name:"pointerEvents",cssProperty:"pointer-events"},{name:"resize",cssProperty:"resize"},{name:"scrollBehavior",cssProperty:"scroll-behavior"},{name:"clip",cssProperty:"clip"},{name:"clipPath",cssProperty:"clip-path"},{name:"isolation",cssProperty:"isolation"},{name:"mixBlendMode",cssProperty:"mix-blend-mode"},{name:"willChange",cssProperty:"will-change"},{name:"contain",cssProperty:"contain"},{name:"pageBreakBefore",cssProperty:"page-break-before"},{name:"pageBreakAfter",cssProperty:"page-break-after"},{name:"pageBreakInside",cssProperty:"page-break-inside"},{name:"breakBefore",cssProperty:"break-before"},{name:"breakAfter",cssProperty:"break-after"},{name:"breakInside",cssProperty:"break-inside"},{name:"orphans",cssProperty:"orphans"},{name:"widows",cssProperty:"widows"},{name:"columnCount",cssProperty:"column-count"},{name:"columnFill",cssProperty:"column-fill"},{name:"columnGap",cssProperty:"column-gap"},{name:"columnRule",cssProperty:"column-rule"},{name:"columnRuleColor",cssProperty:"column-rule-color"},{name:"columnRuleStyle",cssProperty:"column-rule-style"},{name:"columnRuleWidth",cssProperty:"column-rule-width"},{name:"columnSpan",cssProperty:"column-span"},{name:"columnWidth",cssProperty:"column-width"},{name:"columns",cssProperty:"columns"},{name:"cursor",cssProperty:"cursor"},{name:"aspectRatio",cssProperty:"aspect-ratio"},{name:"clear",cssProperty:"clear"},{name:"float",cssProperty:"float"},{name:"order",cssProperty:"order"},{name:"placeContent",cssProperty:"place-content"},{name:"placeItems",cssProperty:"place-items"},{name:"placeSelf",cssProperty:"place-self"},{name:"hyphens",cssProperty:"hyphens"},{name:"lineBreak",cssProperty:"line-break"},{name:"wordBreak",cssProperty:"word-break"},{name:"textOrientation",cssProperty:"text-orientation"},{name:"writingMode",cssProperty:"writing-mode"},{name:"direction",cssProperty:"direction"},{name:"unicodeBidi",cssProperty:"unicode-bidi"},{name:"backgroundBlendMode",cssProperty:"background-blend-mode"},{name:"backgroundPositionX",cssProperty:"background-position-x"},{name:"backgroundPositionY",cssProperty:"background-position-y"},{name:"borderImage",cssProperty:"border-image"},{name:"borderImageSource",cssProperty:"border-image-source"},{name:"borderImageSlice",cssProperty:"border-image-slice"},{name:"borderImageWidth",cssProperty:"border-image-width"},{name:"borderImageOutset",cssProperty:"border-image-outset"},{name:"borderImageRepeat",cssProperty:"border-image-repeat"},{name:"inset",cssProperty:"inset"},{name:"insetBlock",cssProperty:"inset-block"},{name:"insetBlockStart",cssProperty:"inset-block-start"},{name:"insetBlockEnd",cssProperty:"inset-block-end"},{name:"insetInline",cssProperty:"inset-inline"},{name:"insetInlineStart",cssProperty:"inset-inline-start"},{name:"insetInlineEnd",cssProperty:"inset-inline-end"},{name:"marginBlock",cssProperty:"margin-block"},{name:"marginBlockStart",cssProperty:"margin-block-start"},{name:"marginBlockEnd",cssProperty:"margin-block-end"},{name:"marginInline",cssProperty:"margin-inline"},{name:"marginInlineStart",cssProperty:"margin-inline-start"},{name:"marginInlineEnd",cssProperty:"margin-inline-end"},{name:"paddingBlock",cssProperty:"padding-block"},{name:"paddingBlockStart",cssProperty:"padding-block-start"},{name:"paddingBlockEnd",cssProperty:"padding-block-end"},{name:"paddingInline",cssProperty:"padding-inline"},{name:"paddingInlineStart",cssProperty:"padding-inline-start"},{name:"paddingInlineEnd",cssProperty:"padding-inline-end"},{name:"inlineSize",cssProperty:"inline-size"},{name:"blockSize",cssProperty:"block-size"},{name:"minInlineSize",cssProperty:"min-inline-size"},{name:"minBlockSize",cssProperty:"min-block-size"},{name:"maxInlineSize",cssProperty:"max-inline-size"},{name:"maxBlockSize",cssProperty:"max-block-size"},{name:"borderBlock",cssProperty:"border-block"},{name:"borderBlockStart",cssProperty:"border-block-start"},{name:"borderBlockEnd",cssProperty:"border-block-end"},{name:"borderInline",cssProperty:"border-inline"},{name:"borderInlineStart",cssProperty:"border-inline-start"},{name:"borderInlineEnd",cssProperty:"border-inline-end"},{name:"borderBlockWidth",cssProperty:"border-block-width"},{name:"borderBlockStartWidth",cssProperty:"border-block-start-width"},{name:"borderBlockEndWidth",cssProperty:"border-block-end-width"},{name:"borderInlineWidth",cssProperty:"border-inline-width"},{name:"borderInlineStartWidth",cssProperty:"border-inline-start-width"},{name:"borderInlineEndWidth",cssProperty:"border-inline-end-width"},{name:"borderBlockStyle",cssProperty:"border-block-style"},{name:"borderBlockStartStyle",cssProperty:"border-block-start-style"},{name:"borderBlockEndStyle",cssProperty:"border-block-end-style"},{name:"borderInlineStyle",cssProperty:"border-inline-style"},{name:"borderInlineStartStyle",cssProperty:"border-inline-start-style"},{name:"borderInlineEndStyle",cssProperty:"border-inline-end-style"},{name:"borderBlockColor",cssProperty:"border-block-color"},{name:"borderBlockStartColor",cssProperty:"border-block-start-color"},{name:"borderBlockEndColor",cssProperty:"border-block-end-color"},{name:"borderInlineColor",cssProperty:"border-inline-color"},{name:"borderInlineStartColor",cssProperty:"border-inline-start-color"},{name:"borderInlineEndColor",cssProperty:"border-inline-end-color"},{name:"borderStartStartRadius",cssProperty:"border-start-start-radius"},{name:"borderStartEndRadius",cssProperty:"border-start-end-radius"},{name:"borderEndStartRadius",cssProperty:"border-end-start-radius"},{name:"borderEndEndRadius",cssProperty:"border-end-end-radius"},{name:"scrollMargin",cssProperty:"scroll-margin"},{name:"scrollMarginTop",cssProperty:"scroll-margin-top"},{name:"scrollMarginRight",cssProperty:"scroll-margin-right"},{name:"scrollMarginBottom",cssProperty:"scroll-margin-bottom"},{name:"scrollMarginLeft",cssProperty:"scroll-margin-left"},{name:"scrollPadding",cssProperty:"scroll-padding"},{name:"scrollPaddingTop",cssProperty:"scroll-padding-top"},{name:"scrollPaddingRight",cssProperty:"scroll-padding-right"},{name:"scrollPaddingBottom",cssProperty:"scroll-padding-bottom"},{name:"scrollPaddingLeft",cssProperty:"scroll-padding-left"},{name:"overscrollBehavior",cssProperty:"overscroll-behavior"},{name:"overscrollBehaviorX",cssProperty:"overscroll-behavior-x"},{name:"overscrollBehaviorY",cssProperty:"overscroll-behavior-y"},{name:"caretColor",cssProperty:"caret-color"},{name:"caretShape",cssProperty:"caret-shape"},{name:"caretAnimation",cssProperty:"caret-animation"},{name:"imageRendering",cssProperty:"image-rendering"},{name:"colorScheme",cssProperty:"color-scheme"},{name:"contentVisibility",cssProperty:"content-visibility"},{name:"touchAction",cssProperty:"touch-action"},{name:"containerType",cssProperty:"container-type"},{name:"containerName",cssProperty:"container-name"},{name:"container",cssProperty:"container"},{name:"fontFeatureSettings",cssProperty:"font-feature-settings"},{name:"fontKerning",cssProperty:"font-kerning"},{name:"fontSynthesis",cssProperty:"font-synthesis"},{name:"fontOpticalSizing",cssProperty:"font-optical-sizing"},{name:"fontDisplay",cssProperty:"font-display"},{name:"fontVariantCaps",cssProperty:"font-variant-caps"},{name:"fontVariantNumeric",cssProperty:"font-variant-numeric"},{name:"fontVariantLigatures",cssProperty:"font-variant-ligatures"},{name:"fontVariantEastAsian",cssProperty:"font-variant-east-asian"},{name:"fontVariantAlternates",cssProperty:"font-variant-alternates"},{name:"fontVariantPosition",cssProperty:"font-variant-position"},{name:"textRendering",cssProperty:"text-rendering"},{name:"textCombineUpright",cssProperty:"text-combine-upright"},{name:"textSizeAdjust",cssProperty:"text-size-adjust"},{name:"mask",cssProperty:"mask"},{name:"maskImage",cssProperty:"mask-image"},{name:"maskMode",cssProperty:"mask-mode"},{name:"maskRepeat",cssProperty:"mask-repeat"},{name:"maskPosition",cssProperty:"mask-position"},{name:"maskSize",cssProperty:"mask-size"},{name:"maskOrigin",cssProperty:"mask-origin"},{name:"maskClip",cssProperty:"mask-clip"},{name:"maskComposite",cssProperty:"mask-composite"},{name:"clipRule",cssProperty:"clip-rule"},{name:"gridColumnGap",cssProperty:"grid-column-gap"},{name:"gridRowGap",cssProperty:"grid-row-gap"},{name:"gridGap",cssProperty:"grid-gap"}],xe=["bold","center","flex"],Pe=new Map;function Se(e){let t=0;for(let r=0;e.length>r;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return Math.abs(t).toString(16).padStart(8,"0").substring(0,8)}function ke(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function we(e,t,r,o="media",n){let s=document.querySelector("#nuclo-styles");s||(s=c("style"),s.id="nuclo-styles",document.head.appendChild(s));const i=Object.entries(t).map(function([e,t]){return`${e}: ${t}`}).join("; ");if(n){const r=`.${e}${n}`,o=s.sheet;if(!o)return;const a=o.cssRules,c=a.length;let l=null,p=c;for(let e=0;c>e;e++){const t=a[e];if(t instanceof CSSStyleRule){if(t.selectorText===r){l=t,p=e;break}t.selectorText.includes(":")||(p=e+1)}}if(l){const e=l.style;e.cssText="";for(const[r,o]of Object.entries(t))e.setProperty(r,o)}else o.insertRule(`${r} { ${i} }`,p);return}if(r){const n=s.sheet;if(!n)return;const a=n.cssRules,c=a.length;let l=null;const p=e=>"media"===o&&e instanceof CSSMediaRule?e.media.mediaText===r:("container"===o&&e instanceof CSSContainerRule||"supports"===o&&e instanceof CSSSupportsRule)&&e.conditionText===r,d=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule;for(let e=0;c>e;e++){const t=a[e];if(p(t)){l=t;break}}if(!l){let e=c;for(let t=c-1;t>=0;t--){const r=a[t];if(d(r)){e=t+1;break}if(r instanceof CSSStyleRule){e=t+1;break}}n.insertRule(`${"media"===o?"@media":"container"===o?"@container":"supports"===o?"@supports":"@media"} ${r} {}`,e),l=n.cssRules[e]}let u=null;for(const t of Array.from(l.cssRules))if(t instanceof CSSStyleRule&&t.selectorText==="."+e){u=t;break}if(u){const e=u.style;e.cssText="";for(const[r,o]of Object.entries(t))e.setProperty(r,o)}else l.insertRule(`.${e} { ${i} }`,l.cssRules.length)}else{const r=s.sheet;if(!r)return;let o=null,n=0;const a=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule,c=r.cssRules,l=c.length;for(let t=0;l>t;t++){const r=c[t];if(r instanceof CSSStyleRule&&r.selectorText==="."+e){o=r,n=t;break}a(r)||(n=t+1)}if(o){const e=o.style;e.cssText="";for(const[r,o]of Object.entries(t))e.setProperty(r,o)}else r.insertRule(`.${e} { ${i} }`,n)}}function ve(e,t){we(e,t)}class Ce{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return function(e,t="",r){const o=ke(e),n=t?`${t}:${o}`:o,s=function(e){return Pe.get(e)}(n);if(s){const t=s;return function(e,t,r="media"){const o=document.querySelector("#nuclo-styles");if(!o||!o.sheet)return!1;if(t){const n=Array.from(o.sheet.cssRules||[]).find(function(e){return"media"===r&&e instanceof CSSMediaRule?e.media.mediaText===t:("container"===r&&e instanceof CSSContainerRule||"supports"===r&&e instanceof CSSSupportsRule)&&e.conditionText===t});return!!n&&Array.from(n.cssRules).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}return Array.from(o.sheet.cssRules||[]).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}(t,r)||we(t,e,r),t}const i=Se(o),a=t?`n${t}-${i}`:"n"+i;return function(e,t){Pe.set(e,t)}(n,a),we(a,e,r),a}(this.styles,e,t)}getClassNames(){return[this.getClassName()]}getClassDefinitions(){return Object.entries(this.styles).map(([e,t])=>({className:this.getClassName(),property:e,value:t}))}toString(){return this.getClassName()}add(e,t){return this.styles[e]=t,this}bold(){return this.styles["font-weight"]="bold",this}center(){return this.styles["justify-content"]="center",this.styles["align-items"]="center",this}flex(e){return void 0!==e?this.styles.flex=e:this.styles.display="flex",this}}function Re(e){return e.isShorthand?()=>(new Ce).add(e.cssProperty,e.defaultValue||""):t=>(new Ce).add(e.cssProperty,t||"")}!function(){const e=Ce.prototype;for(const t of he)t.name in e||(e[t.name]=t.isShorthand?function(){return this.add(t.cssProperty,t.defaultValue||""),this}:function(e){return this.add(t.cssProperty,e),this})}();const Be={};for(const e of he)Be[e.name]=Re(e);for(const e of xe)"bold"===e||"center"===e?Be[e]=()=>(new Ce)[e]():"flex"===e&&(Be[e]=e=>(new Ce).flex(e));const{display:Te,flex:Ie,grid:Ee,bg:We,color:Ne,accentColor:Ae,fontSize:Le,fontWeight:Fe,fontFamily:Me,lineHeight:je,letterSpacing:De,textAlign:Oe,textDecoration:ze,bold:Ve,fontStyle:$e,fontVariant:_e,fontStretch:Ge,textTransform:qe,textIndent:He,textOverflow:Ue,textShadow:Xe,whiteSpace:Ye,wordSpacing:Je,wordWrap:Qe,overflowWrap:Ke,textAlignLast:Ze,textJustify:et,textDecorationLine:tt,textDecorationColor:rt,textDecorationStyle:ot,textDecorationThickness:nt,textUnderlineOffset:st,verticalAlign:it,position:at,padding:ct,paddingTop:lt,paddingRight:pt,paddingBottom:dt,paddingLeft:ut,margin:mt,marginTop:ft,marginRight:yt,marginBottom:gt,marginLeft:bt,width:ht,height:xt,minWidth:Pt,maxWidth:St,minHeight:kt,maxHeight:wt,boxSizing:vt,top:Ct,right:Rt,bottom:Bt,left:Tt,zIndex:It,flexDirection:Et,alignItems:Wt,justifyContent:Nt,center:At,gap:Lt,flexWrap:Ft,flexGrow:Mt,flexShrink:jt,flexBasis:Dt,alignSelf:Ot,alignContent:zt,justifySelf:Vt,justifyItems:$t,gridTemplateColumns:_t,gridTemplateRows:Gt,gridTemplateAreas:qt,gridColumn:Ht,gridRow:Ut,gridColumnStart:Xt,gridColumnEnd:Yt,gridRowStart:Jt,gridRowEnd:Qt,gridArea:Kt,gridAutoColumns:Zt,gridAutoRows:er,gridAutoFlow:tr,border:rr,borderTop:or,borderRight:nr,borderBottom:sr,borderLeft:ir,borderWidth:ar,borderStyle:cr,borderColor:lr,borderTopWidth:pr,borderRightWidth:dr,borderBottomWidth:ur,borderLeftWidth:mr,borderTopStyle:fr,borderRightStyle:yr,borderBottomStyle:gr,borderLeftStyle:br,borderTopColor:hr,borderRightColor:xr,borderBottomColor:Pr,borderLeftColor:Sr,borderRadius:kr,borderTopLeftRadius:wr,borderTopRightRadius:vr,borderBottomLeftRadius:Cr,borderBottomRightRadius:Rr,outline:Br,outlineWidth:Tr,outlineStyle:Ir,outlineColor:Er,outlineOffset:Wr,backgroundColor:Nr,backgroundImage:Ar,backgroundRepeat:Lr,backgroundPosition:Fr,backgroundSize:Mr,backgroundAttachment:jr,backgroundClip:Dr,backgroundOrigin:Or,boxShadow:zr,opacity:Vr,transition:$r,transitionProperty:_r,transitionDuration:Gr,transitionTimingFunction:qr,transitionDelay:Hr,transform:Ur,transformOrigin:Xr,transformStyle:Yr,perspective:Jr,perspectiveOrigin:Qr,backfaceVisibility:Kr,animation:Zr,animationName:eo,animationDuration:to,animationTimingFunction:ro,animationDelay:oo,animationIterationCount:no,animationDirection:so,animationFillMode:io,animationPlayState:ao,filter:co,backdropFilter:lo,overflow:po,overflowX:uo,overflowY:mo,visibility:fo,objectFit:yo,objectPosition:go,listStyle:bo,listStyleType:ho,listStylePosition:xo,listStyleImage:Po,borderCollapse:So,borderSpacing:ko,captionSide:wo,emptyCells:vo,tableLayout:Co,content:Ro,quotes:Bo,counterReset:To,counterIncrement:Io,appearance:Eo,userSelect:Wo,pointerEvents:No,resize:Ao,scrollBehavior:Lo,clip:Fo,clipPath:Mo,isolation:jo,mixBlendMode:Do,willChange:Oo,contain:zo,pageBreakBefore:Vo,pageBreakAfter:$o,pageBreakInside:_o,breakBefore:Go,breakAfter:qo,breakInside:Ho,orphans:Uo,widows:Xo,columnCount:Yo,columnFill:Jo,columnGap:Qo,columnRule:Ko,columnRuleColor:Zo,columnRuleStyle:en,columnRuleWidth:tn,columnSpan:rn,columnWidth:on,columns:nn,cursor:sn}=Be,an={hover:":hover",active:":active",focus:":focus","focus-visible":":focus-visible","focus-within":":focus-within",visited:":visited",link:":link",target:":target",root:":root",empty:":empty",enabled:":enabled",disabled:":disabled",checked:":checked",indeterminate:":indeterminate",default:":default",required:":required",optional:":optional",valid:":valid",invalid:":invalid","in-range":":in-range","out-of-range":":out-of-range","placeholder-shown":":placeholder-shown",autofill:":autofill","read-only":":read-only","read-write":":read-write","first-child":":first-child","last-child":":last-child","only-child":":only-child","first-of-type":":first-of-type","last-of-type":":last-of-type","only-of-type":":only-of-type","nth-child":":nth-child","nth-last-child":":nth-last-child","nth-of-type":":nth-of-type","nth-last-of-type":":nth-last-of-type",lang:":lang",dir:":dir",not:":not",is:":is",where:":where",has:":has","any-link":":any-link","local-link":":local-link",scope:":scope",current:":current",past:":past",future:":future",playing:":playing",paused:":paused",seeking:":seeking",muted:":muted","volume-locked":":volume-locked",buffering:":buffering",stalled:":stalled","picture-in-picture":":picture-in-picture",fullscreen:":fullscreen",modal:":modal","popover-open":":popover-open","user-invalid":":user-invalid","user-valid":":user-valid"};function cn(e){const t=e.trim();return t.startsWith("&:")||t.startsWith(":")?{type:"pseudo",pseudoClass:(t.startsWith("&:")?t.slice(1):t).trim()}:t.startsWith("@media ")?{type:"media",condition:t.slice(7).trim()}:t.startsWith("@container ")?{type:"container",condition:t.slice(11).trim()}:t.startsWith("@supports ")?{type:"supports",condition:t.slice(10).trim()}:t.startsWith("@style ")?{type:"style",condition:t.slice(7).trim()}:{type:"media",condition:t}}function ln(e){return e in an}function pn(e){return an[e]}const dn=new Map;function un(e){const t=Array.isArray(e)?e:Object.entries(e),r=new Map;for(const[e,o]of t){let t=dn.get(o);t||(t=cn(o),dn.set(o,t)),r.set(e,t)}return function(e,o){let n,s;void 0!==o?(n=e,s=o):e instanceof Ce?(n=e,s=void 0):(n=void 0,s=e);const i=null!=s&&Object.keys(s).length>0;if(!n&&!i)return{className:""};if(i){const e=[],o=new Set;for(const[n]of t){const t=s?.[n];t&&(o.add(n),e.push({queryName:n,query:r.get(n),styles:t.getStyles()}))}for(const[t,r]of Object.entries(s??{}))!o.has(t)&&ln(t)&&r instanceof Ce&&e.push({queryName:t,query:{type:"pseudo",pseudoClass:pn(t)},styles:r.getStyles()});if(0===e.length&&!n)return{className:""};const i=[];i.length=e.length+(n?1:0);let a=0;if(n){const e=n.getStyles();i[a++]="default:"+ke(e)}for(const{queryName:t,styles:r}of e){const e=ke(r);i[a++]=`${t}:${e}`}const c="n"+Se(i.sort().join("||"));let l={};n&&(l={...n.getStyles()},we(c,l));const p=[],d=[];for(const t of e)"pseudo"===t.query.type?d.push(t):p.push(t);for(const{query:e,styles:t}of p)l={...l,...t},we(c,l,e.condition,e.type);for(const{query:e,styles:t}of d)we(c,t,void 0,"pseudo",e.pseudoClass);return{className:c}}return{className:n.getClassName()}}}const mn=un;var fn=Object.freeze({__proto__:null,StyleBuilder:Ce,accentColor:Ae,alignContent:zt,alignItems:Wt,alignSelf:Ot,animation:Zr,animationDelay:oo,animationDirection:so,animationDuration:to,animationFillMode:io,animationIterationCount:no,animationName:eo,animationPlayState:ao,animationTimingFunction:ro,appearance:Eo,backdropFilter:lo,backfaceVisibility:Kr,backgroundAttachment:jr,backgroundClip:Dr,backgroundColor:Nr,backgroundImage:Ar,backgroundOrigin:Or,backgroundPosition:Fr,backgroundRepeat:Lr,backgroundSize:Mr,bg:We,bold:Ve,border:rr,borderBottom:sr,borderBottomColor:Pr,borderBottomLeftRadius:Cr,borderBottomRightRadius:Rr,borderBottomStyle:gr,borderBottomWidth:ur,borderCollapse:So,borderColor:lr,borderLeft:ir,borderLeftColor:Sr,borderLeftStyle:br,borderLeftWidth:mr,borderRadius:kr,borderRight:nr,borderRightColor:xr,borderRightStyle:yr,borderRightWidth:dr,borderSpacing:ko,borderStyle:cr,borderTop:or,borderTopColor:hr,borderTopLeftRadius:wr,borderTopRightRadius:vr,borderTopStyle:fr,borderTopWidth:pr,borderWidth:ar,bottom:Bt,boxShadow:zr,boxSizing:vt,breakAfter:qo,breakBefore:Go,breakInside:Ho,captionSide:wo,center:At,clip:Fo,clipPath:Mo,color:Ne,columnCount:Yo,columnFill:Jo,columnGap:Qo,columnRule:Ko,columnRuleColor:Zo,columnRuleStyle:en,columnRuleWidth:tn,columnSpan:rn,columnWidth:on,columns:nn,contain:zo,content:Ro,counterIncrement:Io,counterReset:To,createBreakpoints:mn,createCSSClass:ve,createStyleQueries:un,cursor:sn,display:Te,emptyCells:vo,filter:co,flex:Ie,flexBasis:Dt,flexDirection:Et,flexGrow:Mt,flexShrink:jt,flexWrap:Ft,fontFamily:Me,fontSize:Le,fontStretch:Ge,fontStyle:$e,fontVariant:_e,fontWeight:Fe,gap:Lt,grid:Ee,gridArea:Kt,gridAutoColumns:Zt,gridAutoFlow:tr,gridAutoRows:er,gridColumn:Ht,gridColumnEnd:Yt,gridColumnStart:Xt,gridRow:Ut,gridRowEnd:Qt,gridRowStart:Jt,gridTemplateAreas:qt,gridTemplateColumns:_t,gridTemplateRows:Gt,height:xt,isolation:jo,justifyContent:Nt,justifyItems:$t,justifySelf:Vt,left:Tt,letterSpacing:De,lineHeight:je,listStyle:bo,listStyleImage:Po,listStylePosition:xo,listStyleType:ho,margin:mt,marginBottom:gt,marginLeft:bt,marginRight:yt,marginTop:ft,maxHeight:wt,maxWidth:St,minHeight:kt,minWidth:Pt,mixBlendMode:Do,objectFit:yo,objectPosition:go,opacity:Vr,orphans:Uo,outline:Br,outlineColor:Er,outlineOffset:Wr,outlineStyle:Ir,outlineWidth:Tr,overflow:po,overflowWrap:Ke,overflowX:uo,overflowY:mo,padding:ct,paddingBottom:dt,paddingLeft:ut,paddingRight:pt,paddingTop:lt,pageBreakAfter:$o,pageBreakBefore:Vo,pageBreakInside:_o,perspective:Jr,perspectiveOrigin:Qr,pointerEvents:No,position:at,quotes:Bo,resize:Ao,right:Rt,scrollBehavior:Lo,tableLayout:Co,textAlign:Oe,textAlignLast:Ze,textDecoration:ze,textDecorationColor:rt,textDecorationLine:tt,textDecorationStyle:ot,textDecorationThickness:nt,textIndent:He,textJustify:et,textOverflow:Ue,textShadow:Xe,textTransform:qe,textUnderlineOffset:st,top:Ct,transform:Ur,transformOrigin:Xr,transformStyle:Yr,transition:$r,transitionDelay:Hr,transitionDuration:Gr,transitionProperty:_r,transitionTimingFunction:qr,userSelect:Wo,verticalAlign:it,visibility:fo,whiteSpace:Ye,widows:Xo,width:ht,willChange:Oo,wordSpacing:Je,wordWrap:Qe,zIndex:It});function yn(){q();const e=globalThis;e.list=J,e.update=fe,e.when=ne,e.on=ge,e.scope=ue,e.render=be;for(const[t,r]of Object.entries(fn))try{e[t]=r}catch{}}yn(),exports.HTML_TAGS=_,exports.SELF_CLOSING_TAGS=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"],exports.SVG_TAGS=G,exports.StyleBuilder=Ce,exports.accentColor=Ae,exports.alignContent=zt,exports.alignItems=Wt,exports.alignSelf=Ot,exports.animation=Zr,exports.animationDelay=oo,exports.animationDirection=so,exports.animationDuration=to,exports.animationFillMode=io,exports.animationIterationCount=no,exports.animationName=eo,exports.animationPlayState=ao,exports.animationTimingFunction=ro,exports.appearance=Eo,exports.appendChildren=function(e,...t){return e?(t.forEach(function(t){if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!a)return null;try{return p(e+"")}catch(e){return i("Failed to create text node",e),null}}(t);if(!e)return;r=e}else r=t;!function(e,t){try{return e.appendChild(t),!0}catch(e){return i("Failed to append child node",e),!1}}(e,r)}}),e):e},exports.applyAttributes=A,exports.applyNodeModifier=F,exports.backdropFilter=lo,exports.backfaceVisibility=Kr,exports.backgroundAttachment=jr,exports.backgroundClip=Dr,exports.backgroundColor=Nr,exports.backgroundImage=Ar,exports.backgroundOrigin=Or,exports.backgroundPosition=Fr,exports.backgroundRepeat=Lr,exports.backgroundSize=Mr,exports.bg=We,exports.bold=Ve,exports.border=rr,exports.borderBottom=sr,exports.borderBottomColor=Pr,exports.borderBottomLeftRadius=Cr,exports.borderBottomRightRadius=Rr,exports.borderBottomStyle=gr,exports.borderBottomWidth=ur,exports.borderCollapse=So,exports.borderColor=lr,exports.borderLeft=ir,exports.borderLeftColor=Sr,exports.borderLeftStyle=br,exports.borderLeftWidth=mr,exports.borderRadius=kr,exports.borderRight=nr,exports.borderRightColor=xr,exports.borderRightStyle=yr,exports.borderRightWidth=dr,exports.borderSpacing=ko,exports.borderStyle=cr,exports.borderTop=or,exports.borderTopColor=hr,exports.borderTopLeftRadius=wr,exports.borderTopRightRadius=vr,exports.borderTopStyle=fr,exports.borderTopWidth=pr,exports.borderWidth=ar,exports.bottom=Bt,exports.boxShadow=zr,exports.boxSizing=vt,exports.breakAfter=qo,exports.breakBefore=Go,exports.breakInside=Ho,exports.captionSide=wo,exports.center=At,exports.clip=Fo,exports.clipPath=Mo,exports.color=Ne,exports.columnCount=Yo,exports.columnFill=Jo,exports.columnGap=Qo,exports.columnRule=Ko,exports.columnRuleColor=Zo,exports.columnRuleStyle=en,exports.columnRuleWidth=tn,exports.columnSpan=rn,exports.columnWidth=on,exports.columns=nn,exports.contain=zo,exports.content=Ro,exports.counterIncrement=Io,exports.counterReset=To,exports.createBreakpoints=mn,exports.createCSSClass=ve,exports.createComment=f,exports.createConditionalComment=y,exports.createHtmlElementWithModifiers=O,exports.createHtmlTagBuilder=V,exports.createStyleQueries=un,exports.createSvgElementWithModifiers=z,exports.createSvgTagBuilder=$,exports.cursor=sn,exports.display=Te,exports.emptyCells=vo,exports.filter=co,exports.flex=Ie,exports.flexBasis=Dt,exports.flexDirection=Et,exports.flexGrow=Mt,exports.flexShrink=jt,exports.flexWrap=Ft,exports.fontFamily=Me,exports.fontSize=Le,exports.fontStretch=Ge,exports.fontStyle=$e,exports.fontVariant=_e,exports.fontWeight=Fe,exports.gap=Lt,exports.grid=Ee,exports.gridArea=Kt,exports.gridAutoColumns=Zt,exports.gridAutoFlow=tr,exports.gridAutoRows=er,exports.gridColumn=Ht,exports.gridColumnEnd=Yt,exports.gridColumnStart=Xt,exports.gridRow=Ut,exports.gridRowEnd=Qt,exports.gridRowStart=Jt,exports.gridTemplateAreas=qt,exports.gridTemplateColumns=_t,exports.gridTemplateRows=Gt,exports.height=xt,exports.initializeRuntime=yn,exports.isBoolean=function(e){return"boolean"==typeof e},exports.isBrowser=a,exports.isFunction=n,exports.isNode=t,exports.isObject=r,exports.isPrimitive=e,exports.isTagLike=o,exports.isZeroArityFunction=s,exports.isolation=jo,exports.justifyContent=Nt,exports.justifyItems=$t,exports.justifySelf=Vt,exports.left=Tt,exports.letterSpacing=De,exports.lineHeight=je,exports.list=J,exports.listStyle=bo,exports.listStyleImage=Po,exports.listStylePosition=xo,exports.listStyleType=ho,exports.margin=mt,exports.marginBottom=gt,exports.marginLeft=bt,exports.marginRight=yt,exports.marginTop=ft,exports.maxHeight=wt,exports.maxWidth=St,exports.minHeight=kt,exports.minWidth=Pt,exports.mixBlendMode=Do,exports.objectFit=yo,exports.objectPosition=go,exports.on=ge,exports.opacity=Vr,exports.orphans=Uo,exports.outline=Br,exports.outlineColor=Er,exports.outlineOffset=Wr,exports.outlineStyle=Ir,exports.outlineWidth=Tr,exports.overflow=po,exports.overflowWrap=Ke,exports.overflowX=uo,exports.overflowY=mo,exports.padding=ct,exports.paddingBottom=dt,exports.paddingLeft=ut,exports.paddingRight=pt,exports.paddingTop=lt,exports.pageBreakAfter=$o,exports.pageBreakBefore=Vo,exports.pageBreakInside=_o,exports.perspective=Jr,exports.perspectiveOrigin=Qr,exports.pointerEvents=No,exports.position=at,exports.quotes=Bo,exports.registerGlobalTagBuilders=q,exports.render=be,exports.replaceNodeSafely=x,exports.resize=Ao,exports.right=Rt,exports.scope=ue,exports.scrollBehavior=Lo,exports.tableLayout=Co,exports.textAlign=Oe,exports.textAlignLast=Ze,exports.textDecoration=ze,exports.textDecorationColor=rt,exports.textDecorationLine=tt,exports.textDecorationStyle=ot,exports.textDecorationThickness=nt,exports.textIndent=He,exports.textJustify=et,exports.textOverflow=Ue,exports.textShadow=Xe,exports.textTransform=qe,exports.textUnderlineOffset=st,exports.top=Ct,exports.transform=Ur,exports.transformOrigin=Xr,exports.transformStyle=Yr,exports.transition=$r,exports.transitionDelay=Hr,exports.transitionDuration=Gr,exports.transitionProperty=_r,exports.transitionTimingFunction=qr,exports.update=fe,exports.userSelect=Wo,exports.verticalAlign=it,exports.visibility=fo,exports.when=ne,exports.whiteSpace=Ye,exports.widows=Xo,exports.width=ht,exports.willChange=Oo,exports.wordSpacing=Je,exports.wordWrap=Qe,exports.zIndex=It;
1
+ "use strict";function e(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function t(e){return e instanceof Node}function r(e){return"object"==typeof e&&null!==e}function o(e){return r(e)&&"tagName"in e}function n(e){return"function"==typeof e}function s(e){return n(e)&&0===e.length}function i(e,t){void 0!==console&&console.error("nuclo: "+e,t)}const a="undefined"!=typeof window&&"undefined"!=typeof document,c=new WeakMap;function l(e,t,r){return function(o){if(!o||"function"!=typeof o.addEventListener)return;const n=o,s=new AbortController,a=function(r){try{t.call(n,r)}catch(t){i(`Error in '${e}' listener`,t)}},l="boolean"==typeof r?{capture:r,signal:s.signal}:{...r||{},signal:s.signal};n.addEventListener(e,a,l),function(e,t,r,o,n,s){let i=c.get(e);i||(i=new Map,c.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.add({original:r,wrapped:o,options:n,controller:s})}(n,e,t,a,r,s)}}const d=new Set;function p(e,t){e._conditionalInfo=t,d.add(new WeakRef(e))}function u(e){for(const t of d)if(t.deref()===e){d.delete(t);break}}function m(e){return globalThis.document?document.createElement(e):null}function f(e,t){return globalThis.document?document.createElementNS(e,t):null}function y(e){return globalThis.document?document.createTextNode(e):null}function g(){return globalThis.document?document.createDocumentFragment():null}function h(e){if(e.nodeType===Node.ELEMENT_NODE){const t=e;!function(e){const t=c.get(e);if(t){for(const[r,o]of t)for(const t of o)t.controller?t.controller.abort():e.removeEventListener(r,t.wrapped,t.options);c.delete(e)}}(t),function(e){for(const[t,r]of T)if(t.deref()===e){T.delete(t);break}}(t),u(t)}else e.nodeType===Node.TEXT_NODE?function(e){for(const[t]of R)if(t.deref()===e){R.delete(t);break}}(e):e.nodeType===Node.COMMENT_NODE&&u(e);if(e.childNodes&&e.childNodes.length>0)for(let t=0;e.childNodes.length>t;t++)h(e.childNodes[t])}function b(e){if(!e?.parentNode)return!1;try{return h(e),e.parentNode.removeChild(e),!0}catch(e){return i("Failed to remove child node",e),!1}}function x(e){if(!a)return null;try{return document.createComment(e)}catch(e){return i("Failed to create comment node",e),null}}function P(e){return x(e)}function S(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return i("Failed to create conditional comment",e),null}}function k(e){if(!a)throw Error("Cannot create comment in non-browser environment");const t=x(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw Error("Failed to create comment");return t}function w(e){const t=x(e+"-end");if(!t)throw Error("Failed to create end comment");return{start:k(e+"-start"),end:t}}function v(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!a||"undefined"==typeof document)&&document.contains(e))}function C(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return i("Error replacing conditional node",e),!1}}const R=new Map,T=new Map,B={};let E=!1;function I(e){const t=e.target;if(!(t&&"undefined"!=typeof Node&&t instanceof Node))return;let r=t;for(;r;){if(r instanceof Element){let e=null,t=null;for(const[o,n]of T){const s=o.deref();if(void 0!==s){if(s===r){e=o,t=n;break}}else T.delete(o)}t&&e&&(v(r)?W(t):T.delete(e))}r=r.parentNode}}function N(e,t){let r;try{r=t.resolver()}catch(t){return void i("Failed to resolve reactive attribute: "+e,t)}const o=null===(n=r)||"object"!=typeof n;var n;if(!o||!Object.is(r,t.lastValue))try{t.applyValue(r),t.lastValue=o?r:B}catch(t){i("Failed to apply reactive attribute: "+e,t)}}function W(e){for(const[t,r]of e.attributeResolvers)N(t,r)}function A(e,t,r,o){if(!(e instanceof Element&&t&&"function"==typeof r))return void i("Invalid parameters for registerAttributeResolver");E||"undefined"!=typeof document&&"function"==typeof document.addEventListener&&(document.addEventListener("update",I,!0),E=!0);const n=function(e){for(const[t,r]of T){const o=t.deref();if(void 0!==o){if(o===e)return r}else T.delete(t)}const t={attributeResolvers:new Map};return T.set(new WeakRef(e),t),t}(e),s={resolver:r,applyValue:o,lastValue:B};n.attributeResolvers.set(t,s),N(t,s)}function M(e,t,r){try{return null==r||""===r?(e.style[t]="",!0):(e.style[t]=r+"",!0)}catch{return!1}}function L(e,t){if(e?.style&&t)for(const[r,o]of Object.entries(t))M(e,r,o)||i(`Failed to set style property '${r}'`)}const F="__nuclo_reactive_className__",j="__nuclo_static_className__";function D(e,t,r,o=!1){if(null==r)return;if("style"===t)return i=r,void((s=e)&&(n(i)?A(s,"style",i,function(e){L(s,e)}):L(s,i)));var s,i;const a=(r,o=!1)=>{if(null!=r)if("className"===t&&e instanceof HTMLElement&&o)!function(e,t){if(!t)return;const r=e.className;if(r&&r!==t){const o=new Set(r.split(" ").filter(function(e){return e}));t.split(" ").filter(function(e){return e}).forEach(function(e){o.add(e)}),e.className=Array.from(o).join(" ")}else e.className=t}(e,r+"");else if(e instanceof Element&&"http://www.w3.org/2000/svg"===e.namespaceURI)e.setAttribute(t+"",r+"");else if(t in e)try{e[t]=r}catch{e instanceof Element&&e.setAttribute(t+"",r+"")}else e instanceof Element&&e.setAttribute(t+"",r+"")};if(n(r)&&0===r.length){const o=r;"className"===t&&e instanceof HTMLElement?(function(e){e[j]||(e[j]=new Set(e.className.split(" ").filter(function(e){return e}))),e[F]=!0}(e),A(e,t+"",o,function(t){!function(e,t){const r=function(e){return e[j]}(e);if(r&&r.size>0&&t){const o=new Set(r);t.split(" ").filter(function(e){return e}).forEach(function(e){o.add(e)}),e.className=Array.from(o).join(" ")}else e.className=t||(r&&r.size>0?Array.from(r).join(" "):"")}(e,(t||"")+"")})):A(e,t+"",o,function(e){a(e,!1)})}else{if("className"===t&&e instanceof HTMLElement&&function(e){return!!e[F]}(e)){const t=(r||"")+"";if(t){!function(e,t){t&&(e[j]||(e[j]=new Set),t.split(" ").filter(function(e){return e}).forEach(function(t){e[j].add(t)}))}(e,t);const r=new Set(e.className.split(" ").filter(function(e){return e}));t.split(" ").filter(function(e){return e}).forEach(function(e){r.add(e)}),e.className=Array.from(r).join(" ")}return}a(r,o)}}function O(e,t,r=!0){if(t)for(const o of Object.keys(t))D(e,o,t[o],r&&"className"===o)}const z=new WeakMap;function V(o,a,c){if(null==a)return null;if(n(a)){if(s(a))try{let n=z.get(a);if(n||(n={value:a(),error:!1},z.set(a,n)),n.error)return _(c,function(){return""});const s=n.value;if(r(s)&&!t(s)&&"className"in s&&"string"==typeof s.className&&1===Object.keys(s).length){const e=a;return O(o,{className:function(){const t=e();return r(t)&&"className"in t&&"string"==typeof t.className?t.className:""}}),null}return e(s)&&null!=s?_(c,a,s):null}catch(e){return z.set(a,{value:void 0,error:!0}),i("Error evaluating reactive text function:",e),_(c,function(){return""})}const n=a(o,c);return null==n?null:e(n)?$(c,n):t(n)?n:(r(n)&&O(o,n),null)}const l=a;return e(l)?$(c,l):t(l)?l:(O(o,l),null)}function _(e,t,r){const o=g();if(!o)throw Error("Failed to create document fragment: document not available");const n=P(` text-${e} `);n&&o.appendChild(n);const s=function(e,t){if("function"!=typeof e){i("Invalid resolver provided to createReactiveTextNode");const e=y("");if(!e)throw Error("Failed to create text node: document not available");return e}let r;if(arguments.length>1)r=t;else try{r=e()}catch(e){i("Failed to evaluate reactive text resolver",e),r=""}const o=void 0===r?"":r+"",n=y(o);if(!n)throw Error("Failed to create text node: document not available");return R.set(new WeakRef(n),{resolver:e,lastValue:o}),n}(t,r);return o.appendChild(s),o}function $(e,t){const r=g();if(!r)throw Error("Failed to create document fragment: document not available");const o=P(` text-${e} `);o&&r.appendChild(o);const n=y(t+"");return n&&r.appendChild(n),r}function G(e,t,r=0){if(!t||0===t.length)return{element:e,nextIndex:r,appended:0};let o=r,n=0;const s=e;for(let r=0;t.length>r;r+=1){const i=t[r];if(null==i)continue;const a=V(e,i,o);a&&(a.parentNode!==s&&s.appendChild(a),o+=1,n+=1)}return{element:e,nextIndex:o,appended:n}}function q(e,t){const r=m(e);return G(r,t,0),r}function H(e,t){const r=f("http://www.w3.org/2000/svg",e);if(!r)throw Error("Failed to create SVG element: "+e);return G(r,t,0),r}function X(e){return(...t)=>function(e,...t){return function(r,o){const n=m(e);return G(n,t,o),n}}(e,...t)}function U(e){return(...t)=>function(e,...t){return function(r,o){const n=f("http://www.w3.org/2000/svg",e);if(!n)throw Error("Failed to create SVG element: "+e);return G(n,t,o),n}}(e,...t)}const Y=["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"],J=["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"];function Q(e=globalThis){const t="__nuclo_tags_registered";e[t]||(J.forEach(t=>function(e,t){const r=t+"Svg";r in e||(e[r]=U(t))}(e,t)),Y.forEach(t=>function(e,t){t in e&&"function"!=typeof e[t]||(e[t]=X(t))}(e,t)),e[t]=!0)}const K=new Map;function Z(e,t,r){return function(e,t,r){if(n(e)){const n=e(t,r);return n&&o(n)?n:null}return e&&o(e)?e:null}(e.renderItem(t,r),e.host,r)}function ee(e){b(e.element),e.element=null,e.item=null}function te(e){const{host:t,startMarker:r,endMarker:o}=e,n=r.parentNode??t,s=e.itemsProvider();if(function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;e.length>r;r++)if((r in e?e[r]:void 0)!==(r in t?t[r]:void 0))return!1;return!0}(e.lastSyncedItems,s))return;const i=new Map,a=new Map;e.records.forEach(function(e){const t=a.get(e.item);t?t.push(e):a.set(e.item,[e])}),s.forEach(function(t,r){if(e.lastSyncedItems.length>r&&e.lastSyncedItems[r]===t){const o=e.records[r];if(o&&o.item===t){i.set(r,o);const e=a.get(t);e.splice(e.indexOf(o),1),0===e.length&&a.delete(t)}}});const c=[],l=new Set(e.records);let d=o;for(let t=s.length-1;t>=0;t--){const r=s[t];let o=i.get(t);if(!o){const e=a.get(r);e&&e.length>0&&(o=e.shift(),0===e.length&&a.delete(r))}if(o)l.delete(o);else{const n=Z(e,r,t);if(!n)continue;o={item:r,element:n}}c.unshift(o);const p=o.element;p.nextSibling!==d&&n.insertBefore(p,d),d=p}l.forEach(ee),e.records=c,e.lastSyncedItems=[...s],0===c.length&&(e.records=[],e.lastSyncedItems=[])}function re(e,t){return function(r){const o=function(e,t,r){const{start:o,end:n}=w("list"),s={itemsProvider:e,renderItem:t,startMarker:o,endMarker:n,records:[],host:r,lastSyncedItems:[]},i=r;i.appendChild(o),i.appendChild(n);const a={runtime:s};return K.set(new WeakRef(o),a),te(s),s}(e,t,r);return o.startMarker}}function oe(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function ne(e,t){return"function"==typeof e?oe(e,t):!!e}function se(e,t,r,o){return n(e)?s(e)?(z.delete(e),V(t,e,r)):function(e,t,r){const o=e,n=o.appendChild.bind(o),s=o.insertBefore.bind(o);o.appendChild=function(e){return s(e,t)};try{return r()}finally{o.appendChild=n}}(t,o,()=>{const o=V(t,e,r);return o&&!o.parentNode?o:null}):V(t,e,r)}const ie=new Map;function ae(e){const{groups:t,elseContent:r,host:o,index:n,endMarker:s}=e,a=function(e,t){for(let t=0;e.length>t;t++)if(ne(e[t].condition))return t;return t.length>0?-1:null}(t,r);if(a===e.activeIndex)return;if(function(e,t){let r=e.nextSibling;for(;r&&r!==t;){const e=r.nextSibling;b(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=a,null===a)return;const c=function(e,t,r,o){const n=[];for(const s of e){const e=se(s,t,r,o);e&&n.push(e)}return n}(0>a?r:t[a].content,o,n,s);!function(e,t){const r=t.parentNode;r&&e.forEach(function(e){!function(e,t,r){try{return e.insertBefore(t,r),!0}catch(e){return i("Failed to insert node before reference",e),!1}}(r,e,t)})}(c,s)}class ce{groups=[];elseContent=[];constructor(e,...t){this.groups.push({condition:e,content:t})}when(e,...t){return this.groups.push({condition:e,content:t}),this}else(...e){return this.elseContent=e,this}render(e,t){if(!a)return P("when-ssr")||null;const{start:r,end:o}=w("when"),n={startMarker:r,endMarker:o,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:function(){ae(n)}};!function(e){const t={runtime:e};ie.set(new WeakRef(e.startMarker),t)}(n);const s=e;return s.appendChild(r),s.appendChild(o),ae(n),r}}function le(e){return Object.assign(function(t,r){return e.render(t,r)},{when:function(t,...r){return e.when(t,...r),le(e)},else:function(...t){return e.else(...t),le(e)}})}function de(e,...t){return le(new ce(e,...t))}function pe(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=oe(t.condition,e=>{i("Error evaluating conditional condition",e)}),o=e.nodeType===Node.ELEMENT_NODE;if(r&&!o){const r=function(e){try{return e.isSvg?H(e.tagName,e.modifiers):q(e.tagName,e.modifiers)}catch(t){if(i(`Error applying modifiers in conditional element "${e.tagName}"`,t),e.isSvg){const t=f("http://www.w3.org/2000/svg",e.tagName);if(!t)throw Error("Failed to create SVG element: "+e.tagName);return t}const r=m(e.tagName);if(!r)throw Error("Failed to create element: "+e.tagName);return r}}(t);p(r,t),C(e,r)}else if(!r&&o){const r=S(t.tagName);r&&(p(r,t),C(e,r))}}const ue=new Map;function me(e){const t=[],r=new Set;for(const o of e){if("string"!=typeof o)continue;const e=o.trim();e&&(r.has(e)||(r.add(e),t.push(e)))}return t}function fe(e,t){let r=ue.get(e);r||(r=new Set,ue.set(e,r)),r.add(new WeakRef(t))}function ye(...e){const t=me(e);return function(e){if(e instanceof Element)for(const r of t)fe(r,e)}}const ge=[function(e){const t=[];for(const[r,o]of K){const n=r.deref();void 0!==n&&v(n)&&v(o.runtime.endMarker)?e&&!e.contains(n)||te(o.runtime):(o.runtime.records&&(o.runtime.records.forEach(e=>{e.element=null,e.item=null}),o.runtime.records=[]),t.push(r))}for(const e of t)K.delete(e)},function(e){const t=[];for(const[r,o]of ie){const n=r.deref();if(void 0!==n)if(v(n)&&v(o.runtime.endMarker)){if(!e||e.contains(n))try{o.runtime.update()}catch{t.push(r)}}else t.push(r);else t.push(r)}for(const e of t)ie.delete(e)},function(e){if(a)try{const t=function(){const e=[],t=[];for(const r of d){const o=r.deref();void 0===o?t.push(r):e.push(o)}for(const e of t)d.delete(e);return e}();for(const r of t)r.isConnected?e&&!e.contains(r)||pe(r):u(r)}catch(e){i("Error during conditional elements update",e)}},function(e){const t=[];for(const[r,o]of T){const n=r.deref();void 0!==n&&v(n)?e&&!e.contains(n)||W(o):t.push(r)}for(const e of t)T.delete(e);t.length>0&&function(){const e=[];for(const[t]of T)void 0===t.deref()&&e.push(t);for(const t of e)T.delete(t)}()},function(e){const t=[];for(const[r,o]of R){const n=r.deref();if(void 0===n){t.push(r);continue}if(!v(n)){t.push(r);continue}if(e&&!e.contains(n))continue;let s;try{s=o.resolver()}catch(e){i("Failed to update reactive text node",e),s=void 0}const a=void 0===s?"":s+"";a!==o.lastValue&&(n.textContent=a,o.lastValue=a)}for(const e of t)R.delete(e);t.length>0&&function(){const e=[];for(const[t]of R)void 0===t.deref()&&e.push(t);for(const t of e)R.delete(t)}()},function(){if("undefined"==typeof document)return;const e=document.body?[document.body,document]:[document];for(const t of e)try{t.dispatchEvent(new Event("update",{bubbles:!0}))}catch(e){i("Error dispatching global update event",e)}}];function he(...e){let t;if(e.length>0){const r=function(e){const t=me(e);if(0===t.length)return[];const r=new Set;for(const e of t){const t=ue.get(e);if(!t)continue;const o=[];for(const e of t){const t=e.deref();void 0!==t&&v(t)?r.add(t):o.push(e)}for(const e of o)t.delete(e);0===t.size&&ue.delete(e)}return Array.from(r)}(e);if(1===r.length){const e=r[0];t={roots:r,contains:function(t){return e.contains(t)}}}else t={roots:r,contains:function(e){for(const t of r)if(t.contains(e))return!0;return!1}}}for(const e of ge)e(t)}function be(e,t,r=0){const o=e(t||document.body,r);return(t||document.body).appendChild(o),o}const xe=[{name:"display",cssProperty:"display"},{name:"grid",cssProperty:"display",defaultValue:"grid",isShorthand:!0},{name:"bg",cssProperty:"background-color"},{name:"color",cssProperty:"color"},{name:"accentColor",cssProperty:"accent-color"},{name:"fontSize",cssProperty:"font-size"},{name:"fontWeight",cssProperty:"font-weight"},{name:"fontFamily",cssProperty:"font-family"},{name:"lineHeight",cssProperty:"line-height"},{name:"letterSpacing",cssProperty:"letter-spacing"},{name:"textAlign",cssProperty:"text-align"},{name:"textDecoration",cssProperty:"text-decoration"},{name:"fontStyle",cssProperty:"font-style"},{name:"fontVariant",cssProperty:"font-variant"},{name:"fontStretch",cssProperty:"font-stretch"},{name:"textTransform",cssProperty:"text-transform"},{name:"textIndent",cssProperty:"text-indent"},{name:"textOverflow",cssProperty:"text-overflow"},{name:"textShadow",cssProperty:"text-shadow"},{name:"whiteSpace",cssProperty:"white-space"},{name:"wordSpacing",cssProperty:"word-spacing"},{name:"wordWrap",cssProperty:"word-wrap"},{name:"overflowWrap",cssProperty:"overflow-wrap"},{name:"textAlignLast",cssProperty:"text-align-last"},{name:"textJustify",cssProperty:"text-justify"},{name:"textDecorationLine",cssProperty:"text-decoration-line"},{name:"textDecorationColor",cssProperty:"text-decoration-color"},{name:"textDecorationStyle",cssProperty:"text-decoration-style"},{name:"textDecorationThickness",cssProperty:"text-decoration-thickness"},{name:"textUnderlineOffset",cssProperty:"text-underline-offset"},{name:"verticalAlign",cssProperty:"vertical-align"},{name:"position",cssProperty:"position"},{name:"padding",cssProperty:"padding"},{name:"paddingTop",cssProperty:"padding-top"},{name:"paddingRight",cssProperty:"padding-right"},{name:"paddingBottom",cssProperty:"padding-bottom"},{name:"paddingLeft",cssProperty:"padding-left"},{name:"margin",cssProperty:"margin"},{name:"marginTop",cssProperty:"margin-top"},{name:"marginRight",cssProperty:"margin-right"},{name:"marginBottom",cssProperty:"margin-bottom"},{name:"marginLeft",cssProperty:"margin-left"},{name:"width",cssProperty:"width"},{name:"height",cssProperty:"height"},{name:"minWidth",cssProperty:"min-width"},{name:"maxWidth",cssProperty:"max-width"},{name:"minHeight",cssProperty:"min-height"},{name:"maxHeight",cssProperty:"max-height"},{name:"boxSizing",cssProperty:"box-sizing"},{name:"top",cssProperty:"top"},{name:"right",cssProperty:"right"},{name:"bottom",cssProperty:"bottom"},{name:"left",cssProperty:"left"},{name:"zIndex",cssProperty:"z-index"},{name:"flexDirection",cssProperty:"flex-direction"},{name:"alignItems",cssProperty:"align-items"},{name:"justifyContent",cssProperty:"justify-content"},{name:"gap",cssProperty:"gap"},{name:"flexWrap",cssProperty:"flex-wrap"},{name:"flexGrow",cssProperty:"flex-grow"},{name:"flexShrink",cssProperty:"flex-shrink"},{name:"flexBasis",cssProperty:"flex-basis"},{name:"alignSelf",cssProperty:"align-self"},{name:"alignContent",cssProperty:"align-content"},{name:"justifySelf",cssProperty:"justify-self"},{name:"justifyItems",cssProperty:"justify-items"},{name:"gridTemplateColumns",cssProperty:"grid-template-columns"},{name:"gridTemplateRows",cssProperty:"grid-template-rows"},{name:"gridTemplateAreas",cssProperty:"grid-template-areas"},{name:"gridColumn",cssProperty:"grid-column"},{name:"gridRow",cssProperty:"grid-row"},{name:"gridColumnStart",cssProperty:"grid-column-start"},{name:"gridColumnEnd",cssProperty:"grid-column-end"},{name:"gridRowStart",cssProperty:"grid-row-start"},{name:"gridRowEnd",cssProperty:"grid-row-end"},{name:"gridArea",cssProperty:"grid-area"},{name:"gridAutoColumns",cssProperty:"grid-auto-columns"},{name:"gridAutoRows",cssProperty:"grid-auto-rows"},{name:"gridAutoFlow",cssProperty:"grid-auto-flow"},{name:"border",cssProperty:"border"},{name:"borderTop",cssProperty:"border-top"},{name:"borderRight",cssProperty:"border-right"},{name:"borderBottom",cssProperty:"border-bottom"},{name:"borderLeft",cssProperty:"border-left"},{name:"borderWidth",cssProperty:"border-width"},{name:"borderStyle",cssProperty:"border-style"},{name:"borderColor",cssProperty:"border-color"},{name:"borderTopWidth",cssProperty:"border-top-width"},{name:"borderRightWidth",cssProperty:"border-right-width"},{name:"borderBottomWidth",cssProperty:"border-bottom-width"},{name:"borderLeftWidth",cssProperty:"border-left-width"},{name:"borderTopStyle",cssProperty:"border-top-style"},{name:"borderRightStyle",cssProperty:"border-right-style"},{name:"borderBottomStyle",cssProperty:"border-bottom-style"},{name:"borderLeftStyle",cssProperty:"border-left-style"},{name:"borderTopColor",cssProperty:"border-top-color"},{name:"borderRightColor",cssProperty:"border-right-color"},{name:"borderBottomColor",cssProperty:"border-bottom-color"},{name:"borderLeftColor",cssProperty:"border-left-color"},{name:"borderRadius",cssProperty:"border-radius"},{name:"borderTopLeftRadius",cssProperty:"border-top-left-radius"},{name:"borderTopRightRadius",cssProperty:"border-top-right-radius"},{name:"borderBottomLeftRadius",cssProperty:"border-bottom-left-radius"},{name:"borderBottomRightRadius",cssProperty:"border-bottom-right-radius"},{name:"outline",cssProperty:"outline"},{name:"outlineWidth",cssProperty:"outline-width"},{name:"outlineStyle",cssProperty:"outline-style"},{name:"outlineColor",cssProperty:"outline-color"},{name:"outlineOffset",cssProperty:"outline-offset"},{name:"backgroundColor",cssProperty:"background-color"},{name:"backgroundImage",cssProperty:"background-image"},{name:"backgroundRepeat",cssProperty:"background-repeat"},{name:"backgroundPosition",cssProperty:"background-position"},{name:"backgroundSize",cssProperty:"background-size"},{name:"backgroundAttachment",cssProperty:"background-attachment"},{name:"backgroundClip",cssProperty:"background-clip"},{name:"backgroundOrigin",cssProperty:"background-origin"},{name:"boxShadow",cssProperty:"box-shadow"},{name:"opacity",cssProperty:"opacity"},{name:"transition",cssProperty:"transition"},{name:"transitionProperty",cssProperty:"transition-property"},{name:"transitionDuration",cssProperty:"transition-duration"},{name:"transitionTimingFunction",cssProperty:"transition-timing-function"},{name:"transitionDelay",cssProperty:"transition-delay"},{name:"transform",cssProperty:"transform"},{name:"transformOrigin",cssProperty:"transform-origin"},{name:"transformStyle",cssProperty:"transform-style"},{name:"perspective",cssProperty:"perspective"},{name:"perspectiveOrigin",cssProperty:"perspective-origin"},{name:"backfaceVisibility",cssProperty:"backface-visibility"},{name:"animation",cssProperty:"animation"},{name:"animationName",cssProperty:"animation-name"},{name:"animationDuration",cssProperty:"animation-duration"},{name:"animationTimingFunction",cssProperty:"animation-timing-function"},{name:"animationDelay",cssProperty:"animation-delay"},{name:"animationIterationCount",cssProperty:"animation-iteration-count"},{name:"animationDirection",cssProperty:"animation-direction"},{name:"animationFillMode",cssProperty:"animation-fill-mode"},{name:"animationPlayState",cssProperty:"animation-play-state"},{name:"filter",cssProperty:"filter"},{name:"backdropFilter",cssProperty:"backdrop-filter"},{name:"overflow",cssProperty:"overflow"},{name:"overflowX",cssProperty:"overflow-x"},{name:"overflowY",cssProperty:"overflow-y"},{name:"visibility",cssProperty:"visibility"},{name:"objectFit",cssProperty:"object-fit"},{name:"objectPosition",cssProperty:"object-position"},{name:"listStyle",cssProperty:"list-style"},{name:"listStyleType",cssProperty:"list-style-type"},{name:"listStylePosition",cssProperty:"list-style-position"},{name:"listStyleImage",cssProperty:"list-style-image"},{name:"borderCollapse",cssProperty:"border-collapse"},{name:"borderSpacing",cssProperty:"border-spacing"},{name:"captionSide",cssProperty:"caption-side"},{name:"emptyCells",cssProperty:"empty-cells"},{name:"tableLayout",cssProperty:"table-layout"},{name:"content",cssProperty:"content"},{name:"quotes",cssProperty:"quotes"},{name:"counterReset",cssProperty:"counter-reset"},{name:"counterIncrement",cssProperty:"counter-increment"},{name:"appearance",cssProperty:"appearance"},{name:"userSelect",cssProperty:"user-select"},{name:"pointerEvents",cssProperty:"pointer-events"},{name:"resize",cssProperty:"resize"},{name:"scrollBehavior",cssProperty:"scroll-behavior"},{name:"clip",cssProperty:"clip"},{name:"clipPath",cssProperty:"clip-path"},{name:"isolation",cssProperty:"isolation"},{name:"mixBlendMode",cssProperty:"mix-blend-mode"},{name:"willChange",cssProperty:"will-change"},{name:"contain",cssProperty:"contain"},{name:"pageBreakBefore",cssProperty:"page-break-before"},{name:"pageBreakAfter",cssProperty:"page-break-after"},{name:"pageBreakInside",cssProperty:"page-break-inside"},{name:"breakBefore",cssProperty:"break-before"},{name:"breakAfter",cssProperty:"break-after"},{name:"breakInside",cssProperty:"break-inside"},{name:"orphans",cssProperty:"orphans"},{name:"widows",cssProperty:"widows"},{name:"columnCount",cssProperty:"column-count"},{name:"columnFill",cssProperty:"column-fill"},{name:"columnGap",cssProperty:"column-gap"},{name:"columnRule",cssProperty:"column-rule"},{name:"columnRuleColor",cssProperty:"column-rule-color"},{name:"columnRuleStyle",cssProperty:"column-rule-style"},{name:"columnRuleWidth",cssProperty:"column-rule-width"},{name:"columnSpan",cssProperty:"column-span"},{name:"columnWidth",cssProperty:"column-width"},{name:"columns",cssProperty:"columns"},{name:"cursor",cssProperty:"cursor"},{name:"aspectRatio",cssProperty:"aspect-ratio"},{name:"clear",cssProperty:"clear"},{name:"float",cssProperty:"float"},{name:"order",cssProperty:"order"},{name:"placeContent",cssProperty:"place-content"},{name:"placeItems",cssProperty:"place-items"},{name:"placeSelf",cssProperty:"place-self"},{name:"hyphens",cssProperty:"hyphens"},{name:"lineBreak",cssProperty:"line-break"},{name:"wordBreak",cssProperty:"word-break"},{name:"textOrientation",cssProperty:"text-orientation"},{name:"writingMode",cssProperty:"writing-mode"},{name:"direction",cssProperty:"direction"},{name:"unicodeBidi",cssProperty:"unicode-bidi"},{name:"backgroundBlendMode",cssProperty:"background-blend-mode"},{name:"backgroundPositionX",cssProperty:"background-position-x"},{name:"backgroundPositionY",cssProperty:"background-position-y"},{name:"borderImage",cssProperty:"border-image"},{name:"borderImageSource",cssProperty:"border-image-source"},{name:"borderImageSlice",cssProperty:"border-image-slice"},{name:"borderImageWidth",cssProperty:"border-image-width"},{name:"borderImageOutset",cssProperty:"border-image-outset"},{name:"borderImageRepeat",cssProperty:"border-image-repeat"},{name:"inset",cssProperty:"inset"},{name:"insetBlock",cssProperty:"inset-block"},{name:"insetBlockStart",cssProperty:"inset-block-start"},{name:"insetBlockEnd",cssProperty:"inset-block-end"},{name:"insetInline",cssProperty:"inset-inline"},{name:"insetInlineStart",cssProperty:"inset-inline-start"},{name:"insetInlineEnd",cssProperty:"inset-inline-end"},{name:"marginBlock",cssProperty:"margin-block"},{name:"marginBlockStart",cssProperty:"margin-block-start"},{name:"marginBlockEnd",cssProperty:"margin-block-end"},{name:"marginInline",cssProperty:"margin-inline"},{name:"marginInlineStart",cssProperty:"margin-inline-start"},{name:"marginInlineEnd",cssProperty:"margin-inline-end"},{name:"paddingBlock",cssProperty:"padding-block"},{name:"paddingBlockStart",cssProperty:"padding-block-start"},{name:"paddingBlockEnd",cssProperty:"padding-block-end"},{name:"paddingInline",cssProperty:"padding-inline"},{name:"paddingInlineStart",cssProperty:"padding-inline-start"},{name:"paddingInlineEnd",cssProperty:"padding-inline-end"},{name:"inlineSize",cssProperty:"inline-size"},{name:"blockSize",cssProperty:"block-size"},{name:"minInlineSize",cssProperty:"min-inline-size"},{name:"minBlockSize",cssProperty:"min-block-size"},{name:"maxInlineSize",cssProperty:"max-inline-size"},{name:"maxBlockSize",cssProperty:"max-block-size"},{name:"borderBlock",cssProperty:"border-block"},{name:"borderBlockStart",cssProperty:"border-block-start"},{name:"borderBlockEnd",cssProperty:"border-block-end"},{name:"borderInline",cssProperty:"border-inline"},{name:"borderInlineStart",cssProperty:"border-inline-start"},{name:"borderInlineEnd",cssProperty:"border-inline-end"},{name:"borderBlockWidth",cssProperty:"border-block-width"},{name:"borderBlockStartWidth",cssProperty:"border-block-start-width"},{name:"borderBlockEndWidth",cssProperty:"border-block-end-width"},{name:"borderInlineWidth",cssProperty:"border-inline-width"},{name:"borderInlineStartWidth",cssProperty:"border-inline-start-width"},{name:"borderInlineEndWidth",cssProperty:"border-inline-end-width"},{name:"borderBlockStyle",cssProperty:"border-block-style"},{name:"borderBlockStartStyle",cssProperty:"border-block-start-style"},{name:"borderBlockEndStyle",cssProperty:"border-block-end-style"},{name:"borderInlineStyle",cssProperty:"border-inline-style"},{name:"borderInlineStartStyle",cssProperty:"border-inline-start-style"},{name:"borderInlineEndStyle",cssProperty:"border-inline-end-style"},{name:"borderBlockColor",cssProperty:"border-block-color"},{name:"borderBlockStartColor",cssProperty:"border-block-start-color"},{name:"borderBlockEndColor",cssProperty:"border-block-end-color"},{name:"borderInlineColor",cssProperty:"border-inline-color"},{name:"borderInlineStartColor",cssProperty:"border-inline-start-color"},{name:"borderInlineEndColor",cssProperty:"border-inline-end-color"},{name:"borderStartStartRadius",cssProperty:"border-start-start-radius"},{name:"borderStartEndRadius",cssProperty:"border-start-end-radius"},{name:"borderEndStartRadius",cssProperty:"border-end-start-radius"},{name:"borderEndEndRadius",cssProperty:"border-end-end-radius"},{name:"scrollMargin",cssProperty:"scroll-margin"},{name:"scrollMarginTop",cssProperty:"scroll-margin-top"},{name:"scrollMarginRight",cssProperty:"scroll-margin-right"},{name:"scrollMarginBottom",cssProperty:"scroll-margin-bottom"},{name:"scrollMarginLeft",cssProperty:"scroll-margin-left"},{name:"scrollPadding",cssProperty:"scroll-padding"},{name:"scrollPaddingTop",cssProperty:"scroll-padding-top"},{name:"scrollPaddingRight",cssProperty:"scroll-padding-right"},{name:"scrollPaddingBottom",cssProperty:"scroll-padding-bottom"},{name:"scrollPaddingLeft",cssProperty:"scroll-padding-left"},{name:"overscrollBehavior",cssProperty:"overscroll-behavior"},{name:"overscrollBehaviorX",cssProperty:"overscroll-behavior-x"},{name:"overscrollBehaviorY",cssProperty:"overscroll-behavior-y"},{name:"caretColor",cssProperty:"caret-color"},{name:"caretShape",cssProperty:"caret-shape"},{name:"caretAnimation",cssProperty:"caret-animation"},{name:"imageRendering",cssProperty:"image-rendering"},{name:"colorScheme",cssProperty:"color-scheme"},{name:"contentVisibility",cssProperty:"content-visibility"},{name:"touchAction",cssProperty:"touch-action"},{name:"containerType",cssProperty:"container-type"},{name:"containerName",cssProperty:"container-name"},{name:"container",cssProperty:"container"},{name:"fontFeatureSettings",cssProperty:"font-feature-settings"},{name:"fontKerning",cssProperty:"font-kerning"},{name:"fontSynthesis",cssProperty:"font-synthesis"},{name:"fontOpticalSizing",cssProperty:"font-optical-sizing"},{name:"fontDisplay",cssProperty:"font-display"},{name:"fontVariantCaps",cssProperty:"font-variant-caps"},{name:"fontVariantNumeric",cssProperty:"font-variant-numeric"},{name:"fontVariantLigatures",cssProperty:"font-variant-ligatures"},{name:"fontVariantEastAsian",cssProperty:"font-variant-east-asian"},{name:"fontVariantAlternates",cssProperty:"font-variant-alternates"},{name:"fontVariantPosition",cssProperty:"font-variant-position"},{name:"textRendering",cssProperty:"text-rendering"},{name:"textCombineUpright",cssProperty:"text-combine-upright"},{name:"textSizeAdjust",cssProperty:"text-size-adjust"},{name:"mask",cssProperty:"mask"},{name:"maskImage",cssProperty:"mask-image"},{name:"maskMode",cssProperty:"mask-mode"},{name:"maskRepeat",cssProperty:"mask-repeat"},{name:"maskPosition",cssProperty:"mask-position"},{name:"maskSize",cssProperty:"mask-size"},{name:"maskOrigin",cssProperty:"mask-origin"},{name:"maskClip",cssProperty:"mask-clip"},{name:"maskComposite",cssProperty:"mask-composite"},{name:"clipRule",cssProperty:"clip-rule"},{name:"gridColumnGap",cssProperty:"grid-column-gap"},{name:"gridRowGap",cssProperty:"grid-row-gap"},{name:"gridGap",cssProperty:"grid-gap"}],Pe=["bold","center","flex"],Se=new Map;function ke(e){let t=0;for(let r=0;e.length>r;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return Math.abs(t).toString(16).padStart(8,"0").substring(0,8)}function we(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function ve(e,t,r,o="media",n){let s=document.querySelector("#nuclo-styles");s||(s=m("style"),s.id="nuclo-styles",document.head.appendChild(s));const i=Object.entries(t).map(function([e,t]){return`${e}: ${t}`}).join("; ");if(n){const r=`.${e}${n}`,o=s.sheet;if(!o)return;const a=o.cssRules,c=a.length;let l=null,d=c;for(let e=0;c>e;e++){const t=a[e];if(t instanceof CSSStyleRule){if(t.selectorText===r){l=t,d=e;break}t.selectorText.includes(":")||(d=e+1)}}if(l){const e=l.style;e.cssText="";for(const[r,o]of Object.entries(t))e.setProperty(r,o)}else o.insertRule(`${r} { ${i} }`,d);return}if(r){const n=s.sheet;if(!n)return;const a=n.cssRules,c=a.length;let l=null;const d=e=>"media"===o&&e instanceof CSSMediaRule?e.media.mediaText===r:("container"===o&&e instanceof CSSContainerRule||"supports"===o&&e instanceof CSSSupportsRule)&&e.conditionText===r,p=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule;for(let e=0;c>e;e++){const t=a[e];if(d(t)){l=t;break}}if(!l){let e=c;for(let t=c-1;t>=0;t--){const r=a[t];if(p(r)){e=t+1;break}if(r instanceof CSSStyleRule){e=t+1;break}}n.insertRule(`${"media"===o?"@media":"container"===o?"@container":"supports"===o?"@supports":"@media"} ${r} {}`,e),l=n.cssRules[e]}let u=null;for(const t of Array.from(l.cssRules))if(t instanceof CSSStyleRule&&t.selectorText==="."+e){u=t;break}if(u){const e=u.style;e.cssText="";for(const[r,o]of Object.entries(t))e.setProperty(r,o)}else l.insertRule(`.${e} { ${i} }`,l.cssRules.length)}else{const r=s.sheet;if(!r)return;let o=null,n=0;const a=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule,c=r.cssRules,l=c.length;for(let t=0;l>t;t++){const r=c[t];if(r instanceof CSSStyleRule&&r.selectorText==="."+e){o=r,n=t;break}a(r)||(n=t+1)}if(o){const e=o.style;e.cssText="";for(const[r,o]of Object.entries(t))e.setProperty(r,o)}else r.insertRule(`.${e} { ${i} }`,n)}}function Ce(e,t){ve(e,t)}class Re{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return function(e,t="",r){const o=we(e),n=t?`${t}:${o}`:o,s=function(e){return Se.get(e)}(n);if(s){const t=s;return function(e,t,r="media"){const o=document.querySelector("#nuclo-styles");if(!o||!o.sheet)return!1;if(t){const n=Array.from(o.sheet.cssRules||[]).find(function(e){return"media"===r&&e instanceof CSSMediaRule?e.media.mediaText===t:("container"===r&&e instanceof CSSContainerRule||"supports"===r&&e instanceof CSSSupportsRule)&&e.conditionText===t});return!!n&&Array.from(n.cssRules).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}return Array.from(o.sheet.cssRules||[]).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}(t,r)||ve(t,e,r),t}const i=ke(o),a=t?`n${t}-${i}`:"n"+i;return function(e,t){Se.set(e,t)}(n,a),ve(a,e,r),a}(this.styles,e,t)}getClassNames(){return[this.getClassName()]}getClassDefinitions(){return Object.entries(this.styles).map(([e,t])=>({className:this.getClassName(),property:e,value:t}))}toString(){return this.getClassName()}add(e,t){return this.styles[e]=t,this}bold(){return this.styles["font-weight"]="bold",this}center(){return this.styles["justify-content"]="center",this.styles["align-items"]="center",this}flex(e){return void 0!==e?this.styles.flex=e:this.styles.display="flex",this}}function Te(e){return e.isShorthand?()=>(new Re).add(e.cssProperty,e.defaultValue||""):t=>(new Re).add(e.cssProperty,t||"")}!function(){const e=Re.prototype;for(const t of xe)t.name in e||(e[t.name]=t.isShorthand?function(){return this.add(t.cssProperty,t.defaultValue||""),this}:function(e){return this.add(t.cssProperty,e),this})}();const Be={};for(const e of xe)Be[e.name]=Te(e);for(const e of Pe)"bold"===e||"center"===e?Be[e]=()=>(new Re)[e]():"flex"===e&&(Be[e]=e=>(new Re).flex(e));const{display:Ee,flex:Ie,grid:Ne,bg:We,color:Ae,accentColor:Me,fontSize:Le,fontWeight:Fe,fontFamily:je,lineHeight:De,letterSpacing:Oe,textAlign:ze,textDecoration:Ve,bold:_e,fontStyle:$e,fontVariant:Ge,fontStretch:qe,textTransform:He,textIndent:Xe,textOverflow:Ue,textShadow:Ye,whiteSpace:Je,wordSpacing:Qe,wordWrap:Ke,overflowWrap:Ze,textAlignLast:et,textJustify:tt,textDecorationLine:rt,textDecorationColor:ot,textDecorationStyle:nt,textDecorationThickness:st,textUnderlineOffset:it,verticalAlign:at,position:ct,padding:lt,paddingTop:dt,paddingRight:pt,paddingBottom:ut,paddingLeft:mt,margin:ft,marginTop:yt,marginRight:gt,marginBottom:ht,marginLeft:bt,width:xt,height:Pt,minWidth:St,maxWidth:kt,minHeight:wt,maxHeight:vt,boxSizing:Ct,top:Rt,right:Tt,bottom:Bt,left:Et,zIndex:It,flexDirection:Nt,alignItems:Wt,justifyContent:At,center:Mt,gap:Lt,flexWrap:Ft,flexGrow:jt,flexShrink:Dt,flexBasis:Ot,alignSelf:zt,alignContent:Vt,justifySelf:_t,justifyItems:$t,gridTemplateColumns:Gt,gridTemplateRows:qt,gridTemplateAreas:Ht,gridColumn:Xt,gridRow:Ut,gridColumnStart:Yt,gridColumnEnd:Jt,gridRowStart:Qt,gridRowEnd:Kt,gridArea:Zt,gridAutoColumns:er,gridAutoRows:tr,gridAutoFlow:rr,border:or,borderTop:nr,borderRight:sr,borderBottom:ir,borderLeft:ar,borderWidth:cr,borderStyle:lr,borderColor:dr,borderTopWidth:pr,borderRightWidth:ur,borderBottomWidth:mr,borderLeftWidth:fr,borderTopStyle:yr,borderRightStyle:gr,borderBottomStyle:hr,borderLeftStyle:br,borderTopColor:xr,borderRightColor:Pr,borderBottomColor:Sr,borderLeftColor:kr,borderRadius:wr,borderTopLeftRadius:vr,borderTopRightRadius:Cr,borderBottomLeftRadius:Rr,borderBottomRightRadius:Tr,outline:Br,outlineWidth:Er,outlineStyle:Ir,outlineColor:Nr,outlineOffset:Wr,backgroundColor:Ar,backgroundImage:Mr,backgroundRepeat:Lr,backgroundPosition:Fr,backgroundSize:jr,backgroundAttachment:Dr,backgroundClip:Or,backgroundOrigin:zr,boxShadow:Vr,opacity:_r,transition:$r,transitionProperty:Gr,transitionDuration:qr,transitionTimingFunction:Hr,transitionDelay:Xr,transform:Ur,transformOrigin:Yr,transformStyle:Jr,perspective:Qr,perspectiveOrigin:Kr,backfaceVisibility:Zr,animation:eo,animationName:to,animationDuration:ro,animationTimingFunction:oo,animationDelay:no,animationIterationCount:so,animationDirection:io,animationFillMode:ao,animationPlayState:co,filter:lo,backdropFilter:po,overflow:uo,overflowX:mo,overflowY:fo,visibility:yo,objectFit:go,objectPosition:ho,listStyle:bo,listStyleType:xo,listStylePosition:Po,listStyleImage:So,borderCollapse:ko,borderSpacing:wo,captionSide:vo,emptyCells:Co,tableLayout:Ro,content:To,quotes:Bo,counterReset:Eo,counterIncrement:Io,appearance:No,userSelect:Wo,pointerEvents:Ao,resize:Mo,scrollBehavior:Lo,clip:Fo,clipPath:jo,isolation:Do,mixBlendMode:Oo,willChange:zo,contain:Vo,pageBreakBefore:_o,pageBreakAfter:$o,pageBreakInside:Go,breakBefore:qo,breakAfter:Ho,breakInside:Xo,orphans:Uo,widows:Yo,columnCount:Jo,columnFill:Qo,columnGap:Ko,columnRule:Zo,columnRuleColor:en,columnRuleStyle:tn,columnRuleWidth:rn,columnSpan:on,columnWidth:nn,columns:sn,cursor:an}=Be,cn={hover:":hover",active:":active",focus:":focus","focus-visible":":focus-visible","focus-within":":focus-within",visited:":visited",link:":link",target:":target",root:":root",empty:":empty",enabled:":enabled",disabled:":disabled",checked:":checked",indeterminate:":indeterminate",default:":default",required:":required",optional:":optional",valid:":valid",invalid:":invalid","in-range":":in-range","out-of-range":":out-of-range","placeholder-shown":":placeholder-shown",autofill:":autofill","read-only":":read-only","read-write":":read-write","first-child":":first-child","last-child":":last-child","only-child":":only-child","first-of-type":":first-of-type","last-of-type":":last-of-type","only-of-type":":only-of-type","nth-child":":nth-child","nth-last-child":":nth-last-child","nth-of-type":":nth-of-type","nth-last-of-type":":nth-last-of-type",lang:":lang",dir:":dir",not:":not",is:":is",where:":where",has:":has","any-link":":any-link","local-link":":local-link",scope:":scope",current:":current",past:":past",future:":future",playing:":playing",paused:":paused",seeking:":seeking",muted:":muted","volume-locked":":volume-locked",buffering:":buffering",stalled:":stalled","picture-in-picture":":picture-in-picture",fullscreen:":fullscreen",modal:":modal","popover-open":":popover-open","user-invalid":":user-invalid","user-valid":":user-valid"};function ln(e){const t=e.trim();return t.startsWith("&:")||t.startsWith(":")?{type:"pseudo",pseudoClass:(t.startsWith("&:")?t.slice(1):t).trim()}:t.startsWith("@media ")?{type:"media",condition:t.slice(7).trim()}:t.startsWith("@container ")?{type:"container",condition:t.slice(11).trim()}:t.startsWith("@supports ")?{type:"supports",condition:t.slice(10).trim()}:t.startsWith("@style ")?{type:"style",condition:t.slice(7).trim()}:{type:"media",condition:t}}function dn(e){return e in cn}function pn(e){return cn[e]}const un=new Map;function mn(e){const t=Array.isArray(e)?e:Object.entries(e),r=new Map;for(const[e,o]of t){let t=un.get(o);t||(t=ln(o),un.set(o,t)),r.set(e,t)}return function(e,o){let n,s;void 0!==o?(n=e,s=o):e instanceof Re?(n=e,s=void 0):(n=void 0,s=e);const i=null!=s&&Object.keys(s).length>0;if(!n&&!i)return{className:""};if(i){const e=[],o=new Set;for(const[n]of t){const t=s?.[n];t&&(o.add(n),e.push({queryName:n,query:r.get(n),styles:t.getStyles()}))}for(const[t,r]of Object.entries(s??{}))!o.has(t)&&dn(t)&&r instanceof Re&&e.push({queryName:t,query:{type:"pseudo",pseudoClass:pn(t)},styles:r.getStyles()});if(0===e.length&&!n)return{className:""};const i=[];i.length=e.length+(n?1:0);let a=0;if(n){const e=n.getStyles();i[a++]="default:"+we(e)}for(const{queryName:t,styles:r}of e){const e=we(r);i[a++]=`${t}:${e}`}const c="n"+ke(i.sort().join("||"));let l={};n&&(l={...n.getStyles()},ve(c,l));const d=[],p=[];for(const t of e)"pseudo"===t.query.type?p.push(t):d.push(t);for(const{query:e,styles:t}of d)l={...l,...t},ve(c,l,e.condition,e.type);for(const{query:e,styles:t}of p)ve(c,t,void 0,"pseudo",e.pseudoClass);return{className:c}}return{className:n.getClassName()}}}const fn=mn;var yn=Object.freeze({__proto__:null,StyleBuilder:Re,accentColor:Me,alignContent:Vt,alignItems:Wt,alignSelf:zt,animation:eo,animationDelay:no,animationDirection:io,animationDuration:ro,animationFillMode:ao,animationIterationCount:so,animationName:to,animationPlayState:co,animationTimingFunction:oo,appearance:No,backdropFilter:po,backfaceVisibility:Zr,backgroundAttachment:Dr,backgroundClip:Or,backgroundColor:Ar,backgroundImage:Mr,backgroundOrigin:zr,backgroundPosition:Fr,backgroundRepeat:Lr,backgroundSize:jr,bg:We,bold:_e,border:or,borderBottom:ir,borderBottomColor:Sr,borderBottomLeftRadius:Rr,borderBottomRightRadius:Tr,borderBottomStyle:hr,borderBottomWidth:mr,borderCollapse:ko,borderColor:dr,borderLeft:ar,borderLeftColor:kr,borderLeftStyle:br,borderLeftWidth:fr,borderRadius:wr,borderRight:sr,borderRightColor:Pr,borderRightStyle:gr,borderRightWidth:ur,borderSpacing:wo,borderStyle:lr,borderTop:nr,borderTopColor:xr,borderTopLeftRadius:vr,borderTopRightRadius:Cr,borderTopStyle:yr,borderTopWidth:pr,borderWidth:cr,bottom:Bt,boxShadow:Vr,boxSizing:Ct,breakAfter:Ho,breakBefore:qo,breakInside:Xo,captionSide:vo,center:Mt,clip:Fo,clipPath:jo,color:Ae,columnCount:Jo,columnFill:Qo,columnGap:Ko,columnRule:Zo,columnRuleColor:en,columnRuleStyle:tn,columnRuleWidth:rn,columnSpan:on,columnWidth:nn,columns:sn,contain:Vo,content:To,counterIncrement:Io,counterReset:Eo,createBreakpoints:fn,createCSSClass:Ce,createStyleQueries:mn,cursor:an,display:Ee,emptyCells:Co,filter:lo,flex:Ie,flexBasis:Ot,flexDirection:Nt,flexGrow:jt,flexShrink:Dt,flexWrap:Ft,fontFamily:je,fontSize:Le,fontStretch:qe,fontStyle:$e,fontVariant:Ge,fontWeight:Fe,gap:Lt,grid:Ne,gridArea:Zt,gridAutoColumns:er,gridAutoFlow:rr,gridAutoRows:tr,gridColumn:Xt,gridColumnEnd:Jt,gridColumnStart:Yt,gridRow:Ut,gridRowEnd:Kt,gridRowStart:Qt,gridTemplateAreas:Ht,gridTemplateColumns:Gt,gridTemplateRows:qt,height:Pt,isolation:Do,justifyContent:At,justifyItems:$t,justifySelf:_t,left:Et,letterSpacing:Oe,lineHeight:De,listStyle:bo,listStyleImage:So,listStylePosition:Po,listStyleType:xo,margin:ft,marginBottom:ht,marginLeft:bt,marginRight:gt,marginTop:yt,maxHeight:vt,maxWidth:kt,minHeight:wt,minWidth:St,mixBlendMode:Oo,objectFit:go,objectPosition:ho,opacity:_r,orphans:Uo,outline:Br,outlineColor:Nr,outlineOffset:Wr,outlineStyle:Ir,outlineWidth:Er,overflow:uo,overflowWrap:Ze,overflowX:mo,overflowY:fo,padding:lt,paddingBottom:ut,paddingLeft:mt,paddingRight:pt,paddingTop:dt,pageBreakAfter:$o,pageBreakBefore:_o,pageBreakInside:Go,perspective:Qr,perspectiveOrigin:Kr,pointerEvents:Ao,position:ct,quotes:Bo,resize:Mo,right:Tt,scrollBehavior:Lo,tableLayout:Ro,textAlign:ze,textAlignLast:et,textDecoration:Ve,textDecorationColor:ot,textDecorationLine:rt,textDecorationStyle:nt,textDecorationThickness:st,textIndent:Xe,textJustify:tt,textOverflow:Ue,textShadow:Ye,textTransform:He,textUnderlineOffset:it,top:Rt,transform:Ur,transformOrigin:Yr,transformStyle:Jr,transition:$r,transitionDelay:Xr,transitionDuration:qr,transitionProperty:Gr,transitionTimingFunction:Hr,userSelect:Wo,verticalAlign:at,visibility:yo,whiteSpace:Je,widows:Yo,width:xt,willChange:zo,wordSpacing:Qe,wordWrap:Ke,zIndex:It});function gn(){Q();const e=globalThis;e.list=re,e.update=he,e.when=de,e.on=l,e.scope=ye,e.render=be;for(const[t,r]of Object.entries(yn))try{e[t]=r}catch{}}gn(),exports.HTML_TAGS=Y,exports.SELF_CLOSING_TAGS=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"],exports.SVG_TAGS=J,exports.StyleBuilder=Re,exports.accentColor=Me,exports.alignContent=Vt,exports.alignItems=Wt,exports.alignSelf=zt,exports.animation=eo,exports.animationDelay=no,exports.animationDirection=io,exports.animationDuration=ro,exports.animationFillMode=ao,exports.animationIterationCount=so,exports.animationName=to,exports.animationPlayState=co,exports.animationTimingFunction=oo,exports.appearance=No,exports.appendChildren=function(e,...t){return e?(t.forEach(function(t){if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!a)return null;try{return y(e+"")}catch(e){return i("Failed to create text node",e),null}}(t);if(!e)return;r=e}else r=t;!function(e,t){try{return e.appendChild(t),!0}catch(e){return i("Failed to append child node",e),!1}}(e,r)}}),e):e},exports.applyAttributes=O,exports.applyNodeModifier=V,exports.backdropFilter=po,exports.backfaceVisibility=Zr,exports.backgroundAttachment=Dr,exports.backgroundClip=Or,exports.backgroundColor=Ar,exports.backgroundImage=Mr,exports.backgroundOrigin=zr,exports.backgroundPosition=Fr,exports.backgroundRepeat=Lr,exports.backgroundSize=jr,exports.bg=We,exports.bold=_e,exports.border=or,exports.borderBottom=ir,exports.borderBottomColor=Sr,exports.borderBottomLeftRadius=Rr,exports.borderBottomRightRadius=Tr,exports.borderBottomStyle=hr,exports.borderBottomWidth=mr,exports.borderCollapse=ko,exports.borderColor=dr,exports.borderLeft=ar,exports.borderLeftColor=kr,exports.borderLeftStyle=br,exports.borderLeftWidth=fr,exports.borderRadius=wr,exports.borderRight=sr,exports.borderRightColor=Pr,exports.borderRightStyle=gr,exports.borderRightWidth=ur,exports.borderSpacing=wo,exports.borderStyle=lr,exports.borderTop=nr,exports.borderTopColor=xr,exports.borderTopLeftRadius=vr,exports.borderTopRightRadius=Cr,exports.borderTopStyle=yr,exports.borderTopWidth=pr,exports.borderWidth=cr,exports.bottom=Bt,exports.boxShadow=Vr,exports.boxSizing=Ct,exports.breakAfter=Ho,exports.breakBefore=qo,exports.breakInside=Xo,exports.captionSide=vo,exports.center=Mt,exports.clip=Fo,exports.clipPath=jo,exports.color=Ae,exports.columnCount=Jo,exports.columnFill=Qo,exports.columnGap=Ko,exports.columnRule=Zo,exports.columnRuleColor=en,exports.columnRuleStyle=tn,exports.columnRuleWidth=rn,exports.columnSpan=on,exports.columnWidth=nn,exports.columns=sn,exports.contain=Vo,exports.content=To,exports.counterIncrement=Io,exports.counterReset=Eo,exports.createBreakpoints=fn,exports.createCSSClass=Ce,exports.createComment=P,exports.createConditionalComment=S,exports.createHtmlElementWithModifiers=q,exports.createHtmlTagBuilder=X,exports.createStyleQueries=mn,exports.createSvgElementWithModifiers=H,exports.createSvgTagBuilder=U,exports.cursor=an,exports.display=Ee,exports.emptyCells=Co,exports.filter=lo,exports.flex=Ie,exports.flexBasis=Ot,exports.flexDirection=Nt,exports.flexGrow=jt,exports.flexShrink=Dt,exports.flexWrap=Ft,exports.fontFamily=je,exports.fontSize=Le,exports.fontStretch=qe,exports.fontStyle=$e,exports.fontVariant=Ge,exports.fontWeight=Fe,exports.gap=Lt,exports.grid=Ne,exports.gridArea=Zt,exports.gridAutoColumns=er,exports.gridAutoFlow=rr,exports.gridAutoRows=tr,exports.gridColumn=Xt,exports.gridColumnEnd=Jt,exports.gridColumnStart=Yt,exports.gridRow=Ut,exports.gridRowEnd=Kt,exports.gridRowStart=Qt,exports.gridTemplateAreas=Ht,exports.gridTemplateColumns=Gt,exports.gridTemplateRows=qt,exports.height=Pt,exports.initializeRuntime=gn,exports.isBoolean=function(e){return"boolean"==typeof e},exports.isBrowser=a,exports.isFunction=n,exports.isNode=t,exports.isObject=r,exports.isPrimitive=e,exports.isTagLike=o,exports.isZeroArityFunction=s,exports.isolation=Do,exports.justifyContent=At,exports.justifyItems=$t,exports.justifySelf=_t,exports.left=Et,exports.letterSpacing=Oe,exports.lineHeight=De,exports.list=re,exports.listStyle=bo,exports.listStyleImage=So,exports.listStylePosition=Po,exports.listStyleType=xo,exports.margin=ft,exports.marginBottom=ht,exports.marginLeft=bt,exports.marginRight=gt,exports.marginTop=yt,exports.maxHeight=vt,exports.maxWidth=kt,exports.minHeight=wt,exports.minWidth=St,exports.mixBlendMode=Oo,exports.objectFit=go,exports.objectPosition=ho,exports.on=l,exports.opacity=_r,exports.orphans=Uo,exports.outline=Br,exports.outlineColor=Nr,exports.outlineOffset=Wr,exports.outlineStyle=Ir,exports.outlineWidth=Er,exports.overflow=uo,exports.overflowWrap=Ze,exports.overflowX=mo,exports.overflowY=fo,exports.padding=lt,exports.paddingBottom=ut,exports.paddingLeft=mt,exports.paddingRight=pt,exports.paddingTop=dt,exports.pageBreakAfter=$o,exports.pageBreakBefore=_o,exports.pageBreakInside=Go,exports.perspective=Qr,exports.perspectiveOrigin=Kr,exports.pointerEvents=Ao,exports.position=ct,exports.quotes=Bo,exports.registerGlobalTagBuilders=Q,exports.render=be,exports.replaceNodeSafely=C,exports.resize=Mo,exports.right=Tt,exports.scope=ye,exports.scrollBehavior=Lo,exports.tableLayout=Ro,exports.textAlign=ze,exports.textAlignLast=et,exports.textDecoration=Ve,exports.textDecorationColor=ot,exports.textDecorationLine=rt,exports.textDecorationStyle=nt,exports.textDecorationThickness=st,exports.textIndent=Xe,exports.textJustify=tt,exports.textOverflow=Ue,exports.textShadow=Ye,exports.textTransform=He,exports.textUnderlineOffset=it,exports.top=Rt,exports.transform=Ur,exports.transformOrigin=Yr,exports.transformStyle=Jr,exports.transition=$r,exports.transitionDelay=Xr,exports.transitionDuration=qr,exports.transitionProperty=Gr,exports.transitionTimingFunction=Hr,exports.update=he,exports.userSelect=Wo,exports.verticalAlign=at,exports.visibility=yo,exports.when=de,exports.whiteSpace=Je,exports.widows=Yo,exports.width=xt,exports.willChange=zo,exports.wordSpacing=Qe,exports.wordWrap=Ke,exports.zIndex=It;
2
2
  //# sourceMappingURL=nuclo.cjs.map