vanilla-breeze 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +7066 -7060
- package/dist/cdn/components/chart-wc.js +56 -32
- package/dist/cdn/components/form-field.js +1 -1
- package/dist/cdn/components/manifest.json +3 -3
- package/dist/cdn/components/nav-bar.js +1 -1
- package/dist/cdn/components/settings-panel.js +1 -1
- package/dist/cdn/themes/8bit.tokens.json +1 -1
- package/dist/cdn/themes/alpha1999-dark.tokens.json +1 -1
- package/dist/cdn/themes/alpha1999.tokens.json +1 -1
- package/dist/cdn/themes/art-deco-dark.tokens.json +1 -1
- package/dist/cdn/themes/art-deco.tokens.json +1 -1
- package/dist/cdn/themes/bauhaus-dark.tokens.json +1 -1
- package/dist/cdn/themes/bauhaus.tokens.json +1 -1
- package/dist/cdn/themes/brutalist-dark.tokens.json +1 -1
- package/dist/cdn/themes/brutalist.tokens.json +1 -1
- package/dist/cdn/themes/catppuccin-frappe.tokens.json +1 -1
- package/dist/cdn/themes/catppuccin-latte-dark.tokens.json +1 -1
- package/dist/cdn/themes/catppuccin-latte.tokens.json +1 -1
- package/dist/cdn/themes/catppuccin-macchiato.tokens.json +1 -1
- package/dist/cdn/themes/catppuccin-mocha.tokens.json +1 -1
- package/dist/cdn/themes/classic-dark.tokens.json +1 -1
- package/dist/cdn/themes/classic.tokens.json +1 -1
- package/dist/cdn/themes/claymorphism-dark.tokens.json +1 -1
- package/dist/cdn/themes/claymorphism.tokens.json +1 -1
- package/dist/cdn/themes/clinical-dark.tokens.json +1 -1
- package/dist/cdn/themes/clinical.tokens.json +1 -1
- package/dist/cdn/themes/cottagecore-dark.tokens.json +1 -1
- package/dist/cdn/themes/cottagecore.tokens.json +1 -1
- package/dist/cdn/themes/cyber.tokens.json +1 -1
- package/dist/cdn/themes/dawn-dark.tokens.json +1 -1
- package/dist/cdn/themes/dawn.tokens.json +1 -1
- package/dist/cdn/themes/dracula.tokens.json +1 -1
- package/dist/cdn/themes/dusk.tokens.json +1 -1
- package/dist/cdn/themes/editorial-dark.tokens.json +1 -1
- package/dist/cdn/themes/editorial.tokens.json +1 -1
- package/dist/cdn/themes/financial-dark.tokens.json +1 -1
- package/dist/cdn/themes/financial.tokens.json +1 -1
- package/dist/cdn/themes/genai.tokens.json +1 -1
- package/dist/cdn/themes/glassmorphism-dark.tokens.json +1 -1
- package/dist/cdn/themes/glassmorphism.tokens.json +1 -1
- package/dist/cdn/themes/government-dark.tokens.json +1 -1
- package/dist/cdn/themes/government.tokens.json +1 -1
- package/dist/cdn/themes/gruvbox-dark.tokens.json +1 -1
- package/dist/cdn/themes/gruvbox.tokens.json +1 -1
- package/dist/cdn/themes/high-noon-dark.tokens.json +1 -1
- package/dist/cdn/themes/high-noon.tokens.json +1 -1
- package/dist/cdn/themes/journal-dark.tokens.json +1 -1
- package/dist/cdn/themes/journal.tokens.json +1 -1
- package/dist/cdn/themes/kawaii-dark.tokens.json +1 -1
- package/dist/cdn/themes/kawaii.tokens.json +1 -1
- package/dist/cdn/themes/magna-dark.tokens.json +1 -1
- package/dist/cdn/themes/magna.tokens.json +1 -1
- package/dist/cdn/themes/midnight.tokens.json +1 -1
- package/dist/cdn/themes/minimal-dark.tokens.json +1 -1
- package/dist/cdn/themes/minimal.tokens.json +1 -1
- package/dist/cdn/themes/modern-dark.tokens.json +1 -1
- package/dist/cdn/themes/modern.tokens.json +1 -1
- package/dist/cdn/themes/nes-dark.tokens.json +1 -1
- package/dist/cdn/themes/nes.tokens.json +1 -1
- package/dist/cdn/themes/neumorphism-dark.tokens.json +1 -1
- package/dist/cdn/themes/neumorphism.tokens.json +1 -1
- package/dist/cdn/themes/nord-dark.tokens.json +1 -1
- package/dist/cdn/themes/nord.tokens.json +1 -1
- package/dist/cdn/themes/organic-dark.tokens.json +1 -1
- package/dist/cdn/themes/organic.tokens.json +1 -1
- package/dist/cdn/themes/rose-pine-dark.tokens.json +1 -1
- package/dist/cdn/themes/rose-pine.tokens.json +1 -1
- package/dist/cdn/themes/rough-dark.tokens.json +1 -1
- package/dist/cdn/themes/rough.tokens.json +1 -1
- package/dist/cdn/themes/solarized-dark.tokens.json +1 -1
- package/dist/cdn/themes/solarized.tokens.json +1 -1
- package/dist/cdn/themes/startup-dark.tokens.json +1 -1
- package/dist/cdn/themes/startup.tokens.json +1 -1
- package/dist/cdn/themes/super2026-dark.tokens.json +1 -1
- package/dist/cdn/themes/super2026.tokens.json +1 -1
- package/dist/cdn/themes/swiss-dark.tokens.json +1 -1
- package/dist/cdn/themes/swiss.tokens.json +1 -1
- package/dist/cdn/themes/terminal.tokens.json +1 -1
- package/dist/cdn/themes/tokyo-night-dark.tokens.json +1 -1
- package/dist/cdn/themes/tokyo-night.tokens.json +1 -1
- package/dist/cdn/themes/vaporwave-dark.tokens.json +1 -1
- package/dist/cdn/themes/vaporwave.tokens.json +1 -1
- package/dist/cdn/themes/win9x-dark.tokens.json +1 -1
- package/dist/cdn/themes/win9x.tokens.json +1 -1
- package/dist/cdn/vanilla-breeze-autoload.js +36 -36
- package/dist/cdn/vanilla-breeze-charts.js +56 -32
- package/dist/cdn/vanilla-breeze-core.css +1 -1
- package/dist/cdn/vanilla-breeze-core.js +13 -13
- package/dist/cdn/vanilla-breeze.css +1 -1
- package/dist/cdn/vanilla-breeze.js +53 -53
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var A=window.matchMedia("(prefers-reduced-motion: reduce)");var f=new Map;function m(
|
|
1
|
+
var A=window.matchMedia("(prefers-reduced-motion: reduce)");var f=new Map;function m(n,t,e={}){let i=e.priority??10,r={impl:t,bundle:e.bundle,contract:e.contract,priority:i},s=f.get(n);if(customElements.get(n)){if(!s||s.priority>=i){s&&s.priority===i&&s.impl!==t&&console.warn(`[VB Bundle] Tag <${n}> already registered by "${s.bundle}" (priority ${s.priority}). Skipping "${e.bundle}".`);return}console.warn(`[VB Bundle] Tag <${n}> defined by "${s.bundle}" cannot be replaced (customElements.define is permanent). "${e.bundle}" has higher priority but arrived late.`);return}if(s&&s.priority>=i){s.priority===i&&console.warn(`[VB Bundle] Tag <${n}> already registered by "${s.bundle}". Skipping "${e.bundle}" (first wins at equal priority).`);return}f.set(n,r),customElements.define(n,t)}var c=class extends HTMLElement{#t=[];#e;constructor(){super(),this.hasAttribute("data-upgraded")&&this.removeAttribute("data-upgraded")}connectedCallback(){this.hasAttribute("data-upgraded")||this.setup()!==!1&&(this.setAttribute("data-upgraded",""),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent(`${this.localName}:upgraded`,{bubbles:!0}))}))}disconnectedCallback(){for(let t of this.#t)t();this.#t=[],this.removeAttribute("data-upgraded"),this.teardown()}listen(t,e,i,r){t.addEventListener(e,i,r),this.#t.push(()=>t.removeEventListener(e,i,r))}_reinit(){for(let t of this.#t)t();this.#t=[],this.teardown(),this.removeAttribute("data-upgraded"),this.isConnected&&this.setup()!==!1&&this.setAttribute("data-upgraded","")}setup(){}teardown(){}setState(t,e){this.#e||(this.#e=this.attachInternals());let i=this.#e.states;try{e?i.add(t):i.delete(t)}catch{let r=`--${t}`;e?i.add(r):i.delete(r)}}_adoptInternals(t){this.#e||(this.#e=t)}#i(){return this.constructor.formAssociated&&this.#e?this.#e:null}get validity(){return this.#i()?.validity}get validationMessage(){return this.#i()?.validationMessage??""}get willValidate(){return this.#i()?.willValidate??!1}get form(){return this.#i()?.form??null}checkValidity(){return this.#i()?.checkValidity()??!0}reportValidity(){return this.#i()?.reportValidity()??!0}};var g=["valueMissing","badInput","typeMismatch","patternMismatch","tooShort","tooLong","rangeUnderflow","rangeOverflow","stepMismatch","customError"],v='input:not([type="hidden"]):not(.otp-digit), textarea, select',y="output.hint, output.textarea-counter",b="Please check this field.",E=0;function p(n){return n.localName.includes("-")?!!customElements.get(n.localName)?.formAssociated:!1}function a(n){return n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement}var u=class extends c{#t=null;#e=[];#i=null;#r=!1;#s="";#n;#d=`ff-${++E}`;setup(){if(this.#y(),this.#t=this.#v(),this.#i=this.querySelector("output.error")??this.querySelector("output:not(.hint):not(.textarea-counter)"),!this.#t)return!1;this.#i&&this.#n===void 0&&(this.#n=this.#i.textContent?.trim()??"",this.hasAttribute("data-invalid")||(this.#i.textContent=""));let t=this.#t;this.#e=[],t instanceof HTMLInputElement&&t.type==="radio"&&(this.#e=this.#b(t));let e=this.#e.length?this.#e:[t];for(let r of e)this.listen(r,"input",this.#o),this.listen(r,"change",this.#o),this.listen(r,"invalid",this.#g);a(t)||this.listen(t,`${t.localName}:change`,this.#o),this.listen(this,"focusout",r=>{let s=r.relatedTarget;s instanceof Node&&this.contains(s)||this.validate()});let i=t.form??this.closest("form");return i instanceof HTMLFormElement&&this.listen(i,"reset",r=>{setTimeout(()=>{!r.defaultPrevented&&this.isConnected&&this.clearError()})}),this.#l(this.hasAttribute("data-invalid")),!0}teardown(){this.#t=null,this.#e=[],this.#i=null}validate({show:t=!0}={}){if(!this.#t)return!0;let{valid:e,message:i}=this.#E();return t&&(e?(this.#c(this.#p()?"valid":null),this.#u("")):(this.#r=!0,this.#c("invalid"),this.#u(i)),this.#l(!e)),e}setError(t){if(!this.#t)return;this.#s=t;let e=this.#h();e&&e.setCustomValidity(t),this.validate()}clearError(){this.#t&&(this.#f(),this.#r=!1,this.#c(null),this.#u(""),this.#l(!1))}get fieldName(){return this.querySelector("label, legend")?.textContent?.trim()||this.#t?.getAttribute?.("aria-label")||this.#t?.getAttribute?.("name")||this.#t?.id||"Field"}get input(){return this.#t}#o=()=>{this.#s&&this.#f(),this.#r&&this.validate()};#a=!1;#g=()=>{if(!this.#a){this.#a=!0;try{this.validate()}finally{this.#a=!1}}};#v(){for(let t of this.querySelectorAll("*"))if(p(t))return t;return this.querySelector(v)}#y(){for(let t of this.querySelectorAll(":not(:defined)"))t.localName.includes("-")&&customElements.whenDefined(t.localName).then(()=>{!this.isConnected||!this.contains(t)||this.#t===t||p(t)&&this._reinit()})}#b(t){return t.name?(t.form?[...t.form.elements]:[...t.getRootNode().querySelectorAll('input[type="radio"]')].filter(i=>!i.form)).filter(i=>i instanceof HTMLInputElement&&i.type==="radio"&&i.name===t.name):[t]}#h(){let t=this.#t;return t&&a(t)?t:null}#f(){let t=this.#h();t&&t.validity.customError&&t.validationMessage===this.#s&&t.setCustomValidity(""),this.#s=""}#E(){let t=this.#t;if(this.#s)return{valid:!1,message:this.#s};let e=t.validity;if(e)return e.valid?{valid:!0,message:""}:{valid:!1,message:this.#m(e)};let i=t.matches(":invalid");return{valid:!i,message:i?this.#m(null):""}}#m(t){let e=this.#t,i=a(e),r=s=>e.getAttribute(`data-message-${s.toLowerCase()}`)??(i?null:this.getAttribute(`data-message-${s.toLowerCase()}`));if(t)for(let s of g){if(!t[s])continue;let o=r(s);if(o)return o;if((s==="customError"||!i)&&e.validationMessage)return e.validationMessage;break}else if(!this.#p()){let s=r("valueMissing");if(s)return s}return this.#n||e.validationMessage||this.getAttribute("data-message-invalid")||b}#p(){let t=this.#t;if(this.#e.length)return this.#e.some(i=>i.checked);if(t instanceof HTMLInputElement&&t.type==="checkbox")return t.checked;let e=t.value;return Array.isArray(e)?e.length>0:!a(t)&&e===0?!1:e!=null&&String(e)!==""}#A(){let t=this.#t,e=this.querySelector('.otp-wrapper[role="group"]');return e?[e]:this.#e.length?this.#e.filter(i=>this.contains(i)):a(t)?[t]:[t.querySelector('[role="combobox"], fieldset, input:not([type="hidden"]):not([aria-hidden="true"]), textarea, select')??t]}#l(t){let e=[...this.querySelectorAll(y)];e.forEach((o,l)=>{o.id||(o.id=`${this.#d}-hint${l?`-${l}`:""}`)});let i=this.#i;i&&!i.id&&(i.id=`${this.#d}-error`);let r=new Set([...e.map(o=>o.id),...i?[i.id]:[]]),s=[...e.map(o=>o.id),...t&&i?[i.id]:[]];for(let o of this.#A()){let l=(o.getAttribute("aria-describedby")??"").split(/\s+/).filter(h=>h&&!r.has(h)),d=[...new Set([...l,...s])];d.length?o.setAttribute("aria-describedby",d.join(" ")):o.removeAttribute("aria-describedby"),t?o.setAttribute("aria-invalid","true"):o.removeAttribute("aria-invalid")}}#c(t){delete this.dataset.valid,delete this.dataset.invalid,t&&(this.dataset[t]="")}#u(t){this.#i&&(this.#i.textContent=t)}};m("form-field",u);export{u as FormField};
|
|
2
2
|
//# sourceMappingURL=form-field.js.map
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"chart-wc": {
|
|
59
59
|
"file": "chart-wc.js",
|
|
60
|
-
"size":
|
|
60
|
+
"size": 84027
|
|
61
61
|
},
|
|
62
62
|
"chat-input": {
|
|
63
63
|
"file": "chat-input.js",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
},
|
|
162
162
|
"form-field": {
|
|
163
163
|
"file": "form-field.js",
|
|
164
|
-
"size":
|
|
164
|
+
"size": 6938
|
|
165
165
|
},
|
|
166
166
|
"geo-map": {
|
|
167
167
|
"file": "geo-map.js",
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
},
|
|
210
210
|
"nav-bar": {
|
|
211
211
|
"file": "nav-bar.js",
|
|
212
|
-
"size":
|
|
212
|
+
"size": 6689
|
|
213
213
|
},
|
|
214
214
|
"note-wc": {
|
|
215
215
|
"file": "note-wc.js",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var A=window.matchMedia("(prefers-reduced-motion: reduce)");var m=new Map;function g(s,t,n={}){let e=n.priority??10,r={impl:t,bundle:n.bundle,contract:n.contract,priority:e},i=m.get(s);if(customElements.get(s)){if(!i||i.priority>=e){i&&i.priority===e&&i.impl!==t&&console.warn(`[VB Bundle] Tag <${s}> already registered by "${i.bundle}" (priority ${i.priority}). Skipping "${n.bundle}".`);return}console.warn(`[VB Bundle] Tag <${s}> defined by "${i.bundle}" cannot be replaced (customElements.define is permanent). "${n.bundle}" has higher priority but arrived late.`);return}if(i&&i.priority>=e){i.priority===e&&console.warn(`[VB Bundle] Tag <${s}> already registered by "${i.bundle}". Skipping "${n.bundle}" (first wins at equal priority).`);return}m.set(s,r),customElements.define(s,t)}var f=class extends HTMLElement{#e=[];#t;constructor(){super(),this.hasAttribute("data-upgraded")&&this.removeAttribute("data-upgraded")}connectedCallback(){this.hasAttribute("data-upgraded")||this.setup()!==!1&&(this.setAttribute("data-upgraded",""),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent(`${this.localName}:upgraded`,{bubbles:!0}))}))}disconnectedCallback(){for(let t of this.#e)t();this.#e=[],this.removeAttribute("data-upgraded"),this.teardown()}listen(t,n,e,r){t.addEventListener(n,e,r),this.#e.push(()=>t.removeEventListener(n,e,r))}_reinit(){for(let t of this.#e)t();this.#e=[],this.teardown(),this.removeAttribute("data-upgraded"),this.isConnected&&this.setup()!==!1&&this.setAttribute("data-upgraded","")}setup(){}teardown(){}setState(t,n){this.#t||(this.#t=this.attachInternals());let e=this.#t.states;try{n?e.add(t):e.delete(t)}catch{let r=`--${t}`;n?e.add(r):e.delete(r)}}_adoptInternals(t){this.#t||(this.#t=t)}#n(){return this.constructor.formAssociated&&this.#t?this.#t:null}get validity(){return this.#n()?.validity}get validationMessage(){return this.#n()?.validationMessage??""}get willValidate(){return this.#n()?.willValidate??!1}get form(){return this.#n()?.form??null}checkValidity(){return this.#n()?.checkValidity()??!0}reportValidity(){return this.#n()?.reportValidity()??!0}};var b=class extends f{#e=null;#t=!1;#n=null;setup(){!this.hasAttribute("role")&&!this.querySelector("nav")&&this.setAttribute("role","navigation"),this.#r("pathname"),this.listen(window,"popstate",this.#o);let t=window.navigation;t&&typeof t.addEventListener=="function"&&this.listen(t,"currententrychange",this.#a)}get items(){return this.#e?this.#e.map(t=>({...t})):Array.from(this.#i()).map(t=>({href:t.getAttribute("href")||"",label:t.textContent?.trim()||""}))}set items(t){if(!Array.isArray(t))return;let n=t.map(e=>({...e}));this.#e&&this.#h(this.#e,n)||(this.#e=n,this.#u(n),this.#t?this.#s(this.#n):this.#r("pathname"),this.dispatchEvent(new CustomEvent("nav-bar:items-changed",{detail:{items:this.items,source:"property"},bubbles:!0,composed:!0})))}get current(){if(this.#t)return this.#n;for(let t of this.#i())if(t.getAttribute("aria-current")==="page")return t.getAttribute("data-route")||t.getAttribute("href")||null;return null}set current(t){let n=this.current,e=t==null?null:String(t);this.#t=!0,this.#n=e,this.#s(e),n!==e&&this.dispatchEvent(new CustomEvent("nav-bar:current-changed",{detail:{current:e,previous:n,source:"property"},bubbles:!0,composed:!0}))}releaseCurrent(){this.#t&&(this.#t=!1,this.#n=null,this.#r("pathname"))}refresh(){this.#t||this.#r("pathname")}#i(){let t=this.querySelectorAll("a[data-nav-link]");return t.length>0?t:this.querySelectorAll(":scope > a")}#o=()=>{this.#t||this.#r("popstate")};#a=()=>{queueMicrotask(()=>{this.#t||!this.isConnected||this.#r("navigation")})};#r(t){let n=this.current,e=this.#c();this.#s(e),e==null&&this.#l(),n!==e&&this.dispatchEvent(new CustomEvent("nav-bar:current-changed",{detail:{current:e,previous:n,source:t},bubbles:!0,composed:!0}))}#c(){let t=p(window.location.pathname),n=window.location.origin,e=Array.from(this.#i());if(e.length===0)return null;let r=this.getAttribute("data-match")==="exact",i=null,o=null,d=-1;for(let u of e){let l=u.getAttribute("href");if(!l||l.startsWith("#"))continue;let c;try{c=new URL(l,document.baseURI)}catch{continue}if(!/^https?:$/.test(c.protocol)||c.origin!==n)continue;let a=p(c.pathname);if(a===t){i==null&&(i=u);continue}!r&&a!=="/"&&t.startsWith(a+"/")&&a.length>d&&(o=u,d=a.length)}let h=i||o;return h?h.getAttribute("data-route")||h.getAttribute("href"):null}#l(){let t=p(window.location.pathname),n=window.location.origin,e=this.getAttribute("data-match")==="exact",r=null,i=-1;for(let o of this.querySelectorAll("a[data-nav-link]")){let d=o.closest("drop-down, li");if(!(!d||!this.contains(d)))for(let h of d.querySelectorAll("a[href]:not([data-nav-link])")){let u=h.getAttribute("href");if(!u||u.startsWith("#"))continue;let l;try{l=new URL(u,document.baseURI)}catch{continue}if(!/^https?:$/.test(l.protocol)||l.origin!==n)continue;let c=p(l.pathname),a=-1;c===t?a=Number.MAX_SAFE_INTEGER:!e&&c!=="/"&&t.startsWith(c+"/")&&(a=c.length),a>i&&(r=o,i=a)}}r&&r.setAttribute("aria-current","true")}#s(t){let n=this.#i();for(let e of n){let r=e.getAttribute("data-route")||e.getAttribute("href");t!=null&&r===t?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")}}#u(t){this.querySelectorAll(":scope > a").forEach(r=>r.remove());let n=this.querySelector("a[data-nav-link]")!=null,e=document.createDocumentFragment();for(let r of t){let i=this.#d(r);n&&i.setAttribute("data-nav-link",""),e.appendChild(i)}this.appendChild(e)}#d(t){let n=document.createElement("a"),e=y(t.href);if(e!=null&&n.setAttribute("href",e),t.route&&n.setAttribute("data-route",t.route),t.external&&(n.target="_blank",n.rel="noopener noreferrer"),t.icon){let r=document.createElement("icon-wc");r.setAttribute("name",String(t.icon)),r.setAttribute("size","sm"),n.appendChild(r)}if(n.appendChild(document.createTextNode(t.label||"")),t.external){let r=document.createElement("span");r.className="sr-only",r.textContent=` ${this.getAttribute("data-label-new-tab")??"(opens in new tab)"}`,n.appendChild(r)}if(t.badge!=null){let r=document.createElement("span");r.className="badge",r.textContent=String(t.badge),n.appendChild(r)}return n}#h(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++){let r=Object.keys(t[e]).sort(),i=Object.keys(n[e]).sort();if(r.length!==i.length)return!1;for(let o=0;o<r.length;o++)if(r[o]!==i[o]||t[e][r[o]]!==n[e][i[o]])return!1}return!0}};function p(s){let t=s.replace(/\/+$/,"");return t===""?"/":t}function y(s){if(s==null||s==="")return"#";let t=String(s),n;try{n=new URL(t,document.baseURI)}catch{return null}return/^https?:$/.test(n.protocol)?t:null}g("nav-bar",b);export{b as NavBar};
|
|
2
2
|
//# sourceMappingURL=nav-bar.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var lt=Object.defineProperty;var ke=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ee=(t,e)=>{for(var a in e)lt(t,a,{get:e[a],enumerable:!0})};var st={};Ee(st,{destroyStickyManager:()=>Bt,findBannerHeader:()=>tt,initStickyManager:()=>Ct});function tt(){for(let t of document.querySelectorAll("header"))if(!t.parentElement?.closest(At))return t;return null}function O(){let t=document.documentElement;if(!t.hasAttribute("data-sticky"))return;let e=tt();e&&!e.hasAttribute("data-sticky")&&(e.dataset.sticky="",me.add(e)),e&&re&&!fe.has(e)&&(re.observe(e),fe.add(e));let a=e?.hasAttribute("data-sticky")&&getComputedStyle(e).position!=="static",s=e&&a?e.getBoundingClientRect().height:0;t.style.setProperty("--sticky-offset",`${s}px`)}function at(){O()}function Ct(){if(se){O();return}se=!0,re=new ResizeObserver(O),fe=new WeakSet,O(),requestAnimationFrame(O),document.fonts?.ready?.then(O),window.addEventListener("resize",O,{passive:!0}),document.addEventListener("toggle",at,!0)}function Bt(){if(se){se=!1,window.removeEventListener("resize",O),document.removeEventListener("toggle",at,!0),re?.disconnect();for(let t of me)delete t.dataset.sticky;me.clear(),document.documentElement.style.removeProperty("--sticky-offset")}}var se,re,me,fe,At,rt=ke(()=>{se=!1,me=new Set,fe=new WeakSet,At='article, aside, main, nav, section, [role="article"], [role="complementary"], [role="main"], [role="navigation"], [role="region"]'});var it={};Ee(it,{SoundManager:()=>$t});var nt,pe,$t,ot=ke(()=>{nt="vb-sound",pe={enabled:!1,volume:.5},$t={_ctx:null,_enabled:!1,_volume:.5,_initialized:!1,init(){if(this._initialized)return this;let t=this._load();return this._enabled=t.enabled,this._volume=t.volume,this._initialized=!0,this},_getContext(){return this._ctx||(this._ctx=new(window.AudioContext||window.webkitAudioContext)),this._ctx.state==="suspended"&&this._ctx.resume(),this._ctx},_load(){try{let t=localStorage.getItem(nt);return t?{...pe,...JSON.parse(t)}:{...pe}}catch{return{...pe}}},_save(t){try{let e=this._load();localStorage.setItem(nt,JSON.stringify({...e,...t}))}catch{}},_playTone(t,e,a="sine"){if(!this._enabled)return;let s=this._getContext(),r=s.createOscillator(),n=s.createGain();r.connect(n),n.connect(s.destination),r.frequency.value=t,r.type=a,n.gain.value=this._volume*.3,r.start(),n.gain.exponentialRampToValueAtTime(.01,s.currentTime+e),r.stop(s.currentTime+e)},enable(){this._enabled=!0,this._save({enabled:!0}),this.play("click")},disable(){this._enabled=!1,this._save({enabled:!1})},toggle(){return this._enabled?this.disable():this.enable(),this._enabled},isEnabled(){return this._enabled},setVolume(t){this._volume=Math.max(0,Math.min(1,t)),this._save({volume:this._volume})},getVolume(){return this._volume},play(t){if(this._enabled)switch(t){case"click":this._playTone(800,.1);break;case"success":this._playTone(523,.1),setTimeout(()=>this._playTone(659,.1),100),setTimeout(()=>this._playTone(784,.15),200);break;case"error":this._playTone(200,.15,"sawtooth"),setTimeout(()=>this._playTone(180,.2,"sawtooth"),150);break;case"notification":this._playTone(880,.1),setTimeout(()=>this._playTone(1100,.15),100);break;case"soft":this._playTone(600,.05);break;case"tick":this._playTone(1200,.02,"square");break}},getState(){return{enabled:this._enabled,volume:this._volume}}}});var Ot=window.matchMedia("(prefers-reduced-motion: reduce)");var _e=new Map;function xe(t,e,a={}){let s=a.priority??10,r={impl:e,bundle:a.bundle,contract:a.contract,priority:s},n=_e.get(t);if(customElements.get(t)){if(!n||n.priority>=s){n&&n.priority===s&&n.impl!==e&&console.warn(`[VB Bundle] Tag <${t}> already registered by "${n.bundle}" (priority ${n.priority}). Skipping "${a.bundle}".`);return}console.warn(`[VB Bundle] Tag <${t}> defined by "${n.bundle}" cannot be replaced (customElements.define is permanent). "${a.bundle}" has higher priority but arrived late.`);return}if(n&&n.priority>=s){n.priority===s&&console.warn(`[VB Bundle] Tag <${t}> already registered by "${n.bundle}". Skipping "${a.bundle}" (first wins at equal priority).`);return}_e.set(t,r),customElements.define(t,e)}var Y=class extends HTMLElement{#a=[];#t;constructor(){super(),this.hasAttribute("data-upgraded")&&this.removeAttribute("data-upgraded")}connectedCallback(){this.hasAttribute("data-upgraded")||this.setup()!==!1&&(this.setAttribute("data-upgraded",""),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent(`${this.localName}:upgraded`,{bubbles:!0}))}))}disconnectedCallback(){for(let e of this.#a)e();this.#a=[],this.removeAttribute("data-upgraded"),this.teardown()}listen(e,a,s,r){e.addEventListener(a,s,r),this.#a.push(()=>e.removeEventListener(a,s,r))}_reinit(){for(let e of this.#a)e();this.#a=[],this.teardown(),this.removeAttribute("data-upgraded"),this.isConnected&&this.setup()!==!1&&this.setAttribute("data-upgraded","")}setup(){}teardown(){}setState(e,a){this.#t||(this.#t=this.attachInternals());let s=this.#t.states;try{a?s.add(e):s.delete(e)}catch{let r=`--${e}`;a?s.add(r):s.delete(r)}}_adoptInternals(e){this.#t||(this.#t=e)}#s(){return this.constructor.formAssociated&&this.#t?this.#t:null}get validity(){return this.#s()?.validity}get validationMessage(){return this.#s()?.validationMessage??""}get willValidate(){return this.#s()?.willValidate??!1}get form(){return this.#s()?.form??null}checkValidity(){return this.#s()?.checkValidity()??!0}reportValidity(){return this.#s()?.reportValidity()??!0}};var R=new Map,ie=new Map;var Ae=null;function Ce(){if(typeof window<"u"&&window.__VB_THEME_BASE)return String(window.__VB_THEME_BASE).replace(/\/$/,"");if(Ae)return Ae;if(typeof document<"u"){let t=document.querySelectorAll('script[src*="vanilla-breeze"]');for(let e of t){let a=e.getAttribute("src");if(a){let s=a.lastIndexOf("/");if(s!==-1)return a.slice(0,s)}}}return"/cdn"}var ht=new Set(["default","a11y-high-contrast","a11y-large-text","a11y-dyslexia","modern","minimal","classic"]),ut=new Set(["kawaii","memphis"]);function Be(t){return typeof CSS<"u"&&CSS.escape?CSS.escape(t):String(t).replace(/["\\]/g,"\\$&")}function $e(t){document.querySelectorAll(`link[data-vb-theme-preload="${Be(t)}"]`).forEach(e=>e.remove())}function oe(t){return ut.has(t)}function gt(t,e){return`${e}/themes/${t}.css`}function Te(t,e){if(!oe(t))return Promise.resolve();if(ie.has(t))return ie.get(t);let a=import(`${e}/packs/${t}.full.js`).catch(()=>{});return ie.set(t,a),a}function mt(t,e){let a=Ce(),s=()=>{(oe(e)||t.hasAttribute("data-vb-pack"))&&Te(e,a)};return t.getAttribute("data-vb-theme-state")==="error"?Promise.reject(new Error(`Failed to load theme: ${e}`)):t.getAttribute("data-vb-theme-state")==="ready"||t.sheet?(s(),Promise.resolve()):new Promise((r,n)=>{let i=()=>{t.setAttribute("data-vb-theme-state","ready"),w(),s(),r(void 0)},f=()=>{t.setAttribute("data-vb-theme-state","error"),R.delete(e),w(),n(new Error(`Failed to load theme: ${e}`))},w=()=>{t.removeEventListener("load",i),t.removeEventListener("error",f)};t.addEventListener("load",i,{once:!0}),t.addEventListener("error",f,{once:!0})})}async function N(t){if(!t||ht.has(t))return;if(R.has(t))return R.get(t);if(typeof document<"u"){let s=document.querySelector(`link[data-vb-theme="${Be(t)}"]`);if(s){let r=mt(s,t);return R.set(t,r),r}}let e=Ce(),a=oe(t)?pt(t,e):ft(t,e);return R.set(t,a),a}async function ft(t,e){let a=gt(t,e);return new Promise((s,r)=>{$e(t);let n=document.createElement("link");n.rel="stylesheet",n.href=a,n.setAttribute("data-vb-theme",t),n.setAttribute("data-vb-theme-state","loading"),n.onload=()=>{n.setAttribute("data-vb-theme-state","ready"),s()},n.onerror=()=>{n.setAttribute("data-vb-theme-state","error"),n.remove(),R.delete(t),r(new Error(`Failed to load theme: ${t}`))},document.head.appendChild(n)})}function pt(t,e){let a=`${e}/packs/${t}.theme.css`,s=`${e}/packs/${t}.effects.css`;return new Promise((r,n)=>{$e(t);let i=document.createElement("link");i.rel="stylesheet",i.href=a,i.setAttribute("data-vb-theme",t),i.setAttribute("data-vb-pack",t),i.setAttribute("data-vb-theme-state","loading"),i.onload=()=>{i.setAttribute("data-vb-theme-state","ready");let f=document.createElement("link");f.rel="stylesheet",f.href=s,f.setAttribute("data-vb-pack-effects",t),document.head.appendChild(f),Te(t,e),r()},i.onerror=()=>{i.setAttribute("data-vb-theme-state","error"),i.remove(),R.delete(t),n(new Error(`Failed to load pack: ${t}`))},document.head.appendChild(i)})}var Fe=[{id:"default",name:"Default",swatchBg:"#3b82f6",seeds:{}},{id:"ocean",name:"Ocean",swatchBg:"#0891b2",seeds:{"--hue-primary":200,"--hue-secondary":180,"--hue-accent":45,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"45%","--chroma-secondary":.1,"--lightness-accent":"70%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"forest",name:"Forest",swatchBg:"#059669",seeds:{"--hue-primary":145,"--hue-secondary":90,"--hue-accent":30,"--lightness-primary":"45%","--chroma-primary":.15,"--lightness-secondary":"55%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"58%","--chroma-primary":.12}},{id:"sunset",name:"Sunset",swatchBg:"#ea580c",seeds:{"--hue-primary":25,"--hue-secondary":0,"--hue-accent":280,"--lightness-primary":"57%","--chroma-primary":.2,"--lightness-secondary":"55%","--chroma-secondary":.18,"--lightness-accent":"55%","--chroma-accent":.18},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.16}},{id:"rose",name:"Rose",swatchBg:"#e11d48",seeds:{"--hue-primary":350,"--hue-secondary":330,"--hue-accent":200,"--lightness-primary":"55%","--chroma-primary":.18,"--lightness-secondary":"50%","--chroma-secondary":.14,"--lightness-accent":"60%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.14}},{id:"lavender",name:"Lavender",swatchBg:"#a855f7",seeds:{"--hue-primary":280,"--hue-secondary":300,"--hue-accent":60,"--lightness-primary":"55%","--chroma-primary":.14,"--lightness-secondary":"50%","--chroma-secondary":.12,"--lightness-accent":"70%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.12}},{id:"coral",name:"Coral",swatchBg:"#f97316",seeds:{"--hue-primary":15,"--hue-secondary":25,"--hue-accent":180,"--lightness-primary":"57%","--chroma-primary":.18,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"55%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.15}},{id:"slate",name:"Slate",swatchBg:"#64748b",seeds:{"--hue-primary":220,"--hue-secondary":210,"--hue-accent":45,"--lightness-primary":"48%","--chroma-primary":.1,"--lightness-secondary":"45%","--chroma-secondary":.06,"--lightness-accent":"68%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.08}},{id:"emerald",name:"Emerald",swatchBg:"#10b981",seeds:{"--hue-primary":160,"--hue-secondary":140,"--hue-accent":30,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"48%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"amber",name:"Amber",swatchBg:"#f59e0b",seeds:{"--hue-primary":45,"--hue-secondary":30,"--hue-accent":240,"--lightness-primary":"56%","--chroma-primary":.16,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"52%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"68%","--chroma-primary":.14}},{id:"indigo",name:"Indigo",swatchBg:"#6366f1",seeds:{"--hue-primary":250,"--hue-secondary":270,"--hue-accent":35,"--lightness-primary":"48%","--chroma-primary":.18,"--lightness-secondary":"45%","--chroma-secondary":.14,"--lightness-accent":"68%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"62%","--chroma-primary":.14}}],Me=[{id:"default",name:"Default",hue:210,shape:"balanced",character:"The default",swatchBg:"#3b82f6",tier:"core"},{id:"modern",name:"Modern",hue:270,shape:"rounded",character:"Vibrant & elevated",swatchBg:"#6366f1",tier:"core"},{id:"minimal",name:"Minimal",hue:240,shape:"sharp",character:"Clean & flat",swatchBg:"#71717a",tier:"core"},{id:"classic",name:"Classic",hue:220,shape:"subtle",character:"Serif & elegant",swatchBg:"#92400e",tier:"core"}],ce=[{id:"swiss",name:"Swiss",icon:"grid-3x3",character:"Precision grid",swatchBg:"#ff3e00",swatchFg:"white",tier:"showcase",category:"Design"},{id:"brutalist",name:"Brutalist",icon:"square",character:"Raw, industrial",swatchBg:"#1a1a1a",swatchFg:"#f5f5f5",tier:"showcase",category:"Design"},{id:"art-deco",name:"Art Deco",icon:"crown",character:"1920s luxury",swatchBg:"#1A1A1A",swatchFg:"#C9A84C",tier:"showcase",category:"Design"},{id:"editorial",name:"Editorial",icon:"newspaper",character:"Magazine elegance",swatchBg:"#1a1a1a",swatchFg:"#c9a227",tier:"showcase",category:"Content"},{id:"genai",name:"GenAI",icon:"sparkles",character:"AI aesthetic",swatchBg:"#1a0a2e",swatchFg:"#a855f7",tier:"showcase",category:"Modern"},{id:"glassmorphism",name:"Glass",icon:"glass-water",character:"Frosted surfaces",swatchBg:"#667eea",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"startup",name:"Startup",icon:"rocket",character:"SaaS energy",swatchBg:"#4f46e5",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"organic",name:"Organic",icon:"leaf",character:"Natural, handcrafted",swatchBg:"#2d5016",swatchFg:"#faf5e6",tier:"showcase",category:"Creative"},{id:"rough",name:"Rough",icon:"pencil",character:"Hand-drawn sketch",swatchBg:"#f5f0e8",swatchFg:"#3a3a3a",tier:"showcase",category:"Creative"},{id:"cyber",name:"Cyber",icon:"zap",character:"Neon futuristic",swatchBg:"#0a0a1a",swatchFg:"#00ff88",tier:"showcase",category:"Creative"},{id:"journal",name:"Journal",icon:"notebook-pen",character:"Dot-grid bullet journal",swatchBg:"#f3ecdc",swatchFg:"#27313f",tier:"showcase",category:"Creative"},{id:"vaporwave",name:"Vaporwave",icon:"radio",character:"Neon dreamy",swatchBg:"#2b0040",swatchFg:"#ff6ad5",tier:"showcase",category:"Aesthetic"},{id:"neumorphism",name:"Neumorph",icon:"circle",character:"Soft embossed",swatchBg:"#e0e0e0",swatchFg:"#a0a0a0",tier:"showcase",category:"Aesthetic"},{id:"bauhaus",name:"Bauhaus",icon:"shapes",character:"Geometric",swatchBg:"#F1FAEE",swatchFg:"#E63946",tier:"showcase",category:"Aesthetic"},{id:"claymorphism",name:"Clay",icon:"circle-dot",character:"Puffy 3D",swatchBg:"#f0f0f5",swatchFg:"#FF6B9D",tier:"showcase",category:"Aesthetic"},{id:"alpha1999",name:"Alpha1999",icon:"orbit",character:"Space retro-fi",swatchBg:"#0a0a14",swatchFg:"#d4880f",tier:"showcase",category:"Signature"},{id:"super2026",name:"Super2026",icon:"triangle",character:"Supergraphic bold",swatchBg:"#f5f0e6",swatchFg:"#c23616",tier:"showcase",category:"Signature"},{id:"magna",name:"Magna",icon:"orbit",character:"Odyssey 2 retro",swatchBg:"#0d0b14",swatchFg:"#f97316",tier:"showcase",category:"Signature"},{id:"win9x",name:"Win9x",icon:"monitor",character:"Classic desktop",swatchBg:"#008080",swatchFg:"#c0c0c0",tier:"showcase",category:"OS Styles"},{id:"nes",name:"NES",icon:"joystick",character:"Console pixels",swatchBg:"#bcbcbc",swatchFg:"#e40521",tier:"showcase",category:"OS Styles"},{id:"8bit",name:"8-Bit",icon:"gamepad-2",character:"Retro pixel art",swatchBg:"#000080",swatchFg:"#ffff00",tier:"showcase",category:"OS Styles"}],de=[{id:"nord",name:"Nord",icon:"snowflake",character:"Arctic calm",swatchBg:"#2E3440",swatchFg:"#81A1C1",tier:"community",category:"Editor Palettes"},{id:"solarized",name:"Solarized",icon:"sun-dim",character:"Engineered precision",swatchBg:"#002B36",swatchFg:"#268BD2",tier:"community",category:"Editor Palettes"},{id:"dracula",name:"Dracula",icon:"moon-star",character:"Dark elegance",swatchBg:"#282A36",swatchFg:"#BD93F9",tier:"community",category:"Editor Palettes"},{id:"catppuccin-mocha",name:"Catppuccin",icon:"coffee",character:"Warm pastels",swatchBg:"#1E1E2E",swatchFg:"#CBA6F7",tier:"community",category:"Editor Palettes"},{id:"catppuccin-latte",name:"Ctp Latte",icon:"coffee",character:"Cozy daytime",swatchBg:"#eff1f5",swatchFg:"#8839ef",tier:"community",category:"Editor Palettes"},{id:"catppuccin-frappe",name:"Ctp Frapp\xE9",icon:"coffee",character:"Cool twilight",swatchBg:"#303446",swatchFg:"#ca9ee6",tier:"community",category:"Editor Palettes"},{id:"catppuccin-macchiato",name:"Ctp Macchiato",icon:"coffee",character:"Deep blue",swatchBg:"#24273a",swatchFg:"#c6a0f6",tier:"community",category:"Editor Palettes"},{id:"gruvbox",name:"Gruvbox",icon:"palette",character:"Retro warmth",swatchBg:"#282828",swatchFg:"#ebdbb2",tier:"community",category:"Editor Palettes"},{id:"tokyo-night",name:"Tokyo Night",icon:"moon",character:"Night-owl vibes",swatchBg:"#1a1b26",swatchFg:"#7aa2f7",tier:"community",category:"Editor Palettes"},{id:"rose-pine",name:"Ros\xE9 Pine",icon:"flower-2",character:"Muted elegance",swatchBg:"#191724",swatchFg:"#ebbcba",tier:"community",category:"Editor Palettes"},{id:"cottagecore",name:"Cottagecore",icon:"flower-2",character:"Pastoral",swatchBg:"#fdf8f0",swatchFg:"#7d8c6d",tier:"community",category:"Niche"},{id:"terminal",name:"Terminal",icon:"terminal",character:"Retro CRT",swatchBg:"#0d1117",swatchFg:"#00ff00",tier:"community",category:"Niche"},{id:"clinical",name:"Clinical",icon:"heart-pulse",character:"Sterile precision",swatchBg:"#ffffff",swatchFg:"#0077b6",tier:"community",category:"Industry"},{id:"financial",name:"Financial",icon:"landmark",character:"Navy + gold",swatchBg:"#1b2a4a",swatchFg:"#c9a84c",tier:"community",category:"Industry"},{id:"government",name:"Government",icon:"shield",character:"Official",swatchBg:"#002868",swatchFg:"#bf0a30",tier:"community",category:"Industry"},{id:"dawn",name:"Dawn",icon:"sunrise",character:"Golden morning",swatchBg:"#fef3e2",swatchFg:"#d4a574",tier:"community",category:"Mood/Time"},{id:"dusk",name:"Dusk",icon:"sunset",character:"Twilight",swatchBg:"#1a1b2e",swatchFg:"#e5a858",tier:"community",category:"Mood/Time"},{id:"midnight",name:"Midnight",icon:"moon",character:"Deep night",swatchBg:"#0d1117",swatchFg:"#58a6ff",tier:"community",category:"Mood/Time"},{id:"high-noon",name:"High Noon",icon:"sun",character:"Maximum bright",swatchBg:"#ffffff",swatchFg:"#e63946",tier:"community",category:"Mood/Time"}],Pe=[{id:"kawaii",name:"Kawaii",icon:"heart",character:"Cute aesthetic",swatchBg:"#ffb7c5",swatchFg:"#ff69b4",tier:"showcase",category:"Packs"},{id:"memphis",name:"Memphis",icon:"star",character:"Bold patterns",swatchBg:"#FFF8F0",swatchFg:"#d03040",tier:"showcase",category:"Packs"}];var Vt=[...ce,...de],Ht=[...Me,...ce,...de,...Pe],L=t=>ce.filter(e=>e.category===t),Oe=[{label:"Style",themes:Me,tier:"core"},{label:"Design",themes:L("Design"),tier:"showcase"},{label:"Content",themes:L("Content"),tier:"showcase"},{label:"Modern",themes:L("Modern"),tier:"showcase"},{label:"Creative",themes:L("Creative"),tier:"showcase"},{label:"Aesthetic",themes:L("Aesthetic"),tier:"showcase"},{label:"Signature",themes:L("Signature"),tier:"showcase"},{label:"OS Styles",themes:L("OS Styles"),tier:"showcase"},{label:"Packs",themes:Pe,tier:"showcase"},{label:"More Themes",themes:de,tier:"community"}];function yt(){let t=globalThis.localStorage;if(!t)throw new Error("VBStore: localStorage is not available in this environment");return{async getRaw(e){return t.getItem(e)},async setRaw(e,a){t.setItem(e,a)},async removeRaw(e){t.removeItem(e)},async keys(e){let a=[];for(let s=0;s<t.length;s++){let r=t.key(s);r&&r.startsWith(e)&&a.push(r)}return a}}}var J="__vbStoreBackend",X=globalThis;function F(){return X[J]||(X[J]=yt()),X[J]}function le(t,e){if(typeof t!="string"||!t)throw new TypeError("VBStore: namespace must be a non-empty string");if(typeof e!="string"||!e)throw new TypeError("VBStore: key must be a non-empty string");return`vb:${t}:${e}`}function De(t){if(typeof t!="string"||!t)throw new TypeError("VBStore: namespace must be a non-empty string");return`vb:${t}:`}function Re(t){try{let e=JSON.parse(t);if(e&&typeof e=="object"&&typeof e.timestamp=="number")return e}catch{}return null}var u={configure(t={}){X[J]=t.backend??null},async set(t,e,a){let s={data:a,timestamp:Date.now()};await F().setRaw(le(t,e),JSON.stringify(s))},async get(t,e,a){let s=await F().getRaw(le(t,e));if(s==null)return null;let r=Re(s);return!r||a?.maxAge!=null&&Date.now()-r.timestamp>a.maxAge?null:r.data},async remove(t,e){await F().removeRaw(le(t,e))},async list(t){let e=De(t),a=await F().keys(e),s=[];for(let r of a){let n=await F().getRaw(r);if(n==null)continue;let i=Re(n);i&&s.push({key:r.slice(e.length),data:i.data,timestamp:i.timestamp})}return s},async clear(t){let e=De(t),a=await F().keys(e);for(let s of a)await F().removeRaw(s)},async clearAll(){let t=await F().keys("vb:");for(let e of t)await F().removeRaw(e)},async setMany(t,e){for(let[a,s]of e)await u.set(t,a,s)}};if(typeof window<"u"){let t=window.VB??(window.VB={});t.store??=u}var Q="theme",Z="current",je=2,te={accent:"data-accent",borderStyle:"data-border-style",iconSet:"data-icon-set",fluid:"data-fluid",backdrop:"data-backdrop",backdropChrome:"data-backdrop-chrome"},S={mode:"auto",brand:"default",accent:null,borderStyle:null,iconSet:null,fluid:null,backdrop:null,backdropChrome:null,pageBgType:"",pageBgColor:"",pageBgGradStart:"",pageBgGradEnd:"",pageBgGradDir:""};function Le(t){if(!t||typeof t!="object")return null;let e={...t};if(!(Number(e.v)>=je))for(let a of Object.keys(te))(e[a]===""||a==="accent"&&e[a]==="default")&&(e[a]=null);return e}function M(t,e){return t??e??""}var he=null;function $(){if(he)return he;let t=document.documentElement,e=window.__vbAuthoredRoot,a=r=>{if(e&&typeof e=="object"){if(r in e)return e[r]??null;if(r==="data-mode")return null}return t.getAttribute(r)},s={theme:a("data-theme"),mode:a("data-mode"),themeSource:a("data-theme-source")};for(let[r,n]of Object.entries(te))s[r]=a(n);return he=s,s}function bt(t){try{let e=document.createElement("canvas");e.width=e.height=1;let a=e.getContext("2d",{willReadFrequently:!0});if(!a)return t;a.fillStyle=t,a.fillRect(0,0,1,1);let[s,r,n]=a.getImageData(0,0,1,1).data;return"#"+[s,r,n].map(i=>i.toString(16).padStart(2,"0")).join("")}catch{return t}}function ee(t,e){let a=(t||"").split(/\s+/).filter(Boolean);return e==="site"?a[0]&&!a[0].startsWith("a11y-")?a[0]:"":a.find(s=>!s.startsWith("a11y-"))||""}function wt(t,e,a,s=!1){let r=(t||"").split(/\s+/).filter(n=>n&&n!==e&&n!==a);return a!=="default"?[a,...r].join(" "):(s&&r.length?["default",...r]:r).join(" ")}function Ve(t){return t==="light"||t==="dark"?t:null}function He(t,e,a){return e||(t==="light"||t==="dark"?t:a?"dark":"light")}function Ie(t,e,a){let s=ee(e,a);return a==="site"&&s?s:t?.brand&&t.brand!==S.brand?t.brand:s||S.brand}var qe=["--hue-primary","--hue-secondary","--hue-accent","--lightness-primary","--chroma-primary","--lightness-secondary","--chroma-secondary","--lightness-accent","--chroma-accent"],h=null,U="",ue="",I=null,V=null,m={_initPromise:null,async init(){return this._initPromise?this._initPromise:(this._initPromise=(async()=>{let t=Le(await u.get(Q,Z));h=t?{...S,...t}:{...S},V=$().themeSource??null,U=ee($().theme??"",V),ue=ee(document.documentElement.dataset.theme||"",V),I=Ve($().mode),h.brand=Ie(t,$().theme??"",V);try{await N(h.brand)}catch{h.brand!==U&&(h.brand=U||S.brand)}return this.apply(h),this._watchSystemPreference(),this._watchRootAttributes(),this._watchCrossDocumentStorage(),h})(),this._initPromise)},_watchCrossDocumentStorage(){typeof window>"u"||window.addEventListener("storage",async t=>{if(t.key!==`vb:${Q}:${Z}`||!t.newValue)return;let e;try{let s=JSON.parse(t.newValue);e=Le(s?.data)}catch{return}if(!e)return;let a={...S,...h,...e};if(a.brand=Ie(e,$().theme??"",V),a.brand&&a.brand!==h?.brand)try{await N(a.brand)}catch{a.brand=U||S.brand}h=a,this.apply(h||{})})},load(){return h?{...h}:{...S}},save(t){let e={...h??S,...t,v:je};return h=e,u.set(Q,Z,e).catch(()=>{}),e},apply({mode:t="auto",brand:e="default",borderStyle:a=null,iconSet:s=null,fluid:r=null,backdrop:n=null,backdropChrome:i=null,pageBgType:f="",pageBgColor:w="",pageBgGradStart:E="",pageBgGradEnd:_="",pageBgGradDir:T=""}={}){let p=document.documentElement,y=$(),x=He(t,I,window.matchMedia("(prefers-color-scheme: dark)").matches);p.dataset.mode=x;let A=V==="site",b=wt(p.dataset.theme||"",ue,e,A);b?p.dataset.theme=b:delete p.dataset.theme,ue=e==="default"&&!b.startsWith("default")?"":e;let C=a||y.borderStyle||this._readCSSHint("--theme-border-style");this._setRootAttr("data-border-style",C&&C!=="clean"?C:"");let c=s||y.iconSet||this._readCSSHint("--theme-icon-set");this._setRootAttr("data-icon-set",c&&c!=="lucide"?c:"");let o=M(r,y.fluid);this._setRootAttr("data-fluid",o,!0);let B=M(n,y.backdrop);this._setRootAttr("data-backdrop",B,!0);let g=M(i,y.backdropChrome);if(this._setRootAttr("data-backdrop-chrome",g&&g!=="card"?g:""),f==="color"&&w)p.style.setProperty("--page-bg-color",w),p.style.removeProperty("--page-bg-gradient");else if(f==="gradient"&&E&&_){let d=T||"to bottom";p.style.setProperty("--page-bg-gradient",`linear-gradient(${d}, ${E}, ${_})`),p.style.removeProperty("--page-bg-color")}else p.style.removeProperty("--page-bg-color"),p.style.removeProperty("--page-bg-gradient");this._applyAccent(this.load().accent);let G=this.getState().accent;this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{mode:t,brand:e,accent:G,borderStyle:C,iconSet:c,fluid:o,backdrop:B,backdropChrome:g,pageBgType:f,effectiveMode:x}}))},_setRootAttr(t,e,a=!1){let s=document.documentElement;e?s.setAttribute(t,e):a&&this._authoredHas(t)?s.setAttribute(t,""):s.removeAttribute(t)},_authoredHas(t){let e=Object.keys(te).find(s=>te[s]===t);return e?this.load()[e]==null&&$()[e]!=null:!1},_syncThemeColor(){let t=document.querySelectorAll('meta[name="theme-color"]');if(!t.length)return;let e=r=>!r||r==="transparent"||/^rgba\(.*,\s*0\)$/.test(r),a=getComputedStyle(document.documentElement).backgroundColor;if(e(a)){let r=document.createElement("span");r.style.setProperty("position","absolute"),r.style.setProperty("background-color","var(--color-background)"),(document.body||document.documentElement).append(r),a=getComputedStyle(r).backgroundColor,r.remove()}if(e(a))return;let s=bt(a);t.forEach(r=>{r.removeAttribute("media"),r.setAttribute("content",s)})},setMode(t){I=null;let e=this.save({mode:t});this.apply(e)},async setBrand(t){try{await N(t)}catch(a){console.warn(`[VB] Theme "${t}" failed to load, using default`,a),t="default"}let e=this.save({brand:t});this.apply(e)},setAccent(t){this.save({accent:t}),this._applyAccent(t),this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}}))},setBorderStyle(t){let e=this.save({borderStyle:t});this.apply(e)},setIconSet(t){let e=this.save({iconSet:t});this.apply(e)},setFluid(t){let e=this.save({fluid:t});this.apply(e)},setBackdrop(t){let e=this.save({backdrop:t});this.apply(e)},setBackdropChrome(t){let e=this.save({backdropChrome:t});this.apply(e)},setPageBg({type:t="",color:e="",gradStart:a="",gradEnd:s="",gradDir:r=""}={}){let n=this.save({pageBgType:t,pageBgColor:e,pageBgGradStart:a,pageBgGradEnd:s,pageBgGradDir:r});this.apply(n)},getEffectiveMode(){let{mode:t}=this.load();return He(t,I,window.matchMedia("(prefers-color-scheme: dark)").matches)},getState(){let{mode:t,brand:e,accent:a,borderStyle:s,iconSet:r,fluid:n,backdrop:i,backdropChrome:f,pageBgType:w,pageBgColor:E,pageBgGradStart:_,pageBgGradEnd:T,pageBgGradDir:p}=this.load(),y=typeof document>"u"?{}:$(),x=(A,b)=>b==null&&y[A]===""?"default":M(b,y[A]);return{mode:t,brand:e,accent:M(a,y.accent)||"default",borderStyle:M(s,y.borderStyle),iconSet:M(r,y.iconSet),fluid:x("fluid",n),backdrop:x("backdrop",i),backdropChrome:M(f,y.backdropChrome),pageBgType:w,pageBgColor:E,pageBgGradStart:_,pageBgGradEnd:T,pageBgGradDir:p,effectiveMode:this.getEffectiveMode()}},toggleMode(){let e=this.getEffectiveMode()==="dark"?"light":"dark";this.setMode(e)},reset(){h={...S,brand:U||S.brand},I=Ve($().mode),u.remove(Q,Z).catch(()=>{});let t=document.documentElement;t.style.removeProperty("--page-bg-color"),t.style.removeProperty("--page-bg-gradient");for(let e of qe)t.style.removeProperty(e);this.apply(h)},_readCSSHint(t){return getComputedStyle(document.documentElement).getPropertyValue(t).trim()},_applyAccent(t){let e=document.documentElement;for(let s of qe)e.style.removeProperty(s);if(t==null){let s=$().accent;s?e.dataset.accent=s:delete e.dataset.accent;return}let a=Fe.find(s=>s.id===t);if(!a||!a.seeds||Object.keys(a.seeds).length===0){delete e.dataset.accent;return}e.dataset.accent=a.id},_watchRootAttributes(){this._rootObserver||(this._rootObserver=new MutationObserver(t=>{for(let e of t)e.attributeName==="data-theme"?this._syncFromDataTheme():e.attributeName==="data-mode"&&this._syncFromDataMode()}),this._rootObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","data-mode"]}))},_syncFromDataTheme(){if(!h)return;let t=document.documentElement.dataset.theme||"",e=t.split(/\s+/).filter(Boolean),a=ee(t,V)||"default";a!==h.brand&&(h.brand=a,N(a).catch(()=>{}),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_syncFromDataMode(){if(!h)return;let t=document.documentElement.dataset.mode||"auto",e=this.getEffectiveMode();t!==e&&(I=null,h.mode=t,this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_watchSystemPreference(){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{let e=this.load();e.mode==="auto"&&this.apply(e)})}};if(typeof window<"u"){let t=window.VB??(window.VB={});t.themeManager??=m}var Ge="environment",We="preferences",ge={timeOfDay:!1,seasonal:!1},vt=900*1e3,P={...ge};function H(t,e,a){return t+(e-t)*Math.min(1,Math.max(0,a))}var q={_timer:null,_baseHues:null,_timeOverride:null,_monthOverride:null,async init(){let t=await u.get(Ge,We);P=t?{...ge,...t}:{...ge},(P.timeOfDay||P.seasonal)&&(this._captureBaseHues(),this._update(),this._startLoop()),window.addEventListener("vb:theme-change",()=>{this._hasActiveSource()&&requestAnimationFrame(()=>{this._captureBaseHues(),this._update()})})},load(){return{...P}},save(t){return P={...P,...t},u.set(Ge,We,P).catch(()=>{}),{...P}},setTimeOverride(t){this._timeOverride=t,this._hasActiveSource()&&this._update()},setMonthOverride(t){this._monthOverride=t,this._hasActiveSource()&&this._update()},setSource(t,e){let a=this.save({[t]:e});e?(this._captureBaseHues(),this._update(),this._startLoop()):this._hasActiveSource(a)?this._update():(this._clearModifiers(),this._stopLoop())},_hasActiveSource(t){let e=t||this.load();return e.timeOfDay||e.seasonal},_captureBaseHues(){let t=document.documentElement;t.style.removeProperty("--hue-primary"),t.style.removeProperty("--hue-secondary"),t.style.removeProperty("--hue-accent");let e=t.getAttribute("data-theme");if(e){let a=`[data-theme~="${e}"]`;for(let s of document.styleSheets)try{for(let r=0;r<s.cssRules.length;r++){let n=s.cssRules[r];if(n.selectorText?.includes(a)&&!n.selectorText.includes("dark")){let i=n.style?.getPropertyValue("--hue-primary");if(i){this._baseHues={primary:parseFloat(i)||260,secondary:parseFloat(n.style.getPropertyValue("--hue-secondary"))||200,accent:parseFloat(n.style.getPropertyValue("--hue-accent"))||30};return}}}}catch{}}this._baseHues={primary:260,secondary:200,accent:30}},_update(){let t=this.load(),e=0;t.timeOfDay&&(e+=this._getTimeOfDayOffset()),t.seasonal&&(e+=this._getSeasonalOffset());let a=document.documentElement;e!==0&&this._baseHues?(a.style.setProperty("--hue-primary",String(this._baseHues.primary+e)),a.style.setProperty("--hue-secondary",String(this._baseHues.secondary+e)),a.style.setProperty("--hue-accent",String(this._baseHues.accent+e*.5))):e===0&&this._clearModifiers()},_clearModifiers(){let t=document.documentElement;t.style.removeProperty("--hue-primary"),t.style.removeProperty("--hue-secondary"),t.style.removeProperty("--hue-accent")},_getTimeOfDayOffset(){let t=this._timeOverride??new Date().getHours()+new Date().getMinutes()/60;return t<5?-20:t<7?H(-20,20,(t-5)/2):t<10?H(20,5,(t-7)/3):t<14?H(5,0,(t-10)/4):t<17?H(0,-5,(t-14)/3):t<19?H(-5,15,(t-17)/2):t<21?H(15,-10,(t-19)/2):H(-10,-20,(t-21)/8)},_getHemisphere(){return window.__VB_ENV_LOCATION?.hemisphere||"north"},_getSeasonalOffset(){let t=this._monthOverride??new Date().getMonth(),a=this._getHemisphere()==="south"?(t+6)%12:t;return a>=2&&a<=4?5:a>=5&&a<=7?10:a>=8&&a<=10?-5:-10},_startLoop(){this._timer||(this._timer=setInterval(()=>this._update(),vt))},_stopLoop(){this._timer&&clearInterval(this._timer),this._timer=null}};var ae=null;function Ue(){return"0.6.0-fa247c198"}function St(){let t=document.querySelectorAll('script[src*="vanilla-breeze"]'),e="/cdn/sw.js";for(let a of t){let s=a.getAttribute("src");if(s){let r=s.lastIndexOf("/");if(r!==-1){e=s.slice(0,r)+"/sw.js";break}}}return e}function ze(){return ae||(ae=navigator.serviceWorker?.ready??Promise.reject(new Error("SW not supported"))),ae}function Ke(t){return new Promise((e,a)=>{navigator.serviceWorker?.controller?Ne(navigator.serviceWorker.controller,t,e,a):ze().then(s=>{let r=s.active||s.waiting||s.installing;r?Ne(r,t,e,a):a(new Error("No active service worker"))}).catch(a)})}function Ne(t,e,a,s){let r=new MessageChannel;r.port1.onmessage=n=>a(n.data),r.port1.onmessageerror=()=>s(new Error("Message error")),t.postMessage({type:e},[r.port2]),setTimeout(()=>s(new Error("SW message timeout")),5e3)}async function Ye(){return Ke("GET_STATUS")}async function Je(){return Ke("CLEAR_CACHE")}async function Xe(){let t=await ze();return await t.update(),{updated:!!t.waiting}}function kt(){return typeof window>"u"||!("serviceWorker"in navigator)?!1:window.__VB_SERVICE_WORKER?!0:document.querySelector('meta[name="vb-service-worker"]')?.content==="true"}if(kt()){let t=St();window.addEventListener("load",()=>{ae=navigator.serviceWorker.register(t).catch(e=>{console.warn("[VB] Service worker registration failed:",e)})})}var z="data-char-shortcuts",Et="vb:char-shortcuts-change",_t="vb:settings:extensions";function K(){return typeof document>"u"?!0:document.documentElement.getAttribute(z)!=="off"}function Qe(t){let e=document.documentElement,a=K();t?e.removeAttribute(z):e.setAttribute(z,"off"),a!==!!t&&window.dispatchEvent(new CustomEvent(Et,{detail:{enabled:!!t}}))}function xt(){try{let t=globalThis.localStorage?.getItem(_t);if(!t)return null;let e=JSON.parse(t)?.data?.charShortcuts;return typeof e=="boolean"?e:null}catch{return null}}var Ze=!0;function et(){return Ze}if(typeof document<"u"){let t=xt();t===null&&(Ze=K()),t===!1?document.documentElement.setAttribute(z,"off"):t===!0&&document.documentElement.removeAttribute(z)}var j=null,k="settings",ne={motionFx:!0,sounds:!1,charShortcuts:!0},ye=()=>({...ne,charShortcuts:K()}),Tt=document.documentElement.hasAttribute("data-sticky"),be=null,Ft={trigger:"Site settings",dialog:"Site settings",title:"Settings",close:"Close settings",appearance:"Appearance","color-mode":"Color mode","mode-auto":"Auto","mode-light":"Light","mode-dark":"Dark",theme:"Theme",accessibility:"Accessibility","high-contrast":"High Contrast","large-text":"Large Text",dyslexia:"Dyslexia-Friendly","char-shortcuts":"Single-Key Shortcuts",layout:"Layout",fluid:"Fluid Scaling",density:"Density","density-compact":"Compact","density-default":"Default","density-spacious":"Spacious",backdrop:"Canvas Backdrop","backdrop-style":"Style","backdrop-default":"Default","backdrop-flush":"Flush","backdrop-elevated":"Elevated",chrome:"Chrome","chrome-card":"Card","chrome-stretch":"Stretch","chrome-integrated":"Integrated","fixed-header":"Fixed Header","page-bg":"Page Background","page-bg-default":"Theme Default","page-bg-color":"Solid Color","page-bg-gradient":"Gradient","bg-color":"Color","grad-start":"Start","grad-end":"End","grad-direction":"Direction","dir-to-bottom":"Top \u2192 Bottom","dir-to-right":"Left \u2192 Right","dir-135deg":"Diagonal \u2198","dir-45deg":"Diagonal \u2197",sticky:"Sticky Navigation",effects:"Effects",motion:"Motion Effects",sounds:"Sound Effects",environment:"Environment","time-of-day":"Time-of-Day Shifts",seasonal:"Seasonal Tinting",system:"System","sw-label":"Service Worker:","sw-checking":"checking\u2026","sw-unsupported":"Not supported","sw-active":"Active ({n} cached files)","sw-unregistered":"Not registered","clear-cache":"Clear Cache",clearing:"Clearing\u2026",cleared:"Cache cleared","check-update":"Check for Updates",checking:"Checking\u2026","update-available":"Update available","up-to-date":"Up to date",failed:"Failed",reset:"Reset to Defaults","reset-confirm":"Reset all settings to defaults?","reset-yes":"Reset","reset-cancel":"Cancel","reset-done":"Settings reset to defaults"},Mt='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>';function D(t){return String(t).replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}async function we(t){let e=document.documentElement;t?e.dataset.sticky="":delete e.dataset.sticky;try{let a=await Promise.resolve().then(()=>(rt(),st));t?a.initStickyManager():a.destroyStickyManager()}catch{}}var ve=class extends Y{#a=null;#t=null;#s=!1;#u=!1;#d=0;#f="";#l=new Set;#p=[];#r=[];#n={...ne,charShortcuts:K()};#o=document.documentElement.hasAttribute("data-sticky");setup(){let e=++this.#d;return this.#f||=crypto.randomUUID().slice(0,8),this.#H(),this.#q(),this.#c(),this.listen(window,"vb:theme-change",this.#k),this.listen(window,"vb:extensions-change",this.#k),this.listen(window,"vb:a11y-themes-change",this.#k),this.#u&&(this.#u=!1,this.open()),this.#x().then(()=>{this.#h(e)&&this.#c()}),!0}teardown(){this.#d++;for(let e of this.#p)clearTimeout(e);this.#p=[],this.#s=!1,this.removeAttribute("open"),this.#a?.setAttribute("aria-expanded","false"),this.#t?.remove(),this.#t=null}#h(e){return e===this.#d&&this.isConnected}#i(e,a={}){let s=this.getAttribute(`data-label-${e}`)??Ft[e]??e;for(let[r,n]of Object.entries(a))s=s.replaceAll(`{${r}}`,String(n));return s}#V(e){return D(this.#i(e))}get data(){return{a11yThemes:[...this.#r],extensions:{...this.#n},sticky:this.#o}}set data(e){if(!e||typeof e!="object")return;let a=[],s=[];Array.isArray(e.a11yThemes)&&(this.#r=e.a11yThemes.map(String),s.push("a11y"),a.push(u.set(k,"a11y",this.#r)),this.#m(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[...this.#r]}))),e.extensions&&typeof e.extensions=="object"&&(this.#n={...ye(),...e.extensions},s.push("extensions"),a.push(u.set(k,"extensions",this.#n)),this.#_()),e.sticky!=null&&(this.#o=!!e.sticky,s.push("sticky"),a.push(u.set(k,"sticky",this.#o?"on":"off")),we(this.#o));for(let r of s)this.#l.add(r);this.#t&&this.#c(),Promise.allSettled(a).then(()=>{for(let r of s)this.#l.delete(r);this.#t&&this.#c(),this.dispatchEvent(new CustomEvent("settings-panel:data-changed",{detail:{data:this.data,source:"property"},bubbles:!0}))})}async#x(){let[e,a,s]=await Promise.all([u.get(k,"a11y"),u.get(k,"extensions"),u.get(k,"sticky")]);be===null&&(be=Tt&&s!=="on"),this.#l.has("a11y")||(this.#r=Array.isArray(e)?e:[]),this.#l.has("extensions")||(this.#n={...ye(),...a??{}}),this.#l.has("sticky")||(this.#o=document.documentElement.hasAttribute("data-sticky"))}#A(e){return e!==""&&e!==void 0}#y(e){return e==="compact"?"compact":e==="spacious"?"spacious":"default"}#C(e,a){return e?a==="compact"?"compact":a==="spacious"?"spacious":"default":""}#B(e){return e!==""&&e!==void 0}#b(e){return e==="flush"?"flush":e==="elevated"?"elevated":"default"}#$(e,a){return e?a==="flush"?"flush":a==="elevated"?"elevated":"default":""}#w(e){if(!e)return"card";let a=e.split(/\s+/);for(let s of a)if(s==="stretch"||s==="integrated")return s;return"card"}#v(e){return e?e.split(/\s+/).includes("fixed"):!1}#T(e,a){let s=[];return e&&e!=="card"&&s.push(e),a&&s.push("fixed"),s.join(" ")||"card"}#e(e){return this.#t?.querySelector(e)??null}#H(){this.#a=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button"),this.#a||(this.#a=document.createElement("button"),this.#a.setAttribute("type","button"),this.#a.setAttribute("data-trigger",""),this.#a.setAttribute("data-minted",""),this.#a.className="settings-trigger",this.#a.innerHTML=Mt,this.prepend(this.#a)),this.#a.hasAttribute("data-minted")&&this.#a.setAttribute("aria-label",this.#i("trigger")),this.#a.setAttribute("aria-haspopup","dialog"),this.#a.setAttribute("aria-expanded","false"),this.#t=document.createElement("div"),this.#t.className="settings-panel",this.#t.setAttribute("role","dialog"),this.#t.setAttribute("aria-label",this.#i("dialog")),this.#t.tabIndex=-1;let e=`settings-panel-${this.#f}`;this.#t.id=e,this.#a.setAttribute("aria-controls",e),this.#t.innerHTML=this.#I(),this.appendChild(this.#t)}#I(){let{mode:e,brand:a,fluid:s,backdrop:r,backdropChrome:n,pageBgType:i,pageBgColor:f,pageBgGradStart:w,pageBgGradEnd:E,pageBgGradDir:_}=m.getState(),T=[...this.#r],p={...this.#n},y=q.load(),x=this.#A(s),A=this.#y(s),b=this.#B(r),C=this.#b(r),c=this.#f,o=d=>this.#V(d),B=(d,l,v,ct,dt,Se={})=>`
|
|
1
|
+
var lt=Object.defineProperty;var ke=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ee=(t,e)=>{for(var a in e)lt(t,a,{get:e[a],enumerable:!0})};var st={};Ee(st,{destroyStickyManager:()=>Bt,findBannerHeader:()=>tt,initStickyManager:()=>Ct});function tt(){for(let t of document.querySelectorAll("header"))if(!t.parentElement?.closest(At))return t;return null}function O(){let t=document.documentElement;if(!t.hasAttribute("data-sticky"))return;let e=tt();e&&!e.hasAttribute("data-sticky")&&(e.dataset.sticky="",me.add(e)),e&&re&&!fe.has(e)&&(re.observe(e),fe.add(e));let a=e?.hasAttribute("data-sticky")&&getComputedStyle(e).position!=="static",s=e&&a?e.getBoundingClientRect().height:0;t.style.setProperty("--sticky-offset",`${s}px`)}function at(){O()}function Ct(){if(se){O();return}se=!0,re=new ResizeObserver(O),fe=new WeakSet,O(),requestAnimationFrame(O),document.fonts?.ready?.then(O),window.addEventListener("resize",O,{passive:!0}),document.addEventListener("toggle",at,!0)}function Bt(){if(se){se=!1,window.removeEventListener("resize",O),document.removeEventListener("toggle",at,!0),re?.disconnect();for(let t of me)delete t.dataset.sticky;me.clear(),document.documentElement.style.removeProperty("--sticky-offset")}}var se,re,me,fe,At,rt=ke(()=>{se=!1,me=new Set,fe=new WeakSet,At='article, aside, main, nav, section, [role="article"], [role="complementary"], [role="main"], [role="navigation"], [role="region"]'});var it={};Ee(it,{SoundManager:()=>$t});var nt,pe,$t,ot=ke(()=>{nt="vb-sound",pe={enabled:!1,volume:.5},$t={_ctx:null,_enabled:!1,_volume:.5,_initialized:!1,init(){if(this._initialized)return this;let t=this._load();return this._enabled=t.enabled,this._volume=t.volume,this._initialized=!0,this},_getContext(){return this._ctx||(this._ctx=new(window.AudioContext||window.webkitAudioContext)),this._ctx.state==="suspended"&&this._ctx.resume(),this._ctx},_load(){try{let t=localStorage.getItem(nt);return t?{...pe,...JSON.parse(t)}:{...pe}}catch{return{...pe}}},_save(t){try{let e=this._load();localStorage.setItem(nt,JSON.stringify({...e,...t}))}catch{}},_playTone(t,e,a="sine"){if(!this._enabled)return;let s=this._getContext(),r=s.createOscillator(),n=s.createGain();r.connect(n),n.connect(s.destination),r.frequency.value=t,r.type=a,n.gain.value=this._volume*.3,r.start(),n.gain.exponentialRampToValueAtTime(.01,s.currentTime+e),r.stop(s.currentTime+e)},enable(){this._enabled=!0,this._save({enabled:!0}),this.play("click")},disable(){this._enabled=!1,this._save({enabled:!1})},toggle(){return this._enabled?this.disable():this.enable(),this._enabled},isEnabled(){return this._enabled},setVolume(t){this._volume=Math.max(0,Math.min(1,t)),this._save({volume:this._volume})},getVolume(){return this._volume},play(t){if(this._enabled)switch(t){case"click":this._playTone(800,.1);break;case"success":this._playTone(523,.1),setTimeout(()=>this._playTone(659,.1),100),setTimeout(()=>this._playTone(784,.15),200);break;case"error":this._playTone(200,.15,"sawtooth"),setTimeout(()=>this._playTone(180,.2,"sawtooth"),150);break;case"notification":this._playTone(880,.1),setTimeout(()=>this._playTone(1100,.15),100);break;case"soft":this._playTone(600,.05);break;case"tick":this._playTone(1200,.02,"square");break}},getState(){return{enabled:this._enabled,volume:this._volume}}}});var Ot=window.matchMedia("(prefers-reduced-motion: reduce)");var _e=new Map;function xe(t,e,a={}){let s=a.priority??10,r={impl:e,bundle:a.bundle,contract:a.contract,priority:s},n=_e.get(t);if(customElements.get(t)){if(!n||n.priority>=s){n&&n.priority===s&&n.impl!==e&&console.warn(`[VB Bundle] Tag <${t}> already registered by "${n.bundle}" (priority ${n.priority}). Skipping "${a.bundle}".`);return}console.warn(`[VB Bundle] Tag <${t}> defined by "${n.bundle}" cannot be replaced (customElements.define is permanent). "${a.bundle}" has higher priority but arrived late.`);return}if(n&&n.priority>=s){n.priority===s&&console.warn(`[VB Bundle] Tag <${t}> already registered by "${n.bundle}". Skipping "${a.bundle}" (first wins at equal priority).`);return}_e.set(t,r),customElements.define(t,e)}var Y=class extends HTMLElement{#a=[];#t;constructor(){super(),this.hasAttribute("data-upgraded")&&this.removeAttribute("data-upgraded")}connectedCallback(){this.hasAttribute("data-upgraded")||this.setup()!==!1&&(this.setAttribute("data-upgraded",""),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent(`${this.localName}:upgraded`,{bubbles:!0}))}))}disconnectedCallback(){for(let e of this.#a)e();this.#a=[],this.removeAttribute("data-upgraded"),this.teardown()}listen(e,a,s,r){e.addEventListener(a,s,r),this.#a.push(()=>e.removeEventListener(a,s,r))}_reinit(){for(let e of this.#a)e();this.#a=[],this.teardown(),this.removeAttribute("data-upgraded"),this.isConnected&&this.setup()!==!1&&this.setAttribute("data-upgraded","")}setup(){}teardown(){}setState(e,a){this.#t||(this.#t=this.attachInternals());let s=this.#t.states;try{a?s.add(e):s.delete(e)}catch{let r=`--${e}`;a?s.add(r):s.delete(r)}}_adoptInternals(e){this.#t||(this.#t=e)}#s(){return this.constructor.formAssociated&&this.#t?this.#t:null}get validity(){return this.#s()?.validity}get validationMessage(){return this.#s()?.validationMessage??""}get willValidate(){return this.#s()?.willValidate??!1}get form(){return this.#s()?.form??null}checkValidity(){return this.#s()?.checkValidity()??!0}reportValidity(){return this.#s()?.reportValidity()??!0}};var R=new Map,ie=new Map;var Ae=null;function Ce(){if(typeof window<"u"&&window.__VB_THEME_BASE)return String(window.__VB_THEME_BASE).replace(/\/$/,"");if(Ae)return Ae;if(typeof document<"u"){let t=document.querySelectorAll('script[src*="vanilla-breeze"]');for(let e of t){let a=e.getAttribute("src");if(a){let s=a.lastIndexOf("/");if(s!==-1)return a.slice(0,s)}}}return"/cdn"}var ht=new Set(["default","a11y-high-contrast","a11y-large-text","a11y-dyslexia","modern","minimal","classic"]),ut=new Set(["kawaii","memphis"]);function Be(t){return typeof CSS<"u"&&CSS.escape?CSS.escape(t):String(t).replace(/["\\]/g,"\\$&")}function $e(t){document.querySelectorAll(`link[data-vb-theme-preload="${Be(t)}"]`).forEach(e=>e.remove())}function oe(t){return ut.has(t)}function gt(t,e){return`${e}/themes/${t}.css`}function Te(t,e){if(!oe(t))return Promise.resolve();if(ie.has(t))return ie.get(t);let a=import(`${e}/packs/${t}.full.js`).catch(()=>{});return ie.set(t,a),a}function mt(t,e){let a=Ce(),s=()=>{(oe(e)||t.hasAttribute("data-vb-pack"))&&Te(e,a)};return t.getAttribute("data-vb-theme-state")==="error"?Promise.reject(new Error(`Failed to load theme: ${e}`)):t.getAttribute("data-vb-theme-state")==="ready"||t.sheet?(s(),Promise.resolve()):new Promise((r,n)=>{let i=()=>{t.setAttribute("data-vb-theme-state","ready"),w(),s(),r(void 0)},f=()=>{t.setAttribute("data-vb-theme-state","error"),R.delete(e),w(),n(new Error(`Failed to load theme: ${e}`))},w=()=>{t.removeEventListener("load",i),t.removeEventListener("error",f)};t.addEventListener("load",i,{once:!0}),t.addEventListener("error",f,{once:!0})})}async function N(t){if(!t||ht.has(t))return;if(R.has(t))return R.get(t);if(typeof document<"u"){let s=document.querySelector(`link[data-vb-theme="${Be(t)}"]`);if(s){let r=mt(s,t);return R.set(t,r),r}}let e=Ce(),a=oe(t)?pt(t,e):ft(t,e);return R.set(t,a),a}async function ft(t,e){let a=gt(t,e);return new Promise((s,r)=>{$e(t);let n=document.createElement("link");n.rel="stylesheet",n.href=a,n.setAttribute("data-vb-theme",t),n.setAttribute("data-vb-theme-state","loading"),n.onload=()=>{n.setAttribute("data-vb-theme-state","ready"),s()},n.onerror=()=>{n.setAttribute("data-vb-theme-state","error"),n.remove(),R.delete(t),r(new Error(`Failed to load theme: ${t}`))},document.head.appendChild(n)})}function pt(t,e){let a=`${e}/packs/${t}.theme.css`,s=`${e}/packs/${t}.effects.css`;return new Promise((r,n)=>{$e(t);let i=document.createElement("link");i.rel="stylesheet",i.href=a,i.setAttribute("data-vb-theme",t),i.setAttribute("data-vb-pack",t),i.setAttribute("data-vb-theme-state","loading"),i.onload=()=>{i.setAttribute("data-vb-theme-state","ready");let f=document.createElement("link");f.rel="stylesheet",f.href=s,f.setAttribute("data-vb-pack-effects",t),document.head.appendChild(f),Te(t,e),r()},i.onerror=()=>{i.setAttribute("data-vb-theme-state","error"),i.remove(),R.delete(t),n(new Error(`Failed to load pack: ${t}`))},document.head.appendChild(i)})}var Fe=[{id:"default",name:"Default",swatchBg:"#3b82f6",seeds:{}},{id:"ocean",name:"Ocean",swatchBg:"#0891b2",seeds:{"--hue-primary":200,"--hue-secondary":180,"--hue-accent":45,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"45%","--chroma-secondary":.1,"--lightness-accent":"70%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"forest",name:"Forest",swatchBg:"#059669",seeds:{"--hue-primary":145,"--hue-secondary":90,"--hue-accent":30,"--lightness-primary":"45%","--chroma-primary":.15,"--lightness-secondary":"55%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"58%","--chroma-primary":.12}},{id:"sunset",name:"Sunset",swatchBg:"#ea580c",seeds:{"--hue-primary":25,"--hue-secondary":0,"--hue-accent":280,"--lightness-primary":"57%","--chroma-primary":.2,"--lightness-secondary":"55%","--chroma-secondary":.18,"--lightness-accent":"55%","--chroma-accent":.18},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.16}},{id:"rose",name:"Rose",swatchBg:"#e11d48",seeds:{"--hue-primary":350,"--hue-secondary":330,"--hue-accent":200,"--lightness-primary":"55%","--chroma-primary":.18,"--lightness-secondary":"50%","--chroma-secondary":.14,"--lightness-accent":"60%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.14}},{id:"lavender",name:"Lavender",swatchBg:"#a855f7",seeds:{"--hue-primary":280,"--hue-secondary":300,"--hue-accent":60,"--lightness-primary":"55%","--chroma-primary":.14,"--lightness-secondary":"50%","--chroma-secondary":.12,"--lightness-accent":"70%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.12}},{id:"coral",name:"Coral",swatchBg:"#f97316",seeds:{"--hue-primary":15,"--hue-secondary":25,"--hue-accent":180,"--lightness-primary":"57%","--chroma-primary":.18,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"55%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.15}},{id:"slate",name:"Slate",swatchBg:"#64748b",seeds:{"--hue-primary":220,"--hue-secondary":210,"--hue-accent":45,"--lightness-primary":"48%","--chroma-primary":.1,"--lightness-secondary":"45%","--chroma-secondary":.06,"--lightness-accent":"68%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.08}},{id:"emerald",name:"Emerald",swatchBg:"#10b981",seeds:{"--hue-primary":160,"--hue-secondary":140,"--hue-accent":30,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"48%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"amber",name:"Amber",swatchBg:"#f59e0b",seeds:{"--hue-primary":45,"--hue-secondary":30,"--hue-accent":240,"--lightness-primary":"56%","--chroma-primary":.16,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"52%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"68%","--chroma-primary":.14}},{id:"indigo",name:"Indigo",swatchBg:"#6366f1",seeds:{"--hue-primary":250,"--hue-secondary":270,"--hue-accent":35,"--lightness-primary":"48%","--chroma-primary":.18,"--lightness-secondary":"45%","--chroma-secondary":.14,"--lightness-accent":"68%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"62%","--chroma-primary":.14}}],Me=[{id:"default",name:"Default",hue:210,shape:"balanced",character:"The default",swatchBg:"#3b82f6",tier:"core"},{id:"modern",name:"Modern",hue:270,shape:"rounded",character:"Vibrant & elevated",swatchBg:"#6366f1",tier:"core"},{id:"minimal",name:"Minimal",hue:240,shape:"sharp",character:"Clean & flat",swatchBg:"#71717a",tier:"core"},{id:"classic",name:"Classic",hue:220,shape:"subtle",character:"Serif & elegant",swatchBg:"#92400e",tier:"core"}],ce=[{id:"swiss",name:"Swiss",icon:"grid-3x3",character:"Precision grid",swatchBg:"#ff3e00",swatchFg:"white",tier:"showcase",category:"Design"},{id:"brutalist",name:"Brutalist",icon:"square",character:"Raw, industrial",swatchBg:"#1a1a1a",swatchFg:"#f5f5f5",tier:"showcase",category:"Design"},{id:"art-deco",name:"Art Deco",icon:"crown",character:"1920s luxury",swatchBg:"#1A1A1A",swatchFg:"#C9A84C",tier:"showcase",category:"Design"},{id:"editorial",name:"Editorial",icon:"newspaper",character:"Magazine elegance",swatchBg:"#1a1a1a",swatchFg:"#c9a227",tier:"showcase",category:"Content"},{id:"genai",name:"GenAI",icon:"sparkles",character:"AI aesthetic",swatchBg:"#1a0a2e",swatchFg:"#a855f7",tier:"showcase",category:"Modern"},{id:"glassmorphism",name:"Glass",icon:"glass-water",character:"Frosted surfaces",swatchBg:"#667eea",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"startup",name:"Startup",icon:"rocket",character:"SaaS energy",swatchBg:"#4f46e5",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"organic",name:"Organic",icon:"leaf",character:"Natural, handcrafted",swatchBg:"#2d5016",swatchFg:"#faf5e6",tier:"showcase",category:"Creative"},{id:"rough",name:"Rough",icon:"pencil",character:"Hand-drawn sketch",swatchBg:"#f5f0e8",swatchFg:"#3a3a3a",tier:"showcase",category:"Creative"},{id:"cyber",name:"Cyber",icon:"zap",character:"Neon futuristic",swatchBg:"#0a0a1a",swatchFg:"#00ff88",tier:"showcase",category:"Creative"},{id:"journal",name:"Journal",icon:"notebook-pen",character:"Dot-grid bullet journal",swatchBg:"#f3ecdc",swatchFg:"#27313f",tier:"showcase",category:"Creative"},{id:"vaporwave",name:"Vaporwave",icon:"radio",character:"Neon dreamy",swatchBg:"#2b0040",swatchFg:"#ff6ad5",tier:"showcase",category:"Aesthetic"},{id:"neumorphism",name:"Neumorph",icon:"circle",character:"Soft embossed",swatchBg:"#e0e0e0",swatchFg:"#a0a0a0",tier:"showcase",category:"Aesthetic"},{id:"bauhaus",name:"Bauhaus",icon:"shapes",character:"Geometric",swatchBg:"#F1FAEE",swatchFg:"#E63946",tier:"showcase",category:"Aesthetic"},{id:"claymorphism",name:"Clay",icon:"circle-dot",character:"Puffy 3D",swatchBg:"#f0f0f5",swatchFg:"#FF6B9D",tier:"showcase",category:"Aesthetic"},{id:"alpha1999",name:"Alpha1999",icon:"orbit",character:"Space retro-fi",swatchBg:"#0a0a14",swatchFg:"#d4880f",tier:"showcase",category:"Signature"},{id:"super2026",name:"Super2026",icon:"triangle",character:"Supergraphic bold",swatchBg:"#f5f0e6",swatchFg:"#c23616",tier:"showcase",category:"Signature"},{id:"magna",name:"Magna",icon:"orbit",character:"Odyssey 2 retro",swatchBg:"#0d0b14",swatchFg:"#f97316",tier:"showcase",category:"Signature"},{id:"win9x",name:"Win9x",icon:"monitor",character:"Classic desktop",swatchBg:"#008080",swatchFg:"#c0c0c0",tier:"showcase",category:"OS Styles"},{id:"nes",name:"NES",icon:"joystick",character:"Console pixels",swatchBg:"#bcbcbc",swatchFg:"#e40521",tier:"showcase",category:"OS Styles"},{id:"8bit",name:"8-Bit",icon:"gamepad-2",character:"Retro pixel art",swatchBg:"#000080",swatchFg:"#ffff00",tier:"showcase",category:"OS Styles"}],de=[{id:"nord",name:"Nord",icon:"snowflake",character:"Arctic calm",swatchBg:"#2E3440",swatchFg:"#81A1C1",tier:"community",category:"Editor Palettes"},{id:"solarized",name:"Solarized",icon:"sun-dim",character:"Engineered precision",swatchBg:"#002B36",swatchFg:"#268BD2",tier:"community",category:"Editor Palettes"},{id:"dracula",name:"Dracula",icon:"moon-star",character:"Dark elegance",swatchBg:"#282A36",swatchFg:"#BD93F9",tier:"community",category:"Editor Palettes"},{id:"catppuccin-mocha",name:"Catppuccin",icon:"coffee",character:"Warm pastels",swatchBg:"#1E1E2E",swatchFg:"#CBA6F7",tier:"community",category:"Editor Palettes"},{id:"catppuccin-latte",name:"Ctp Latte",icon:"coffee",character:"Cozy daytime",swatchBg:"#eff1f5",swatchFg:"#8839ef",tier:"community",category:"Editor Palettes"},{id:"catppuccin-frappe",name:"Ctp Frapp\xE9",icon:"coffee",character:"Cool twilight",swatchBg:"#303446",swatchFg:"#ca9ee6",tier:"community",category:"Editor Palettes"},{id:"catppuccin-macchiato",name:"Ctp Macchiato",icon:"coffee",character:"Deep blue",swatchBg:"#24273a",swatchFg:"#c6a0f6",tier:"community",category:"Editor Palettes"},{id:"gruvbox",name:"Gruvbox",icon:"palette",character:"Retro warmth",swatchBg:"#282828",swatchFg:"#ebdbb2",tier:"community",category:"Editor Palettes"},{id:"tokyo-night",name:"Tokyo Night",icon:"moon",character:"Night-owl vibes",swatchBg:"#1a1b26",swatchFg:"#7aa2f7",tier:"community",category:"Editor Palettes"},{id:"rose-pine",name:"Ros\xE9 Pine",icon:"flower-2",character:"Muted elegance",swatchBg:"#191724",swatchFg:"#ebbcba",tier:"community",category:"Editor Palettes"},{id:"cottagecore",name:"Cottagecore",icon:"flower-2",character:"Pastoral",swatchBg:"#fdf8f0",swatchFg:"#7d8c6d",tier:"community",category:"Niche"},{id:"terminal",name:"Terminal",icon:"terminal",character:"Retro CRT",swatchBg:"#0d1117",swatchFg:"#00ff00",tier:"community",category:"Niche"},{id:"clinical",name:"Clinical",icon:"heart-pulse",character:"Sterile precision",swatchBg:"#ffffff",swatchFg:"#0077b6",tier:"community",category:"Industry"},{id:"financial",name:"Financial",icon:"landmark",character:"Navy + gold",swatchBg:"#1b2a4a",swatchFg:"#c9a84c",tier:"community",category:"Industry"},{id:"government",name:"Government",icon:"shield",character:"Official",swatchBg:"#002868",swatchFg:"#bf0a30",tier:"community",category:"Industry"},{id:"dawn",name:"Dawn",icon:"sunrise",character:"Golden morning",swatchBg:"#fef3e2",swatchFg:"#d4a574",tier:"community",category:"Mood/Time"},{id:"dusk",name:"Dusk",icon:"sunset",character:"Twilight",swatchBg:"#1a1b2e",swatchFg:"#e5a858",tier:"community",category:"Mood/Time"},{id:"midnight",name:"Midnight",icon:"moon",character:"Deep night",swatchBg:"#0d1117",swatchFg:"#58a6ff",tier:"community",category:"Mood/Time"},{id:"high-noon",name:"High Noon",icon:"sun",character:"Maximum bright",swatchBg:"#ffffff",swatchFg:"#e63946",tier:"community",category:"Mood/Time"}],Pe=[{id:"kawaii",name:"Kawaii",icon:"heart",character:"Cute aesthetic",swatchBg:"#ffb7c5",swatchFg:"#ff69b4",tier:"showcase",category:"Packs"},{id:"memphis",name:"Memphis",icon:"star",character:"Bold patterns",swatchBg:"#FFF8F0",swatchFg:"#d03040",tier:"showcase",category:"Packs"}];var Vt=[...ce,...de],Ht=[...Me,...ce,...de,...Pe],L=t=>ce.filter(e=>e.category===t),Oe=[{label:"Style",themes:Me,tier:"core"},{label:"Design",themes:L("Design"),tier:"showcase"},{label:"Content",themes:L("Content"),tier:"showcase"},{label:"Modern",themes:L("Modern"),tier:"showcase"},{label:"Creative",themes:L("Creative"),tier:"showcase"},{label:"Aesthetic",themes:L("Aesthetic"),tier:"showcase"},{label:"Signature",themes:L("Signature"),tier:"showcase"},{label:"OS Styles",themes:L("OS Styles"),tier:"showcase"},{label:"Packs",themes:Pe,tier:"showcase"},{label:"More Themes",themes:de,tier:"community"}];function yt(){let t=globalThis.localStorage;if(!t)throw new Error("VBStore: localStorage is not available in this environment");return{async getRaw(e){return t.getItem(e)},async setRaw(e,a){t.setItem(e,a)},async removeRaw(e){t.removeItem(e)},async keys(e){let a=[];for(let s=0;s<t.length;s++){let r=t.key(s);r&&r.startsWith(e)&&a.push(r)}return a}}}var J="__vbStoreBackend",X=globalThis;function F(){return X[J]||(X[J]=yt()),X[J]}function le(t,e){if(typeof t!="string"||!t)throw new TypeError("VBStore: namespace must be a non-empty string");if(typeof e!="string"||!e)throw new TypeError("VBStore: key must be a non-empty string");return`vb:${t}:${e}`}function De(t){if(typeof t!="string"||!t)throw new TypeError("VBStore: namespace must be a non-empty string");return`vb:${t}:`}function Re(t){try{let e=JSON.parse(t);if(e&&typeof e=="object"&&typeof e.timestamp=="number")return e}catch{}return null}var u={configure(t={}){X[J]=t.backend??null},async set(t,e,a){let s={data:a,timestamp:Date.now()};await F().setRaw(le(t,e),JSON.stringify(s))},async get(t,e,a){let s=await F().getRaw(le(t,e));if(s==null)return null;let r=Re(s);return!r||a?.maxAge!=null&&Date.now()-r.timestamp>a.maxAge?null:r.data},async remove(t,e){await F().removeRaw(le(t,e))},async list(t){let e=De(t),a=await F().keys(e),s=[];for(let r of a){let n=await F().getRaw(r);if(n==null)continue;let i=Re(n);i&&s.push({key:r.slice(e.length),data:i.data,timestamp:i.timestamp})}return s},async clear(t){let e=De(t),a=await F().keys(e);for(let s of a)await F().removeRaw(s)},async clearAll(){let t=await F().keys("vb:");for(let e of t)await F().removeRaw(e)},async setMany(t,e){for(let[a,s]of e)await u.set(t,a,s)}};if(typeof window<"u"){let t=window.VB??(window.VB={});t.store??=u}var Q="theme",Z="current",je=2,te={accent:"data-accent",borderStyle:"data-border-style",iconSet:"data-icon-set",fluid:"data-fluid",backdrop:"data-backdrop",backdropChrome:"data-backdrop-chrome"},S={mode:"auto",brand:"default",accent:null,borderStyle:null,iconSet:null,fluid:null,backdrop:null,backdropChrome:null,pageBgType:"",pageBgColor:"",pageBgGradStart:"",pageBgGradEnd:"",pageBgGradDir:""};function Le(t){if(!t||typeof t!="object")return null;let e={...t};if(!(Number(e.v)>=je))for(let a of Object.keys(te))(e[a]===""||a==="accent"&&e[a]==="default")&&(e[a]=null);return e}function M(t,e){return t??e??""}var he=null;function $(){if(he)return he;let t=document.documentElement,e=window.__vbAuthoredRoot,a=r=>{if(e&&typeof e=="object"){if(r in e)return e[r]??null;if(r==="data-mode")return null}return t.getAttribute(r)},s={theme:a("data-theme"),mode:a("data-mode"),themeSource:a("data-theme-source")};for(let[r,n]of Object.entries(te))s[r]=a(n);return he=s,s}function bt(t){try{let e=document.createElement("canvas");e.width=e.height=1;let a=e.getContext("2d",{willReadFrequently:!0});if(!a)return t;a.fillStyle=t,a.fillRect(0,0,1,1);let[s,r,n]=a.getImageData(0,0,1,1).data;return"#"+[s,r,n].map(i=>i.toString(16).padStart(2,"0")).join("")}catch{return t}}function ee(t,e){let a=(t||"").split(/\s+/).filter(Boolean);return e==="site"?a[0]&&!a[0].startsWith("a11y-")?a[0]:"":a.find(s=>!s.startsWith("a11y-"))||""}function wt(t,e,a,s=!1){let r=(t||"").split(/\s+/).filter(n=>n&&n!==e&&n!==a);return a!=="default"?[a,...r].join(" "):(s&&r.length?["default",...r]:r).join(" ")}function Ve(t){return t==="light"||t==="dark"?t:null}function He(t,e,a){return e||(t==="light"||t==="dark"?t:a?"dark":"light")}function Ie(t,e,a){let s=ee(e,a);return a==="site"&&s?s:t?.brand&&t.brand!==S.brand?t.brand:s||S.brand}var qe=["--hue-primary","--hue-secondary","--hue-accent","--lightness-primary","--chroma-primary","--lightness-secondary","--chroma-secondary","--lightness-accent","--chroma-accent"],h=null,U="",ue="",I=null,V=null,m={_initPromise:null,async init(){return this._initPromise?this._initPromise:(this._initPromise=(async()=>{let t=Le(await u.get(Q,Z));h=t?{...S,...t}:{...S},V=$().themeSource??null,U=ee($().theme??"",V),ue=ee(document.documentElement.dataset.theme||"",V),I=Ve($().mode),h.brand=Ie(t,$().theme??"",V);try{await N(h.brand)}catch{h.brand!==U&&(h.brand=U||S.brand)}return this.apply(h),this._watchSystemPreference(),this._watchRootAttributes(),this._watchCrossDocumentStorage(),h})(),this._initPromise)},_watchCrossDocumentStorage(){typeof window>"u"||window.addEventListener("storage",async t=>{if(t.key!==`vb:${Q}:${Z}`||!t.newValue)return;let e;try{let s=JSON.parse(t.newValue);e=Le(s?.data)}catch{return}if(!e)return;let a={...S,...h,...e};if(a.brand=Ie(e,$().theme??"",V),a.brand&&a.brand!==h?.brand)try{await N(a.brand)}catch{a.brand=U||S.brand}h=a,this.apply(h||{})})},load(){return h?{...h}:{...S}},save(t){let e={...h??S,...t,v:je};return h=e,u.set(Q,Z,e).catch(()=>{}),e},apply({mode:t="auto",brand:e="default",borderStyle:a=null,iconSet:s=null,fluid:r=null,backdrop:n=null,backdropChrome:i=null,pageBgType:f="",pageBgColor:w="",pageBgGradStart:E="",pageBgGradEnd:_="",pageBgGradDir:T=""}={}){let p=document.documentElement,y=$(),x=He(t,I,window.matchMedia("(prefers-color-scheme: dark)").matches);p.dataset.mode=x;let A=V==="site",b=wt(p.dataset.theme||"",ue,e,A);b?p.dataset.theme=b:delete p.dataset.theme,ue=e==="default"&&!b.startsWith("default")?"":e;let C=a||y.borderStyle||this._readCSSHint("--theme-border-style");this._setRootAttr("data-border-style",C&&C!=="clean"?C:"");let c=s||y.iconSet||this._readCSSHint("--theme-icon-set");this._setRootAttr("data-icon-set",c&&c!=="lucide"?c:"");let o=M(r,y.fluid);this._setRootAttr("data-fluid",o,!0);let B=M(n,y.backdrop);this._setRootAttr("data-backdrop",B,!0);let g=M(i,y.backdropChrome);if(this._setRootAttr("data-backdrop-chrome",g&&g!=="card"?g:""),f==="color"&&w)p.style.setProperty("--page-bg-color",w),p.style.removeProperty("--page-bg-gradient");else if(f==="gradient"&&E&&_){let d=T||"to bottom";p.style.setProperty("--page-bg-gradient",`linear-gradient(${d}, ${E}, ${_})`),p.style.removeProperty("--page-bg-color")}else p.style.removeProperty("--page-bg-color"),p.style.removeProperty("--page-bg-gradient");this._applyAccent(this.load().accent);let G=this.getState().accent;this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{mode:t,brand:e,accent:G,borderStyle:C,iconSet:c,fluid:o,backdrop:B,backdropChrome:g,pageBgType:f,effectiveMode:x}}))},_setRootAttr(t,e,a=!1){let s=document.documentElement;e?s.setAttribute(t,e):a&&this._authoredHas(t)?s.setAttribute(t,""):s.removeAttribute(t)},_authoredHas(t){let e=Object.keys(te).find(s=>te[s]===t);return e?this.load()[e]==null&&$()[e]!=null:!1},_syncThemeColor(){let t=document.querySelectorAll('meta[name="theme-color"]');if(!t.length)return;let e=r=>!r||r==="transparent"||/^rgba\(.*,\s*0\)$/.test(r),a=getComputedStyle(document.documentElement).backgroundColor;if(e(a)){let r=document.createElement("span");r.style.setProperty("position","absolute"),r.style.setProperty("background-color","var(--color-background)"),(document.body||document.documentElement).append(r),a=getComputedStyle(r).backgroundColor,r.remove()}if(e(a))return;let s=bt(a);t.forEach(r=>{r.removeAttribute("media"),r.setAttribute("content",s)})},setMode(t){I=null;let e=this.save({mode:t});this.apply(e)},async setBrand(t){try{await N(t)}catch(a){console.warn(`[VB] Theme "${t}" failed to load, using default`,a),t="default"}let e=this.save({brand:t});this.apply(e)},setAccent(t){this.save({accent:t}),this._applyAccent(t),this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}}))},setBorderStyle(t){let e=this.save({borderStyle:t});this.apply(e)},setIconSet(t){let e=this.save({iconSet:t});this.apply(e)},setFluid(t){let e=this.save({fluid:t});this.apply(e)},setBackdrop(t){let e=this.save({backdrop:t});this.apply(e)},setBackdropChrome(t){let e=this.save({backdropChrome:t});this.apply(e)},setPageBg({type:t="",color:e="",gradStart:a="",gradEnd:s="",gradDir:r=""}={}){let n=this.save({pageBgType:t,pageBgColor:e,pageBgGradStart:a,pageBgGradEnd:s,pageBgGradDir:r});this.apply(n)},getEffectiveMode(){let{mode:t}=this.load();return He(t,I,window.matchMedia("(prefers-color-scheme: dark)").matches)},getState(){let{mode:t,brand:e,accent:a,borderStyle:s,iconSet:r,fluid:n,backdrop:i,backdropChrome:f,pageBgType:w,pageBgColor:E,pageBgGradStart:_,pageBgGradEnd:T,pageBgGradDir:p}=this.load(),y=typeof document>"u"?{}:$(),x=(A,b)=>b==null&&y[A]===""?"default":M(b,y[A]);return{mode:t,brand:e,accent:M(a,y.accent)||"default",borderStyle:M(s,y.borderStyle),iconSet:M(r,y.iconSet),fluid:x("fluid",n),backdrop:x("backdrop",i),backdropChrome:M(f,y.backdropChrome),pageBgType:w,pageBgColor:E,pageBgGradStart:_,pageBgGradEnd:T,pageBgGradDir:p,effectiveMode:this.getEffectiveMode()}},toggleMode(){let e=this.getEffectiveMode()==="dark"?"light":"dark";this.setMode(e)},reset(){h={...S,brand:U||S.brand},I=Ve($().mode),u.remove(Q,Z).catch(()=>{});let t=document.documentElement;t.style.removeProperty("--page-bg-color"),t.style.removeProperty("--page-bg-gradient");for(let e of qe)t.style.removeProperty(e);this.apply(h)},_readCSSHint(t){return getComputedStyle(document.documentElement).getPropertyValue(t).trim()},_applyAccent(t){let e=document.documentElement;for(let s of qe)e.style.removeProperty(s);if(t==null){let s=$().accent;s?e.dataset.accent=s:delete e.dataset.accent;return}let a=Fe.find(s=>s.id===t);if(!a||!a.seeds||Object.keys(a.seeds).length===0){delete e.dataset.accent;return}e.dataset.accent=a.id},_watchRootAttributes(){this._rootObserver||(this._rootObserver=new MutationObserver(t=>{for(let e of t)e.attributeName==="data-theme"?this._syncFromDataTheme():e.attributeName==="data-mode"&&this._syncFromDataMode()}),this._rootObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","data-mode"]}))},_syncFromDataTheme(){if(!h)return;let t=document.documentElement.dataset.theme||"",e=t.split(/\s+/).filter(Boolean),a=ee(t,V)||"default";a!==h.brand&&(h.brand=a,N(a).catch(()=>{}),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_syncFromDataMode(){if(!h)return;let t=document.documentElement.dataset.mode||"auto",e=this.getEffectiveMode();t!==e&&(I=null,h.mode=t,this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_watchSystemPreference(){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{let e=this.load();e.mode==="auto"&&this.apply(e)})}};if(typeof window<"u"){let t=window.VB??(window.VB={});t.themeManager??=m}var Ge="environment",We="preferences",ge={timeOfDay:!1,seasonal:!1},vt=900*1e3,P={...ge};function H(t,e,a){return t+(e-t)*Math.min(1,Math.max(0,a))}var q={_timer:null,_baseHues:null,_timeOverride:null,_monthOverride:null,async init(){let t=await u.get(Ge,We);P=t?{...ge,...t}:{...ge},(P.timeOfDay||P.seasonal)&&(this._captureBaseHues(),this._update(),this._startLoop()),window.addEventListener("vb:theme-change",()=>{this._hasActiveSource()&&requestAnimationFrame(()=>{this._captureBaseHues(),this._update()})})},load(){return{...P}},save(t){return P={...P,...t},u.set(Ge,We,P).catch(()=>{}),{...P}},setTimeOverride(t){this._timeOverride=t,this._hasActiveSource()&&this._update()},setMonthOverride(t){this._monthOverride=t,this._hasActiveSource()&&this._update()},setSource(t,e){let a=this.save({[t]:e});e?(this._captureBaseHues(),this._update(),this._startLoop()):this._hasActiveSource(a)?this._update():(this._clearModifiers(),this._stopLoop())},_hasActiveSource(t){let e=t||this.load();return e.timeOfDay||e.seasonal},_captureBaseHues(){let t=document.documentElement;t.style.removeProperty("--hue-primary"),t.style.removeProperty("--hue-secondary"),t.style.removeProperty("--hue-accent");let e=t.getAttribute("data-theme");if(e){let a=`[data-theme~="${e}"]`;for(let s of document.styleSheets)try{for(let r=0;r<s.cssRules.length;r++){let n=s.cssRules[r];if(n.selectorText?.includes(a)&&!n.selectorText.includes("dark")){let i=n.style?.getPropertyValue("--hue-primary");if(i){this._baseHues={primary:parseFloat(i)||260,secondary:parseFloat(n.style.getPropertyValue("--hue-secondary"))||200,accent:parseFloat(n.style.getPropertyValue("--hue-accent"))||30};return}}}}catch{}}this._baseHues={primary:260,secondary:200,accent:30}},_update(){let t=this.load(),e=0;t.timeOfDay&&(e+=this._getTimeOfDayOffset()),t.seasonal&&(e+=this._getSeasonalOffset());let a=document.documentElement;e!==0&&this._baseHues?(a.style.setProperty("--hue-primary",String(this._baseHues.primary+e)),a.style.setProperty("--hue-secondary",String(this._baseHues.secondary+e)),a.style.setProperty("--hue-accent",String(this._baseHues.accent+e*.5))):e===0&&this._clearModifiers()},_clearModifiers(){let t=document.documentElement;t.style.removeProperty("--hue-primary"),t.style.removeProperty("--hue-secondary"),t.style.removeProperty("--hue-accent")},_getTimeOfDayOffset(){let t=this._timeOverride??new Date().getHours()+new Date().getMinutes()/60;return t<5?-20:t<7?H(-20,20,(t-5)/2):t<10?H(20,5,(t-7)/3):t<14?H(5,0,(t-10)/4):t<17?H(0,-5,(t-14)/3):t<19?H(-5,15,(t-17)/2):t<21?H(15,-10,(t-19)/2):H(-10,-20,(t-21)/8)},_getHemisphere(){return window.__VB_ENV_LOCATION?.hemisphere||"north"},_getSeasonalOffset(){let t=this._monthOverride??new Date().getMonth(),a=this._getHemisphere()==="south"?(t+6)%12:t;return a>=2&&a<=4?5:a>=5&&a<=7?10:a>=8&&a<=10?-5:-10},_startLoop(){this._timer||(this._timer=setInterval(()=>this._update(),vt))},_stopLoop(){this._timer&&clearInterval(this._timer),this._timer=null}};var ae=null;function Ue(){return"0.6.1-03fa53103"}function St(){let t=document.querySelectorAll('script[src*="vanilla-breeze"]'),e="/cdn/sw.js";for(let a of t){let s=a.getAttribute("src");if(s){let r=s.lastIndexOf("/");if(r!==-1){e=s.slice(0,r)+"/sw.js";break}}}return e}function ze(){return ae||(ae=navigator.serviceWorker?.ready??Promise.reject(new Error("SW not supported"))),ae}function Ke(t){return new Promise((e,a)=>{navigator.serviceWorker?.controller?Ne(navigator.serviceWorker.controller,t,e,a):ze().then(s=>{let r=s.active||s.waiting||s.installing;r?Ne(r,t,e,a):a(new Error("No active service worker"))}).catch(a)})}function Ne(t,e,a,s){let r=new MessageChannel;r.port1.onmessage=n=>a(n.data),r.port1.onmessageerror=()=>s(new Error("Message error")),t.postMessage({type:e},[r.port2]),setTimeout(()=>s(new Error("SW message timeout")),5e3)}async function Ye(){return Ke("GET_STATUS")}async function Je(){return Ke("CLEAR_CACHE")}async function Xe(){let t=await ze();return await t.update(),{updated:!!t.waiting}}function kt(){return typeof window>"u"||!("serviceWorker"in navigator)?!1:window.__VB_SERVICE_WORKER?!0:document.querySelector('meta[name="vb-service-worker"]')?.content==="true"}if(kt()){let t=St();window.addEventListener("load",()=>{ae=navigator.serviceWorker.register(t).catch(e=>{console.warn("[VB] Service worker registration failed:",e)})})}var z="data-char-shortcuts",Et="vb:char-shortcuts-change",_t="vb:settings:extensions";function K(){return typeof document>"u"?!0:document.documentElement.getAttribute(z)!=="off"}function Qe(t){let e=document.documentElement,a=K();t?e.removeAttribute(z):e.setAttribute(z,"off"),a!==!!t&&window.dispatchEvent(new CustomEvent(Et,{detail:{enabled:!!t}}))}function xt(){try{let t=globalThis.localStorage?.getItem(_t);if(!t)return null;let e=JSON.parse(t)?.data?.charShortcuts;return typeof e=="boolean"?e:null}catch{return null}}var Ze=!0;function et(){return Ze}if(typeof document<"u"){let t=xt();t===null&&(Ze=K()),t===!1?document.documentElement.setAttribute(z,"off"):t===!0&&document.documentElement.removeAttribute(z)}var j=null,k="settings",ne={motionFx:!0,sounds:!1,charShortcuts:!0},ye=()=>({...ne,charShortcuts:K()}),Tt=document.documentElement.hasAttribute("data-sticky"),be=null,Ft={trigger:"Site settings",dialog:"Site settings",title:"Settings",close:"Close settings",appearance:"Appearance","color-mode":"Color mode","mode-auto":"Auto","mode-light":"Light","mode-dark":"Dark",theme:"Theme",accessibility:"Accessibility","high-contrast":"High Contrast","large-text":"Large Text",dyslexia:"Dyslexia-Friendly","char-shortcuts":"Single-Key Shortcuts",layout:"Layout",fluid:"Fluid Scaling",density:"Density","density-compact":"Compact","density-default":"Default","density-spacious":"Spacious",backdrop:"Canvas Backdrop","backdrop-style":"Style","backdrop-default":"Default","backdrop-flush":"Flush","backdrop-elevated":"Elevated",chrome:"Chrome","chrome-card":"Card","chrome-stretch":"Stretch","chrome-integrated":"Integrated","fixed-header":"Fixed Header","page-bg":"Page Background","page-bg-default":"Theme Default","page-bg-color":"Solid Color","page-bg-gradient":"Gradient","bg-color":"Color","grad-start":"Start","grad-end":"End","grad-direction":"Direction","dir-to-bottom":"Top \u2192 Bottom","dir-to-right":"Left \u2192 Right","dir-135deg":"Diagonal \u2198","dir-45deg":"Diagonal \u2197",sticky:"Sticky Navigation",effects:"Effects",motion:"Motion Effects",sounds:"Sound Effects",environment:"Environment","time-of-day":"Time-of-Day Shifts",seasonal:"Seasonal Tinting",system:"System","sw-label":"Service Worker:","sw-checking":"checking\u2026","sw-unsupported":"Not supported","sw-active":"Active ({n} cached files)","sw-unregistered":"Not registered","clear-cache":"Clear Cache",clearing:"Clearing\u2026",cleared:"Cache cleared","check-update":"Check for Updates",checking:"Checking\u2026","update-available":"Update available","up-to-date":"Up to date",failed:"Failed",reset:"Reset to Defaults","reset-confirm":"Reset all settings to defaults?","reset-yes":"Reset","reset-cancel":"Cancel","reset-done":"Settings reset to defaults"},Mt='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>';function D(t){return String(t).replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}async function we(t){let e=document.documentElement;t?e.dataset.sticky="":delete e.dataset.sticky;try{let a=await Promise.resolve().then(()=>(rt(),st));t?a.initStickyManager():a.destroyStickyManager()}catch{}}var ve=class extends Y{#a=null;#t=null;#s=!1;#u=!1;#d=0;#f="";#l=new Set;#p=[];#r=[];#n={...ne,charShortcuts:K()};#o=document.documentElement.hasAttribute("data-sticky");setup(){let e=++this.#d;return this.#f||=crypto.randomUUID().slice(0,8),this.#H(),this.#q(),this.#c(),this.listen(window,"vb:theme-change",this.#k),this.listen(window,"vb:extensions-change",this.#k),this.listen(window,"vb:a11y-themes-change",this.#k),this.#u&&(this.#u=!1,this.open()),this.#x().then(()=>{this.#h(e)&&this.#c()}),!0}teardown(){this.#d++;for(let e of this.#p)clearTimeout(e);this.#p=[],this.#s=!1,this.removeAttribute("open"),this.#a?.setAttribute("aria-expanded","false"),this.#t?.remove(),this.#t=null}#h(e){return e===this.#d&&this.isConnected}#i(e,a={}){let s=this.getAttribute(`data-label-${e}`)??Ft[e]??e;for(let[r,n]of Object.entries(a))s=s.replaceAll(`{${r}}`,String(n));return s}#V(e){return D(this.#i(e))}get data(){return{a11yThemes:[...this.#r],extensions:{...this.#n},sticky:this.#o}}set data(e){if(!e||typeof e!="object")return;let a=[],s=[];Array.isArray(e.a11yThemes)&&(this.#r=e.a11yThemes.map(String),s.push("a11y"),a.push(u.set(k,"a11y",this.#r)),this.#m(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[...this.#r]}))),e.extensions&&typeof e.extensions=="object"&&(this.#n={...ye(),...e.extensions},s.push("extensions"),a.push(u.set(k,"extensions",this.#n)),this.#_()),e.sticky!=null&&(this.#o=!!e.sticky,s.push("sticky"),a.push(u.set(k,"sticky",this.#o?"on":"off")),we(this.#o));for(let r of s)this.#l.add(r);this.#t&&this.#c(),Promise.allSettled(a).then(()=>{for(let r of s)this.#l.delete(r);this.#t&&this.#c(),this.dispatchEvent(new CustomEvent("settings-panel:data-changed",{detail:{data:this.data,source:"property"},bubbles:!0}))})}async#x(){let[e,a,s]=await Promise.all([u.get(k,"a11y"),u.get(k,"extensions"),u.get(k,"sticky")]);be===null&&(be=Tt&&s!=="on"),this.#l.has("a11y")||(this.#r=Array.isArray(e)?e:[]),this.#l.has("extensions")||(this.#n={...ye(),...a??{}}),this.#l.has("sticky")||(this.#o=document.documentElement.hasAttribute("data-sticky"))}#A(e){return e!==""&&e!==void 0}#y(e){return e==="compact"?"compact":e==="spacious"?"spacious":"default"}#C(e,a){return e?a==="compact"?"compact":a==="spacious"?"spacious":"default":""}#B(e){return e!==""&&e!==void 0}#b(e){return e==="flush"?"flush":e==="elevated"?"elevated":"default"}#$(e,a){return e?a==="flush"?"flush":a==="elevated"?"elevated":"default":""}#w(e){if(!e)return"card";let a=e.split(/\s+/);for(let s of a)if(s==="stretch"||s==="integrated")return s;return"card"}#v(e){return e?e.split(/\s+/).includes("fixed"):!1}#T(e,a){let s=[];return e&&e!=="card"&&s.push(e),a&&s.push("fixed"),s.join(" ")||"card"}#e(e){return this.#t?.querySelector(e)??null}#H(){this.#a=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button"),this.#a||(this.#a=document.createElement("button"),this.#a.setAttribute("type","button"),this.#a.setAttribute("data-trigger",""),this.#a.setAttribute("data-minted",""),this.#a.className="settings-trigger",this.#a.innerHTML=Mt,this.prepend(this.#a)),this.#a.hasAttribute("data-minted")&&this.#a.setAttribute("aria-label",this.#i("trigger")),this.#a.setAttribute("aria-haspopup","dialog"),this.#a.setAttribute("aria-expanded","false"),this.#t=document.createElement("div"),this.#t.className="settings-panel",this.#t.setAttribute("role","dialog"),this.#t.setAttribute("aria-label",this.#i("dialog")),this.#t.tabIndex=-1;let e=`settings-panel-${this.#f}`;this.#t.id=e,this.#a.setAttribute("aria-controls",e),this.#t.innerHTML=this.#I(),this.appendChild(this.#t)}#I(){let{mode:e,brand:a,fluid:s,backdrop:r,backdropChrome:n,pageBgType:i,pageBgColor:f,pageBgGradStart:w,pageBgGradEnd:E,pageBgGradDir:_}=m.getState(),T=[...this.#r],p={...this.#n},y=q.load(),x=this.#A(s),A=this.#y(s),b=this.#B(r),C=this.#b(r),c=this.#f,o=d=>this.#V(d),B=(d,l,v,ct,dt,Se={})=>`
|
|
2
2
|
<fieldset data-segmented>
|
|
3
3
|
<legend class="visually-hidden">${l}</legend>
|
|
4
4
|
${v.map(W=>`
|