@vizejs/vite-plugin-musea 0.0.1-alpha.108 → 0.0.1-alpha.112

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.
Files changed (26) hide show
  1. package/dist/gallery/assets/{cssMode-sp3Stq-L.js → cssMode-DBTfE7c_.js} +1 -1
  2. package/dist/gallery/assets/{editor.api-DB9ZSZzV.js → editor.api-DOELtZec.js} +1 -1
  3. package/dist/gallery/assets/{editor.main-cIHydN24.js → editor.main-BWk0dmtj.js} +2 -2
  4. package/dist/gallery/assets/{freemarker2-BVzRMXOg.js → freemarker2-DaSd0g6o.js} +1 -1
  5. package/dist/gallery/assets/{handlebars-Cf2KkO5b.js → handlebars-B-cbMVnP.js} +1 -1
  6. package/dist/gallery/assets/{html-D8aui2dm.js → html-BbDsaPQg.js} +1 -1
  7. package/dist/gallery/assets/{htmlMode-C_XyXLsD.js → htmlMode-C2OjYqY0.js} +1 -1
  8. package/dist/gallery/assets/index-BIf-7q-k.css +1 -0
  9. package/dist/gallery/assets/index-DotH6Szk.js +63 -0
  10. package/dist/gallery/assets/{javascript-C5i33YRZ.js → javascript-CogJNBNZ.js} +1 -1
  11. package/dist/gallery/assets/{jsonMode-D8V0fqYl.js → jsonMode-ssar7rkB.js} +1 -1
  12. package/dist/gallery/assets/{liquid-CD1w0MIS.js → liquid-D9uJH3tm.js} +1 -1
  13. package/dist/gallery/assets/{mdx-DE7SShaR.js → mdx-D1ruboYf.js} +1 -1
  14. package/dist/gallery/assets/{monaco.contribution-CvSyGBlQ.js → monaco.contribution-w8cYIjzF.js} +2 -2
  15. package/dist/gallery/assets/{python-BMFb7y18.js → python-Bk5JPOE3.js} +1 -1
  16. package/dist/gallery/assets/{razor-RLHwYY6d.js → razor-BbS20zwD.js} +1 -1
  17. package/dist/gallery/assets/{tsMode-Bgthg7Gz.js → tsMode-DWuHbc8i.js} +1 -1
  18. package/dist/gallery/assets/{typescript-oiAxO74J.js → typescript-FIdb5Wzk.js} +1 -1
  19. package/dist/gallery/assets/{xml-B6bTVvVM.js → xml-BDyGXNxX.js} +1 -1
  20. package/dist/gallery/assets/{yaml-Dj6cXmD5.js → yaml-D3AYCCFt.js} +1 -1
  21. package/dist/gallery/index.html +2 -2
  22. package/dist/index.js +21 -5
  23. package/dist/index.js.map +1 -1
  24. package/package.json +4 -4
  25. package/dist/gallery/assets/index-CONFKnZd.js +0 -62
  26. package/dist/gallery/assets/index-Crqo3IZY.css +0 -1
