@vuebro/runtime 1.1.83 → 1.2.0

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/README.md CHANGED
@@ -1 +1,78 @@
1
- # runtime
1
+ # VueBro Runtime
2
+
3
+ VueBro Runtime is a Vue.js-based runtime environment that serves as the execution layer for VueBro applications. This project provides the core infrastructure to render and manage Vue applications with advanced features like dynamic component loading, SEO optimization, and intersection observer tracking.
4
+
5
+ ## Features
6
+
7
+ - **Vue 3 Powered**: Built on top of Vue 3 with Composition API
8
+ - **Dynamic Component Loading**: Components are dynamically loaded using the `@vuebro/loader-sfc` package
9
+ - **SEO Optimized**: Built-in SEO meta management using `@unhead/vue`
10
+ - **Intersection Tracking**: Uses Intersection Observer API to track component visibility
11
+ - **UnoCSS Integration**: Utility-first CSS styling with UnoCSS
12
+ - **Font Loading**: Dynamic web font loading capabilities
13
+ - **Icon Support**: Built-in Iconify integration for SVG icons
14
+ - **Code Splitting**: Dynamic imports for efficient loading
15
+
16
+ ## Architecture
17
+
18
+ The runtime follows a monolithic architecture with several key components:
19
+
20
+ 1. **Main Application**: The `main.ts` entry point initializes the Vue app, router, and UnoCSS runtime
21
+ 2. **State Management**: Uses reactive stores in the `src/stores/monolit.ts` file to manage application state
22
+ 3. **Dynamic Loading**: Components are dynamically loaded based on JSON configuration files
23
+ 4. **Smart Routing**: Intelligent scroll management that updates routes based on component visibility
24
+
25
+ ## Dependencies
26
+
27
+ - Vue 3 (v3.5.22+)
28
+ - Vue Router (v4.6.3+)
29
+ - UnoCSS runtime for styling
30
+ - VueUse for composable utilities
31
+ - Iconify for icon management
32
+ - @vuebro/shared and @vuebro/loader-sfc for ecosystem integration
33
+
34
+ ## Building and Running
35
+
36
+ ### Prerequisites
37
+
38
+ - Node.js (latest version)
39
+ - pnpm (or npm/yarn)
40
+
41
+ ### Commands
42
+
43
+ - `npm run build` - Builds the project using Vite and TypeScript
44
+ - `npm run lint` - Lints the codebase using ESLint
45
+
46
+ ### Build Configuration
47
+
48
+ The project uses Vite for bundling with a custom configuration:
49
+
50
+ - Externalizes Vue, Vue Router, and loader dependencies
51
+ - Creates manual chunks for shared libraries and UnoCSS
52
+ - Uses `vite-plugin-static-copy` to copy external dependencies to the dist folder
53
+ - Generates a manifest file that includes external dependencies
54
+
55
+ ## Integration with VueBro Ecosystem
56
+
57
+ This runtime is designed to work with the broader VueBro ecosystem:
58
+
59
+ - Receives data from `index.json` and `fonts.json` files
60
+ - Uses `@vuebro/shared` for common utilities
61
+ - Dynamic components loaded from `./pages/` directory
62
+ - Uses `@vuebro/configs` for shared Vite, TypeScript, and UnoCSS configurations
63
+
64
+ ## File Structure
65
+
66
+ ```text
67
+ src/
68
+ ├── stores/ # State management stores
69
+ ├── views/ # Page view components
70
+ ├── App.vue # Root application component
71
+ ├── env.d.ts # TypeScript environment declarations
72
+ ├── main.ts # Application entry point
73
+ └── style.css # Global styles
74
+ ```
75
+
76
+ ## License
77
+
78
+ This project is licensed under the AGPL-3.0-or-later license.
@@ -1 +1 @@
1
- {"_shared-CXvN_2-s.js":{"file":"assets/shared-CXvN_2-s.js","name":"shared"},"_unocss-C5ejlI-Z.js":{"file":"assets/unocss-C5ejlI-Z.js","name":"unocss","isDynamicEntry":true},"index.html":{"file":"assets/index-CKml0uF9.js","name":"index","src":"index.html","isEntry":true,"imports":["_unocss-C5ejlI-Z.js","_shared-CXvN_2-s.js"],"dynamicImports":["_unocss-C5ejlI-Z.js","src/views/PageView.vue","src/views/RootView.vue","src/views/NotFoundView.vue"],"css":["assets/index-vGiKZPT9.css"]},"src/views/NotFoundView.vue":{"file":"assets/NotFoundView-B5BxRsks.js","name":"NotFoundView","src":"src/views/NotFoundView.vue","isDynamicEntry":true,"imports":["index.html","_unocss-C5ejlI-Z.js","_shared-CXvN_2-s.js"]},"src/views/PageView.vue":{"file":"assets/PageView-BO1xBnH7.js","name":"PageView","src":"src/views/PageView.vue","isDynamicEntry":true,"imports":["_shared-CXvN_2-s.js","index.html","_unocss-C5ejlI-Z.js"]},"src/views/RootView.vue":{"file":"assets/RootView-BrCueYFr.js","name":"RootView","src":"src/views/RootView.vue","isDynamicEntry":true,"imports":["_shared-CXvN_2-s.js","index.html","_unocss-C5ejlI-Z.js"]},"node_modules/vue/dist/vue.esm-browser.prod.js":{"file":"assets/vue.esm-browser.prod-3.5.22.js","isStaticEntry":true,"name":"vue"},"node_modules/vue-router/dist/vue-router.esm-browser.prod.js":{"file":"assets/vue-router.esm-browser.prod-4.6.3.js","isStaticEntry":true,"name":"vue-router"},"node_modules/@vuebro/loader-sfc/dist/loader-sfc.esm-browser.prod.js":{"file":"assets/loader-sfc.esm-browser.prod-2.3.11.js","isStaticEntry":true,"name":"@vuebro/loader-sfc"}}
1
+ {"_shared-ctQ0ZbE5.js":{"file":"assets/shared-ctQ0ZbE5.js","name":"shared","imports":["_unocss-BeBBpyPU.js"]},"_unocss-BeBBpyPU.js":{"file":"assets/unocss-BeBBpyPU.js","name":"unocss","isDynamicEntry":true},"index.html":{"file":"assets/index-RgNeaSQv.js","name":"index","src":"index.html","isEntry":true,"imports":["_unocss-BeBBpyPU.js","_shared-ctQ0ZbE5.js"],"dynamicImports":["_unocss-BeBBpyPU.js"],"css":["assets/index-vGiKZPT9.css"]},"node_modules/vue/dist/vue.esm-browser.prod.js":{"file":"assets/vue.esm-browser.prod-3.5.22.js","isStaticEntry":true,"name":"vue"},"node_modules/vue-router/dist/vue-router.esm-browser.prod.js":{"file":"assets/vue-router.esm-browser.prod-4.6.3.js","isStaticEntry":true,"name":"vue-router"},"node_modules/@vuebro/loader-sfc/dist/loader-sfc.esm-browser.prod.js":{"file":"assets/loader-sfc.esm-browser.prod-2.3.17.js","isStaticEntry":true,"name":"@vuebro/loader-sfc"}}
@@ -0,0 +1 @@
1
+ import{toValue as S,isRef as Y,hasInjectionContext as $n,inject as Fn,ref as E,watchEffect as At,getCurrentInstance as Ne,onBeforeUnmount as jt,onDeactivated as On,onActivated as Mn,reactive as fe,unref as O,computed as I,onMounted as Ve,nextTick as Pt,getCurrentScope as En,onScopeDispose as An,watch as D,toRef as jn,readonly as Pn,customRef as Ln,shallowRef as H,defineComponent as q,onUnmounted as Lt,h as et,resolveComponent as Hn,createBlock as te,openBlock as P,withCtx as ze,resolveDynamicComponent as We,defineAsyncComponent as Dn,createElementBlock as de,Fragment as Ht,createVNode as Rn,createElementVNode as K,renderList as Nn,withDirectives as Vn,normalizeClass as Dt,Suspense as zn,createCommentVNode as Wn,createApp as Un}from"vue";import{d as qn,w as Bn,_ as Gn,p as Kn,a as Qn,b as Jn,c as Xn,e as Zn,i as Yn,o as eo}from"./unocss-BeBBpyPU.js";import{g as to,a as we,f as Rt,p as W,c as Nt,n as no}from"./shared-ctQ0ZbE5.js";import{useRoute as oo,createRouter as ro,createWebHistory as so}from"vue-router";import io from"@vuebro/loader-sfc";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function Me(e,t={},n){for(const o in e){const r=e[o],s=n?`${n}:${o}`:o;typeof r=="object"&&r!==null?Me(r,t,s):typeof r=="function"&&(t[s]=r)}return t}const co={run:e=>e()},lo=()=>co,Vt=typeof console.createTask<"u"?console.createTask:lo;function ao(e,t){const n=t.shift(),o=Vt(n);return e.reduce((r,s)=>r.then(()=>o.run(()=>s(...t))),Promise.resolve())}function uo(e,t){const n=t.shift(),o=Vt(n);return Promise.all(e.map(r=>o.run(()=>r(...t))))}function xe(e,t){for(const n of[...e])n(t)}class fo{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,o={}){if(!t||typeof n!="function")return()=>{};const r=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!o.allowDeprecated){let i=s.message;i||(i=`${r} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let o,r=(...s)=>(typeof o=="function"&&o(),o=void 0,r=void 0,n(...s));return o=this.hook(t,r),o}removeHook(t,n){if(this._hooks[t]){const o=this._hooks[t].indexOf(n);o!==-1&&this._hooks[t].splice(o,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const o=this._hooks[t]||[];delete this._hooks[t];for(const r of o)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Me(t),o=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of o.splice(0,o.length))r()}}removeHooks(t){const n=Me(t);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(ao,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(uo,t,...n)}callHookWith(t,n,...o){const r=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&&xe(this._before,r);const s=t(n in this._hooks?[...this._hooks[n]]:[],o);return s instanceof Promise?s.finally(()=>{this._after&&r&&xe(this._after,r)}):(this._after&&r&&xe(this._after,r),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function po(){return new fo}const ho=new Set(["link","style","script","noscript"]),mo=new Set(["title","titleTemplate","script","style","noscript"]),tt=new Set(["base","meta","link","style","script","noscript"]),go=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),yo=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),vo=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),wo=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Ue=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),bo=["name","property","http-equiv"],Co=new Set(["viewport","description","keywords","robots"]);function zt(e){const t=e.split(":");return t.length?Ue.has(t[1]):!1}function Ee(e){const{props:t,tag:n}=e;if(yo.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const o of bo)if(t[o]!==void 0){const r=t[o],s=r.includes(":"),i=Co.has(r),u=!(s||i)&&e.key?`:key:${e.key}`:"";return`${n}:${r}${u}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(mo.has(n)){const o=e.textContent||e.innerHTML;if(o)return`${n}:content:${o}`}}function nt(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([o,r])=>`${o}:${String(r)}`).join(",")}`}function pe(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let r;if(t&&(r=t(n,e)),Array.isArray(r))return r.map(s=>pe(s,t));if(r?.constructor===Object){const s={};for(const i of Object.keys(r))s[i]=pe(r[i],t,i);return s}return r}function ko(e,t){const n=e==="style"?new Map:new Set;function o(r){const s=r.trim();if(s)if(e==="style"){const[i,...c]=s.split(":").map(u=>u.trim());i&&c.length&&n.set(i,c.join(":"))}else s.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(o):o(t):Array.isArray(t)?t.forEach(r=>o(r)):t&&typeof t=="object"&&Object.entries(t).forEach(([r,s])=>{s&&s!=="false"&&(e==="style"?n.set(r.trim(),s):o(r))}),n}function Wt(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,o])=>{if(o===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=ko(n,o);return}if(vo.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof o=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(o)}else e[n]=o;return}const r=String(o),s=n.startsWith("data-");r==="true"||r===""?e.props[n]=s?r:!0:!o&&s&&r==="false"?e.props[n]="false":o!==void 0&&(e.props[n]=o)}),e):e}function xo(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},o=Wt({tag:e,props:{}},n);return o.key&&ho.has(o.tag)&&(o.props["data-hid"]=o._h=o.key),o.tag==="script"&&typeof o.innerHTML=="object"&&(o.innerHTML=JSON.stringify(o.innerHTML),o.props.type=o.props.type||"application/json"),Array.isArray(o.props.content)?o.props.content.map(r=>({...o,props:{...o.props,content:r}})):o}function So(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(r,s)=>{for(let i=0;i<t.length;i++)s=t[i](r,s);return s};e=n(void 0,e);const o=[];return e=pe(e,n),Object.entries(e||{}).forEach(([r,s])=>{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])o.push(xo(r,i))}),o.flat()}const ot=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,rt={base:-10,title:10},_o={critical:-8,high:-1,low:2},st={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},To=/@import/,Q=e=>e===""||e===!0;function Io(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const o=_o[t.tagPriority]||0,r=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:st;if(t.tag in rt)n=rt[t.tag];else if(t.tag==="meta"){const s=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;s&&(n=st.meta[s])}else t.tag==="link"&&t.props.rel?n=r.link[t.props.rel]:t.tag==="script"?Q(t.props.async)?n=r.script.async:t.props.src&&!Q(t.props.defer)&&!Q(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=r.script.sync:Q(t.props.defer)&&t.props.src&&!Q(t.props.async)&&(n=r.script.defer):t.tag==="style"&&(n=t.innerHTML&&To.test(t.innerHTML)?r.style.imported:r.style.sync);return(n||100)+o}function it(e,t){const n=typeof t=="function"?t(e):t,o=n.key||String(e.plugins.size+1);e.plugins.get(o)||(e.plugins.set(o,n),e.hooks.addHooks(n.hooks||{}))}function $o(e={}){const t=po();t.addHooks(e.hooks||{});const n=!e.document,o=new Map,r=new Map,s=new Set,i={_entryCount:1,plugins:r,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:o,headEntries(){return[...o.values()]},use:c=>it(i,c),push(c,u){const l={...u||{}};delete l.head;const a=l._index??i._entryCount++,d={_i:a,input:c,options:l},p={_poll(f=!1){i.dirty=!0,!f&&s.add(a),t.callHook("entries:updated",i)},dispose(){o.delete(a)&&i.invalidate()},patch(f){(!l.mode||l.mode==="server"&&n||l.mode==="client"&&!n)&&(d.input=f,o.set(a,d),p._poll())}};return p.patch(c),p},async resolveTags(){const c={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",c);s.size;){const p=s.values().next().value;s.delete(p);const f=o.get(p);if(f){const m={tags:So(f.input,e.propResolvers||[]).map(h=>Object.assign(h,f.options)),entry:f};await t.callHook("entries:normalize",m),f._tags=m.tags.map((h,g)=>(h._w=Io(i,h),h._p=(f._i<<10)+g,h._d=Ee(h),h))}}let u=!1;c.entries.flatMap(p=>(p._tags||[]).map(f=>({...f,props:{...f.props}}))).sort(ot).reduce((p,f)=>{const m=String(f._d||f._p);if(!p.has(m))return p.set(m,f);const h=p.get(m);if((f?.tagDuplicateStrategy||(wo.has(f.tag)?"merge":null)||(f.key&&f.key===h.key?"merge":null))==="merge"){const y={...h.props};Object.entries(f.props).forEach(([w,b])=>y[w]=w==="style"?new Map([...h.props.style||new Map,...b]):w==="class"?new Set([...h.props.class||new Set,...b]):b),p.set(m,{...f,props:y})}else f._p>>10===h._p>>10&&f.tag==="meta"&&zt(m)?(p.set(m,Object.assign([...Array.isArray(h)?h:[h],f],f)),u=!0):(f._w===h._w?f._p>h._p:f?._w<h?._w)&&p.set(m,f);return p},c.tagMap);const l=c.tagMap.get("title"),a=c.tagMap.get("titleTemplate");if(i._title=l?.textContent,a){const p=a?.textContent;if(i._titleTemplate=p,p){let f=typeof p=="function"?p(l?.textContent):p;typeof f=="string"&&!i.plugins.has("template-params")&&(f=f.replace("%s",l?.textContent||"")),l?f===null?c.tagMap.delete("title"):c.tagMap.set("title",{...l,textContent:f}):(a.tag="title",a.textContent=f)}}c.tags=Array.from(c.tagMap.values()),u&&(c.tags=c.tags.flat().sort(ot)),await t.callHook("tags:beforeResolve",c),await t.callHook("tags:resolve",c),await t.callHook("tags:afterResolve",c);const d=[];for(const p of c.tags){const{innerHTML:f,tag:m,props:h}=p;if(go.has(m)&&!(Object.keys(h).length===0&&!p.innerHTML&&!p.textContent)&&!(m==="meta"&&!h.content&&!h["http-equiv"]&&!h.charset)){if(m==="script"&&f){if(h.type?.endsWith("json")){const g=typeof f=="string"?f:JSON.stringify(f);p.innerHTML=g.replace(/</g,"\\u003C")}else typeof f=="string"&&(p.innerHTML=f.replace(new RegExp(`</${m}`,"g"),`<\\/${m}`));p._d=Ee(p)}d.push(p)}}return d},invalidate(){for(const c of o.values())s.add(c._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(c=>it(i,c)),i.hooks.callHook("init",i),e.init?.forEach(c=>c&&i.push(c)),i}async function Ut(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const o={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",o),!!o.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async r=>{const s=new Map,i=new Promise(f=>{e.resolveTags().then(m=>{f(m.map(h=>{const g=s.get(h._d)||0,y={tag:h,id:(g?`${h._d}:${g}`:h._d)||nt(h),shouldRender:!0};return h._d&&zt(h._d)&&s.set(h._d,g+1),y}))})});let c=e._dom;if(!c){c={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const f of["body","head"]){const m=n[f]?.children;for(const h of m){const g=h.tagName.toLowerCase();if(!tt.has(g))continue;const y=Wt({tag:g,props:{}},{innerHTML:h.innerHTML,...h.getAttributeNames().reduce((w,b)=>(w[b]=h.getAttribute(b),w),{})||{}});if(y.key=h.getAttribute("data-hid")||void 0,y._d=Ee(y)||nt(y),c.elMap.has(y._d)){let w=1,b=y._d;for(;c.elMap.has(b);)b=`${y._d}:${w++}`;c.elMap.set(b,h)}else c.elMap.set(y._d,h)}}}c.pendingSideEffects={...c.sideEffects},c.sideEffects={};function u(f,m,h){const g=`${f}:${m}`;c.sideEffects[g]=h,delete c.pendingSideEffects[g]}function l({id:f,$el:m,tag:h}){const g=h.tag.endsWith("Attrs");c.elMap.set(f,m),g||(h.textContent&&h.textContent!==m.textContent&&(m.textContent=h.textContent),h.innerHTML&&h.innerHTML!==m.innerHTML&&(m.innerHTML=h.innerHTML),u(f,"el",()=>{m?.remove(),c.elMap.delete(f)}));for(const y in h.props){if(!Object.prototype.hasOwnProperty.call(h.props,y))continue;const w=h.props[y];if(y.startsWith("on")&&typeof w=="function"){const v=m?.dataset;if(v&&v[`${y}fired`]){const _=y.slice(0,-5);w.call(m,new Event(_.substring(2)))}m.getAttribute(`data-${y}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:m).addEventListener(y.substring(2),w.bind(m)),m.setAttribute(`data-${y}`,""));continue}const b=`attr:${y}`;if(y==="class"){if(!w)continue;for(const v of w)g&&u(f,`${b}:${v}`,()=>m.classList.remove(v)),!m.classList.contains(v)&&m.classList.add(v)}else if(y==="style"){if(!w)continue;for(const[v,_]of w)u(f,`${b}:${v}`,()=>{m.style.removeProperty(v)}),m.style.setProperty(v,_)}else w!==!1&&w!==null&&(m.getAttribute(y)!==w&&m.setAttribute(y,w===!0?"":String(w)),g&&u(f,b,()=>m.removeAttribute(y)))}}const a=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},p=await i;for(const f of p){const{tag:m,shouldRender:h,id:g}=f;if(h){if(m.tag==="title"){n.title=m.textContent,u("title","",()=>n.title=c.title);continue}f.$el=f.$el||c.elMap.get(g),f.$el?l(f):tt.has(m.tag)&&a.push(f)}}for(const f of a){const m=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),l(f),d[m]=d[m]||n.createDocumentFragment(),d[m].appendChild(f.$el)}for(const f of p)await e.hooks.callHook("dom:renderTag",f,n,u);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const f in c.pendingSideEffects)c.pendingSideEffects[f]();e._dom=c,await e.hooks.callHook("dom:rendered",{renders:p}),r()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Fo(e={}){const t=e.domOptions?.render||Ut;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return $o({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Oo(e,t){let n=0;return()=>{const o=++n;t(()=>{n===o&&e()})}}const ne={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},Mo={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},qt={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${j(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?j(e):`${j(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${j(e)} ${t}`}},charset:{}};function j(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.indexOf("-");return n===-1?t:ne.META.has(t.slice(0,n))||ne.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function Bt(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function Ae(e){return Array.isArray(e)?e.map(Ae):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[j(t),Ae(n)]))}function Gt(e,t={}){const{entrySeparator:n="",keyValueSeparator:o="",wrapValue:r,resolve:s}=t;return Object.entries(e).map(([i,c])=>{if(s){const l=s({key:i,value:c});if(l!==void 0)return l}const u=typeof c=="object"?Gt(c,t):typeof c=="number"?c.toString():typeof c=="string"&&r?`${r}${c.replace(new RegExp(r,"g"),`\\${r}`)}${r}`:c;return`${i}${o}${u}`}).join(n)}function ct(e,t){const n=Bt(t),o=j(e),r=Kt(o);if(!Ue.has(o))return[{[r]:o,...n}];const s=Object.fromEntries(Object.entries(n).map(([i,c])=>[`${e}${i==="url"?"":`${i[0].toUpperCase()}${i.slice(1)}`}`,c]));return he(s||{}).sort((i,c)=>(i[r]?.length||0)-(c[r]?.length||0))}function Kt(e){if(qt[e]?.metaKey==="http-equiv"||ne.HTTP_EQUIV.has(e))return"http-equiv";const t=j(e),n=t.indexOf(":");return n===-1?"name":ne.OG.has(t.slice(0,n))?"property":"name"}function Eo(e){return Mo[e]||j(e)}function Ao(e,t){return t==="refresh"?`${e.seconds};url=${e.url}`:Gt(Ae(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:o})=>n===null?"":typeof n=="boolean"?o:void 0,...qt[t]?.unpack})}function he(e){const t=[],n={};for(const[r,s]of Object.entries(e)){if(Array.isArray(s)){if(r==="themeColor"){s.forEach(i=>{typeof i=="object"&&i!==null&&t.push({name:"theme-color",...i})});continue}for(const i of s)if(typeof i=="object"&&i!==null){const c=[],u=[];for(const[l,a]of Object.entries(i)){const d=`${r}${l==="url"?"":`:${l}`}`,p=he({[d]:a});(l==="url"?c:u).push(...p)}t.push(...c,...u)}else t.push(...typeof i=="string"?he({[r]:i}):ct(r,i));continue}if(typeof s=="object"&&s)if(ne.MEDIA.has(r)){const i=r.startsWith("twitter")?"twitter":"og",c=r.replace(/^(og|twitter)/,"").toLowerCase(),u=i==="twitter"?"name":"property";s.url&&t.push({[u]:`${i}:${c}`,content:s.url}),s.secureUrl&&t.push({[u]:`${i}:${c}:secure_url`,content:s.secureUrl});for(const[l,a]of Object.entries(s))l!=="url"&&l!=="secureUrl"&&t.push({[u]:`${i}:${c}:${l}`,content:a})}else Ue.has(j(r))?t.push(...ct(r,s)):n[r]=Bt(s);else n[r]=s}const o=Object.entries(n).map(([r,s])=>{if(r==="charset")return{charset:s===null?"_null":s};const i=Kt(r),c=Eo(r),u=s===null?"_null":typeof s=="object"?Ao(s,r):typeof s=="number"?s.toString():s;return i==="http-equiv"?{"http-equiv":c,content:u}:{[i]:c,content:u}});return[...t,...o].map(r=>"content"in r&&r.content==="_null"?{...r,content:null}:r)}const jo={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(n=>n.tag!=="_flatMeta"?n:(t.push(he(n.props).map(o=>({...n,tag:"meta",props:o}))),!1)).filter(Boolean).concat(...t)}}},Po=(e,t)=>Y(t)?S(t):t,Qt="usehead";function Lo(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Qt,e)}}.install}function Jt(){if($n()){const e=Fn(Qt);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function qe(e,t={}){const n=t.head||Jt();return n.ssr?n.push(e||{},t):Ho(n,e,t)}function Ho(e,t,n={}){const o=E(!1);let r;return At(()=>{const i=o.value?{}:pe(t,Po);r?r.patch(i):r=e.push(i,n)}),Ne()&&(jt(()=>{r.dispose()}),On(()=>{o.value=!0}),Mn(()=>{o.value=!1})),r}function Do(e={},t={}){(t.head||Jt()).use(jo);const{title:o,titleTemplate:r,...s}=e;return qe({title:o,titleTemplate:r,_flatMeta:s},t)}function Ro(e={}){const t=Fo({domOptions:{render:Oo(()=>Ut(t),n=>setTimeout(n,0))},...e});return t.install=Lo(t),t}const No=Object.freeze({left:0,top:0,width:16,height:16}),me=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Xt=Object.freeze({...No,...me}),Vo=Object.freeze({...Xt,body:"",hidden:!1}),zo=Object.freeze({width:null,height:null}),Zt=Object.freeze({...zo,...me});function Wo(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function lt(e,t){const n=Wo(e,t);for(const o in Vo)o in me?o in e&&!(o in n)&&(n[o]=me[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Uo(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function s(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=o[i]&&o[i].parent,u=c&&s(c);u&&(r[i]=[c].concat(u))}return r[i]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(s),r}function at(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let s={};function i(c){s=lt(o[c]||r[c],s)}return i(t),n.forEach(i),lt(e,s)}function qo(e,t){if(e.icons[t])return at(e,t,[]);const n=Uo(e,[t])[t];return n?at(e,t,n):null}const Bo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Go=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ge(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(Bo);if(o===null||!o.length)return e;const r=[];let s=o.shift(),i=Go.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?r.push(s):r.push(Math.ceil(c*t*n)/n)}else r.push(s);if(s=o.shift(),s===void 0)return r.join("");i=!i}}function Ko(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const r=e.indexOf(">",o),s=e.indexOf("</"+t);if(r===-1||s===-1)break;const i=e.indexOf(">",s);if(i===-1)break;n+=e.slice(r+1,s).trim(),e=e.slice(0,o).trim()+e.slice(i+1)}return{defs:n,content:e}}function Qo(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Jo(e,t,n){const o=Ko(e);return Qo(o.defs,t+o.content+n)}const Be=e=>e==="unset"||e==="undefined"||e==="none";function Yt(e,t){const n={...Xt,...e},o={...Zt,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,o].forEach(h=>{const g=[],y=h.hFlip,w=h.vFlip;let b=h.rotate;y?w?b+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):w&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let v;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:v=r.height/2+r.top,g.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:v=r.width/2+r.left,g.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}b%2===1&&(r.left!==r.top&&(v=r.left,r.left=r.top,r.top=v),r.width!==r.height&&(v=r.width,r.width=r.height,r.height=v)),g.length&&(s=Jo(s,'<g transform="'+g.join(" ")+'">',"</g>"))});const i=o.width,c=o.height,u=r.width,l=r.height;let a,d;i===null?(d=c===null?"1em":c==="auto"?l:c,a=ge(d,u/l)):(a=i==="auto"?u:i,d=c===null?ge(a,l/u):c==="auto"?l:c);const p={},f=(h,g)=>{Be(g)||(p[h]=g.toString())};f("width",a),f("height",d);const m=[r.left,r.top,u,l];return p.viewBox=m.join(" "),{attributes:p,viewBox:m,body:s}}const Xo=/\sid="(\S+)"/g,Zo="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Yo=0;function er(e,t=Zo){const n=[];let o;for(;o=Xo.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(Yo++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}function tr(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ut(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),tr(t)}function nr(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}function or(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}const rr=/\swidth\s*=\s*["']([\w.]+)["']/,sr=/\sheight\s*=\s*["']([\w.]+)["']/,Se=/<svg\s+/;function ir(e,t,n){const o=e.slice(0,e.indexOf(">")),r=(s,i)=>{const c=i.exec(o),u=c!=null,l=t[s];return!l&&!Be(l)&&(typeof n=="number"?n>0&&(t[s]=ge(c?.[1]??"1em",n)):c&&(t[s]=c[1])),u};return[r("width",rr),r("height",sr)]}async function en(e,t,n,o,r,s){const{scale:i,addXmlNs:c=!1}=o??{},{additionalProps:u={},iconCustomizer:l}=o?.customizations??{},a=await r?.()??{};await l?.(t,n,a),Object.keys(u).forEach(h=>{const g=u[h];g!=null&&(a[h]=g)}),s?.(a);const[d,p]=ir(e,a,i);c&&(!e.includes("xmlns=")&&!a.xmlns&&(a.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!a["xmlns:xlink"]&&(a["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const f=Object.keys(a).map(h=>h==="width"&&d||h==="height"&&p?null:`${h}="${a[h]}"`).filter(h=>h!=null);if(f.length&&(e=e.replace(Se,`<svg ${f.join(" ")} `)),o){const{defaultStyle:h,defaultClass:g}=o;g&&!e.includes("class=")&&(e=e.replace(Se,`<svg class="${g}" `)),h&&!e.includes("style=")&&(e=e.replace(Se,`<svg style="${h}" `))}const m=o?.usedProps;return m&&(Object.keys(u).forEach(h=>{const g=a[h];g!=null&&(m[h]=g)}),typeof a.width<"u"&&a.width!==null&&(m.width=a.width),typeof a.height<"u"&&a.height!==null&&(m.height=a.height)),e}var se={exports:{}},_e,ft;function cr(){if(ft)return _e;ft=1;var e=1e3,t=e*60,n=t*60,o=n*24,r=o*7,s=o*365.25;_e=function(a,d){d=d||{};var p=typeof a;if(p==="string"&&a.length>0)return i(a);if(p==="number"&&isFinite(a))return d.long?u(a):c(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function i(a){if(a=String(a),!(a.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(d){var p=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return p*s;case"weeks":case"week":case"w":return p*r;case"days":case"day":case"d":return p*o;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function c(a){var d=Math.abs(a);return d>=o?Math.round(a/o)+"d":d>=n?Math.round(a/n)+"h":d>=t?Math.round(a/t)+"m":d>=e?Math.round(a/e)+"s":a+"ms"}function u(a){var d=Math.abs(a);return d>=o?l(a,d,o,"day"):d>=n?l(a,d,n,"hour"):d>=t?l(a,d,t,"minute"):d>=e?l(a,d,e,"second"):a+" ms"}function l(a,d,p,f){var m=d>=p*1.5;return Math.round(a/p)+" "+f+(m?"s":"")}return _e}var Te,dt;function lr(){if(dt)return Te;dt=1;function e(t){o.debug=o,o.default=o,o.coerce=l,o.disable=c,o.enable=s,o.enabled=u,o.humanize=cr(),o.destroy=a,Object.keys(t).forEach(d=>{o[d]=t[d]}),o.names=[],o.skips=[],o.formatters={};function n(d){let p=0;for(let f=0;f<d.length;f++)p=(p<<5)-p+d.charCodeAt(f),p|=0;return o.colors[Math.abs(p)%o.colors.length]}o.selectColor=n;function o(d){let p,f=null,m,h;function g(...y){if(!g.enabled)return;const w=g,b=Number(new Date),v=b-(p||b);w.diff=v,w.prev=p,w.curr=b,p=b,y[0]=o.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let _=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(x,$)=>{if(x==="%%")return"%";_++;const C=o.formatters[$];if(typeof C=="function"){const T=y[_];x=C.call(w,T),y.splice(_,1),_--}return x}),o.formatArgs.call(w,y),(w.log||o.log).apply(w,y)}return g.namespace=d,g.useColors=o.useColors(),g.color=o.selectColor(d),g.extend=r,g.destroy=o.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(m!==o.namespaces&&(m=o.namespaces,h=o.enabled(d)),h),set:y=>{f=y}}),typeof o.init=="function"&&o.init(g),g}function r(d,p){const f=o(this.namespace+(typeof p>"u"?":":p)+d);return f.log=this.log,f}function s(d){o.save(d),o.namespaces=d,o.names=[],o.skips=[];const p=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const f of p)f[0]==="-"?o.skips.push(f.slice(1)):o.names.push(f)}function i(d,p){let f=0,m=0,h=-1,g=0;for(;f<d.length;)if(m<p.length&&(p[m]===d[f]||p[m]==="*"))p[m]==="*"?(h=m,g=f,m++):(f++,m++);else if(h!==-1)m=h+1,g++,f=g;else return!1;for(;m<p.length&&p[m]==="*";)m++;return m===p.length}function c(){const d=[...o.names,...o.skips.map(p=>"-"+p)].join(",");return o.enable(""),d}function u(d){for(const p of o.skips)if(i(d,p))return!1;for(const p of o.names)if(i(d,p))return!0;return!1}function l(d){return d instanceof Error?d.stack||d.message:d}function a(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}return Te=e,Te}var pt;function ar(){return pt||(pt=1,(function(e,t){var n={};t.formatArgs=r,t.save=s,t.load=i,t.useColors=o,t.storage=c(),t.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function o(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const a="color: "+this.color;l.splice(1,0,a,"color: inherit");let d=0,p=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(d++,f==="%c"&&(p=d))}),l.splice(p,0,a)}t.log=console.debug||console.log||(()=>{});function s(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function i(){let l;try{l=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=n.DEBUG),l}function c(){try{return localStorage}catch{}}e.exports=lr()(t);const{formatters:u}=e.exports;u.j=function(l){try{return JSON.stringify(l)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}})(se,se.exports)),se.exports}var ur=ar();const tn=to(ur),fr=tn("@iconify-loader:custom");async function ht(e,t,n,o){let r;fr(`${t}:${n}`);try{if(typeof e=="function")r=await e(n);else{const s=e[n];r=typeof s=="function"?await s():s}}catch(s){console.warn(`Failed to load custom icon "${n}" in "${t}":`,s);return}if(r){const s=r.indexOf("<svg");s>0&&(r=r.slice(s));const{transform:i}=o?.customizations??{};return r=typeof i=="function"?await i(r,t,n):r,r.startsWith("<svg")?await en(o?.customizations?.trimCustomSvg===!0?nr(r):r,t,n,o,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),r)}}const dr=tn("@iconify-loader:icon");async function nn(e,t,n,o){let r;const{customize:s}=o?.customizations??{};for(const i of n)if(r=qo(e,i),r){dr(`${t}:${i}`);let c={...Zt};typeof s=="function"&&(r=Object.assign({},r),c=s(c,r,`${t}:${i}`)??c);const{attributes:{width:u,height:l,...a},body:d}=Yt(r,c),p=o?.scale;return await en(`<svg >${d}</svg>`,t,i,o,()=>({...a}),f=>{const m=(h,g)=>{const y=f[h];let w;if(!Be(y)){if(y)return;typeof p=="number"?p&&(w=ge(g??"1em",p)):w=g}w?f[h]=w:delete f[h]};m("width",u),m("height",l)})}}const on=async(e,t,n)=>{const o=n?.customCollections?.[e];if(o)if(typeof o=="function"){let r;try{r=await o(t)}catch(s){console.warn(`Failed to load custom icon "${t}" in "${e}":`,s);return}if(r){if(typeof r=="string")return await ht(()=>r,e,t,n);if("icons"in r){const s=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await nn(r,e,s,n)}}}else return await ht(o,e,t,n)};var mt={};function pr(){const e=typeof process<"u"&&process.stdout,t=e&&!!mt.VSCODE_CWD,n=e&&!!mt.ESLINT;return{isNode:e,isVSCode:t,isESLint:n}}const rn=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","dinkie-icons","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fa7-brands","fa7-regular","fa7-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","roentgen","si-glyph","si","sidekickicons","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],hr=3;function mr(e){return qn((t={})=>{const{scale:n=1,mode:o="auto",prefix:r="i-",warn:s=!1,iconifyCollectionsNames:i,collections:c,extraProperties:u={},customizations:l={},autoInstall:a=!1,collectionsNodeResolvePath:d,layer:p="icons",unit:f,processor:m}=t,h=pr(),g={addXmlNs:!0,scale:n,customCollections:c,autoInstall:a,cwd:d,warn:void 0,customizations:{...l,additionalProps:{...u},trimCustomSvg:!0,async iconCustomizer(w,b,v){await l.iconCustomizer?.(w,b,v),f&&(v.width||(v.width=`${n}${f}`),v.height||(v.height=`${n}${f}`))}}};let y;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:ut,parseIconWithLoader:gt},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async w=>{let[b,v,_=o]=w;y=y||await e(t);const k={},x=await gt(v,y,{...g,usedProps:k},i);if(!x){s&&!h.isESLint&&Bn(`failed to load icon "${b}"`);return}let $;const C=`url("data:image/svg+xml;utf8,${ut(x.svg)}")`;return _==="auto"&&(_=x.svg.includes("currentColor")?"mask":"bg"),_==="mask"?$={"--un-icon":C,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...k}:$={background:`${C} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...k},m?.($,{...x,icon:x.name,mode:_}),$},{layer:p,prefix:r}]]}})}function sn(e,t,n=new Map){function o(r){if(rn.includes(r))return n.has(r)||n.set(r,e(`${t}@iconify-json/${r}/icons.json`)),n.get(r)}return async(r,s,i)=>{let c=await on(r,s,i);if(c)return c;const u=await o(r);if(u){const l=[s,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s.replace(/([a-z])(\d+)/g,"$1-$2")];c=await nn(u,r,l,i)}return c}}async function gt(e,t,n={},o=[]){let r="",s="",i;const c=new Set([...rn,...o,...Object.keys(n.customCollections||{})]);if(e.includes(":")){if([r,s]=e.split(":"),!c.has(r))return;i=await t(r,s,n)}else{const u=e.split(/-/g);for(let l=hr;l>=1&&(r=u.slice(0,l).join("-"),!(!!c.has(r)&&(s=u.slice(l).join("-"),i=await t(r,s,n),i)));l--);}if(i)return{collection:r,name:s,svg:i}}async function gr(e){const{$fetch:t}=await Gn(async()=>{const{$fetch:n}=await import("./unocss-BeBBpyPU.js").then(o=>o.f);return{$fetch:n}},[]);return sn(t,e)}const yr=mr(async e=>{const t=e?.customFetch,n=e?.cdn;return t&&n?sn(t,n):n?await gr(n):on}),vr=({attributifyOptions:e,iconsOptions:t={cdn:"https://cdn.jsdelivr.net/npm/"},tagifyOptions:n,typographyOptions:o,webFontsOptions:r,wind4Options:s={preflights:{reset:!0}}}={})=>[Kn(e),yr(t),Qn(n),Jn(o),Xn(r),Zn(s)];function be(e,t){return En()?(An(e,t),!0):!1}const cn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ln=e=>e!=null,wr=Object.prototype.toString,br=e=>wr.call(e)==="[object Object]",A=()=>{},yt=Cr();function Cr(){var e,t,n;return cn&&((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function kr(...e){if(e.length!==1)return jn(...e);const t=e[0];return typeof t=="function"?Pn(Ln(()=>({get:t,set:A}))):E(t)}function an(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}function xr(e,t={}){let n,o,r=A;const s=u=>{clearTimeout(u),r(),r=A};let i;return u=>{const l=S(e),a=S(t.maxWait);return n&&s(n),l<=0||a!==void 0&&a<=0?(o&&(s(o),o=void 0),Promise.resolve(u())):new Promise((d,p)=>{r=t.rejectOnCancel?p:d,i=u,a&&!o&&(o=setTimeout(()=>{n&&s(n),o=void 0,d(i())},a)),n=setTimeout(()=>{o&&s(o),o=void 0,d(u())},l)})}}function Sr(...e){let t=0,n,o=!0,r=A,s,i,c,u,l;!Y(e[0])&&typeof e[0]=="object"?{delay:i,trailing:c=!0,leading:u=!0,rejectOnCancel:l=!1}=e[0]:[i,c=!0,u=!0,l=!1]=e;const a=()=>{n&&(clearTimeout(n),n=void 0,r(),r=A)};return p=>{const f=S(i),m=Date.now()-t,h=()=>s=p();return a(),f<=0?(t=Date.now(),h()):(m>f?(t=Date.now(),(u||!o)&&h()):c&&(s=new Promise((g,y)=>{r=l?y:g,n=setTimeout(()=>{t=Date.now(),o=!0,g(h()),a()},Math.max(0,f-m))})),!u&&!n&&(n=setTimeout(()=>o=!0,f)),o=!1,s)}}function ee(e){return Array.isArray(e)?e:[e]}function _r(e){return Ne()}function Tr(e){return Y(e)?fe(new Proxy({},{get(t,n,o){return O(Reflect.get(e.value,n,o))},set(t,n,o){return Y(e.value[n])&&!Y(o)?e.value[n].value=o:e.value[n]=o,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):fe(e)}function Ir(e,t=200,n={}){return an(xr(t,n),e)}function $r(e,t=200,n=!1,o=!0,r=!1){return an(Sr(t,n,o,r),e)}function Fr(e,t=!0,n){_r()?Ve(e,n):t?e():Pt(e)}function Or(e,t){return I(()=>S(e).map(n=>S(n)).filter(t))}function Mr(e,t,n){return D(e,t,{...n,immediate:!0})}const Ce=cn?window:void 0;function z(e){var t;const n=S(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function je(...e){const t=[],n=()=>{t.forEach(c=>c()),t.length=0},o=(c,u,l,a)=>(c.addEventListener(u,l,a),()=>c.removeEventListener(u,l,a)),r=I(()=>{const c=ee(S(e[0])).filter(u=>u!=null);return c.every(u=>typeof u!="string")?c:void 0}),s=Mr(()=>{var c,u;return[(c=(u=r.value)===null||u===void 0?void 0:u.map(l=>z(l)))!==null&&c!==void 0?c:[Ce].filter(l=>l!=null),ee(S(r.value?e[1]:e[0])),ee(O(r.value?e[2]:e[1])),S(r.value?e[3]:e[2])]},([c,u,l,a])=>{if(n(),!c?.length||!u?.length||!l?.length)return;const d=br(a)?{...a}:a;t.push(...c.flatMap(p=>u.flatMap(f=>l.map(m=>o(p,f,m,d)))))},{flush:"post"}),i=()=>{s(),n()};return be(n),i}function Er(){const e=H(!1),t=Ne();return t&&Ve(()=>{e.value=!0},t),e}function un(e){const t=Er();return I(()=>(t.value,!!e()))}function Ar(e,t,n={}){const{window:o=Ce,...r}=n;let s;const i=un(()=>o&&"MutationObserver"in o),c=()=>{s&&(s.disconnect(),s=void 0)},u=D(I(()=>{const d=ee(S(e)).map(z).filter(ln);return new Set(d)}),d=>{c(),i.value&&d.size&&(s=new MutationObserver(t),d.forEach(p=>s.observe(p,r)))},{immediate:!0,flush:"post"}),l=()=>s?.takeRecords(),a=()=>{u(),c()};return be(a),{isSupported:i,stop:a,takeRecords:l}}function vt(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=0,window:i=Ce,immediate:c=!0}=n,u=un(()=>i&&"IntersectionObserver"in i),l=I(()=>ee(S(e)).map(z).filter(ln));let a=A;const d=H(c),p=u.value?D(()=>[l.value,z(o),d.value],([m,h])=>{if(a(),!d.value||!m.length)return;const g=new IntersectionObserver(t,{root:z(h),rootMargin:r,threshold:s});m.forEach(y=>y&&g.observe(y)),a=()=>{g.disconnect(),a=A}},{immediate:c,flush:"post"}):A,f=()=>{a(),p(),d.value=!1};return be(f),{isSupported:u,isActive:d,pause(){a(),d.value=!1},resume(){d.value=!0},stop:f}}function Ie(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const wt=1;function jr(e,t={}){const{throttle:n=0,idle:o=200,onStop:r=A,onScroll:s=A,offset:i={left:0,right:0,top:0,bottom:0},observe:c={mutation:!1},eventListenerOptions:u={capture:!1,passive:!0},behavior:l="auto",window:a=Ce,onError:d=C=>{console.error(C)}}=t,p=typeof c=="boolean"?{mutation:c}:c,f=H(0),m=H(0),h=I({get(){return f.value},set(C){y(C,void 0)}}),g=I({get(){return m.value},set(C){y(void 0,C)}});function y(C,T){var M,N,V,G;if(!a)return;const F=S(e);if(!F)return;(M=F instanceof Document?a.document.body:F)===null||M===void 0||M.scrollTo({top:(N=S(T))!==null&&N!==void 0?N:g.value,left:(V=S(C))!==null&&V!==void 0?V:h.value,behavior:S(l)});const L=(F==null||(G=F.document)===null||G===void 0?void 0:G.documentElement)||F?.documentElement||F;h!=null&&(f.value=L.scrollLeft),g!=null&&(m.value=L.scrollTop)}const w=H(!1),b=fe({left:!0,right:!1,top:!0,bottom:!1}),v=fe({left:!1,right:!1,top:!1,bottom:!1}),_=C=>{w.value&&(w.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,r(C))},k=Ir(_,n+o),x=C=>{var T;if(!a)return;const M=(C==null||(T=C.document)===null||T===void 0?void 0:T.documentElement)||C?.documentElement||z(C),{display:N,flexDirection:V,direction:G}=getComputedStyle(M),F=G==="rtl"?-1:1,L=M.scrollLeft;v.left=L<f.value,v.right=L>f.value;const Je=Math.abs(L*F)<=(i.left||0),Xe=Math.abs(L*F)+M.clientWidth>=M.scrollWidth-(i.right||0)-wt;N==="flex"&&V==="row-reverse"?(b.left=Xe,b.right=Je):(b.left=Je,b.right=Xe),f.value=L;let R=M.scrollTop;C===a.document&&!R&&(R=a.document.body.scrollTop),v.top=R<m.value,v.bottom=R>m.value;const Ze=Math.abs(R)<=(i.top||0),Ye=Math.abs(R)+M.clientHeight>=M.scrollHeight-(i.bottom||0)-wt;N==="flex"&&V==="column-reverse"?(b.top=Ye,b.bottom=Ze):(b.top=Ze,b.bottom=Ye),m.value=R},$=C=>{var T;a&&(x((T=C.target.documentElement)!==null&&T!==void 0?T:C.target),w.value=!0,k(C),s(C))};return je(e,"scroll",n?$r($,n,!0,!1):$,u),Fr(()=>{try{const C=S(e);if(!C)return;x(C)}catch(C){d(C)}}),p?.mutation&&e!=null&&e!==a&&e!==document&&Ar(e,()=>{const C=S(e);C&&x(C)},{attributes:!0,childList:!0,subtree:!0}),je(e,"scrollend",_,u),{x:h,y:g,isScrolling:w,arrivedState:b,directions:v,measure(){const C=S(e);a&&C&&x(C)}}}function fn(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:fn(n)}}function Pr(e){const t=e||window.event,n=t.target;return fn(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const $e=new WeakMap;function Lr(e,t=!1){const n=H(t);let o=null,r="";D(kr(e),c=>{const u=Ie(S(c));if(u){const l=u;if($e.get(l)||$e.set(l,l.style.overflow),l.style.overflow!=="hidden"&&(r=l.style.overflow),l.style.overflow==="hidden")return n.value=!0;if(n.value)return l.style.overflow="hidden"}},{immediate:!0});const s=()=>{const c=Ie(S(e));!c||n.value||(yt&&(o=je(c,"touchmove",u=>{Pr(u)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},i=()=>{const c=Ie(S(e));!c||!n.value||(yt&&o?.(),c.style.overflow=r,$e.delete(c),n.value=!1)};return be(i),I({get(){return n.value},set(c){c?s():i()}})}const dn=/^[a-z0-9]+(-[a-z0-9]+)*$/,re=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),u=r.pop(),l={provider:r.length>0?r[0]:o,prefix:u,name:c};return t&&!ie(l)?null:l}const s=r[0],i=s.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!ie(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:s};return t&&!ie(c,n)?null:c}return null},ie=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,pn=Object.freeze({left:0,top:0,width:16,height:16}),ye=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),B=Object.freeze({...pn,...ye}),Pe=Object.freeze({...B,body:"",hidden:!1});function Hr(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function bt(e,t){const n=Hr(e,t);for(const o in Pe)o in ye?o in e&&!(o in n)&&(n[o]=ye[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Dr(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function s(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=o[i]&&o[i].parent,u=c&&s(c);u&&(r[i]=[c].concat(u))}return r[i]}return Object.keys(n).concat(Object.keys(o)).forEach(s),r}function Rr(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let s={};function i(c){s=bt(o[c]||r[c],s)}return i(t),n.forEach(i),bt(e,s)}function hn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=Dr(e);for(const r in o){const s=o[r];s&&(t(r,Rr(e,r,s)),n.push(r))}return n}const Nr={provider:"",aliases:{},not_found:{},...pn};function Fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function mn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Fe(e,Nr))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r||typeof s.body!="string"||!Fe(s,Pe))return null}const o=t.aliases||Object.create(null);for(const r in o){const s=o[r],i=s.parent;if(!r||typeof i!="string"||!n[i]&&!o[i]||!Fe(s,Pe))return null}return t}const Ct=Object.create(null);function Vr(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function U(e,t){const n=Ct[e]||(Ct[e]=Object.create(null));return n[t]||(n[t]=Vr(e,t))}function gn(e,t){return mn(t)?hn(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function zr(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let oe=!1;function yn(e){return typeof e=="boolean"&&(oe=e),oe}function ke(e){const t=typeof e=="string"?re(e,!0,oe):e;if(t){const n=U(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function Wr(e,t){const n=re(e,!0,oe);if(!n)return!1;const o=U(n.provider,n.prefix);return t?zr(o,n.name,t):(o.missing.add(n.name),!0)}function Ur(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),oe&&!t&&!e.prefix){let r=!1;return mn(e)&&(e.prefix="",hn(e,(s,i)=>{Wr(s,i)&&(r=!0)})),r}const n=e.prefix;if(!ie({prefix:n,name:"a"}))return!1;const o=U(t,n);return!!gn(o,e)}function qr(e){return!!ke(e)}function Br(e){const t=ke(e);return t&&{...B,...t}}const vn=Object.freeze({width:null,height:null}),wn=Object.freeze({...vn,...ye}),Gr=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Kr=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function kt(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(Gr);if(o===null||!o.length)return e;const r=[];let s=o.shift(),i=Kr.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?r.push(s):r.push(Math.ceil(c*t*n)/n)}else r.push(s);if(s=o.shift(),s===void 0)return r.join("");i=!i}}function Qr(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const r=e.indexOf(">",o),s=e.indexOf("</"+t);if(r===-1||s===-1)break;const i=e.indexOf(">",s);if(i===-1)break;n+=e.slice(r+1,s).trim(),e=e.slice(0,o).trim()+e.slice(i+1)}return{defs:n,content:e}}function Jr(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Xr(e,t,n){const o=Qr(e);return Jr(o.defs,t+o.content+n)}const Zr=e=>e==="unset"||e==="undefined"||e==="none";function Yr(e,t){const n={...B,...e},o={...wn,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,o].forEach(h=>{const g=[],y=h.hFlip,w=h.vFlip;let b=h.rotate;y?w?b+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):w&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let v;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:v=r.height/2+r.top,g.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:v=r.width/2+r.left,g.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}b%2===1&&(r.left!==r.top&&(v=r.left,r.left=r.top,r.top=v),r.width!==r.height&&(v=r.width,r.width=r.height,r.height=v)),g.length&&(s=Xr(s,'<g transform="'+g.join(" ")+'">',"</g>"))});const i=o.width,c=o.height,u=r.width,l=r.height;let a,d;i===null?(d=c===null?"1em":c==="auto"?l:c,a=kt(d,u/l)):(a=i==="auto"?u:i,d=c===null?kt(a,l/u):c==="auto"?l:c);const p={},f=(h,g)=>{Zr(g)||(p[h]=g.toString())};f("width",a),f("height",d);const m=[r.left,r.top,u,l];return p.viewBox=m.join(" "),{attributes:p,viewBox:m,body:s}}const es=/\sid="(\S+)"/g,ts="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ns=0;function os(e,t=ts){const n=[];let o;for(;o=es.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(ns++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const Le=Object.create(null);function rs(e,t){Le[e]=t}function He(e){return Le[e]||Le[""]}function Ge(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ke=Object.create(null),J=["https://api.simplesvg.com","https://api.unisvg.com"],ce=[];for(;J.length>0;)J.length===1||Math.random()>.5?ce.push(J.shift()):ce.push(J.pop());Ke[""]=Ge({resources:["https://api.iconify.design"].concat(ce)});function ss(e,t){const n=Ge(t);return n===null?!1:(Ke[e]=n,!0)}function Qe(e){return Ke[e]}const is=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let xt=is();function cs(e,t){const n=Qe(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const s=t+".json?icons=";o=n.maxURL-r-n.path.length-s.length}return o}function ls(e){return e===404}const as=(e,t,n)=>{const o=[],r=cs(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((u,l)=>{c+=u.length+1,c>=r&&l>0&&(o.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=u.length),i.icons.push(u)}),o.push(i),o};function us(e){if(typeof e=="string"){const t=Qe(e);if(t)return t.path}return"/"}const fs=(e,t,n)=>{if(!xt){n("abort",424);return}let o=us(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),u=new URLSearchParams({icons:c});o+=s+".json?"+u.toString();break}case"custom":{const s=t.uri;o+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let r=503;xt(e+o).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(ls(i)?"abort":"next",i)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",r)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",r)})},ds={prepare:as,send:fs};function ps(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const s=r.provider,i=r.prefix,c=r.name,u=n[s]||(n[s]=Object.create(null)),l=u[i]||(u[i]=U(s,i));let a;c in l.icons?a=t.loaded:i===""||l.missing.has(c)?a=t.missing:a=t.pending;const d={provider:s,prefix:i,name:c};a.push(d)}),t}function bn(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function hs(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(u=>{if(u.prefix!==r)return!0;const l=u.name;if(e.icons[l])i.loaded.push({provider:o,prefix:r,name:l});else if(e.missing.has(l))i.missing.push({provider:o,prefix:r,name:l});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||bn([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let ms=0;function gs(e,t,n){const o=ms++,r=bn.bind(null,n,o);if(!t.pending.length)return r;const s={id:o,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),r}function ys(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const s=typeof r=="string"?re(r,t,n):r;s&&o.push(s)}),o}var vs={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ws(e,t,n,o){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let k=e.resources.slice(0);for(i=[];k.length>1;){const x=Math.floor(Math.random()*k.length);i.push(k[x]),k=k.slice(0,x).concat(k.slice(x+1))}i=i.concat(k)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let u="pending",l=0,a,d=null,p=[],f=[];typeof o=="function"&&f.push(o);function m(){d&&(clearTimeout(d),d=null)}function h(){u==="pending"&&(u="aborted"),m(),p.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),p=[]}function g(k,x){x&&(f=[]),typeof k=="function"&&f.push(k)}function y(){return{startTime:c,payload:t,status:u,queriesSent:l,queriesPending:p.length,subscribe:g,abort:h}}function w(){u="failed",f.forEach(k=>{k(void 0,a)})}function b(){p.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),p=[]}function v(k,x,$){const C=x!=="success";switch(p=p.filter(T=>T!==k),u){case"pending":break;case"failed":if(C||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){a=$,w();return}if(C){a=$,p.length||(i.length?_():w());return}if(m(),b(),!e.random){const T=e.resources.indexOf(k.resource);T!==-1&&T!==e.index&&(e.index=T)}u="completed",f.forEach(T=>{T($)})}function _(){if(u!=="pending")return;m();const k=i.shift();if(k===void 0){if(p.length){d=setTimeout(()=>{m(),u==="pending"&&(b(),w())},e.timeout);return}w();return}const x={status:"pending",resource:k,callback:($,C)=>{v(x,$,C)}};p.push(x),l++,d=setTimeout(_,e.rotate),n(k,t,x.callback)}return setTimeout(_),y}function Cn(e){const t={...vs,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function r(c,u,l){const a=ws(t,c,u,(d,p)=>{o(),l&&l(d,p)});return n.push(a),a}function s(c){return n.find(u=>c(u))||null}return{query:r,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function St(){}const Oe=Object.create(null);function bs(e){if(!Oe[e]){const t=Qe(e);if(!t)return;const n=Cn(t),o={config:t,redundancy:n};Oe[e]=o}return Oe[e]}function Cs(e,t,n){let o,r;if(typeof e=="string"){const s=He(e);if(!s)return n(void 0,424),St;r=s.send;const i=bs(e);i&&(o=i.redundancy)}else{const s=Ge(e);if(s){o=Cn(s);const i=e.resources?e.resources[0]:"",c=He(i);c&&(r=c.send)}}return!o||!r?(n(void 0,424),St):o.query(t,r,n)().abort}function _t(){}function ks(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,hs(e)}))}function xs(e){const t=[],n=[];return e.forEach(o=>{(o.match(dn)?t:n).push(o)}),{valid:t,invalid:n}}function X(e,t,n){function o(){const r=e.pendingIcons;t.forEach(s=>{r&&r.delete(s),e.icons[s]||e.missing.add(s)})}if(n&&typeof n=="object")try{if(!gn(e,n).length){o();return}}catch(r){console.error(r)}o(),ks(e)}function Tt(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Ss(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;const s=e.loadIcon;if(e.loadIcons&&(r.length>1||!s)){Tt(e.loadIcons(r,o,n),a=>{X(e,r,a)});return}if(s){r.forEach(a=>{const d=s(a,o,n);Tt(d,p=>{const f=p?{prefix:o,icons:{[a]:p}}:null;X(e,[a],f)})});return}const{valid:i,invalid:c}=xs(r);if(c.length&&X(e,c,null),!i.length)return;const u=o.match(dn)?He(n):null;if(!u){X(e,i,null);return}u.prepare(n,o,i).forEach(a=>{Cs(n,a,d=>{X(e,a.icons,d)})})}))}const kn=(e,t)=>{const n=ys(e,!0,yn()),o=ps(n);if(!o.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(o.loaded,o.missing,o.pending,_t)}),()=>{u=!1}}const r=Object.create(null),s=[];let i,c;return o.pending.forEach(u=>{const{provider:l,prefix:a}=u;if(a===c&&l===i)return;i=l,c=a,s.push(U(l,a));const d=r[l]||(r[l]=Object.create(null));d[a]||(d[a]=[])}),o.pending.forEach(u=>{const{provider:l,prefix:a,name:d}=u,p=U(l,a),f=p.pendingIcons||(p.pendingIcons=new Set);f.has(d)||(f.add(d),r[l][a].push(d))}),s.forEach(u=>{const l=r[u.provider][u.prefix];l.length&&Ss(u,l)}),t?gs(t,o,s):_t},_s=e=>new Promise((t,n)=>{const o=typeof e=="string"?re(e,!0):e;if(!o){n(e);return}kn([o||e],r=>{if(r.length&&o){const s=ke(o);if(s){t({...B,...s});return}}n(e)})});function Ts(e,t){const n={...e};for(const o in t){const r=t[o],s=typeof r;o in vn?(r===null||r&&(s==="string"||s==="number"))&&(n[o]=r):s===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const Is=/[\s,]+/;function $s(e,t){t.split(Is).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Fs(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/r,s%1===0?o(s):0)}}return t}function Os(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Ms(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Es(e){return"data:image/svg+xml,"+Ms(e)}function As(e){return'url("'+Es(e)+'")'}const It={...wn,inline:!1},js={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ps={display:"inline-block"},De={backgroundColor:"currentColor"},xn={backgroundColor:"transparent"},$t={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ft={webkitMask:De,mask:De,background:xn};for(const e in Ft){const t=Ft[e];for(const n in $t)t[e+n]=$t[n]}const le={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";le[e+"-flip"]=t,le[e.slice(0,1)+"-flip"]=t,le[e+"Flip"]=t});function Ot(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Mt=(e,t)=>{const n=Ts(It,t),o={...js},r=t.mode||"svg",s={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const g=t[h];if(g!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[h]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&$s(n,g);break;case"color":s.color=g;break;case"rotate":typeof g=="string"?n[h]=Fs(g):typeof g=="number"&&(n[h]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete o["aria-hidden"];break;default:{const y=le[h];y?(g===!0||g==="true"||g===1)&&(n[y]=!0):It[h]===void 0&&(o[h]=g)}}}const u=Yr(e,n),l=u.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),r==="svg"){o.style={...s,...c},Object.assign(o,l);let h=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),o.innerHTML=os(u.body,g?()=>g+"ID"+h++:"iconifyVue"),et("svg",o)}const{body:a,width:d,height:p}=e,f=r==="mask"||(r==="bg"?!1:a.indexOf("currentColor")!==-1),m=Os(a,{...l,width:d+"",height:p+""});return o.style={...s,"--svg":As(m),width:Ot(l.width),height:Ot(l.height),...Ps,...f?De:xn,...c},et("span",o)};yn(!0);rs("",ds);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ur(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;ss(n,r)||console.error(o)}catch{console.error(o)}}}}const Ls={...B,body:""};q((e,{emit:t})=>{const n=E(null);function o(){n.value&&(n.value.abort?.(),n.value=null)}const r=E(!!e.ssr),s=E(""),i=H(null);function c(){const l=e.icon;if(typeof l=="object"&&l!==null&&typeof l.body=="string")return s.value="",{data:l};let a;if(typeof l!="string"||(a=re(l,!1,!0))===null)return null;let d=ke(a);if(!d){const m=n.value;return(!m||m.name!==l)&&(d===null?n.value={name:l}:n.value={name:l,abort:kn([a],u)}),null}o(),s.value!==l&&(s.value=l,Pt(()=>{t("load",l)}));const p=e.customise;if(p){d=Object.assign({},d);const m=p(d.body,a.name,a.prefix,a.provider);typeof m=="string"&&(d.body=m)}const f=["iconify"];return a.prefix!==""&&f.push("iconify--"+a.prefix),a.provider!==""&&f.push("iconify--"+a.provider),{data:d,classes:f}}function u(){const l=c();l?l.data!==i.value?.data&&(i.value=l):i.value=null}return r.value?u():Ve(()=>{r.value=!0,u()}),D(()=>e.icon,u),Lt(o),()=>{const l=i.value;if(!l)return Mt(Ls,e);let a=e;return l.classes&&(a={...e,class:l.classes.join(" ")}),Mt({...B,...l.data},a)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});const Hs=q({__name:"App",setup(e){const t=oo(),n=I(()=>we.value[t.name]),o=I(()=>n.value?.description),r=E(""),s=E(""),i=I(()=>n.value?.keywords.join()),c=I(()=>n.value?.images.filter(({url:d})=>d).map(({alt:d="",url:p})=>({alt:d,url:`${window.location.origin}/${p}`}))??[]),u=I(()=>n.value?.type),l=I(()=>n.value?.to&&`${window.location.origin}${n.value.to==="/"?"":n.value.to}`),a=I(()=>n.value?.title);return D(n,async d=>{if(d){let p="/favicon.ico";if(d.icon){const f=qr(d.icon)?Br(d.icon):await _s(d.icon);if(f){console.log(f);const{attributes:m,body:h}=Yt(f,{height:16,width:16});p=`data:image/svg+xml,${encodeURIComponent(or(er(h),m))}`}}r.value=p,s.value=JSON.stringify(await Rt(`./pages/${d.id}.jsonld`)??{"@context":"https://schema.org"})}}),qe({link:[[r,"icon","icon"],[l,"canonical"]].map(([d,p,f])=>({href:d,key:f,rel:p})),script:[{id:"application/ld+json",innerHTML:s,type:"application/ld+json"}]}),Do({description:o,keywords:i,ogDescription:o,ogImage:c,ogTitle:a,ogType:u,ogUrl:l,title:a}),(d,p)=>{const f=Hn("router-view");return P(),te(f,null,{default:ze(({Component:m})=>[(P(),te(We(m),{id:O(W)[0]?.id},null,8,["id"]))]),_:1})}}}),ae=new Map,Sn=e=>Dn(async()=>io(`./pages/${e}.vue`,{scriptOptions:{inlineTemplate:!0}})),ue=new Map,_n=()=>{let e,t;return{promise:new Promise((o,r)=>{e=o,t=r}),reject:t,resolve:e}},Tn=_n(),ve=E();E(!1);const Z=I(()=>ve.value===W.value[0]?.id?W.value[0]?.$children[0]:we.value[ve.value]),Ds=I(()=>Z.value===void 0||Z.value.parent?.flat?Z.value?.siblings??[]:[Z.value]),Re=Or(Ds,({enabled:e})=>e);function Et(e,t){const n=e.type,o=n==="html"?"htmlAttrs":n==="body"?"bodyAttrs":n;if(typeof o!="string"||!(o in t))return;const r=e.props||{};if(e.children){const s="children";r.children=Array.isArray(e.children)?e.children[0][s]:e[s]}Array.isArray(t[o])?t[o].push(r):o==="title"?t.title=r.children:t[o]=r}function Rs(e){const t={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const n of e)if(typeof n.type=="symbol"&&Array.isArray(n.children))for(const o of n.children)Et(o,t);else Et(n,t);return t}const Ns=q({name:"Head",setup(e,{slots:t}){const n=E({}),o=qe(n);return jt(()=>{o.dispose()}),()=>(At(()=>{t.default&&o.patch(Rs(t.default()))}),null)}}),Vs=q({__name:"NotFoundView",setup(e){return(t,n)=>(P(),de(Ht,null,[Rn(O(Ns),null,{default:ze(()=>[...n[0]||(n[0]=[K("title",null,"Page Not Found",-1)])]),_:1}),n[1]||(n[1]=K("div",{class:"absolute inset-0 grid place-items-center"},[K("div",{class:"text-center"},[K("div",{class:"text-9xl"},"404"),K("p",null,"Oops. Nothing here...")])],-1))],64))}}),zs={mounted(e,t){typeof t.value=="function"?vt(e,t.value):vt(e,...t.value)}};function Ws(){let e=!1;const t=H(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=Lr(n,o.value);D(t,s=>r.value=s)}}Ws();const Us=["id"],qs=q({__name:"PageView",setup(e){const t=()=>{[ae,ue].forEach(o=>{o.clear()})},n=I(()=>new Map(Re.value.map(({id:o})=>[o,Sn(o)])));return D(Re,o=>{t(),o.forEach(({id:r})=>{ae.set(r,!1),ue.set(r,_n())})},{immediate:!0}),Lt(()=>{t()}),(o,r)=>(P(!0),de(Ht,null,Nn(n.value,([s,i])=>Vn((P(),de("div",{id:s,key:s,"un-cloak":"",class:Dt(O(we)[s]?.class)},[(P(),te(We(i),{id:s,onVnodeMounted:c=>O(ue).get(s)?.resolve(void 0)},null,8,["id","onVnodeMounted"]))],10,Us)),[[O(zs),[([{isIntersecting:c}={}])=>{O(ae).set(s,c)},{threshold:.1}]]])),128))}}),Bs=["id"],Gs=q({__name:"RootView",setup(e){const[t]=W.value,n=I(()=>t&&Sn(t.id));return(o,r)=>(P(),te(zn,null,{default:ze(()=>[O(t)?.enabled?(P(),de("div",{key:0,id:O(t).id,class:Dt(O(t).class),"un-cloak":""},[(P(),te(We(n.value),{id:O(t).id,onVnodeMounted:r[0]||(r[0]=s=>O(Tn).resolve(void 0))},null,8,["id"]))],10,Bs)):Wn("",!0)]),_:1}))}}),[[Ks={}],Qs]=(await Promise.all(["index","fonts"].map(e=>Rt(`${e}.json`)))).map(e=>e??[]),In=Un(Hs),{pathname:Js}=new URL(document.baseURI);Nt.info("👊 VueBro / https://github.com/vuebro / runtime ver.:","1.2.0");no.push(Ks);await Yn({defaults:{presets:vr({webFontsOptions:{customFetch:eo,fonts:Object.fromEntries(Qs.map(e=>[e.toLowerCase().replace(/ /g,"_"),e]))}})},ready:({extractAll:e,toggleObserver:t})=>{let n=!1;const o=ro({history:so(Js),routes:[...W.value.filter(({path:i})=>i!==void 0).map(i=>{const{id:c,loc:u,path:l}=i,a=u?.replace(/ /g,"_").replace(/^\/?/,"/").replace(/\/?$/,"/");return{...a&&{alias:a},children:[{component:qs,name:c,path:""}],component:Gs,path:l.replace(/^\/?/,"/").replace(/\/?$/,"/")}}),{component:Vs,name:"404",path:"/:pathMatch(.*)*"}],scrollBehavior:async({hash:i,name:c})=>{if(c)if(ve.value=c,n)n=!1;else{const{index:u,parent:{flat:l}={}}=Z.value??{};return t(!0),await Tn.promise,await Promise.all([...ue.values()].map(({promise:a})=>a)),await e(),t(!1),"requestIdleCallback"in window?await new Promise(a=>requestIdleCallback(a)):(await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>setTimeout(a))),{behavior:"smooth",...i||l&&u?{el:i||`#${String(c)}`}:{left:0,top:0}}}return!1}}),{x:r,y:s}=jr(window,{onStop:()=>{const[i]=Re.value,[c]=W.value;if(c&&i){const{$children:[{id:u}={}]=[]}=c,l=!Math.floor(r.value)&&!Math.floor(s.value)&&i.id===u?c.id:[...ae.entries()].find(([,a])=>a)?.[0]??i.id;l!==ve.value&&(n=!0,o.push({name:l}).catch(Nt.error))}}});return o.beforeEach(({path:i})=>i!==decodeURI(i)?decodeURI(i):void 0),In.use(o),!1},rootElement:()=>document.getElementById("app")??void 0});In.use(Ro()).provide("pages",Tr(we)).mount("#app");