@@ -1,62 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.main-cIHydN24.js","assets/editor.api-DB9ZSZzV.js","assets/editor-B55U_qvj.css","assets/monaco.contribution-CvSyGBlQ.js","assets/editor-F8AxQWwE.css"])))=>i.map(i=>d[i]);
2
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function u(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var d={},f=[],p=()=>{},m=()=>!1,h=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),g=e=>e.startsWith(`onUpdate:`),_=Object.assign,v=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),x=Array.isArray,S=e=>ne(e)===`[object Map]`,C=e=>ne(e)===`[object Set]`,ee=e=>ne(e)===`[object Date]`,w=e=>typeof e==`function`,T=e=>typeof e==`string`,E=e=>typeof e==`symbol`,D=e=>typeof e==`object`&&!!e,te=e=>(D(e)||w(e))&&w(e.then)&&w(e.catch),O=Object.prototype.toString,ne=e=>O.call(e),k=e=>ne(e).slice(8,-1),re=e=>ne(e)===`[object Object]`,A=e=>T(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,j=u(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ie=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ae=/-\w/g,oe=ie(e=>e.replace(ae,e=>e.slice(1).toUpperCase())),se=/\B([A-Z])/g,ce=ie(e=>e.replace(se,`-$1`).toLowerCase()),le=ie(e=>e.charAt(0).toUpperCase()+e.slice(1)),ue=ie(e=>e?`on${le(e)}`:``),de=(e,t)=>!Object.is(e,t),fe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},pe=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},me=e=>{let t=parseFloat(e);return isNaN(t)?e:t},he=e=>{let t=T(e)?Number(e):NaN;return isNaN(t)?e:t},ge,_e=()=>ge||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ve(e){if(x(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=T(r)?Se(r):ve(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(T(e)||D(e))return e}var ye=/;(?![^(]*\))/g,be=/:([^]+)/,xe=/\/\*[^]*?\*\//g;function Se(e){let t={};return e.replace(xe,``).split(ye).forEach(e=>{if(e){let n=e.split(be);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function M(e){let t=``;if(T(e))t=e;else if(x(e))for(let n=0;n<e.length;n++){let r=M(e[n]);r&&(t+=r+` `)}else if(D(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var Ce=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,we=u(Ce);Ce+``;function Te(e){return!!e||e===``}function Ee(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=De(e[r],t[r]);return n}function De(e,t){if(e===t)return!0;let n=ee(e),r=ee(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=E(e),r=E(t),n||r)return e===t;if(n=x(e),r=x(t),n||r)return n&&r?Ee(e,t):!1;if(n=D(e),r=D(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!De(e[n],t[n]))return!1}}return String(e)===String(t)}function Oe(e,t){return e.findIndex(e=>De(e,t))}var ke=e=>!!(e&&e.__v_isRef===!0),N=e=>T(e)?e:e==null?``:x(e)||D(e)&&(e.toString===O||!w(e.toString))?ke(e)?N(e.value):JSON.stringify(e,Ae,2):String(e),Ae=(e,t)=>ke(t)?Ae(e,t.value):S(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[je(t,r)+` =>`]=n,e),{})}:C(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>je(e))}:E(t)?je(t):D(t)&&!x(t)&&!re(t)?String(t):t,je=(e,t=``)=>E(e)?`Symbol(${e.description??t})`:e,Me,Ne=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Me,!e&&Me&&(this.index=(Me.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=Me;try{return Me=this,e()}finally{Me=t}}}on(){++this._on===1&&(this.prevScope=Me,Me=this)}off(){this._on>0&&--this._on===0&&(Me=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Pe(){return Me}var P,Fe=new WeakSet,Ie=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Me&&Me.active&&Me.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Fe.has(this)&&(Fe.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Be(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,$e(this),Ue(this);let e=P,t=Ye;P=this,Ye=!0;try{return this.fn()}finally{We(this),P=e,Ye=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)qe(e);this.deps=this.depsTail=void 0,$e(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Fe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ge(this)&&this.run()}get dirty(){return Ge(this)}},Le=0,Re,ze;function Be(e,t=!1){if(e.flags|=8,t){e.next=ze,ze=e;return}e.next=Re,Re=e}function Ve(){Le++}function He(){if(--Le>0)return;if(ze){let e=ze;for(ze=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Re;){let t=Re;for(Re=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Ue(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function We(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),qe(r),Je(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ge(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ke(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ke(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===et)||(e.globalVersion=et,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ge(e))))return;e.flags|=2;let t=e.dep,n=P,r=Ye;P=e,Ye=!0;try{Ue(e);let n=e.fn(e._value);(t.version===0||de(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{P=n,Ye=r,We(e),e.flags&=-3}}function qe(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)qe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Je(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ye=!0,Xe=[];function Ze(){Xe.push(Ye),Ye=!1}function Qe(){let e=Xe.pop();Ye=e===void 0?!0:e}function $e(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=P;P=void 0;try{t()}finally{P=e}}}var et=0,tt=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},nt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!P||!Ye||P===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==P)t=this.activeLink=new tt(P,this),P.deps?(t.prevDep=P.depsTail,P.depsTail.nextDep=t,P.depsTail=t):P.deps=P.depsTail=t,rt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=P.depsTail,t.nextDep=void 0,P.depsTail.nextDep=t,P.depsTail=t,P.deps===t&&(P.deps=e)}return t}trigger(e){this.version++,et++,this.notify(e)}notify(e){Ve();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{He()}}};function rt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)rt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var it=new WeakMap,at=Symbol(``),ot=Symbol(``),st=Symbol(``);function ct(e,t,n){if(Ye&&P){let t=it.get(e);t||it.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new nt),r.map=t,r.key=n),r.track()}}function lt(e,t,n,r,i,a){let o=it.get(e);if(!o){et++;return}let s=e=>{e&&e.trigger()};if(Ve(),t===`clear`)o.forEach(s);else{let i=x(e),a=i&&A(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===st||!E(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(st)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(at)),S(e)&&s(o.get(ot)));break;case`delete`:i||(s(o.get(at)),S(e)&&s(o.get(ot)));break;case`set`:S(e)&&s(o.get(at));break}}He()}function ut(e,t){let n=it.get(e);return n&&n.get(t)}function dt(e){let t=F(e);return t===e?t:(ct(t,`iterate`,st),Zt(e)?t:t.map(en))}function ft(e){return ct(e=F(e),`iterate`,st),e}function pt(e,t){return Xt(e)?Yt(e)?tn(en(t)):tn(t):en(t)}var mt={__proto__:null,[Symbol.iterator](){return ht(this,Symbol.iterator,e=>pt(this,e))},concat(...e){return dt(this).concat(...e.map(e=>x(e)?dt(e):e))},entries(){return ht(this,`entries`,e=>(e[1]=pt(this,e[1]),e))},every(e,t){return _t(this,`every`,e,t,void 0,arguments)},filter(e,t){return _t(this,`filter`,e,t,e=>e.map(e=>pt(this,e)),arguments)},find(e,t){return _t(this,`find`,e,t,e=>pt(this,e),arguments)},findIndex(e,t){return _t(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return _t(this,`findLast`,e,t,e=>pt(this,e),arguments)},findLastIndex(e,t){return _t(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return _t(this,`forEach`,e,t,void 0,arguments)},includes(...e){return yt(this,`includes`,e)},indexOf(...e){return yt(this,`indexOf`,e)},join(e){return dt(this).join(e)},lastIndexOf(...e){return yt(this,`lastIndexOf`,e)},map(e,t){return _t(this,`map`,e,t,void 0,arguments)},pop(){return bt(this,`pop`)},push(...e){return bt(this,`push`,e)},reduce(e,...t){return vt(this,`reduce`,e,t)},reduceRight(e,...t){return vt(this,`reduceRight`,e,t)},shift(){return bt(this,`shift`)},some(e,t){return _t(this,`some`,e,t,void 0,arguments)},splice(...e){return bt(this,`splice`,e)},toReversed(){return dt(this).toReversed()},toSorted(e){return dt(this).toSorted(e)},toSpliced(...e){return dt(this).toSpliced(...e)},unshift(...e){return bt(this,`unshift`,e)},values(){return ht(this,`values`,e=>pt(this,e))}};function ht(e,t,n){let r=ft(e),i=r[t]();return r!==e&&!Zt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var gt=Array.prototype;function _t(e,t,n,r,i,a){let o=ft(e),s=o!==e&&!Zt(e),c=o[t];if(c!==gt[t]){let t=c.apply(e,a);return s?en(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,pt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function vt(e,t,n,r){let i=ft(e),a=n;return i!==e&&(Zt(e)?n.length>3&&(a=function(t,r,i){return n.call(this,t,r,i,e)}):a=function(t,r,i){return n.call(this,t,pt(e,r),i,e)}),i[t](a,...r)}function yt(e,t,n){let r=F(e);ct(r,`iterate`,st);let i=r[t](...n);return(i===-1||i===!1)&&Qt(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function bt(e,t,n=[]){Ze(),Ve();let r=F(e)[t].apply(e,n);return He(),Qe(),r}var xt=u(`__proto__,__v_isRef,__isVue`),St=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(E));function Ct(e){E(e)||(e=String(e));let t=F(this);return ct(t,`has`,e),t.hasOwnProperty(e)}var wt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ht:Vt:i?Bt:zt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=x(e);if(!r){let e;if(a&&(e=mt[t]))return e;if(t===`hasOwnProperty`)return Ct}let o=Reflect.get(e,t,nn(e)?e:n);if((E(t)?St.has(t):xt(t))||(r||ct(e,`get`,t),i))return o;if(nn(o)){let e=a&&A(t)?o:o.value;return r&&D(e)?qt(e):e}return D(o)?r?qt(o):Gt(o):o}},Tt=class extends wt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=x(e)&&A(t);if(!this._isShallow){let e=Xt(i);if(!Zt(n)&&!Xt(n)&&(i=F(i),n=F(n)),!a&&nn(i)&&!nn(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:b(e,t),s=Reflect.set(e,t,n,nn(e)?e:r);return e===F(r)&&(o?de(n,i)&&lt(e,`set`,t,n,i):lt(e,`add`,t,n)),s}deleteProperty(e,t){let n=b(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&lt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!E(t)||!St.has(t))&&ct(e,`has`,t),n}ownKeys(e){return ct(e,`iterate`,x(e)?`length`:at),Reflect.ownKeys(e)}},Et=class extends wt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Dt=new Tt,Ot=new Et,kt=new Tt(!0),At=e=>e,jt=e=>Reflect.getPrototypeOf(e);function Mt(e,t,n){return function(...r){let i=this.__v_raw,a=F(i),o=S(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?At:t?tn:en;return!t&&ct(a,`iterate`,c?ot:at),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Nt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Pt(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(de(n,a)&&ct(i,`get`,n),ct(i,`get`,a));let{has:o}=jt(i),s=t?At:e?tn:en;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&ct(F(t),`iterate`,at),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(de(t,i)&&ct(r,`has`,t),ct(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=F(a),s=t?At:e?tn:en;return!e&&ct(o,`iterate`,at),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return _(n,e?{add:Nt(`add`),set:Nt(`set`),delete:Nt(`delete`),clear:Nt(`clear`)}:{add(e){!t&&!Zt(e)&&!Xt(e)&&(e=F(e));let n=F(this);return jt(n).has.call(n,e)||(n.add(e),lt(n,`add`,e,e)),this},set(e,n){!t&&!Zt(n)&&!Xt(n)&&(n=F(n));let r=F(this),{has:i,get:a}=jt(r),o=i.call(r,e);o||=(e=F(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?de(n,s)&&lt(r,`set`,e,n,s):lt(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=jt(t),i=n.call(t,e);i||=(e=F(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&lt(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&&lt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Mt(r,e,t)}),n}function Ft(e,t){let n=Pt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(b(n,r)&&r in t?n:t,r,i)}var It={get:Ft(!1,!1)},Lt={get:Ft(!1,!0)},Rt={get:Ft(!0,!1)},zt=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,Ht=new WeakMap;function Ut(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Wt(e){return e.__v_skip||!Object.isExtensible(e)?0:Ut(k(e))}function Gt(e){return Xt(e)?e:Jt(e,!1,Dt,It,zt)}function Kt(e){return Jt(e,!1,kt,Lt,Bt)}function qt(e){return Jt(e,!0,Ot,Rt,Vt)}function Jt(e,t,n,r,i){if(!D(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=Wt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Yt(e){return Xt(e)?Yt(e.__v_raw):!!(e&&e.__v_isReactive)}function Xt(e){return!!(e&&e.__v_isReadonly)}function Zt(e){return!!(e&&e.__v_isShallow)}function Qt(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function $t(e){return!b(e,`__v_skip`)&&Object.isExtensible(e)&&pe(e,`__v_skip`,!0),e}var en=e=>D(e)?Gt(e):e,tn=e=>D(e)?qt(e):e;function nn(e){return e?e.__v_isRef===!0:!1}function I(e){return an(e,!1)}function rn(e){return an(e,!0)}function an(e,t){return nn(e)?e:new on(e,t)}var on=class{constructor(e,t){this.dep=new nt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:en(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Zt(e)||Xt(e);e=n?e:F(e),de(e,t)&&(this._rawValue=e,this._value=n?e:en(e),this.dep.trigger())}};function L(e){return nn(e)?e.value:e}var sn={get:(e,t,n)=>t===`__v_raw`?e:L(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return nn(i)&&!nn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function cn(e){return Yt(e)?e:new Proxy(e,sn)}var ln=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new nt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function un(e){return new ln(e)}function dn(e){let t=x(e)?Array(e.length):{};for(let n in e)t[n]=pn(e,n);return t}var fn=class{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=F(e);let r=!0,i=e;if(!x(e)||!A(String(t)))do r=!Qt(i)||Zt(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=L(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&nn(this._raw[this._key])){let t=this._object[this._key];if(nn(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return ut(this._raw,this._key)}};function pn(e,t,n){return new fn(e,t,n)}var mn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new nt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=et-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&P!==this)return Be(this,!0),!0}get value(){let e=this.dep.track();return Ke(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function hn(e,t,n=!1){let r,i;return w(e)?r=e:(r=e.get,i=e.set),new mn(r,i,n)}var gn={},_n=new WeakMap,vn=void 0;function yn(e,t=!1,n=vn){if(n){let t=_n.get(n);t||_n.set(n,t=[]),t.push(e)}}function bn(e,t,n=d){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:Zt(e)||i===!1||i===0?xn(e,1):xn(e),u,f,m,h,g=!1,_=!1;if(nn(e)?(f=()=>e.value,g=Zt(e)):Yt(e)?(f=()=>l(e),g=!0):x(e)?(_=!0,g=e.some(e=>Yt(e)||Zt(e)),f=()=>e.map(e=>{if(nn(e))return e.value;if(Yt(e))return l(e);if(w(e))return c?c(e,2):e()})):f=w(e)?t?c?()=>c(e,2):e:()=>{if(m){Ze();try{m()}finally{Qe()}}let t=vn;vn=u;try{return c?c(e,3,[h]):e(h)}finally{vn=t}}:p,t&&i){let e=f,t=i===!0?1/0:i;f=()=>xn(e(),t)}let y=Pe(),b=()=>{u.stop(),y&&y.active&&v(y.effects,u)};if(a&&t){let e=t;t=(...t)=>{e(...t),b()}}let S=_?Array(e.length).fill(gn):gn,C=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let e=u.run();if(i||g||(_?e.some((e,t)=>de(e,S[t])):de(e,S))){m&&m();let n=vn;vn=u;try{let n=[e,S===gn?void 0:_&&S[0]===gn?[]:S,h];S=e,c?c(t,3,n):t(...n)}finally{vn=n}}}else u.run()};return s&&s(C),u=new Ie(f),u.scheduler=o?()=>o(C,!1):C,h=e=>yn(e,!1,u),m=u.onStop=()=>{let e=_n.get(u);if(e){if(c)c(e,4);else for(let t of e)t();_n.delete(u)}},t?r?C(!0):S=u.run():o?o(C.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function xn(e,t=1/0,n){if(t<=0||!D(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,nn(e))xn(e.value,t,n);else if(x(e))for(let r=0;r<e.length;r++)xn(e[r],t,n);else if(C(e)||S(e))e.forEach(e=>{xn(e,t,n)});else if(re(e)){for(let r in e)xn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&xn(e[r],t,n)}return e}function Sn(e,t,n,r){try{return r?e(...r):e()}catch(e){wn(e,t,n)}}function Cn(e,t,n,r){if(w(e)){let i=Sn(e,t,n,r);return i&&te(i)&&i.catch(e=>{wn(e,t,n)}),i}if(x(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Cn(e[a],t,n,r));return i}}function wn(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||d;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){Ze(),Sn(a,null,10,[e,i,o]),Qe();return}}Tn(e,n,i,r,o)}function Tn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var En=[],Dn=-1,On=[],kn=null,An=0,jn=Promise.resolve(),Mn=null;function Nn(e){let t=Mn||jn;return e?t.then(this?e.bind(this):e):t}function Pn(e){let t=Dn+1,n=En.length;for(;t<n;){let r=t+n>>>1,i=En[r],a=Bn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Fn(e){if(!(e.flags&1)){let t=Bn(e),n=En[En.length-1];!n||!(e.flags&2)&&t>=Bn(n)?En.push(e):En.splice(Pn(t),0,e),e.flags|=1,In()}}function In(){Mn||=jn.then(Vn)}function Ln(e){x(e)?On.push(...e):kn&&e.id===-1?kn.splice(An+1,0,e):e.flags&1||(On.push(e),e.flags|=1),In()}function Rn(e,t,n=Dn+1){for(;n<En.length;n++){let t=En[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;En.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function zn(e){if(On.length){let e=[...new Set(On)].sort((e,t)=>Bn(e)-Bn(t));if(On.length=0,kn){kn.push(...e);return}for(kn=e,An=0;An<kn.length;An++){let e=kn[An];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}kn=null,An=0}}var Bn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Vn(e){try{for(Dn=0;Dn<En.length;Dn++){let e=En[Dn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Sn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Dn<En.length;Dn++){let e=En[Dn];e&&(e.flags&=-2)}Dn=-1,En.length=0,zn(e),Mn=null,(En.length||On.length)&&Vn(e)}}var Hn=null,Un=null;function Wn(e){let t=Hn;return Hn=e,Un=e&&e.type.__scopeId||null,t}function Gn(e,t=Hn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Aa(-1);let i=Wn(t),a;try{a=e(...n)}finally{Wn(i),r._d&&Aa(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Kn(e,t){if(Hn===null)return e;let n=uo(Hn),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=d]=t[e];i&&(w(i)&&(i={mounted:i,updated:i}),i.deep&&xn(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function qn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Ze(),Cn(c,n,8,[e.el,s,e,t]),Qe())}}function Jn(e,t){if(Ja){let n=Ja.provides,r=Ja.parent&&Ja.parent.provides;r===n&&(n=Ja.provides=Object.create(r)),n[e]=t}}function Yn(e,t,n=!1){let r=Ya();if(r||Ni){let i=Ni?Ni._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&w(t)?t.call(r&&r.proxy):t}}var Xn=Symbol.for(`v-scx`),Zn=()=>Yn(Xn);function Qn(e,t){return er(e,null,{flush:`sync`})}function $n(e,t,n){return er(e,t,n)}function er(e,t,n=d){let{immediate:r,deep:i,flush:a,once:o}=n,s=_({},n),c=t&&r||!t&&a!==`post`,l;if(to){if(a===`sync`){let e=Zn();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=p,e.resume=p,e.pause=p,e}}let u=Ja;s.call=(e,t,n)=>Cn(e,u,t,n);let f=!1;a===`post`?s.scheduler=e=>{ua(e,u&&u.suspense)}:a!==`sync`&&(f=!0,s.scheduler=(e,t)=>{t?e():Fn(e)}),s.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let m=bn(e,t,s);return to&&(l?l.push(m):c&&m()),m}function tr(e,t,n){let r=this.proxy,i=T(e)?e.includes(`.`)?nr(r,e):()=>r[e]:e.bind(r,r),a;w(t)?a=t:(a=t.handler,n=t);let o=Qa(this),s=er(i,a.bind(r),n);return o(),s}function nr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var rr=Symbol(`_vte`),ir=e=>e.__isTeleport,ar=e=>e&&(e.disabled||e.disabled===``),or=e=>e&&(e.defer||e.defer===``),sr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,cr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,lr=(e,t)=>{let n=e&&e.to;return T(n)?t?t(n):null:n},ur={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g}}=l,_=ar(t.props),{shapeFlag:v,children:y,dynamicChildren:b}=t;if(e==null){let e=t.el=h(``),l=t.anchor=h(``);p(e,n,r),p(l,n,r);let d=(e,t)=>{v&16&&u(y,e,t,i,a,o,s,c)},f=()=>{let e=t.target=lr(t.props,m),n=hr(e,t,h,p);e&&(o!==`svg`&&sr(e)?o=`svg`:o!==`mathml`&&cr(e)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(e),_||(d(e,n),mr(t,!1)))};_&&(d(n,l),mr(t,!0)),or(t.props)?(t.el.__isMounted=!1,ua(()=>{f(),delete t.el.__isMounted},a)):f()}else{if(or(t.props)&&e.el.__isMounted===!1){ua(()=>{ur.process(e,t,n,r,i,a,o,s,c,l)},a);return}t.el=e.el,t.targetStart=e.targetStart;let u=t.anchor=e.anchor,p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=ar(e.props),v=g?n:p,y=g?u:h;if(o===`svg`||sr(p)?o=`svg`:(o===`mathml`||cr(p))&&(o=`mathml`),b?(f(e.dynamicChildren,b,v,i,a,o,s),ga(e,t,!0)):c||d(e,t,v,y,i,a,o,s,!1),_)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):dr(t,n,u,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=lr(t.props,m);e&&dr(t,e,null,l,0)}else g&&dr(t,p,h,l,1);mr(t,_)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e;if(d&&(i(l),i(u)),a&&i(c),o&16){let e=a||!ar(f);for(let i=0;i<s.length;i++){let a=s[i];r(a,t,n,e,!!a.dynamicChildren)}}},move:dr,hydrate:fr};function dr(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),(!d||ar(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function fr(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,t,c,l){t.anchor=d(o(e),t,s(e),n,r,i,a),t.targetStart=c,t.targetAnchor=l}let p=t.target=lr(t.props,c),m=ar(t.props);if(p){let s=p._lpa||p.firstChild;if(t.shapeFlag&16)if(m)f(e,t,s,s&&o(s));else{t.anchor=o(e);let c=s;for(;c;){if(c&&c.nodeType===8){if(c.data===`teleport start anchor`)t.targetStart=c;else if(c.data===`teleport anchor`){t.targetAnchor=c,p._lpa=t.targetAnchor&&o(t.targetAnchor);break}}c=o(c)}t.targetAnchor||hr(p,t,u,l),d(s&&o(s),t,p,n,r,i,a)}mr(t,m)}else m&&t.shapeFlag&16&&f(e,t,e,o(e));return t.anchor&&o(t.anchor)}var pr=ur;function mr(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function hr(e,t,n,r){let i=t.targetStart=n(``),a=t.targetAnchor=n(``);return i[rr]=a,e&&(r(i,e),r(a,e)),a}var gr=Symbol(`_leaveCb`),_r=Symbol(`_enterCb`);function vr(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Jr(()=>{e.isMounted=!0}),Zr(()=>{e.isUnmounting=!0}),e}var yr=[Function,Array],br={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yr,onEnter:yr,onAfterEnter:yr,onEnterCancelled:yr,onBeforeLeave:yr,onLeave:yr,onAfterLeave:yr,onLeaveCancelled:yr,onBeforeAppear:yr,onAppear:yr,onAfterAppear:yr,onAppearCancelled:yr},xr=e=>{let t=e.subTree;return t.component?xr(t.component):t},Sr={name:`BaseTransition`,props:br,setup(e,{slots:t}){let n=Ya(),r=vr();return()=>{let i=t.default&&Ar(t.default(),!0);if(!i||!i.length)return;let a=Cr(i),o=F(e),{mode:s}=o;if(r.isLeaving)return Dr(a);let c=Or(a);if(!c)return Dr(a);let l=Er(c,o,r,n,e=>l=e);c.type!==wa&&kr(c,l);let u=n.subTree&&Or(n.subTree);if(u&&u.type!==wa&&!Na(u,c)&&xr(n).type!==wa){let e=Er(u,o,r,n);if(kr(u,e),s===`out-in`&&c.type!==wa)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Dr(a);s===`in-out`&&c.type!==wa?e.delayLeave=(e,t,n)=>{let i=Tr(r,u);i[String(u.key)]=u,e[gr]=()=>{t(),e[gr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Cr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==wa){t=n;break}}return t}var wr=Sr;function Tr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Er(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),S=Tr(n,e),C=(e,t)=>{e&&Cn(e,r,9,t)},ee=(e,t)=>{let n=t[1];C(e,t),x(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[gr]&&t[gr](!0);let i=S[b];i&&Na(e,i)&&i.el[gr]&&i.el[gr](),C(r,[t])},enter(e){let t=l,r=u,i=d;if(!n.isMounted)if(a)t=_||l,r=v||u,i=y||d;else return;let o=!1,s=e[_r]=t=>{o||(o=!0,C(t?i:r,[e]),w.delayedLeave&&w.delayedLeave(),e[_r]=void 0)};t?ee(t,[e,s]):s()},leave(t,r){let i=String(e.key);if(t[_r]&&t[_r](!0),n.isUnmounting)return r();C(f,[t]);let a=!1,o=t[gr]=n=>{a||(a=!0,r(),C(n?h:m,[t]),t[gr]=void 0,S[i]===e&&delete S[i])};S[i]=e,p?ee(p,[t,o]):o()},clone(e){let a=Er(e,t,n,r,i);return i&&i(a),a}};return w}function Dr(e){if(Br(e))return e=Ra(e),e.children=null,e}function Or(e){if(!Br(e))return ir(e.type)&&e.children?Cr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&w(n.default))return n.default()}}function kr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,kr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ar(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===B?(o.patchFlag&128&&i++,r=r.concat(Ar(o.children,t,s))):(t||o.type!==wa)&&r.push(s==null?o:Ra(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function R(e,t){return w(e)?_({name:e.name},t,{setup:e}):e}function jr(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}var Mr=new WeakMap;function Nr(e,t,n,r,i=!1){if(x(e)){e.forEach((e,a)=>Nr(e,t&&(x(t)?t[a]:t),n,r,i));return}if(Lr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Nr(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?uo(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===d?s.refs={}:s.refs,f=s.setupState,p=F(f),h=f===d?m:e=>b(p,e),g=e=>!0;if(l!=null&&l!==c){if(Pr(t),T(l))u[l]=null,h(l)&&(f[l]=null);else if(nn(l)){g(l)&&(l.value=null);let e=t;e.k&&(u[e.k]=null)}}if(w(c))Sn(c,s,12,[o,u]);else{let t=T(c),r=nn(c);if(t||r){let s=()=>{if(e.f){let n=t?h(c)?f[c]:u[c]:g(c)||!e.k?c.value:u[e.k];if(i)x(n)&&v(n,a);else if(x(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],h(c)&&(f[c]=u[c]);else{let t=[a];g(c)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,h(c)&&(f[c]=o)):r&&(g(c)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),Mr.delete(e)};t.id=-1,Mr.set(e,t),ua(t,n)}else Pr(e),s()}}}function Pr(e){let t=Mr.get(e);t&&(t.flags|=8,Mr.delete(e))}var Fr=e=>e.nodeType===8;_e().requestIdleCallback,_e().cancelIdleCallback;function Ir(e,t){if(Fr(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Fr(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var Lr=e=>!!e.type.__asyncLoader;function Rr(e){w(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return R({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>Ir(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=Ja;if(jr(e),u)return()=>zr(u,e);let t=t=>{l=null,wn(t,e,13,!r)};if(s&&e.suspense||to)return p().then(t=>()=>zr(t,e)).catch(e=>(t(e),()=>r?G(r,{error:e}):null));let a=I(!1),c=I(),d=I(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&Br(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return zr(u,e);if(c.value&&r)return G(r,{error:c.value});if(n&&!d.value)return zr(n,e)}}})}function zr(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=G(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Br=e=>e.type.__isKeepAlive;function Vr(e,t){Ur(e,`a`,t)}function Hr(e,t){Ur(e,`da`,t)}function Ur(e,t,n=Ja){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Gr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Br(e.parent.vnode)&&Wr(r,t,n,e),e=e.parent}}function Wr(e,t,n,r){let i=Gr(t,e,r,!0);Qr(()=>{v(r[t],i)},n)}function Gr(e,t,n=Ja,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ze();let i=Qa(n),a=Cn(t,n,e,r);return i(),Qe(),a};return r?i.unshift(a):i.push(a),a}}var Kr=e=>(t,n=Ja)=>{(!to||e===`sp`)&&Gr(e,(...e)=>t(...e),n)},qr=Kr(`bm`),Jr=Kr(`m`),Yr=Kr(`bu`),Xr=Kr(`u`),Zr=Kr(`bum`),Qr=Kr(`um`),$r=Kr(`sp`),ei=Kr(`rtg`),ti=Kr(`rtc`);function ni(e,t=Ja){Gr(`ec`,e,t)}var ri=`components`;function ii(e,t){return si(ri,e,!0,t)||e}var ai=Symbol.for(`v-ndc`);function oi(e){return T(e)?si(ri,e,!1)||e:e||ai}function si(e,t,n=!0,r=!1){let i=Hn||Ja;if(i){let n=i.type;if(e===ri){let e=fo(n,!1);if(e&&(e===t||e===oe(t)||e===le(oe(t))))return n}let a=ci(i[e]||n[e],t)||ci(i.appContext[e],t);return!a&&r?n:a}}function ci(e,t){return e&&(e[t]||e[oe(t)]||e[le(oe(t))])}function z(e,t,n,r){let i,a=n&&n[r],o=x(e);if(o||T(e)){let n=o&&Yt(e),r=!1,s=!1;n&&(r=!Zt(e),s=Xt(e),e=ft(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?tn(en(e[n])):en(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(D(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}var li=e=>e?eo(e)?uo(e):li(e.parent):null,ui=_(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>li(e.parent),$root:e=>li(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>bi(e),$forceUpdate:e=>e.f||=()=>{Fn(e.update)},$nextTick:e=>e.n||=Nn.bind(e.proxy),$watch:e=>tr.bind(e)}),di=(e,t)=>e!==d&&!e.__isScriptSetup&&b(e,t),fi={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(di(r,t))return o[t]=1,r[t];else if(i!==d&&b(i,t))return o[t]=2,i[t];else if(b(a,t))return o[t]=3,a[t];else if(n!==d&&b(n,t))return o[t]=4,n[t];else hi&&(o[t]=0)}let l=ui[t],u,f;if(l)return t===`$attrs`&&ct(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==d&&b(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,b(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return di(i,t)?(i[t]=n,!0):r!==d&&b(r,t)?(r[t]=n,!0):b(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==d&&s[0]!==`$`&&b(e,s)||di(t,s)||b(a,s)||b(r,s)||b(ui,s)||b(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?b(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function pi(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function mi(e,t){return!e||!t?e||t:x(e)&&x(t)?e.concat(t):_({},pi(e),pi(t))}var hi=!0;function gi(e){let t=bi(e),n=e.proxy,r=e.ctx;hi=!1,t.beforeCreate&&vi(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:h,activated:g,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:S,render:C,renderTracked:ee,renderTriggered:T,errorCaptured:E,serverPrefetch:te,expose:O,inheritAttrs:ne,components:k,directives:re,filters:A}=t;if(l&&_i(l,r,null),o)for(let e in o){let t=o[e];w(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);D(t)&&(e.data=Gt(t))}if(hi=!0,a)for(let e in a){let t=a[e],i=J({get:w(t)?t.bind(n,n):w(t.get)?t.get.bind(n,n):p,set:!w(t)&&w(t.set)?t.set.bind(n):p});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)yi(s[e],r,n,e);if(c){let e=w(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Jn(t,e[t])})}u&&vi(u,e,`c`);function j(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(qr,d),j(Jr,f),j(Yr,m),j(Xr,h),j(Vr,g),j(Hr,_),j(ni,E),j(ti,ee),j(ei,T),j(Zr,y),j(Qr,S),j($r,te),x(O))if(O.length){let t=e.exposed||={};O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};C&&e.render===p&&(e.render=C),ne!=null&&(e.inheritAttrs=ne),k&&(e.components=k),re&&(e.directives=re),te&&jr(e)}function _i(e,t,n=p){for(let n in x(e)&&(e=Ti(e)),e){let r=e[n],i;i=D(r)?`default`in r?Yn(r.from||n,r.default,!0):Yn(r.from||n):Yn(r),nn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function vi(e,t,n){Cn(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function yi(e,t,n,r){let i=r.includes(`.`)?nr(n,r):()=>n[r];if(T(e)){let n=t[e];w(n)&&$n(i,n)}else if(w(e))$n(i,e.bind(n));else if(D(e))if(x(e))e.forEach(e=>yi(e,t,n,r));else{let r=w(e.handler)?e.handler.bind(n):t[e.handler];w(r)&&$n(i,r,e)}}function bi(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>xi(c,e,o,!0)),xi(c,t,o)),D(t)&&a.set(t,c),c}function xi(e,t,n,r=!1){let{mixins:i,extends:a}=t;for(let o in a&&xi(e,a,n,!0),i&&i.forEach(t=>xi(e,t,n,!0)),t)if(!(r&&o===`expose`)){let r=Si[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}var Si={data:Ci,props:Oi,emits:Oi,methods:Di,computed:Di,beforeCreate:Ei,created:Ei,beforeMount:Ei,mounted:Ei,beforeUpdate:Ei,updated:Ei,beforeDestroy:Ei,beforeUnmount:Ei,destroyed:Ei,unmounted:Ei,activated:Ei,deactivated:Ei,errorCaptured:Ei,serverPrefetch:Ei,components:Di,directives:Di,watch:ki,provide:Ci,inject:wi};function Ci(e,t){return t?e?function(){return _(w(e)?e.call(this,this):e,w(t)?t.call(this,this):t)}:t:e}function wi(e,t){return Di(Ti(e),Ti(t))}function Ti(e){if(x(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ei(e,t){return e?[...new Set([].concat(e,t))]:t}function Di(e,t){return e?_(Object.create(null),e,t):t}function Oi(e,t){return e?x(e)&&x(t)?[...new Set([...e,...t])]:_(Object.create(null),pi(e),pi(t??{})):t}function ki(e,t){if(!e)return t;if(!t)return e;let n=_(Object.create(null),e);for(let r in t)n[r]=Ei(e[r],t[r]);return n}function Ai(){return{app:null,config:{isNativeTag:m,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var ji=0;function Mi(e,t){return function(n,r=null){w(n)||(n=_({},n)),r!=null&&!D(r)&&(r=null);let i=Ai(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:ji++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:ho,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&w(e.install)?(a.add(e),e.install(c,...t)):w(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||G(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,uo(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Cn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=Ni;Ni=c;try{return e()}finally{Ni=t}}};return c}}var Ni=null;function Pi(e,t,n=d){let r=Ya(),i=oe(t),a=ce(t),o=Fi(e,i),s=un((o,s)=>{let c,l=d,u;return Qn(()=>{let t=e[i];de(c,t)&&(c=t,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=n.set?n.set(e):e;if(!de(o,c)&&!(l!==d&&de(e,l)))return;let f=r.vnode.props;f&&(t in f||i in f||a in f)&&(`onUpdate:${t}`in f||`onUpdate:${i}`in f||`onUpdate:${a}`in f)||(c=e,s()),r.emit(`update:${t}`,o),de(e,o)&&de(e,l)&&!de(o,u)&&s(),l=e,u=o}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?o||d:s,done:!1}:{done:!0}}}},s}var Fi=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${oe(t)}Modifiers`]||e[`${ce(t)}Modifiers`];function Ii(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||d,i=n,a=t.startsWith(`update:`),o=a&&Fi(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>T(e)?e.trim():e)),o.number&&(i=n.map(me)));let s,c=r[s=ue(t)]||r[s=ue(oe(t))];!c&&a&&(c=r[s=ue(ce(t))]),c&&Cn(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Cn(l,e,6,i)}}var Li=new WeakMap;function Ri(e,t,n=!1){let r=n?Li:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!w(e)){let r=e=>{let n=Ri(e,t,!0);n&&(s=!0,_(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(D(e)&&r.set(e,null),null):(x(a)?a.forEach(e=>o[e]=null):_(o,a),D(e)&&r.set(e,o),o)}function zi(e,t){return!e||!h(t)?!1:(t=t.slice(2).replace(/Once$/,``),b(e,t[0].toLowerCase()+t.slice(1))||b(e,ce(t))||b(e,t))}function Bi(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,_=Wn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ba(l.call(t,e,u,d,p,f,m)),y=s}else{let e=t;v=Ba(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),y=t.props?s:Vi(s)}}catch(t){Ea.length=0,wn(t,e,1),v=G(wa)}let b=v;if(y&&h!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(g)&&(y=Hi(y,a)),b=Ra(b,y,!1,!0))}return n.dirs&&(b=Ra(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&kr(b,n.transition),v=b,Wn(_),v}var Vi=e=>{let t;for(let n in e)(n===`class`||n===`style`||h(n))&&((t||={})[n]=e[n]);return t},Hi=(e,t)=>{let n={};for(let r in e)(!g(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ui(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Wi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(o[n]!==r[n]&&!zi(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Wi(r,o,l):!0:!!o;return!1}function Wi(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(t[a]!==e[a]&&!zi(n,a))return!0}return!1}function Gi({vnode:e,parent:t},n){for(;t;){let r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}var Ki={},qi=()=>Object.create(Ki),Ji=e=>Object.getPrototypeOf(e)===Ki;function Yi(e,t,n,r=!1){let i={},a=qi();for(let n in e.propsDefaults=Object.create(null),Zi(e,t,i,a),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:Kt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Xi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=F(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(zi(e.emitsOptions,o))continue;let u=t[o];if(c)if(b(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=oe(o);i[t]=Qi(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Zi(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!b(t,a)&&((r=ce(a))===a||!b(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Qi(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!b(t,e))&&(delete a[e],l=!0)}l&&lt(e.attrs,`set`,``)}function Zi(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(j(c))continue;let l=t[c],u;i&&b(i,u=oe(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:zi(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=F(n),r=s||d;for(let o=0;o<a.length;o++){let s=a[o];n[s]=Qi(i,t,s,r[s],e,!b(r,s))}}return o}function Qi(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=b(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&w(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Qa(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===ce(n))&&(r=!0))}return r}var $i=new WeakMap;function ea(e,t,n=!1){let r=n?$i:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!w(e)){let r=e=>{c=!0;let[n,r]=ea(e,t,!0);_(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return D(e)&&r.set(e,f),f;if(x(a))for(let e=0;e<a.length;e++){let t=oe(a[e]);ta(t)&&(o[t]=d)}else if(a)for(let e in a){let t=oe(e);if(ta(t)){let n=a[e],r=o[t]=x(n)||w(n)?{type:n}:_({},n),i=r.type,c=!1,l=!0;if(x(i))for(let e=0;e<i.length;++e){let t=i[e],n=w(t)&&t.name;if(n===`Boolean`){c=!0;break}else n===`String`&&(l=!1)}else c=w(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||b(r,`default`))&&s.push(t)}}let l=[o,s];return D(e)&&r.set(e,l),l}function ta(e){return e[0]!==`$`&&!j(e)}var na=e=>e===`_`||e===`_ctx`||e===`$stable`,ra=e=>x(e)?e.map(Ba):[Ba(e)],ia=(e,t,n)=>{if(t._n)return t;let r=Gn((...e)=>ra(t(...e)),n);return r._c=!1,r},aa=(e,t,n)=>{let r=e._ctx;for(let n in e){if(na(n))continue;let i=e[n];if(w(i))t[n]=ia(n,i,r);else if(i!=null){let e=ra(i);t[n]=()=>e}}},oa=(e,t)=>{let n=ra(t);e.slots.default=()=>n},sa=(e,t,n)=>{for(let r in t)(n||!na(r))&&(e[r]=t[r])},ca=(e,t,n)=>{let r=e.slots=qi();if(e.vnode.shapeFlag&32){let e=t._;e?(sa(r,t,n),n&&pe(r,`_`,e,!0)):aa(t,r)}else t&&oa(e,t)},la=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=d;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:sa(i,t,n):(a=!t.$stable,aa(t,i)),o=t}else t&&(oa(e,t),o={default:1});if(a)for(let e in i)!na(e)&&o[e]==null&&delete i[e]},ua=Sa;function da(e){return fa(e)}function fa(e,t){let n=_e();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:m,nextSibling:h,setScopeId:g=p,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Na(e,t)&&(r=ge(e),ue(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Ca:y(e,t,n,r);break;case wa:b(e,t,n,r);break;case Ta:e??x(t,n,r,o);break;case B:ne(e,t,n,r,i,a,o,s,c);break;default:d&1?ee(e,t,n,r,i,a,o,s,c):d&6?k(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?Nr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Nr(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),i(e),e=n;i(t)},ee=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)w(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),D(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},w=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&E(e.children,f,null,i,s,pa(e,c),l,d),_&&qn(e,null,i,`created`),T(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!j(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Wa(p,i,e)}_&&qn(e,null,i,`beforeMount`);let v=ha(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&ua(()=>{p&&Wa(p,i,e),v&&g.enter(f),_&&qn(e,null,i,`mounted`)},s)},T=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||xa(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;T(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},E=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?Va(e[l]):Ba(e[l]),t,n,r,i,a,o,s)},D=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:f,dirs:p}=t;l|=e.patchFlag&16;let m=e.props||d,h=t.props||d,g;if(n&&ma(n,!1),(g=h.onVnodeBeforeUpdate)&&Wa(g,n,t,e),p&&qn(t,e,n,`beforeUpdate`),n&&ma(n,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&u(c,``),f?te(e.dynamicChildren,f,c,n,r,pa(t,i),o):s||oe(e,t,c,null,n,r,pa(t,i),o,!1),l>0){if(l&16)O(c,m,h,n,i);else if(l&2&&m.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,m.style,h.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=m[r],s=h[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else !s&&f==null&&O(c,m,h,n,i);((g=h.onVnodeUpdated)||p)&&ua(()=>{g&&Wa(g,n,t,e),p&&qn(t,e,n,`updated`)},r)},te=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===B||!Na(c,l)||c.shapeFlag&198)?m(c.el):n,null,r,i,a,o,!0)}},O=(e,t,n,r,i)=>{if(t!==n){if(t!==d)for(let o in t)!j(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(j(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},ne=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),E(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(te(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&ga(e,t,!0)):oe(e,t,n,f,a,o,c,l,u)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):A(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=qa(e,r,i);if(Br(e)&&(s.ctx.renderer=be),no(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ie,o),!e.el){let r=s.subTree=G(wa);b(null,r,t,n),e.placeholder=r.el}}else ie(s,e,t,n,i,a,o)},A=(e,t,n)=>{let r=t.component=e.component;if(Ui(e,t,n))if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ie=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:c,vnode:l}=e;{let n=va(e);if(n){t&&(t.el=l.el,ae(e,t,o)),n.asyncDep.then(()=>{e.isUnmounted||s()});return}}let u=t,d;ma(e,!1),t?(t.el=l.el,ae(e,t,o)):t=l,n&&fe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Wa(d,c,t,l),ma(e,!0);let f=Bi(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ge(p),e,i,a),t.el=f.el,u===null&&Gi(e,f.el),r&&ua(r,i),(d=t.props&&t.props.onVnodeUpdated)&&ua(()=>Wa(d,c,t,l),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Lr(t);if(ma(e,!1),l&&fe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Wa(o,d,t),ma(e,!0),s&&Se){let t=()=>{e.subTree=Bi(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._def.shadowRoot!==!1&&f.ce._injectChildStyle(p);let o=e.subTree=Bi(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&ua(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;ua(()=>Wa(o,d,e),i)}(t.shapeFlag&256||d&&Lr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&ua(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ie(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Fn(u),ma(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Xi(e,t.props,r,n),la(e,t.children,n),Ze(),Rn(e),Qe()},oe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){ce(l,f,n,r,i,a,o,s,c);return}else if(p&256){se(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&he(l,i,a),f!==l&&u(n,f)):d&16?m&16?ce(l,f,n,r,i,a,o,s,c):he(l,i,a,!0):(d&8&&u(n,``),m&16&&E(f,n,r,i,a,o,s,c))},se=(e,t,n,r,i,a,o,s,c)=>{e||=f,t||=f;let l=e.length,u=t.length,d=Math.min(l,u),p;for(p=0;p<d;p++){let r=t[p]=c?Va(t[p]):Ba(t[p]);v(e[p],r,n,null,i,a,o,s,c)}l>u?he(e,i,a,!0,!1,d):E(t,n,r,i,a,o,s,c,d)},ce=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,p=u-1;for(;l<=d&&l<=p;){let r=e[l],u=t[l]=c?Va(t[l]):Ba(t[l]);if(Na(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=p;){let r=e[d],l=t[p]=c?Va(t[p]):Ba(t[p]);if(Na(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,p--}if(l>d){if(l<=p){let e=p+1,d=e<u?t[e].el:r;for(;l<=p;)v(null,t[l]=c?Va(t[l]):Ba(t[l]),n,d,i,a,o,s,c),l++}}else if(l>p)for(;l<=d;)ue(e[l],i,a,!0),l++;else{let m=l,h=l,g=new Map;for(l=h;l<=p;l++){let e=t[l]=c?Va(t[l]):Ba(t[l]);e.key!=null&&g.set(e.key,l)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(l=0;l<b;l++)C[l]=0;for(l=m;l<=d;l++){let r=e[l];if(y>=b){ue(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Na(r,t[_])){u=_;break}u===void 0?ue(r,i,a,!0):(C[u-h]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let ee=x?_a(C):f;for(_=ee.length-1,l=b-1;l>=0;l--){let e=h+l,d=t[e],f=t[e+1],p=e+1<u?f.el||ba(f):r;C[l]===0?v(null,d,n,p,i,a,o,s,c):x&&(_<0||l!==ee[_]?le(d,n,p,2):_--)}}},le=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){le(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,be);return}if(c===B){r(s,t,n);for(let e=0;e<u.length;e++)le(u[e],t,n,a);r(e.anchor,t,n);return}if(c===Ta){S(e,t,n);return}if(a!==2&&d&1&&l)if(a===0)l.beforeEnter(s),r(s,t,n),ua(()=>l.enter(s),o);else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{s._isLeaving&&s[gr](!0),a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},ue=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(d===-2&&(i=!1),s!=null&&(Ze(),Nr(s,null,n,e,!0),Qe()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let m=u&1&&f,h=!Lr(e),g;if(h&&(g=o&&o.onVnodeBeforeUnmount)&&Wa(g,t,e),u&6)me(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}m&&qn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==B||d>0&&d&64)?he(l,t,n,!1,!0):(a===B&&d&384||!i&&u&16)&&he(c,t,n),r&&de(e)}(h&&(g=o&&o.onVnodeUnmounted)||m)&&ua(()=>{g&&Wa(g,t,e),m&&qn(e,null,t,`unmounted`)},n)},de=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===B){pe(n,r);return}if(t===Ta){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},pe=(e,t)=>{let n;for(;e!==t;)n=h(e),i(e),e=n;i(t)},me=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;ya(c),ya(l),r&&fe(r),i.stop(),a&&(a.flags|=8,ue(o,e,t,n)),s&&ua(s,t),ua(()=>{e.isUnmounted=!0},t)},he=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)ue(e[o],t,n,r,i)},ge=e=>{if(e.shapeFlag&6)return ge(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[rr];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(ue(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,Rn(r),zn(),!1)},be={p:v,um:ue,m:le,r:de,mt:re,mc:E,pc:oe,pbc:te,n:ge,o:e},xe,Se;return t&&([xe,Se]=t(be)),{render:ye,hydrate:xe,createApp:Mi(ye,xe)}}function pa({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function ma({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ha(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ga(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let t=0;t<r.length;t++){let a=r[t],o=i[t];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[t]=Va(i[t]),o.el=a.el),!n&&o.patchFlag!==-2&&ga(a,o)),o.type===Ca&&(o.patchFlag===-1?o.__elIndex=t+(e.type===B?1:0):o.el=a.el),o.type===wa&&!o.el&&(o.el=a.el)}}function _a(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function va(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:va(t)}function ya(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ba(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?ba(t.subTree):null}var xa=e=>e.__isSuspense;function Sa(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):Ln(e)}var B=Symbol.for(`v-fgt`),Ca=Symbol.for(`v-txt`),wa=Symbol.for(`v-cmt`),Ta=Symbol.for(`v-stc`),Ea=[],Da=null;function V(e=!1){Ea.push(Da=e?null:[])}function Oa(){Ea.pop(),Da=Ea[Ea.length-1]||null}var ka=1;function Aa(e,t=!1){ka+=e,e<0&&Da&&t&&(Da.hasOnce=!0)}function ja(e){return e.dynamicChildren=ka>0?Da||f:null,Oa(),ka>0&&Da&&Da.push(e),e}function H(e,t,n,r,i,a){return ja(W(e,t,n,r,i,a,!0))}function U(e,t,n,r,i){return ja(G(e,t,n,r,i,!0))}function Ma(e){return e?e.__v_isVNode===!0:!1}function Na(e,t){return e.type===t.type&&e.key===t.key}var Pa=({key:e})=>e??null,Fa=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:T(e)||nn(e)||w(e)?{i:Hn,r:e,k:t,f:!!n}:e);function W(e,t=null,n=null,r=0,i=null,a=e===B?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pa(t),ref:t&&Fa(t),scopeId:Un,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Hn};return s?(Ha(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=T(n)?8:16),ka>0&&!o&&Da&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Da.push(c),c}var G=Ia;function Ia(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ai)&&(e=wa),Ma(e)){let r=Ra(e,t,!0);return n&&Ha(r,n),ka>0&&!a&&Da&&(r.shapeFlag&6?Da[Da.indexOf(e)]=r:Da.push(r)),r.patchFlag=-2,r}if(po(e)&&(e=e.__vccOpts),t){t=La(t);let{class:e,style:n}=t;e&&!T(e)&&(t.class=M(e)),D(n)&&(Qt(n)&&!x(n)&&(n=_({},n)),t.style=ve(n))}let o=T(e)?1:xa(e)?128:ir(e)?64:D(e)?4:w(e)?2:0;return W(e,t,n,r,i,o,a,!0)}function La(e){return e?Qt(e)||Ji(e)?_({},e):e:null}function Ra(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Ua(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Pa(l),ref:t&&t.ref?n&&a?x(a)?a.concat(Fa(t)):[a,Fa(t)]:Fa(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==B?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ra(e.ssContent),ssFallback:e.ssFallback&&Ra(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&kr(u,c.clone(u)),u}function K(e=` `,t=0){return G(Ca,null,e,t)}function za(e,t){let n=G(Ta,null,e);return n.staticCount=t,n}function q(e=``,t=!1){return t?(V(),U(wa,null,e)):G(wa,null,e)}function Ba(e){return e==null||typeof e==`boolean`?G(wa):x(e)?G(B,null,e.slice()):Ma(e)?Va(e):G(Ca,null,String(e))}function Va(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ra(e)}function Ha(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(x(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ha(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Ji(t)?t._ctx=Hn:r===3&&Hn&&(Hn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else w(t)?(t={default:t,_ctx:Hn},n=32):(t=String(t),r&64?(n=16,t=[K(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ua(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=M([t.class,r.class]));else if(e===`style`)t.style=ve([t.style,r.style]);else if(h(e)){let n=t[e],i=r[e];i&&n!==i&&!(x(n)&&n.includes(i))&&(t[e]=n?[].concat(n,i):i)}else e!==``&&(t[e]=r[e])}return t}function Wa(e,t,n,r=null){Cn(e,t,7,[n,r])}var Ga=Ai(),Ka=0;function qa(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||Ga,a={uid:Ka++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ne(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ea(r,i),emitsOptions:Ri(r,i),emit:null,emitted:null,propsDefaults:d,inheritAttrs:r.inheritAttrs,ctx:d,data:d,props:d,attrs:d,slots:d,refs:d,setupState:d,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Ii.bind(null,a),e.ce&&e.ce(a),a}var Ja=null,Ya=()=>Ja||Hn,Xa,Za;{let e=_e(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Xa=t(`__VUE_INSTANCE_SETTERS__`,e=>Ja=e),Za=t(`__VUE_SSR_SETTERS__`,e=>to=e)}var Qa=e=>{let t=Ja;return Xa(e),e.scope.on(),()=>{e.scope.off(),Xa(t)}},$a=()=>{Ja&&Ja.scope.off(),Xa(null)};function eo(e){return e.vnode.shapeFlag&4}var to=!1;function no(e,t=!1,n=!1){t&&Za(t);let{props:r,children:i}=e.vnode,a=eo(e);Yi(e,r,a,t),ca(e,i,n||t);let o=a?ro(e,t):void 0;return t&&Za(!1),o}function ro(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,fi);let{setup:r}=n;if(r){Ze();let n=e.setupContext=r.length>1?lo(e):null,i=Qa(e),a=Sn(r,e,0,[e.props,n]),o=te(a);if(Qe(),i(),(o||e.sp)&&!Lr(e)&&jr(e),o){if(a.then($a,$a),t)return a.then(n=>{io(e,n,t)}).catch(t=>{wn(t,e,0)});e.asyncDep=a}else io(e,a,t)}else so(e,t)}function io(e,t,n){w(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:D(t)&&(e.setupState=cn(t)),so(e,n)}var ao,oo;function so(e,t,n){let r=e.type;if(!e.render){if(!t&&ao&&!r.render){let t=r.template||bi(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=ao(t,_(_({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||p,oo&&oo(e)}{let t=Qa(e);Ze();try{gi(e)}finally{Qe(),t()}}}var co={get(e,t){return ct(e,`get`,``),e[t]}};function lo(e){return{attrs:new Proxy(e.attrs,co),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function uo(e){return e.exposed?e.exposeProxy||=new Proxy(cn($t(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ui)return ui[n](e)},has(e,t){return t in e||t in ui}}):e.proxy}function fo(e,t=!0){return w(e)?e.displayName||e.name:e.name||t&&e.__name}function po(e){return w(e)&&`__vccOpts`in e}var J=(e,t)=>hn(e,t,to);function mo(e,t,n){try{Aa(-1);let r=arguments.length;return r===2?D(t)&&!x(t)?Ma(t)?G(e,null,[t]):G(e,t):G(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ma(n)&&(n=[n]),G(e,t,n))}finally{Aa(1)}}var ho=`3.5.26`,go=void 0,_o=typeof window<`u`&&window.trustedTypes;if(_o)try{go=_o.createPolicy(`vue`,{createHTML:e=>e})}catch{}var vo=go?e=>go.createHTML(e):e=>e,yo=`http://www.w3.org/2000/svg`,bo=`http://www.w3.org/1998/Math/MathML`,xo=typeof document<`u`?document:null,So=xo&&xo.createElement(`template`),Co={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?xo.createElementNS(yo,e):t===`mathml`?xo.createElementNS(bo,e):n?xo.createElement(e,{is:n}):xo.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>xo.createTextNode(e),createComment:e=>xo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xo.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{So.innerHTML=vo(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=So.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wo=`transition`,To=`animation`,Eo=Symbol(`_vtc`),Do={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Oo=_({},br,Do),ko=(e=>(e.displayName=`Transition`,e.props=Oo,e))((e,{slots:t})=>mo(wr,Mo(e),t)),Ao=(e,t=[])=>{x(e)?e.forEach(e=>e(...t)):e&&e(...t)},jo=e=>e?x(e)?e.some(e=>e.length>1):e.length>1:!1;function Mo(e){let t={};for(let n in e)n in Do||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=No(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:ee=y,onAppearCancelled:w=b}=t,T=(e,t,n,r)=>{e._enterCancelled=r,Io(e,t?u:s),Io(e,t?l:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,Io(e,d),Io(e,p),Io(e,f),t&&t()},D=e=>(t,n)=>{let i=e?ee:y,o=()=>T(t,e,n);Ao(i,[t,o]),Lo(()=>{Io(t,e?c:a),Fo(t,e?u:s),jo(i)||zo(t,r,h,o)})};return _(t,{onBeforeEnter(e){Ao(v,[e]),Fo(e,a),Fo(e,o)},onBeforeAppear(e){Ao(C,[e]),Fo(e,c),Fo(e,l)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);Fo(e,d),e._enterCancelled?(Fo(e,f),Uo(e)):(Uo(e),Fo(e,f)),Lo(()=>{e._isLeaving&&(Io(e,d),Fo(e,p),jo(x)||zo(e,r,g,n))}),Ao(x,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),Ao(b,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),Ao(w,[e])},onLeaveCancelled(e){E(e),Ao(S,[e])}})}function No(e){if(e==null)return null;if(D(e))return[Po(e.enter),Po(e.leave)];{let t=Po(e);return[t,t]}}function Po(e){return he(e)}function Fo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Eo]||(e[Eo]=new Set)).add(t)}function Io(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Eo];n&&(n.delete(t),n.size||(e[Eo]=void 0))}function Lo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ro=0;function zo(e,t,n,r){let i=e._endId=++Ro,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Bo(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Bo(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${wo}Delay`),a=r(`${wo}Duration`),o=Vo(i,a),s=r(`${To}Delay`),c=r(`${To}Duration`),l=Vo(s,c),u=null,d=0,f=0;t===wo?o>0&&(u=wo,d=o,f=a.length):t===To?l>0&&(u=To,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?wo:To:null,f=u?u===wo?a.length:c.length:0);let p=u===wo&&/\b(?:transform|all)(?:,|$)/.test(r(`${wo}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Vo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Ho(t)+Ho(e[n])))}function Ho(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Uo(e){return(e?e.ownerDocument:document).body.offsetHeight}function Wo(e,t,n){let r=e[Eo];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Go=Symbol(`_vod`),Ko=Symbol(`_vsh`),qo={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Go]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Jo(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Jo(e,!0),r.enter(e)):r.leave(e,()=>{Jo(e,!1)}):Jo(e,t))},beforeUnmount(e,{value:t}){Jo(e,t)}};function Jo(e,t){e.style.display=t?e[Go]:`none`,e[Ko]=!t}var Yo=Symbol(``),Xo=/(?:^|;)\s*display\s*:/;function Zo(e,t,n){let r=e.style,i=T(n),a=!1;if(n&&!i){if(t)if(T(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??$o(r,t,``)}else for(let e in t)n[e]??$o(r,e,``);for(let e in n)e===`display`&&(a=!0),$o(r,e,n[e])}else if(i){if(t!==n){let e=r[Yo];e&&(n+=`;`+e),r.cssText=n,a=Xo.test(n)}}else t&&e.removeAttribute(`style`);Go in e&&(e[Go]=a?r.display:``,e[Ko]&&(r.display=`none`))}var Qo=/\s*!important$/;function $o(e,t,n){if(x(n))n.forEach(n=>$o(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=ns(e,t);Qo.test(n)?e.setProperty(ce(r),n.replace(Qo,``),`important`):e[r]=n}}var es=[`Webkit`,`Moz`,`ms`],ts={};function ns(e,t){let n=ts[t];if(n)return n;let r=oe(t);if(r!==`filter`&&r in e)return ts[t]=r;r=le(r);for(let n=0;n<es.length;n++){let i=es[n]+r;if(i in e)return ts[t]=i}return t}var rs=`http://www.w3.org/1999/xlink`;function is(e,t,n,r,i,a=we(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(rs,t.slice(6,t.length)):e.setAttributeNS(rs,t,n):n==null||a&&!Te(n)?e.removeAttribute(t):e.setAttribute(t,a?``:E(n)?String(n):n)}function as(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?vo(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Te(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function os(e,t,n,r){e.addEventListener(t,n,r)}function ss(e,t,n,r){e.removeEventListener(t,n,r)}var cs=Symbol(`_vei`);function ls(e,t,n,r,i=null){let a=e[cs]||(e[cs]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=ds(t);r?os(e,n,a[t]=hs(r,i),s):o&&(ss(e,n,o,s),a[t]=void 0)}}var us=/(?:Once|Passive|Capture)$/;function ds(e){let t;if(us.test(e)){t={};let n;for(;n=e.match(us);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):ce(e.slice(2)),t]}var fs=0,ps=Promise.resolve(),ms=()=>fs||=(ps.then(()=>fs=0),Date.now());function hs(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;Cn(gs(e,n.value),t,5,[e])};return n.value=e,n.attached=ms(),n}function gs(e,t){if(x(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var _s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,vs=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Wo(e,r,o):t===`style`?Zo(e,n,r):h(t)?g(t)||ls(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):ys(e,t,r,o))?(as(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&is(e,t,r,o,a,t!==`value`)):e._isVueCE&&(/[A-Z]/.test(t)||!T(r))?as(e,oe(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),is(e,t,r,o))};function ys(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&_s(t)&&w(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return _s(t)&&T(n)?!1:t in e}var bs=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return x(t)?e=>fe(t,e):t};function xs(e){e.target.composing=!0}function Ss(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Cs=Symbol(`_assign`);function ws(e,t,n){return t&&(e=e.trim()),n&&(e=me(e)),e}var Ts={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Cs]=bs(i);let a=r||i.props&&i.props.type===`number`;os(e,t?`change`:`input`,t=>{t.target.composing||e[Cs](ws(e.value,n,a))}),(n||a)&&os(e,`change`,()=>{e.value=ws(e.value,n,a)}),t||(os(e,`compositionstart`,xs),os(e,`compositionend`,Ss),os(e,`change`,Ss))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Cs]=bs(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?me(e.value):e.value,c=t??``;s!==c&&(document.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c))}},Es={deep:!0,created(e,t,n){e[Cs]=bs(n),os(e,`change`,()=>{let t=e._modelValue,n=js(e),r=e.checked,i=e[Cs];if(x(t)){let e=Oe(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(C(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Ms(e,r))})},mounted:Ds,beforeUpdate(e,t,n){e[Cs]=bs(n),Ds(e,t,n)}};function Ds(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(x(t))i=Oe(t,r.props.value)>-1;else if(C(t))i=t.has(r.props.value);else{if(t===n)return;i=De(t,Ms(e,!0))}e.checked!==i&&(e.checked=i)}var Os={created(e,{value:t},n){e.checked=De(t,n.props.value),e[Cs]=bs(n),os(e,`change`,()=>{e[Cs](js(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Cs]=bs(r),t!==n&&(e.checked=De(t,r.props.value))}},ks={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=C(t);os(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?me(js(e)):js(e));e[Cs](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,Nn(()=>{e._assigning=!1})}),e[Cs]=bs(r)},mounted(e,{value:t}){As(e,t)},beforeUpdate(e,t,n){e[Cs]=bs(n)},updated(e,{value:t}){e._assigning||As(e,t)}};function As(e,t){let n=e.multiple,r=x(t);if(!(n&&!r&&!C(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=js(a);if(n)if(r){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=Oe(t,o)>-1}else a.selected=t.has(o);else if(De(js(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function js(e){return`_value`in e?e._value:e.value}function Ms(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Ns=[`ctrl`,`shift`,`alt`,`meta`],Ps={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Ns.some(n=>e[`${n}Key`]&&!t.includes(n))},Fs=(e,t)=>{let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Ps[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Is=_({patchProp:vs},Co),Ls;function Rs(){return Ls||=da(Is)}var zs=((...e)=>{let t=Rs().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Vs(e);if(!r)return;let i=t._component;!w(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Bs(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Bs(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Vs(e){return T(e)?document.querySelector(e):e}var Hs=typeof document<`u`;function Us(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Ws(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Us(e.default)}var Y=Object.assign;function Gs(e,t){let n={};for(let r in t){let i=t[r];n[r]=qs(i)?i.map(e):e(i)}return n}var Ks=()=>{},qs=Array.isArray;function Js(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Ys=/#/g,Xs=/&/g,Zs=/\//g,Qs=/=/g,$s=/\?/g,ec=/\+/g,tc=/%5B/g,nc=/%5D/g,rc=/%5E/g,ic=/%60/g,ac=/%7B/g,oc=/%7C/g,sc=/%7D/g,cc=/%20/g;function lc(e){return e==null?``:encodeURI(``+e).replace(oc,`|`).replace(tc,`[`).replace(nc,`]`)}function uc(e){return lc(e).replace(ac,`{`).replace(sc,`}`).replace(rc,`^`)}function dc(e){return lc(e).replace(ec,`%2B`).replace(cc,`+`).replace(Ys,`%23`).replace(Xs,`%26`).replace(ic,"`").replace(ac,`{`).replace(sc,`}`).replace(rc,`^`)}function fc(e){return dc(e).replace(Qs,`%3D`)}function pc(e){return lc(e).replace(Ys,`%23`).replace($s,`%3F`)}function mc(e){return pc(e).replace(Zs,`%2F`)}function hc(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var gc=/\/$/,_c=e=>e.replace(gc,``);function vc(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Ec(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:hc(o)}}function yc(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function bc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function xc(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Sc(t.matched[r],n.matched[i])&&Cc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Sc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Cc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!wc(e[n],t[n]))return!1;return!0}function wc(e,t){return qs(e)?Tc(e,t):qs(t)?Tc(t,e):e?.valueOf()===t?.valueOf()}function Tc(e,t){return qs(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Ec(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Dc={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Oc=function(e){return e.pop=`pop`,e.push=`push`,e}({}),kc=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Ac(e){if(!e)if(Hs){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),_c(e)}var jc=/^[^#]+#/;function Mc(e,t){return e.replace(jc,`#`)+t}function Nc(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Pc=()=>({left:window.scrollX,top:window.scrollY});function Fc(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Nc(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Ic(e,t){return(history.state?history.state.position-t:-1)+e}var Lc=new Map;function Rc(e,t){Lc.set(e,t)}function zc(e){let t=Lc.get(e);return Lc.delete(e),t}function Bc(e){return typeof e==`string`||e&&typeof e==`object`}function Vc(e){return typeof e==`string`||typeof e==`symbol`}var Hc=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Uc=Symbol(``);Hc.MATCHER_NOT_FOUND,Hc.NAVIGATION_GUARD_REDIRECT,Hc.NAVIGATION_ABORTED,Hc.NAVIGATION_CANCELLED,Hc.NAVIGATION_DUPLICATED;function Wc(e,t){return Y(Error(),{type:e,[Uc]:!0},t)}function Gc(e,t){return e instanceof Error&&Uc in e&&(t==null||!!(e.type&t))}function Kc(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(ec,` `),i=r.indexOf(`=`),a=hc(i<0?r:r.slice(0,i)),o=i<0?null:hc(r.slice(i+1));if(a in t){let e=t[a];qs(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function qc(e){let t=``;for(let n in e){let r=e[n];if(n=fc(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(qs(r)?r.map(e=>e&&dc(e)):[r&&dc(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Jc(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=qs(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var Yc=Symbol(``),Xc=Symbol(``),Zc=Symbol(``),Qc=Symbol(``),$c=Symbol(``);function el(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function tl(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Wc(Hc.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Bc(e)?c(Wc(Hc.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function nl(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Us(s)){let c=(s.__vccOpts||s)[t];c&&a.push(tl(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Ws(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&tl(c,n,r,o,e,i)()}))}}return a}function rl(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Sc(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Sc(e,s))||i.push(s))}return[n,r,i]}var il=()=>location.protocol+`//`+location.host;function al(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),bc(n,``)}return bc(n,e)+r+i}function ol(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=al(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Oc.pop,direction:u?u>0?kc.forward:kc.back:kc.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(Y({},e.state,{scroll:Pc()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function sl(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Pc():null}}function cl(e){let{history:t,location:n}=window,r={value:al(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:il()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,Y({},t.state,sl(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=Y({},i.value,t.state,{forward:e,scroll:Pc()});a(o.current,o,!0),a(e,Y({},sl(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ll(e){e=Ac(e);let t=cl(e),n=ol(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=Y({location:``,base:e,go:r,createHref:Mc.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}var ul=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),dl=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(dl||{}),fl={type:ul.Static,value:``},pl=/[a-zA-Z0-9_]/;function ml(e){if(!e)return[[]];if(e===`/`)return[[fl]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=dl.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===dl.Static?a.push({type:ul.Static,value:l}):n===dl.Param||n===dl.ParamRegExp||n===dl.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:ul.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==dl.ParamRegExp){r=n,n=dl.EscapeNext;continue}switch(n){case dl.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=dl.Param):f();break;case dl.EscapeNext:f(),n=r;break;case dl.Param:c===`(`?n=dl.ParamRegExp:pl.test(c)?f():(d(),n=dl.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case dl.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=dl.ParamRegExpEnd:u+=c;break;case dl.ParamRegExpEnd:d(),n=dl.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===dl.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var hl=`[^/]+?`,gl={sensitive:!1,strict:!1,start:!0,end:!0},_l=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(_l||{}),vl=/[.+*?^${}()[\]/\\]/g;function yl(e,t){let n=Y({},gl,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[_l.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=_l.Segment+(n.sensitive?_l.BonusCaseSensitive:0);if(o.type===ul.Static)r||(i+=`/`),i+=o.value.replace(vl,`\\$&`),s+=_l.Static;else if(o.type===ul.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||hl;if(u!==hl){s+=_l.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=_l.Dynamic,c&&(s+=_l.BonusOptional),n&&(s+=_l.BonusRepeatable),u===`.*`&&(s+=_l.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=_l.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===ul.Static)n+=e.value;else if(e.type===ul.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(qs(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=qs(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function bl(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===_l.Static+_l.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===_l.Static+_l.Segment?1:-1:0}function xl(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=bl(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Sl(r))return 1;if(Sl(i))return-1}return i.length-r.length}function Sl(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Cl={strict:!1,end:!0,sensitive:!1};function wl(e,t,n){let r=Y(yl(ml(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Tl(e,t){let n=[],r=new Map;t=Js(Cl,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Dl(e);s.aliasOf=r&&r.record;let l=Js(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Dl(Y({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=wl(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!kl(d)&&o(e.name)),Nl(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Ks}function o(e){if(Vc(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=jl(e,n);n.splice(t,0,e),e.record.name&&!kl(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Wc(Hc.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=Y(El(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&El(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Wc(Hc.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=Y({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Al(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function El(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Dl(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ol(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function Ol(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function kl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Al(e){return e.reduce((e,t)=>Y(e,t.meta),{})}function jl(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;xl(e,t[i])<0?r=i:n=i+1}let i=Ml(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Ml(e){let t=e;for(;t=t.parent;)if(Nl(t)&&xl(e,t)===0)return t}function Nl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Pl(e){let t=Yn(Zc),n=Yn(Qc),r=J(()=>{let n=L(e.to);return t.resolve(n)}),i=J(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Sc.bind(null,i));if(o>-1)return o;let s=zl(e[t-2]);return t>1&&zl(i)===s&&a[a.length-1].path!==s?a.findIndex(Sc.bind(null,e[t-2])):o}),a=J(()=>i.value>-1&&Rl(n.params,r.value.params)),o=J(()=>i.value>-1&&i.value===n.matched.length-1&&Cc(n.params,r.value.params));function s(n={}){if(Ll(n)){let n=t[L(e.replace)?`replace`:`push`](L(e.to)).catch(Ks);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:J(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Fl(e){return e.length===1?e[0]:e}var Il=R({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Pl,setup(e,{slots:t}){let n=Gt(Pl(e)),{options:r}=Yn(Zc),i=J(()=>({[Bl(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Bl(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Fl(t.default(n));return e.custom?r:mo(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Ll(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Rl(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!qs(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function zl(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Bl=(e,t,n)=>e??t??n,Vl=R({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=Yn($c),i=J(()=>e.route||r.value),a=Yn(Xc,0),o=J(()=>{let e=L(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=J(()=>i.value.matched[o.value]);Jn(Xc,J(()=>o.value+1)),Jn(Yc,s),Jn($c,i);let c=I();return $n(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Sc(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Hl(n.default,{Component:l,route:r});let u=o.props[a],d=mo(l,Y({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return Hl(n.default,{Component:d,route:r})||d}}});function Hl(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Ul=Vl;function Wl(e){let t=Tl(e.routes,e),n=e.parseQuery||Kc,r=e.stringifyQuery||qc,i=e.history,a=el(),o=el(),s=el(),c=rn(Dc),l=Dc;Hs&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Gs.bind(null,e=>``+e),d=Gs.bind(null,mc),f=Gs.bind(null,hc);function p(e,n){let r,i;return Vc(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=Y({},a||c.value),typeof e==`string`){let r=vc(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return Y(r,o,{params:f(o.params),hash:hc(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=Y({},e,{path:vc(n,e.path,a.path).path});else{let t=Y({},e.params);for(let e in t)t[e]??delete t[e];o=Y({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=yc(r,Y({},e,{hash:uc(l),path:s.path})),m=i.createHref(p);return Y({fullPath:p,hash:l,query:r===qc?Jc(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?vc(n,e,c.value.path):Y({},e)}function y(e,t){if(l!==e)return Wc(Hc.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(Y(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),Y({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(Y(v(u),{state:typeof u==`object`?Y({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&xc(r,i,n)&&(f=Wc(Hc.NAVIGATION_DUPLICATED,{to:d,from:i}),ae(i,i,!0,!1)),(f?Promise.resolve(f):T(d,i)).catch(e=>Gc(e)?Gc(e,Hc.NAVIGATION_GUARD_REDIRECT)?e:ie(e):A(e,d,i)).then(e=>{if(e){if(Gc(e,Hc.NAVIGATION_GUARD_REDIRECT))return C(Y({replace:s},v(e.to),{state:typeof e.to==`object`?Y({},a,e.to.state):a,force:o}),t||d)}else e=D(d,i,!0,s,a);return E(d,i,e),e})}function ee(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){let t=ce.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function T(e,t){let n,[r,i,s]=rl(e,t);n=nl(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(tl(r,e,t))});let c=ee.bind(null,e,t);return n.push(c),ue(n).then(()=>{n=[];for(let r of a.list())n.push(tl(r,e,t));return n.push(c),ue(n)}).then(()=>{n=nl(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(tl(r,e,t))});return n.push(c),ue(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(qs(r.beforeEnter))for(let i of r.beforeEnter)n.push(tl(i,e,t));else n.push(tl(r.beforeEnter,e,t));return n.push(c),ue(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=nl(s,`beforeRouteEnter`,e,t,w),n.push(c),ue(n))).then(()=>{n=[];for(let r of o.list())n.push(tl(r,e,t));return n.push(c),ue(n)}).catch(e=>Gc(e,Hc.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function E(e,t,n){s.list().forEach(r=>w(()=>r(e,t,n)))}function D(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===Dc,l=Hs?history.state:{};n&&(r||s?i.replace(e.fullPath,Y({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,ae(e,t,n,s),ie()}let te;function O(){te||=i.listen((e,t,n)=>{if(!le.listening)return;let r=_(e),a=S(r,le.currentRoute.value);if(a){C(Y(a,{replace:!0,force:!0}),r).catch(Ks);return}l=r;let o=c.value;Hs&&Rc(Ic(o.fullPath,n.delta),Pc()),T(r,o).catch(e=>Gc(e,Hc.NAVIGATION_ABORTED|Hc.NAVIGATION_CANCELLED)?e:Gc(e,Hc.NAVIGATION_GUARD_REDIRECT)?(C(Y(v(e.to),{force:!0}),r).then(e=>{Gc(e,Hc.NAVIGATION_ABORTED|Hc.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Oc.pop&&i.go(-1,!1)}).catch(Ks),Promise.reject()):(n.delta&&i.go(-n.delta,!1),A(e,r,o))).then(e=>{e||=D(r,o,!1),e&&(n.delta&&!Gc(e,Hc.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Oc.pop&&Gc(e,Hc.NAVIGATION_ABORTED|Hc.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),E(r,o,e)}).catch(Ks)})}let ne=el(),k=el(),re;function A(e,t,n){ie(e);let r=k.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function j(){return re&&c.value!==Dc?Promise.resolve():new Promise((e,t)=>{ne.add([e,t])})}function ie(e){return re||(re=!e,O(),ne.list().forEach(([t,n])=>e?n(e):t()),ne.reset()),e}function ae(t,n,r,i){let{scrollBehavior:a}=e;if(!Hs||!a)return Promise.resolve();let o=!r&&zc(Ic(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return Nn().then(()=>a(t,n,o)).then(e=>e&&Fc(e)).catch(e=>A(e,t,n))}let oe=e=>i.go(e),se,ce=new Set,le={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:k.add,isReady:j,install(e){e.component(`RouterLink`,Il),e.component(`RouterView`,Ul),e.config.globalProperties.$router=le,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>L(c)}),Hs&&!se&&c.value===Dc&&(se=!0,b(i.location).catch(e=>{}));let t={};for(let e in Dc)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Zc,le),e.provide(Qc,Kt(t)),e.provide($c,c);let n=e.unmount;ce.add(e),e.unmount=function(){ce.delete(e),ce.size<1&&(l=Dc,te&&te(),te=null,c.value=Dc,se=!1,re=!1),n()}}};function ue(e){return e.reduce((e,t)=>e.then(()=>w(t)),Promise.resolve())}return le}function Gl(){return Yn(Zc)}function Kl(e){return Yn(Qc)}var ql=`M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z`,Jl=`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z`,Yl=`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z`,Xl=`M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z`,Zl=`M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z`,Ql=`M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z`,$l=`M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z`,eu=`M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z`,tu=`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`,nu=`M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z`,ru=`M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z`,iu=`M6,2L2,8L12,22L22,8L18,2H6Z`,au=`M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z`,ou=`M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z`,su=`M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3`,cu=`M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z`,lu=`M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z`,uu=`M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z`,du=`M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z`,fu=`M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z`,pu=`M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z`,mu=`M8,5.14V19.14L19,12.14L8,5.14Z`,hu=`M3,5V21H9V19.5H7V18H9V16.5H5V15H9V13.5H7V12H9V10.5H5V9H9V5H10.5V9H12V7H13.5V9H15V5H16.5V9H18V7H19.5V9H21V3H5A2,2 0 0,0 3,5M6,7A1,1 0 0,1 5,6A1,1 0 0,1 6,5A1,1 0 0,1 7,6A1,1 0 0,1 6,7Z`,gu=`M3,3H21V21H3V3M5,5V19H19V5H5Z`,_u=`M7.5,2C5.71,3.15 4.5,5.18 4.5,7.5C4.5,9.82 5.71,11.85 7.53,13C4.46,13 2,10.54 2,7.5A5.5,5.5 0 0,1 7.5,2M19.07,3.5L20.5,4.93L4.93,20.5L3.5,19.07L19.07,3.5M12.89,5.93L11.41,5L9.97,6L10.39,4.3L9,3.24L10.75,3.12L11.33,1.47L12,3.1L13.73,3.13L12.38,4.26L12.89,5.93M9.59,9.54L8.43,8.81L7.31,9.59L7.65,8.27L6.56,7.44L7.92,7.35L8.37,6.06L8.88,7.33L10.24,7.36L9.19,8.23L9.59,9.54M19,13.5A5.5,5.5 0 0,1 13.5,19C12.28,19 11.15,18.6 10.24,17.93L17.93,10.24C18.6,11.15 19,12.28 19,13.5M14.6,20.08L17.37,18.93L17.13,22.28L14.6,20.08M18.93,17.38L20.08,14.61L22.28,17.15L18.93,17.38M20.08,12.42L18.94,9.64L22.28,9.88L20.08,12.42M9.63,18.93L12.4,20.08L9.87,22.27L9.63,18.93Z`,vu=`M3,11H11V3H3M3,21H11V13H3M13,21H21V13H13M13,3V11H21V3`,yu=`M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z`,bu=`M12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,2L14.39,5.42C13.65,5.15 12.84,5 12,5C11.16,5 10.35,5.15 9.61,5.42L12,2M3.34,7L7.5,6.65C6.9,7.16 6.36,7.78 5.94,8.5C5.5,9.24 5.25,10 5.11,10.79L3.34,7M3.36,17L5.12,13.23C5.26,14 5.53,14.78 5.95,15.5C6.37,16.24 6.91,16.86 7.5,17.37L3.36,17M20.65,7L18.88,10.79C18.74,10 18.47,9.23 18.05,8.5C17.63,7.78 17.1,7.15 16.5,6.64L20.65,7M20.64,17L16.5,17.36C17.09,16.85 17.62,16.22 18.04,15.5C18.46,14.77 18.73,14 18.87,13.21L20.64,17M12,22L9.59,18.56C10.33,18.83 11.14,19 12,19C12.82,19 13.63,18.83 14.37,18.56L12,22Z`,xu=window.__MUSEA_BASE_PATH__??`/__musea__`;async function Su(e){let t=await fetch(xu+e);if(!t.ok)throw Error(`API error: ${t.status} ${t.statusText}`);return t.json()}async function Cu(){return Su(`/api/arts`)}async function wu(e){return Su(`/api/arts/${encodeURIComponent(e)}/palette`)}async function Tu(e){return Su(`/api/arts/${encodeURIComponent(e)}/docs`)}async function Eu(e,t){return Su(`/api/arts/${encodeURIComponent(e)}/variants/${encodeURIComponent(t)}/a11y`)}function Du(e,t){return`${xu}/preview?art=${encodeURIComponent(e)}&variant=${encodeURIComponent(t)}`}async function Ou(){return Su(`/api/tokens`)}async function ku(e,t){let n=await fetch(xu+`/api/tokens`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:e,token:t})});if(!n.ok){let e=await n.json();throw Error(e.error||`API error: ${n.status}`)}return n.json()}async function Au(e,t){let n=await fetch(xu+`/api/tokens`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:e,token:t})});if(!n.ok){let e=await n.json();throw Error(e.error||`API error: ${n.status}`)}return n.json()}async function ju(e){let t=await fetch(xu+`/api/tokens`,{method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:e})});if(!t.ok){let e=await t.json();throw Error(e.error||`API error: ${t.status}`)}return t.json()}async function Mu(){return Su(`/api/tokens/usage`)}async function Nu(e){return Su(`/api/arts/${encodeURIComponent(e)}/source`)}async function Pu(e,t){let n=await fetch(xu+`/api/arts/${encodeURIComponent(e)}/source`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({source:t})});if(!n.ok){let e=await n.json();throw Error(e.error||`API error: ${n.status}`)}return n.json()}async function Fu(e,t){let n=await fetch(xu+`/api/run-vrt`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({artPath:e,updateSnapshots:t})});if(!n.ok){let e=await n.json();throw Error(e.error||`API error: ${n.status}`)}return n.json()}var Iu=I([]),Lu=I(!1),Ru=I(null),zu=!1;function Bu(){let e=J(()=>{let e=new Map;for(let t of Iu.value){let n=t.metadata.category||`Components`;e.has(n)||e.set(n,[]),e.get(n).push(t)}return e});async function t(){if(!zu){Lu.value=!0,Ru.value=null;try{Iu.value=await Cu(),zu=!0}catch(e){Ru.value=e instanceof Error?e.message:String(e)}finally{Lu.value=!1}}}async function n(){zu=!1,await t()}function r(e){return Iu.value.find(t=>t.path===e)}return{arts:Iu,categories:e,loading:Lu,error:Ru,load:t,reload:n,getArt:r}}var Vu=I(``);function Hu(e){let t=J(()=>{let t=Vu.value.toLowerCase().trim();return t?e.value.filter(e=>{let n=e.metadata.title.toLowerCase(),r=(e.metadata.description??``).toLowerCase(),i=(e.metadata.category??``).toLowerCase(),a=e.metadata.tags.map(e=>e.toLowerCase());return n.includes(t)||r.includes(t)||i.includes(t)||a.some(e=>e.includes(t))||e.variants.some(e=>e.name.toLowerCase().includes(t))}):e.value});function n(e){Vu.value=e}function r(){Vu.value=``}return{query:Vu,results:t,setQuery:n,clear:r}}const Uu={bgPrimary:`#0d0d0d`,bgSecondary:`#1a1815`,bgTertiary:`#252220`,bgElevated:`#2d2a27`,accent:`#a34828`,accentHover:`#c45a32`,accentSubtle:`rgba(163, 72, 40, 0.15)`,text:`#e6e9f0`,textSecondary:`#c4c9d4`,textMuted:`#7b8494`,border:`#3a3530`,borderSubtle:`#2a2725`,success:`#4ade80`,error:`#f87171`,info:`#60a5fa`,warning:`#fbbf24`,shadow:`0 4px 24px rgba(0, 0, 0, 0.4)`},Wu={bgPrimary:`#ffffff`,bgSecondary:`#f8f8f7`,bgTertiary:`#f0eeed`,bgElevated:`#ffffff`,accent:`#a34828`,accentHover:`#8b3d22`,accentSubtle:`rgba(163, 72, 40, 0.08)`,text:`#1a1a1a`,textSecondary:`#4a4a4a`,textMuted:`#8b8b8b`,border:`#e0dcd8`,borderSubtle:`#ebe8e5`,success:`#16a34a`,error:`#dc2626`,info:`#2563eb`,warning:`#d97706`,shadow:`0 4px 24px rgba(0, 0, 0, 0.08)`};function Gu(e){return`--musea-${e.replace(/([A-Z])/g,`-$1`).toLowerCase()}`}const Ku={dark:Uu,light:Wu};var qu=`musea-theme`,Ju=!1,Yu=I(`dark`),Xu=J(()=>Yu.value===`system`?typeof window<`u`&&window.matchMedia(`(prefers-color-scheme: light)`).matches?`light`:`dark`:Yu.value),Zu=I([`dark`,`light`,`system`]);function Qu(){return typeof window<`u`&&window.__MUSEA_THEME_CONFIG__||{default:`dark`}}function $u(e){let t=document.documentElement,n=Qu().custom?.[e];if(n){let e=n.base??`dark`;t.setAttribute(`data-musea-theme`,e);let r={...Ku[e],...n.colors};for(let[e,n]of Object.entries(r))t.style.setProperty(Gu(e),n)}else t.setAttribute(`data-musea-theme`,e),ed()}function ed(){let e=document.documentElement.style,t=[];for(let n=0;n<e.length;n++){let r=e[n];r.startsWith(`--musea-`)&&t.push(r)}for(let n of t)e.removeProperty(n)}var td=null,nd=null;function rd(){if(!Ju&&typeof window<`u`){Ju=!0;let e=Qu(),t=[`dark`,`light`,`system`];if(e.custom)for(let n of Object.keys(e.custom))t.includes(n)||t.push(n);Zu.value=t;let n=localStorage.getItem(qu),r=n&&t.includes(n)?n:e.default;Yu.value=r,$u(r),td=window.matchMedia(`(prefers-color-scheme: dark)`),nd=()=>{Yu.value===`system`&&$u(`system`)},td.addEventListener(`change`,nd)}function e(e){Yu.value=e,$u(e),localStorage.setItem(qu,e)}function t(){let t=Zu.value,n=t[(t.indexOf(Yu.value)+1)%t.length];e(n)}return{currentTheme:Yu,resolvedTheme:Xu,availableThemes:Zu,setTheme:e,cycleTheme:t}}var id=[`d`],ad=R({__name:`MdiIcon`,props:{path:{},size:{}},setup(e){return(t,n)=>(V(),H(`svg`,{class:`mdi-icon`,style:ve({width:typeof e.size==`number`?`${e.size}px`:e.size,height:typeof e.size==`number`?`${e.size}px`:e.size}),viewBox:`0 0 24 24`},[W(`path`,{d:e.path,fill:`currentColor`},null,8,id)],4))}}),X=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Z=X(ad,[[`__scopeId`,`data-v-cf941115`]]),od={class:`sidebar`},sd={class:`sidebar-section`},cd=[`onClick`],ld={class:`category-label`},ud={class:`category-count`},dd={class:`art-list`},fd=[`onClick`],pd={class:`art-name`},md={class:`art-variant-count`},hd={key:0,class:`sidebar-empty`},gd=X(R({__name:`Sidebar`,props:{arts:{}},setup(e){let t=e,n=Kl(),r=Gl(),i=I(new Set),a=J(()=>{let e=new Map;for(let n of t.arts){let t=n.metadata.category||`Components`;e.has(t)||e.set(t,[]),e.get(t).push(n)}for(let t of e.keys())i.value.add(t);return Array.from(e.entries())}),o=J(()=>n.params.path);function s(e){i.value.has(e)?i.value.delete(e):i.value.add(e)}function c(e){return i.value.has(e)}function l(e){r.push({name:`component`,params:{path:e.path}})}return(t,r)=>{let i=ii(`router-link`);return V(),H(`aside`,od,[W(`div`,sd,[G(i,{to:{name:`home`},class:M([`sidebar-home-link`,{active:L(n).name===`home`}])},{default:Gn(()=>[G(Z,{path:L(cu),size:16},null,8,[`path`]),r[0]||=K(` Home `,-1)]),_:1},8,[`class`]),G(i,{to:{name:`tokens`},class:M([`sidebar-home-link`,{active:L(n).name===`tokens`}])},{default:Gn(()=>[G(Z,{path:L(pu),size:16},null,8,[`path`]),r[1]||=K(` Design Tokens `,-1)]),_:1},8,[`class`]),G(i,{to:{name:`tests`},class:M([`sidebar-home-link`,{active:L(n).name===`tests`}])},{default:Gn(()=>[G(Z,{path:L(Yl),size:16},null,8,[`path`]),r[2]||=K(` Test Summary `,-1)]),_:1},8,[`class`])]),(V(!0),H(B,null,z(a.value,([e,t])=>(V(),H(`div`,{key:e,class:`sidebar-section`},[W(`div`,{class:M([`category-header`,{"category-header--expanded":c(e)}]),onClick:t=>s(e)},[G(Z,{class:`category-icon`,path:L(Zl),size:16},null,8,[`path`]),W(`span`,ld,N(e),1),W(`span`,ud,N(t.length),1)],10,cd),Kn(W(`ul`,dd,[(V(!0),H(B,null,z(t,e=>(V(),H(`li`,{key:e.path,class:M([`art-item`,{active:o.value===e.path}]),onClick:t=>l(e)},[W(`span`,pd,N(e.metadata.title),1),W(`span`,md,N(e.variants.length),1)],10,fd))),128))],512),[[qo,c(e)]])]))),128)),e.arts.length===0?(V(),H(`div`,hd,` No components found `)):q(``,!0)])}}}),[[`__scopeId`,`data-v-26742e85`]]),_d={class:`search-input-wrapper`},vd={class:`search-results`},yd=[`onClick`,`onMouseenter`],bd={class:`result-icon`},xd={class:`result-content`},Sd={class:`result-title`},Cd={key:0,class:`result-variant`},wd={class:`result-meta`},Td={key:0,class:`result-category`},Ed={class:`result-match-type`},Dd=[`onClick`],Od={key:2,class:`search-empty`},kd={key:3,class:`search-hint`},Ad=X(R({__name:`SearchModal`,props:{arts:{},isOpen:{type:Boolean}},emits:[`close`,`select`],setup(e,{emit:t}){let n=e,r=t,i=I(null),a=I(``),o=I(0),s=I([]);Jr(()=>{let e=localStorage.getItem(`musea-search-history`);if(e)try{s.value=JSON.parse(e)}catch{}});let c=e=>{if(!e.trim())return;let t=s.value.filter(t=>t!==e);t.unshift(e),s.value=t.slice(0,10),localStorage.setItem(`musea-search-history`,JSON.stringify(s.value))},l=J(()=>{let e=a.value.toLowerCase().trim();if(!e)return[];let t=[];for(let r of n.arts){let n=r.metadata.title.toLowerCase(),i=(r.metadata.category??``).toLowerCase(),a=(r.metadata.description??``).toLowerCase(),o=r.metadata.tags.map(e=>e.toLowerCase());if(n.includes(e)){t.push({art:r,matchType:`title`,score:n.startsWith(e)?100:80});continue}if(i.includes(e)){t.push({art:r,matchType:`category`,score:60});continue}if(o.find(t=>t.includes(e))){t.push({art:r,matchType:`tags`,score:50});continue}let s=r.variants.find(t=>t.name.toLowerCase().includes(e));if(s){t.push({art:r,matchType:`variant`,variantName:s.name,score:40});continue}a.includes(e)&&t.push({art:r,matchType:`description`,score:20})}return t.sort((e,t)=>t.score-e.score).slice(0,10)});$n(l,()=>{o.value=0}),$n(()=>n.isOpen,e=>{e&&(a.value=``,o.value=0,Nn(()=>{i.value?.focus()}))});let u=e=>{switch(e.key){case`ArrowDown`:e.preventDefault(),o.value=Math.min(o.value+1,l.value.length-1);break;case`ArrowUp`:e.preventDefault(),o.value=Math.max(o.value-1,0);break;case`Enter`:e.preventDefault(),l.value[o.value]&&d(l.value[o.value]);break;case`Escape`:e.preventDefault(),r(`close`);break}},d=e=>{c(a.value),r(`select`,e.art,e.variantName),r(`close`)},f=e=>{a.value=e,i.value?.focus()},p=()=>{s.value=[],localStorage.removeItem(`musea-search-history`)},m=e=>{(e.metaKey||e.ctrlKey)&&e.key===`k`&&(e.preventDefault(),n.isOpen&&r(`close`))};return Jr(()=>{document.addEventListener(`keydown`,m)}),Qr(()=>{document.removeEventListener(`keydown`,m)}),(t,n)=>(V(),U(pr,{to:`body`},[G(ko,{name:`modal`},{default:Gn(()=>[e.isOpen?(V(),H(`div`,{key:0,class:`search-modal-overlay`,onClick:n[1]||=Fs(e=>r(`close`),[`self`])},[W(`div`,{class:`search-modal`,onKeydown:u},[W(`div`,_d,[G(Z,{class:`search-icon`,path:L(du),size:20},null,8,[`path`]),Kn(W(`input`,{ref_key:`searchInput`,ref:i,"onUpdate:modelValue":n[0]||=e=>a.value=e,type:`text`,class:`search-input`,placeholder:`Search components, variants, tags...`,autocomplete:`off`},null,512),[[Ts,a.value]]),n[2]||=W(`kbd`,{class:`search-shortcut`},`ESC`,-1)]),W(`div`,vd,[l.value.length>0?(V(!0),H(B,{key:0},z(l.value,(e,t)=>(V(),H(`div`,{key:`${e.art.path}-${e.variantName||``}`,class:M([`search-result`,{"search-result--selected":t===o.value}]),onClick:t=>d(e),onMouseenter:e=>o.value=t},[W(`div`,bd,[e.matchType===`variant`?(V(),U(Z,{key:0,path:L(iu),size:16},null,8,[`path`])):(V(),U(Z,{key:1,path:L(pu),size:16},null,8,[`path`]))]),W(`div`,xd,[W(`div`,Sd,[K(N(e.art.metadata.title)+` `,1),e.variantName?(V(),H(`span`,Cd,` / `+N(e.variantName),1)):q(``,!0)]),W(`div`,wd,[e.art.metadata.category?(V(),H(`span`,Td,N(e.art.metadata.category),1)):q(``,!0),W(`span`,Ed,N(e.matchType),1)])]),n[3]||=W(`kbd`,{class:`result-shortcut`},`↵`,-1)],42,yd))),128)):!a.value&&s.value.length>0?(V(),H(B,{key:1},[W(`div`,{class:`search-history-header`},[n[4]||=W(`span`,null,`Recent Searches`,-1),W(`button`,{class:`history-clear`,onClick:p},`Clear`)]),(V(!0),H(B,null,z(s.value,e=>(V(),H(`div`,{key:e,class:`search-history-item`,onClick:t=>f(e)},[G(Z,{class:`history-icon`,path:L(su),size:14},null,8,[`path`]),K(` `+N(e),1)],8,Dd))),128))],64)):a.value?(V(),H(`div`,Od,` No results for "`+N(a.value)+`" `,1)):(V(),H(`div`,kd,` Start typing to search components `))]),n[5]||=W(`div`,{class:`search-footer`},[W(`div`,{class:`search-footer-item`},[W(`kbd`,null,`↑`),W(`kbd`,null,`↓`),K(` to navigate `)]),W(`div`,{class:`search-footer-item`},[W(`kbd`,null,`↵`),K(` to select `)]),W(`div`,{class:`search-footer-item`},[W(`kbd`,null,`esc`),K(` to close `)])],-1)],32)])):q(``,!0)]),_:1})]))}}),[[`__scopeId`,`data-v-966c5dd1`]]),jd={class:`gallery-layout`},Md={class:`header`},Nd={class:`header-left`},Pd={class:`header-center`},Fd={class:`header-right`},Id=[`title`],Ld={class:`main`},Rd={class:`content`},zd=X(R({__name:`GalleryLayout`,setup(e){let t=Gl(),{arts:n,load:r}=Bu(),{query:i,results:a}=Hu(n),{currentTheme:o,cycleTheme:s}=rd(),c=I(!1),l=J(()=>{switch(o.value){case`light`:return bu;case`system`:return _u;default:return yu}}),u=J(()=>{switch(o.value){case`light`:return`Light`;case`system`:return`System`;default:return`Dark`}}),d=e=>{(e.metaKey||e.ctrlKey)&&e.key===`k`&&(e.preventDefault(),c.value=!c.value)};Jr(()=>{r(),document.addEventListener(`keydown`,d)}),Qr(()=>{document.removeEventListener(`keydown`,d)});let f=(e,n)=>{t.push({name:`component`,params:{path:e.path}})};return(e,t)=>{let r=ii(`router-link`),i=ii(`router-view`);return V(),H(`div`,jd,[W(`header`,Md,[W(`div`,Nd,[G(r,{to:`/`,class:`logo`},{default:Gn(()=>[...t[3]||=[W(`svg`,{class:`logo-svg`,width:`32`,height:`32`,viewBox:`0 0 200 200`,fill:`none`},[W(`defs`,null,[W(`linearGradient`,{id:`metal-grad`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`20%`},[W(`stop`,{offset:`0%`,"stop-color":`#f0f2f5`}),W(`stop`,{offset:`50%`,"stop-color":`#9ca3b0`}),W(`stop`,{offset:`100%`,"stop-color":`#e07048`})]),W(`linearGradient`,{id:`metal-grad-dark`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`30%`},[W(`stop`,{offset:`0%`,"stop-color":`#d0d4dc`}),W(`stop`,{offset:`60%`,"stop-color":`#6b7280`}),W(`stop`,{offset:`100%`,"stop-color":`#c45530`})])]),W(`g`,{transform:`translate(40, 40)`},[W(`g`,{transform:`skewX(-12)`},[W(`path`,{d:`M 100 0 L 60 120 L 105 30 L 100 0 Z`,fill:`url(#metal-grad-dark)`,stroke:`#4b5563`,"stroke-width":`0.5`}),W(`path`,{d:`M 30 0 L 60 120 L 80 20 L 30 0 Z`,fill:`url(#metal-grad)`,"stroke-width":`0.5`,"stroke-opacity":`0.4`})])]),W(`g`,{transform:`translate(110, 120)`},[W(`line`,{x1:`5`,y1:`10`,x2:`5`,y2:`50`,stroke:`#e07048`,"stroke-width":`3`,"stroke-linecap":`round`}),W(`line`,{x1:`60`,y1:`10`,x2:`60`,y2:`50`,stroke:`#e07048`,"stroke-width":`3`,"stroke-linecap":`round`}),W(`path`,{d:`M 0 10 L 32.5 0 L 65 10`,fill:`none`,stroke:`#e07048`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}),W(`rect`,{x:`15`,y:`18`,width:`14`,height:`12`,rx:`1`,fill:`none`,stroke:`#e07048`,"stroke-width":`1.5`,opacity:`0.7`}),W(`rect`,{x:`36`,y:`18`,width:`14`,height:`12`,rx:`1`,fill:`none`,stroke:`#e07048`,"stroke-width":`1.5`,opacity:`0.7`}),W(`rect`,{x:`23`,y:`35`,width:`18`,height:`12`,rx:`1`,fill:`none`,stroke:`#e07048`,"stroke-width":`1.5`,opacity:`0.6`})])],-1),K(` Musea `,-1)]]),_:1}),t[4]||=W(`span`,{class:`header-subtitle`},`Component Gallery`,-1)]),W(`div`,Pd,[W(`button`,{class:`search-trigger`,onClick:t[0]||=e=>c.value=!0},[G(Z,{class:`search-icon`,path:L(du),size:16},null,8,[`path`]),t[5]||=W(`span`,null,`Search components...`,-1),t[6]||=W(`kbd`,null,`⌘K`,-1)])]),W(`div`,Fd,[W(`button`,{class:`theme-toggle`,title:`Theme: ${u.value}`,onClick:t[1]||=(...e)=>L(s)&&L(s)(...e)},[G(Z,{path:l.value,size:18},null,8,[`path`])],8,Id)])]),W(`main`,Ld,[G(gd,{arts:L(a)},null,8,[`arts`]),W(`section`,Rd,[G(i)])]),G(Ad,{arts:L(n),"is-open":c.value,onClose:t[2]||=e=>c.value=!1,onSelect:f},null,8,[`arts`,`is-open`])])}}}),[[`__scopeId`,`data-v-93aba92b`]]),Bd=R({__name:`App`,setup(e){return(e,t)=>(V(),U(zd))}}),Vd=X(R({__name:`StatusBadge`,props:{status:{}},setup(e){return(t,n)=>(V(),H(`span`,{class:M([`status-badge`,`status-`+e.status])},N(e.status),3))}}),[[`__scopeId`,`data-v-ba7b85e7`]]),Hd={class:`home`},Ud={class:`home-header`},Wd={class:`home-stats`},Gd={class:`home-stat`},Kd={class:`home-stat-value`},qd={class:`home-stat`},Jd={class:`home-stat-value`},Yd={class:`home-stat`},Xd={class:`home-stat-value`},Zd={class:`home-category-title`},Qd={class:`home-category-grid`},$d=[`onClick`],ef={class:`home-card-header`},tf={class:`home-card-title`},nf={key:0,class:`home-card-desc`},rf={class:`home-card-footer`},af={class:`home-card-meta`},of={class:`home-card-tags`},sf={key:0,class:`home-empty`},cf=X(R({__name:`HomeView`,setup(e){let{arts:t,categories:n}=Bu(),r=Gl(),i=J(()=>Array.from(n.value.entries())),a=J(()=>({total:t.value.length,variants:t.value.reduce((e,t)=>e+t.variants.length,0),categories:n.value.size}));function o(e){r.push({name:`component`,params:{path:e}})}return(e,n)=>(V(),H(`div`,Hd,[W(`div`,Ud,[n[3]||=W(`h1`,{class:`home-title`},`Component Gallery`,-1),n[4]||=W(`p`,{class:`home-description`},` Browse, preview, and interact with your components `,-1),W(`div`,Wd,[W(`div`,Gd,[W(`span`,Kd,N(a.value.total),1),n[0]||=W(`span`,{class:`home-stat-label`},`Components`,-1)]),W(`div`,qd,[W(`span`,Jd,N(a.value.variants),1),n[1]||=W(`span`,{class:`home-stat-label`},`Variants`,-1)]),W(`div`,Yd,[W(`span`,Xd,N(a.value.categories),1),n[2]||=W(`span`,{class:`home-stat-label`},`Categories`,-1)])])]),(V(!0),H(B,null,z(i.value,([e,t])=>(V(),H(`div`,{key:e,class:`home-category`},[W(`h2`,Zd,N(e),1),W(`div`,Qd,[(V(!0),H(B,null,z(t,e=>(V(),H(`div`,{key:e.path,class:`home-card`,onClick:t=>o(e.path)},[W(`div`,ef,[W(`span`,tf,N(e.metadata.title),1),G(Vd,{status:e.metadata.status},null,8,[`status`])]),e.metadata.description?(V(),H(`p`,nf,N(e.metadata.description),1)):q(``,!0),W(`div`,rf,[W(`span`,af,N(e.variants.length)+` variant`+N(e.variants.length===1?``:`s`),1),W(`div`,of,[(V(!0),H(B,null,z(e.metadata.tags.slice(0,3),e=>(V(),H(`span`,{key:e,class:`home-card-tag`},` #`+N(e),1))),128))])])],8,$d))),128))])]))),128)),L(t).length===0?(V(),H(`div`,sf,[...n[5]||=[za(`<div class="home-empty-icon" data-v-9ccea940><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" data-v-9ccea940><path d="M4 5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5Z" data-v-9ccea940></path><path d="M4 13a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-6Z" data-v-9ccea940></path><path d="M16 13a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6Z" data-v-9ccea940></path></svg></div><h2 data-v-9ccea940>No components found</h2><p data-v-9ccea940>Create <code data-v-9ccea940>*.art.vue</code> files to get started</p>`,3)]])):q(``,!0)]))}}),[[`__scopeId`,`data-v-9ccea940`]]);function lf(e,t,n={}){e.contentWindow?.postMessage({type:t,payload:n},`*`)}function uf(e,t){let n=n=>{if(n.origin!==window.location.origin)return;let r=n.data;r?.type?.startsWith(`musea:`)&&r.type===e&&t(r.payload)};window.addEventListener(`message`,n),Qr(()=>{window.removeEventListener(`message`,n)})}var df=I([]),ff=I(``);function pf(){function e(){uf(`musea:event`,e=>{let t=e;df.value.push(t),df.value.length>200&&(df.value=df.value.slice(-200))})}function t(){df.value=[]}function n(e){ff.value=e}return{events:J(()=>ff.value?df.value.filter(e=>e.variantName===ff.value):df.value),allEvents:df,currentVariant:ff,init:e,clear:t,setCurrentVariant:n}}const mf=[{name:`Reset`,width:`100%`,height:`100%`},{name:`iPhone SE`,width:`375px`,height:`667px`},{name:`iPhone 14`,width:`390px`,height:`844px`},{name:`iPad`,width:`768px`,height:`1024px`},{name:`iPad Pro`,width:`1024px`,height:`1366px`},{name:`Desktop`,width:`1280px`,height:`800px`},{name:`Wide`,width:`1920px`,height:`1080px`}],hf=[{name:`Light`,color:`#ffffff`},{name:`Dark`,color:`#1a1a2e`},{name:`Transparent`,color:`transparent`,pattern:`checkerboard`},{name:`Twitter`,color:`#00acee`}];var gf=Gt({background:null,customBgColor:``,outlineEnabled:!1,measureEnabled:!1,viewport:mf[0],viewportRotated:!1,gridDensity:`comfortable`,multiViewportEnabled:!1,fullscreenVariant:null});function _f(){function e(e){gf.background=e,gf.customBgColor=``}function t(e){gf.background=null,gf.customBgColor=e}function n(){return gf.background?{color:gf.background.color,pattern:gf.background.pattern}:gf.customBgColor?{color:gf.customBgColor}:{color:``}}function r(){gf.outlineEnabled=!gf.outlineEnabled}function i(){gf.measureEnabled=!gf.measureEnabled}function a(e){gf.viewport=e,gf.viewportRotated=!1}function o(){gf.viewportRotated=!gf.viewportRotated}function s(){let e=gf.viewport;return gf.viewportRotated&&e.width!==`100%`?{width:e.height,height:e.width}:{width:e.width,height:e.height}}function c(e){gf.gridDensity=e}function l(){gf.multiViewportEnabled=!gf.multiViewportEnabled}function u(e,t){gf.fullscreenVariant={artPath:e,variantName:t}}function d(){gf.fullscreenVariant=null}return{...dn(gf),setBackground:e,setCustomBackground:t,getEffectiveBackground:n,toggleOutline:r,toggleMeasure:i,setViewport:a,rotateViewport:o,getEffectiveViewport:s,setGridDensity:c,toggleMultiViewport:l,openFullscreen:u,closeFullscreen:d}}var vf=rn([]),yf=I(new Map),bf=I(``),xf=I(!1),Sf=I(``);function Cf(e={}){let{maxEvents:t=1e3}=e,n=J(()=>{let e=vf.value;return Sf.value&&(e=e.filter(e=>e.variantId===Sf.value)),bf.value&&(e=e.filter(e=>e.type.includes(bf.value))),e}),r=J(()=>{let e=Sf.value?vf.value.filter(e=>e.variantId===Sf.value):vf.value,t=new Set(e.map(e=>e.type));return Array.from(t).sort()}),i=J(()=>{let e=Sf.value?vf.value.filter(e=>e.variantId===Sf.value):vf.value,t={};for(let n of e)t[n.type]=(t[n.type]||0)+1;return t}),a=e=>{if(xf.value)return;let n={id:`id`in e?e.id:`${Date.now()}-${Math.random().toString(36).slice(2,9)}`,timestamp:`timestamp`in e?e.timestamp:Date.now(),type:e.type,target:e.target,payload:e.payload,variantId:e.variantId,rawEvent:e.rawEvent},r=[...vf.value,n];r.length>t?vf.value=r.slice(-t):vf.value=r;let i=n.variantId;yf.value.has(i)||yf.value.set(i,[]);let a=yf.value.get(i);a.push(n),a.length>t&&yf.value.set(i,a.slice(-t))},o=()=>{Sf.value?s(Sf.value):(vf.value=[],yf.value.clear())},s=e=>{yf.value.delete(e),vf.value=vf.value.filter(t=>t.variantId!==e)};return{events:vf,filteredEvents:n,eventTypes:r,eventCounts:i,filterType:bf,isPaused:xf,currentVariantId:Sf,addEvent:a,clearEvents:o,clearVariantEvents:s,getVariantEvents:e=>yf.value.get(e)||[],setCurrentVariant:e=>{Sf.value=e},togglePause:()=>{xf.value=!xf.value},setFilter:e=>{bf.value=e}}}var wf=l(o(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=`</span>`,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=u({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var ee=/\b\B/,w=`[a-zA-Z]\\w*`,T=`[a-zA-Z_]\\w*`,E=`\\b\\d+(\\.\\d+)?`,D=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,te=`\\b(0b[01]+)`,O=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,ne=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},k={begin:`\\\\[\\s\\S]`,relevance:0},re={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[k]},A={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[k]},j={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ie=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`I`,`a`,`is`,`so`,`us`,`to`,`at`,`if`,`in`,`it`,`on`,/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},ae=ie(`//`,`$`),oe=ie(`/\\*`,`\\*/`),se=ie(`#`,`$`),ce={scope:`number`,begin:E,relevance:0},le={scope:`number`,begin:D,relevance:0},ue={scope:`number`,begin:te,relevance:0},de={scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[k,{begin:/\[/,end:/\]/,relevance:0,contains:[k]}]},fe={scope:`title`,begin:w,relevance:0},pe={scope:`title`,begin:T,relevance:0},me={begin:`\\.\\s*`+T,relevance:0},he=Object.freeze({__proto__:null,APOS_STRING_MODE:re,BACKSLASH_ESCAPE:k,BINARY_NUMBER_MODE:ue,BINARY_NUMBER_RE:te,COMMENT:ie,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:ae,C_NUMBER_MODE:le,C_NUMBER_RE:D,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:se,IDENT_RE:w,MATCH_NOTHING_RE:ee,METHOD_GUARD:me,NUMBER_MODE:ce,NUMBER_RE:E,PHRASAL_WORDS_MODE:j,QUOTE_STRING_MODE:A,REGEXP_MODE:de,RE_STARTERS_RE:O,SHEBANG:ne,TITLE_MODE:fe,UNDERSCORE_IDENT_RE:T,UNDERSCORE_TITLE_MODE:pe});function ge(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function _e(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ve(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=ge,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ye(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function be(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function xe(e,t){e.relevance===void 0&&(e.relevance=1)}var Se=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},M=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],Ce=`keyword`;function we(e,t,n=Ce){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,we(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,Te(n[0],n[1])]})}}function Te(e,t){return t?Number(t):Ee(e)?0:1}function Ee(e){return M.includes(e.toLowerCase())}var De={},Oe=e=>{console.error(e)},ke=(e,...t)=>{console.log(`WARN: ${e}`,...t)},N=(e,t)=>{De[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),De[`${e}/${t}`]=!0)},Ae=Error();function je(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function Me(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Oe(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),Ae;if(typeof e.beginScope!=`object`||e.beginScope===null)throw Oe(`beginScope must be object`),Ae;je(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function Ne(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Oe(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),Ae;if(typeof e.endScope!=`object`||e.endScope===null)throw Oe(`endScope must be object`),Ae;je(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function Pe(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function P(e){Pe(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),Me(e),Ne(e)}function Fe(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null),this.matcherRe=t(C(this.regexes.map(e=>e[1]),{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[_e,be,P,Se].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[ve,ye,xe].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=we(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return Le(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function Ie(e){return e?e.endsWithParent||Ie(e.starts):!1}function Le(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ie(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Re=`11.11.1`,ze=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},Be=i,Ve=a,He=Symbol(`nomatch`),Ue=7,We=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=re(n[1]);return t||(ke(s.replace(`{}`,n[1])),ke(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||re(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(N(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),N(`10.7.0`,`Please use highlight(code, options) instead.
3
- https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};se(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,se(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!O.keywords){k.addText(A);return}let e=0;O.keywordPatternRe.lastIndex=0;let t=O.keywordPatternRe.exec(A),n=``;for(;t;){n+=A.substring(e,t.index);let r=E.case_insensitive?t[0].toLowerCase():t[0],i=u(O,r);if(i){let[e,a]=i;if(k.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=Ue&&(j+=a),e.startsWith(`_`))n+=t[0];else{let n=E.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=O.keywordPatternRe.lastIndex,t=O.keywordPatternRe.exec(A)}n+=A.substring(e),k.addText(n)}function f(){if(A===``)return;let e=null;if(typeof O.subLanguage==`string`){if(!t[O.subLanguage]){k.addText(A);return}e=v(O.subLanguage,A,!0,ne[O.subLanguage]),ne[O.subLanguage]=e._top}else e=S(A,O.subLanguage.length?O.subLanguage:null);O.relevance>0&&(j+=e.relevance),k.__addSublanguage(e._emitter,e.language)}function p(){O.subLanguage==null?d():f(),A=``}function m(e,t){e!==``&&(k.startScope(t),k.addText(e),k.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=E.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(A=i,d(),A=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&k.openNode(E.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(A,E.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),A=``):e.beginScope._multi&&(h(e.beginScope,t),A=``)),O=Object.create(e,{parent:{value:O}}),O}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return O.matcher.regexIndex===0?(A+=e[0],1):(oe=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?A+=t:(n.excludeBegin&&(A+=t),p(),!n.returnBegin&&!n.excludeBegin&&(A=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(O,e,r);if(!i)return He;let a=O;O.endScope&&O.endScope._wrap?(p(),m(t,O.endScope._wrap)):O.endScope&&O.endScope._multi?(p(),h(O.endScope,e)):a.skip?A+=t:(a.returnEnd||a.excludeEnd||(A+=t),p(),a.excludeEnd&&(A=t));do O.scope&&k.closeNode(),!O.skip&&!O.subLanguage&&(j+=O.relevance),O=O.parent;while(O!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function ee(){let e=[];for(let t=O;t!==E;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>k.openNode(e))}let w={};function T(t,r){let a=r&&r[0];if(A+=t,a==null)return p(),0;if(w.type===`begin`&&r.type===`end`&&w.index===r.index&&a===``){if(A+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=w.rule,t}return 1}if(w=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(O.scope||`<unnamed>`)+`"`);throw e.mode=O,e}else if(r.type===`end`){let e=C(r);if(e!==He)return e}if(r.type===`illegal`&&a===``)return A+=`
4
- `,1;if(ae>1e5&&ae>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return A+=a,a.length}let E=re(e);if(!E)throw Oe(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let D=Fe(E),te=``,O=a||D,ne={},k=new l.__emitter(l);ee();let A=``,j=0,ie=0,ae=0,oe=!1;try{if(E.__emitTokens)E.__emitTokens(n,k);else{for(O.matcher.considerAll();;){ae++,oe?oe=!1:O.matcher.considerAll(),O.matcher.lastIndex=ie;let e=O.matcher.exec(n);if(!e)break;let t=T(n.substring(ie,e.index),e);ie=e.index+t}T(n.substring(ie))}return k.finalize(),te=k.toHTML(),{language:e,value:te,relevance:j,illegal:!1,_emitter:k,_top:O}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:Be(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:ie,context:n.slice(ie-100,ie+100),mode:t.mode,resultSoFar:te},_emitter:k};if(o)return{language:e,value:Be(n),illegal:!1,relevance:0,errorRaised:t,_emitter:k,_top:O};throw t}}function b(e){let t={value:Be(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(re).filter(j).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(re(e.language).supersetOf===t.language)return 1;if(re(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function ee(e){let t=null,n=d(e);if(u(n))return;if(se(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(l.ignoreUnescapedHTML||(console.warn(`One of your code blocks includes unescaped HTML. This is a potentially serious security risk.`),console.warn(`https://github.com/highlightjs/highlight.js/wiki/security`),console.warn(`The element with unescaped HTML:`),console.warn(e)),l.throwUnescapedHTML))throw new ze(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),se(`after:highlightElement`,{el:e,result:i,text:r})}function w(e){l=Ve(l,e)}let T=()=>{te(),N(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function E(){te(),N(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let D=!1;function te(){function e(){te()}if(document.readyState===`loading`){D||window.addEventListener(`DOMContentLoaded`,e,!1),D=!0;return}document.querySelectorAll(l.cssSelector).forEach(ee)}function O(n,r){let i=null;try{i=r(e)}catch(e){if(Oe(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)Oe(e);else throw e;i=c}i.name||=n,t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&A(i.aliases,{languageName:n})}function ne(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function k(){return Object.keys(t)}function re(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function A(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function j(e){let t=re(e);return t&&!t.disableAutodetect}function ie(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function ae(e){ie(e),a.push(e)}function oe(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function se(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function ce(e){return N(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),N(`10.7.0`,`Please use highlightElement now.`),ee(e)}for(let t in Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:te,highlightElement:ee,highlightBlock:ce,configure:w,initHighlighting:T,initHighlightingOnLoad:E,registerLanguage:O,unregisterLanguage:ne,listLanguages:k,getLanguage:re,registerAliases:A,autoDetection:j,inherit:Ve,addPlugin:ae,removePlugin:oe}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Re,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h},he)typeof he[t]==`object`&&n(he[t]);return Object.assign(e,he),e},Ge=We({});Ge.newInstance=()=>We({}),t.exports=Ge,Ge.HighlightJS=Ge,Ge.default=Ge}))()).default;function Tf(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),c=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:`attr`,begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:`string`,endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,unicodeRegex:!0,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,contains:[a,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/<style(?=\s|>)/,end:/>/,keywords:{name:`style`},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/<script(?=\s|>)/,end:/>/,keywords:{name:`script`},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:l}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}var Ef={class:`source-code`},Df={class:`source-header`},Of={key:0,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,width:`12`,height:`12`},kf={key:1,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,width:`12`,height:`12`},Af={class:`source-pre`},jf=[`innerHTML`],Mf=X(R({__name:`VariantSourceCode`,props:{code:{}},setup(e){wf.registerLanguage(`xml`,Tf);let t=e,n=I(!1),r=J(()=>{try{return wf.highlight(t.code,{language:`xml`}).value}catch{return t.code}});async function i(e){try{await navigator.clipboard.writeText(e),n.value=!0,setTimeout(()=>{n.value=!1},2e3)}catch{}}return(t,a)=>(V(),H(`div`,Ef,[W(`div`,Df,[a[3]||=W(`span`,{class:`source-label`},`Template`,-1),W(`button`,{class:`source-copy-btn`,onClick:a[0]||=t=>i(e.code)},[n.value?(V(),H(`svg`,kf,[...a[2]||=[W(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):(V(),H(`svg`,Of,[...a[1]||=[W(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`},null,-1),W(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`},null,-1)]])),K(` `+N(n.value?`Copied!`:`Copy`),1)])]),W(`pre`,Af,[W(`code`,{class:`source-code-text hljs`,innerHTML:r.value},null,8,jf)])]))}}),[[`__scopeId`,`data-v-58c7cb21`]]),Nf={class:`variant-card`},Pf=[`src`,`title`],Ff={class:`variant-info`},If={class:`variant-left`},Lf={class:`variant-name`},Rf={key:0,class:`variant-badge`},zf={class:`variant-actions`},Bf=[`title`],Vf=globalThis.window,Hf=X(R({__name:`VariantCard`,props:{artPath:{},variant:{},componentName:{}},setup(e){let t=e,n=I(!1);function r(e){return t.componentName?e.replace(/<Self(\s|>|\/)/g,`<${t.componentName}$1`).replace(/<\/Self>/g,`</${t.componentName}>`):e}let i=J(()=>r(t.variant.template));async function a(){try{await navigator.clipboard.writeText(i.value),n.value=!0,setTimeout(()=>{n.value=!1},2e3)}catch{}}let o=J(()=>Du(t.artPath,t.variant.name)),s=I(null),c=I(!1),l=I(!1),{outlineEnabled:u,measureEnabled:d,getEffectiveBackground:f,getEffectiveViewport:p,openFullscreen:m}=_f(),h=J(()=>{let e=p();return e.width===`100%`?{width:`100%`,height:`100%`}:{width:e.width,height:e.height}}),g=J(()=>p().width!==`100%`);function _(){c.value=!0,v()}function v(){let e=s.value;if(!e)return;let t=f();t.color&&lf(e,`musea:set-background`,{color:t.color,pattern:t.pattern}),lf(e,`musea:toggle-outline`,{enabled:u.value}),lf(e,`musea:toggle-measure`,{enabled:d.value})}return $n(()=>f(),e=>{let t=s.value;!t||!c.value||lf(t,`musea:set-background`,{color:e.color,pattern:e.pattern})},{deep:!0}),$n(u,e=>{let t=s.value;!t||!c.value||lf(t,`musea:toggle-outline`,{enabled:e})}),$n(d,e=>{let t=s.value;!t||!c.value||lf(t,`musea:toggle-measure`,{enabled:e})}),(t,r)=>(V(),H(`div`,Nf,[W(`div`,{class:M([`variant-preview`,{"viewport-mode":g.value}])},[W(`iframe`,{ref_key:`iframeRef`,ref:s,src:o.value,loading:`lazy`,title:e.variant.name,style:ve(h.value),onLoad:_},null,44,Pf)],2),W(`div`,Ff,[W(`div`,If,[W(`span`,Lf,N(e.variant.name),1),e.variant.isDefault?(V(),H(`span`,Rf,`Default`)):q(``,!0)]),W(`div`,zf,[W(`button`,{class:M([`variant-action-btn`,{active:n.value}]),title:n.value?`Copied!`:`Copy template`,onClick:a},[n.value?(V(),U(Z,{key:1,path:L(ql),size:14},null,8,[`path`])):(V(),U(Z,{key:0,path:L(ru),size:14},null,8,[`path`]))],10,Bf),W(`button`,{class:M([`variant-action-btn`,{active:l.value}]),title:`View source`,onClick:r[0]||=e=>l.value=!l.value},[G(Z,{path:L(nu),size:14},null,8,[`path`])],2),W(`button`,{class:`variant-action-btn`,title:`Fullscreen`,onClick:r[1]||=t=>L(m)(e.artPath,e.variant.name)},[G(Z,{path:L(ou),size:14},null,8,[`path`])]),W(`button`,{class:`variant-action-btn`,title:`Open in new tab`,onClick:r[2]||=e=>L(Vf).open(o.value,`_blank`)},[G(Z,{path:L(fu),size:14},null,8,[`path`])])])]),l.value?(V(),U(Mf,{key:0,code:i.value},null,8,[`code`])):q(``,!0)]))}}),[[`__scopeId`,`data-v-5fce2c7e`]]),Uf={class:`variant-tabs-container`},Wf=[`onClick`],Gf={class:`variant-tab-name`},Kf={key:0,class:`variant-tab-badge`},qf=X(R({__name:`VariantTabs`,props:{variants:{},selectedVariant:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=I(null),a=I(!1),o=I(!1);J(()=>n.variants.find(e=>e.isDefault)?.name||n.variants[0]?.name);let s=()=>{if(!i.value)return;let e=i.value;a.value=e.scrollLeft>0,o.value=e.scrollLeft<e.scrollWidth-e.clientWidth-1},c=e=>{i.value&&i.value.scrollBy({left:e===`left`?-200:200,behavior:`smooth`})};return Jr(()=>{s(),window.addEventListener(`resize`,s)}),Qr(()=>{window.removeEventListener(`resize`,s)}),$n(()=>n.variants,s),(t,n)=>(V(),H(`div`,Uf,[a.value?(V(),H(`button`,{key:0,class:`scroll-btn scroll-btn--left`,onClick:n[0]||=e=>c(`left`),"aria-label":`Scroll left`},[...n[2]||=[W(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[W(`polyline`,{points:`15 18 9 12 15 6`})],-1)]])):q(``,!0),W(`div`,{ref_key:`tabsRef`,ref:i,class:`variant-tabs`,onScroll:s},[(V(!0),H(B,null,z(e.variants,t=>(V(),H(`button`,{key:t.name,class:M([`variant-tab`,{"variant-tab--active":t.name===e.selectedVariant,"variant-tab--default":t.isDefault}]),onClick:e=>r(`select`,t.name)},[W(`span`,Gf,N(t.name),1),t.isDefault?(V(),H(`span`,Kf,`Default`)):q(``,!0)],10,Wf))),128))],544),o.value?(V(),H(`button`,{key:1,class:`scroll-btn scroll-btn--right`,onClick:n[1]||=e=>c(`right`),"aria-label":`Scroll right`},[...n[3]||=[W(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[W(`polyline`,{points:`9 18 15 12 9 6`})],-1)]])):q(``,!0)]))}}),[[`__scopeId`,`data-v-75d41618`]]);function Jf(){let e=I(null),t=I(!1),n=I(null),r=I({});async function i(i){t.value=!0,n.value=null;try{e.value=await wu(i);let t={};for(let n of e.value.controls)n.default_value!==void 0&&(t[n.name]=n.default_value);r.value=t}catch(t){n.value=t instanceof Error?t.message:String(t),e.value=null}finally{t.value=!1}}function a(e,t){r.value={...r.value,[e]:t}}function o(){if(!e.value)return;let t={};for(let n of e.value.controls)n.default_value!==void 0&&(t[n.name]=n.default_value);r.value=t}return{palette:e,loading:t,error:n,values:r,load:i,setValue:a,resetValues:o}}var Yf={class:`control`},Xf={class:`control-label`},Zf={key:0,class:`control-required`},Qf={key:0,class:`control-desc`},$f=X(R({__name:`TextControl`,props:mi({label:{},description:{},required:{type:Boolean}},{modelValue:{default:``},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Pi(e,`modelValue`);return(n,r)=>(V(),H(`div`,Yf,[W(`label`,Xf,[K(N(e.label)+` `,1),e.required?(V(),H(`span`,Zf,`*`)):q(``,!0)]),Kn(W(`input`,{"onUpdate:modelValue":r[0]||=e=>t.value=e,type:`text`,class:`control-input`},null,512),[[Ts,t.value]]),e.description?(V(),H(`span`,Qf,N(e.description),1)):q(``,!0)]))}}),[[`__scopeId`,`data-v-4033f341`]]),ep={class:`control`},tp={class:`control-label`},np={key:0,class:`control-required`},rp={key:0,class:`control-desc`},ip=X(R({__name:`NumberControl`,props:mi({label:{},description:{},required:{type:Boolean}},{modelValue:{default:0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Pi(e,`modelValue`);return(n,r)=>(V(),H(`div`,ep,[W(`label`,tp,[K(N(e.label)+` `,1),e.required?(V(),H(`span`,np,`*`)):q(``,!0)]),Kn(W(`input`,{"onUpdate:modelValue":r[0]||=e=>t.value=e,type:`number`,class:`control-input`},null,512),[[Ts,t.value,void 0,{number:!0}]]),e.description?(V(),H(`span`,rp,N(e.description),1)):q(``,!0)]))}}),[[`__scopeId`,`data-v-b20335b5`]]),ap={class:`control`},op={class:`control-label`},sp={key:0,class:`control-required`},cp={key:0,class:`control-desc`},lp=X(R({__name:`BooleanControl`,props:mi({label:{},description:{},required:{type:Boolean}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Pi(e,`modelValue`);return(n,r)=>(V(),H(`div`,ap,[W(`label`,op,[Kn(W(`input`,{"onUpdate:modelValue":r[0]||=e=>t.value=e,type:`checkbox`,class:`control-checkbox`},null,512),[[Es,t.value]]),W(`span`,{class:M([`control-toggle`,{active:t.value}])},null,2),K(` `+N(e.label)+` `,1),e.required?(V(),H(`span`,sp,`*`)):q(``,!0)]),e.description?(V(),H(`span`,cp,N(e.description),1)):q(``,!0)]))}}),[[`__scopeId`,`data-v-ca10b406`]]),up={class:`control`},dp={class:`control-label`},fp={key:0,class:`control-required`},pp={class:`control-value`},mp=[`min`,`max`,`step`],hp={key:0,class:`control-desc`},gp=X(R({__name:`RangeControl`,props:mi({label:{},description:{},required:{type:Boolean},min:{},max:{},step:{}},{modelValue:{default:0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Pi(e,`modelValue`);return(n,r)=>(V(),H(`div`,up,[W(`label`,dp,[K(N(e.label)+` `,1),e.required?(V(),H(`span`,fp,`*`)):q(``,!0),W(`span`,pp,N(t.value),1)]),Kn(W(`input`,{"onUpdate:modelValue":r[0]||=e=>t.value=e,type:`range`,class:`control-range`,min:e.min??0,max:e.max??100,step:e.step??1},null,8,mp),[[Ts,t.value,void 0,{number:!0}]]),e.description?(V(),H(`span`,hp,N(e.description),1)):q(``,!0)]))}}),[[`__scopeId`,`data-v-461816a1`]]),_p={class:`control`},vp={class:`control-label`},yp={key:0,class:`control-required`},bp=[`value`],xp=[`value`],Sp={key:0,class:`control-desc`},Cp=X(R({__name:`SelectControl`,props:mi({label:{},description:{},required:{type:Boolean},options:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Pi(e,`modelValue`);return(n,r)=>(V(),H(`div`,_p,[W(`label`,vp,[K(N(e.label)+` `,1),e.required?(V(),H(`span`,yp,`*`)):q(``,!0)]),W(`select`,{class:`control-select`,value:JSON.stringify(t.value),onChange:r[0]||=e=>t.value=JSON.parse(e.target.value)},[(V(!0),H(B,null,z(e.options,e=>(V(),H(`option`,{key:String(e.value),value:JSON.stringify(e.value)},N(e.label),9,xp))),128))],40,bp),e.description?(V(),H(`span`,Sp,N(e.description),1)):q(``,!0)]))}}),[[`__scopeId`,`data-v-c59af48e`]]),wp={class:`control`},Tp={class:`control-label`},Ep={key:0,class:`control-required`},Dp={class:`control-color-row`},Op={key:0,class:`control-desc`},kp=X(R({__name:`ColorControl`,props:mi({label:{},description:{},required:{type:Boolean}},{modelValue:{default:`#000000`},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Pi(e,`modelValue`);return(n,r)=>(V(),H(`div`,wp,[W(`label`,Tp,[K(N(e.label)+` `,1),e.required?(V(),H(`span`,Ep,`*`)):q(``,!0)]),W(`div`,Dp,[Kn(W(`input`,{"onUpdate:modelValue":r[0]||=e=>t.value=e,type:`color`,class:`control-color`},null,512),[[Ts,t.value]]),Kn(W(`input`,{"onUpdate:modelValue":r[1]||=e=>t.value=e,type:`text`,class:`control-color-text`,placeholder:`#000000`},null,512),[[Ts,t.value]])]),e.description?(V(),H(`span`,Op,N(e.description),1)):q(``,!0)]))}}),[[`__scopeId`,`data-v-1024bf18`]]),Ap=`modulepreload`,jp=function(e){return`/__musea__/`+e},Mp={};const Np=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=jp(t,n),t in Mp)return;Mp[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Ap,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};var Pp={class:`props-panel`},Fp={key:0,class:`props-loading`},Ip={key:1,class:`props-error`},Lp={key:0,class:`props-preview`},Rp={class:`props-preview-frame`},zp=[`src`],Bp={class:`props-grid`},Vp={key:0,class:`props-group-header`},Hp={class:`props-slot-editor`},Up={class:`props-usage`},Wp={class:`props-usage-header`},Gp={key:0,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,width:`12`,height:`12`},Kp={key:1,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,width:`12`,height:`12`},qp={class:`props-usage-code`},Jp={class:`props-json`},Yp={class:`props-json-code`},Xp={key:3,class:`props-empty`},Zp=X(R({__name:`PropsPanel`,props:{artPath:{},defaultVariantName:{}},setup(e){let t=Rr(()=>Np(()=>Promise.resolve().then(()=>tb),void 0)),n=e,{palette:r,loading:i,error:a,values:o,load:s,setValue:c,resetValues:l}=Jf(),u=I(null),d=I(!1),f=I(``),p=I(!1),m=J(()=>n.defaultVariantName?Du(n.artPath,n.defaultVariantName):``);$n(()=>n.artPath,e=>{e&&s(e),d.value=!1,f.value=``},{immediate:!0}),$n(o,e=>{let t=u.value;!t||!d.value||lf(t,`musea:set-props`,{props:e})},{deep:!0}),$n(f,e=>{let t=u.value;!t||!d.value||lf(t,`musea:set-slots`,{slots:{default:e}})});function h(){d.value=!0;let e=u.value;e&&Object.keys(o.value).length>0&&lf(e,`musea:set-props`,{props:o.value})}function g(){l(),f.value=``;let e=u.value;!e||!d.value||(lf(e,`musea:set-props`,{props:o.value}),lf(e,`musea:set-slots`,{slots:{default:``}}))}let _=J(()=>{if(!r.value)return``;let e=r.value.title||`Component`,t=Object.entries(o.value).filter(([,e])=>e!==void 0&&e!==``);if(t.length===0&&!f.value)return`<${e} />`;let n=t.map(([e,t])=>typeof t==`boolean`?t?` ${e}`:` :${e}="false"`:typeof t==`number`?` :${e}="${t}"`:` ${e}="${String(t)}"`).join(``);return f.value?`<${e}${n}>\n ${f.value}\n</${e}>`:`<${e}${n} />`});async function v(){try{await navigator.clipboard.writeText(_.value),p.value=!0,setTimeout(()=>{p.value=!1},2e3)}catch{}}function y(e){switch(e){case`text`:return $f;case`number`:return ip;case`boolean`:return lp;case`range`:return gp;case`select`:case`radio`:return Cp;case`color`:return kp;default:return $f}}return(e,n)=>(V(),H(`div`,Pp,[L(i)?(V(),H(`div`,Fp,[...n[1]||=[W(`div`,{class:`loading-spinner`},null,-1),K(` Loading props... `,-1)]])):L(a)?(V(),H(`div`,Ip,N(L(a)),1)):L(r)&&L(r).controls.length>0?(V(),H(B,{key:2},[m.value?(V(),H(`div`,Lp,[n[2]||=W(`div`,{class:`props-preview-header`},[W(`span`,{class:`props-preview-label`},`Live Preview`)],-1),W(`div`,Rp,[W(`iframe`,{ref_key:`iframeRef`,ref:u,src:m.value,onLoad:h},null,40,zp)])])):q(``,!0),W(`div`,{class:`props-header`},[n[3]||=W(`h3`,{class:`props-title`},`Props Controls`,-1),W(`button`,{class:`props-reset`,onClick:g},` Reset `)]),W(`div`,Bp,[(V(!0),H(B,null,z(L(r).groups,e=>(V(),H(B,{key:e},[e?(V(),H(`div`,Vp,N(e),1)):q(``,!0),(V(!0),H(B,null,z(L(r).controls.filter(t=>t.group===e),e=>(V(),U(oi(y(e.control)),{key:e.name,label:e.name,description:e.description,required:e.required,options:e.options,min:e.range?.min,max:e.range?.max,step:e.range?.step,"model-value":L(o)[e.name],"onUpdate:modelValue":t=>L(c)(e.name,t)},null,8,[`label`,`description`,`required`,`options`,`min`,`max`,`step`,`model-value`,`onUpdate:modelValue`]))),128))],64))),128)),(V(!0),H(B,null,z(L(r).controls.filter(e=>!e.group),e=>(V(),U(oi(y(e.control)),{key:e.name,label:e.name,description:e.description,required:e.required,options:e.options,min:e.range?.min,max:e.range?.max,step:e.range?.step,"model-value":L(o)[e.name],"onUpdate:modelValue":t=>L(c)(e.name,t)},null,8,[`label`,`description`,`required`,`options`,`min`,`max`,`step`,`model-value`,`onUpdate:modelValue`]))),128))]),W(`div`,Hp,[n[4]||=W(`div`,{class:`props-slot-header`},`Slot Content (HTML)`,-1),G(L(t),{modelValue:f.value,"onUpdate:modelValue":n[0]||=e=>f.value=e,language:`html`,height:`100px`},null,8,[`modelValue`])]),W(`div`,Up,[W(`div`,Wp,[n[7]||=W(`span`,null,`Usage`,-1),W(`button`,{class:`props-copy-btn`,onClick:v},[p.value?(V(),H(`svg`,Kp,[...n[6]||=[W(`polyline`,{points:`20 6 9 17 4 12`},null,-1)]])):(V(),H(`svg`,Gp,[...n[5]||=[W(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`},null,-1),W(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`},null,-1)]])),K(` `+N(p.value?`Copied!`:`Copy`),1)])]),W(`pre`,qp,N(_.value),1)]),W(`div`,Jp,[n[8]||=W(`div`,{class:`props-json-header`},`Current Values`,-1),W(`pre`,Yp,N(JSON.stringify(L(o),null,2)),1)])],64)):(V(),H(`div`,Xp,[...n[9]||=[W(`p`,null,`No props controls available for this component.`,-1),W(`p`,{class:`props-empty-hint`},[K(` Add a `),W(`code`,null,`component`),K(` attribute to the `),W(`code`,null,`<art>`),K(` block to enable props analysis. `)],-1)]]))]))}}),[[`__scopeId`,`data-v-5d3dde70`]]);function Qp(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var $p=Qp();function em(e){$p=e}var tm={exec:()=>null};function Q(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(rm.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var nm=(()=>{try{return!0}catch{return!1}})(),rm={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},im=/^(?:[ \t]*(?:\n|$))+/,am=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,om=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,sm=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,cm=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,lm=/(?:[*+-]|\d{1,9}[.)])/,um=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,dm=Q(um).replace(/bull/g,lm).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),fm=Q(um).replace(/bull/g,lm).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),pm=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,mm=/^[^\n]+/,hm=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gm=Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,hm).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_m=Q(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,lm).getRegex(),vm=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,ym=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,bm=Q(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,ym).replace(`tag`,vm).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xm=Q(pm).replace(`hr`,sm).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,vm).getRegex(),Sm={blockquote:Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,xm).getRegex(),code:am,def:gm,fences:om,heading:cm,hr:sm,html:bm,lheading:dm,list:_m,newline:im,paragraph:xm,table:tm,text:mm},Cm=Q(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,sm).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,vm).getRegex(),wm={...Sm,lheading:fm,table:Cm,paragraph:Q(pm).replace(`hr`,sm).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Cm).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,vm).getRegex()},Tm={...Sm,html:Q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,ym).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:tm,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Q(pm).replace(`hr`,sm).replace(`heading`,` *#{1,6} *[^
5
- ]`).replace(`lheading`,dm).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Em=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Dm=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Om=/^( {2,}|\\)\n(?!\s*$)/,km=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Am=/[\p{P}\p{S}]/u,jm=/[\s\p{P}\p{S}]/u,Mm=/[^\s\p{P}\p{S}]/u,Nm=Q(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,jm).getRegex(),Pm=/(?!~)[\p{P}\p{S}]/u,Fm=/(?!~)[\s\p{P}\p{S}]/u,Im=/(?:[^\s\p{P}\p{S}]|~)/u,Lm=Q(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,nm?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Rm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,zm=Q(Rm,`u`).replace(/punct/g,Am).getRegex(),Bm=Q(Rm,`u`).replace(/punct/g,Pm).getRegex(),Vm=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Hm=Q(Vm,`gu`).replace(/notPunctSpace/g,Mm).replace(/punctSpace/g,jm).replace(/punct/g,Am).getRegex(),Um=Q(Vm,`gu`).replace(/notPunctSpace/g,Im).replace(/punctSpace/g,Fm).replace(/punct/g,Pm).getRegex(),Wm=Q(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Mm).replace(/punctSpace/g,jm).replace(/punct/g,Am).getRegex(),Gm=Q(/\\(punct)/,`gu`).replace(/punct/g,Am).getRegex(),Km=Q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),qm=Q(ym).replace(`(?:-->|$)`,`-->`).getRegex(),Jm=Q(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,qm).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ym=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Xm=Q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,Ym).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Zm=Q(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Ym).replace(`ref`,hm).getRegex(),Qm=Q(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,hm).getRegex(),$m=Q(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Zm).replace(`nolink`,Qm).getRegex(),eh=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,th={_backpedal:tm,anyPunctuation:Gm,autolink:Km,blockSkip:Lm,br:Om,code:Dm,del:tm,emStrongLDelim:zm,emStrongRDelimAst:Hm,emStrongRDelimUnd:Wm,escape:Em,link:Xm,nolink:Qm,punctuation:Nm,reflink:Zm,reflinkSearch:$m,tag:Jm,text:km,url:tm},nh={...th,link:Q(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Ym).getRegex(),reflink:Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Ym).getRegex()},rh={...th,emStrongRDelimAst:Um,emStrongLDelim:Bm,url:Q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,eh).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Q(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,eh).getRegex()},ih={...rh,br:Q(Om).replace(`{2,}`,`*`).getRegex(),text:Q(rh.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},ah={normal:Sm,gfm:wm,pedantic:Tm},oh={normal:th,gfm:rh,breaks:ih,pedantic:nh},sh={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},ch=e=>sh[e];function lh(e,t){if(t){if(rm.escapeTest.test(e))return e.replace(rm.escapeReplace,ch)}else if(rm.escapeTestNoEncode.test(e))return e.replace(rm.escapeReplaceNoEncode,ch);return e}function uh(e){try{e=encodeURI(e).replace(rm.percentDecode,`%`)}catch{return null}return e}function dh(e,t){let n=e.replace(rm.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(rm.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(rm.slashPipe,`|`);return n}function fh(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function ph(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function mh(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function hh(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
6
- `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
7
- `)}var gh=class{options;rules;lexer;constructor(e){this.options=e||$p}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:fh(e,`
8
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=hh(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=fh(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:fh(t[0],`
9
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=fh(t[0],`
10
- `).split(`
11
- `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
12
- `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
13
- $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
14
- ${s}`:s,r=r?`${r}
15
- ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
16
- `+e.join(`
17
- `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
18
- `+e.join(`
19
- `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
20
- `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(`
21
- `,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.length)),l=e.split(`
22
- `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
23
- `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let f=e.split(`
24
- `,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
25
- `+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
26
- `+l}!u&&!l.trim()&&(u=!0),r+=f+`
27
- `,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,``),e.tokens[0]?.type===`text`||e.tokens[0]?.type===`paragraph`){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,``),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:`checkbox`,raw:t[0]+` `,checked:t[0]!==`[ ]`};e.checked=n.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:`paragraph`,raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=dh(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
28
- `):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(dh(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
29
- `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=fh(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=ph(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),mh(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return mh(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},_h=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||$p,this.options.tokenizer=this.options.tokenizer||new gh,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:rm,block:ah.normal,inline:oh.normal};this.options.pedantic?(t.block=ah.pedantic,t.inline=oh.pedantic):this.options.gfm&&(t.block=ah.gfm,this.options.breaks?t.inline=oh.breaks:t.inline=oh.gfm),this.tokenizer.rules=t}static get rules(){return{block:ah,inline:oh}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(rm.carriageReturn,`
30
- `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(rm.tabCharGlobal,` `).replace(rm.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
31
- `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
32
- `)?``:`
33
- `)+r.raw,n.text+=`
34
- `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
35
- `)?``:`
36
- `)+r.raw,n.text+=`
37
- `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(`
38
- `)?``:`
39
- `)+r.raw,a.text+=`
40
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
41
- `)?``:`
42
- `)+r.raw,n.text+=`
43
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},vh=class{options;parser;constructor(e){this.options=e||$p}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(rm.notSpaceStart)?.[0],i=e.replace(rm.endingNewline,``)+`
44
- `;return r?`<pre><code class="language-`+lh(r)+`">`+(n?i:lh(i,!0))+`</code></pre>
45
- `:`<pre><code>`+(n?i:lh(i,!0))+`</code></pre>
46
- `}blockquote({tokens:e}){return`<blockquote>
47
- ${this.parser.parse(e)}</blockquote>
48
- `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
49
- `}hr(e){return`<hr>
50
- `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
51
- `+r+`</`+i+`>
52
- `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
53
- `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
54
- `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
55
- <thead>
56
- `+t+`</thead>
57
- `+r+`</table>
58
- `}tablerow({text:e}){return`<tr>
59
- ${e}</tr>
60
- `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
61
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${lh(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=uh(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+lh(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=uh(e);if(i===null)return lh(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${lh(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:lh(e.text)}},yh=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},bh=class e{options;renderer;textRenderer;constructor(e){this.options=e||$p,this.options.renderer=this.options.renderer||new vh,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yh}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},xh=class{options;block;constructor(e){this.options=e||$p}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?_h.lex:_h.lexInline}provideParser(){return this.block?bh.parse:bh.parseInline}},Sh=class{defaults=Qp();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=bh;Renderer=vh;TextRenderer=yh;Lexer=_h;Tokenizer=gh;Hooks=xh;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new vh(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new gh(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new xh;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];xh.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&xh.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return _h.lex(e,t??this.defaults)}parser(e,t){return bh.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?_h.lex:_h.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?bh.parse:bh.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?_h.lex:_h.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?bh.parse:bh.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
62
- Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+lh(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Ch=new Sh;function $(e,t){return Ch.parse(e,t)}$.options=$.setOptions=function(e){return Ch.setOptions(e),$.defaults=Ch.defaults,em($.defaults),$},$.getDefaults=Qp,$.defaults=$p,$.use=function(...e){return Ch.use(...e),$.defaults=Ch.defaults,em($.defaults),$},$.walkTokens=function(e,t){return Ch.walkTokens(e,t)},$.parseInline=Ch.parseInline,$.Parser=bh,$.parser=bh.parse,$.Renderer=vh,$.TextRenderer=yh,$.Lexer=_h,$.lexer=_h.lex,$.Tokenizer=gh,$.Hooks=xh,$.parse=$,$.options,$.setOptions,$.use,$.walkTokens,$.parseInline,bh.parse,_h.lex;function wh(e){if(typeof e==`function`&&(e={highlight:e}),!e||typeof e.highlight!=`function`)throw Error(`Must provide highlight function`);return typeof e.langPrefix!=`string`&&(e.langPrefix=`language-`),typeof e.emptyLangClass!=`string`&&(e.emptyLangClass=``),{async:!!e.async,walkTokens(t){if(t.type!==`code`)return;let n=Th(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||``)).then(Eh(t));let r=e.highlight(t.text,n,t.lang||``);if(r instanceof Promise)throw Error(`markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.`);Eh(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t==`object`&&(r=t.escaped,n=t.lang,t=t.text);let i=Th(n),a=i?e.langPrefix+Nh(i):e.emptyLangClass,o=a?` class="${a}"`:``;return t=t.replace(/\n$/,``),`<pre><code${o}>${r?t:Nh(t,!0)}\n</code></pre>`}}}}function Th(e){return(e||``).match(/\S*/)[0]}function Eh(e){return t=>{typeof t==`string`&&t!==e.text&&(e.escaped=!0,e.text=t)}}var Dh=/[&<>"']/,Oh=new RegExp(Dh.source,`g`),kh=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ah=new RegExp(kh.source,`g`),jh={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Mh=e=>jh[e];function Nh(e,t){if(t){if(Dh.test(e))return e.replace(Oh,Mh)}else if(kh.test(e))return e.replace(Ah,Mh);return e}var Ph=`[A-Za-z$_][0-9A-Za-z$_]*`,Fh=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),Ih=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],Lh=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),Rh=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],zh=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],Bh=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],Vh=[].concat(zh,Lh,Rh);function Hh(e){let t=e.regex,n=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},r=Ph,i={begin:`<>`,end:`</>`},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`||i===`,`){t.ignoreMatch();return}i===`>`&&(n(e,{after:r})||t.ignoreMatch());let a,o=e.input.substring(r);if(a=o.match(/^\s*=/)){t.ignoreMatch();return}if((a=o.match(/^\s+extends\s+/))&&a.index===0){t.ignoreMatch();return}}},s={$pattern:Ph,keyword:Fh,literal:Ih,built_in:Vh,"variable.language":Bh},c=`[0-9](_?[0-9])*`,l=`\\.(${c})`,u=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,d={className:`number`,variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},f={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:s,contains:[]},p={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`xml`}},m={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`css`}},h={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`graphql`}},g={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},_={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:r+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:[`self`].concat(v)});let y=[].concat(_,f.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:[`self`].concat(y)}]),x={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,`(`,t.concat(/\./,r),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}}]},C={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...Lh,...Rh]}},ee={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},w={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[x],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function E(e){return t.concat(`(?!`,e.join(`|`),`)`)}let D={match:t.concat(/\b/,E([...zh,`super`,`import`].map(e=>`${e}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},te={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},O={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},x]},ne=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,k={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[x]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,_,{match:/\$\d+/},d,C,{scope:`attr`,match:r+t.lookahead(`:`),relevance:0},k,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[_,e.REGEXP_MODE,{className:`function`,begin:ne,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:`xml`,contains:[{begin:o.begin,end:o.end,skip:!0,contains:[`self`]}]}]},w,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:`title.function`})]},{match:/\.\.\./,relevance:0},te,{match:`\\$`+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[x]},D,T,S,O,{match:/\$[(.]/}]}}var Uh=`[A-Za-z$_][0-9A-Za-z$_]*`,Wh=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),Gh=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],Kh=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),qh=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Jh=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],Yh=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],Xh=[].concat(Jh,Kh,qh);function Zh(e){let t=e.regex,n=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},r=Uh,i={begin:`<>`,end:`</>`},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`||i===`,`){t.ignoreMatch();return}i===`>`&&(n(e,{after:r})||t.ignoreMatch());let a,o=e.input.substring(r);if(a=o.match(/^\s*=/)){t.ignoreMatch();return}if((a=o.match(/^\s+extends\s+/))&&a.index===0){t.ignoreMatch();return}}},s={$pattern:Uh,keyword:Wh,literal:Gh,built_in:Xh,"variable.language":Yh},c=`[0-9](_?[0-9])*`,l=`\\.(${c})`,u=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,d={className:`number`,variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},f={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:s,contains:[]},p={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`xml`}},m={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`css`}},h={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`graphql`}},g={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},_={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:r+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:[`self`].concat(v)});let y=[].concat(_,f.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:[`self`].concat(y)}]),x={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,`(`,t.concat(/\./,r),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}}]},C={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...Kh,...qh]}},ee={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},w={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[x],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function E(e){return t.concat(`(?!`,e.join(`|`),`)`)}let D={match:t.concat(/\b/,E([...Jh,`super`,`import`].map(e=>`${e}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},te={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},O={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},x]},ne=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,k={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[x]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,_,{match:/\$\d+/},d,C,{scope:`attr`,match:r+t.lookahead(`:`),relevance:0},k,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[_,e.REGEXP_MODE,{className:`function`,begin:ne,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:`xml`,contains:[{begin:o.begin,end:o.end,skip:!0,contains:[`self`]}]}]},w,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:`title.function`})]},{match:/\.\.\./,relevance:0},te,{match:`\\$`+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[x]},D,T,S,O,{match:/\$[(.]/}]}}function Qh(e){let t=e.regex,n=Zh(e),r=Uh,i=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},o={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},c={$pattern:Uh,keyword:Wh.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:Gh,built_in:Xh.concat(i),"variable.language":Yh},l={className:`meta`,begin:`@`+r},u=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(l);let d=n.contains.find(e=>e.scope===`attr`),f=Object.assign({},d,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,d,f]),n.contains=n.contains.concat([l,a,o,f]),u(n,`shebang`,e.SHEBANG()),u(n,`use_strict`,s);let p=n.contains.find(e=>e.label===`func.def`);return p.relevance=0,Object.assign(n,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),n}var $h=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),eg=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),tg=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),ng=[...eg,...tg],rg=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),ig=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),ag=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),og=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function sg(e){let t=e.regex,n=$h(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i=/@-?\w[\w]*(-\w+)*/,a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+ig.join(`|`)+`)`},{begin:`:(:)?(`+ag.join(`|`)+`)`}]},n.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+og.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...a,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:rg.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...a,n.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+ng.join(`|`)+`)\\b`}]}}function cg(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[n]}]};Object.assign(n,{className:`variable`,variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},r]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:`comment`}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:`string`})]}},s={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let c={match:/\\"/},l={className:`string`,begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,n]},f=e.SHEBANG({binary:`(${[`fish`,`bash`,`zsh`,`sh`,`csh`,`ksh`,`tcsh`,`dash`,`scsh`].join(`|`)})`,relevance:10}),p={className:`function`,begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=[`if`,`then`,`else`,`elif`,`fi`,`time`,`for`,`while`,`until`,`in`,`do`,`done`,`case`,`esac`,`coproc`,`function`,`select`],h=[`true`,`false`],g={match:/(\/[a-z._-]+)+/},_=[`break`,`cd`,`continue`,`eval`,`exec`,`exit`,`export`,`getopts`,`hash`,`pwd`,`readonly`,`return`,`shift`,`test`,`times`,`trap`,`umask`,`unset`],v=[`alias`,`bind`,`builtin`,`caller`,`command`,`declare`,`echo`,`enable`,`help`,`let`,`local`,`logout`,`mapfile`,`printf`,`read`,`readarray`,`source`,`sudo`,`type`,`typeset`,`ulimit`,`unalias`],y=`autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp`.split(`.`),b=`chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes`.split(`.`);return{name:`Bash`,aliases:[`sh`,`zsh`],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:h,built_in:[..._,...v,`set`,`shopt`,...y,...b]},contains:[f,e.SHEBANG(),p,d,a,o,g,s,c,l,u,n]}}var lg={class:`docs-panel`},ug={key:0,class:`docs-loading`},dg={key:1,class:`docs-error`},fg={key:2,class:`docs-content`},pg=[`innerHTML`],mg={key:3,class:`docs-empty`},hg=X(R({__name:`DocumentationPanel`,props:{artPath:{}},setup(e){wf.registerLanguage(`xml`,Tf),wf.registerLanguage(`html`,Tf),wf.registerLanguage(`vue`,Tf),wf.registerLanguage(`javascript`,Hh),wf.registerLanguage(`js`,Hh),wf.registerLanguage(`typescript`,Qh),wf.registerLanguage(`ts`,Qh),wf.registerLanguage(`css`,sg),wf.registerLanguage(`bash`,cg),wf.registerLanguage(`sh`,cg);let t=new Sh(wh({highlight(e,t){return t&&wf.getLanguage(t)?wf.highlight(e,{language:t}).value:e}})),n=e,r=I(``),i=I(!1),a=I(null),o=J(()=>r.value?t.parse(r.value):``);return $n(()=>n.artPath,async e=>{if(e){i.value=!0,a.value=null;try{r.value=(await Tu(e)).markdown}catch(e){a.value=e instanceof Error?e.message:String(e)}finally{i.value=!1}}},{immediate:!0}),(e,t)=>(V(),H(`div`,lg,[i.value?(V(),H(`div`,ug,[...t[0]||=[W(`div`,{class:`loading-spinner`},null,-1),K(` Loading documentation... `,-1)]])):a.value?(V(),H(`div`,dg,N(a.value),1)):r.value?(V(),H(`div`,fg,[W(`div`,{class:`docs-markdown`,innerHTML:o.value},null,8,pg)])):(V(),H(`div`,mg,[...t[1]||=[W(`p`,null,`No documentation available for this component.`,-1)]]))]))}}),[[`__scopeId`,`data-v-a842542f`]]),gg=[`title`],_g=X(R({__name:`A11yBadge`,props:{artPath:{},variantName:{}},setup(e){let t=e,n=I(null),r=I(`none`);return $n(()=>[t.artPath,t.variantName],async([e,t])=>{if(!e||!t){n.value=null;return}try{let i=await Eu(e,t);if(n.value=i.violations.length,i.violations.length>0){let e=i.violations.some(e=>e.impact===`critical`),t=i.violations.some(e=>e.impact===`serious`);r.value=e?`critical`:t?`serious`:`moderate`}else r.value=`none`}catch{n.value=null}},{immediate:!0}),(e,t)=>n.value!==null&&n.value>0?(V(),H(`span`,{key:0,class:M([`a11y-badge`,`severity-`+r.value]),title:`${n.value} accessibility violation${n.value===1?``:`s`}`},N(n.value),11,gg)):q(``,!0)}}),[[`__scopeId`,`data-v-ab1d0ae7`]]),vg=rn(new Map),yg=I(!1),bg=I(``);function xg(){function e(){uf(`musea:a11y-result`,e=>{if(bg.value){let t=new Map(vg.value);t.set(bg.value,e),vg.value=t}yg.value=!1})}function t(e,t){yg.value||(yg.value=!0,bg.value=t,lf(e,`musea:run-a11y`,{}))}function n(e){return vg.value.get(e)}function r(){vg.value=new Map}return{results:vg,isRunning:yg,init:e,runA11y:t,getResult:n,clearResults:r}}var Sg={class:`a11y-panel`},Cg=[`src`],wg={class:`a11y-header`},Tg=[`disabled`],Eg={key:1,class:`a11y-empty`},Dg={key:0,class:`a11y-error`},Og={key:0,class:`a11y-summary`},kg={class:`a11y-stat-value`},Ag={key:0,class:`a11y-stat critical`},jg={class:`a11y-stat-value`},Mg={key:1,class:`a11y-stat serious`},Ng={class:`a11y-stat-value`},Pg={key:2,class:`a11y-stat moderate`},Fg={class:`a11y-stat-value`},Ig={key:3,class:`a11y-stat minor`},Lg={class:`a11y-stat-value`},Rg={class:`a11y-stat passes`},zg={class:`a11y-stat-value`},Bg={key:1,class:`a11y-success`},Vg={key:2,class:`a11y-violations`},Hg=[`onClick`],Ug={class:`a11y-rule-id`},Wg={class:`a11y-node-count`},Gg={key:0,class:`a11y-violation-detail`},Kg={class:`a11y-description`},qg=[`href`],Jg={class:`a11y-nodes`},Yg={class:`a11y-node-html`},Xg={key:0,class:`a11y-node-summary`},Zg=X(R({__name:`A11yPanel`,props:{artPath:{},defaultVariantName:{}},setup(e){let t=e,{isRunning:n,init:r,runA11y:i,getResult:a}=xg(),o=I(null),s=I(!1),c=I(!1),l=I(null),u=J(()=>`${t.artPath}:${t.defaultVariantName||`default`}`),d=J(()=>a(u.value)),f=J(()=>t.defaultVariantName?Du(t.artPath,t.defaultVariantName):``);Jr(()=>{r()});function p(){s.value=!0}function m(){!o.value||!s.value||(c.value=!0,i(o.value,u.value))}function h(e){l.value=l.value===e?null:e}function g(e){switch(e){case`critical`:return`#f87171`;case`serious`:return`#fb923c`;case`moderate`:return`#fbbf24`;case`minor`:return`#60a5fa`;default:return`#7b8494`}}let _=J(()=>{if(!d.value)return null;let e=d.value.violations;return{total:e.length,critical:e.filter(e=>e.impact===`critical`).length,serious:e.filter(e=>e.impact===`serious`).length,moderate:e.filter(e=>e.impact===`moderate`).length,minor:e.filter(e=>e.impact===`minor`).length,passes:d.value.passes}});return(e,t)=>(V(),H(`div`,Sg,[f.value?(V(),H(`iframe`,{key:0,ref_key:`iframeRef`,ref:o,src:f.value,class:`a11y-iframe`,onLoad:p},null,40,Cg)):q(``,!0),W(`div`,wg,[t[0]||=W(`h3`,{class:`a11y-title`},`Accessibility Test`,-1),W(`button`,{class:`a11y-run-btn`,disabled:L(n)||!s.value,onClick:m},[L(n)?(V(),U(Z,{key:0,class:`spin`,path:L(uu),size:14},null,8,[`path`])):(V(),U(Z,{key:1,path:L(mu),size:14},null,8,[`path`])),K(` `+N(L(n)?`Running...`:`Run Test`),1)],8,Tg)]),c.value?d.value?(V(),H(B,{key:2},[d.value.error?(V(),H(`div`,Dg,N(d.value.error),1)):(V(),H(B,{key:1},[_.value?(V(),H(`div`,Og,[W(`div`,{class:M([`a11y-stat`,{"has-issues":_.value.total>0}])},[W(`span`,kg,N(_.value.total),1),t[2]||=W(`span`,{class:`a11y-stat-label`},`Violations`,-1)],2),_.value.critical>0?(V(),H(`div`,Ag,[W(`span`,jg,N(_.value.critical),1),t[3]||=W(`span`,{class:`a11y-stat-label`},`Critical`,-1)])):q(``,!0),_.value.serious>0?(V(),H(`div`,Mg,[W(`span`,Ng,N(_.value.serious),1),t[4]||=W(`span`,{class:`a11y-stat-label`},`Serious`,-1)])):q(``,!0),_.value.moderate>0?(V(),H(`div`,Pg,[W(`span`,Fg,N(_.value.moderate),1),t[5]||=W(`span`,{class:`a11y-stat-label`},`Moderate`,-1)])):q(``,!0),_.value.minor>0?(V(),H(`div`,Ig,[W(`span`,Lg,N(_.value.minor),1),t[6]||=W(`span`,{class:`a11y-stat-label`},`Minor`,-1)])):q(``,!0),W(`div`,Rg,[W(`span`,zg,N(_.value.passes),1),t[7]||=W(`span`,{class:`a11y-stat-label`},`Passes`,-1)])])):q(``,!0),d.value.violations.length===0?(V(),H(`div`,Bg,[G(Z,{path:L(Jl),size:24},null,8,[`path`]),t[8]||=W(`span`,null,`No accessibility violations found`,-1)])):(V(),H(`div`,Vg,[(V(!0),H(B,null,z(d.value.violations,e=>(V(),H(`div`,{key:e.id,class:M([`a11y-violation`,{expanded:l.value===e.id}])},[W(`div`,{class:`a11y-violation-header`,onClick:t=>h(e.id)},[W(`span`,{class:`a11y-impact`,style:ve({color:g(e.impact)})},N(e.impact),5),W(`span`,Ug,N(e.id),1),W(`span`,Wg,N(e.nodes.length)+` element(s)`,1),G(Z,{class:`a11y-expand-icon`,path:l.value===e.id?L(Ql):L(Xl),size:14},null,8,[`path`])],8,Hg),l.value===e.id?(V(),H(`div`,Gg,[W(`p`,Kg,N(e.description),1),W(`a`,{href:e.helpUrl,target:`_blank`,class:`a11y-help-link`},[t[9]||=K(` Learn more `,-1),G(Z,{path:L(fu),size:12},null,8,[`path`])],8,qg),W(`div`,Jg,[(V(!0),H(B,null,z(e.nodes,(e,t)=>(V(),H(`div`,{key:t,class:`a11y-node`},[W(`pre`,Yg,N(e.html),1),e.failureSummary?(V(),H(`p`,Xg,N(e.failureSummary),1)):q(``,!0)]))),128))])])):q(``,!0)],2))),128))]))],64))],64)):q(``,!0):(V(),H(`div`,Eg,[...t[1]||=[W(`p`,null,`Click "Run Test" to check accessibility with axe-core.`,-1),W(`p`,{class:`a11y-hint`},`Tests WCAG 2.0/2.1 AA criteria and best practices.`,-1)]]))]))}}),[[`__scopeId`,`data-v-bacceafb`]]),Qg={class:`vrt-panel`},$g={class:`vrt-header`},e_={class:`vrt-actions`},t_={class:`vrt-update-label`},n_=[`disabled`],r_={key:0,class:`vrt-empty`},i_={key:1,class:`vrt-error`},a_={key:0,class:`vrt-summary`},o_={class:`vrt-stat total`},s_={class:`vrt-stat-value`},c_={class:`vrt-stat passed`},l_={class:`vrt-stat-value`},u_={key:0,class:`vrt-stat failed`},d_={class:`vrt-stat-value`},f_={key:1,class:`vrt-stat new`},p_={class:`vrt-stat-value`},m_={class:`vrt-results`},h_={class:`vrt-variant-name`},g_={class:`vrt-viewports`},__={class:`vrt-viewport-name`},v_=X(R({__name:`VrtPanel`,props:{artPath:{},defaultVariantName:{}},setup(e){let t=e,n=I(!1),r=I(!1),i=I([]),a=I(null),o=I(null),s=I(!1),c=J(()=>{let e={};for(let t of i.value){let n=t.variantName;e[n]||(e[n]=[]),e[n].push(t)}return e});async function l(){n.value=!0,o.value=null;try{let e=await Fu(t.artPath,s.value);i.value=e.results,a.value=e.summary,r.value=!0}catch(e){o.value=e instanceof Error?e.message:String(e)}finally{n.value=!1}}function u(e){return e.error?`error`:e.isNew?`new`:e.passed?`pass`:`fail`}function d(e){return e.error?`#f87171`:e.isNew?`#60a5fa`:e.passed?`#4ade80`:`#f87171`}return(e,t)=>(V(),H(`div`,Qg,[W(`div`,$g,[t[2]||=W(`h3`,{class:`vrt-title`},`Visual Regression Testing`,-1),W(`div`,e_,[W(`label`,t_,[Kn(W(`input`,{"onUpdate:modelValue":t[0]||=e=>s.value=e,type:`checkbox`,class:`vrt-checkbox`},null,512),[[Es,s.value]]),t[1]||=K(` Update snapshots `,-1)]),W(`button`,{class:`vrt-run-btn`,disabled:n.value,onClick:l},[n.value?(V(),U(Z,{key:0,class:`spin`,path:L(uu),size:14},null,8,[`path`])):(V(),U(Z,{key:1,path:L(lu),size:14},null,8,[`path`])),K(` `+N(n.value?`Running...`:`Run VRT`),1)],8,n_)])]),r.value?o.value?(V(),H(`div`,i_,[W(`p`,null,N(o.value),1),t[4]||=W(`p`,{class:`vrt-hint`},[K(`Make sure Playwright is installed: `),W(`code`,null,`npm install playwright`)],-1)])):(V(),H(B,{key:2},[a.value?(V(),H(`div`,a_,[W(`div`,o_,[W(`span`,s_,N(a.value.total),1),t[5]||=W(`span`,{class:`vrt-stat-label`},`Total`,-1)]),W(`div`,c_,[W(`span`,l_,N(a.value.passed),1),t[6]||=W(`span`,{class:`vrt-stat-label`},`Passed`,-1)]),a.value.failed>0?(V(),H(`div`,u_,[W(`span`,d_,N(a.value.failed),1),t[7]||=W(`span`,{class:`vrt-stat-label`},`Failed`,-1)])):q(``,!0),a.value.new>0?(V(),H(`div`,f_,[W(`span`,p_,N(a.value.new),1),t[8]||=W(`span`,{class:`vrt-stat-label`},`New`,-1)])):q(``,!0)])):q(``,!0),W(`div`,m_,[(V(!0),H(B,null,z(c.value,(e,t)=>(V(),H(`div`,{key:t,class:`vrt-variant`},[W(`div`,h_,N(t),1),W(`div`,g_,[(V(!0),H(B,null,z(e,e=>(V(),H(`div`,{key:e.viewport,class:M([`vrt-viewport`,u(e)])},[W(`span`,__,N(e.viewport),1),W(`span`,{class:`vrt-status`,style:ve({color:d(e)})},[e.error?(V(),H(B,{key:0},[K(`Error`)],64)):e.isNew?(V(),H(B,{key:1},[K(`New`)],64)):e.passed?(V(),H(B,{key:2},[K(`Pass`)],64)):(V(),H(B,{key:3},[K(` Diff `+N(e.diffPercentage?.toFixed(2))+`% `,1)],64))],4)],2))),128))])]))),128))])],64)):(V(),H(`div`,r_,[...t[3]||=[W(`p`,null,`Click "Run VRT" to capture and compare screenshots.`,-1),W(`p`,{class:`vrt-hint`},`Requires Playwright to be installed.`,-1)]]))]))}}),[[`__scopeId`,`data-v-5bcffd97`]]),y_={class:`viewport-label`},b_={key:1,class:`viewport-dropdown`},x_=[`onClick`],S_={class:`viewport-option-name`},C_={key:0,class:`viewport-option-size`},w_=X(R({__name:`ViewportSelector`,setup(e){let{viewport:t,viewportRotated:n,setViewport:r,rotateViewport:i}=_f(),a=I(!1),o=I(null);function s(e){r(e),a.value=!1}function c(e){o.value&&!o.value.contains(e.target)&&(a.value=!1)}return Jr(()=>document.addEventListener(`click`,c)),Qr(()=>document.removeEventListener(`click`,c)),(e,r)=>(V(),H(`div`,{ref_key:`selectorRef`,ref:o,class:`viewport-selector`},[W(`button`,{class:M([`viewport-btn`,{active:L(t).width!==`100%`}]),onClick:r[0]||=e=>a.value=!a.value},[r[2]||=W(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,width:`14`,height:`14`},[W(`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,ry:`2`}),W(`line`,{x1:`8`,y1:`21`,x2:`16`,y2:`21`}),W(`line`,{x1:`12`,y1:`17`,x2:`12`,y2:`21`})],-1),W(`span`,y_,N(L(t).name),1)],2),L(t).width===`100%`?q(``,!0):(V(),H(`button`,{key:0,class:M([`rotate-btn`,{active:L(n)}]),title:`Rotate`,onClick:r[1]||=e=>L(i)()},[...r[3]||=[W(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,width:`14`,height:`14`},[W(`polyline`,{points:`1 4 1 10 7 10`}),W(`path`,{d:`M3.51 15a9 9 0 1 0 2.13-9.36L1 10`})],-1)]],2)),a.value?(V(),H(`div`,b_,[(V(!0),H(B,null,z(L(mf),e=>(V(),H(`button`,{key:e.name,class:M([`viewport-option`,{active:L(t).name===e.name}]),onClick:t=>s(e)},[W(`span`,S_,N(e.name),1),e.width===`100%`?q(``,!0):(V(),H(`span`,C_,N(e.width)+` x `+N(e.height),1))],10,x_))),128))])):q(``,!0)],512))}}),[[`__scopeId`,`data-v-d1b8965d`]]),T_={class:`bg-picker`},E_={class:`bg-presets`},D_=[`title`,`onClick`],O_={class:`bg-preset-label`},k_={class:`bg-custom`},A_=[`value`],j_=X(R({__name:`BackgroundPicker`,setup(e){let{background:t,setBackground:n,setCustomBackground:r}=_f(),i=I(`#ffffff`);function a(e){let t=e.target.value;i.value=t,r(t)}return(e,r)=>(V(),H(`div`,T_,[W(`div`,E_,[(V(!0),H(B,null,z(L(hf),e=>(V(),H(`button`,{key:e.name,class:M([`bg-preset-btn`,{active:L(t)?.name===e.name}]),title:e.name,onClick:r=>L(n)(L(t)?.name===e.name?null:e)},[W(`span`,{class:M([`bg-preset-swatch`,{checkerboard:e.pattern===`checkerboard`}]),style:ve(e.color===`transparent`?{}:{background:e.color})},null,6),W(`span`,O_,N(e.name),1)],10,D_))),128))]),W(`div`,k_,[W(`input`,{type:`color`,value:i.value,class:`bg-color-input`,title:`Custom color`,onInput:a},null,40,A_)])]))}}),[[`__scopeId`,`data-v-27100a99`]]),M_={class:`addon-toolbar`},N_={class:`toolbar-group`},P_={class:`toolbar-group`},F_={class:`toolbar-group`},I_=X(R({__name:`AddonToolbar`,setup(e){let{outlineEnabled:t,measureEnabled:n,toggleOutline:r,toggleMeasure:i}=_f();function a(e){e.altKey&&e.key===`o`&&(e.preventDefault(),r()),e.altKey&&e.key===`m`&&(e.preventDefault(),i())}return Jr(()=>document.addEventListener(`keydown`,a)),Qr(()=>document.removeEventListener(`keydown`,a)),(e,a)=>(V(),H(`div`,M_,[W(`div`,N_,[G(w_)]),a[6]||=W(`div`,{class:`toolbar-separator`},null,-1),W(`div`,P_,[G(j_)]),a[7]||=W(`div`,{class:`toolbar-separator`},null,-1),W(`div`,F_,[W(`button`,{class:M([`toolbar-toggle`,{active:L(t)}]),title:`Toggle Outline (Alt+O)`,onClick:a[0]||=e=>L(r)()},[G(Z,{path:L(gu),size:14},null,8,[`path`]),a[2]||=W(`span`,null,`Outline`,-1),a[3]||=W(`kbd`,{class:`toolbar-kbd`},`Alt+O`,-1)],2),W(`button`,{class:M([`toolbar-toggle`,{active:L(n)}]),title:`Toggle Measure (Alt+M)`,onClick:a[1]||=e=>L(i)()},[G(Z,{path:L(hu),size:14},null,8,[`path`]),a[4]||=W(`span`,null,`Measure`,-1),a[5]||=W(`kbd`,{class:`toolbar-kbd`},`Alt+M`,-1)],2)])]))}}),[[`__scopeId`,`data-v-dadf87cc`]]),L_={class:`actions-panel`},R_={class:`actions-header`},z_={class:`actions-count`},B_={key:0,class:`actions-empty`},V_={key:1,class:`actions-list`},H_=[`onClick`],U_={class:`action-row`},W_={class:`action-time`},G_={key:0,class:`action-target`},K_={key:0,class:`action-detail`},q_={class:`action-raw`},J_=X(R({__name:`ActionsPanel`,setup(e){let{events:t,clear:n}=pf(),r=I(null),i=J(()=>[...t.value].reverse());function a(e){r.value=r.value===e?null:e}function o(e){return new Date(e).toLocaleTimeString(`en`,{hour12:!1,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,fractionalSecondDigits:3})}function s(e){return e.rawEvent?JSON.stringify(e.rawEvent,null,2):JSON.stringify({target:e.target,value:e.value},null,2)}return(e,c)=>(V(),H(`div`,L_,[W(`div`,R_,[W(`span`,z_,N(L(t).length)+` event`+N(L(t).length===1?``:`s`),1),L(t).length>0?(V(),H(`button`,{key:0,class:`actions-clear-btn`,onClick:c[0]||=e=>L(n)()},` Clear `)):q(``,!0)]),L(t).length===0?(V(),H(`div`,B_,[...c[1]||=[W(`p`,null,`No events captured yet.`,-1),W(`p`,{class:`actions-hint`},`Interact with the component to see events here.`,-1)]])):(V(),H(`div`,V_,[(V(!0),H(B,null,z(i.value,(e,t)=>(V(),H(`div`,{key:t,class:M([`action-item`,{expanded:r.value===t}]),onClick:e=>a(t)},[W(`div`,U_,[W(`span`,W_,N(o(e.timestamp)),1),W(`span`,{class:M([`action-type`,e.source])},N(e.name),3),e.target?(V(),H(`span`,G_,N(e.target),1)):q(``,!0),G(Z,{class:`action-expand-icon`,path:r.value===t?L(Ql):L(Xl),size:12},null,8,[`path`])]),r.value===t?(V(),H(`div`,K_,[W(`pre`,q_,N(s(e)),1)])):q(``,!0)],10,H_))),128))]))]))}}),[[`__scopeId`,`data-v-7e34cd07`]]),Y_={class:`fullscreen-container`},X_={class:`fullscreen-header`},Z_={class:`fullscreen-title`},Q_={class:`fullscreen-actions`},$_=[`src`,`title`],ev=globalThis.window,tv=X(R({__name:`FullscreenPreview`,setup(e){let{fullscreenVariant:t,closeFullscreen:n}=_f(),r=J(()=>t.value?Du(t.value.artPath,t.value.variantName):``);function i(e){e.key===`Escape`&&n()}return Jr(()=>document.addEventListener(`keydown`,i)),Qr(()=>document.removeEventListener(`keydown`,i)),(e,i)=>(V(),U(pr,{to:`body`},[L(t)?(V(),H(`div`,{key:0,class:`fullscreen-overlay`,onClick:i[2]||=Fs(e=>L(n)(),[`self`])},[W(`div`,Y_,[W(`div`,X_,[W(`span`,Z_,N(L(t).variantName),1),W(`div`,Q_,[W(`button`,{class:`fullscreen-action-btn`,title:`Open in new tab`,onClick:i[0]||=e=>L(ev).open(r.value,`_blank`)},[G(Z,{path:L(fu),size:16},null,8,[`path`])]),W(`button`,{class:`fullscreen-close-btn`,title:`Close (Esc)`,onClick:i[1]||=e=>L(n)()},[G(Z,{path:L(eu),size:18},null,8,[`path`])])])]),W(`iframe`,{class:`fullscreen-iframe`,src:r.value,title:L(t).variantName},null,8,$_)])])):q(``,!0)]))}}),[[`__scopeId`,`data-v-2ad274e8`]]),nv={key:0,class:`component-view`},rv={class:`component-header`},iv={class:`component-title-row`},av={class:`component-title`},ov={key:0,class:`component-description`},sv={class:`component-meta`},cv={class:`meta-tag`},lv={key:0,class:`meta-tag`},uv={class:`component-tabs`},dv={class:`component-content`},fv={key:0,class:`variants-view`},pv={class:`variant-preview-area`},mv={key:0,class:`actions-footer-content`},hv={key:0,class:`action-count-badge`},gv={key:1,class:`component-not-found`},_v=X(R({__name:`ComponentView`,setup(e){let t=Kl(),{getArt:n,load:r}=Bu(),{events:i,init:a,clear:o,setCurrentVariant:s}=pf(),{gridDensity:c}=_f(),{setCurrentVariant:l}=Cf(),u=I(`variants`),d=J(()=>i.value.length),f=I(!1),p=I(``);J(()=>`gallery-grid density-${c.value}`);let m=J(()=>t.params.path),h=J(()=>n(m.value)),g=J(()=>h.value?h.value.variants.find(e=>e.name===p.value)||h.value.variants[0]:null);$n(h,e=>{e&&(p.value=(e.variants.find(e=>e.isDefault)||e.variants[0])?.name||``,l(p.value),s(p.value))},{immediate:!0}),$n(p,e=>{l(e),s(e)}),Jr(()=>{r(),a()}),$n(m,()=>{u.value=`variants`,o()});let _=e=>{p.value=e};return(e,t)=>{let n=ii(`router-link`);return h.value?(V(),H(`div`,nv,[W(`div`,rv,[W(`div`,iv,[W(`h1`,av,N(h.value.metadata.title),1),G(Vd,{status:h.value.metadata.status},null,8,[`status`])]),h.value.metadata.description?(V(),H(`p`,ov,N(h.value.metadata.description),1)):q(``,!0),W(`div`,sv,[W(`span`,cv,[G(Z,{path:L(vu),size:12},null,8,[`path`]),K(` `+N(h.value.variants.length)+` variant`+N(h.value.variants.length===1?``:`s`),1)]),h.value.metadata.category?(V(),H(`span`,lv,[G(Z,{path:L(au),size:12},null,8,[`path`]),K(` `+N(h.value.metadata.category),1)])):q(``,!0),(V(!0),H(B,null,z(h.value.metadata.tags,e=>(V(),H(`span`,{key:e,class:`meta-tag`},` #`+N(e),1))),128))])]),G(I_),W(`div`,uv,[W(`button`,{class:M([`tab-btn`,{active:u.value===`variants`}]),onClick:t[0]||=e=>u.value=`variants`},` Variants `,2),W(`button`,{class:M([`tab-btn`,{active:u.value===`props`}]),onClick:t[1]||=e=>u.value=`props`},` Props `,2),W(`button`,{class:M([`tab-btn`,{active:u.value===`docs`}]),onClick:t[2]||=e=>u.value=`docs`},` Docs `,2),W(`button`,{class:M([`tab-btn`,{active:u.value===`a11y`}]),onClick:t[3]||=e=>u.value=`a11y`},[t[6]||=K(` A11y `,-1),G(_g,{"art-path":h.value.path},null,8,[`art-path`])],2),W(`button`,{class:M([`tab-btn`,{active:u.value===`vrt`}]),onClick:t[4]||=e=>u.value=`vrt`},` VRT `,2)]),W(`div`,dv,[u.value===`variants`?(V(),H(`div`,fv,[G(qf,{variants:h.value.variants,"selected-variant":p.value,onSelect:_},null,8,[`variants`,`selected-variant`]),W(`div`,pv,[g.value?(V(),U(Hf,{key:g.value.name,"art-path":h.value.path,variant:g.value,"component-name":h.value.metadata.title},null,8,[`art-path`,`variant`,`component-name`])):q(``,!0)])])):q(``,!0),u.value===`props`?(V(),U(Zp,{key:1,"art-path":h.value.path,"default-variant-name":h.value.variants.find(e=>e.isDefault)?.name||h.value.variants[0]?.name},null,8,[`art-path`,`default-variant-name`])):q(``,!0),u.value===`docs`?(V(),U(hg,{key:2,"art-path":h.value.path},null,8,[`art-path`])):q(``,!0),u.value===`a11y`?(V(),U(Zg,{key:3,"art-path":h.value.path,"default-variant-name":g.value?.name},null,8,[`art-path`,`default-variant-name`])):q(``,!0),u.value===`vrt`?(V(),U(v_,{key:4,"art-path":h.value.path,"default-variant-name":g.value?.name},null,8,[`art-path`,`default-variant-name`])):q(``,!0)]),W(`div`,{class:M([`actions-footer`,{expanded:f.value}])},[f.value?(V(),H(`div`,mv,[G(J_)])):q(``,!0),W(`button`,{class:`actions-footer-toggle`,onClick:t[5]||=e=>f.value=!f.value},[G(Z,{path:f.value?L(Xl):L(Ql),size:14},null,8,[`path`]),t[7]||=K(` Actions `,-1),d.value>0?(V(),H(`span`,hv,N(d.value>99?`99+`:d.value),1)):q(``,!0)])],2),G(tv)])):(V(),H(`div`,gv,[t[9]||=W(`h2`,null,`Component not found`,-1),t[10]||=W(`p`,null,`The requested component could not be found.`,-1),G(n,{to:`/`,class:`back-link`},{default:Gn(()=>[...t[8]||=[K(`Back to home`,-1)]]),_:1})]))}}}),[[`__scopeId`,`data-v-8aedd8cf`]]),vv=I([]),yv=I({}),bv=I({filePath:``,tokenCount:0,primitiveCount:0,semanticCount:0}),xv=I(!1),Sv=I(null),Cv=I(`all`),wv=I(``),Tv=!1;function Ev(e,t){let n={};for(let[r,i]of Object.entries(e.tokens))i.$tier===t&&(n[r]=i);let r=(e.subcategories??[]).map(e=>Ev(e,t)).filter(e=>e!==null);return Object.keys(n).length>0||r.length>0?{name:e.name,tokens:n,subcategories:r.length>0?r:void 0}:null}function Dv(e,t){let n={};for(let[r,i]of Object.entries(e.tokens))(r.toLowerCase().includes(t)||String(i.value).toLowerCase().includes(t)||(i.description??``).toLowerCase().includes(t)||(i.$reference??``).toLowerCase().includes(t))&&(n[r]=i);let r=(e.subcategories??[]).map(e=>Dv(e,t)).filter(e=>e!==null);return Object.keys(n).length>0||r.length>0?{name:e.name,tokens:n,subcategories:r.length>0?r:void 0}:null}function Ov(){let e=J(()=>{let e=vv.value;if(Cv.value!==`all`&&(e=e.map(e=>Ev(e,Cv.value)).filter(e=>e!==null)),wv.value){let t=wv.value.toLowerCase();e=e.map(e=>Dv(e,t)).filter(e=>e!==null)}return e}),t=J(()=>Object.entries(yv.value).filter(([,e])=>e.$tier===`primitive`).map(([e])=>e));async function n(){if(!Tv){xv.value=!0,Sv.value=null;try{let e=await Ou();vv.value=e.categories,yv.value=e.tokenMap,bv.value=e.meta,Tv=!0}catch(e){Sv.value=e instanceof Error?e.message:String(e)}finally{xv.value=!1}}}async function r(){Tv=!1,await n()}async function i(e,t){let n=await ku(e,t);vv.value=n.categories,yv.value=n.tokenMap}async function a(e,t){let n=await Au(e,t);vv.value=n.categories,yv.value=n.tokenMap}async function o(e){let t=await ju(e);return vv.value=t.categories,yv.value=t.tokenMap,t.dependentsWarning}function s(e){return yv.value[e]?.$resolvedValue??yv.value[e]?.value}return{categories:vv,tokenMap:yv,meta:bv,loading:xv,error:Sv,activeTab:Cv,filter:wv,filteredCategories:e,primitiveTokenPaths:t,load:n,reload:r,addToken:i,editToken:a,removeToken:o,resolveReference:s}}var kv=I({}),Av=I(!1),jv=I(null),Mv=!1;function Nv(){async function e(){if(!Mv){Av.value=!0,jv.value=null;try{kv.value=await Mu(),Mv=!0}catch(e){jv.value=e instanceof Error?e.message:String(e)}finally{Av.value=!1}}}async function t(){Mv=!1,await e()}function n(e){return kv.value[e]??[]}function r(e){let t=kv.value[e];return t?t.reduce((e,t)=>e+t.matches.length,0):0}return{usageMap:kv,loading:Av,error:jv,load:e,reload:t,getUsage:n,getUsageCount:r}}var Pv={class:`spacing-preview`},Fv={class:`spacing-label`},Iv=X(R({__name:`SpacingPreview`,props:{value:{}},setup(e){let t=e,n=J(()=>{if(typeof t.value==`number`)return t.value;let e=parseFloat(t.value);return isNaN(e)?0:e}),r=J(()=>typeof t.value==`number`?`${t.value}px`:String(t.value)),i=J(()=>{let e=n.value;return Math.min(Math.max(e,2),200)});return(e,t)=>(V(),H(`div`,Pv,[W(`div`,{class:`spacing-bar`,style:ve({width:i.value+`px`})},null,4),W(`span`,Fv,N(r.value),1)]))}}),[[`__scopeId`,`data-v-2e084c4e`]]),Lv={class:`typography-preview`},Rv=X(R({__name:`TypographyPreview`,props:{value:{},tokenType:{}},setup(e){let t=e,n=J(()=>{let e=String(t.value);switch(t.tokenType){case`fontSize`:return{fontSize:e.includes(`px`)||e.includes(`rem`)||e.includes(`em`)?e:e+`px`};case`fontWeight`:return{fontWeight:e};case`lineHeight`:return{lineHeight:e};default:return{}}}),r=J(()=>t.tokenType===`lineHeight`);return(e,t)=>(V(),H(`div`,Lv,[r.value?(V(),H(`div`,{key:0,class:`typography-sample`,style:ve(n.value)},[...t[0]||=[K(` Aa`,-1),W(`br`,null,null,-1),K(`Bb `,-1)]],4)):(V(),H(`div`,{key:1,class:`typography-sample`,style:ve(n.value)},` Aa `,4))]))}}),[[`__scopeId`,`data-v-5d671689`]]),zv={key:1,class:`preview-compact`},Bv={key:6,class:`generic-preview`},Vv={class:`token-body`},Hv={class:`token-header`},Uv=[`title`],Wv=[`title`],Gv={key:0,class:`token-reference`},Kv={key:0,class:`ref-resolved`},qv={key:1,class:`token-desc`},Jv={class:`token-footer`},Yv=[`title`],Xv={key:0,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},Zv={key:1,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},Qv={key:1,class:`footer-spacer`},$v={class:`token-actions`},ey=X(R({__name:`TokenCard`,props:{name:{},token:{},categoryPath:{},usageCount:{default:0}},emits:[`edit`,`delete`,`showUsage`],setup(e,{emit:t}){let n=e,r=t,i=J(()=>n.token.type===`color`?!0:typeof n.token.value==`string`?n.token.value.startsWith(`#`)||n.token.value.startsWith(`rgb`)||n.token.value.startsWith(`hsl`):!1),a=J(()=>n.token.$tier===`semantic`&&n.token.$resolvedValue!==void 0?n.token.$resolvedValue:n.token.value),o=J(()=>{if(i.value)return`color`;let e=n.categoryPath?.toLowerCase()??``,t=n.token.type?.toLowerCase()??``,r=n.name.toLowerCase();if(t===`dimension`||t===`spacing`){if(e.includes(`spacing`)||r.includes(`spacing`)||r.includes(`gap`)||r.includes(`padding`)||r.includes(`margin`))return`spacing`;if(e.includes(`font-size`)||e.includes(`fontsize`)||r.includes(`font-size`)||r.includes(`fontsize`))return`fontSize`;if(e.includes(`border-radius`)||e.includes(`borderradius`)||r.includes(`radius`))return`borderRadius`}return t===`fontweight`||r.includes(`font-weight`)||r.includes(`fontweight`)||r.includes(`weight`)?`fontWeight`:t===`lineheight`||r.includes(`line-height`)||r.includes(`lineheight`)?`lineHeight`:t===`shadow`||r.includes(`shadow`)?`shadow`:`generic`}),s=J(()=>n.token.$tier===`semantic`?`Semantic`:n.token.$tier===`primitive`?`Primitive`:null);return(t,n)=>(V(),H(`div`,{class:M([`token-card`,{"token-card--semantic":e.token.$tier===`semantic`}])},[W(`div`,{class:M([`token-preview`,{"token-preview--color":o.value===`color`}])},[o.value===`color`?(V(),H(`div`,{key:0,class:`color-swatch`,style:ve({background:String(a.value)})},null,4)):(V(),H(`div`,zv,[o.value===`spacing`?(V(),U(Iv,{key:0,value:a.value},null,8,[`value`])):o.value===`fontSize`?(V(),U(Rv,{key:1,value:a.value,"token-type":`fontSize`},null,8,[`value`])):o.value===`fontWeight`?(V(),U(Rv,{key:2,value:a.value,"token-type":`fontWeight`},null,8,[`value`])):o.value===`lineHeight`?(V(),U(Rv,{key:3,value:a.value,"token-type":`lineHeight`},null,8,[`value`])):o.value===`shadow`?(V(),H(`div`,{key:4,class:`shadow-swatch`,style:ve({boxShadow:String(a.value)})},null,4)):o.value===`borderRadius`?(V(),H(`div`,{key:5,class:`radius-swatch`,style:ve({borderRadius:String(a.value)})},null,4)):(V(),H(`div`,Bv,[...n[3]||=[W(`span`,{class:`generic-value-icon`},`T`,-1)]]))]))],2),W(`div`,Vv,[W(`div`,Hv,[W(`span`,{class:`token-name`,title:e.name},N(e.name),9,Uv),s.value?(V(),H(`span`,{key:0,class:M([`tier-badge`,`tier-badge--`+e.token.$tier])},N(s.value),3)):q(``,!0)]),W(`div`,{class:`token-value`,title:String(e.token.value)},N(e.token.value),9,Wv),e.token.$tier===`semantic`&&e.token.$reference?(V(),H(`div`,Gv,[n[4]||=W(`span`,{class:`ref-arrow`},`→`,-1),K(` `+N(e.token.$reference)+` `,1),e.token.$resolvedValue===void 0?q(``,!0):(V(),H(`span`,Kv,` (`+N(e.token.$resolvedValue)+`) `,1))])):q(``,!0),e.token.description?(V(),H(`div`,qv,N(e.token.description),1)):q(``,!0)]),W(`div`,Jv,[e.usageCount>0?(V(),H(`button`,{key:0,class:M([`usage-badge`,{"usage-badge--warn":e.token.$tier===`primitive`}]),title:e.token.$tier===`primitive`?`Primitive token used directly — consider using a semantic token`:`View component usage`,onClick:n[0]||=Fs(e=>r(`showUsage`),[`stop`])},[e.token.$tier===`primitive`?(V(),H(`svg`,Xv,[...n[5]||=[W(`path`,{d:`M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z`},null,-1),W(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`},null,-1),W(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`},null,-1)]])):(V(),H(`svg`,Zv,[...n[6]||=[W(`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`},null,-1),W(`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`},null,-1)]])),K(` `+N(e.usageCount),1)],10,Yv)):(V(),H(`span`,Qv)),W(`div`,$v,[W(`button`,{class:`action-btn`,title:`Edit`,onClick:n[1]||=Fs(e=>r(`edit`),[`stop`])},[...n[7]||=[W(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[W(`path`,{d:`M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}),W(`path`,{d:`M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z`})],-1)]]),W(`button`,{class:`action-btn action-btn--danger`,title:`Delete`,onClick:n[2]||=Fs(e=>r(`delete`),[`stop`])},[...n[8]||=[W(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[W(`polyline`,{points:`3 6 5 6 21 6`}),W(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`})],-1)]])])])],2))}}),[[`__scopeId`,`data-v-c0f49d9c`]]),ty={key:0,class:`tokens-grid`},ny=X(R({...R({name:`TokenCategorySection`}),props:{category:{},level:{},parentPath:{},usageMap:{default:()=>({})}},emits:[`edit`,`delete`,`showUsage`],setup(e,{emit:t}){let n=e,r=t,i=Math.min(n.level??2,6);function a(){let e=n.category.name.toLowerCase().replace(/\s+/g,`-`);return n.parentPath?`${n.parentPath}.${e}`:e}function o(e){return`${a()}.${e}`}function s(e){let t=o(e),r=n.usageMap[t];return r?r.reduce((e,t)=>e+t.matches.length,0):0}return(t,n)=>{let c=ii(`TokenCategorySection`,!0);return V(),H(`div`,{class:M([`token-category`,{"token-subcategory":e.level&&e.level>2}])},[(V(),U(oi(`h`+L(i)),{class:M([`category-title`,`category-title--h`+L(i)])},{default:Gn(()=>[K(N(e.category.name),1)]),_:1},8,[`class`])),Object.keys(e.category.tokens).length>0?(V(),H(`div`,ty,[(V(!0),H(B,null,z(e.category.tokens,(e,t)=>(V(),U(ey,{key:t,name:String(t),token:e,"category-path":a(),"usage-count":s(String(t)),onEdit:n=>r(`edit`,o(String(t)),e),onDelete:n=>r(`delete`,o(String(t)),e),onShowUsage:e=>r(`showUsage`,o(String(t)))},null,8,[`name`,`token`,`category-path`,`usage-count`,`onEdit`,`onDelete`,`onShowUsage`]))),128))])):q(``,!0),e.category.subcategories?(V(!0),H(B,{key:1},z(e.category.subcategories,t=>(V(),U(c,{key:t.name,category:t,level:(e.level??2)+1,"parent-path":a(),"usage-map":e.usageMap,onEdit:n[0]||=(e,t)=>r(`edit`,e,t),onDelete:n[1]||=(e,t)=>r(`delete`,e,t),onShowUsage:n[2]||=e=>r(`showUsage`,e)},null,8,[`category`,`level`,`parent-path`,`usage-map`]))),128)):q(``,!0)],2)}}}),[[`__scopeId`,`data-v-252a75d6`]]),ry={class:`modal-content`},iy={class:`modal-header`},ay={class:`modal-title`},oy={class:`form-field`},sy=[`disabled`],cy={class:`form-field`},ly={class:`tier-radio-group`},uy={key:0,class:`form-field`},dy={key:1,class:`form-field`},fy={key:0,class:`reference-list`},py=[`onClick`],my={class:`form-field`},hy=[`value`],gy={class:`form-field`},_y={key:2,class:`form-error`},vy={class:`modal-footer`},yy={type:`submit`,class:`btn btn--primary`},by=X(R({__name:`TokenFormModal`,props:{isOpen:{type:Boolean},mode:{},editPath:{},editToken:{},primitiveTokenPaths:{},existingPaths:{}},emits:[`close`,`submit`],setup(e,{emit:t}){let n=e,r=t,i=I(``),a=I(``),o=I(``),s=I(``),c=I(`primitive`),l=I(``),u=I(null),d=[`color`,`dimension`,`spacing`,`fontSize`,`fontWeight`,`lineHeight`,`shadow`,`borderRadius`,`opacity`,`string`,`number`];$n(()=>n.isOpen,e=>{e&&(n.mode===`edit`&&n.editToken&&n.editPath?(i.value=n.editPath,a.value=String(n.editToken.value),o.value=n.editToken.type??``,s.value=n.editToken.description??``,c.value=n.editToken.$tier??`primitive`,l.value=n.editToken.$reference??``):(i.value=``,a.value=``,o.value=``,s.value=``,c.value=`primitive`,l.value=``),u.value=null,Nn(()=>{document.querySelector(`.token-form-path-input`)?.focus()}))});let f=J(()=>{if(!l.value)return n.primitiveTokenPaths;let e=l.value.toLowerCase();return n.primitiveTokenPaths.filter(t=>t.toLowerCase().includes(e))}),p=J(()=>n.mode===`create`?`Add Token`:`Edit Token`);function m(){return i.value.trim()?n.mode===`create`&&n.existingPaths.includes(i.value)?(u.value=`A token already exists at this path`,!1):c.value===`semantic`&&!l.value.trim()?(u.value=`Semantic tokens require a reference`,!1):c.value===`primitive`&&!a.value.trim()?(u.value=`Token value is required`,!1):(u.value=null,!0):(u.value=`Token path is required`,!1)}function h(){if(!m())return;let e={value:c.value===`semantic`?`{${l.value}}`:a.value,$tier:c.value};o.value&&(e.type=o.value),s.value&&(e.description=s.value),c.value===`semantic`&&(e.$reference=l.value),r(`submit`,i.value,e)}function g(e){l.value=e}return(t,n)=>(V(),U(pr,{to:`body`},[G(ko,{name:`modal`},{default:Gn(()=>[e.isOpen?(V(),H(`div`,{key:0,class:`modal-overlay`,onClick:n[9]||=Fs(e=>r(`close`),[`self`])},[W(`div`,ry,[W(`div`,iy,[W(`h2`,ay,N(p.value),1),W(`button`,{class:`modal-close`,onClick:n[0]||=e=>r(`close`)},[...n[10]||=[W(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[W(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),W(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]])]),W(`form`,{class:`modal-form`,onSubmit:Fs(h,[`prevent`])},[W(`div`,oy,[n[11]||=W(`label`,{class:`form-label`},`Token Path`,-1),Kn(W(`input`,{"onUpdate:modelValue":n[1]||=e=>i.value=e,class:`form-input token-form-path-input`,disabled:e.mode===`edit`,placeholder:`e.g. color.primary.500`},null,8,sy),[[Ts,i.value]])]),W(`div`,cy,[n[14]||=W(`label`,{class:`form-label`},`Tier`,-1),W(`div`,ly,[W(`label`,{class:M([`tier-radio`,{"tier-radio--active":c.value===`primitive`}])},[Kn(W(`input`,{"onUpdate:modelValue":n[2]||=e=>c.value=e,type:`radio`,value:`primitive`,class:`tier-radio-input`},null,512),[[Os,c.value]]),n[12]||=W(`span`,{class:`tier-radio-label`},`Primitive`,-1)],2),W(`label`,{class:M([`tier-radio`,{"tier-radio--active":c.value===`semantic`}])},[Kn(W(`input`,{"onUpdate:modelValue":n[3]||=e=>c.value=e,type:`radio`,value:`semantic`,class:`tier-radio-input`},null,512),[[Os,c.value]]),n[13]||=W(`span`,{class:`tier-radio-label`},`Semantic`,-1)],2)])]),c.value===`primitive`?(V(),H(`div`,uy,[n[15]||=W(`label`,{class:`form-label`},`Value`,-1),Kn(W(`input`,{"onUpdate:modelValue":n[4]||=e=>a.value=e,class:`form-input`,placeholder:`e.g. #3b82f6, 16px, 400`},null,512),[[Ts,a.value]])])):(V(),H(`div`,dy,[n[16]||=W(`label`,{class:`form-label`},`Reference`,-1),Kn(W(`input`,{"onUpdate:modelValue":n[5]||=e=>l.value=e,class:`form-input`,placeholder:`e.g. color.blue.500`},null,512),[[Ts,l.value]]),f.value.length>0?(V(),H(`div`,fy,[(V(!0),H(B,null,z(f.value.slice(0,8),e=>(V(),H(`button`,{key:e,type:`button`,class:M([`reference-option`,{"reference-option--selected":e===l.value}]),onClick:t=>g(e)},N(e),11,py))),128))])):q(``,!0)])),W(`div`,my,[n[18]||=W(`label`,{class:`form-label`},`Type`,-1),Kn(W(`select`,{"onUpdate:modelValue":n[6]||=e=>o.value=e,class:`form-input form-select`},[n[17]||=W(`option`,{value:``},`None`,-1),(V(),H(B,null,z(d,e=>W(`option`,{key:e,value:e},N(e),9,hy)),64))],512),[[ks,o.value]])]),W(`div`,gy,[n[19]||=W(`label`,{class:`form-label`},`Description`,-1),Kn(W(`input`,{"onUpdate:modelValue":n[7]||=e=>s.value=e,class:`form-input`,placeholder:`Optional description`},null,512),[[Ts,s.value]])]),u.value?(V(),H(`div`,_y,N(u.value),1)):q(``,!0),W(`div`,vy,[W(`button`,{type:`button`,class:`btn btn--secondary`,onClick:n[8]||=e=>r(`close`)},`Cancel`),W(`button`,yy,N(e.mode===`create`?`Create`:`Save`),1)])],32)])])):q(``,!0)]),_:1})]))}}),[[`__scopeId`,`data-v-6e06541e`]]),xy={class:`modal-content`},Sy={class:`delete-message`},Cy={class:`token-path`},wy={key:0,class:`dependents-warning`},Ty={class:`dependents-list`},Ey={class:`modal-footer`},Dy=X(R({__name:`TokenDeleteConfirm`,props:{isOpen:{type:Boolean},tokenPath:{},token:{},dependents:{}},emits:[`close`,`confirm`],setup(e,{emit:t}){let n=e,r=t,i=I(!1);return $n(()=>n.isOpen,e=>{e&&(i.value=!1)}),(t,n)=>(V(),U(pr,{to:`body`},[G(ko,{name:`modal`},{default:Gn(()=>[e.isOpen?(V(),H(`div`,{key:0,class:`modal-overlay`,onClick:n[2]||=Fs(e=>r(`close`),[`self`])},[W(`div`,xy,[n[8]||=W(`h3`,{class:`modal-title`},`Delete Token`,-1),W(`p`,Sy,[n[3]||=K(` Are you sure you want to delete `,-1),W(`code`,Cy,N(e.tokenPath),1),n[4]||=K(`? `,-1)]),e.dependents&&e.dependents.length>0?(V(),H(`div`,wy,[n[7]||=W(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[W(`path`,{d:`M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z`}),W(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),W(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})],-1),W(`div`,null,[n[5]||=W(`p`,{class:`warning-text`},`The following semantic tokens reference this token:`,-1),W(`ul`,Ty,[(V(!0),H(B,null,z(e.dependents,e=>(V(),H(`li`,{key:e,class:`dependent-item`},[W(`code`,null,N(e),1)]))),128))]),n[6]||=W(`p`,{class:`warning-note`},`Deleting this token will leave these references unresolved.`,-1)])])):q(``,!0),W(`div`,Ey,[W(`button`,{class:`btn btn--secondary`,onClick:n[0]||=e=>r(`close`)},`Cancel`),W(`button`,{class:`btn btn--danger`,onClick:n[1]||=e=>r(`confirm`)},` Delete `)])])])):q(``,!0)]),_:1})]))}}),[[`__scopeId`,`data-v-c227013e`]]),Oy={class:`modal-panel`},ky={class:`modal-header`},Ay={class:`modal-subtitle`},jy={key:0,class:`modal-value`},My={class:`modal-body`},Ny={key:0,class:`primitive-warning`},Py={key:1,class:`no-usage`},Fy={key:2,class:`usage-list`},Iy=[`onClick`],Ly={class:`usage-entry-info`},Ry={class:`usage-entry-title`},zy={key:0,class:`usage-category-badge`},By={class:`usage-match-count`},Vy={key:0,class:`usage-matches`},Hy={class:`match-line-number`},Uy={class:`match-line-content`},Wy={class:`match-property`},Gy={class:`usage-entry-actions`},Ky=[`onClick`],qy=[`onClick`],Jy=X(R({__name:`TokenUsageModal`,props:{isOpen:{type:Boolean},tokenPath:{},token:{},usages:{}},emits:[`close`,`editSource`],setup(e,{emit:t}){let n=t,r=Gl(),i=I(new Set);function a(e){i.value.has(e)?i.value.delete(e):i.value.add(e)}function o(e){n(`close`),r.push({name:`component`,params:{path:e}})}return(t,r)=>(V(),U(pr,{to:`body`},[G(ko,{name:`modal`},{default:Gn(()=>[e.isOpen?(V(),H(`div`,{key:0,class:`modal-overlay`,onClick:r[1]||=Fs(e=>n(`close`),[`self`])},[W(`div`,Oy,[W(`div`,ky,[W(`div`,null,[r[2]||=W(`h2`,{class:`modal-title`},`Token Usage`,-1),W(`p`,Ay,[W(`code`,null,N(e.tokenPath),1),e.token?(V(),H(`span`,jy,`— `+N(e.token.$resolvedValue??e.token.value),1)):q(``,!0)])]),W(`button`,{class:`modal-close`,onClick:r[0]||=e=>n(`close`)},[...r[3]||=[W(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[W(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),W(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]])]),W(`div`,My,[e.token?.$tier===`primitive`&&e.usages.length>0?(V(),H(`div`,Ny,[...r[4]||=[W(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[W(`path`,{d:`M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z`}),W(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),W(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})],-1),W(`span`,null,`Components are referencing this primitive value directly. Consider using a semantic token instead.`,-1)]])):q(``,!0),e.usages.length===0?(V(),H(`div`,Py,` No component usage found for this token value. `)):(V(),H(`div`,Fy,[(V(!0),H(B,null,z(e.usages,e=>(V(),H(`div`,{key:e.artPath,class:`usage-entry`},[W(`div`,{class:`usage-entry-header`,onClick:t=>a(e.artPath)},[W(`div`,Ly,[W(`span`,Ry,N(e.artTitle),1),e.artCategory?(V(),H(`span`,zy,N(e.artCategory),1)):q(``,!0),W(`span`,By,N(e.matches.length)+` match`+N(e.matches.length===1?``:`es`),1)]),(V(),H(`svg`,{class:M([`expand-icon`,{"expand-icon--open":i.value.has(e.artPath)}]),width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[...r[5]||=[W(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2))],8,Iy),i.value.has(e.artPath)?(V(),H(`div`,Vy,[(V(!0),H(B,null,z(e.matches,(e,t)=>(V(),H(`div`,{key:t,class:`usage-match-line`},[W(`span`,Hy,N(e.line),1),W(`code`,Uy,N(e.lineContent),1),W(`span`,Wy,N(e.property),1)]))),128))])):q(``,!0),W(`div`,Gy,[W(`button`,{class:`usage-action-btn`,onClick:t=>o(e.artPath)},` View Component `,8,Ky),W(`button`,{class:`usage-action-btn usage-action-btn--edit`,onClick:t=>n(`editSource`,e.artPath)},` Edit Source `,8,qy)])]))),128))]))])])])):q(``,!0)]),_:1})]))}}),[[`__scopeId`,`data-v-ac182756`]]);function Yy(e){return new Worker(`/__musea__/assets/editor.worker-Cs7HTPcl.js`,{name:e?.name})}function Xy(e){return new Worker(`/__musea__/assets/json.worker-CWR6J9Qf.js`,{name:e?.name})}function Zy(e){return new Worker(`/__musea__/assets/css.worker-Cbw1kvi8.js`,{name:e?.name})}function Qy(e){return new Worker(`/__musea__/assets/html.worker-CYmk49z4.js`,{name:e?.name})}function $y(e){return new Worker(`/__musea__/assets/ts.worker-B_5n269U.js`,{name:e?.name})}var eb=R({__name:`MonacoEditor`,props:{modelValue:{},language:{},theme:{},height:{},readOnly:{type:Boolean},completionItems:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=I(null),a=null,o=null,s=null;Jr(async()=>{i.value&&(self.MonacoEnvironment={getWorker(e,t){switch(t){case`json`:return new Xy;case`css`:case`scss`:case`less`:return new Zy;case`html`:case`handlebars`:case`razor`:return new Qy;case`typescript`:case`javascript`:return new $y;default:return new Yy}}},o=await Np(()=>import(`./editor.main-cIHydN24.js`),__vite__mapDeps([0,1,2,3,4])),o.editor.defineTheme(`musea-dark`,{base:`vs-dark`,inherit:!0,rules:[],colors:{"editor.background":`#1a1a1a`,"editor.foreground":`#e5e5e5`,"editor.lineHighlightBackground":`#252525`,"editorCursor.foreground":`#e07048`,"editor.selectionBackground":`#3d3d3d`}}),n.completionItems&&n.completionItems.length>0&&c(o,n.completionItems),a=o.editor.create(i.value,{value:n.modelValue,language:n.language||`html`,theme:n.theme||`musea-dark`,minimap:{enabled:!1},fontSize:12,lineNumbers:`on`,lineNumbersMinChars:3,scrollBeyondLastLine:!1,wordWrap:`on`,automaticLayout:!0,readOnly:n.readOnly||!1,padding:{top:8,bottom:8},renderLineHighlight:`line`,scrollbar:{vertical:`auto`,horizontal:`auto`,verticalScrollbarSize:8,horizontalScrollbarSize:8},overviewRulerLanes:0,hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,folding:!1,tabSize:2}),a.onDidChangeModelContent(()=>{r(`update:modelValue`,a?.getValue()||``)}))});function c(e,t){s?.dispose(),s=e.languages.registerCompletionItemProvider(`css`,{triggerCharacters:[`-`,`(`],provideCompletionItems(n,r){let i=n.getLineContent(r.lineNumber).substring(0,r.column-1),a=/var\(\s*-*$/.test(i),o=/:\s*[^;]*$/.test(i);if(!a&&!o)return{suggestions:[]};let s=n.getWordUntilPosition(r),c={startLineNumber:r.lineNumber,startColumn:s.startColumn,endLineNumber:r.lineNumber,endColumn:s.endColumn};return{suggestions:t.map(t=>{let n=`--${t.replace(/\./g,`-`)}`;return{label:n,kind:e.languages.CompletionItemKind.Variable,detail:`Design token: ${t}`,insertText:a?n:`var(${n})`,range:c,sortText:`0`+t}})}}}),s=e.languages.registerCompletionItemProvider(`html`,{triggerCharacters:[`-`,`(`],provideCompletionItems(n,r){let i=n.getLineContent(r.lineNumber).substring(0,r.column-1),a=/var\(\s*-*$/.test(i),o=/:\s*[^;]*$/.test(i);if(!a&&!o)return{suggestions:[]};let s=n.getWordUntilPosition(r),c={startLineNumber:r.lineNumber,startColumn:s.startColumn,endLineNumber:r.lineNumber,endColumn:s.endColumn};return{suggestions:t.map(t=>{let n=`--${t.replace(/\./g,`-`)}`;return{label:n,kind:e.languages.CompletionItemKind.Variable,detail:`Design token: ${t}`,insertText:a?n:`var(${n})`,range:c,sortText:`0`+t}})}}})}return Zr(()=>{s?.dispose(),a?.dispose()}),$n(()=>n.modelValue,e=>{a&&a.getValue()!==e&&a.setValue(e)}),$n(()=>n.language,e=>{if(a&&o&&e){let t=a.getModel();t&&o.editor.setModelLanguage(t,e)}}),$n(()=>n.completionItems,e=>{o&&e&&e.length>0&&c(o,e)}),(t,n)=>(V(),H(`div`,{ref_key:`containerRef`,ref:i,class:`monaco-container`,style:ve({height:e.height||`120px`})},null,4))}}),tb=s({default:()=>nb}),nb=X(eb,[[`__scopeId`,`data-v-fd63546e`]]),rb={class:`modal-panel`},ib={class:`modal-header`},ab={class:`modal-subtitle`},ob={class:`modal-body`},sb={key:0,class:`editor-loading`},cb={key:2,class:`editor-error`},lb={class:`modal-footer`},ub={class:`modal-footer-actions`},db=[`disabled`],fb=X(R({__name:`SourceEditModal`,props:{isOpen:{type:Boolean},artPath:{},artTitle:{},tokenPaths:{}},emits:[`close`,`saved`],setup(e,{emit:t}){let n=e,r=t,i=I(``),a=I(!1),o=I(!1),s=I(null);$n(()=>n.isOpen,async e=>{if(e&&n.artPath){a.value=!0,s.value=null;try{i.value=(await Nu(n.artPath)).source}catch(e){s.value=e instanceof Error?e.message:String(e)}finally{a.value=!1}}});async function c(){o.value=!0,s.value=null;try{await Pu(n.artPath,i.value),r(`saved`),r(`close`)}catch(e){s.value=e instanceof Error?e.message:String(e)}finally{o.value=!1}}return(t,n)=>(V(),U(pr,{to:`body`},[G(ko,{name:`modal`},{default:Gn(()=>[e.isOpen?(V(),H(`div`,{key:0,class:`modal-overlay`,onClick:n[3]||=Fs(e=>r(`close`),[`self`])},[W(`div`,rb,[W(`div`,ib,[W(`div`,null,[n[4]||=W(`h2`,{class:`modal-title`},`Edit Source`,-1),W(`p`,ab,N(e.artTitle),1)]),W(`button`,{class:`modal-close`,onClick:n[0]||=e=>r(`close`)},[...n[5]||=[W(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[W(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),W(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]])]),W(`div`,ob,[a.value?(V(),H(`div`,sb,`Loading source...`)):(V(),U(nb,{key:1,modelValue:i.value,"onUpdate:modelValue":n[1]||=e=>i.value=e,language:`html`,height:`500px`,"completion-items":e.tokenPaths},null,8,[`modelValue`,`completion-items`])),s.value?(V(),H(`p`,cb,N(s.value),1)):q(``,!0)]),W(`div`,lb,[n[6]||=W(`span`,{class:`save-hint`},`Cmd+S / Ctrl+S to save`,-1),W(`div`,ub,[W(`button`,{class:`btn btn--secondary`,onClick:n[2]||=e=>r(`close`)},`Cancel`),W(`button`,{class:`btn btn--primary`,disabled:o.value||a.value,onClick:c},N(o.value?`Saving...`:`Save`),9,db)])])])])):q(``,!0)]),_:1})]))}}),[[`__scopeId`,`data-v-5d8401b1`]]),pb={class:`tokens-view`},mb={class:`tokens-header`},hb={class:`tokens-toolbar`},gb={class:`tab-bar`},_b=[`onClick`],vb={key:0,class:`tab-count`},yb={key:1,class:`tab-count`},bb={key:2,class:`tab-count`},xb={key:0,class:`tokens-loading`},Sb={key:1,class:`tokens-empty`},Cb={key:2,class:`tokens-empty`},wb={key:0},Tb={key:1},Eb=X(R({__name:`TokensView`,setup(e){let{loading:t,error:n,activeTab:r,filter:i,filteredCategories:a,primitiveTokenPaths:o,tokenMap:s,meta:c,load:l,addToken:u,editToken:d,removeToken:f}=Ov(),{usageMap:p,load:m,reload:h,getUsage:g}=Nv(),_=I(!1),v=I(``),y=I(),b=I([]),x=I(!1),S=I(``),C=I(``),ee=I(!1),w=I(`create`),T=I(``),E=I(),D=I(!1),te=I(``),O=I(),ne=I([]),k=J(()=>Object.keys(s.value)),re=[{key:`all`,label:`All`},{key:`primitive`,label:`Primitive`},{key:`semantic`,label:`Semantic`}];Jr(()=>{l(),m()});function A(){w.value=`create`,T.value=``,E.value=void 0,ee.value=!0}function j(e,t){w.value=`edit`,T.value=e,E.value=t,ee.value=!0}function ie(e,t){te.value=e,O.value=t;let n=[];for(let[t,r]of Object.entries(s.value))r.$reference===e&&n.push(t);ne.value=n,D.value=!0}async function ae(e,t){try{w.value===`create`?await u(e,t):await d(e,t),ee.value=!1}catch(e){console.error(`[musea] Token save error:`,e)}}async function oe(){try{await f(te.value),D.value=!1}catch(e){console.error(`[musea] Token delete error:`,e)}}function se(e){v.value=e,y.value=s.value[e],b.value=g(e),_.value=!0}function ce(e){let t=b.value.find(t=>t.artPath===e);S.value=e,C.value=t?.artTitle??e.split(`/`).pop()??e,_.value=!1,x.value=!0}async function le(){await h()}return(e,s)=>(V(),H(`div`,pb,[W(`div`,mb,[W(`div`,{class:`tokens-header-top`},[s[6]||=W(`div`,null,[W(`h1`,{class:`tokens-title`},`Design Tokens`),W(`p`,{class:`tokens-description`},` Browse and manage design tokens from your Style Dictionary configuration `)],-1),W(`button`,{class:`add-token-btn`,onClick:A},[...s[5]||=[W(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[W(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),W(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1),K(` Add Token `,-1)]])]),W(`div`,hb,[W(`div`,gb,[(V(),H(B,null,z(re,e=>W(`button`,{key:e.key,class:M([`tab-btn`,{"tab-btn--active":L(r)===e.key}]),onClick:t=>r.value=e.key},[K(N(e.label)+` `,1),e.key===`all`&&L(c).tokenCount?(V(),H(`span`,vb,N(L(c).tokenCount),1)):e.key===`primitive`&&L(c).primitiveCount?(V(),H(`span`,yb,N(L(c).primitiveCount),1)):e.key===`semantic`&&L(c).semanticCount?(V(),H(`span`,bb,N(L(c).semanticCount),1)):q(``,!0)],10,_b)),64))]),Kn(W(`input`,{"onUpdate:modelValue":s[0]||=e=>nn(i)?i.value=e:null,type:`text`,class:`tokens-filter`,placeholder:`Filter tokens...`},null,512),[[Ts,L(i)]])])]),L(t)?(V(),H(`div`,xb,[...s[7]||=[W(`div`,{class:`loading-spinner`},null,-1),K(` Loading tokens... `,-1)]])):L(n)?(V(),H(`div`,Sb,[s[8]||=za(`<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" data-v-ff25c4bf><circle cx="12" cy="12" r="5" data-v-ff25c4bf></circle><line x1="12" y1="1" x2="12" y2="3" data-v-ff25c4bf></line><line x1="12" y1="21" x2="12" y2="23" data-v-ff25c4bf></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64" data-v-ff25c4bf></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78" data-v-ff25c4bf></line><line x1="1" y1="12" x2="3" y2="12" data-v-ff25c4bf></line><line x1="21" y1="12" x2="23" y2="12" data-v-ff25c4bf></line></svg>`,1),W(`p`,null,N(L(n)),1)])):L(a).length===0?(V(),H(`div`,Cb,[s[9]||=za(`<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" data-v-ff25c4bf><circle cx="12" cy="12" r="5" data-v-ff25c4bf></circle><line x1="12" y1="1" x2="12" y2="3" data-v-ff25c4bf></line><line x1="12" y1="21" x2="12" y2="23" data-v-ff25c4bf></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64" data-v-ff25c4bf></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78" data-v-ff25c4bf></line><line x1="1" y1="12" x2="3" y2="12" data-v-ff25c4bf></line><line x1="21" y1="12" x2="23" y2="12" data-v-ff25c4bf></line></svg>`,1),L(i)?(V(),H(`p`,wb,`No tokens match your search.`)):(V(),H(`p`,Tb,`No design tokens configured. Add a Style Dictionary config to see tokens here.`))])):(V(!0),H(B,{key:3},z(L(a),e=>(V(),U(ny,{key:e.name,category:e,level:2,"usage-map":L(p),onEdit:j,onDelete:ie,onShowUsage:se},null,8,[`category`,`usage-map`]))),128)),G(by,{"is-open":ee.value,mode:w.value,"edit-path":T.value,"edit-token":E.value,"primitive-token-paths":L(o),"existing-paths":k.value,onClose:s[1]||=e=>ee.value=!1,onSubmit:ae},null,8,[`is-open`,`mode`,`edit-path`,`edit-token`,`primitive-token-paths`,`existing-paths`]),G(Dy,{"is-open":D.value,"token-path":te.value,token:O.value,dependents:ne.value,onClose:s[2]||=e=>D.value=!1,onConfirm:oe},null,8,[`is-open`,`token-path`,`token`,`dependents`]),G(Jy,{"is-open":_.value,"token-path":v.value,token:y.value,usages:b.value,onClose:s[3]||=e=>_.value=!1,onEditSource:ce},null,8,[`is-open`,`token-path`,`token`,`usages`]),G(fb,{"is-open":x.value,"art-path":S.value,"art-title":C.value,"token-paths":k.value,onClose:s[4]||=e=>x.value=!1,onSaved:le},null,8,[`is-open`,`art-path`,`art-title`,`token-paths`])]))}}),[[`__scopeId`,`data-v-ff25c4bf`]]),Db={class:`test-summary`},Ob={class:`summary-stats`},kb={class:`stat total`},Ab={class:`stat-value`},jb={class:`stat passed`},Mb={class:`stat-value`},Nb={class:`stat failed`},Pb={class:`stat-value`},Fb={class:`stat pending`},Ib={class:`stat-value`},Lb={key:0,class:`stat violations`},Rb={class:`stat-value`},zb={key:0,class:`violation-breakdown`},Bb={key:0,class:`violation-badge critical`},Vb={key:1,class:`violation-badge serious`},Hb={key:2,class:`violation-badge moderate`},Ub={key:3,class:`violation-badge minor`},Wb={class:`summary-actions`},Gb=[`disabled`],Kb={class:`test-list`},qb=[`onClick`],Jb={class:`test-info`},Yb={class:`test-name`},Xb={key:0,class:`test-violations`},Zb={key:0,class:`more-violations`},Qb={key:0,class:`test-counts`},$b={key:0,class:`count violations`},ex={class:`count passes`},tx={class:`hidden-iframes`},nx=[`src`,`onLoad`],rx=X(R({__name:`TestSummaryView`,setup(e){let t=Gl(),{arts:n,load:r}=Bu(),{init:i,runA11y:a,getResult:o,isRunning:s,results:c}=xg(),l=I([]),u=I(!1),d=I(-1),f=I(new Map),p=I(new Map),m=()=>{let e=[];for(let t of n.value)for(let n of t.variants){let r=o(`${t.path}:${n.name}`);e.push({artPath:t.path,artTitle:t.metadata.title||t.path,variantName:n.name,status:r?r.violations.length>0?`failed`:`passed`:`pending`,result:r})}l.value=e},h=J(()=>{let e=l.value.length,t=l.value.filter(e=>e.status===`passed`).length,n=l.value.filter(e=>e.status===`failed`).length,r=l.value.filter(e=>e.status===`pending`).length,i=l.value.filter(e=>e.status===`running`).length,a=0,o=0,s=0,c=0,u=0;for(let e of l.value)if(e.result){a+=e.result.violations.length;for(let t of e.result.violations)switch(t.impact){case`critical`:o++;break;case`serious`:s++;break;case`moderate`:c++;break;case`minor`:u++;break}}return{total:e,passed:t,failed:n,pending:r,running:i,violations:a,criticalCount:o,seriousCount:s,moderateCount:c,minorCount:u}}),g=(e,t)=>{t&&f.value.set(e,t)},_=e=>{p.value.set(e,!0)},v=async()=>{if(!u.value){u.value=!0;for(let e of l.value)e.status=`pending`,e.result=void 0;for(let e=0;e<l.value.length;e++){d.value=e;let t=l.value[e],n=`${t.artPath}:${t.variantName}`;t.status=`running`;let r=f.value.get(n);if(!r){t.status=`failed`,t.result={violations:[{id:`error`,impact:`critical`,description:`Iframe not found`,helpUrl:``,nodes:[]}],passes:0,incomplete:0};continue}let i=0;for(;!p.value.get(n)&&i<50;)await new Promise(e=>setTimeout(e,100)),i++;if(!p.value.get(n)){t.status=`failed`,t.result={violations:[{id:`error`,impact:`critical`,description:`Iframe load timeout`,helpUrl:``,nodes:[]}],passes:0,incomplete:0};continue}a(r,n);let c=0;for(;s.value&&c<100;)await new Promise(e=>setTimeout(e,100)),c++;let u=o(n);t.result=u,t.status=u?u.violations.length>0?`failed`:`passed`:`failed`}d.value=-1,u.value=!1}},y=e=>{switch(e){case`critical`:return`#f87171`;case`serious`:return`#fb923c`;case`moderate`:return`#fbbf24`;case`minor`:return`#60a5fa`;default:return`#7b8494`}},b=e=>{switch(e){case`passed`:return Jl;case`failed`:return tu;case`running`:return uu;default:return $l}},x=e=>{switch(e){case`passed`:return`#4ade80`;case`failed`:return`#f87171`;case`running`:return`#fbbf24`;default:return`#7b8494`}},S=e=>{t.push({name:`component`,params:{path:e}})};return Jr(()=>{r(),i()}),$n(n,()=>{m()},{immediate:!0}),$n(c,()=>{for(let e of l.value){let t=o(`${e.artPath}:${e.variantName}`);t&&e.status!==`running`&&(e.result=t,e.status=t.violations.length>0?`failed`:`passed`)}},{deep:!0}),(e,t)=>(V(),H(`div`,Db,[t[5]||=W(`div`,{class:`summary-header`},[W(`h1`,{class:`summary-title`},`Test Summary`),W(`p`,{class:`summary-subtitle`},`Run accessibility tests on all components and variants`)],-1),W(`div`,Ob,[W(`div`,kb,[W(`div`,Ab,N(h.value.total),1),t[0]||=W(`div`,{class:`stat-label`},`Total Tests`,-1)]),W(`div`,jb,[W(`div`,Mb,N(h.value.passed),1),t[1]||=W(`div`,{class:`stat-label`},`Passed`,-1)]),W(`div`,Nb,[W(`div`,Pb,N(h.value.failed),1),t[2]||=W(`div`,{class:`stat-label`},`Failed`,-1)]),W(`div`,Fb,[W(`div`,Ib,N(h.value.pending+h.value.running),1),t[3]||=W(`div`,{class:`stat-label`},`Pending`,-1)]),h.value.violations>0?(V(),H(`div`,Lb,[W(`div`,Rb,N(h.value.violations),1),t[4]||=W(`div`,{class:`stat-label`},`Violations`,-1)])):q(``,!0)]),h.value.violations>0?(V(),H(`div`,zb,[h.value.criticalCount>0?(V(),H(`span`,Bb,N(h.value.criticalCount)+` Critical `,1)):q(``,!0),h.value.seriousCount>0?(V(),H(`span`,Vb,N(h.value.seriousCount)+` Serious `,1)):q(``,!0),h.value.moderateCount>0?(V(),H(`span`,Hb,N(h.value.moderateCount)+` Moderate `,1)):q(``,!0),h.value.minorCount>0?(V(),H(`span`,Ub,N(h.value.minorCount)+` Minor `,1)):q(``,!0)])):q(``,!0),W(`div`,Wb,[W(`button`,{class:`run-all-btn`,disabled:u.value,onClick:v},[u.value?(V(),U(Z,{key:0,class:`spin`,path:L(uu),size:16},null,8,[`path`])):(V(),U(Z,{key:1,path:L(mu),size:16},null,8,[`path`])),K(` `+N(u.value?`Running ${d.value+1}/${l.value.length}...`:`Run All A11y Tests`),1)],8,Gb)]),W(`div`,Kb,[(V(!0),H(B,null,z(l.value,(e,t)=>(V(),H(`div`,{key:`${e.artPath}:${e.variantName}`,class:M([`test-item`,{running:e.status===`running`,passed:e.status===`passed`,failed:e.status===`failed`}]),onClick:t=>S(e.artPath)},[G(Z,{class:M([`test-status`,{spin:e.status===`running`}]),path:b(e.status),size:18,style:ve({color:x(e.status)})},null,8,[`path`,`style`,`class`]),W(`div`,Jb,[W(`div`,Yb,N(e.artTitle)+` / `+N(e.variantName),1),e.result&&e.result.violations.length>0?(V(),H(`div`,Xb,[(V(!0),H(B,null,z(e.result.violations.slice(0,3),e=>(V(),H(`span`,{key:e.id,class:`violation-tag`,style:ve({borderColor:y(e.impact),color:y(e.impact)})},N(e.id),5))),128)),e.result.violations.length>3?(V(),H(`span`,Zb,` +`+N(e.result.violations.length-3)+` more `,1)):q(``,!0)])):q(``,!0)]),e.result?(V(),H(`div`,Qb,[e.result.violations.length>0?(V(),H(`span`,$b,N(e.result.violations.length)+` issues `,1)):q(``,!0),W(`span`,ex,N(e.result.passes)+` passed`,1)])):q(``,!0),G(Z,{class:`test-nav-icon`,path:L(fu),size:14},null,8,[`path`])],10,qb))),128))]),W(`div`,tx,[(V(!0),H(B,null,z(l.value,e=>(V(),H(`iframe`,{key:`iframe-${e.artPath}:${e.variantName}`,ref_for:!0,ref:t=>g(`${e.artPath}:${e.variantName}`,t),src:L(Du)(e.artPath,e.variantName),onLoad:t=>_(`${e.artPath}:${e.variantName}`)},null,40,nx))),128))])]))}}),[[`__scopeId`,`data-v-1c179d5d`]]);const ix=Wl({history:ll(window.__MUSEA_BASE_PATH__??`/__musea__`),routes:[{path:`/`,name:`home`,component:cf},{path:`/tokens`,name:`tokens`,component:Eb},{path:`/tests`,name:`tests`,component:rx},{path:`/component/:path(.*)`,name:`component`,component:_v}]});var ax=zs(Bd);ax.use(ix),ax.mount(`#app`);export{s as n,Np as t};