vite-plugin-vue-devtools 7.4.3 → 7.4.4

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.
@@ -33,7 +33,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-ClP425Kk.js","./
33
33
  \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Hhe(t,r,e,n){const i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags;let a=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const s=[];let l;i.space==="html"&&t.tagName==="svg"&&(n.schema=Uj);const c=xhe(n,t.properties),u=n.all(i.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=i,u&&(a=!1),(c||!o||!Ehe(t,r,e))&&(s.push("<",t.tagName,c?" "+c:""),a&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!a&&(!o||!bb(t,r,e))&&s.push("</"+t.tagName+">"),s.join("")}function xhe(t,r){const e=[];let n=-1,i;if(r){for(i in r)if(r[i]!==null&&r[i]!==void 0){const o=Vhe(t,i,r[i]);o&&e.push(o)}}for(;++n<e.length;){const o=t.settings.tightAttributes?e[n].charAt(e[n].length-1):void 0;n!==e.length-1&&o!=='"'&&o!=="'"&&(e[n]+=" ")}return e.join("")}function Vhe(t,r,e){const n=Zge(t.schema,r),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1;let a=t.quote,s;if(n.overloadedBoolean&&(e===n.attribute||e==="")?e=!0:(n.boolean||n.overloadedBoolean&&typeof e!="string")&&(e=!!e),e==null||e===!1||typeof e=="number"&&Number.isNaN(e))return"";const l=H2(n.attribute,Object.assign({},t.settings.characterReferences,{subset:U0.name[i][o]}));return e===!0||(e=Array.isArray(e)?(n.commaSeparated?ghe:hhe)(e,{padLeft:!t.settings.tightCommaSeparatedLists}):String(e),t.settings.collapseEmptyAttributes&&!e)?l:(t.settings.preferUnquoted&&(s=H2(e,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:U0.unquoted[i][o]}))),s!==e&&(t.settings.quoteSmart&&VE(e,a)>VE(e,t.alternative)&&(a=t.alternative),s=a+H2(e,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?U0.single:U0.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}const Phe=["<","&"];function Yj(t,r,e,n){return e&&e.type==="element"&&(e.tagName==="script"||e.tagName==="style")?t.value:H2(t.value,Object.assign({},n.settings.characterReferences,{subset:Phe}))}function Rhe(t,r,e,n){return n.settings.allowDangerousHtml?t.value:Yj(t,r,e,n)}function Dhe(t,r,e,n){return n.all(t)}const Nhe=qge("type",{invalid:Bhe,unknown:Fhe,handlers:{comment:che,doctype:uhe,element:Hhe,raw:Rhe,root:Dhe,text:Yj}});function Bhe(t){throw new Error("Expected node, not `"+t+"`")}function Fhe(t){const r=t;throw new Error("Cannot compile unknown node `"+r.type+"`")}const jhe={},Uhe={},Ghe=[];function Whe(t,r){const e=jhe,n=e.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Zhe,all:Khe,settings:{omitOptionalTags:e.omitOptionalTags||!1,allowParseErrors:e.allowParseErrors||!1,allowDangerousCharacters:e.allowDangerousCharacters||!1,quoteSmart:e.quoteSmart||!1,preferUnquoted:e.preferUnquoted||!1,tightAttributes:e.tightAttributes||!1,upperDoctype:e.upperDoctype||!1,tightDoctype:e.tightDoctype||!1,bogusComments:e.bogusComments||!1,tightCommaSeparatedLists:e.tightCommaSeparatedLists||!1,tightSelfClosing:e.tightSelfClosing||!1,collapseEmptyAttributes:e.collapseEmptyAttributes||!1,allowDangerousHtml:e.allowDangerousHtml||!1,voids:e.voids||Nge,characterReferences:e.characterReferences||Uhe,closeSelfClosing:e.closeSelfClosing||!1,closeEmptyElements:e.closeEmptyElements||!1},schema:e.space==="svg"?Uj:Xge,quote:n,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Zhe(t,r,e){return Nhe(t,r,e,this)}function Khe(t){const r=[],e=t&&t.children||Ghe;let n=-1;for(;++n<e.length;)r[n]=this.one(e[n],n,t);return r.join("")}function Yhe(t,r,e){const n={meta:{},options:e,codeToHast:(o,a)=>Sv(t,o,a),codeToTokens:(o,a)=>Ev(t,o,a)};let i=Whe(Sv(t,r,e,n));for(const o of zv(e))i=o.postprocess?.call(n,i,e)||i;return i}function Xhe(){return 2147483648}function qhe(){return typeof performance<"u"?performance.now():Date.now()}const Qhe=(t,r)=>t+(r-t%r)%r;async function Jhe(t){let r,e;const n={};function i(d){e=d,n.HEAPU8=new Uint8Array(d),n.HEAPU32=new Uint32Array(d)}function o(d,f,C){n.HEAPU8.copyWithin(d,f,f+C)}function a(d){try{return r.grow(d-e.byteLength+65535>>>16),i(r.buffer),1}catch{}}function s(d){const f=n.HEAPU8.length;d=d>>>0;const C=Xhe();if(d>C)return!1;for(let v=1;v<=4;v*=2){let A=f*(1+.2/v);A=Math.min(A,d+100663296);const I=Math.min(C,Qhe(Math.max(d,A),65536));if(a(I))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(d,f,C=1024){const v=f+C;let A=f;for(;d[A]&&!(A>=v);)++A;if(A-f>16&&d.buffer&&l)return l.decode(d.subarray(f,A));let I="";for(;f<A;){let p=d[f++];if(!(p&128)){I+=String.fromCharCode(p);continue}const m=d[f++]&63;if((p&224)===192){I+=String.fromCharCode((p&31)<<6|m);continue}const w=d[f++]&63;if((p&240)===224?p=(p&15)<<12|m<<6|w:p=(p&7)<<18|m<<12|w<<6|d[f++]&63,p<65536)I+=String.fromCharCode(p);else{const _=p-65536;I+=String.fromCharCode(55296|_>>10,56320|_&1023)}}return I}function u(d,f){return d?c(n.HEAPU8,d,f):""}const g={emscripten_get_now:qhe,emscripten_memcpy_big:o,emscripten_resize_heap:s,fd_write:()=>0};async function h(){const f=await t({env:g,wasi_snapshot_preview1:g});r=f.memory,i(r.buffer),Object.assign(n,f),n.UTF8ToString=u}return await h(),n}let en=null;function ede(t){throw new or(t.UTF8ToString(t.getLastOnigError()))}class KA{static _utf8ByteLength(r){let e=0;for(let n=0,i=r.length;n<i;n++){const o=r.charCodeAt(n);let a=o,s=!1;if(o>=55296&&o<=56319&&n+1<i){const l=r.charCodeAt(n+1);l>=56320&&l<=57343&&(a=(o-55296<<10)+65536|l-56320,s=!0)}a<=127?e+=1:a<=2047?e+=2:a<=65535?e+=3:e+=4,s&&n++}return e}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(r){const e=r.length,n=KA._utf8ByteLength(r),i=n!==e,o=i?new Uint32Array(e+1):null;i&&(o[e]=n);const a=i?new Uint32Array(n+1):null;i&&(a[n]=e);const s=new Uint8Array(n);let l=0;for(let c=0;c<e;c++){const u=r.charCodeAt(c);let g=u,h=!1;if(u>=55296&&u<=56319&&c+1<e){const d=r.charCodeAt(c+1);d>=56320&&d<=57343&&(g=(u-55296<<10)+65536|d-56320,h=!0)}i&&(o[c]=l,h&&(o[c+1]=l),g<=127?a[l+0]=c:g<=2047?(a[l+0]=c,a[l+1]=c):g<=65535?(a[l+0]=c,a[l+1]=c,a[l+2]=c):(a[l+0]=c,a[l+1]=c,a[l+2]=c,a[l+3]=c)),g<=127?s[l++]=g:g<=2047?(s[l++]=192|(g&1984)>>>6,s[l++]=128|(g&63)>>>0):g<=65535?(s[l++]=224|(g&61440)>>>12,s[l++]=128|(g&4032)>>>6,s[l++]=128|(g&63)>>>0):(s[l++]=240|(g&1835008)>>>18,s[l++]=128|(g&258048)>>>12,s[l++]=128|(g&4032)>>>6,s[l++]=128|(g&63)>>>0),h&&c++}this.utf16Length=e,this.utf8Length=n,this.utf16Value=r,this.utf8Value=s,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}createString(r){const e=r.omalloc(this.utf8Length);return r.HEAPU8.set(this.utf8Value,e),e}}class ji{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++ji.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(r){if(!en)throw new or("Must invoke loadWasm first.");this._onigBinding=en,this.content=r;const e=new KA(r);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!ji._sharedPtrInUse?(ji._sharedPtr||(ji._sharedPtr=en.omalloc(1e4)),ji._sharedPtrInUse=!0,en.HEAPU8.set(e.utf8Value,ji._sharedPtr),this.ptr=ji._sharedPtr):this.ptr=e.createString(en)}convertUtf8OffsetToUtf16(r){return this.utf8OffsetToUtf16?r<0?0:r>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[r]:r}convertUtf16OffsetToUtf8(r){return this.utf16OffsetToUtf8?r<0?0:r>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[r]:r}dispose(){this.ptr===ji._sharedPtr?ji._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class tde{_onigBinding;_ptr;constructor(r){if(!en)throw new or("Must invoke loadWasm first.");const e=[],n=[];for(let s=0,l=r.length;s<l;s++){const c=new KA(r[s]);e[s]=c.createString(en),n[s]=c.utf8Length}const i=en.omalloc(4*r.length);en.HEAPU32.set(e,i/4);const o=en.omalloc(4*r.length);en.HEAPU32.set(n,o/4);const a=en.createOnigScanner(i,o,r.length);for(let s=0,l=r.length;s<l;s++)en.ofree(e[s]);en.ofree(o),en.ofree(i),a===0&&ede(en),this._onigBinding=en,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(r,e,n){let i=0;if(typeof n=="number"&&(i=n),typeof r=="string"){r=new ji(r);const o=this._findNextMatchSync(r,e,!1,i);return r.dispose(),o}return this._findNextMatchSync(r,e,!1,i)}_findNextMatchSync(r,e,n,i){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,r.id,r.ptr,r.utf8Length,r.convertUtf16OffsetToUtf8(e),i);if(a===0)return null;const s=o.HEAPU32;let l=a/4;const c=s[l++],u=s[l++],g=[];for(let h=0;h<u;h++){const d=r.convertUtf8OffsetToUtf16(s[l++]),f=r.convertUtf8OffsetToUtf16(s[l++]);g[h]={start:d,end:f,length:f-d}}return{index:c,captureIndices:g}}}function rde(t){return typeof t.instantiator=="function"}function nde(t){return typeof t.default=="function"}function ide(t){return typeof t.data<"u"}function ode(t){return typeof Response<"u"&&t instanceof Response}function ade(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&Buffer.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let G0;function sde(t){if(G0)return G0;async function r(){en=await Jhe(async e=>{let n=t;return n=await n,typeof n=="function"&&(n=await n(e)),typeof n=="function"&&(n=await n(e)),rde(n)?n=await n.instantiator(e):nde(n)?n=await n.default(e):(ide(n)&&(n=n.data),ode(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await lde(n)(e):n=await cde(n)(e):ade(n)?n=await up(n)(e):n instanceof WebAssembly.Module?n=await up(n)(e):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await up(n.default)(e))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return G0=r(),G0}function up(t){return r=>WebAssembly.instantiate(t,r)}function lde(t){return r=>WebAssembly.instantiateStreaming(t,r)}function cde(t){return async r=>{const e=await t.arrayBuffer();return WebAssembly.instantiate(e,r)}}async function ude(t){return t&&await sde(t),{createScanner(r){return new tde(r)},createString(r){return new ji(r)}}}const NE={light:"#333333",dark:"#bbbbbb"},BE={light:"#fffffe",dark:"#1e1e1e"},FE="__shiki_resolved";function wb(t){if(t?.[FE])return t;const r={...t};r.tokenColors&&!r.settings&&(r.settings=r.tokenColors,delete r.tokenColors),r.type||="dark",r.colorReplacements={...r.colorReplacements},r.settings||=[];let{bg:e,fg:n}=r;if(!e||!n){const s=r.settings?r.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(n=s.settings.foreground),s?.settings?.background&&(e=s.settings.background),!n&&r?.colors?.["editor.foreground"]&&(n=r.colors["editor.foreground"]),!e&&r?.colors?.["editor.background"]&&(e=r.colors["editor.background"]),n||(n=r.type==="light"?NE.light:NE.dark),e||(e=r.type==="light"?BE.light:BE.dark),r.fg=n,r.bg=e}r.settings[0]&&r.settings[0].settings&&!r.settings[0].scope||r.settings.unshift({settings:{foreground:r.fg,background:r.bg}});let i=0;const o=new Map;function a(s){if(o.has(s))return o.get(s);i+=1;const l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return r.colorReplacements?.[`#${l}`]?a(s):(o.set(s,l),l)}r.settings=r.settings.map(s=>{const l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),c=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!c)return s;const u={...s,settings:{...s.settings}};if(l){const g=a(s.settings.foreground);r.colorReplacements[g]=s.settings.foreground,u.settings.foreground=g}if(c){const g=a(s.settings.background);r.colorReplacements[g]=s.settings.background,u.settings.background=g}return u});for(const s of Object.keys(r.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!r.colors[s]?.startsWith("#")){const l=a(r.colors[s]);r.colorReplacements[l]=r.colors[s],r.colors[s]=l}return Object.defineProperty(r,FE,{enumerable:!1,writable:!1,value:!0}),r}async function Xj(t){return Array.from(new Set((await Promise.all(t.filter(r=>!hge(r)).map(async r=>await Lj(r).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function qj(t){return(await Promise.all(t.map(async e=>dge(e)?null:wb(await Lj(e))))).filter(e=>!!e)}class gde extends gge{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(r,e,n,i={}){super(r),this._resolver=r,this._themes=e,this._langs=n,this._alias=i,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const e=wb(r);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let e=this._textmateThemeCache.get(r);e||(e=yv.createFromRawTheme(r),this._textmateThemeCache.set(r,e)),this._syncRegistry.setTheme(e)}getGrammar(r){if(this._alias[r]){const e=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],e.has(r))throw new or(`Circular alias \`${Array.from(e).join(" -> ")} -> ${r}\``);e.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){if(this.getGrammar(r.name))return;const e=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(r.name)));this._resolver.addLanguage(r);const n={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const i=this.loadGrammarWithConfiguration(r.scopeName,1,n);if(i.name=r.name,this._resolvedGrammars.set(r.name,i),r.aliases&&r.aliases.forEach(o=>{this._alias[o]=r.name}),this._loadedLanguagesCache=null,e.size)for(const o of e)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const i of r)this.resolveEmbeddedLanguages(i);const e=Array.from(this._langGraph.entries()),n=e.filter(([i,o])=>!o);if(n.length){const i=e.filter(([o,a])=>a&&a.embeddedLangs?.some(s=>n.map(([l])=>l).includes(s))).filter(o=>!n.includes(o));throw new or(`Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of e)this._resolver.addLanguage(o);for(const[i,o]of e)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const e of r.embeddedLangs)this._langGraph.set(e,this._langMap.get(e))}}class hde{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(r,e){this._onigLib={createOnigScanner:n=>r.createScanner(n),createOnigString:n=>r.createString(n)},e.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(r){return this._langs.get(r)}loadGrammar(r){return this._scopeToLang.get(r)}addLanguage(r){this._langs.set(r.name,r),r.aliases&&r.aliases.forEach(e=>{this._langs.set(e,r)}),this._scopeToLang.set(r.scopeName,r),r.injectTo&&r.injectTo.forEach(e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(r.scopeName)})}getInjections(r){const e=r.split(".");let n=[];for(let i=1;i<=e.length;i++){const o=e.slice(0,i).join(".");n=[...n,...this._injections.get(o)||[]]}return n}}let kg=0;function dde(t){kg+=1,t.warnings!==!1&&kg>=10&&kg%10===0&&console.warn(`[Shiki] ${kg} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;if(!t.engine)throw new or("`engine` option is required for synchronous mode");const e=(t.langs||[]).flat(1),n=(t.themes||[]).flat(1).map(wb),i=new hde(t.engine,e),o=new gde(i,n,e,t.langAlias);let a;function s(I){v();const p=o.getGrammar(typeof I=="string"?I:I.name);if(!p)throw new or(`Language \`${I}\` not found, you may need to load it first`);return p}function l(I){if(I==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const p=o.getTheme(I);if(!p)throw new or(`Theme \`${I}\` not found, you may need to load it first`);return p}function c(I){v();const p=l(I);a!==I&&(o.setTheme(p),a=I);const m=o.getColorMap();return{theme:p,colorMap:m}}function u(){return v(),o.getLoadedThemes()}function g(){return v(),o.getLoadedLanguages()}function h(...I){v(),o.loadLanguages(I.flat(1))}async function d(...I){return h(await Xj(I))}async function f(...I){v();for(const p of I.flat(1))o.loadTheme(p)}async function C(...I){return v(),f(await qj(I))}function v(){if(r)throw new or("Shiki instance has been disposed")}function A(){r||(r=!0,o.dispose(),kg-=1)}return{setTheme:c,getTheme:l,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:g,loadLanguage:d,loadLanguageSync:h,loadTheme:C,loadThemeSync:f,dispose:A,[Symbol.dispose]:A}}let fde;async function Cde(t={}){const[r,e,n]=await Promise.all([qj(t.themes||[]),Xj(t.langs||[]),t.engine||ude(t.loadWasm||fde)]);return dde({...t,loadWasm:void 0,themes:r,langs:e,engine:n})}async function vde(t={}){const r=await Cde(t);return{getLastGrammarState:(e,n)=>Sge(r,e,n),codeToTokensBase:(e,n)=>Ib(r,e,n),codeToTokensWithThemes:(e,n)=>xj(r,e,n),codeToTokens:(e,n)=>Ev(r,e,n),codeToHast:(e,n)=>Sv(r,e,n),codeToHtml:(e,n)=>Yhe(r,e,n),...r,getInternalContext:()=>r}}var Ade=Object.defineProperty,Ide=(t,r,e)=>r in t?Ade(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,gp=(t,r,e)=>(Ide(t,typeof r!="symbol"?r+"":r,e),e);class Bs extends SyntaxError{constructor(r,e){super(r,{cause:e.cause}),gp(this,"patternOriginal"),gp(this,"patternConverted"),gp(this,"cursorPosition"),this.patternOriginal=e.pattern,this.patternConverted=e.converted,this.cursorPosition=e.cursor}}const pde={alnum:"0-9A-Za-z",alpha:"A-Za-z",ascii:"\0-",blank:" \\t",cntrl:"\0-",digit:"\\d",graph:"!-~",lower:"a-z",print:" -~",punct:"!-/:-@[-`{-~",space:"\\s",upper:"A-Z",xdigit:"0-9A-Fa-f",word:"\\w"},jE=new Set("gimsuyx");function mde(t,r={}){const{preserveFlags:e=!1,removePossessiveQuantifier:n=!1,removeAtomicGroup:i=!1,convertHexDigitsShorthand:o=!1}=r;let a="";const s=new Set,l=[],c=[];let u=!1,g=0;try{for(;g<t.length;){const h=t[g];for(;c.length&&c[0]>l.length;)c.shift();const d=l[0],f=u||c.length;if(h==="\\"){if(o){if(t[g+1]==="h"){const C="0-9A-Fa-f";d==="["?a+=C:a+=`[${C}]`,g+=2;continue}if(t[g+1]==="H"){if(d==="[")throw new Bs("Expending \\H in character class is not supported",{pattern:t,converted:a,cursor:g});a+="[^0-9A-Fa-f]",g+=2;continue}}a+=h+t[g+1],g+=2;continue}if(h==="#"&&f&&t[g-1].match(/\s/)&&d!=="["){for(let C=g+1;C<=t.length;C++)if(t[C]===`
34
34
  `||C===t.length){g=C;break}continue}if(h==="("&&d!=="["){if(t[g+1]==="?"){if(t[g+2]==="#"){for(let C=g+3;C<t.length;C++)if(t[C]===")"&&t[C-1]!=="\\"){g=C+1;break}continue}if(i&&t[g+2]===">"){a+="(?:",g+=3;continue}if(jE.has(t[g+2])){let C=g+3;for(;C<t.length&&jE.has(t[C]);C++);const v=t.slice(g+2,C),A=v.includes("x")&&v[0]!=="-";let I=[...v].filter(p=>p!=="x").join("");if(!e){if(I[0]==="-"){I=I.slice(1);for(const p of v)s.delete(p)}else for(const p of I)s.add(p);I=""}if(t[C]===")"){g=C+1,A&&(u=!0),I.length&&(a+=`(?${I})`);continue}else if(t[C]===":"){g=C+1,l.unshift(h),A&&c.unshift(l.length),a+=`(?${I}:`;continue}}l.unshift(h),a+=h+t[g+1]+t[g+2],g+=3}else l.unshift(h),a+=h,g+=1;continue}if(h===")"&&d!=="["){d==="("&&l.shift(),a+=h,g+=1;continue}if(h==="["){if(t[g+1]===":"){let C="",v=!1;t[g+2]==="^"&&(v=!0,g+=1);for(let A=g+2;A<t.length;A++){if(t[A]===":"){g=A+2;break}if(!t[A].match(/[a-z]/i)){C="";break}C+=t[A]}if(C){let A=pde[C];if(!A)throw new Bs(`Unknown posix class "${C}"`,{pattern:t,converted:a,cursor:g});v&&(A=`^${A}`),d==="["?a+=A:a+=`[${A}]`;continue}}d!=="["&&l.unshift(h),a+=h,g+=1;continue}if(h==="]"){d==="["&&l.shift(),a+=h,g+=1;continue}if(n&&h==="+"&&d!=="["&&"?+}*".includes(t[g-1])){g+=1;continue}f&&d!=="["&&h.match(/\s/)||(a+=h),g+=1}}catch(h){throw h instanceof Bs?h:new Bs(`Error lowering regex at position ${g}`,{pattern:t,converted:a,cursor:g,cause:h})}return{pattern:a,flags:[...s].join("")}}function yde(t,r={}){const{original:e=t,flags:n=["g"]}=r;if(t.startsWith("(?x)")||t.includes("(?x:"))throw new Bs("RegExp Free-spacing mode `(?x)` is not supported, you might want to run syntaxLowering() first",{pattern:e,converted:t});if(t.match(/\[:\w+:\]/))throw new Bs("POSIX character classes are not supported, you might want to run syntaxLowering() first",{pattern:e,converted:t});const i=new Set(Array.isArray(n)?n:n.split(""));if(r.ignoreContiguousAnchors&&(t=t.replace(/\\G/g,"")),t=t.replace(/\\A/g,"^").replace(/\\x\{([^}]*)\}/g,(o,a)=>`\\u${a.padStart(4,"0")}`).replace(/\(\?(-)?(\w+):/g,(o,a,s)=>{if(a)for(const l of s)i.delete(l);else for(const l of s)i.add(l);return"(?:"}).replace(/\(\?(-)?(\w+)\)/g,(o,a,s)=>{if(a)for(const l of s)i.delete(l);else for(const l of s)i.add(l);return""}),i.has("x"))throw new Bs("JavaScript does not support extended mode (x flag), you might want to run syntaxLowering() first",{pattern:e,converted:t});try{return new RegExp(t,[...i].join(""))}catch(o){throw new Bs("Failed to construct RegExp",{pattern:e,converted:t,cause:o})}}function bde(t,r={}){const{pattern:e,flags:n}=mde(t,{removePossessiveQuantifier:!0,removeAtomicGroup:!0,convertHexDigitsShorthand:!0,...r});return yde(e,{original:t,...r,flags:[...new Set([...n,...r.flags||[]])].join("")})}const UE=4294967295;class wde{patterns;cache;forgiving;regexps;constructor(r,e,n){this.patterns=r,this.cache=e,this.forgiving=n,this.regexps=r.map(i=>{const o=e?.get(i);if(o){if(o instanceof RegExp)return o;if(n)return null;throw o}try{const a=bde(i.replace(/\|\\G(\||\))/g,"$1").replace(/(\(|\|)\\G\|/g,"$1").replaceAll("[^\\s[-?:,\\[\\]{}#&*!|>'\"%@`]]","[^\\s\\-?:,\\[\\]{}#&*!|>'\"%@`]"),{flags:"dgm",ignoreContiguousAnchors:!0});return e?.set(i,a),a}catch(a){if(e?.set(i,a),n)return null;throw a}})}findNextMatchSync(r,e){const n=typeof r=="string"?r:r.content,i=[];function o(a,s){return{index:a,captureIndices:s.indices.map(l=>l==null?{end:UE,start:UE,length:0}:{start:l[0],length:l[1]-l[0],end:l[1]})}}for(let a=0;a<this.regexps.length;a++){const s=this.regexps[a];if(s)try{s.lastIndex=e;const l=s.exec(n);if(!l)continue;if(l.index===e)return o(a,l);i.push([a,l])}catch(l){if(this.forgiving)continue;throw l}}if(i.length){const a=Math.min(...i.map(s=>s[1].index));for(const[s,l]of i)if(l.index===a)return o(s,l)}return null}}function $de(t={}){const{forgiving:r=!1,cache:e=new Map}=t;return{createScanner(n){return new wde(n,e,r)},createString(n){return{content:n}}}}const $b=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},_de={},Mde={class:"h-3 w-3 $ui-inline-fcc"},zde=b("svg",{class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[b("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),b("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),Ede=[zde];function Sde(t,r){return M(),x("div",Mde,Ede)}const Qj=$b(_de,[["render",Sde]]),Tde={key:2},ct=ge({inheritAttrs:!1,__name:"Button",props:{type:{default:"default"},round:{type:[String,Boolean],default:"normal"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:"normal"},flat:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:r}){const e=t,n=r,i=Tie(),o=U(()=>i.to?"router-link":i.href?"a":"button"),a=U(()=>e.loading||e.disabled);function s(g){if(a.value){g.preventDefault(),g.stopPropagation(),g.stopImmediatePropagation();return}n("click",g)}const l={common:{default:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",primary:"active:bg-primary-500-darker",accent:"active:bg-accent-500-darker",danger:"active:bg-danger-500-darker",warning:"active:bg-warning-500-darker",info:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",success:"active:bg-primary-100-darker dark:active:bg-gray-800-darker"},normal:{default:"bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter dark:hover:text-white",primary:" text-white bg-primary-500 hover:bg-primary-500-lighter dark:hover:bg-primary-500-darker",accent:"text-white bg-accent-500 hover:bg-accent-500-lighter dark:bg-accent-500-darker dark:bg-accent-300",danger:"text-white bg-danger-500 hover:bg-danger-500-lighter dark:hover:bg-danger-500-darker",warning:"text-white bg-warning-500 hover:bg-warning-500-lighter dark:hover:bg-warning-500-darker",info:"text-info-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter",success:"text-primary-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter"},flat:{default:"hover:bg-primary-100 hover:text-black !dark:text-white dark:hover:bg-primary-800",primary:"hover:bg-primary-500 hover:text-white",accent:"hover:bg-accent-500 hover:text-white",danger:"hover:bg-danger-500 hover:text-white",warning:"hover:bg-warning-500 hover:text-white",info:"hover:bg-primary-100 hover:text-info-500 dark:hover:bg-gray-800 dark:hover:text-info-400",success:"hover:bg-primary-100 hover:text-primary-500 dark:hover:bg-primary-800 dark:hover:text-primary-400"},outlined:{default:"hover:border-primary-100 hover:text-primary-300 hover:active:ring-primary-100:5 hover:active:bg-primary-100:5",primary:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5",accent:"hover:border-accent-500 hover:text-accent-500 active:ring-accent-500:5 active:bg-accent-500:5",danger:"hover:border-danger-500 hover:text-danger-500 active:ring-danger-500:5 active:bg-danger-500:5",warning:"hover:border-warning-500 hover:text-warning-500 active:ring-warning-500:5 active:bg-warning-500:5",info:"hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",success:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"}},c=jN(),u=U(()=>e.flat?l.flat[e.type]:e.outlined?l.outlined[e.type]:l.normal[e.type]);return(g,h)=>(M(),ie(h1(o.value),Gr(g.$attrs,{role:"button","aria-disabled":a.value,class:["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition",[[l.common[e.type]],{"rounded-full":e.round==="full","$ui-base-br":e.round==="normal","opacity-50 cursor-not-allowed":a.value,"bg-transparent":e.flat||e.outlined},[g.outlined?"b-1 $ui-border-base active:ring-3 shadow-sm":"border-none",g.size==="mini"?"px1 text-3 h5.5":"px3.5 text-3.5 h8",u.value]]],onClickCapture:s}),{default:W(()=>[g.loading?(M(),ie(Qj,{key:0,class:"mt0.5 h-full w3"})):Qe(g.$slots,"icon",{key:1,class:"h-full w3 $ui-inline-fcc"}),y(c).default?(M(),x("div",Tde,[Qe(g.$slots,"default")])):se("",!0),Qe(g.$slots,"icon-right")]),_:3},16,["aria-disabled","class"]))}}),Lde={},kde={class:"mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function Ode(t,r){return M(),x("span",kde,[Qe(t.$slots,"default")])}const GE=$b(Lde,[["render",Ode]]),Ft=ge({__name:"Icon",props:{icon:{},inline:{type:Boolean},action:{type:Boolean,default:!1}},setup(t){return(r,e)=>(M(),ie(h1(r.inline?"span":"div"),{class:Te(["$ui-base",[r.icon,r.action?"cursor-pointer hover:op50":""]])},null,8,["class"]))}}),Hde=ge({__name:"Notification",props:{message:{},type:{default:"info"},classes:{},duration:{default:3e3},placement:{default:"top-center"},onClose:{}},setup(t){const r=t,e={success:"i-carbon-checkmark",info:"i-material-symbols-light-info",warning:"i-carbon-warning",error:"i-carbon-close"},n={success:"text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",info:"text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",warning:"text-amber-4 border-amber-2 dark:border-amber-4",error:"text-red-4 border-red-2 dark:border-red-4"},i=G(!1);gi(()=>{i.value=!0,setTimeout(()=>{i.value=!1},r.duration)});const o=U(()=>r.placement.startsWith("top")?"translate-y--300%":"translate-y-300%");return(a,s)=>(M(),x("div",{class:Te(["fixed left-0 right-0 $ui-z-max-override text-center",[{"top-0":a.placement.startsWith("top")},{"bottom-0":a.placement.startsWith("bottom")}]])},[N(Ud,{"enter-from-class":o.value,"leave-to-class":o.value,onAfterLeave:s[0]||(s[0]=()=>{var l;i.value||(l=a.onClose)==null||l.call(a)})},{default:W(()=>[i.value?(M(),x("div",{key:0,class:"flex transition-all duration-300",style:Sr({justifyContent:a.placement.includes("right")?"right":a.placement.includes("left")?"left":"center"})},[b("div",{class:Te(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base",[a.classes,n[a.type]]])},[b("div",{class:Te(e[a.type])},null,2),b("div",null,Ee(a.message),1)],2)],4)):se("",!0)]),_:1},8,["enter-from-class","leave-to-class"])],2))}});function Z6(t){const r=document.createElement("div");r.classList.add("$ui-z-max-override","fixed"),document.body.appendChild(r);const e=t.onClose;function n(){wM(null,r)}t.onClose=()=>{n(),e?.(),document.body.removeChild(r)};const i=oc(Hde,t);wM(i,r)}const xde="__vue-devtools-theme__";function YA(t={}){const r=lue({...t,storageKey:xde});return{colorMode:r,isDark:U(()=>r.value==="dark")}}const Vde={class:"$ui-dark-toggle-vtr"},Jj=ge({__name:"DarkToggle",props:{isDark:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},animationDuration:{default:400}},setup(t){const r=t,e=va(r,"isDark"),{colorMode:n}=YA({initialValue:e.value?"dark":"light",onChanged:s=>{e.value=s==="dark"}}),i=U({get:()=>n.value==="dark",set:s=>n.value=s?"dark":"light"}),o=document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function a(s){if(!o||!s||!r.animation){i.value=!i.value;return}const l=s.clientX,c=s.clientY,u=Math.hypot(Math.max(l,innerWidth-l),Math.max(c,innerHeight-c));document.startViewTransition(async()=>{i.value=!i.value,await ln()}).ready.then(()=>{const g=[`circle(0px at ${l}px ${c}px)`,`circle(${u}px at ${l}px ${c}px)`];document.documentElement.animate({clipPath:i.value?[...g].reverse():g},{duration:r.animationDuration,easing:"ease-in",pseudoElement:i.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}return(s,l)=>(M(),x("span",Vde,[Qe(s.$slots,"default",zy(OA({mode:y(n),isDark:i.value,toggle:a})))]))}}),Pde={},Rde={class:"$ui-base border $ui-border-base rounded shadow-sm"};function Dde(t,r){return M(),x("div",Rde,[Qe(t.$slots,"default")])}const A5=$b(Pde,[["render",Dde]]),_b=ge({__name:"Overlay",props:{dim:{type:Boolean},blur:{type:Boolean},position:{default:"fixed"}},setup(t){return(r,e)=>(M(),x("div",{class:Te(["left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base",[r.dim?"bg-opacity-50!":"bg-opacity-0!",r.blur?"backdrop-blur-sm":"",r.position]])},[Qe(r.$slots,"default")],2))}}),Nde={class:"h7.5 w-full $ui-fbc"},Bde={class:"text-4.5"},Fde=b("div",{class:"i-carbon-close"},null,-1),jde=[Fde],Ude={class:"content transition-all transition-duration-300"},Gde={class:"footer h8 w-full transition-all transition-duration-300 delay-250"},Wde={class:"$ui-fcc"},eU=ge({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},title:{default:"Dialog"},width:{default:"32rem"},height:{default:"18rem"},closable:{type:Boolean,default:!0},mountTo:{default:"body"},dim:{type:Boolean},blur:{type:Boolean},position:{}},emits:["close","update:modelValue"],setup(t,{emit:r}){const e=t,n=va(e,"modelValue",r,{passive:!0}),i=vue(()=>window.document.documentElement);wn(()=>{n.value?i.value=!0:i.value=!1});function o(){n.value&&e.autoClose&&(n.value=!1)}lj("Escape",()=>{o()});const a=G(!1);return gi(()=>a.value=!0),(s,l)=>a.value||s.mountTo==="body"?(M(),ie(nB,{key:0,to:s.mountTo},[N(Ud,{"enter-from-class":"opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0","enter-to-class":"opacity-100 [&_.modal]:scale-100","leave-from-class":"opacity-100 [&_.modal]:scale-100","leave-to-class":"opacity-0 [&_.modal]:scale-95"},{default:W(()=>[y(n)?(M(),ie(_b,{key:0,dim:s.dim,blur:s.blur,position:s.position},{default:W(()=>[b("div",{class:"modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",style:Sr({width:e.width,height:e.height})},[b("div",Nde,[b("div",Bde,[Qe(s.$slots,"title",{},()=>[ze(Ee(e.title),1)])]),s.closable?(M(),x("div",{key:0,class:"h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",onClick:o},jde)):se("",!0)]),b("div",Ude,[Qe(s.$slots,"default")]),b("div",Gde,[Qe(s.$slots,"footer",{},()=>[Qe(s.$slots,"footer",{},()=>[b("div",Wde,[N(ct,{type:"primary",onClick:o},{default:W(()=>[ze(" close ")]),_:1})])])])])],4)]),_:3},8,["dim","blur","position"])):se("",!0)]),_:3})],8,["to"])):se("",!0)}}),Zde=["type","placeholder","disabled"],Kde={key:3,class:"pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"},hp="transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",Za=ge({__name:"Input",props:{modelValue:{},placeholder:{default:""},variant:{default:"normal"},disabled:{type:Boolean,default:!1},leftIcon:{},rightIcon:{},loading:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},loadingDebounceTime:{default:0},readonly:{type:Boolean,default:!1},type:{default:"text"}},emits:["update:modelValue","updateFocused","keyTab"],setup(t,{emit:r}){const e=t,n=r,i=va(e,"modelValue",n),o=j2e(U(()=>e.loading),e.loadingDebounceTime),a=U2e(!1,{onChanged(g){n("updateFocused",g)}}),s=U(()=>e.variant==="flat"||e.variant==="warning"||e.disabled||e.readonly),l=U(()=>e.disabled||o.value),c=G();let u=!1;return wn(()=>{o.value&&a.value?u=!0:!o.value&&u&&(u=!1,ln(()=>{a.value=!0}))}),gi(()=>{e.autoFocus&&(a.value=!0)}),wn(()=>{var g;a.value&&((g=c.value)==null||g.focus())}),(g,h)=>(M(),x("div",{class:Te(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100",[{"border-none bg-transparent group":g.variant==="flat","cursor-not-allowed opacity-50":l.value,accent:g.variant==="accent",focused:y(a)},[g.variant==="warning"?"border-warning-500 dark:border-warning-300":"border-primary-100 dark:border-gray-700"]]]),onClick:h[2]||(h[2]=()=>{a.value=!0})},[g.leftIcon?(M(),x("div",{key:0,class:Te(hp)},[N(Ft,{icon:g.leftIcon},null,8,["icon"])])):se("",!0),Vt(b("input",{ref_key:"inputRef",ref:c,"onUpdate:modelValue":h[0]||(h[0]=d=>nt(i)?i.value=d:null),class:"$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",type:g.type,placeholder:g.placeholder,disabled:l.value||g.readonly,onBlur:h[1]||(h[1]=d=>a.value=!1)},null,40,Zde),[[Zoe,y(i)]]),y(o)?(M(),x("div",{key:1,class:Te(hp)},[N(Qj)])):g.rightIcon?(M(),x("div",{key:2,class:Te(hp)},[N(Ft,{icon:g.rightIcon},null,8,["icon"])])):se("",!0),s.value?se("",!0):(M(),x("div",Kde))],2))}}),Yde={class:"overflow-hidden rounded-lg shadow-lg"},Xde=b("div",{class:"p2 opacity-40"}," Empty... ",-1),tu=ge({__name:"Dropdown",props:{label:{},buttonProps:{default:()=>({})},buttonClass:{default:""},trigger:{default:"click"},distance:{default:0},skidding:{},placement:{},disabled:{type:Boolean,default:!1},shown:{type:Boolean}},emits:["update:visible"],setup(t){const r=t;return Li("$ui-dropdown-disabled",U(()=>r.disabled)),(e,n)=>(M(),ie(y(L2e),{disabled:e.disabled,class:"inline-block w-auto",shown:e.shown,triggers:[e.trigger],distance:e.distance+6,placement:e.placement,skidding:e.skidding,"onUpdate:shown":n[0]||(n[0]=i=>e.$emit("update:visible",i)),onClick:n[1]||(n[1]=i=>{i.stopPropagation()})},{popper:W(({hide:i})=>[b("div",Yde,[Qe(e.$slots,"popper",zy(OA({hide:i})),()=>[Xde])])]),default:W(()=>[Qe(e.$slots,"default",{},()=>[N(ct,Gr({...e.buttonProps,disabled:e.disabled},{class:e.buttonClass}),BN({icon:W(()=>[Qe(e.$slots,"button-icon")]),"icon-right":W(()=>[Qe(e.$slots,"button-icon-right")]),_:2},[e.label?{name:"default",fn:W(()=>[ze(Ee(e.label),1)]),key:"0"}:void 0]),1040,["class"])])]),_:3},8,["disabled","shown","triggers","distance","placement","skidding"]))}}),WE=ge({__name:"DropdownButton",props:{type:{},round:{type:[String,Boolean]},loading:{type:Boolean},disabled:{type:Boolean},size:{},flat:{type:Boolean},outlined:{type:Boolean},keepOpen:{type:Boolean,default:!1}},setup(t){const r=t,e=mr("$ui-dropdown-disabled",void 0);return(n,i)=>Vt((M(),ie(ct,Gr({...r,round:!1},{disabled:y(e),class:"w-full justify-start transition-colors not-action:bg-transparent!"}),{icon:W(()=>[Qe(n.$slots,"icon")]),default:W(()=>[Qe(n.$slots,"default")]),_:3},16,["disabled"])),[[y(JF)]])}}),qde={class:"$ui-fec gap2.5"},Qde=ge({__name:"Confirm",props:{modelValue:{type:Boolean},content:{},cancelText:{default:"Cancel"},confirmText:{default:"Confirm"},width:{default:"20%"},height:{default:"9rem"},title:{default:"Warning"},loading:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0}},emits:["update:modelValue","confirm","cancel","close"],setup(t,{emit:r}){const e=t,n=r,i=va(e,"modelValue",n);wn(()=>{i.value||n("close")});function o(a=!1){(e.autoClose||a)&&(i.value=!1)}return(a,s)=>(M(),ie(eU,{modelValue:y(i),"onUpdate:modelValue":s[2]||(s[2]=l=>nt(i)?i.value=l:null),width:a.width,height:a.height,title:a.title,closable:!1},{footer:W(()=>[b("div",qde,[N(ct,{onClick:s[0]||(s[0]=()=>{n("cancel"),o(!0)})},{default:W(()=>[ze(Ee(a.cancelText),1)]),_:1}),N(ct,{loading:a.loading,type:"primary",onClick:s[1]||(s[1]=()=>{n("confirm"),o()})},{default:W(()=>[ze(Ee(a.confirmText),1)]),_:1},8,["loading"])])]),default:W(()=>[Qe(a.$slots,"default",{class:"h-auto w-auto"},()=>[ze(Ee(a.content),1)])]),_:3},8,["modelValue","width","height","title"]))}}),Jde={class:"m1 min-w-35 w-auto flex flex-col"},efe=["onClick"],tfe=b("div",{class:"i-mdi-chevron-down"},null,-1),sd=ge({__name:"Select",props:{modelValue:{},multiple:{default:!1},options:{},placeholder:{default:"Select..."},autoClose:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},labelRenderer:{type:Function,default:t=>String(t)},buttonProps:{default:()=>({})}},emits:["update:modelValue"],setup(t,{emit:r}){const e=t,n=r,i=jN(),o=U({get:()=>e.modelValue,set:l=>n("update:modelValue",l)}),a=U(()=>{const l=e.options.find(c=>c.value===o.value);return l!=null&&l.label?e.labelRenderer(l.label):e.placeholder});function s(l){e.multiple?o.value=o.value.includes(l.value)?o.value.filter(c=>c!==l.value):[...o.value,l.value]:o.value=l.value}return(l,c)=>(M(),ie(tu,Gr({label:a.value},{buttonProps:l.buttonProps,disabled:l.disabled}),BN({popper:W(()=>[b("div",Jde,[y(i).item?(M(!0),x(Se,{key:0},It(l.options,u=>(M(),x("div",{key:u.value,class:"cursor-pointer",onClick:g=>s(u)},[Qe(l.$slots,"item",Gr({ref_for:!0},{item:u,active:l.multiple?o.value.includes(u.value):u.value===o.value,disabled:l.disabled}))],8,efe))),128)):(M(!0),x(Se,{key:1},It(l.options,u=>Vt((M(),ie(ct,{key:u.value,disabled:l.disabled,round:"normal",class:Te(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!",{active:l.multiple?o.value.includes(u.value):u.value===o.value}]),onClick:g=>s(u)},{default:W(()=>[ze(Ee(u.label),1)]),_:2},1032,["disabled","class","onClick"])),[[y(JF),l.autoClose]])),128))])]),"button-icon-right":W(()=>[tfe]),_:2},[y(i).button?{name:"default",fn:W(()=>[Qe(l.$slots,"button")]),key:"0"}:void 0]),1040,["label"]))}}),K6=ge({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:r}){const e=va(t,"modelValue",r),n=hb(e);return(i,o)=>(M(),x("div",{class:Te([[i.disabled?"cursor-not-allowed":"cursor-pointer"],"$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),role:"checkbox",onClick:o[0]||(o[0]=a=>!i.disabled&&y(n)())},[Qe(i.$slots,"default"),b("div",{class:Te([{selected:y(e)},"group relative $ui-base h4 w8 rounded-2 bg-primary-100 transition-colors dark:bg-gray-700 [&.selected]:bg-primary-500!"])},[b("div",{class:Te(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white",[{"group-hover:opacity-75 group-active:scale-85":!i.disabled},{"opacity-65":i.disabled}]])},null,2)],2)],2))}}),c2=ge({__name:"Checkbox",props:{modelValue:{type:Boolean},variant:{default:"normal"}},emits:["update:modelValue"],setup(t,{emit:r}){const e=va(t,"modelValue",r);return(n,i)=>(M(),x("div",{class:Te(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out",[y(e)?n.variant==="normal"?"bg-primary-500 border-primary-200 dark:border-primary-100":"bg-accent-500 border-accent-200 dark:border-accent-100":""]]),onClick:i[0]||(i[0]=o=>e.value=!y(e))},[b("div",{class:Te([[y(e)?"opacity-100":"opacity-0"],"h-60% w-35% transform-translate-y--0.25 transform-rotate-45 border-width-[0_0.125rem_0.125rem_0] border-white border-solid transition-opacity duration-200 ease-in-out"])},null,2)],2))}}),tU=ge({__name:"Drawer",props:{modelValue:{type:Boolean},mountTo:{default:"body"},placement:{default:"right"},closeOutside:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},contentClass:{},permanent:{type:Boolean,default:!1},contentBlur:{type:Boolean,default:!1},top:{},dim:{type:Boolean},blur:{type:Boolean},position:{}},emits:["update:modelValue","close"],setup(t,{emit:r}){const e=t,n=r,{height:i}=uue(()=>typeof e.top=="string"?document.querySelector(e.top):e.top,void 0,{box:"border-box"}),o=va(e,"modelValue",n),a={left:{class:"left-0 h-full b-r",transition:"[&_.drawer]:translate-x--100%"},right:{class:"right-0 h-full b-l",transition:"[&_.drawer]:translate-x-full"},top:{class:"w-full b-b",transition:"[&_.drawer]:translate-y--100%"},bottom:{class:"bottom-0 w-full b-t",transition:"[&_.drawer]:translate-y-100%"}};lj("Escape",()=>{e.closable&&(o.value=!1)});const s=U(()=>a[e.placement]),l=G(!1);return gi(()=>l.value=!0),(c,u)=>l.value||c.mountTo==="body"?(M(),ie(nB,{key:0,to:c.mountTo},[N(Ud,{"enter-from-class":`${s.value.transition}`,"leave-to-class":`${s.value.transition}`},{default:W(()=>[y(o)?(M(),ie(_b,{key:0,class:Te({"pointer-events-none":c.permanent}),dim:c.dim,blur:c.blur,position:c.position,onClick:u[2]||(u[2]=g=>c.closeOutside&&c.closable&&(o.value=!1))},{default:W(()=>[b("div",{class:Te([[s.value.class,c.contentClass??"",c.contentBlur?"$ui-glass-effect":"$ui-bg-base"],"drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),style:Sr({top:c.placement==="bottom"?"auto":`${y(i)}px`,height:["top","bottom"].includes(c.placement)?"auto":`calc(100% - ${y(i)}px)`}),onClick:u[1]||(u[1]=ni(()=>{},["stop"]))},[c.closable?(M(),x("div",{key:0,class:"i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",onClick:u[0]||(u[0]=g=>o.value=!1)})):se("",!0),Qe(c.$slots,"default")],6)]),_:3},8,["class","dim","blur","position"])):se("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],8,["to"])):se("",!0)}}),rfe=ge({__name:"Tooltip",props:{trigger:{},distance:{},skidding:{},placement:{},disabled:{type:Boolean},shown:{type:Boolean}},setup(t){return(r,e)=>(M(),ie(y(k2e),Gr({disabled:r.disabled,placement:r.placement},r.$attrs),{popper:W(()=>[Qe(r.$slots,"popper")]),default:W(()=>[Qe(r.$slots,"default")]),_:3},16,["disabled","placement"]))}}),nfe=["innerHTML"],Y6=ge({__name:"IcIcon",props:{name:{}},setup(t){const r=t,e=U(()=>_ue[r.name]??"");return(n,i)=>(M(),x("div",null,[(M(),x("svg",{class:"custom-svg h-1em w-1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",innerHTML:e.value},null,8,nfe))]))}}),W0=Oi();let ZE=null;function ife(t,r="text"){var e;if(!ZE&&!W0.value){const i=$de();ZE=vde({themes:[mi(()=>import("./vitesse-dark-BLmvGqlk.js"),[],import.meta.url),mi(()=>import("./vitesse-light-BYelj_cE.js"),[],import.meta.url)],langs:[mi(()=>import("./json-D85lwgPO.js"),[],import.meta.url),mi(()=>import("./yaml-DOt8O2FJ.js"),[],import.meta.url),mi(()=>import("./css-C31OBGbl.js"),[],import.meta.url),mi(()=>import("./javascript-Wkyh6-uf.js"),[],import.meta.url),mi(()=>import("./typescript-KCgU82S2.js"),[],import.meta.url),mi(()=>import("./vue-ClP425Kk.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),mi(()=>import("./vue-html-Cint6D83.js"),__vite__mapDeps([7,0,1,2,3,4,5,6]),import.meta.url),mi(()=>import("./html-CrC0eaF2.js"),__vite__mapDeps([1,2,3]),import.meta.url),mi(()=>import("./diff-DvyTQcux.js"),[],import.meta.url),mi(()=>import("./shellscript-DKrjeWrU.js"),[],import.meta.url)],engine:i}).then(o=>{W0.value=o})}const n=(e=W0.value)==null?void 0:e.getLoadedLanguages().includes(r);return n?{code:W0.value.codeToHtml(t,{lang:r,themes:{dark:"vitesse-dark",light:"vitesse-light"}}),supported:!0}:{code:t,supported:n}}const ofe=["innerHTML"],afe={class:"shiki"},sfe=["textContent"],lfe=b("br",null,null,-1),Mb=ge({__name:"CodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},transformRendered:{}},emits:["loaded"],setup(t,{emit:r}){const e=t,n=r,i=U(()=>{const o=e.lang==="text"?{code:e.code,supported:!1}:ife(e.code,e.lang)||{code:e.code,supported:!1};return o.supported&&e.transformRendered&&(o.code=e.transformRendered(o.code)),o.supported&&ln(()=>n("loaded")),o});return(o,a)=>o.lang&&i.value.supported?(M(),x("pre",{key:0,class:Te(["code-block",o.lines?"code-block-lines":""]),innerHTML:i.value.code},null,10,ofe)):(M(),x("pre",{key:1,class:Te(["code-block",o.lines?"code-block-lines":""])},[b("pre",afe,[b("code",null,[(M(!0),x(Se,null,It(o.code.split(`
35
35
  `),(s,l)=>(M(),x(Se,{key:l},[b("span",{class:"line",textContent:Ee(s)},null,8,sfe),lfe],64))),128))])])],2))}}),cfe=["src","alt"],ufe=["title"],KE="custom-ic-",ef=ge({__name:"TabIcon",props:{icon:{},title:{},showTitle:{type:Boolean,default:!0},fallback:{}},setup(t){const r=t,e=G(r.icon);et(()=>r.icon,i=>{e.value=i});function n(){e.value=r.fallback}return(i,o)=>y(e)&&y(nne)(y(e))?(M(),x("img",Gr({key:0,style:{width:"1em",height:"1em"}},i.$attrs,{src:y(e),alt:i.title,onError:n}),null,16,cfe)):y(e)?.startsWith(KE)?(M(),ie(y(Y6),Gr({key:1,name:y(e).slice(KE.length)},i.$attrs,{title:i.showTitle?i.title:void 0}),null,16,["name","title"])):(M(),x("div",Gr({key:2,style:{width:"1em",height:"1em"}},i.$attrs,{class:y(e)||"i-carbon-bring-forward",title:i.showTitle?i.title:void 0}),null,16,ufe))}});function Ka(t){return Array.isArray?Array.isArray(t):iU(t)==="[object Array]"}const gfe=1/0;function hfe(t){if(typeof t=="string")return t;let r=t+"";return r=="0"&&1/t==-gfe?"-0":r}function dfe(t){return t==null?"":hfe(t)}function Zo(t){return typeof t=="string"}function rU(t){return typeof t=="number"}function ffe(t){return t===!0||t===!1||Cfe(t)&&iU(t)=="[object Boolean]"}function nU(t){return typeof t=="object"}function Cfe(t){return nU(t)&&t!==null}function zi(t){return t!=null}function dp(t){return!t.trim().length}function iU(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const vfe="Incorrect 'index' type",Afe=t=>`Invalid value for key ${t}`,Ife=t=>`Pattern length exceeds max of ${t}.`,pfe=t=>`Missing ${t} property in key`,mfe=t=>`Property 'weight' in key '${t}' must be a positive integer`,YE=Object.prototype.hasOwnProperty;class yfe{constructor(r){this._keys=[],this._keyMap={};let e=0;r.forEach(n=>{let i=oU(n);this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight}),this._keys.forEach(n=>{n.weight/=e})}get(r){return this._keyMap[r]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function oU(t){let r=null,e=null,n=null,i=1,o=null;if(Zo(t)||Ka(t))n=t,r=XE(t),e=X6(t);else{if(!YE.call(t,"name"))throw new Error(pfe("name"));const a=t.name;if(n=a,YE.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(mfe(a));r=XE(a),e=X6(a),o=t.getFn}return{path:r,id:e,weight:i,src:n,getFn:o}}function XE(t){return Ka(t)?t:t.split(".")}function X6(t){return Ka(t)?t.join("."):t}function bfe(t,r){let e=[],n=!1;const i=(o,a,s)=>{if(zi(o))if(!a[s])e.push(o);else{let l=a[s];const c=o[l];if(!zi(c))return;if(s===a.length-1&&(Zo(c)||rU(c)||ffe(c)))e.push(dfe(c));else if(Ka(c)){n=!0;for(let u=0,g=c.length;u<g;u+=1)i(c[u],a,s+1)}else a.length&&i(c,a,s+1)}};return i(t,Zo(r)?r.split("."):r,0),n?e:e[0]}const wfe={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},$fe={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,r)=>t.score===r.score?t.idx<r.idx?-1:1:t.score<r.score?-1:1},_fe={location:0,threshold:.6,distance:100},Mfe={useExtendedSearch:!1,getFn:bfe,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var at={...$fe,...wfe,..._fe,...Mfe};const zfe=/[^ ]+/g;function Efe(t=1,r=3){const e=new Map,n=Math.pow(10,r);return{get(i){const o=i.match(zfe).length;if(e.has(o))return e.get(o);const a=1/Math.pow(o,.5*t),s=parseFloat(Math.round(a*n)/n);return e.set(o,s),s},clear(){e.clear()}}}class zb{constructor({getFn:r=at.getFn,fieldNormWeight:e=at.fieldNormWeight}={}){this.norm=Efe(e,3),this.getFn=r,this.isCreated=!1,this.setIndexRecords()}setSources(r=[]){this.docs=r}setIndexRecords(r=[]){this.records=r}setKeys(r=[]){this.keys=r,this._keysMap={},r.forEach((e,n)=>{this._keysMap[e.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Zo(this.docs[0])?this.docs.forEach((r,e)=>{this._addString(r,e)}):this.docs.forEach((r,e)=>{this._addObject(r,e)}),this.norm.clear())}add(r){const e=this.size();Zo(r)?this._addString(r,e):this._addObject(r,e)}removeAt(r){this.records.splice(r,1);for(let e=r,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(r,e){return r[this._keysMap[e]]}size(){return this.records.length}_addString(r,e){if(!zi(r)||dp(r))return;let n={v:r,i:e,n:this.norm.get(r)};this.records.push(n)}_addObject(r,e){let n={i:e,$:{}};this.keys.forEach((i,o)=>{let a=i.getFn?i.getFn(r):this.getFn(r,i.path);if(zi(a)){if(Ka(a)){let s=[];const l=[{nestedArrIndex:-1,value:a}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(zi(u))if(Zo(u)&&!dp(u)){let g={v:u,i:c,n:this.norm.get(u)};s.push(g)}else Ka(u)&&u.forEach((g,h)=>{l.push({nestedArrIndex:h,value:g})})}n.$[o]=s}else if(Zo(a)&&!dp(a)){let s={v:a,n:this.norm.get(a)};n.$[o]=s}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function aU(t,r,{getFn:e=at.getFn,fieldNormWeight:n=at.fieldNormWeight}={}){const i=new zb({getFn:e,fieldNormWeight:n});return i.setKeys(t.map(oU)),i.setSources(r),i.create(),i}function Sfe(t,{getFn:r=at.getFn,fieldNormWeight:e=at.fieldNormWeight}={}){const{keys:n,records:i}=t,o=new zb({getFn:r,fieldNormWeight:e});return o.setKeys(n),o.setIndexRecords(i),o}function Z0(t,{errors:r=0,currentLocation:e=0,expectedLocation:n=0,distance:i=at.distance,ignoreLocation:o=at.ignoreLocation}={}){const a=r/t.length;if(o)return a;const s=Math.abs(n-e);return i?a+s/i:s?1:a}function Tfe(t=[],r=at.minMatchCharLength){let e=[],n=-1,i=-1,o=0;for(let a=t.length;o<a;o+=1){let s=t[o];s&&n===-1?n=o:!s&&n!==-1&&(i=o-1,i-n+1>=r&&e.push([n,i]),n=-1)}return t[o-1]&&o-n>=r&&e.push([n,o-1]),e}const ul=32;function Lfe(t,r,e,{location:n=at.location,distance:i=at.distance,threshold:o=at.threshold,findAllMatches:a=at.findAllMatches,minMatchCharLength:s=at.minMatchCharLength,includeMatches:l=at.includeMatches,ignoreLocation:c=at.ignoreLocation}={}){if(r.length>ul)throw new Error(Ife(ul));const u=r.length,g=t.length,h=Math.max(0,Math.min(n,g));let d=o,f=h;const C=s>1||l,v=C?Array(g):[];let A;for(;(A=t.indexOf(r,f))>-1;){let k=Z0(r,{currentLocation:A,expectedLocation:h,distance:i,ignoreLocation:c});if(d=Math.min(k,d),f=A+u,C){let S=0;for(;S<u;)v[A+S]=1,S+=1}}f=-1;let I=[],p=1,m=u+g;const w=1<<u-1;for(let k=0;k<u;k+=1){let S=0,E=m;for(;S<E;)Z0(r,{errors:k,currentLocation:h+E,expectedLocation:h,distance:i,ignoreLocation:c})<=d?S=E:m=E,E=Math.floor((m-S)/2+S);m=E;let T=Math.max(1,h-E+1),L=a?g:Math.min(h+E,g)+u,O=Array(L+2);O[L+1]=(1<<k)-1;for(let B=L;B>=T;B-=1){let te=B-1,ee=e[t.charAt(te)];if(C&&(v[te]=+!!ee),O[B]=(O[B+1]<<1|1)&ee,k&&(O[B]|=(I[B+1]|I[B])<<1|1|I[B+1]),O[B]&w&&(p=Z0(r,{errors:k,currentLocation:te,expectedLocation:h,distance:i,ignoreLocation:c}),p<=d)){if(d=p,f=te,f<=h)break;T=Math.max(1,2*h-f)}}if(Z0(r,{errors:k+1,currentLocation:h,expectedLocation:h,distance:i,ignoreLocation:c})>d)break;I=O}const _={isMatch:f>=0,score:Math.max(.001,p)};if(C){const k=Tfe(v,s);k.length?l&&(_.indices=k):_.isMatch=!1}return _}function kfe(t){let r={};for(let e=0,n=t.length;e<n;e+=1){const i=t.charAt(e);r[i]=(r[i]||0)|1<<n-e-1}return r}class sU{constructor(r,{location:e=at.location,threshold:n=at.threshold,distance:i=at.distance,includeMatches:o=at.includeMatches,findAllMatches:a=at.findAllMatches,minMatchCharLength:s=at.minMatchCharLength,isCaseSensitive:l=at.isCaseSensitive,ignoreLocation:c=at.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:i,includeMatches:o,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:l,ignoreLocation:c},this.pattern=l?r:r.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(h,d)=>{this.chunks.push({pattern:h,alphabet:kfe(h),startIndex:d})},g=this.pattern.length;if(g>ul){let h=0;const d=g%ul,f=g-d;for(;h<f;)u(this.pattern.substr(h,ul),h),h+=ul;if(d){const C=g-ul;u(this.pattern.substr(C),C)}}else u(this.pattern,0)}searchIn(r){const{isCaseSensitive:e,includeMatches:n}=this.options;if(e||(r=r.toLowerCase()),this.pattern===r){let f={isMatch:!0,score:0};return n&&(f.indices=[[0,r.length-1]]),f}const{location:i,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,ignoreLocation:c}=this.options;let u=[],g=0,h=!1;this.chunks.forEach(({pattern:f,alphabet:C,startIndex:v})=>{const{isMatch:A,score:I,indices:p}=Lfe(r,f,C,{location:i+v,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});A&&(h=!0),g+=I,A&&p&&(u=[...u,...p])});let d={isMatch:h,score:h?g/this.chunks.length:1};return h&&n&&(d.indices=u),d}}class S1{constructor(r){this.pattern=r}static isMultiMatch(r){return qE(r,this.multiRegex)}static isSingleMatch(r){return qE(r,this.singleRegex)}search(){}}function qE(t,r){const e=t.match(r);return e?e[1]:null}class Ofe extends S1{constructor(r){super(r)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(r){const e=r===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class Hfe extends S1{constructor(r){super(r)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(r){const n=r.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,r.length-1]}}}class xfe extends S1{constructor(r){super(r)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(r){const e=r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class Vfe extends S1{constructor(r){super(r)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(r){const e=!r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}}class Pfe extends S1{constructor(r){super(r)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(r){const e=r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[r.length-this.pattern.length,r.length-1]}}}class Rfe extends S1{constructor(r){super(r)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(r){const e=!r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}}class lU extends S1{constructor(r,{location:e=at.location,threshold:n=at.threshold,distance:i=at.distance,includeMatches:o=at.includeMatches,findAllMatches:a=at.findAllMatches,minMatchCharLength:s=at.minMatchCharLength,isCaseSensitive:l=at.isCaseSensitive,ignoreLocation:c=at.ignoreLocation}={}){super(r),this._bitapSearch=new sU(r,{location:e,threshold:n,distance:i,includeMatches:o,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(r){return this._bitapSearch.searchIn(r)}}class cU extends S1{constructor(r){super(r)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(r){let e=0,n;const i=[],o=this.pattern.length;for(;(n=r.indexOf(this.pattern,e))>-1;)e=n+o,i.push([n,e-1]);const a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}}const q6=[Ofe,cU,xfe,Vfe,Rfe,Pfe,Hfe,lU],QE=q6.length,Dfe=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Nfe="|";function Bfe(t,r={}){return t.split(Nfe).map(e=>{let n=e.trim().split(Dfe).filter(o=>o&&!!o.trim()),i=[];for(let o=0,a=n.length;o<a;o+=1){const s=n[o];let l=!1,c=-1;for(;!l&&++c<QE;){const u=q6[c];let g=u.isMultiMatch(s);g&&(i.push(new u(g,r)),l=!0)}if(!l)for(c=-1;++c<QE;){const u=q6[c];let g=u.isSingleMatch(s);if(g){i.push(new u(g,r));break}}}return i})}const Ffe=new Set([lU.type,cU.type]);class jfe{constructor(r,{isCaseSensitive:e=at.isCaseSensitive,includeMatches:n=at.includeMatches,minMatchCharLength:i=at.minMatchCharLength,ignoreLocation:o=at.ignoreLocation,findAllMatches:a=at.findAllMatches,location:s=at.location,threshold:l=at.threshold,distance:c=at.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:n,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:s,threshold:l,distance:c},this.pattern=e?r:r.toLowerCase(),this.query=Bfe(this.pattern,this.options)}static condition(r,e){return e.useExtendedSearch}searchIn(r){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;r=i?r:r.toLowerCase();let o=0,a=[],s=0;for(let l=0,c=e.length;l<c;l+=1){const u=e[l];a.length=0,o=0;for(let g=0,h=u.length;g<h;g+=1){const d=u[g],{isMatch:f,indices:C,score:v}=d.search(r);if(f){if(o+=1,s+=v,n){const A=d.constructor.type;Ffe.has(A)?a=[...a,...C]:a.push(C)}}else{s=0,o=0,a.length=0;break}}if(o){let g={isMatch:!0,score:s/o};return n&&(g.indices=a),g}}return{isMatch:!1,score:1}}}const Q6=[];function Ufe(...t){Q6.push(...t)}function J6(t,r){for(let e=0,n=Q6.length;e<n;e+=1){let i=Q6[e];if(i.condition(t,r))return new i(t,r)}return new sU(t,r)}const Tv={AND:"$and",OR:"$or"},e8={PATH:"$path",PATTERN:"$val"},t8=t=>!!(t[Tv.AND]||t[Tv.OR]),Gfe=t=>!!t[e8.PATH],Wfe=t=>!Ka(t)&&nU(t)&&!t8(t),JE=t=>({[Tv.AND]:Object.keys(t).map(r=>({[r]:t[r]}))});function uU(t,r,{auto:e=!0}={}){const n=i=>{let o=Object.keys(i);const a=Gfe(i);if(!a&&o.length>1&&!t8(i))return n(JE(i));if(Wfe(i)){const l=a?i[e8.PATH]:o[0],c=a?i[e8.PATTERN]:i[l];if(!Zo(c))throw new Error(Afe(l));const u={keyId:X6(l),pattern:c};return e&&(u.searcher=J6(c,r)),u}let s={children:[],operator:o[0]};return o.forEach(l=>{const c=i[l];Ka(c)&&c.forEach(u=>{s.children.push(n(u))})}),s};return t8(t)||(t=JE(t)),n(t)}function Zfe(t,{ignoreFieldNorm:r=at.ignoreFieldNorm}){t.forEach(e=>{let n=1;e.matches.forEach(({key:i,norm:o,score:a})=>{const s=i?i.weight:null;n*=Math.pow(a===0&&s?Number.EPSILON:a,(s||1)*(r?1:o))}),e.score=n})}function Kfe(t,r){const e=t.matches;r.matches=[],zi(e)&&e.forEach(n=>{if(!zi(n.indices)||!n.indices.length)return;const{indices:i,value:o}=n;let a={indices:i,value:o};n.key&&(a.key=n.key.src),n.idx>-1&&(a.refIndex=n.idx),r.matches.push(a)})}function Yfe(t,r){r.score=t.score}function Xfe(t,r,{includeMatches:e=at.includeMatches,includeScore:n=at.includeScore}={}){const i=[];return e&&i.push(Kfe),n&&i.push(Yfe),t.map(o=>{const{idx:a}=o,s={item:r[a],refIndex:a};return i.length&&i.forEach(l=>{l(o,s)}),s})}class uc{constructor(r,e={},n){this.options={...at,...e},this.options.useExtendedSearch,this._keyStore=new yfe(this.options.keys),this.setCollection(r,n)}setCollection(r,e){if(this._docs=r,e&&!(e instanceof zb))throw new Error(vfe);this._myIndex=e||aU(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(r){zi(r)&&(this._docs.push(r),this._myIndex.add(r))}remove(r=()=>!1){const e=[];for(let n=0,i=this._docs.length;n<i;n+=1){const o=this._docs[n];r(o,n)&&(this.removeAt(n),n-=1,i-=1,e.push(o))}return e}removeAt(r){this._docs.splice(r,1),this._myIndex.removeAt(r)}getIndex(){return this._myIndex}search(r,{limit:e=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:s}=this.options;let l=Zo(r)?Zo(this._docs[0])?this._searchStringList(r):this._searchObjectList(r):this._searchLogical(r);return Zfe(l,{ignoreFieldNorm:s}),o&&l.sort(a),rU(e)&&e>-1&&(l=l.slice(0,e)),Xfe(l,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(r){const e=J6(r,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:o,i:a,n:s})=>{if(!zi(o))return;const{isMatch:l,score:c,indices:u}=e.searchIn(o);l&&i.push({item:o,idx:a,matches:[{score:c,value:o,norm:s,indices:u}]})}),i}_searchLogical(r){const e=uU(r,this.options),n=(s,l,c)=>{if(!s.children){const{keyId:g,searcher:h}=s,d=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(l,g),searcher:h});return d&&d.length?[{idx:c,item:l,matches:d}]:[]}const u=[];for(let g=0,h=s.children.length;g<h;g+=1){const d=s.children[g],f=n(d,l,c);if(f.length)u.push(...f);else if(s.operator===Tv.AND)return[]}return u},i=this._myIndex.records,o={},a=[];return i.forEach(({$:s,i:l})=>{if(zi(s)){let c=n(e,s,l);c.length&&(o[l]||(o[l]={idx:l,item:s,matches:[]},a.push(o[l])),c.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),a}_searchObjectList(r){const e=J6(r,this.options),{keys:n,records:i}=this._myIndex,o=[];return i.forEach(({$:a,i:s})=>{if(!zi(a))return;let l=[];n.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:a[u],searcher:e}))}),l.length&&o.push({idx:s,item:a,matches:l})}),o}_findMatches({key:r,value:e,searcher:n}){if(!zi(e))return[];let i=[];if(Ka(e))e.forEach(({v:o,i:a,n:s})=>{if(!zi(o))return;const{isMatch:l,score:c,indices:u}=n.searchIn(o);l&&i.push({score:c,key:r,value:o,idx:a,norm:s,indices:u})});else{const{v:o,n:a}=e,{isMatch:s,score:l,indices:c}=n.searchIn(o);s&&i.push({score:l,key:r,value:o,norm:a,indices:c})}return i}}uc.version="7.0.0";uc.createIndex=aU;uc.parseIndex=Sfe;uc.config=at;uc.parseQuery=uU;Ufe(jfe);function qfe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Qfe=function t(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var n,i,o;if(Array.isArray(r)){if(n=r.length,n!=e.length)return!1;for(i=n;i--!==0;)if(!t(r[i],e[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===e.toString();if(o=Object.keys(r),n=o.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(r[a],e[a]))return!1}return!0}return r!==r&&e!==e};const gU=qfe(Qfe),gc={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,r)=>(t[r.id]=r)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,r){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=r},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,r){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===r?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,r),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=r,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[r])},onSplitterDblClick(t,r){let e=0;this.panes=this.panes.map((n,i)=>(n.size=i===r?n.max:n.min,i!==r&&(e+=n.min),n)),this.panes[r].size-=e,this.$emit("pane-maximize",this.panes[r]),this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},onPaneClick(t,r){this.$emit("pane-click",this.indexedPanes[r])},getCurrentMouseDrag(t){const r=this.container.getBoundingClientRect(),{clientX:e,clientY:n}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:e-r.left,y:n-r.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const r=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=r-t),t*100/r},calculatePanesSize(t){const r=this.touch.activeSplitter;let e={prevPanesSize:this.sumPrevPanesSize(r),nextPanesSize:this.sumNextPanesSize(r),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(this.pushOtherPanes?0:e.prevPanesSize),i=100-(this.pushOtherPanes?0:e.nextPanesSize),o=Math.max(Math.min(this.getCurrentDragPercentage(t),i),n);let a=[r,r+1],s=this.panes[a[0]]||null,l=this.panes[a[1]]||null;const c=s.max<100&&o>=s.max+e.prevPanesSize,u=l.max<100&&o<=100-(l.max+this.sumNextPanesSize(r+1));if(c||u){c?(s.size=s.max,l.size=Math.max(100-s.max-e.prevPanesSize-e.nextPanesSize,0)):(s.size=Math.max(100-l.max-e.prevPanesSize-this.sumNextPanesSize(r+1),0),l.size=l.max);return}if(this.pushOtherPanes){const g=this.doPushOtherPanes(e,o);if(!g)return;({sums:e,panesToResize:a}=g),s=this.panes[a[0]]||null,l=this.panes[a[1]]||null}s!==null&&(s.size=Math.min(Math.max(o-e.prevPanesSize-e.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-o-e.nextPanesSize-e.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(t,r){const e=this.touch.activeSplitter,n=[e,e+1];return r<t.prevPanesSize+this.panes[n[0]].min&&(n[0]=this.findPrevExpandedPane(e).index,t.prevReachedMinPanes=0,n[0]<e&&this.panes.forEach((i,o)=>{o>n[0]&&o<=e&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),t.prevPanesSize=this.sumPrevPanesSize(n[0]),n[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,o)=>{o>0&&o<=e&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),this.panes[n[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):r>100-t.nextPanesSize-this.panes[n[1]].min&&(n[1]=this.findNextExpandedPane(e).index,t.nextReachedMinPanes=0,n[1]>e+1&&this.panes.forEach((i,o)=>{o>e&&o<n[1]&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),t.nextPanesSize=this.sumNextPanesSize(n[1]-1),n[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((i,o)=>{o<this.panesCount-1&&o>=e+1&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),this.panes[n[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:n}},sumPrevPanesSize(t){return this.panes.reduce((r,e,n)=>r+(n<t?e.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((r,e,n)=>r+(n>t+1?e.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(r=>r.index<t&&r.size>r.min)||{}},findNextExpandedPane(t){return this.panes.find(r=>r.index>t+1&&r.size>r.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const r=t.classList.contains("splitpanes__pane"),e=t.classList.contains("splitpanes__splitter");!r&&!e&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,r,e=!1){const n=t-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),e||(i.onmousedown=o=>this.onMouseDown(o,n),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=o=>this.onMouseDown(o,n)),i.onclick=o=>this.onSplitterClick(o,n+1)),this.dblClickSplitter&&(i.ondblclick=o=>this.onSplitterDblClick(o,n+1)),r.parentNode.insertBefore(i,r)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)});let r=0;t.forEach(e=>{e.className.includes("splitpanes__pane")&&(!r&&this.firstSplitter?this.addSplitter(r,e,!0):r&&this.addSplitter(r,e),r++)})},requestUpdate({target:t,...r}){const e=this.indexedPanes[t._.uid];Object.entries(r).forEach(([n,i])=>e[n]=i)},onPaneAdd(t){let r=-1;Array.from(t.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&r++,i===t.$el));const e=parseFloat(t.minSize),n=parseFloat(t.maxSize);this.panes.splice(r,0,{id:t._.uid,index:r,min:isNaN(e)?0:e,max:isNaN(n)?100:n,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((i,o)=>i.index=o),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[r]}),this.$emit("pane-add",{index:r,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(t){const r=this.panes.findIndex(n=>n.id===t._.uid),e=this.panes.splice(r,1)[0];this.panes.forEach((n,i)=>n.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...e,index:r}}),this.$emit("pane-remove",{removed:e,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(r=>r.givenSize!==null||r.min||r.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},equalize(){const t=100/this.panesCount;let r=0;const e=[],n=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(t,i.max),i.min),r-=i.size,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)}),r>.1&&this.readjustSizes(r,e,n)},initialPanesSizing(){let t=100;const r=[],e=[];let n=0;this.panes.forEach(o=>{t-=o.size,o.size!==null&&n++,o.size>=o.max&&r.push(o.id),o.size<=o.min&&e.push(o.id)});let i=100;t>.1&&(this.panes.forEach(o=>{o.size===null&&(o.size=Math.max(Math.min(t/(this.panesCount-n),o.max),o.min)),i-=o.size}),i>.1&&this.readjustSizes(t,r,e))},equalizeAfterAddOrRemove({addedPane:t,removedPane:r}={}){let e=100/this.panesCount,n=0;const i=[],o=[];t&&t.givenSize!==null&&(e=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&o.push(a.id)}),!(Math.abs(n)<.1)&&(this.panes.forEach(a=>{t&&t.givenSize!==null&&t.id===a.id||(a.size=Math.max(Math.min(e,a.max),a.min)),n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&o.push(a.id)}),n>.1&&this.readjustSizes(n,i,o))},readjustSizes(t,r,e){let n;t>0?n=t/(this.panesCount-r.length):n=t/(this.panesCount-e.length),this.panes.forEach((i,o)=>{if(t>0&&!r.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),s=a-i.size;t-=s,i.size=a}else if(!e.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),s=a-i.size;t-=s,i.size=a}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((r,e)=>{r.ondblclick=t?n=>this.onSplitterDblClick(n,e):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return oc("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Jfe=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},e0e={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function t0e(t,r,e,n,i,o){return M(),x("div",{class:"splitpanes__pane",onClick:r[0]||(r[0]=a=>o.onPaneClick(a,t._.uid)),style:Sr(t.style)},[Qe(t.$slots,"default")],4)}const Pn=Jfe(e0e,[["render",t0e]]);function r0e(){var t=window.navigator.userAgent,r=t.indexOf("MSIE ");if(r>0)return parseInt(t.substring(r+5,t.indexOf(".",r)),10);var e=t.indexOf("Trident/");if(e>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let I5;function r8(){r8.init||(r8.init=!0,I5=r0e()!==-1)}var XA={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){r8(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",I5&&this.$el.appendChild(t),t.data="about:blank",I5||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!I5&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const n0e=ON();Tu("data-v-b329ee4c");const i0e={class:"resize-observer",tabindex:"-1"};Lu();const o0e=n0e((t,r,e,n,i,o)=>(M(),ie("div",i0e)));XA.render=o0e;XA.__scopeId="data-v-b329ee4c";XA.__file="src/components/ResizeObserver.vue";function p5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p5=function(r){return typeof r}:p5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},p5(t)}function a0e(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function s0e(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l0e(t,r,e){return r&&s0e(t.prototype,r),t}function eS(t){return c0e(t)||u0e(t)||g0e(t)||h0e()}function c0e(t){if(Array.isArray(t))return n8(t)}function u0e(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function g0e(t,r){if(t){if(typeof t=="string")return n8(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return n8(t,r)}}function n8(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function h0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
36
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d0e(t){var r;return typeof t=="function"?r={callback:t}:r=t,r}function f0e(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,o,a=function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),g=1;g<c;g++)u[g-1]=arguments[g];if(o=u,!(n&&l===i)){var h=e.leading;typeof h=="function"&&(h=h(l,i)),(!n||l!==i)&&h&&t.apply(void 0,[l].concat(eS(o))),i=l,clearTimeout(n),n=setTimeout(function(){t.apply(void 0,[l].concat(eS(o))),n=0},r)}};return a._clear=function(){clearTimeout(n),n=null},a}function hU(t,r){if(t===r)return!0;if(p5(t)==="object"){for(var e in t)if(!hU(t[e],r[e]))return!1;return!0}return!1}var C0e=function(){function t(r,e,n){a0e(this,t),this.el=r,this.observer=null,this.frozen=!1,this.createObserver(e,n)}return l0e(t,[{key:"createObserver",value:function(e,n){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=d0e(e),this.callback=function(s,l){i.options.callback(s,l),s&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},a=o.leading;this.callback=f0e(this.callback,this.options.throttle,{leading:function(l){return a==="both"||a==="visible"&&l||a==="hidden"&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(s){var l=s[0];if(s.length>1){var c=s.find(function(g){return g.isIntersecting});c&&(l=c)}if(i.callback){var u=l.isIntersecting&&l.intersectionRatio>=i.threshold;if(u===i.oldResult)return;i.oldResult=u,i.callback(u,l)}},this.options.intersection),ln(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),t}();function dU(t,r,e){var n=r.value;if(n)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new C0e(t,n,e);t._vue_visibilityState=i}}function v0e(t,r,e){var n=r.value,i=r.oldValue;if(!hU(n,i)){var o=t._vue_visibilityState;if(!n){fU(t);return}o?o.createObserver(n,e):dU(t,{value:n},e)}}function fU(t){var r=t._vue_visibilityState;r&&(r.destroyObserver(),delete t._vue_visibilityState)}var A0e={beforeMount:dU,updated:v0e,unmounted:fU},I0e={itemsLimit:1e3},p0e=/(auto|scroll)/;function CU(t,r){return t.parentNode===null?r:CU(t.parentNode,r.concat([t]))}var fp=function(r,e){return getComputedStyle(r,null).getPropertyValue(e)},m0e=function(r){return fp(r,"overflow")+fp(r,"overflow-y")+fp(r,"overflow-x")},y0e=function(r){return p0e.test(m0e(r))};function tS(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var r=CU(t.parentNode,[]),e=0;e<r.length;e+=1)if(y0e(r[e]))return r[e];return document.scrollingElement||document.documentElement}}function i8(t){"@babel/helpers - typeof";return i8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},i8(t)}var b0e={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(r){return["vertical","horizontal"].includes(r)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function w0e(){return this.items.length&&i8(this.items[0])!=="object"}var o8=!1;if(typeof window<"u"){o8=!1;try{var $0e=Object.defineProperty({},"passive",{get:function(){o8=!0}});window.addEventListener("test",null,$0e)}catch{}}let _0e=0;var Eb={name:"RecycleScroller",components:{ResizeObserver:XA},directives:{ObserveVisibility:A0e},props:{...b0e,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const t={"-1":{accumulator:0}},r=this.items,e=this.sizeField,n=this.minItemSize;let i=1e4,o=0,a;for(let s=0,l=r.length;s<l;s++)a=r[s][e]||n,a<i&&(i=a),o+=a,t[s]={accumulator:o,size:a};return this.$_computedMinItemSize=i,t}return[]},simpleArray:w0e,itemIndexByKey(){const{keyField:t,items:r}=this,e={};for(let n=0,i=r.length;n<i;n++)e[r[n][t]]=n;return e}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const t=this.$_lastUpdateScrollPosition;typeof t=="number"&&this.$nextTick(()=>{this.scrollToPosition(t)})},beforeUnmount(){this.removeListeners()},methods:{addView(t,r,e,n,i){const o=$N({id:_0e++,index:r,used:!0,key:n,type:i}),a=xy({item:e,position:0,nr:o});return t.push(a),a},unuseView(t,r=!1){const e=this.$_unusedViews,n=t.nr.type;let i=e.get(n);i||(i=[],e.set(n,i)),i.push(t),r||(t.nr.used=!1,t.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(t){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const r=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});r(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&r()},this.updateInterval))}},handleVisibilityChange(t,r){this.ready&&(t||r.boundingClientRect.width!==0||r.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(t,r=!1){const e=this.itemSize,n=this.gridItems||1,i=this.itemSecondarySize||e,o=this.$_computedMinItemSize,a=this.typeField,s=this.simpleArray?null:this.keyField,l=this.items,c=l.length,u=this.sizes,g=this.$_views,h=this.$_unusedViews,d=this.pool,f=this.itemIndexByKey;let C,v,A,I,p;if(!c)C=v=I=p=A=0;else if(this.$_prerender)C=I=0,v=p=Math.min(this.prerender,l.length),A=null;else{const T=this.getScroll();if(r){let P=T.start-this.$_lastUpdateScrollPosition;if(P<0&&(P=-P),e===null&&P<o||P<e)return{continuous:!0}}this.$_lastUpdateScrollPosition=T.start;const L=this.buffer;T.start-=L,T.end+=L;let O=0;if(this.$refs.before&&(O=this.$refs.before.scrollHeight,T.start-=O),this.$refs.after){const P=this.$refs.after.scrollHeight;T.end+=P}if(e===null){let P,B=0,te=c-1,ee=~~(c/2),re;do re=ee,P=u[ee].accumulator,P<T.start?B=ee:ee<c-1&&u[ee+1].accumulator>T.start&&(te=ee),ee=~~((B+te)/2);while(ee!==re);for(ee<0&&(ee=0),C=ee,A=u[c-1].accumulator,v=ee;v<c&&u[v].accumulator<T.end;v++);for(v===-1?v=l.length-1:(v++,v>c&&(v=c)),I=C;I<c&&O+u[I].accumulator<T.start;I++);for(p=I;p<c&&O+u[p].accumulator<T.end;p++);}else{C=~~(T.start/e*n);const P=C%n;C-=P,v=Math.ceil(T.end/e*n),I=Math.max(0,Math.floor((T.start-O)/e*n)),p=Math.floor((T.end-O)/e*n),C<0&&(C=0),v>c&&(v=c),I<0&&(I=0),p>c&&(p=c),A=Math.ceil(c/n)*e}}v-C>I0e.itemsLimit&&this.itemsLimitError(),this.totalSize=A;let m;const w=C<=this.$_endIndex&&v>=this.$_startIndex;if(w)for(let T=0,L=d.length;T<L;T++)m=d[T],m.nr.used&&(t&&(m.nr.index=f[m.item[s]]),(m.nr.index==null||m.nr.index<C||m.nr.index>=v)&&this.unuseView(m));const _=w?null:new Map;let k,S,E;for(let T=C;T<v;T++){k=l[T];const L=s?k[s]:k;if(L==null)throw new Error(`Key is ${L} on item (keyField is '${s}')`);if(m=g.get(L),!e&&!u[T].size){m&&this.unuseView(m);continue}S=k[a];let O=h.get(S),P=!1;if(!m)w?O&&O.length?m=O.pop():m=this.addView(d,T,k,L,S):(E=_.get(S)||0,(!O||E>=O.length)&&(m=this.addView(d,T,k,L,S),this.unuseView(m,!0),O=h.get(S)),m=O[E],_.set(S,E+1)),g.delete(m.nr.key),m.nr.used=!0,m.nr.index=T,m.nr.key=L,m.nr.type=S,g.set(L,m),P=!0;else if(!m.nr.used&&(m.nr.used=!0,P=!0,O)){const B=O.indexOf(m);B!==-1&&O.splice(B,1)}m.item=k,P&&(T===l.length-1&&this.$emit("scroll-end"),T===0&&this.$emit("scroll-start")),e===null?(m.position=u[T-1].accumulator,m.offset=0):(m.position=Math.floor(T/n)*e,m.offset=T%n*i)}return this.$_startIndex=C,this.$_endIndex=v,this.emitUpdate&&this.$emit("update",C,v,I,p),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:w}},getListenerTarget(){let t=tS(this.$el);return window.document&&(t===window.document.documentElement||t===window.document.body)&&(t=window),t},getScroll(){const{$el:t,direction:r}=this,e=r==="vertical";let n;if(this.pageMode){const i=t.getBoundingClientRect(),o=e?i.height:i.width;let a=-(e?i.top:i.left),s=e?window.innerHeight:window.innerWidth;a<0&&(s+=a,a=0),a+s>o&&(s=o-a),n={start:a,end:a+s}}else e?n={start:t.scrollTop,end:t.scrollTop+t.clientHeight}:n={start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,o8?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(t){let r;const e=this.gridItems||1;this.itemSize===null?r=t>0?this.sizes[t-1].accumulator:0:r=Math.floor(t/e)*this.itemSize,this.scrollToPosition(r)},scrollToPosition(t){const r=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let e,n,i;if(this.pageMode){const o=tS(this.$el),a=o.tagName==="HTML"?0:o[r.scroll],s=o.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[r.start]-s[r.start];e=o,n=r.scroll,i=t+a+c}else e=this.$el,n=r.scroll,i=t;e[n]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((t,r)=>t.nr.index-r.nr.index)}}};const M0e={key:0,ref:"before",class:"vue-recycle-scroller__slot"},z0e={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function E0e(t,r,e,n,i,o){const a=_o("ResizeObserver"),s=Fy("observe-visibility");return Vt((M(),x("div",{class:Te(["vue-recycle-scroller",{ready:i.ready,"page-mode":e.pageMode,[`direction-${t.direction}`]:!0}]),onScrollPassive:r[0]||(r[0]=(...l)=>o.handleScroll&&o.handleScroll(...l))},[t.$slots.before?(M(),x("div",M0e,[Qe(t.$slots,"before")],512)):se("v-if",!0),(M(),ie(h1(e.listTag),{ref:"wrapper",style:Sr({[t.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:Te(["vue-recycle-scroller__item-wrapper",e.listClass])},{default:W(()=>[(M(!0),x(Se,null,It(i.pool,l=>(M(),ie(h1(e.itemTag),Gr({key:l.nr.id,style:i.ready?{transform:`translate${t.direction==="vertical"?"Y":"X"}(${l.position}px) translate${t.direction==="vertical"?"X":"Y"}(${l.offset}px)`,width:e.gridItems?`${t.direction==="vertical"&&e.itemSecondarySize||e.itemSize}px`:void 0,height:e.gridItems?`${t.direction==="horizontal"&&e.itemSecondarySize||e.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[e.itemClass,{hover:!e.skipHover&&i.hoverKey===l.nr.key}]]},Eie(e.skipHover?{}:{mouseenter:()=>{i.hoverKey=l.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:W(()=>[Qe(t.$slots,"default",{item:l.item,index:l.nr.index,active:l.nr.used})]),_:2},1040,["style","class"]))),128)),Qe(t.$slots,"empty")]),_:3},8,["style","class"])),t.$slots.after?(M(),x("div",z0e,[Qe(t.$slots,"after")],512)):se("v-if",!0),N(a,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[s,o.handleVisibilityChange]])}Eb.render=E0e;Eb.__file="src/components/RecycleScroller.vue";var vU=typeof global=="object"&&global&&global.Object===Object&&global,S0e=typeof self=="object"&&self&&self.Object===Object&&self,os=vU||S0e||Function("return this")(),ha=os.Symbol,AU=Object.prototype,T0e=AU.hasOwnProperty,L0e=AU.toString,Og=ha?ha.toStringTag:void 0;function k0e(t){var r=T0e.call(t,Og),e=t[Og];try{t[Og]=void 0;var n=!0}catch{}var i=L0e.call(t);return n&&(r?t[Og]=e:delete t[Og]),i}var O0e=Object.prototype,H0e=O0e.toString;function x0e(t){return H0e.call(t)}var V0e="[object Null]",P0e="[object Undefined]",rS=ha?ha.toStringTag:void 0;function xu(t){return t==null?t===void 0?P0e:V0e:rS&&rS in Object(t)?k0e(t):x0e(t)}function ru(t){return t!=null&&typeof t=="object"}var R0e="[object Symbol]";function Sb(t){return typeof t=="symbol"||ru(t)&&xu(t)==R0e}function D0e(t,r){for(var e=-1,n=t==null?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i}var Eo=Array.isArray,N0e=1/0,nS=ha?ha.prototype:void 0,iS=nS?nS.toString:void 0;function IU(t){if(typeof t=="string")return t;if(Eo(t))return D0e(t,IU)+"";if(Sb(t))return iS?iS.call(t):"";var r=t+"";return r=="0"&&1/t==-N0e?"-0":r}function Tb(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function B0e(t){return t}var F0e="[object AsyncFunction]",j0e="[object Function]",U0e="[object GeneratorFunction]",G0e="[object Proxy]";function pU(t){if(!Tb(t))return!1;var r=xu(t);return r==j0e||r==U0e||r==F0e||r==G0e}var Cp=os["__core-js_shared__"],oS=function(){var t=/[^.]+$/.exec(Cp&&Cp.keys&&Cp.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function W0e(t){return!!oS&&oS in t}var Z0e=Function.prototype,K0e=Z0e.toString;function hc(t){if(t!=null){try{return K0e.call(t)}catch{}try{return t+""}catch{}}return""}var Y0e=/[\\^$.*+?()[\]{}|]/g,X0e=/^\[object .+?Constructor\]$/,q0e=Function.prototype,Q0e=Object.prototype,J0e=q0e.toString,eCe=Q0e.hasOwnProperty,tCe=RegExp("^"+J0e.call(eCe).replace(Y0e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rCe(t){if(!Tb(t)||W0e(t))return!1;var r=pU(t)?tCe:X0e;return r.test(hc(t))}function nCe(t,r){return t?.[r]}function dc(t,r){var e=nCe(t,r);return rCe(e)?e:void 0}var a8=dc(os,"WeakMap"),aS=function(){try{var t=dc(Object,"defineProperty");return t({},"",{}),t}catch{}}(),iCe=9007199254740991,oCe=/^(?:0|[1-9]\d*)$/;function mU(t,r){var e=typeof t;return r=r??iCe,!!r&&(e=="number"||e!="symbol"&&oCe.test(t))&&t>-1&&t%1==0&&t<r}function aCe(t,r,e){r=="__proto__"&&aS?aS(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function yU(t,r){return t===r||t!==t&&r!==r}var sCe=9007199254740991;function Lb(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=sCe}function bU(t){return t!=null&&Lb(t.length)&&!pU(t)}var lCe=Object.prototype;function cCe(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||lCe;return t===e}function uCe(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}var gCe="[object Arguments]";function sS(t){return ru(t)&&xu(t)==gCe}var wU=Object.prototype,hCe=wU.hasOwnProperty,dCe=wU.propertyIsEnumerable,kb=sS(function(){return arguments}())?sS:function(t){return ru(t)&&hCe.call(t,"callee")&&!dCe.call(t,"callee")};function fCe(){return!1}var $U=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lS=$U&&typeof module=="object"&&module&&!module.nodeType&&module,CCe=lS&&lS.exports===$U,cS=CCe?os.Buffer:void 0,vCe=cS?cS.isBuffer:void 0,s8=vCe||fCe,ACe="[object Arguments]",ICe="[object Array]",pCe="[object Boolean]",mCe="[object Date]",yCe="[object Error]",bCe="[object Function]",wCe="[object Map]",$Ce="[object Number]",_Ce="[object Object]",MCe="[object RegExp]",zCe="[object Set]",ECe="[object String]",SCe="[object WeakMap]",TCe="[object ArrayBuffer]",LCe="[object DataView]",kCe="[object Float32Array]",OCe="[object Float64Array]",HCe="[object Int8Array]",xCe="[object Int16Array]",VCe="[object Int32Array]",PCe="[object Uint8Array]",RCe="[object Uint8ClampedArray]",DCe="[object Uint16Array]",NCe="[object Uint32Array]",rr={};rr[kCe]=rr[OCe]=rr[HCe]=rr[xCe]=rr[VCe]=rr[PCe]=rr[RCe]=rr[DCe]=rr[NCe]=!0;rr[ACe]=rr[ICe]=rr[TCe]=rr[pCe]=rr[LCe]=rr[mCe]=rr[yCe]=rr[bCe]=rr[wCe]=rr[$Ce]=rr[_Ce]=rr[MCe]=rr[zCe]=rr[ECe]=rr[SCe]=!1;function BCe(t){return ru(t)&&Lb(t.length)&&!!rr[xu(t)]}function FCe(t){return function(r){return t(r)}}var _U=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ah=_U&&typeof module=="object"&&module&&!module.nodeType&&module,jCe=Ah&&Ah.exports===_U,vp=jCe&&vU.process,uS=function(){try{var t=Ah&&Ah.require&&Ah.require("util").types;return t||vp&&vp.binding&&vp.binding("util")}catch{}}(),gS=uS&&uS.isTypedArray,MU=gS?FCe(gS):BCe,UCe=Object.prototype,GCe=UCe.hasOwnProperty;function WCe(t,r){var e=Eo(t),n=!e&&kb(t),i=!e&&!n&&s8(t),o=!e&&!n&&!i&&MU(t),a=e||n||i||o,s=a?uCe(t.length,String):[],l=s.length;for(var c in t)GCe.call(t,c)&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||mU(c,l)))&&s.push(c);return s}function ZCe(t,r){return function(e){return t(r(e))}}var KCe=ZCe(Object.keys,Object),YCe=Object.prototype,XCe=YCe.hasOwnProperty;function qCe(t){if(!cCe(t))return KCe(t);var r=[];for(var e in Object(t))XCe.call(t,e)&&e!="constructor"&&r.push(e);return r}function Ob(t){return bU(t)?WCe(t):qCe(t)}var QCe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JCe=/^\w*$/;function Hb(t,r){if(Eo(t))return!1;var e=typeof t;return e=="number"||e=="symbol"||e=="boolean"||t==null||Sb(t)?!0:JCe.test(t)||!QCe.test(t)||r!=null&&t in Object(r)}var ld=dc(Object,"create");function e5e(){this.__data__=ld?ld(null):{},this.size=0}function t5e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}var r5e="__lodash_hash_undefined__",n5e=Object.prototype,i5e=n5e.hasOwnProperty;function o5e(t){var r=this.__data__;if(ld){var e=r[t];return e===r5e?void 0:e}return i5e.call(r,t)?r[t]:void 0}var a5e=Object.prototype,s5e=a5e.hasOwnProperty;function l5e(t){var r=this.__data__;return ld?r[t]!==void 0:s5e.call(r,t)}var c5e="__lodash_hash_undefined__";function u5e(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=ld&&r===void 0?c5e:r,this}function Ul(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Ul.prototype.clear=e5e;Ul.prototype.delete=t5e;Ul.prototype.get=o5e;Ul.prototype.has=l5e;Ul.prototype.set=u5e;function g5e(){this.__data__=[],this.size=0}function qA(t,r){for(var e=t.length;e--;)if(yU(t[e][0],r))return e;return-1}var h5e=Array.prototype,d5e=h5e.splice;function f5e(t){var r=this.__data__,e=qA(r,t);if(e<0)return!1;var n=r.length-1;return e==n?r.pop():d5e.call(r,e,1),--this.size,!0}function C5e(t){var r=this.__data__,e=qA(r,t);return e<0?void 0:r[e][1]}function v5e(t){return qA(this.__data__,t)>-1}function A5e(t,r){var e=this.__data__,n=qA(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function as(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}as.prototype.clear=g5e;as.prototype.delete=f5e;as.prototype.get=C5e;as.prototype.has=v5e;as.prototype.set=A5e;var cd=dc(os,"Map");function I5e(){this.size=0,this.__data__={hash:new Ul,map:new(cd||as),string:new Ul}}function p5e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function QA(t,r){var e=t.__data__;return p5e(r)?e[typeof r=="string"?"string":"hash"]:e.map}function m5e(t){var r=QA(this,t).delete(t);return this.size-=r?1:0,r}function y5e(t){return QA(this,t).get(t)}function b5e(t){return QA(this,t).has(t)}function w5e(t,r){var e=QA(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this}function ss(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}ss.prototype.clear=I5e;ss.prototype.delete=m5e;ss.prototype.get=y5e;ss.prototype.has=b5e;ss.prototype.set=w5e;var $5e="Expected a function";function xb(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new TypeError($5e);var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return e.cache=o.set(i,a)||o,a};return e.cache=new(xb.Cache||ss),e}xb.Cache=ss;var _5e=500;function M5e(t){var r=xb(t,function(n){return e.size===_5e&&e.clear(),n}),e=r.cache;return r}var z5e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E5e=/\\(\\)?/g,S5e=M5e(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(z5e,function(e,n,i,o){r.push(i?o.replace(E5e,"$1"):n||e)}),r});function T5e(t){return t==null?"":IU(t)}function zU(t,r){return Eo(t)?t:Hb(t,r)?[t]:S5e(T5e(t))}var L5e=1/0;function JA(t){if(typeof t=="string"||Sb(t))return t;var r=t+"";return r=="0"&&1/t==-L5e?"-0":r}function EU(t,r){r=zU(r,t);for(var e=0,n=r.length;t!=null&&e<n;)t=t[JA(r[e++])];return e&&e==n?t:void 0}function k5e(t,r,e){var n=t==null?void 0:EU(t,r);return n===void 0?e:n}function SU(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}var hS=ha?ha.isConcatSpreadable:void 0;function O5e(t){return Eo(t)||kb(t)||!!(hS&&t&&t[hS])}function H5e(t,r,e,n,i){var o=-1,a=t.length;for(e||(e=O5e),i||(i=[]);++o<a;){var s=t[o];e(s)?SU(i,s):i[i.length]=s}return i}function x5e(t){var r=t==null?0:t.length;return r?H5e(t):[]}function V5e(){this.__data__=new as,this.size=0}function P5e(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}function R5e(t){return this.__data__.get(t)}function D5e(t){return this.__data__.has(t)}var N5e=200;function B5e(t,r){var e=this.__data__;if(e instanceof as){var n=e.__data__;if(!cd||n.length<N5e-1)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new ss(n)}return e.set(t,r),this.size=e.size,this}function Oa(t){var r=this.__data__=new as(t);this.size=r.size}Oa.prototype.clear=V5e;Oa.prototype.delete=P5e;Oa.prototype.get=R5e;Oa.prototype.has=D5e;Oa.prototype.set=B5e;function F5e(t,r){for(var e=-1,n=t==null?0:t.length,i=0,o=[];++e<n;){var a=t[e];r(a,e,t)&&(o[i++]=a)}return o}function j5e(){return[]}var U5e=Object.prototype,G5e=U5e.propertyIsEnumerable,dS=Object.getOwnPropertySymbols,W5e=dS?function(t){return t==null?[]:(t=Object(t),F5e(dS(t),function(r){return G5e.call(t,r)}))}:j5e;function Z5e(t,r,e){var n=r(t);return Eo(t)?n:SU(n,e(t))}function fS(t){return Z5e(t,Ob,W5e)}var l8=dc(os,"DataView"),c8=dc(os,"Promise"),u8=dc(os,"Set"),CS="[object Map]",K5e="[object Object]",vS="[object Promise]",AS="[object Set]",IS="[object WeakMap]",pS="[object DataView]",Y5e=hc(l8),X5e=hc(cd),q5e=hc(c8),Q5e=hc(u8),J5e=hc(a8),Os=xu;(l8&&Os(new l8(new ArrayBuffer(1)))!=pS||cd&&Os(new cd)!=CS||c8&&Os(c8.resolve())!=vS||u8&&Os(new u8)!=AS||a8&&Os(new a8)!=IS)&&(Os=function(t){var r=xu(t),e=r==K5e?t.constructor:void 0,n=e?hc(e):"";if(n)switch(n){case Y5e:return pS;case X5e:return CS;case q5e:return vS;case Q5e:return AS;case J5e:return IS}return r});var mS=os.Uint8Array,eve="__lodash_hash_undefined__";function tve(t){return this.__data__.set(t,eve),this}function rve(t){return this.__data__.has(t)}function Lv(t){var r=-1,e=t==null?0:t.length;for(this.__data__=new ss;++r<e;)this.add(t[r])}Lv.prototype.add=Lv.prototype.push=tve;Lv.prototype.has=rve;function nve(t,r){for(var e=-1,n=t==null?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}function ive(t,r){return t.has(r)}var ove=1,ave=2;function TU(t,r,e,n,i,o){var a=e&ove,s=t.length,l=r.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(t),u=o.get(r);if(c&&u)return c==r&&u==t;var g=-1,h=!0,d=e&ave?new Lv:void 0;for(o.set(t,r),o.set(r,t);++g<s;){var f=t[g],C=r[g];if(n)var v=a?n(C,f,g,r,t,o):n(f,C,g,t,r,o);if(v!==void 0){if(v)continue;h=!1;break}if(d){if(!nve(r,function(A,I){if(!ive(d,I)&&(f===A||i(f,A,e,n,o)))return d.push(I)})){h=!1;break}}else if(!(f===C||i(f,C,e,n,o))){h=!1;break}}return o.delete(t),o.delete(r),h}function sve(t){var r=-1,e=Array(t.size);return t.forEach(function(n,i){e[++r]=[i,n]}),e}function lve(t){var r=-1,e=Array(t.size);return t.forEach(function(n){e[++r]=n}),e}var cve=1,uve=2,gve="[object Boolean]",hve="[object Date]",dve="[object Error]",fve="[object Map]",Cve="[object Number]",vve="[object RegExp]",Ave="[object Set]",Ive="[object String]",pve="[object Symbol]",mve="[object ArrayBuffer]",yve="[object DataView]",yS=ha?ha.prototype:void 0,Ap=yS?yS.valueOf:void 0;function bve(t,r,e,n,i,o,a){switch(e){case yve:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case mve:return!(t.byteLength!=r.byteLength||!o(new mS(t),new mS(r)));case gve:case hve:case Cve:return yU(+t,+r);case dve:return t.name==r.name&&t.message==r.message;case vve:case Ive:return t==r+"";case fve:var s=sve;case Ave:var l=n&cve;if(s||(s=lve),t.size!=r.size&&!l)return!1;var c=a.get(t);if(c)return c==r;n|=uve,a.set(t,r);var u=TU(s(t),s(r),n,i,o,a);return a.delete(t),u;case pve:if(Ap)return Ap.call(t)==Ap.call(r)}return!1}var wve=1,$ve=Object.prototype,_ve=$ve.hasOwnProperty;function Mve(t,r,e,n,i,o){var a=e&wve,s=fS(t),l=s.length,c=fS(r),u=c.length;if(l!=u&&!a)return!1;for(var g=l;g--;){var h=s[g];if(!(a?h in r:_ve.call(r,h)))return!1}var d=o.get(t),f=o.get(r);if(d&&f)return d==r&&f==t;var C=!0;o.set(t,r),o.set(r,t);for(var v=a;++g<l;){h=s[g];var A=t[h],I=r[h];if(n)var p=a?n(I,A,h,r,t,o):n(A,I,h,t,r,o);if(!(p===void 0?A===I||i(A,I,e,n,o):p)){C=!1;break}v||(v=h=="constructor")}if(C&&!v){var m=t.constructor,w=r.constructor;m!=w&&"constructor"in t&&"constructor"in r&&!(typeof m=="function"&&m instanceof m&&typeof w=="function"&&w instanceof w)&&(C=!1)}return o.delete(t),o.delete(r),C}var zve=1,bS="[object Arguments]",wS="[object Array]",K0="[object Object]",Eve=Object.prototype,$S=Eve.hasOwnProperty;function Sve(t,r,e,n,i,o){var a=Eo(t),s=Eo(r),l=a?wS:Os(t),c=s?wS:Os(r);l=l==bS?K0:l,c=c==bS?K0:c;var u=l==K0,g=c==K0,h=l==c;if(h&&s8(t)){if(!s8(r))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new Oa),a||MU(t)?TU(t,r,e,n,i,o):bve(t,r,l,e,n,i,o);if(!(e&zve)){var d=u&&$S.call(t,"__wrapped__"),f=g&&$S.call(r,"__wrapped__");if(d||f){var C=d?t.value():t,v=f?r.value():r;return o||(o=new Oa),i(C,v,e,n,o)}}return h?(o||(o=new Oa),Mve(t,r,e,n,i,o)):!1}function Vb(t,r,e,n,i){return t===r?!0:t==null||r==null||!ru(t)&&!ru(r)?t!==t&&r!==r:Sve(t,r,e,n,Vb,i)}var Tve=1,Lve=2;function kve(t,r,e,n){var i=e.length,o=i;if(t==null)return!o;for(t=Object(t);i--;){var a=e[i];if(a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){a=e[i];var s=a[0],l=t[s],c=a[1];if(a[2]){if(l===void 0&&!(s in t))return!1}else{var u=new Oa,g;if(!(g===void 0?Vb(c,l,Tve|Lve,n,u):g))return!1}}return!0}function LU(t){return t===t&&!Tb(t)}function Ove(t){for(var r=Ob(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,LU(i)]}return r}function kU(t,r){return function(e){return e==null?!1:e[t]===r&&(r!==void 0||t in Object(e))}}function Hve(t){var r=Ove(t);return r.length==1&&r[0][2]?kU(r[0][0],r[0][1]):function(e){return e===t||kve(e,t,r)}}function xve(t,r){return t!=null&&r in Object(t)}function Vve(t,r,e){r=zU(r,t);for(var n=-1,i=r.length,o=!1;++n<i;){var a=JA(r[n]);if(!(o=t!=null&&e(t,a)))break;t=t[a]}return o||++n!=i?o:(i=t==null?0:t.length,!!i&&Lb(i)&&mU(a,i)&&(Eo(t)||kb(t)))}function Pve(t,r){return t!=null&&Vve(t,r,xve)}var Rve=1,Dve=2;function Nve(t,r){return Hb(t)&&LU(r)?kU(JA(t),r):function(e){var n=k5e(e,t);return n===void 0&&n===r?Pve(e,t):Vb(r,n,Rve|Dve)}}function Bve(t){return function(r){return r?.[t]}}function Fve(t){return function(r){return EU(r,t)}}function jve(t){return Hb(t)?Bve(JA(t)):Fve(t)}function Uve(t){return typeof t=="function"?t:t==null?B0e:typeof t=="object"?Eo(t)?Nve(t[0],t[1]):Hve(t):jve(t)}function Gve(t,r,e,n){for(var i=-1,o=t==null?0:t.length;++i<o;){var a=t[i];r(n,a,e(a),t)}return n}function Wve(t){return function(r,e,n){for(var i=-1,o=Object(r),a=n(r),s=a.length;s--;){var l=a[++i];if(e(o[l],l,o)===!1)break}return r}}var Zve=Wve();function Kve(t,r){return t&&Zve(t,r,Ob)}function Yve(t,r){return function(e,n){if(e==null)return e;if(!bU(e))return t(e,n);for(var i=e.length,o=-1,a=Object(e);++o<i&&n(a[o],o,a)!==!1;);return e}}var Xve=Yve(Kve);function qve(t,r,e,n){return Xve(t,function(i,o,a){r(n,i,e(i),a)}),n}function Qve(t,r){return function(e,n){var i=Eo(e)?Gve:qve,o={};return i(e,t,Uve(n),o)}}var Jve=Object.prototype,eAe=Jve.hasOwnProperty,tAe=Qve(function(t,r,e){eAe.call(t,e)?t[e].push(r):aCe(t,e,[r])});const fc=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},rAe={},nAe={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iAe=hB('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>',2),oAe=[iAe];function aAe(t,r){return M(),x("svg",nAe,oAe)}const sAe=fc(rAe,[["render",aAe]]),Pb=Symbol("VirtualRouteKey"),OU=Symbol("VirtualRoutesKey");function Rb(t,r){const e=r?.defaultRoutePath??Dh(t)[0].path,n=G({path:e}),i=U(()=>Dh(t)),o=U(()=>n.value.path),a=ge({setup(){return()=>{const l=i.value.find(c=>c.path===o.value);return l?oc(l.component):null}}});function s(){n.value.path=e}return Li(Pb,n),Li(OU,i),{VirtualRouterView:a,restoreRouter:s}}function tf(){const t=mr(Pb);return{push(r){t.value.path=r}}}function lAe(){const t=mr(OU),r=mr(Pb);return{routes:t,currentRoute:r}}const cAe={"h-full":"","w-full":"",flex:"","items-center":""},uAe={flex:"~ col gap2",ma:"","px-5":""},gAe=b("div",{"flex-auto":""},null,-1),hAe={flex:"~ col","mt-20":"","items-center":""},dAe={flex:"~","mt--10":"","items-center":"","justify-center":""},fAe=b("div",{mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},[b("span",{op40:""}," Pinia DevTools ")],-1),CAe=b("div",{"flex-auto":""},null,-1),vAe={flex:"~ gap2 wrap"},AAe=b("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),IAe=b("code",null,"Store",-1),pAe=[AAe,IAe],mAe=b("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),yAe=b("div",null,"Timeline",-1),bAe=[mAe,yAe],wAe=b("div",{flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},[b("a",{href:"https://github.com/vuejs/pinia",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[b("div",{"i-carbon-star":""}),ze(" Star on GitHub ")]),b("a",{href:"https://pinia.vuejs.org/",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[b("div",{"i-carbon-document":""}),ze(" View Documentation ")])],-1),$Ae=b("div",{"flex-auto":""},null,-1),_Ae=ge({__name:"About",setup(t){const r=tf();return(e,n)=>(M(),x("div",cAe,[b("div",uAe,[gAe,b("div",hAe,[b("div",dAe,[N(sAe,{"h-18":""})]),fAe]),CAe,b("div",vAe,[b("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[0]||(n[0]=i=>y(r).push("/store"))},pAe),b("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[1]||(n[1]=i=>y(r).push("/timeline"))},bAe)]),wAe,$Ae])]))}}),MAe={class:"flex gap3"},zAe=["onClick"],Vu=ge({__name:"Navbar",setup(t){const{routes:r,currentRoute:e}=lAe(),n=tf();return(i,o)=>(M(),x("ul",MAe,[(M(!0),x(Se,null,It(y(r),(a,s)=>(M(),x("li",{key:s,class:Te(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100",y(e).path===a.path?"op-100 font-medium text-primary-400 border-primary-400":"border-transparent op-70"]),onClick:l=>y(n).push(a.path)},Ee(a.name),11,zAe))),128))]))}}),EAe={border:"b base",class:"flex items-center justify-between px3"},SAe=["href"],TAe=b("i",{class:"i-clarity:document-line cursor-pointer op70 text-base hover:op100"},null,-1),LAe=[TAe],kAe=["href"],OAe=b("i",{class:"i-mdi:github cursor-pointer op70 text-base hover:op100"},null,-1),HAe=[OAe],Pu=ge({__name:"DevToolsHeader",props:{githubRepoLink:{},docLink:{}},setup(t){const r=tf();return(e,n)=>(M(),x("div",EAe,[b("div",null,[Qe(e.$slots,"default",{},()=>[b("i",{class:"i-ep:back cursor-pointer op70 text-base hover:op100",onClick:n[0]||(n[0]=i=>y(r).push("/"))})])]),b("div",null,[b("a",{class:"pr2",href:e.docLink,target:"_blank",title:"View Documentation"},LAe,8,SAe),e.githubRepoLink?(M(),x("a",{key:0,href:e.githubRepoLink,target:"_blank",title:"Star on GitHub"},HAe,8,kAe)):se("",!0)])]))}}),xAe={},VAe={class:"h-full flex flex-col items-center justify-center op50"},PAe=b("i",{class:"i-lets-icons:blank-light"},null,-1);function RAe(t,r){return M(),x("div",VAe,[PAe,b("span",null,[Qe(t.$slots,"default")])])}const ud=fc(xAe,[["render",RAe]]);function Db(t){return Sy()?(gN(t),!0):!1}function En(t){return typeof t=="function"?t():y(t)}const Nb=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const DAe=t=>typeof t<"u",NAe=Object.prototype.toString,BAe=t=>NAe.call(t)==="[object Object]",kv=()=>{};function FAe(t,r){function e(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(i).catch(o)})}return e}const jAe=t=>t();function UAe(t,r={}){let e,n,i=kv;const o=a=>{clearTimeout(a),i(),i=kv};return a=>{const s=En(t),l=En(r.maxWait);return e&&o(e),s<=0||l!==void 0&&l<=0?(n&&(o(n),n=null),Promise.resolve(a())):new Promise((c,u)=>{i=r.rejectOnCancel?u:c,l&&!n&&(n=setTimeout(()=>{e&&o(e),n=null,c(a())},l)),e=setTimeout(()=>{n&&o(n),n=null,c(a())},s)})}}function _S(t,r=!1,e="Timeout"){return new Promise((n,i)=>{setTimeout(r?()=>i(e):n,t)})}function GAe(t){let r;function e(){return r||(r=t()),r}return e.reset=async()=>{const n=r;r=void 0,n&&await n},e}function WAe(t){return is()}function ZAe(t,r,e={}){const{eventFilter:n=jAe,...i}=e;return et(t,FAe(n,r),i)}function KAe(t,r=!0,e){WAe()?gi(t,e):r?t():ln(t)}function g8(t,r=!1){function e(g,{flush:h="sync",deep:d=!1,timeout:f,throwOnTimeout:C}={}){let v=null;const A=[new Promise(I=>{v=et(t,p=>{g(p)!==r&&(v?v():ln(()=>v?.()),I(p))},{flush:h,deep:d,immediate:!0})})];return f!=null&&A.push(_S(f,C).then(()=>En(t)).finally(()=>v?.())),Promise.race(A)}function n(g,h){if(!nt(g))return e(p=>p===g,h);const{flush:d="sync",deep:f=!1,timeout:C,throwOnTimeout:v}=h??{};let A=null;const I=[new Promise(p=>{A=et([t,g],([m,w])=>{r!==(m===w)&&(A?A():ln(()=>A?.()),p(m))},{flush:d,deep:f,immediate:!0})})];return C!=null&&I.push(_S(C,v).then(()=>En(t)).finally(()=>(A?.(),En(t)))),Promise.race(I)}function i(g){return e(h=>!!h,g)}function o(g){return n(null,g)}function a(g){return n(void 0,g)}function s(g){return e(Number.isNaN,g)}function l(g,h){return e(d=>{const f=Array.from(d);return f.includes(g)||f.includes(En(g))},h)}function c(g){return u(1,g)}function u(g=1,h){let d=-1;return e(()=>(d+=1,d>=g),h)}return Array.isArray(En(t))?{toMatch:e,toContains:l,changed:c,changedTimes:u,get not(){return g8(t,!r)}}:{toMatch:e,toBe:n,toBeTruthy:i,toBeNull:o,toBeNaN:s,toBeUndefined:a,changed:c,changedTimes:u,get not(){return g8(t,!r)}}}function HU(t){return g8(t)}function YAe(t,r,e={}){const{immediate:n=!0}=e,i=G(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...c){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...c)},En(r))}return n&&(i.value=!0,Nb&&l()),Db(s),{isPending:M1(i),start:l,stop:s}}function XAe(t=!1,r={}){const{truthyValue:e=!0,falsyValue:n=!1}=r,i=nt(t),o=G(t);function a(s){if(arguments.length)return o.value=s,o.value;{const l=En(e);return o.value=o.value===l?En(n):l,o.value}}return i?a:[o,a]}function qAe(t,r,e={}){const{debounce:n=0,maxWait:i=void 0,...o}=e;return ZAe(t,r,{...o,eventFilter:UAe(n,{maxWait:i})})}function fl(t){var r;const e=En(t);return(r=e?.$el)!=null?r:e}const eI=Nb?window:void 0,xU=Nb?window.navigator:void 0;function Fs(...t){let r,e,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,i]=t,r=eI):[r,e,n,i]=t,!r)return kv;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,g,h,d)=>(u.addEventListener(g,h,d),()=>u.removeEventListener(g,h,d)),l=et(()=>[fl(r),En(i)],([u,g])=>{if(a(),!u)return;const h=BAe(g)?{...g}:g;o.push(...e.flatMap(d=>n.map(f=>s(u,d,f,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return Db(c),c}function QAe(){const t=G(!1),r=is();return r&&gi(()=>{t.value=!0},r),t}function Bb(t){const r=QAe();return U(()=>(r.value,!!t()))}function MS(t,r={}){const{controls:e=!1,navigator:n=xU}=r,i=Bb(()=>n&&"permissions"in n),o=Oi(),a=typeof t=="string"?{name:t}:t,s=Oi(),l=()=>{var u,g;s.value=(g=(u=o.value)==null?void 0:u.state)!=null?g:"prompt"};Fs(o,"change",l);const c=GAe(async()=>{if(i.value){if(!o.value)try{o.value=await n.permissions.query(a)}catch{o.value=void 0}finally{l()}if(e)return mt(o.value)}});return c(),e?{state:s,isSupported:i,query:c}:s}function JAe(t={}){const{navigator:r=xU,read:e=!1,source:n,copiedDuring:i=1500,legacy:o=!1}=t,a=Bb(()=>r&&"clipboard"in r),s=MS("clipboard-read"),l=MS("clipboard-write"),c=U(()=>a.value||o),u=G(""),g=G(!1),h=YAe(()=>g.value=!1,i);function d(){a.value&&A(s.value)?r.clipboard.readText().then(I=>{u.value=I}):u.value=v()}c.value&&e&&Fs(["copy","cut"],d);async function f(I=En(n)){c.value&&I!=null&&(a.value&&A(l.value)?await r.clipboard.writeText(I):C(I),u.value=I,g.value=!0,h.start())}function C(I){const p=document.createElement("textarea");p.value=I??"",p.style.position="absolute",p.style.opacity="0",document.body.appendChild(p),p.select(),document.execCommand("copy"),p.remove()}function v(){var I,p,m;return(m=(p=(I=document?.getSelection)==null?void 0:I.call(document))==null?void 0:p.toString())!=null?m:""}function A(I){return I==="granted"||I==="prompt"}return{isSupported:c,text:u,copied:g,copy:f}}function eIe(t){return JSON.parse(JSON.stringify(t))}function tIe(t,r,e={}){const{window:n=eI,...i}=e;let o;const a=Bb(()=>n&&"ResizeObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=U(()=>{const g=En(t);return Array.isArray(g)?g.map(h=>fl(h)):[fl(g)]}),c=et(l,g=>{if(s(),a.value&&n){o=new ResizeObserver(r);for(const h of g)h&&o.observe(h,i)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return Db(u),{isSupported:a,stop:u}}function rIe(t,r={width:0,height:0},e={}){const{window:n=eI,box:i="content-box"}=e,o=U(()=>{var g,h;return(h=(g=fl(t))==null?void 0:g.namespaceURI)==null?void 0:h.includes("svg")}),a=G(r.width),s=G(r.height),{stop:l}=tIe(t,([g])=>{const h=i==="border-box"?g.borderBoxSize:i==="content-box"?g.contentBoxSize:g.devicePixelContentBoxSize;if(n&&o.value){const d=fl(t);if(d){const f=d.getBoundingClientRect();a.value=f.width,s.value=f.height}}else if(h){const d=Array.isArray(h)?h:[h];a.value=d.reduce((f,{inlineSize:C})=>f+C,0),s.value=d.reduce((f,{blockSize:C})=>f+C,0)}else a.value=g.contentRect.width,s.value=g.contentRect.height},e);KAe(()=>{const g=fl(t);g&&(a.value="offsetWidth"in g?g.offsetWidth:r.width,s.value="offsetHeight"in g?g.offsetHeight:r.height)});const c=et(()=>fl(t),g=>{a.value=g?r.width:0,s.value=g?r.height:0});function u(){l(),c()}return{width:a,height:s,stop:u}}const nIe={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function iIe(t={}){const{reactive:r=!1,target:e=eI,aliasMap:n=nIe,passive:i=!0,onEventFired:o=kv}=t,a=ca(new Set),s={toJSON(){return{}},current:a},l=r?ca(s):s,c=new Set,u=new Set;function g(C,v){C in l&&(r?l[C]=v:l[C].value=v)}function h(){a.clear();for(const C of u)g(C,!1)}function d(C,v){var A,I;const p=(A=C.key)==null?void 0:A.toLowerCase(),m=[(I=C.code)==null?void 0:I.toLowerCase(),p].filter(Boolean);p&&(v?a.add(p):a.delete(p));for(const w of m)u.add(w),g(w,v);p==="meta"&&!v?(c.forEach(w=>{a.delete(w),g(w,!1)}),c.clear()):typeof C.getModifierState=="function"&&C.getModifierState("Meta")&&v&&[...a,...m].forEach(w=>c.add(w))}Fs(e,"keydown",C=>(d(C,!0),o(C)),{passive:i}),Fs(e,"keyup",C=>(d(C,!1),o(C)),{passive:i}),Fs("blur",h,{passive:!0}),Fs("focus",h,{passive:!0});const f=new Proxy(l,{get(C,v,A){if(typeof v!="string")return Reflect.get(C,v,A);if(v=v.toLowerCase(),v in n&&(v=n[v]),!(v in l))if(/[+_-]/.test(v)){const p=v.split(/[+_-]/g).map(m=>m.trim());l[v]=U(()=>p.every(m=>En(f[m])))}else l[v]=G(!1);const I=Reflect.get(C,v,A);return r?En(I):I}});return f}function oIe(t,r,e,n={}){var i,o,a;const{clone:s=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:g,shouldEmit:h}=n,d=is(),f=e||d?.emit||((i=d?.$emit)==null?void 0:i.bind(d))||((a=(o=d?.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(d?.proxy));let C=c;C=C||`update:${r.toString()}`;const v=p=>s?typeof s=="function"?s(p):eIe(p):p,A=()=>DAe(t[r])?v(t[r]):g,I=p=>{h?h(p)&&f(C,p):f(C,p)};if(l){const p=A(),m=G(p);let w=!1;return et(()=>t[r],_=>{w||(w=!0,m.value=v(_),ln(()=>w=!1))}),et(m,_=>{!w&&(_!==t[r]||u)&&I(_)},{deep:u}),m}else return U({get(){return A()},set(p){I(p)}})}const VU=Symbol("StateEditorSymbol");function aIe(t){const r=G(t);return Li(VU,r),{context:r}}function Fb(){return mr(VU)}function sIe(){const t=G(""),r=G("string"),e=G(!1),n=Fb();return{editingText:t,editing:e,toggleEditing(i){i&&(r.value=i),e.value=!e.value},editingType:r,nodeId:U(()=>n.value.nodeId)}}function lIe(t,r){if(t==="array")return r.length;const e="newProp";let n=1;for(;;){const i=`${e}${n}`;if(!r[i])return i;n++}}function cIe(){const t=G({enable:!1,key:"",value:"undefined"});function r(n,i){const o=lIe(n,i);t.value={enable:!0,key:o.toString(),value:"undefined"}}function e(){t.value={enable:!1,key:"",value:"undefined"}}return{addNewProp:r,resetDrafting:e,draftingNewProp:t}}const uIe={class:"flex pl5px"},gIe={class:"w160px py5px"},hIe=ge({__name:"StateFieldEditor",props:{data:{},hovering:{type:Boolean},depth:{},showAddIfNeeded:{type:Boolean,default:!0},disableEdit:{type:Boolean}},emits:["enableEditInput","addNewProp"],setup(t){const r=t,e=Fb(),{copy:n,isSupported:i}=JAe(),o=G(!1),a=U(()=>ib(r.data.value)),s=U(()=>a.value.value),l=U(()=>a.value.customType),c=U(()=>s.value===null?"null":typeof s.value),u={flat:!0,size:"mini"},g=U(()=>({"opacity-0":!r.hovering}));async function h(f,C=!1){await Ae.value.editInspectorState({path:r.data.path||[r.data.key],inspectorId:e.value.inspectorId,type:r.data.stateType,nodeId:e.value.nodeId,state:{newKey:null,value:mt(f),type:c.value,remove:C}}),await Ae.value.sendInspectorState(e.value.inspectorId)}function d(f,C){const v=typeof f=="number"?f+C:BigInt(f)+BigInt(C);h(v)}return(f,C)=>(M(),x("div",uIe,[!r.disableEdit&&f.data.editable?(M(),x(Se,{key:0},[c.value==="string"||c.value==="number"||c.value==="object"||c.value==="null"?(M(),x(Se,{key:0},[Vt((M(),ie(y(ct),Gr(u,{class:g.value,onClick:C[0]||(C[0]=ni(v=>f.$emit("enableEditInput",c.value),["stop"]))}),{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-edit-rounded"})]),_:1},16,["class"])),[[y(pr),{content:"Edit value"}]]),c.value==="object"&&f.showAddIfNeeded?Vt((M(),ie(y(ct),Gr({key:0},u,{class:g.value,onClick:C[1]||(C[1]=ni(v=>f.$emit("addNewProp",Array.isArray(s.value)?"array":"object"),["stop"]))}),{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-add-circle-rounded"})]),_:1},16,["class"])),[[y(pr),{content:"Add new value"}]]):se("",!0)],64)):se("",!0),c.value==="boolean"?(M(),ie(y(ct),Gr({key:1},u,{class:g.value,onClick:C[2]||(C[2]=v=>h(!s.value))}),{icon:W(()=>[N(y(Ft),{icon:s.value?"i-material-symbols-check-box-sharp":"i-material-symbols-check-box-outline-blank-sharp"},null,8,["icon"])]),_:1},16,["class"])):c.value==="number"||l.value==="bigint"?(M(),x(Se,{key:2},[N(y(ct),Gr(u,{class:g.value,onClick:C[3]||(C[3]=ni(v=>d(s.value,1),["stop"]))}),{icon:W(()=>[N(y(Ft),{icon:"i-carbon-add"})]),_:1},16,["class"]),N(y(ct),Gr(u,{class:g.value,onClick:C[4]||(C[4]=ni(v=>d(s.value,-1),["stop"]))}),{icon:W(()=>[N(y(Ft),{icon:"i-carbon-subtract"})]),_:1},16,["class"])],64)):se("",!0)],64)):se("",!0),!r.disableEdit&&f.depth>0&&f.data.editable?(M(),ie(y(ct),Gr({key:1},u,{class:g.value,onClick:C[5]||(C[5]=ni(v=>h(s.value,!0),["stop"]))}),{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-delete-rounded"})]),_:1},16,["class"])):se("",!0),N(y(tu),{class:Te({"opacity-0":!f.hovering&&!o.value}),"button-props":{flat:!0,size:"mini"},disabled:!y(i),"onUpdate:visible":C[8]||(C[8]=v=>o.value=v)},{popper:W(()=>[b("div",gIe,[N(y(WE),{onClick:C[6]||(C[6]=v=>y(n)(typeof s.value=="object"?JSON.stringify(s.value):s.value.toString()))},{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),ze(" Copy Value ")]),_:1}),N(y(WE),{onClick:C[7]||(C[7]=()=>{y(n)(f.data.key)})},{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),ze(" Copy Path ")]),_:1})])]),"button-icon":W(()=>[N(y(Ft),{icon:"i-material-symbols:more-vert"})]),_:1},8,["class","disabled"])]))}}),dIe={class:"flex-inline items-center gap4px"},Ip=ge({__name:"StateFieldInputEditor",props:{modelValue:{},customType:{},showActions:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0}},emits:["cancel","submit","update:modelValue"],setup(t,{emit:r}){const e=t,n=r,i=U(()=>e.customType==="date"?"datetime-local":""),{escape:o,enter:a}=iIe();wn(()=>{o.value?n("cancel"):a.value&&n("submit")});const s=oIe(e,"modelValue",n);function l(u){try{return d5(u,e.customType),!0}catch{return!1}}const c=G(!1);return et(s,Dl(()=>{c.value=!l(s.value)},300)),(u,g)=>(M(),x("span",dIe,[N(y(Za),{modelValue:y(s),"onUpdate:modelValue":g[0]||(g[0]=h=>nt(s)?s.value=h:null),type:i.value,variant:c.value?"warning":"normal",class:Te(["h25px px4px",u.customType==="date"?"w240px":"w120px"]),"auto-focus":u.autoFocus,onClick:g[1]||(g[1]=ni(()=>{},["stop"]))},null,8,["modelValue","type","variant","class","auto-focus"]),u.showActions?(M(),x(Se,{key:0},[Vt((M(),ie(y(ct),{size:"mini",flat:"",class:"p2px!",onClick:g[2]||(g[2]=ni(h=>u.$emit("cancel"),["stop"]))},{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-cancel"})]),_:1})),[[y(pr),{content:"Esc to cancel"}]]),c.value?Vt((M(),ie(y(Ft),{key:1,icon:"i-material-symbols-warning",class:"color-warning-500 dark:color-warning-300"},null,512)),[[y(pr),{content:"Invalid value"}]]):Vt((M(),ie(y(ct),{key:0,size:"mini",flat:"",class:"p2px!",onClick:g[3]||(g[3]=ni(h=>u.$emit("submit"),["stop"]))},{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-save"})]),_:1})),[[y(pr),{content:"Enter to submit change"}]])],64)):se("",!0)]))}}),jb=ge({__name:"ToggleExpanded",props:{value:{type:Boolean}},setup(t){return(r,e)=>(M(),x("i",{class:Te(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base",{"transform rotate-90":r.value}])},null,2))}}),PU="expanded-state";function Ya(t=""){const r=G([]);return Li(`${PU}-${t}`,r),{expanded:r}}function Ub(t=""){const r=mr(`${PU}-${t}`,G([]));function e(n){const i=r.value.indexOf(n);i===-1?r.value.push(n):r.value.splice(i,1)}return{expanded:r,toggleExpanded:e}}function fIe(t,r={}){const{enter:e=()=>{},leave:n=()=>{},initial:i=!1}=r,o=G(i);return Fs(t,"mouseenter",()=>{o.value=!0,e()}),Fs(t,"mouseleave",()=>{o.value=!1,n()}),{isHovering:o}}const RU=t=>(Tu("data-v-e1338684"),t=t(),Lu(),t),CIe={key:1,pl5:""},vIe={op70:"",class:"whitespace-nowrap"},AIe=RU(()=>b("span",{mx1:""},":",-1)),IIe=["innerHTML"],pIe={key:0},mIe={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},yIe=RU(()=>b("span",{"mx-1":""},":",-1)),zS=30,bIe=ge({__name:"StateFieldViewer",props:{data:{},depth:{},index:{},expandedStateId:{}},setup(t){const r=t,e=G(zS),n=U(()=>hF(r.data.value,!1,{customClass:{string:"max-w-120 truncate"}})),i=U(()=>Yh(r.data.value)),o=U(()=>ib(r.data.value)),{expanded:a,toggleExpanded:s}=Ub(r.expandedStateId??""),l=U(()=>{var P;return i.value==="custom"?`${((P=r.data.value._custom)==null?void 0:P.type)??"string"}-custom-state`:""}),c=U(()=>{const{value:P}=o.value;return H_(P)?P.length:O_(P)?Object.keys(P).length:0}),u=U(()=>r.data.path||[r.data.key]),g=U(()=>u.value[u.value.length-1]),h=U(()=>{var P,B,te,ee,re,_e,xe;const rt=["Reactive"],De=((B=(P=r.data)==null?void 0:P._custom)==null?void 0:B.stateTypeName)||((te=r.data)==null?void 0:te.stateTypeName);if(rt.includes(De))return De;if((re=(ee=r.data.value)==null?void 0:ee.fields)!=null&&re.abstract)return"";{const be=(xe=(_e=r.data.value)==null?void 0:_e._custom)==null?void 0:xe.type,Ne=i.value==="custom"&&!be?`"${n.value}"`:n.value===""?'""':n.value,Ue=i.value==="custom"&&be==="ref"?Yh(Ne):i.value,ot=i.value==="string"?"select-text":"",ft=`<span class="${Ue}-state-type flex whitespace-nowrap ${ot}">${Ne}</span>`;return De?`${ft} <span class="text-gray-500">(${De})</span>`:ft}}),d=U(()=>{const{value:P,inherit:B,customType:te}=o.value,ee=te==="set";let re=[];return H_(P)?P.slice(0,e.value).map((_e,xe)=>({key:xe.toString(),path:[...u.value,xe.toString()],value:_e,...B,editable:r.data.editable&&!ee,creating:!1})):(O_(P)&&(re=Object.keys(P).slice(0,e.value).map(_e=>({key:_e,path:[...u.value,_e],value:P[_e],...B,editable:r.data.editable&&!ee,creating:!1})),i.value!=="custom"&&(re=JD(re))),re===r.data.value?[]:re)}),f=U(()=>d.value.length>0),C=G(),v=Fb(),{isHovering:A}=fIe(()=>C.value),{editingType:I,editing:p,editingText:m,toggleEditing:w,nodeId:_}=sIe();et(()=>p.value,P=>{if(P){const{value:B}=o.value;m.value=ple(B,o.value.customType)}else m.value=""});async function k(){const P=r.data;await Ae.value.editInspectorState({path:u.value,inspectorId:v.value.inspectorId,type:P.stateType,nodeId:_.value,state:{newKey:null,type:I.value,value:d5(m.value,o.value.customType)}}),await Ae.value.sendInspectorState(v.value.inspectorId),w()}const{addNewProp:S,draftingNewProp:E,resetDrafting:T}=cIe();function L(P){const B=`${r.depth}-${r.index}`;a.value.includes(B)||s(B),S(P,o.value.value)}async function O(){const P=r.data;await Ae.value.editInspectorState({path:[...u.value,E.value.key],inspectorId:v.value.inspectorId,type:P.stateType,nodeId:_.value,state:{newKey:E.value.key,type:typeof d5(E.value.value),value:d5(E.value.value)}}),await Ae.value.sendInspectorState(v.value.inspectorId),T()}return(P,B)=>(M(),x("div",null,[b("div",{ref_key:"containerRef",ref:C,class:Te(["font-state-field flex items-center text-3.5",[f.value&&"cursor-pointer hover:bg-active"]]),style:Sr({paddingLeft:`${P.depth*15+4}px`}),onClick:B[1]||(B[1]=te=>y(s)(`${P.depth}-${P.index}`))},[f.value?(M(),ie(jb,{key:0,value:y(a).includes(`${P.depth}-${P.index}`)},null,8,["value"])):(M(),x("span",CIe)),b("span",vIe,Ee(g.value),1),AIe,y(p)?(M(),ie(Ip,{key:2,modelValue:y(m),"onUpdate:modelValue":B[0]||(B[0]=te=>nt(m)?m.value=te:null),class:"mr-1","custom-type":o.value.customType,onCancel:y(w),onSubmit:k},null,8,["modelValue","custom-type","onCancel"])):se("",!0),b("span",{class:Te([l.value,"flex whitespace-nowrap"])},[b("span",{class:"flex",innerHTML:h.value},null,8,IIe)],2),N(hIe,{hovering:y(A),"disable-edit":y(v).disableEdit||y(p),data:P.data,depth:P.depth,onEnableEditInput:y(w),onAddNewProp:L},null,8,["hovering","disable-edit","data","depth","onEnableEditInput"])],6),f.value&&y(a).includes(`${P.depth}-${P.index}`)?(M(),x("div",pIe,[N(DU,{data:d.value,depth:P.depth,index:P.index},null,8,["data","depth","index"]),c.value>e.value?Vt((M(),ie(y(ct),{key:0,flat:"",size:"mini",class:"ml-4",onClick:B[2]||(B[2]=te=>e.value+=zS)},{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-more-horiz"})]),_:1})),[[y(pr),"Show more"]]):se("",!0),y(E).enable?(M(),x("div",{key:1,style:Sr({paddingLeft:`${(P.depth+1)*15+4}px`})},[b("span",mIe,[N(Ip,{modelValue:y(E).key,"onUpdate:modelValue":B[3]||(B[3]=te=>y(E).key=te),"show-actions":!1},null,8,["modelValue"])]),yIe,N(Ip,{modelValue:y(E).value,"onUpdate:modelValue":B[4]||(B[4]=te=>y(E).value=te),"auto-focus":!1,onCancel:y(T),onSubmit:O},null,8,["modelValue","onCancel"])],4)):se("",!0)])):se("",!0)]))}}),wIe=fc(bIe,[["__scopeId","data-v-e1338684"]]),DU=ge({__name:"ChildStateViewer",props:{data:{},depth:{default:0},index:{},expandedStateId:{default:""}},setup(t){return(r,e)=>(M(),x("div",null,[(M(!0),x(Se,null,It(r.data,(n,i)=>(M(),x("div",{key:i},[N(wIe,{data:n,depth:r.depth+1,index:`${r.index}-${i}`,"expanded-state-id":r.expandedStateId},null,8,["data","depth","index","expanded-state-id"])]))),128))]))}}),$Ie=["onClick"],_Ie={key:1,pl5:""},MIe={"font-state-field":"","text-3.5":""},zIe={key:0},rf=ge({__name:"RootStateViewer",props:{data:{},nodeId:{},inspectorId:{},disableEdit:{type:Boolean,default:!1},expandedStateId:{default:""}},setup(t){const r=t;function e(){return{nodeId:r.nodeId,inspectorId:r.inspectorId,disableEdit:r.disableEdit}}const{context:n}=aIe(e());wn(()=>{n.value=e()});const{expanded:i,toggleExpanded:o}=Ub(r.expandedStateId);return(a,s)=>(M(),x("div",null,[(M(!0),x(Se,null,It(a.data,(l,c,u)=>(M(),x("div",{key:u},[b("div",{class:Te(["flex items-center",[l?.length&&"cursor-pointer hover:bg-active"]]),onClick:g=>y(o)(`${u}`)},[l!=null&&l.length?(M(),ie(jb,{key:0,value:y(i).includes(`${u}`)},null,8,["value"])):(M(),x("span",_Ie)),b("span",MIe,Ee(c),1)],10,$Ie),l!=null&&l.length&&y(i).includes(`${u}`)?(M(),x("div",zIe,[N(DU,{data:l,index:`${u}`,"expanded-state-id":a.expandedStateId},null,8,["data","index","expanded-state-id"])])):se("",!0)]))),128))]))}});function EIe(t,r){const e=new Date(t);return`${e.toString().match(/\d\d:\d\d:\d\d/)[0]}${r==="ms"?`.${String(e.getMilliseconds()).padStart(3,"0")}`:""}`}function SIe(t,r){const e=new Map,n=BU(t,r.toLowerCase(),e,0);return e.clear(),n}const NU=10;function BU(t,r,e,n){if(n>NU)return!1;let i=!1;const o=Object.keys(t);let a,s;for(let l=0;l<o.length&&(a=o[l],s=t[a],i=FU(r,a,s,e,n+1),!i);l++);return i}function FU(t,r,e,n,i){let o=!1,a;return r==="_custom"&&(r=e.display,e=e.value),(a=TIe(e))&&(e=a),r&&ES(r,t)?(o=!0,n.set(e,!0)):n.has(e)?o=n.get(e):Array.isArray(e)?(n.set(e,null),o=LIe(e,t,n,i),n.set(e,o)):VA(e)?(n.set(e,null),o=BU(e,t,n,i),n.set(e,o)):ES(e,t)&&(o=!0,n.set(e,!0)),o}function ES(t,r){return`${t}`.toLowerCase().includes(r)}function TIe(t){return t===null?"null":t===Wd?"undefined":t===Yd?"NaN":t===Zd?"Infinity":t===Kd?"-Infinity":!1}function LIe(t,r,e,n){if(n>NU)return!1;let i=!1,o;for(let a=0;a<t.length&&(o=t[a],i=FU(r,null,o,e,n+1),!i);a++);return i}function SS(t){return t.toString(16).padStart(6,"0")}const jU=ge({__name:"NodeTag",props:{tag:{}},setup(t){return(r,e)=>Vt((M(),x("span",{style:Sr({color:`#${y(SS)(r.tag.textColor)}`,backgroundColor:`#${y(SS)(r.tag.backgroundColor)}`}),class:"ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"},[ze(Ee(r.tag.label),1)],4)),[[y(pr),{content:r.tag.tooltip,html:!0}]])}}),UU=Symbol("SelectedSymbolKey");function kIe(){const t=G("");return Li(UU,t),{selected:t}}function OIe(){const t=mr(UU,G(""));function r(e){t.value=e}return{selected:t,select:r}}const HIe=["onClick","onDblclick"],xIe={key:1,pl5:""},VIe={"font-state-field":"","text-3.5":""},PIe={key:0,class:"text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"},RIe={"group-hover:text-white":"",class:"ws-nowrap [.active_&]:text-white"},DIe={key:1,class:"text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"},NIe={key:0},nf=ge({__name:"TreeViewer",props:rv({data:{},depth:{default:0},withTag:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=Zy(t,"modelValue"),{expanded:e,toggleExpanded:n}=Ub();OIe();function i(a){return"name"in a&&a?.name||"label"in a&&a.label}function o(a){r.value=a}return(a,s)=>(M(!0),x(Se,null,It(a.data,(l,c)=>{var u,g;return M(),x("div",{key:c,class:Te({"min-w-max":a.depth===0})},[b("div",{class:Te(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600",{"bg-primary-600! active":r.value===l.id}]),style:Sr({paddingLeft:`${15*a.depth+4}px`}),onClick:h=>o(l.id),onDblclick:h=>y(n)(l.id)},[(u=l?.children)!=null&&u.length?(M(),ie(jb,{key:0,value:y(e).includes(l.id),class:"[.active_&]:op20 group-hover:op20",onClick:ni(h=>y(n)(l.id),["stop"])},null,8,["value","onClick"])):(M(),x("span",xIe)),b("span",VIe,[a.withTag?(M(),x("span",PIe,"<")):se("",!0),b("span",RIe,Ee(i(l)),1),a.withTag?(M(),x("span",DIe,">")):se("",!0)]),(M(!0),x(Se,null,It(l.tags,(h,d)=>(M(),ie(jU,{key:d,tag:h},null,8,["tag"]))),128))],46,HIe),(g=l?.children)!=null&&g.length&&y(e).includes(l.id)?(M(),x("div",NIe,[N(nf,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=h=>r.value=h),data:l?.children,depth:a.depth+1,"with-tag":a.withTag},null,8,["modelValue","data","depth","with-tag"])])):se("",!0)],2)}),128))}}),BIe={class:"h-full flex flex-col"},FIe={class:"h-full flex flex-col p2"},jIe={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},UIe={class:"flex items-center gap-2 px-1"},GIe=["onClick"],WIe={class:"no-scrollbar flex-1 select-none overflow-scroll"},ZIe={class:"h-full flex flex-col p2"},KIe={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},YIe={class:"flex items-center gap-2 px-1"},XIe=["onClick"],_a="pinia",qIe=ge({__name:"Index",setup(t){const{expanded:r}=Ya(),{expanded:e}=Ya("pinia-store-state"),n=G([]),i=G([]),o=G(""),a=G([]),s=U(()=>{var S,E;return(S=a.value)!=null&&S.length?h((E=a.value)==null?void 0:E[0]):[]}),l=U(()=>f(a.value)),c=U(()=>l.value.map(S=>S.id)),u=G({}),g=U(()=>{var S,E;return!((S=u.value.state)!=null&&S.length)&&!((E=u.value.getters)!=null&&E.length)});function h(S,E=[],T=[]){var L;return E.push(S.id),((L=S.children)==null?void 0:L.length)===0&&T.push([...E]),Array.isArray(S.children)&&S.children.forEach(O=>{h(O,E,T)}),E.pop(),T}function d(S,E){const T=[];return S?.forEach(L=>{T.push(...L.slice(0,E+1))}),[...new Set(T)]}function f(S){const E=[],T=L=>{L?.forEach(O=>{var P;E.push(O),(P=O.children)!=null&&P.length&&T(O.children)})};return T(S),E}function C(){Ae.value.getInspectorNodeActions(_a).then(S=>{n.value=S})}function v(){Ae.value.getInspectorActions(_a).then(S=>{i.value=S})}C(),v();function A(S){Ae.value.callInspectorNodeAction(_a,S,o.value)}function I(S){Ae.value.callInspectorAction(_a,S)}function p(S){var E;for(const T in S)(E=S[T])!=null&&E.length||delete S[T];return S}function m(S){Ae.value.getInspectorState({inspectorId:_a,nodeId:S}).then(E=>{const T=Zr(E);T&&(u.value=p(T),e.value=Array.from({length:Object.keys(u.value).length},(L,O)=>`${O}`))})}function w(){u.value={}}et(o,()=>{w(),m(o.value)}),Ae.value.getInspectorTree({inspectorId:_a,filter:""}).then(S=>{const E=Zr(S);a.value=E,!o.value&&E.length&&(o.value=E[0].id,m(E[0].id),r.value=d(s.value,1))});function _(S){const E=Zr(S);E.inspectorId!==_a||!E.rootNodes.length||(a.value=E.rootNodes,c.value.includes(o.value)||(o.value=E.rootNodes[0].id,r.value=d(s.value,1),m(E.rootNodes[0].id)))}function k(S){const E=Zr(S);if(E.inspectorId!==_a)return;const T=E.state;u.value=p({state:T.state,getters:T.getters})}return Ae.functions.on(Dt.INSPECTOR_TREE_UPDATED,_),Ae.functions.on(Dt.INSPECTOR_STATE_UPDATED,k),cn(()=>{Ae.functions.off(Dt.INSPECTOR_TREE_UPDATED,_),Ae.functions.off(Dt.INSPECTOR_STATE_UPDATED,k)}),(S,E)=>(M(),x("div",BIe,[N(Pu,{"doc-link":"https://pinia.vuejs.org/","github-repo-link":"https://github.com/vuejs/pinia"},{default:W(()=>[N(Vu)]),_:1}),N(y(gc),{class:"flex-1 overflow-auto"},{default:W(()=>[N(y(Pn),{border:"r base",size:"40","h-full":""},{default:W(()=>{var T;return[b("div",FIe,[(T=i.value)!=null&&T.length?(M(),x("div",jIe,[b("div",UIe,[(M(!0),x(Se,null,It(i.value,(L,O)=>Vt((M(),x("div",{key:O,class:"flex items-center gap1",onClick:P=>I(O)},[b("i",{class:Te(`i-ic-baseline-${L.icon.replace(/\_/g,"-")}`),"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,2)],8,GIe)),[[y(pr),{content:L.tooltip},void 0,{"bottom-end":!0}]])),128))])])):se("",!0),b("div",WIe,[N(nf,{modelValue:o.value,"onUpdate:modelValue":E[0]||(E[0]=L=>o.value=L),data:a.value},null,8,["modelValue","data"])])])]}),_:1}),N(y(Pn),{size:"60"},{default:W(()=>{var T;return[b("div",ZIe,[(T=n.value)!=null&&T.length?(M(),x("div",KIe,[b("div",YIe,[(M(!0),x(Se,null,It(n.value,(L,O)=>Vt((M(),x("div",{key:O,class:"flex items-center gap1",onClick:P=>A(O)},[b("i",{class:Te(`i-ic-baseline-${L.icon.replace(/\_/g,"-")}`),"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,2)],8,XIe)),[[y(pr),{content:L.tooltip},void 0,{"bottom-end":!0}]])),128))])])):se("",!0),o.value&&!g.value?(M(),ie(rf,{key:1,class:"no-scrollbar flex-1 select-none overflow-scroll",data:u.value,"node-id":o.value,"inspector-id":_a,"expanded-state-id":"pinia-store-state"},null,8,["data","node-id"])):(M(),ie(ud,{key:2},{default:W(()=>[ze(" No Data ")]),_:1}))])]}),_:1})]),_:1})]))}}),QIe={class:"p3"},JIe=["onClick"],e4e={key:0,class:"absolute left-5px top-4.5 h10 w0 border-l-2",border:"solid gray2"},t4e={class:"h-full flex items-center truncate pl5"},r4e={absolute:"","top-5":"",pr2:"","text-3":"",op40:""},n4e={pl2:"",op30:""},i4e=ge({__name:"EventList",props:rv({data:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,e=Zy(t,"modelValue"),n=["#3e5770","#42b983","#0098c4"],i=G(null),o=U(()=>{let a=-1,s=0;return r.data.forEach((l,c)=>{(l.groupId!==s||a===-1)&&(a=(a+1)%n.length),s=l.groupId??s,l.id=c,l.color=n[a]}),r.data});return et(()=>o.value.length,a=>{var s;(s=i.value)==null||s.scrollToItem(a-1)},{flush:"post"}),(a,s)=>(M(),x("div",QIe,[N(y(Eb),{ref_key:"scrollerRef",ref:i,items:o.value,"min-item-size":52,"key-field":"id","page-mode":"","item-tag":"li","list-tag":"ul",buffer:20},{default:W(({item:l})=>[b("div",{class:"relative mb7 h6 cursor-pointer",style:Sr({color:e.value===l.id?l.color:""}),onClick:c=>e.value=l.id},[b("span",{class:"absolute top-1.5 inline-block h3 w3 b rounded-50%",style:Sr({border:`3px solid ${l.color}`})},null,4),l.id<a.data.length-1?(M(),x("span",e4e)):se("",!0),b("p",t4e,[b("span",r4e,"["+Ee(y(EIe)(l.time))+"]",1),ze(" "+Ee(l.title)+" ",1),b("span",n4e,Ee(l.subtitle),1)])],12,JIe)]),_:1},8,["items"])]))}}),o4e={class:"h-full flex flex-col"},a4e={key:0,class:"flex-1 overflow-hidden"},s4e={"h-full":"","select-none":"","overflow-scroll":"",class:"no-scrollbar"},l4e={"h-full":"","select-none":"","overflow-scroll":"",class:"no-scrollbar"},Gb=ge({__name:"index",props:{layerIds:{},docLink:{},githubRepoLink:{}},setup(t){const r=t,{expanded:e}=Ya("timeline-state");e.value=["0","1"];const n=G([]),i=G(new Map),o=G(0),a=U(()=>n.value[o.value]??null),s=U(()=>{var h;const d=[];for(const f in(h=a.value)==null?void 0:h.data)d.push({key:f,type:f,editable:!1,value:a.value.data[f]});return d}),l=U(()=>{var h,d,f;const C=(h=a.value)==null?void 0:h.groupId,v=i.value.get(C);if(v){const A=((d=v[v.length-1])==null?void 0:d.time)-(((f=v[0])==null?void 0:f.time)??0);return[{key:"events",type:"events",editable:!1,value:v.length},A&&{key:"duration",type:"duration",editable:!1,value:`${A}ms`}].filter(Boolean)}}),c=U(()=>({"Event Info":s.value,...l.value&&{"Group Info":l.value}}));function u(h){var d;const f=h.groupId;f!==void 0&&(i.value.set(f,i.value.get(f)??[]),(d=i.value.get(f))==null||d.push(h))}function g(h){const d=Zr(h);if(!d)return;const{layerId:f,event:C}=d;r.layerIds.includes(f)&&(n.value.push(C),u(C))}return Ae.functions.on(Dt.TIMELINE_EVENT_UPDATED,g),cn(()=>{Ae.functions.off(Dt.TIMELINE_EVENT_UPDATED,g)}),(h,d)=>(M(),x("div",o4e,[N(Pu,{"doc-link":h.docLink,"github-repo-link":h.githubRepoLink},{default:W(()=>[N(Vu)]),_:1},8,["doc-link","github-repo-link"]),n.value.length?(M(),x("div",a4e,[N(y(gc),{class:"h-full"},{default:W(()=>[N(y(Pn),{border:"r base",size:"40","h-full":""},{default:W(()=>[b("div",s4e,[N(i4e,{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),data:n.value},null,8,["modelValue","data"])])]),_:1}),N(y(Pn),{size:"60"},{default:W(()=>[b("div",l4e,[N(rf,{class:"p3",data:c.value,"node-id":"","inspector-id":"","disable-edit":!0,"expanded-state-id":"timeline-state"},null,8,["data"])])]),_:1})]),_:1})])):(M(),ie(ud,{key:1,class:"flex-1"},{default:W(()=>[ze(" No events ")]),_:1}))]))}}),c4e=ge({__name:"Index",setup(t){const r=["pinia:mutations"];return(e,n)=>(M(),ie(Gb,{"layer-ids":r,"doc-link":"https://pinia.vuejs.org/","github-repo-link":"https://github.com/vuejs/pinia"}))}}),u4e={class:"flex-1 overflow-y-auto p2"},g4e={class:"max-w-[190px] flex-1 select-none py-1.5 text-sm"},h4e={class:"w-4/5"},d4e={key:0,class:"flex justify-start"},f4e={key:1},GU=ge({__name:"Settings",props:{pluginId:{},options:{},values:{}},emits:["update"],setup(t,{emit:r}){const e=t,n=r,i=U(()=>e.options),o=U(()=>e.values);function a(s,l){Ae.value.updatePluginSettings(e.pluginId,s,l),Ae.value.getPluginSettings(e.pluginId).then(c=>{n("update",c)})}return(s,l)=>(M(),x("div",u4e,[b("ul",null,[(M(!0),x(Se,null,It(i.value,(c,u)=>(M(),x("li",{key:u,class:"flex items-center py-2"},[b("div",g4e,Ee(c.label),1),b("div",h4e,[c.type==="boolean"?(M(),x("div",d4e,[N(y(K6),{"model-value":o.value[u],class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","onUpdate:modelValue"])])):c.type==="choice"?(M(),x("div",f4e,[N(y(sd),{"model-value":o.value[u],options:c.options,"onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","options","onUpdate:modelValue"])])):c.type==="text"?(M(),ie(y(Za),{key:2,"model-value":o.value[u],"onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","onUpdate:modelValue"])):se("",!0)])]))),128))])]))}}),C4e={class:"h-full flex flex-col"},v4e="pinia",A4e=ge({__name:"Settings",setup(t){const r=mr("pluginSettings"),e=U(()=>r.value.options),n=U(()=>r.value.values);function i(o){r.value=o}return(o,a)=>(M(),x("div",C4e,[N(Pu,{"doc-link":"https://pinia.vuejs.org/","github-repo-link":"https://github.com/vuejs/pinia"},{default:W(()=>[N(Vu)]),_:1}),N(GU,{"plugin-id":v4e,options:e.value,values:n.value,onUpdate:i},null,8,["options","values"])]))}}),I4e={"h-full":"","w-full":""},p4e=ge({__name:"index",setup(t){const r=G(null);Li("pluginSettings",r);const e=U(()=>[{path:"/store",name:"Store",component:qIe,icon:"i-carbon-tree-view-alt"},{path:"/timeline",name:"Timeline",component:c4e,icon:"i-mdi:timeline-clock-outline"},{path:"/",name:"About",component:_Ae,icon:"i-logos-pinia"},r.value&&{path:"/settings",name:"Settings",component:A4e,icon:"i-mdi:cog-outline"}].filter(Boolean)),{VirtualRouterView:n,restoreRouter:i}=Rb(e,{defaultRoutePath:"/store"});return ka(()=>{Ae.value.getPluginSettings("pinia").then(o=>{o.options?r.value=o:r.value=null})}),(o,a)=>(M(),x("div",I4e,[N(y(n))]))}}),m4e={class:"absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]"},y4e=b("span",{class:"font-500"},"Render Code",-1),b4e={class:"flex-1 overflow-scroll text-3.5"},w4e=ge({__name:"RenderCode",props:{code:{}},emits:["close"],setup(t,{emit:r}){const e=r;function n(){e("close")}return(i,o)=>(M(),x("div",m4e,[b("div",{class:"h-12 w-full flex items-center justify-between p-2"},[y4e,b("i",{class:"i-carbon-close cursor-pointer hover:op80",onClick:n})]),b("div",b4e,[N(y(Mb),{code:i.code,lang:"javascript"},null,8,["code"])])]))}}),$4e={class:"p2"},_4e=["onClick"],M4e=ge({__name:"SelectiveList",props:rv({data:{}},{modelValue:{},modelModifiers:{}}),emits:rv(["select"],["update:modelValue"]),setup(t,{emit:r}){const e=r,n=Zy(t,"modelValue");function i(o){n.value=o,e("select",o)}return(o,a)=>(M(),x("ul",$4e,[(M(!0),x(Se,null,It(o.data,s=>(M(),x("li",{key:s.id,class:Te(["selectable-item",{active:s.id===n.value}]),onClick:l=>i(s.id)},[ze(Ee(s.label)+" ",1),(M(!0),x(Se,null,It(s.tags,(l,c)=>(M(),ie(jU,{key:c,tag:l},null,8,["tag"]))),128))],10,_4e))),128))]))}}),of=t=>(Tu("data-v-092d4be1"),t=t(),Lu(),t),z4e={class:"h-full w-full"},E4e={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},S4e={key:0,class:"h-full flex flex-col p2"},T4e={class:"flex py2"},L4e={xmlns:"http://www.w3.org/2000/svg",style:{height:"1.1em",width:"1.1em"},class:"op-80 hover:op-100",viewBox:"0 0 24 24"},k4e=of(()=>b("path",{fill:"currentColor",d:"M10.611 10.611a1 1 0 0 1 1.11-.208l8.839 3.889a1 1 0 0 1-.14 1.88l-3.338.91l-.91 3.338a1 1 0 0 1-1.88.14l-3.89-8.84a1 1 0 0 1 .209-1.109M17 3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm-3.73 10.269l1.715 3.9l.318-1.164a1 1 0 0 1 .701-.702l1.165-.318l-3.9-1.716Z"},null,-1)),O4e=[k4e],H4e={class:"h-full flex flex-col p2"},x4e={class:"flex py2"},V4e={key:0,class:"font-state-field flex items-center px-1 text-3.5"},P4e=of(()=>b("span",{class:"text-gray-400 dark:text-gray-600"},"<",-1)),R4e={"group-hover:text-white":"",class:"max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"},D4e=of(()=>b("span",{class:"text-gray-400 dark:text-gray-600"},">",-1)),N4e={class:"flex items-center gap-2 px-1"},B4e={class:"h-full flex flex-col items-center justify-center gap-2"},F4e={class:"block"},j4e={xmlns:"http://www.w3.org/2000/svg",style:{height:"2em",width:"2em",opacity:"0.5",color:"#00dc82"},class:"animate-fade",viewBox:"0 0 24 24"},U4e=of(()=>b("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[b("circle",{cx:"12",cy:"12",r:".5",fill:"currentColor"}),b("path",{d:"M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2"})],-1)),G4e=[U4e],W4e=of(()=>b("p",null," Click on a component on the page to select it ",-1)),Z4e={class:"flex items-center justify-center"},Hg="components",K4e=ge({__name:"index",emits:["openInEditor","onInspectComponentStart","onInspectComponentEnd"],setup(t,{emit:r}){const e=r,n=G(),i=G(!1),{width:o}=rIe(n),a=U(()=>i.value?o.value<700:!1),s=G(""),l=G(""),[c,u]=XAe(!0),g=G(!1),h=G(!1),d=G(""),f=G(!1);function C($,H=[],F=[]){var j;return H.push($.id),((j=$.children)==null?void 0:j.length)===0&&F.push([...H]),Array.isArray($.children)&&$.children.forEach(q=>{C(q,H,F)}),H.pop(),F}function v($){const H=[],F=j=>{j?.forEach(q=>{var le;H.push(q),(le=q.children)!=null&&le.length&&F(q.children)})};return F($),H}function A($,H){const F=[];return $?.forEach(j=>{F.push(...j.slice(0,H+1))}),[...new Set(F)]}function I($,H){const F=[];return $.forEach(j=>{const q=j.indexOf(H);q!==-1&&F.push(...j.slice(0,q+1))}),[...new Set(F)]}const p=G([]),m=U(()=>{var $,H;return($=p.value)!=null&&$.length?C((H=p.value)==null?void 0:H[0]):[]}),w=U(()=>v(p.value)),_=U(()=>w.value.map($=>$.id)),k=G({}),S=G(""),E=U(()=>{const $=[],H=F=>{F.forEach(j=>{var q;j.id===S.value&&$.push(j),(q=j.children)!=null&&q.length&&H(j.children)})};return H(p.value),$[0]}),T=U(()=>{var $;return(($=E.value)==null?void 0:$.file)??""}),L=U(()=>{const $={};for(const H in k.value){const F=k.value[H].filter(q=>{try{return SIe({[q.key]:q.value},l.value)}catch(le){return{[q.key]:le}}}),j=x5e(Object.values(tAe(JD(F),"stateType")));F.length&&($[H]=j)}return $}),{expanded:O}=Ya(),{expanded:P}=Ya("component-state");kIe();async function B($=""){return Ae.value.getInspectorTree({inspectorId:Hg,filter:$}).then(H=>{var F,j;const q=Zr(H);p.value=q,S.value=(j=(F=p.value)==null?void 0:F[0])==null?void 0:j.id,O.value=A(m.value,1),g.value=!0})}function te($){if(!$||!($!=null&&$.state))return{};const H={};return $.state.forEach(F=>{H[F.type]||(H[F.type]=[]),H[F.type].push(F)}),H}function ee($){Ae.value.getInspectorState({inspectorId:Hg,nodeId:$}).then(H=>{const F=Zr(H);F&&(k.value=te(F),P.value=Array.from({length:Object.keys(k.value).length},(j,q)=>`${q}`))})}et(S,$=>{ee($),f.value&&Ue()});function re($){const H=Zr($);H.inspectorId!==Hg||H.nodeId!==S.value||(k.value=te({state:H.state.state}))}Ae.functions.on(Dt.INSPECTOR_STATE_UPDATED,re),B();function _e($){const H=$.trim().toLowerCase();u(),B(H).then(()=>{u()})}qAe(s,$=>{_e($)},{debounce:300});function xe($){var H,F;const j=Zr($);j.inspectorId===Hg&&(s.value?_e(s.value):p.value=j.rootNodes,_.value.includes(S.value)||(S.value=(F=(H=p.value)==null?void 0:H[0])==null?void 0:F.id,O.value=A(m.value,1)))}Ae.functions.on(Dt.INSPECTOR_TREE_UPDATED,xe),cn(()=>{Ae.functions.off(Dt.INSPECTOR_STATE_UPDATED,re),Ae.functions.off(Dt.INSPECTOR_TREE_UPDATED,xe)});function rt(){h.value=!0,e("onInspectComponentStart"),Ae.value.inspectComponentInspector().then($=>{const H=JSON.parse($);S.value=H.id,O.value.includes(H.id)||O.value.push(H.id),O.value=[...new Set([...O.value,...I(m.value,H.id)])],Z()}).finally(()=>{h.value=!1,e("onInspectComponentEnd")})}function De(){h.value=!1,Ae.value.cancelInspectComponentInspector()}function be(){Ae.value.scrollToComponent(S.value)}function Ne(){Ae.value.inspectDOM(S.value).then(()=>{chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)")})}function Ue(){Ae.value.getComponentRenderCode(S.value).then($=>{d.value=$,f.value=!0})}function ot(){e("openInEditor",T.value)}const ft=G();function Z(){setTimeout(()=>{var $;const H=($=ft.value)==null?void 0:$.querySelector(".active");H?.scrollIntoView({behavior:"smooth",block:"center"})},300)}function ne(){d.value="",f.value=!1}const R=Ca(),V=U(()=>R.appRecords.value.map($=>({label:$.name+($.version?` (${$.version})`:""),value:$.id}))),D=U(()=>V.value.map($=>({label:$.label,id:$.value}))),K=G(R.activeAppRecordId.value);wn(()=>{K.value=R.activeAppRecordId.value});function z($){Ae.value.toggleApp($).then(()=>{S.value="",B()})}return($,H)=>(M(),x("div",z4e,[N(y(gc),{ref_key:"splitpanesRef",ref:n,class:"flex-1 overflow-auto",horizontal:a.value,onReady:H[4]||(H[4]=F=>i.value=!0)},{default:W(()=>[V.value.length>1?(M(),ie(y(Pn),{key:0,border:"base h-full",size:"20"},{default:W(()=>[b("div",E4e,[N(M4e,{modelValue:K.value,"onUpdate:modelValue":H[0]||(H[0]=F=>K.value=F),data:D.value,class:"w-full",onSelect:z},null,8,["modelValue","data"])])]),_:1})):se("",!0),N(y(Pn),{border:"base","h-full":""},{default:W(()=>[g.value?(M(),x("div",S4e,[b("div",T4e,[N(y(Za),{modelValue:s.value,"onUpdate:modelValue":H[1]||(H[1]=F=>s.value=F),"loading-debounce-time":250,loading:!y(c),placeholder:"Find components...",class:"flex-1 text-3.5"},null,8,["modelValue","loading"]),y(XD)?se("",!0):Vt((M(),x("button",{key:0,"px-1":"",class:"hover:color-#00dc82",onClick:rt},[(M(),x("svg",L4e,O4e))])),[[y(pr),"Select component in the page",void 0,{bottom:!0}]])]),b("div",{ref_key:"componentTreeContainer",ref:ft,class:"no-scrollbar flex-1 select-none overflow-scroll"},[N(nf,{modelValue:S.value,"onUpdate:modelValue":H[2]||(H[2]=F=>S.value=F),data:p.value,"with-tag":!0},null,8,["modelValue","data"])],512)])):se("",!0)]),_:1}),N(y(Pn),{relative:"","h-full":""},{default:W(()=>{var F;return[b("div",H4e,[b("div",x4e,[(F=E.value)!=null&&F.name?(M(),x("span",V4e,[P4e,b("span",R4e,Ee(E.value.name),1),D4e])):se("",!0),N(y(Za),{modelValue:l.value,"onUpdate:modelValue":H[3]||(H[3]=j=>l.value=j),"loading-debounce-time":250,placeholder:"Filter State...",class:"flex-1 text-3.5"},null,8,["modelValue"]),b("div",N4e,[Vt(b("i",{class:"i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",onClick:be},null,512),[[y(pr),"Scroll to component",void 0,{bottom:!0}]]),Vt(b("i",{class:"i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",onClick:Ue},null,512),[[y(pr),"Show render code",void 0,{bottom:!0}]]),y(sa)?Vt((M(),x("i",{key:0,class:"i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",onClick:Ne},null,512)),[[y(pr),"Inspect DOM",void 0,{bottom:!0}]]):se("",!0),T.value?Vt((M(),x("i",{key:1,class:"i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",onClick:ot},null,512)),[[y(pr),"Open in Editor",void 0,{bottom:!0}]]):se("",!0)])]),N(rf,{class:"no-scrollbar flex-1 select-none overflow-scroll",data:L.value,"node-id":S.value,"inspector-id":Hg,"expanded-state-id":"component-state"},null,8,["data","node-id"])]),f.value&&d.value?(M(),ie(w4e,{key:0,code:d.value,onClose:ne},null,8,["code"])):se("",!0)]}),_:1})]),_:1},8,["horizontal"]),y(sa)?(M(),ie(y(eU),{key:0,modelValue:h.value,"onUpdate:modelValue":H[5]||(H[5]=F=>h.value=F),title:"",height:"12rem",closable:!1},{footer:W(()=>[b("div",Z4e,[N(y(ct),{onClick:De},{default:W(()=>[ze(" Cancel ")]),_:1})])]),default:W(()=>[b("div",B4e,[b("span",F4e,[(M(),x("svg",j4e,G4e))]),W4e])]),_:1},8,["modelValue"])):se("",!0)]))}}),Y4e=fc(K4e,[["__scopeId","data-v-092d4be1"]]),X4e={},q4e={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Q4e=b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8em",height:"8em",viewBox:"0 -4 24 24"},[b("path",{fill:"#3dd68c",d:"M4 15V8.5a4.5 4.5 0 0 1 9 0v7a2.5 2.5 0 0 0 5 0V8.83a3.001 3.001 0 1 1 2 0v6.67a4.5 4.5 0 1 1-9 0v-7a2.5 2.5 0 0 0-5 0V15h3l-4 5l-4-5zm15-8a1 1 0 1 0 0-2a1 1 0 0 0 0 2"})],-1),J4e=b("path",{d:"M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z",fill:"currentColor"},null,-1),epe=[Q4e,J4e];function tpe(t,r){return M(),x("svg",q4e,epe)}const rpe=fc(X4e,[["render",tpe]]),npe={"h-full":"","w-full":"",flex:"","items-center":""},ipe={flex:"~ col gap2",ma:"","px-5":""},ope=b("div",{"flex-auto":""},null,-1),ape={flex:"~ col","mt-20":"","items-center":""},spe={flex:"~","mt--10":"","items-center":"","justify-center":""},lpe=b("div",{mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},[b("span",{op40:""}," Router DevTools ")],-1),cpe=b("div",{"flex-auto":""},null,-1),upe={flex:"~ gap2 wrap"},gpe=b("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),hpe=b("code",null,"Routes",-1),dpe=[gpe,hpe],fpe=b("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),Cpe=b("div",null,"Timeline",-1),vpe=[fpe,Cpe],Ape=b("div",{flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},[b("a",{href:"https://github.com/vuejs/router",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[b("div",{"i-carbon-star":""}),ze(" Star on GitHub ")]),b("a",{href:"https://router.vuejs.org/",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[b("div",{"i-carbon-document":""}),ze(" View Documentation ")])],-1),Ipe=b("div",{"flex-auto":""},null,-1),ppe=ge({__name:"About",setup(t){const r=tf();return(e,n)=>(M(),x("div",npe,[b("div",ipe,[ope,b("div",ape,[b("div",spe,[N(rpe,{"h-18":""})]),lpe]),cpe,b("div",upe,[b("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[0]||(n[0]=i=>y(r).push("/routes"))},dpe),b("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[1]||(n[1]=i=>y(r).push("/timeline"))},vpe)]),Ape,Ipe])]))}}),WU=Symbol.for("VueDevToolsCustomInspectorStateSymbol");function Ru(){return mr(WU)}function ZU(){const t=G({homepage:"",id:"",label:"",logo:"",timelineLayerIds:[]});return Li(WU,t),t}const mpe={class:"h-full flex flex-col"},ype={"h-full":"","select-none":"","overflow-scroll":"",p2:"",class:"no-scrollbar"},bpe={"h-full":"","select-none":"","overflow-scroll":"",class:"no-scrollbar"},wpe=ge({__name:"Index",setup(t){const{expanded:r}=Ya(),{expanded:e}=Ya("routes-state"),n=Ru(),i=U(()=>n.value.id),o=G(""),a=G([]),s=U(()=>{var m,w;return(m=a.value)!=null&&m.length?g((w=a.value)==null?void 0:w[0]):[]}),l=U(()=>d(a.value)),c=U(()=>l.value.map(m=>m.id)),u=G({});function g(m,w=[],_=[]){var k;return w.push(m.id),((k=m.children)==null?void 0:k.length)===0&&_.push([...w]),Array.isArray(m.children)&&m.children.forEach(S=>{g(S,w,_)}),w.pop(),_}function h(m,w){const _=[];return m?.forEach(k=>{_.push(...k.slice(0,w+1))}),[...new Set(_)]}function d(m){const w=[],_=k=>{k?.forEach(S=>{var E;w.push(S),(E=S.children)!=null&&E.length&&_(S.children)})};return _(m),w}function f(m){var w;for(const _ in m)(w=m[_])!=null&&w.length||delete m[_];return m}function C(m){Ae.value.getInspectorState({inspectorId:i.value,nodeId:m}).then(w=>{const _=Zr(w);_&&(u.value=f(_),e.value=Array.from({length:Object.keys(u.value).length},(k,S)=>`${S}`))})}function v(){u.value={}}et(o,()=>{v(),C(o.value)});const A=()=>{Ae.value.getInspectorTree({inspectorId:i.value,filter:""}).then(m=>{const w=Zr(m);a.value=w,!o.value&&w.length&&(o.value=w[0].id,C(w[0].id),r.value=h(s.value,1))})};HU(i).toBeTruthy().then(A);function I(m){const w=Zr(m);w.inspectorId!==i.value||!w.rootNodes.length||(a.value=w.rootNodes,c.value.includes(o.value)||(o.value=w.rootNodes[0].id,r.value=h(s.value,1),C(w.rootNodes[0].id)))}function p(m){const w=Zr(m);if(w.inspectorId!==i.value)return;const _=w.state;u.value=f(_)}return Ae.functions.on(Dt.INSPECTOR_TREE_UPDATED,I),Ae.functions.on(Dt.INSPECTOR_STATE_UPDATED,p),cn(()=>{Ae.functions.off(Dt.INSPECTOR_TREE_UPDATED,I),Ae.functions.off(Dt.INSPECTOR_STATE_UPDATED,p)}),(m,w)=>(M(),x("div",mpe,[N(Pu,{"doc-link":"https://router.vuejs.org/","github-repo-link":"https://github.com/vuejs/router"},{default:W(()=>[N(Vu)]),_:1}),N(y(gc),{class:"flex-1 overflow-auto"},{default:W(()=>[N(y(Pn),{border:"r base",size:"40","h-full":""},{default:W(()=>[b("div",ype,[N(nf,{modelValue:o.value,"onUpdate:modelValue":w[0]||(w[0]=_=>o.value=_),data:a.value},null,8,["modelValue","data"])])]),_:1}),N(y(Pn),{size:"60"},{default:W(()=>[b("div",bpe,[o.value?(M(),ie(rf,{key:0,class:"p3",data:u.value,"node-id":"","inspector-id":"router","expanded-state-id":"routes-state"},null,8,["data"])):(M(),ie(ud,{key:1},{default:W(()=>[ze(" No Data ")]),_:1}))])]),_:1})]),_:1})]))}}),$pe=ge({__name:"Index",setup(t){const r=Ru();return(e,n)=>(M(),ie(Gb,{"layer-ids":y(r).timelineLayerIds,"doc-link":"https://router.vuejs.org/","github-repo-link":"https://github.com/vuejs/router"},null,8,["layer-ids"]))}}),_pe={"h-full":"","w-full":""},Mpe=ge({__name:"index",props:{id:{}},setup(t){const r=t,e=ZU(),n=G(!1),{VirtualRouterView:i,restoreRouter:o}=Rb([{path:"/routes",name:"Routes",component:wpe,icon:"i-carbon-tree-view-alt"},{path:"/timeline",name:"Timeline",component:$pe,icon:"i-mdi:timeline-clock-outline"},{path:"/about",name:"About",component:ppe,icon:"i-ri-route-line"}],{defaultRoutePath:"/routes"});function a(){n.value=!0,ka(()=>{Ae.value.getInspectorInfo(r.id).then(s=>{if(!s)return;const l={homepage:s?.homepage,id:s?.id,label:s?.label,logo:s?.logo,timelineLayerIds:s?.timelineLayers.map(c=>c.id)};e.value=l,o(),n.value=!1})})}return et(()=>r.id,s=>{s&&a()}),(s,l)=>(M(),x("div",_pe,[N(y(i))]))}}),zpe={},Epe={width:"175",height:"34",viewBox:"0 0 175 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Spe=b("path",{fill:"currentColor",d:"M0.570999 33.3121V1.80715H10.8288C13.6975 1.80715 16.3198 2.39225 18.6962 3.56242C21.0721 4.73263 22.9701 6.5029 24.3901 8.87327C25.81 11.2136 26.52 14.1091 26.52 17.5596C26.52 20.9801 25.81 23.8756 24.3901 26.2458C22.9701 28.6162 21.0721 30.3868 18.6962 31.5568C16.3198 32.7269 13.6975 33.3121 10.8288 33.3121H0.570999ZM10.1332 27.461C12.9439 27.461 15.2767 26.6812 17.1314 25.1208C18.9858 23.5306 19.913 21.0102 19.913 17.5596C19.913 14.1091 18.9858 11.5887 17.1314 9.99846C15.2767 8.40819 12.9439 7.61306 10.1332 7.61306H7.09085V27.461H10.1332ZM50.3628 25.6159C49.928 28.0463 48.7544 29.9966 46.8421 31.4669C44.9297 32.9368 42.6257 33.672 39.931 33.672C37.5551 33.672 35.5119 33.117 33.8024 32.007C32.1216 30.8668 30.8468 29.3965 29.9772 27.5961C29.1081 25.7961 28.6733 23.9056 28.6733 21.9253C28.6733 19.915 29.0645 18.0247 29.8468 16.2544C30.6584 14.4841 31.8756 13.0439 33.498 11.9337C35.1499 10.8236 37.1491 10.2685 39.4962 10.2685C41.9306 10.2685 43.9589 10.8086 45.5817 11.8888C47.2045 12.9689 48.3924 14.3491 49.1456 16.0294C49.928 17.7097 50.3192 19.4799 50.3192 21.3402C50.3192 22.0303 50.2904 22.7054 50.2324 23.3656H34.4979C34.7295 24.9858 35.3091 26.2612 36.2363 27.191C37.1927 28.0914 38.4243 28.5412 39.931 28.5412C41.1482 28.5412 42.1478 28.3014 42.9301 27.8214C43.7125 27.3111 44.2197 26.5759 44.4513 25.6159H50.3628ZM39.4962 14.8592C38.1055 14.8592 37.0043 15.2343 36.1931 15.9844C35.3815 16.7045 34.8455 17.8447 34.5847 19.4049H44.2777C44.1905 18.0847 43.7269 17.0045 42.8865 16.1644C42.0466 15.2943 40.9162 14.8592 39.4962 14.8592ZM64.1603 33.3121H58.5969L50.599 10.6285H56.7713L61.3788 25.3008L65.9427 10.6285H72.1582L64.1603 33.3121ZM88.2757 33.3121H81.7559V7.61306H72.7585V1.80715H97.2731V7.61306H88.2757V33.3121ZM106.325 33.672C104.123 33.672 102.138 33.1771 100.37 32.1868C98.6029 31.1667 97.2266 29.7717 96.2414 28.0011C95.2562 26.2011 94.7634 24.1907 94.7634 21.9703C94.7634 19.75 95.2562 17.7547 96.2414 15.9844C97.2266 14.1841 98.6029 12.7889 100.37 11.7987C102.138 10.7786 104.123 10.2685 106.325 10.2685C108.528 10.2685 110.513 10.7786 112.28 11.7987C114.048 12.7889 115.424 14.1841 116.409 15.9844C117.395 17.7547 117.887 19.75 117.887 21.9703C117.887 24.1907 117.395 26.2011 116.409 28.0011C115.424 29.7717 114.048 31.1667 112.28 32.1868C110.513 33.1771 108.528 33.672 106.325 33.672ZM106.325 28.2712C107.948 28.2712 109.266 27.6864 110.281 26.5159C111.295 25.3458 111.802 23.8306 111.802 21.9703C111.802 20.08 111.295 18.5498 110.281 17.3796C109.266 16.2094 107.948 15.6243 106.325 15.6243C104.702 15.6243 103.384 16.2094 102.37 17.3796C101.356 18.5498 100.848 20.08 100.848 21.9703C100.848 23.8306 101.356 25.3458 102.37 26.5159C103.384 27.6864 104.702 28.2712 106.325 28.2712ZM131.624 33.672C129.422 33.672 127.436 33.1771 125.669 32.1868C123.901 31.1667 122.525 29.7717 121.54 28.0011C120.555 26.2011 120.062 24.1907 120.062 21.9703C120.062 19.75 120.555 17.7547 121.54 15.9844C122.525 14.1841 123.901 12.7889 125.669 11.7987C127.436 10.7786 129.422 10.2685 131.624 10.2685C133.826 10.2685 135.811 10.7786 137.579 11.7987C139.346 12.7889 140.722 14.1841 141.708 15.9844C142.693 17.7547 143.186 19.75 143.186 21.9703C143.186 24.1907 142.693 26.2011 141.708 28.0011C140.722 29.7717 139.346 31.1667 137.579 32.1868C135.811 33.1771 133.826 33.672 131.624 33.672ZM131.624 28.2712C133.246 28.2712 134.565 27.6864 135.579 26.5159C136.593 25.3458 137.101 23.8306 137.101 21.9703C137.101 20.08 136.593 18.5498 135.579 17.3796C134.565 16.2094 133.246 15.6243 131.624 15.6243C130.001 15.6243 128.682 16.2094 127.668 17.3796C126.654 18.5498 126.147 20.08 126.147 21.9703C126.147 23.8306 126.654 25.3458 127.668 26.5159C128.682 27.6864 130.001 28.2712 131.624 28.2712ZM152.88 33.3121H146.838V0.771999H152.88V33.3121ZM165.652 33.672C162.957 33.672 160.769 32.9522 159.088 31.5117C157.437 30.0418 156.553 28.0914 156.437 25.661H161.653C161.768 26.6812 162.174 27.4913 162.87 28.0914C163.594 28.6613 164.522 28.9463 165.652 28.9463C166.579 28.9463 167.332 28.7363 167.912 28.3163C168.52 27.8963 168.825 27.3712 168.825 26.7412C168.825 25.9008 168.477 25.3159 167.782 24.9858C167.086 24.6557 165.985 24.3557 164.478 24.0856C162.913 23.7856 161.638 23.4556 160.653 23.0955C159.668 22.7354 158.813 22.0903 158.089 21.1602C157.393 20.2 157.045 18.8498 157.045 17.1096C157.045 15.7893 157.379 14.6192 158.045 13.599C158.741 12.5488 159.682 11.7387 160.871 11.1686C162.058 10.5685 163.391 10.2685 164.869 10.2685C167.506 10.2685 169.636 10.9436 171.259 12.2938C172.91 13.644 173.794 15.4293 173.91 17.6496H168.651C168.535 16.7195 168.115 15.9994 167.39 15.4893C166.695 14.9492 165.912 14.6792 165.043 14.6792C164.174 14.6792 163.478 14.8742 162.957 15.2643C162.435 15.6543 162.174 16.1944 162.174 16.8845C162.174 17.7246 162.508 18.2948 163.174 18.5948C163.87 18.8648 164.956 19.1049 166.434 19.3149C168.028 19.5549 169.331 19.855 170.346 20.215C171.389 20.5451 172.287 21.2052 173.041 22.1953C173.794 23.1855 174.171 24.6257 174.171 26.5159C174.171 28.6762 173.389 30.4166 171.824 31.737C170.288 33.0271 168.23 33.672 165.652 33.672Z"},null,-1),Tpe=[Spe];function Lpe(t,r){return M(),x("svg",Epe,Tpe)}const kpe=fc(zpe,[["render",Lpe]]),Ope={"h-full":"","w-full":"",flex:"","items-center":""},Hpe={flex:"~ col gap2",ma:"","px-5":""},xpe=b("div",{"flex-auto":""},null,-1),Vpe={flex:"~ col","mt-20":"","items-center":""},Ppe={flex:"~","mt--10":"","items-center":"","justify-center":""},Rpe={class:"mr-1"},Dpe={key:0,class:"inline-block w20"},Npe=["src","alt"],Bpe={key:1,class:"mr2 inline-block min-w-20 text-center text-10 font-600"},Fpe={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},jpe={op40:""},Upe=b("div",{"flex-auto":""},null,-1),Gpe={flex:"~ gap2 wrap"},Wpe=b("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),Zpe=b("code",null,"State",-1),Kpe=[Wpe,Zpe],Ype=b("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),Xpe=b("div",null,"Timeline",-1),qpe=[Ype,Xpe],Qpe={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},Jpe=["href"],e3e=b("div",{"i-carbon-document":""},null,-1),t3e=b("div",{"flex-auto":""},null,-1),r3e=ge({__name:"About",setup(t){const r=tf(),e=Ru(),n=G(!1),i=G(!1);function o(){n.value=!0}function a(){n.value=!0,i.value=!0}return(s,l)=>{var c;return M(),x("div",Ope,[b("div",Hpe,[xpe,b("div",Vpe,[b("div",Ppe,[b("span",Rpe,[n.value?se("",!0):(M(),x("span",Dpe)),Vt(b("img",{src:y(e).logo,alt:`${y(e).label} Logo`,class:"inline-block h16",onError:a,onLoad:o},null,40,Npe),[[Eoe,n.value&&!i.value]]),i.value?(M(),x("span",Bpe,Ee(y(e).label),1)):se("",!0)]),b("span",null,[N(kpe,{"h-18":""})])]),b("div",Fpe,[b("span",jpe,Ee(y(e).label)+" DevTools ",1)])]),Upe,b("div",Gpe,[b("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:l[0]||(l[0]=u=>y(r).push("/state"))},Kpe),(c=y(e).timelineLayerIds)!=null&&c.length?(M(),x("div",{key:0,flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:l[1]||(l[1]=u=>y(r).push("/timeline"))},qpe)):se("",!0)]),b("div",Qpe,[b("a",{href:y(e).homepage,target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[e3e,ze(" View Documentation ")],8,Jpe)]),t3e])])}}}),n3e={class:"h-full flex flex-col"},i3e=ge({__name:"Settings",setup(t){const r=mr("pluginSettings"),e=Ru(),n=U(()=>r.value.options),i=U(()=>r.value.values);function o(a){r.value=a}return(a,s)=>(M(),x("div",n3e,[N(Pu,{"doc-link":y(e).homepage},{default:W(()=>[N(Vu)]),_:1},8,["doc-link"]),N(GU,{"plugin-id":y(e).id,options:n.value,values:i.value,onUpdate:o},null,8,["plugin-id","options","values"])]))}}),o3e={class:"h-full flex flex-col"},a3e={class:"h-full flex flex-col p2"},s3e={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},l3e={class:"flex items-center gap-2 px-1"},c3e=["onClick"],u3e={class:"no-scrollbar flex-1 select-none overflow-scroll"},g3e={class:"h-full flex flex-col p2"},h3e={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},d3e={class:"flex items-center gap-2 px-1"},f3e=["onClick"],C3e=ge({__name:"Index",setup(t){const{expanded:r}=Ya(),{expanded:e}=Ya("custom-inspector-state"),n=Ru(),i=U(()=>n.value.id),o=G([]),a=G([]),s=G([]),l=U(()=>{var L,O;return(L=s.value)!=null&&L.length?f((O=s.value)==null?void 0:O[0]):[]}),c=U(()=>v(s.value)),u=U(()=>c.value.map(L=>L.id)),g=G(""),h=G({}),d=U(()=>!Object.keys(h.value).length);function f(L,O=[],P=[]){var B;return O.push(L.id),((B=L.children)==null?void 0:B.length)===0&&P.push([...O]),Array.isArray(L.children)&&L.children.forEach(te=>{f(te,O,P)}),O.pop(),P}function C(L,O){const P=[];return L?.forEach(B=>{P.push(...B.slice(0,O+1))}),[...new Set(P)]}function v(L){const O=[],P=B=>{B?.forEach(te=>{var ee;O.push(te),(ee=te.children)!=null&&ee.length&&P(te.children)})};return P(L),O}function A(){Ae.value.getInspectorNodeActions(i.value).then(L=>{o.value=L})}function I(){Ae.value.getInspectorActions(i.value).then(L=>{a.value=L})}A(),I();function p(L){Ae.value.callInspectorNodeAction(i.value,L,g.value)}function m(L){Ae.value.callInspectorAction(i.value,L)}function w(L){var O;for(const P in L)(O=L[P])!=null&&O.length||delete L[P];return L}function _(L){Ae.value.getInspectorState({inspectorId:i.value,nodeId:L}).then(O=>{const P=Zr(O);P&&(h.value=w(P),e.value=Array.from({length:Object.keys(h.value).length},(B,te)=>`${te}`))})}function k(){h.value={}}et(g,()=>{k(),_(g.value)});const S=()=>{Ae.value.getInspectorTree({inspectorId:i.value,filter:""}).then(L=>{const O=Zr(L);s.value=O,!g.value&&O.length&&(g.value=O[0].id,r.value=C(l.value,1),_(O[0].id))})};HU(i).toBeTruthy().then(S);function E(L){var O,P;const B=Zr(L);!B.rootNodes.length||B.inspectorId!==i.value||(s.value=B.rootNodes,u.value.includes(g.value)||(g.value=(P=(O=s.value)==null?void 0:O[0])==null?void 0:P.id,r.value=C(l.value,1)))}function T(L){const O=Zr(L);if(O.inspectorId!==i.value||!O.state||O.nodeId!==g.value)return;const{inspectorId:P,...B}=O.state;h.value=w(B)}return ka(()=>{Ae.functions.on(Dt.INSPECTOR_TREE_UPDATED,E),Ae.functions.on(Dt.INSPECTOR_STATE_UPDATED,T)}),cn(()=>{Ae.functions.off(Dt.INSPECTOR_TREE_UPDATED,E),Ae.functions.off(Dt.INSPECTOR_STATE_UPDATED,T)}),(L,O)=>(M(),x("div",o3e,[N(Pu,{"doc-link":y(n).homepage},{default:W(()=>[N(Vu)]),_:1},8,["doc-link"]),s.value.length?(M(),ie(y(gc),{key:0,class:"flex-1 overflow-auto"},{default:W(()=>[N(y(Pn),{border:"r base",size:"40","h-full":""},{default:W(()=>{var P;return[b("div",a3e,[(P=a.value)!=null&&P.length?(M(),x("div",s3e,[b("div",l3e,[(M(!0),x(Se,null,It(a.value,(B,te)=>Vt((M(),x("div",{key:te,class:"flex items-center gap1",onClick:ee=>m(te)},[N(y(Y6),{name:`baseline-${B.icon.replace(/\_/g,"-")}`,"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,8,["name"])],8,c3e)),[[y(pr),{content:B.tooltip},void 0,{"bottom-end":!0}]])),128))])])):se("",!0),b("div",u3e,[N(nf,{modelValue:g.value,"onUpdate:modelValue":O[0]||(O[0]=B=>g.value=B),data:s.value},null,8,["modelValue","data"])])])]}),_:1}),N(y(Pn),{size:"60"},{default:W(()=>{var P;return[b("div",g3e,[(P=o.value)!=null&&P.length?(M(),x("div",h3e,[b("div",d3e,[(M(!0),x(Se,null,It(o.value,(B,te)=>Vt((M(),x("div",{key:te,class:"flex items-center gap1",onClick:ee=>p(te)},[N(y(Y6),{name:`baseline-${B.icon.replace(/\_/g,"-")}`,"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,8,["name"])],8,f3e)),[[y(pr),{content:B.tooltip},void 0,{"bottom-end":!0}]])),128))])])):se("",!0),g.value&&!d.value?(M(),ie(rf,{key:1,data:h.value,"node-id":g.value,"inspector-id":i.value,"expanded-state-id":"custom-inspector-state",class:"no-scrollbar flex-1 select-none overflow-scroll"},null,8,["data","node-id","inspector-id"])):(M(),ie(ud,{key:2},{default:W(()=>[ze(" No Data ")]),_:1}))])]}),_:1})]),_:1})):(M(),ie(ud,{key:1},{default:W(()=>[ze(" No Data ")]),_:1}))]))}}),v3e=ge({__name:"Index",setup(t){const r=Ru();return(e,n)=>(M(),ie(Gb,{"layer-ids":y(r).timelineLayerIds,"doc-link":y(r).homepage},null,8,["layer-ids","doc-link"]))}}),A3e={},I3e=t=>(Tu("data-v-b8018f07"),t=t(),Lu(),t),p3e={class:"h-screen w-screen $ui-fcc flex-col"},m3e=I3e(()=>b("div",{class:"outer"},[b("div",{class:"inner"},[b("i",{class:"i-logos-vue inline-block h8! w8!",alt:"Vue logo"})])],-1));function y3e(t,r){return M(),x("div",p3e,[m3e,Qe(t.$slots,"default",{},void 0,!0)])}const b3e=fc(A3e,[["render",y3e],["__scopeId","data-v-b8018f07"]]),w3e={"h-full":"","w-full":""},$3e={key:0},KU=ge({__name:"index",props:{id:{}},emits:["loadError"],setup(t,{emit:r}){const e=t,n=r,i=ZU(),o=G(!1),a=G(null);Li("pluginSettings",a);const s=U(()=>{var g;return[{path:"/state",name:"State",component:C3e,icon:"i-carbon-tree-view-alt"},((g=i.value.timelineLayerIds)==null?void 0:g.length)&&{path:"/timeline",name:"Timeline",component:v3e,icon:"i-mdi:timeline-clock-outline"},{path:"/about",name:"About",component:r3e},a.value&&{path:"/settings",name:"Settings",component:i3e,icon:"i-mdi:cog-outline"}].filter(Boolean)}),{VirtualRouterView:l,restoreRouter:c}=Rb(s,{defaultRoutePath:"/state"});function u(){o.value=!0,ka(()=>{Ae.value.getInspectorInfo(e.id).then(g=>{if(!g){n("loadError");return}const h={homepage:g?.homepage,id:g?.id,label:g?.label,logo:g?.logo,timelineLayerIds:g?.timelineLayers.map(d=>d.id)};i.value=h,c(),o.value=!1}),Ae.value.getPluginSettings(e.id).then(g=>{g.options?a.value=g:a.value=null})})}return et(()=>e.id,()=>{u()},{immediate:!0}),cn(()=>{Ae.value.unhighlight()}),(g,h)=>(M(),x("div",w3e,[o.value?(M(),x("div",$3e,[N(b3e)])):(M(),ie(y(l),{key:1}))]))}});function YU(){const t=G([]),r=G([]);function e(i){r.value=i,i.length<t.value.length&&(t.value=[]),r.value.forEach(o=>{n(o)})}ka(()=>{Ae.value.getCustomInspector().then(i=>{r.value=i,r.value.forEach(o=>{n(o)})}),Ae.functions.on(Dt.INSPECTOR_UPDATED,e)});function n(i){t.value.some(o=>o.id===i.id)||t.value.push(i)}return cn(()=>{Ae.functions.off(Dt.INSPECTOR_UPDATED,e)}),{registeredInspector:t,register:n}}const _3e=[["app",[{icon:"i-carbon-information",name:"overview",order:-100,path:"overview",title:"Overview"},{icon:"i-carbon-assembly-cluster",name:"components",order:-100,path:"components",title:"Components"},{icon:"i-carbon-tree-view-alt",name:"pages",order:-100,path:"pages",title:"Pages"},{icon:"i-carbon-image-copy",name:"assets",order:-100,path:"assets",title:"Assets"}]],["modules",[{icon:"i-ri-route-line",name:"router",order:-100,path:"router",title:"Router"},{icon:"i-logos-pinia",name:"pinia",order:-100,path:"pinia",title:"Pinia"}]],["advanced",[{icon:"i-carbon-network-4",name:"graph",order:-100,path:"graph",title:"Graph"}]]],XU=["assets","graph","vite-inspect"];function M3e(t,r){const e=X5(_3e);return e.forEach(n=>{if(n[0]==="modules"){n[1]=n[1].filter(o=>o.name==="router"?r.findIndex(a=>a.name.startsWith("router-inspector"))>-1:o.name==="pinia"?r.findIndex(a=>a.name==="pinia")>-1:!0);const i=r.filter(o=>!(o.name.startsWith("router-inspector")||o.name==="pinia"));n[1]=[...n[1],...i]}}),t&&!Rd&&!sa?e:e.map(([n,i])=>[n,i.filter(o=>!XU.includes(o.name))])}const h8="custom-tab-view",Ih="custom-inspector-tab-view";function z3e(){const{registeredInspector:t}=YU();return U(()=>t.value.map((e,n)=>({order:n,name:e.id,icon:e.logo,fallbackIcon:e.icon,title:e.label,path:`${Ih}/${e.id}`,category:"modules"})))}function qU(){return{isFirstVisit:!0,route:"/",graphSettings:{node_modules:!1,virtual:!1,lib:!1},tabSettings:{hiddenTabCategories:[],hiddenTabs:[],pinnedTabs:[]},expandSidebar:!1,scrollableSidebar:!0,splitScreen:{enabled:!1,view:"overview",size:[50,50]},scale:1,interactionCloseOnOutsideClick:!1,showPanel:!0,minimizePanelInteractive:5e3}}const gr=due("__VUE_DEVTOOLS_CLIENT_STATE__",qU(),{mergeDefaults:!0});function E3e(){gr.value=qU()}et(()=>gr.value.splitScreen.enabled,(t,r)=>{r&&!t&&(gr.value.splitScreen.size=[50,50])});function af(){const t=Ca(),r=z3e();let e=[];const n=U(()=>gU(t.tabs.value,e)?e:(e=t.tabs.value,t.tabs.value)),i=U(()=>{const c=t.vitePluginDetected.value,u=[...M3e(c,r.value)];return n.value.forEach(g=>{const h=u.find(d=>d[0]===g.category);if(h){if(h[1].some(d=>d.name===g.name)||(!c||Rd||sa)&&XU.includes(g.name))return;h[1].push({...g})}}),[...u]}),o=U(()=>i.value.reduce((c,[u,g])=>(g.forEach(h=>{c.push(h)}),c),[])),a=U(()=>{const{hiddenTabCategories:c,hiddenTabs:u,pinnedTabs:g}=gr.value.tabSettings,h=c.includes("pinned"),d=i.value.reduce((f,[C,v])=>{const A=[{hidden:!1,name:C},[]],I=c.includes(C);return v.forEach(p=>{const m=u.includes(p.name);if(g.includes(p.name))f[0][1].push({...p,hidden:m||h});else{const w=m||I;A[1].push({...p,hidden:w})}}),A[0].hidden=A[1].every(p=>p.hidden),f.push(A),f},[[{name:"pinned",hidden:!1},[]]]);return d[0][0].hidden=d[0][1].every(f=>f.hidden),d[0][1].sort((f,C)=>g.indexOf(f.name)-g.indexOf(C.name)),d}),s=U(()=>a.value.reduce((c,[u,g])=>{if(u.hidden)return c;const h=g.filter(d=>!d.hidden);return h.length&&c.push([u,h]),c},[])),l=U(()=>s.value.reduce((c,[u,g])=>(g.forEach(h=>{c.push(h)}),c),[]));return{categorizedTabs:a,flattenedTabs:o,enabledTabs:s,enabledFlattenTabs:l}}function TS(t,r){return U(()=>{const e=[],n=gr.value.tabSettings.pinnedTabs;Dh(r).reduce((a,[{name:s,hidden:l},c])=>(c.forEach(u=>{if(Dh(t).some(g=>g.name===u.name)){const g=n.includes(u.name)?"pinned":s||"app";a.push({tab:u,category:{name:g,hidden:l}})}}),a),[]).forEach(({tab:a,category:s})=>{const l=e.find(([{name:c}])=>c===s.name);l?l[1].push(a):e.push([s,[a]])});const o=e.find(([{name:a}])=>a==="pinned");return o&&o[1].sort((a,s)=>n.indexOf(a.name)-n.indexOf(s.name)),e})}function S3e(t){const r=new Map;return t.forEach(e=>r.set(e.id,e)),Array.from(r.values())}const d8=ca(new Map);function T3e(){const{enabledFlattenTabs:t}=af(),r=ac(),e=Ca();let n=[];const i=U(()=>gU(e.commands.value,n)?n:(n=e.commands.value,e.commands.value)),o=[{id:"fixed:settings",title:"Settings",icon:"i-carbon-settings-adjust",action:()=>{r.push("/settings")}},{id:"fixed:docs",title:"Vue Documentations",icon:"i-vscode-icons-file-type-vue",action:()=>k3e()}],a=U(()=>t.value.map(s=>({id:`tab:${s.name}`,title:s.title||s.name,icon:s.icon,action:()=>{"onClick"in s&&s.onClick?s.onClick():r.push("path"in s&&s.path?s.path:`/custom-tab-view/${s.name}`)}})));return U(()=>S3e([...o,...a.value,...L3e(i.value),...Array.from(d8.values()).flatMap(s=>Dh(s))]))}function LS(t){t?.type==="url"&&window.open(t.src,"_blank")}function L3e(t){return t.map(r=>({id:`${r.id}`,title:r.title,icon:r.icon,description:r.description,order:r.order,action:()=>{if(r.children)return r.children.map(e=>({id:e.id,title:e.title,icon:e.icon,description:e.description,order:e.order,action:()=>{LS(e.action)}})).sort((e,n)=>(n.order??0)-(e.order??0));LS(r.action)}})).sort((r,e)=>(e.order??0)-(r.order??0))}function kS(t){const r=ine();d8.set(r,t),cn(()=>{d8.delete(r)})}let pp;const OS={"utility-types":"i-mdi-language-typescript",ssr:"i-codicon-server-process","custom-renderer":"i-codicon-server-process","sfc-script-setup":"i-material-symbols:magic-button","sfc-css-features":"i-material-symbols-css","built-in-directives":"i-material-symbols-code","built-in-special-attributes":"i-material-symbols-code","component-instance":"i-material-symbols-code","composition-api-dependency-injection":"i-material-symbols-code","composition-api-lifecycle":"i-material-symbols-code",general:"i-material-symbols-code","compile-time-flags":"i-material-symbols-toggle-on","reactivity-utilities":"i-mdi-api","reactivity-advanced":"i-mdi-api","render-function":"i-mdi-api","...others":"i-uim-vuejs"};async function k3e(){return pp||(pp=(await mi(()=>import("./vue-apis-DWRQGgDp.js"),[],import.meta.url).then(r=>r.default)).map(r=>({...r,icon:OS[r.description]??OS["...others"],action:()=>{window.open(r.url,"_blank")}}))),pp}const O3e={flex:"~ col",h:"60%",border:"1 base","m-x-4":"","max-h-120":"","min-h-60":"","w-xl":"","of-hidden":"","rounded-md":"","text-3.75":""},H3e={border:"b base","flex-none":""},x3e={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},V3e=["id","onClick","onMouseover"],P3e={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},R3e={"ws-nowrap":""},D3e={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},N3e={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},B3e=b("span",{op50:""},"No results for",-1),F3e={"text-primary":""},j3e={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},U3e={"text-xs":"",flex:"~ items-center gap2"},G3e={px1:""},W3e={px1:""},Z3e=b("span",{op75:""},"to navigate",-1),K3e={"text-xs":"",flex:"~ items-center gap2"},Y3e=b("button",{px1:""}," Esc ",-1),X3e={op75:""},q3e={"text-xs":"",flex:"~ items-center gap2"},Q3e={px1:""},J3e=b("span",{op75:""},"to select",-1),eme=ge({__name:"CommandPalette",setup(t){const r=G(!1),e=G(""),n=T3e(),i=G(),o=U(()=>i.value||n.value),a=U(()=>new uc(o.value,{keys:["id","title"],distance:50})),s=U(()=>e.value?a.value.search(e.value).map(h=>h.item):o.value||[]),l=G(0);et(e,()=>{l.value=0,u()});function c(h){l.value=(l.value+h+s.value.length)%s.value.length,u()}function u(){document.getElementById(s.value[l.value]?.id)?.scrollIntoView({block:"center"})}async function g(h){const d=await h.action();d?(i.value=d,e.value=""):(i.value=void 0,e.value="",r.value=!1)}return oi("keydown",h=>{if((h.altKey||h.metaKey)&&h.key==="k"){h.preventDefault(),i.value=void 0,e.value="",r.value=!r.value;return}if(r.value)switch(h.key){case"ArrowDown":case"ArrowUp":h.preventDefault(),c(h.key==="ArrowDown"?1:-1);break;case"Enter":{const d=s.value[l.value];d&&(h.preventDefault(),g(d));break}case"Escape":{h.preventDefault(),i.value?(i.value=void 0,e.value=""):r.value=!1;break}}}),(h,d)=>{const f=ef;return y(r)?(M(),ie(y(_b),{key:0,dim:"",class:"$ui-z-max-override backdrop-blur-2xl!"},{default:W(()=>[b("div",O3e,[b("header",H3e,[N(y(Za),{modelValue:y(e),"onUpdate:modelValue":d[0]||(d[0]=C=>nt(e)?e.value=C:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),b("div",x3e,[(M(!0),x(Se,null,It(y(s),(C,v)=>(M(),x("button",{id:C.id,key:C.id,onClick:A=>g(C),onMouseover:A=>l.value=v},[b("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:Te(y(l)===v?"op100 saturate-100 bg-active":"op80")},[N(f,{icon:C.icon,title:C.title,"flex-none":"","text-xl":""},null,8,["icon","title"]),b("span",P3e,[b("span",R3e,Ee(C.title),1),b("span",D3e,Ee(C.description),1)]),y(l)===v?(M(),ie(y(Ft),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):se("",!0)],2)],40,V3e))),128)),y(s).length?se("",!0):(M(),x("div",N3e,[N(y(Ft),{icon:"carbon-search",op50:""}),b("div",null,[B3e,b("strong",F3e,' "'+Ee(y(e))+'" ',1)])]))]),b("footer",j3e,[b("div",U3e,[b("button",G3e,[N(y(Ft),{icon:"i-carbon-arrow-down"})]),b("button",W3e,[N(y(Ft),{icon:"i-carbon-arrow-up"})]),Z3e]),b("div",K3e,[Y3e,b("span",X3e,"to "+Ee(y(i)?"go back":"close"),1)]),b("div",q3e,[b("button",Q3e,[N(y(Ft),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),J3e])])])]),_:1})):se("",!0)}}}),tme={key:0,absolute:"","inset-0":"",flex:"","items-center":"","justify-center":""},rme=b("i",{class:"mdi:loading animate-spin text-3xl"},null,-1),nme=[rme],mp=new Map,ime=ge({__name:"IframeView",props:{src:{},inline:{type:Boolean,default:!1}},setup(t){const r=t,{colorMode:e}=YA(),n=G(),i=U(()=>r.src),o=G(),a=ca(cue(n)),s=G(!1);gi(()=>{if(mp.get(i.value))o.value=mp.get(i.value),o.value.style.visibility="visible",o.value.style.opacity="1",s.value=!0;else{o.value=document.createElement("iframe"),mp.set(i.value,o.value),o.value.src=r.src;try{o.value.style.opacity="0.01",o.value.onload=()=>{c(),o.value.style.opacity="1",s.value=!0}}catch{o.value.style.opacity="1"}document.body.appendChild(o.value),ln(u)}const g=setTimeout(l,100);setTimeout(c,100),cn(()=>{clearTimeout(g)})}),wn(u),wn(c),cn(()=>{o.value&&(o.value.style.visibility="hidden",o.value.style.opacity="0")});function l(){o.value&&(o.value.style.visibility="visible",o.value.style.opacity="1")}function c(){if(!(!o.value||!o.value.contentWindow))try{const g=o.value.contentWindow.document.querySelector("html");g?.classList.toggle("dark",e.value==="dark"),g?.classList.toggle("light",e.value==="dark")}catch{}}function u(){o.value&&Object.assign(o.value.style,{position:"fixed",left:`${a.left}px`,top:`${a.top}px`,width:`${a.width}px`,height:`${r.inline?a.height-a.top:a.height}px`,outline:"none"})}return(g,h)=>(M(),x("div",{ref_key:"anchor",ref:n,"h-full":"","w-full":""},[y(s)?se("",!0):(M(),x("div",tme,nme))],512))}}),ome={key:0,flex:"~ col","h-full":"","items-center":"","justify-center":""},ame={flex:"~ col gap2",mxa:"","items-center":""},sme=b("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1),lme={"text-xl":""},cme={"text-rose":""},ume=b("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1),gme={key:3},QU=ge({__name:"CustomTabComponent",props:{tab:{},iframeInline:{type:Boolean}},setup(t){const e=a6(t),n=U(()=>e.tab.value?.name),i=G(!0);return et(()=>n.value,()=>{i.value=!1,setTimeout(()=>{i.value=!0},100)}),(o,a)=>{const s=ime,l=_o("NCard");return o.tab?o.tab?.view?.type==="iframe"?(M(),x(Se,{key:1},[y(i)?(M(),ie(s,{key:0,src:o.tab.view.src,inline:o.iframeInline},null,8,["src","inline"])):se("",!0)],64)):o.tab?.view?.type==="vnode"?(M(),ie(h1(o.tab.view.vnode),{key:2})):(M(),x("div",gme,[N(l,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:W(()=>[ze(" Unknown tab type "+Ee(o.tab?.view),1)]),_:1})])):(M(),x("div",ome,[b("div",ame,[sme,b("p",lme,[ze(" Tab "),b("code",cme,Ee(y(n)),1),ze(" not found ")]),ume])]))}}}),hme={flex:"~ items-center gap-3"},dme={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},fme={"translate-y-0.5px":""},Cme={key:0,hidden:"","lg:block":""},JU=ge({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"},disabled:{type:Boolean,default:!1}},setup(t){const r=t,e=Xd(),n=U(()=>"path"in r.tab?`${r.tab.path.startsWith("/")?"":"/"}${r.tab.path}`:`/custom-tab-view/${r.tab.name}`),i=U(()=>"badge"in r.tab&&r.tab.badge?.()),o=U(()=>e.path.startsWith(n.value));function a(){r.disabled||("onClick"in r.tab&&r.tab.onClick?r.tab.onClick():r.target==="side"&&(gr.value.splitScreen.view=r.tab.name))}return(s,l)=>{const c=ef;return M(),ie(y(rfe),{disabled:!s.minimized,placement:"right",class:Te({"w-full":!s.minimized})},{popper:W(()=>[b("div",null,Ee(s.tab.title),1),"extraTabVNode"in s.tab&&s.tab.extraTabVNode?(M(),x("div",Cme,[(M(),ie(h1(s.tab.extraTabVNode)))])):se("",!0)]),default:W(()=>[(M(),ie(h1(s.target==="main"?y(SF):"button"),{to:y(n),flex:`~ items-center ${s.minimized?"justify-center":"justify-between"}`,"text-secondary":"",relative:"",block:"","h-10":"","select-none":"",op65:"",disabled:s.disabled,class:Te([s.disabled?"cursor-not-allowed op40!":"hover:bg-active hover:op-100"]),w:s.minimized?"10":"full",rounded:s.minimized?"xl":"",p:s.minimized?"1":"x3","exact-active-class":"!text-primary-600 bg-active op-100!",onClick:a},{default:W(()=>[b("div",hme,[N(c,{"text-xl":"",icon:s.tab.icon,fallback:s.tab.fallbackIcon,title:s.tab.name,"show-title":!1},null,8,["icon","fallback","title"]),s.minimized?se("",!0):(M(),x("span",dme,Ee(s.tab.title),1))]),y(i)?(M(),x("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:Te([y(o)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":s.minimized}])},[b("span",fme,Ee(y(Tr)(y(i))),1)],2)):se("",!0)]),_:1},8,["to","flex","disabled","class","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),vme={flex:"~ col gap-1","max-w-80":"",py1:""},Ame={key:0,"h-1px":"",border:"b base"},Ime={flex:"~ wrap",px1:""},eG=ge({__name:"TabsGrid",props:{categories:{},target:{},disabledItems:{}},setup(t){return(r,e)=>{const n=JU;return M(),x("div",vme,[(M(!0),x(Se,null,It(r.categories,([i,o],a)=>(M(),x(Se,{key:i},[o.length?(M(),x(Se,{key:0},[a?(M(),x("div",Ame)):se("",!0),b("div",Ime,[(M(!0),x(Se,null,It(o,s=>(M(),ie(n,{key:s.name,disabled:r.disabledItems?.includes(s.name),target:r.target,tab:s},null,8,["disabled","target","tab"]))),128))])],64)):se("",!0)],64))),128))])}}}),pme={"h-full":"","h-screen":"","of-hidden":""},mme={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},yme={flex:"","cursor-pointer":"","items-center":"",gap2:""},bme=b("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1),wme={capitalize:""},$me=b("div",{"flex-auto":""},null,-1),_me=b("div",{"i-carbon:side-panel-open":""},null,-1),Mme=[_me],zme={key:2,"of-auto":"",class:"h-[calc(100%-50px)]"},Eme={key:3,class:"h-full w-full $ui-fcc"},Sme=b("span",{"text-lg":"",op50:""}," Select a tab to start ",-1),Tme=ge({__name:"SplitScreen",setup(t){function r(){gr.value.splitScreen.enabled=!1}const e=U(()=>gr.value.splitScreen),{enabledTabs:n,flattenedTabs:i}=af(),o=ac(),a=Xd(),s=Oi(),l=G(null),c=G(null);function u(C){const v=d();return C?C.name===v:!1}const g=U(()=>{const C=i.value.find(v=>v.name===e.value.view);return u(C)?void 0:C}),h=U(()=>d());function d(){return a.path.startsWith(`/${h8}/`)?a.path.slice(h8.length+2):a.path.startsWith(`/${Ih}/`)?a.path.slice(Ih.length+2):a.path.startsWith("/")?a.path.slice(1):a.path}et(()=>g.value,C=>{if(!C)return;if(C.view){l.value=C.name,c.value="custom-tab";return}if(C.path.startsWith(Ih)){l.value=C.name,c.value="custom-inspector";return}l.value=null;const I=o.getRoutes().find(p=>p.path===`/${C.path}`)?.components?.default;typeof I=="function"?s.value=vie(I):s.value=I},{immediate:!0});const f=G(!1);return(C,v)=>{const A=ef,I=eG,p=QU;return M(),x("div",pme,[(y(s)||y(l))&&y(g)?(M(),x("div",mme,[N(y(tu),{placement:"bottom-start",distance:12,skidding:5,shown:y(f),trigger:"click"},{popper:W(()=>[N(I,{categories:y(n),target:"side","disabled-items":[y(h)]},null,8,["categories","disabled-items"])]),default:W(()=>[b("div",yme,[bme,N(A,{"text-xl":"",icon:y(g)?.icon,title:y(g).name,fallback:y(g).fallbackIcon,"show-title":!1},null,8,["icon","title","fallback"]),b("span",wme,Ee(y(g)?.name),1)])]),_:1},8,["shown"]),$me,Vt((M(),x("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:r},Mme)),[[y(pr),"Close split screen"]])])):se("",!0),y(l)&&y(g)?(M(),x(Se,{key:1},[y(c)==="custom-tab"?(M(),ie(p,{key:0,tab:y(g),class:"h-[calc(100%-50px)]","iframe-inline":"","of-auto":""},null,8,["tab"])):(M(),ie(y(KU),{key:1,id:y(l)},null,8,["id"]))],64)):y(s)&&y(g)?(M(),x("div",zme,[(M(),ie(h1(y(s)),{key:`tab-${y(g).name}`}))])):(M(),x("div",Eme,[b("div",null,[Sme,N(y(A5),{px4:"",py2:"","bg-base":""},{default:W(()=>[N(I,{categories:y(n),target:"side","disabled-items":[y(h)]},null,8,["categories","disabled-items"])]),_:1}),N(y(ct),{type:"warning",outlined:"",mt2:"",onClick:r},{default:W(()=>[ze(" Close Split Screen ")]),_:1})])]))])}}}),Lme={px3:"",py2:"",border:"b base",flex:"~ gap-2"},kme=b("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),Ome=b("div",{"i-carbon-settings-adjust":""},null,-1),Hme={px3:"",py2:"",border:"b base",flex:"~ gap-2"},xme=b("div",{"i-carbon-split-screen":""},null,-1),Vme={px3:"",py2:"",flex:"~ gap2"},Pme=ge({__name:"DockingPanel",setup(t){const r=ac(),e=U({get:()=>gr.value.expandSidebar,set:u=>gr.value.expandSidebar=u}),n=U({get:()=>gr.value.splitScreen.enabled,set:u=>gr.value.splitScreen.enabled=u});function i(){location.reload()}const o=Ca(),a=U(()=>o.appRecords.value.map(u=>({label:u.name+(u.version?` (${u.version})`:""),value:u.id}))),s=G(o.activeAppRecordId.value);wn(()=>{s.value=o.activeAppRecordId.value});const l=U(()=>a.value.find(u=>u.value===s.value)?.label??"");function c(u){Ae.value.toggleApp(u).then(()=>{r.push("/overview").then(()=>{IF()})})}return(u,g)=>(M(),x("div",null,[b("div",Lme,[N(y(Jj),null,{default:W(({isDark:h,toggle:d})=>[N(y(ct),{outlined:"",type:"primary",onClick:d},{default:W(()=>[kme,ze(" "+Ee(h?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),N(y(ct),{outlined:"",type:"primary",onClick:g[0]||(g[0]=h=>e.value=!y(e))},{default:W(()=>[N(y(Ft),{icon:y(e)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),ze(" "+Ee(y(e)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),N(y(ct),{to:"/settings",outlined:"",type:"primary"},{default:W(()=>[Ome,ze(" Settings ")]),_:1})]),b("div",Hme,[N(y(ct),{outlined:"",type:"primary",onClick:g[1]||(g[1]=h=>n.value=!y(n))},{default:W(()=>[xme,ze(" "+Ee(y(n)?"Close Split Screen":"Split Screen"),1)]),_:1})]),b("div",Vme,[y(a).length>1?(M(),ie(y(sd),{key:0,modelValue:y(s),"onUpdate:modelValue":[g[2]||(g[2]=h=>nt(s)?s.value=h:null),c],options:y(a),placeholder:y(l)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):se("",!0),N(y(ct),{outlined:"",type:"primary",onClick:i},{default:W(()=>[ze(" Refresh Page ")]),_:1})])]))}});function Wb(){return Rd?"electron":sa?"chrome":YD?"iframe":"separate-window"}const Rme={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},Dme=b("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1),Nme=b("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1),Bme=b("div",{"flex-auto":""},null,-1),Fme=b("div",{"i-carbon-overflow-menu-vertical":""},null,-1),jme={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},Ume={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},Gme=b("div",{"flex-auto":""},null,-1),Wme=["flex"],Zme={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},Kme={"translate-y-0.5px":""},Yme=45,Xme=ge({__name:"SideNav",emits:["toggleDevtoolsClientVisible"],setup(t,{emit:r}){const e=r,n=G(!1),i=G(!1),o=G(),a=G(),s=G(),l=U(()=>gr.value.expandSidebar),c=U(()=>gr.value.scrollableSidebar),{enabledTabs:u,flattenedTabs:g}=af(),{height:h}=$ue(),d=U(()=>{const _=h.value-130;return Math.max(0,Math.floor(_/Yme))}),f=U(()=>g.value.slice(0,d.value)),C=U(()=>g.value.slice(d.value)),v=TS(f,u),A=TS(C,u),I=U(()=>c.value||l.value?u.value:v.value);X2e(o,_=>{a.value&&_.composedPath().includes(a.value)||s.value&&_.composedPath().includes(s.value)||(n.value=!1,i.value=!1)},{detectIframe:!0});const p=G(),m=G(6);db(p,()=>{m.value=m.value===6?6.01:6});const w=Wb();return gue(p,([{isIntersecting:_}])=>{e("toggleDevtoolsClientVisible",{visible:_,host:w})}),(_,k)=>{const S=Pme,E=JU,T=ef,L=eG;return M(),x("div",{ref_key:"containerRef",ref:p,border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},[b("div",Rme,[N(y(tu),{placement:"left-start",distance:y(m),skidding:5,trigger:"click",shown:y(n),class:"w-full"},{popper:W(()=>[N(S)]),default:W(()=>[b("button",{ref_key:"buttonDocking",ref:a,flex:"~ items-center justify-center gap-2",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-full":"","select-none":"",p2:"","exact-active-class":"!text-primary bg-active",class:Te([y(l)?"rounded pl2.5":"rounded-xl"])},[Dme,y(l)?(M(),x(Se,{key:0},[Nme,Bme,Fme],64)):se("",!0)],2)]),_:1},8,["distance","shown"])]),b("div",jme,[(M(!0),x(Se,null,It(y(I),([O,P],B)=>(M(),x(Se,{key:O},[B?(M(),x("div",Ume)):se("",!0),(M(!0),x(Se,null,It(P.filter(te=>!te.hidden),te=>(M(),ie(E,{key:te.name,tab:te,minimized:!y(l)},null,8,["tab","minimized"]))),128))],64))),128)),Gme]),b("div",{flex:`~ items-center gap-1 ${y(l)?"":"none col"}`,border:"t base",sticky:"","bottom-0":"","w-full":"",p1:"","bg-base":"",class:"$ui-z-max-override"},[y(C).length&&!y(c)&&!y(l)?(M(),ie(y(tu),{key:0,placement:"left-end",distance:6},{popper:W(()=>[N(L,{categories:y(A),"max-w-80":"",target:"main"},null,8,["categories"])]),default:W(()=>[b("button",{ref_key:"buttonMoreTabs",ref:s,flex:"~",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-10":"","select-none":"","items-center":"","justify-center":"","rounded-xl":"",p1:"","exact-active-class":"!text-primary bg-active"},[N(T,{"text-xl":"",icon:"i-carbon-overflow-menu-vertical",title:"More tabs","show-title":!1}),b("div",Zme,[b("span",Kme,Ee(y(C).length),1)])],512)]),_:1})):se("",!0),N(E,{minimized:!y(l),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,Wme)],512)}}}),qme="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20id='svg2'%20version='1.1'%20inkscape:version='0.91%20r13725'%20xml:space='preserve'%20width='375'%20height='375'%20viewBox='0%200%20375%20375'%20sodipodi:docname='vue-logo.svg'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata8'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs6'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1017'%20id='namedview4'%20showgrid='false'%20inkscape:zoom='0.62933333'%20inkscape:cx='187.5'%20inkscape:cy='187.5'%20inkscape:window-x='0'%20inkscape:window-y='30'%20inkscape:window-maximized='1'%20inkscape:current-layer='g10'%20/%3e%3cg%20id='g10'%20inkscape:groupmode='layer'%20inkscape:label='logo'%20transform='matrix(1.25,0,0,-1.25,0,375)'%3e%3cg%20id='g12'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-120.829,0%20-22.669,-170.017%2075.491,0%200,0%20Z'%20style='fill:%2341b883;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path14'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3cg%20id='g16'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-81.565,0%20-22.669,-102.01%2036.227,0%200,0%20Z'%20style='fill:%2334495e;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path18'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Qme={class:"h-screen w-screen $ui-fcc flex-col"},Jme={class:"outer"},e9e={class:"inner"},t9e=["src"],r9e=ge({__name:"AppConnecting",setup(t){return(r,e)=>(M(),x("div",Qme,[b("div",Jme,[b("div",e9e,[b("img",{src:y(qme),class:"max-w-18",alt:"Vue logo"},null,8,t9e)])]),Qe(r.$slots,"default",{},void 0,!0)]))}}),Zb=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},n9e=Zb(r9e,[["__scopeId","data-v-56eba732"]]),tG=Oi([]),rG=G(null);U(()=>tG.value.find(t=>t.id===rG.value));function tI(){const{copy:t,copied:r}=uj();return{copy:(n,i={})=>{const{silent:o=!1,type:a=""}=i;t(n).then(()=>{o||Z6({message:"Copied to clipboard",type:"success",duration:3e3})}).catch(()=>{o||Z6({message:"Failed to copy to clipboard",type:"error",duration:3e3})})},copied:r}}const i9e={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},o9e=ge({__name:"App",setup(t){YA();const r=ac(),e=Xd(),{connected:n,clientConnected:i,activeAppRecordId:o,appRecords:a}=Ca(),s=gr,l=U(()=>n.value&&i.value),c=U(()=>e.path.startsWith("/__")||e.path==="/"),u=U(()=>s.value.expandSidebar),g=U(()=>s.value.splitScreen.enabled),h=U({get:()=>s.value.splitScreen.size,set:A=>s.value.splitScreen.size=A});wn(()=>{const A=gr.value.scale;document.documentElement.style.fontSize=`${A*15}px`}),ka(()=>{wn(()=>{Ae.value.emit("update-client-state",{minimizePanelInteractive:gr.value.minimizePanelInteractive,closeOnOutsideClick:gr.value.interactionCloseOnOutsideClick,showFloatingPanel:gr.value.showPanel})})}),et(l,A=>{A&&(r.replace(s.value.isFirstVisit?"/":s.value.route),r.afterEach(()=>{const I=e.path;I.includes("__")||(s.value.route=I)}))},{immediate:!0}),oi("keydown",A=>{A.code==="KeyD"&&A.altKey&&A.shiftKey&&Ae.value.emit("toggle-panel")}),wn(()=>{tG.value=a.value,rG.value=o.value}),ka(()=>{Ae.value.initDevToolsServerListener(),Ae.value.checkVueInspectorDetected().then(A=>{A&&(DA.value=!0,kS(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{Ae.value.emit("toggle-panel",!1),await Ae.value.enableVueInspector()}}]))})});function d(){r.push("/overview").then(()=>{IF()})}ob(()=>{Ae.functions.on(Dt.ACTIVE_APP_UNMOUNTED,d)});const{copy:f}=tI(),C=hue({});kS(()=>[...C.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{Ae.value.emit("toggle-panel",!1);const{sRGBHex:A}=await C.open()||{};A&&f(A)}}]:[]]),gi(()=>{ka(()=>{Ae.value.toggleClientConnected(!0)})}),cn(()=>{Ae.value.toggleClientConnected(!1),Ae.functions.off(Dt.ACTIVE_APP_UNMOUNTED,d)});function v(A){const{host:I,visible:p}=A;Ae.value.updateDevToolsClientDetected({[I]:p})}return(A,I)=>{const p=n9e,m=Xme,w=_o("RouterView"),_=Tme,k=eme;return M(),x("main",i9e,[y(l)?(M(),x("div",{key:1,class:Te(["h-full of-auto transition-base",y(c)?"flex":y(u)?"grid grid-cols-[250px_1fr]":"grid grid-cols-[50px_1fr]"]),"h-full":"","h-screen":"","of-hidden":"","font-sans":"","bg-base":""},[y(c)?se("",!0):(M(),ie(m,{key:0,"of-x-hidden":"","of-y-auto":"",onToggleDevtoolsClientVisible:v})),N(y(gc),{"h-full":"","of-hidden":"",onResize:I[0]||(I[0]=S=>h.value=S.map(E=>E.size))},{default:W(()=>[N(y(Pn),{"h-full":"",class:"of-auto!","min-size":"10",size:y(h)[0]},{default:W(()=>[N(w)]),_:1},8,["size"]),!y(c)&&y(g)?(M(),ie(y(Pn),{key:0,relative:"","h-full":"",class:"of-auto!",size:y(h)[1]},{default:W(()=>[N(_)]),_:1},8,["size"])):se("",!0)]),_:1})],2)):(M(),ie(p,{key:0})),N(k)])}}}),a9e=ge({__name:"components",setup(t){function r(){Ae.value.emit("toggle-panel",!1)}function e(){Ae.value.emit("toggle-panel",!0)}return(n,i)=>(M(),ie(y(Y4e),{onOpenInEditor:y(Xh),onOnInspectComponentStart:r,onOnInspectComponentEnd:e},null,8,["onOpenInEditor"]))}}),s9e={},l9e={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c9e=hB('<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 198" width="128" height="128"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>',2),u9e=[c9e];function g9e(t,r){return M(),x("svg",l9e,u9e)}const nG=Zb(s9e,[["render",g9e]]),h9e="7.4.3",d9e={"h-full":"","w-full":"",flex:"","of-auto":""},f9e={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},C9e=b("div",{"flex-auto":""},null,-1),v9e={flex:"~ col","mt-20":"","items-center":""},A9e={flex:"~","mt--10":"","items-center":"","justify-center":""},I9e={key:0,mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},p9e=b("span",{op40:""}," Vue DevTools ",-1),m9e={op40:""},y9e={flex:"~ gap2 wrap"},b9e={p4:"","theme-card-green":"",flex:"~ col auto"},w9e=b("div",{"i-logos-vue":"","text-3xl":""},null,-1),$9e=b("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),_9e=b("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),M9e={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},z9e=b("a",{href:"https://github.com/vuejs/devtools-next",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[b("div",{"i-carbon-star":""}),ze(" Star on GitHub ")],-1),E9e=b("a",{href:"https://github.com/vuejs/devtools-next/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[b("div",{"i-carbon-data-enrichment":""}),ze(" Ideas & Suggestions ")],-1),S9e=b("a",{href:"https://github.com/vuejs/devtools-next/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[b("div",{"i-carbon-plan":""}),ze(" Project Roadmap ")],-1),T9e=b("a",{href:"https://github.com/vuejs/devtools-next/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[b("div",{"i-carbon-debug":""}),ze(" Bug Reports ")],-1),L9e=b("div",{"i-carbon-settings":""},null,-1),k9e=b("div",{"flex-auto":""},null,-1),O9e={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},H9e=b("span",null,"+",-1),x9e=b("span",null,"+",-1),V9e={key:0,flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},P9e=b("span",null,"+",-1),R9e=b("span",null,"+",-1),D9e=b("span",null,"+",-1),N9e=b("span",null,"+",-1),B9e=ge({__name:"overview",setup(t){const{vueVersion:r}=Ca(),e=G(1),n=G(0);function i(s){let l=0;for(const c of s)l++,c.children?.length&&(l+=i(c.children));return l}function o(s){e.value=s?.routes?.length||1}function a(s){const l=Zr(s);l.inspectorId==="components"&&(n.value=i(l.rootNodes))}return ob(()=>{Ae.value.getRouterInfo().then(s=>{e.value=s?.routes?.length||1}),Ae.functions.on(Dt.ROUTER_INFO_UPDATED,o),Ae.value.getInspectorTree({inspectorId:"components",filter:""}).then(s=>{const l=Zr(s);n.value=i(l)})}),Ae.functions.on(Dt.INSPECTOR_TREE_UPDATED,a),cn(()=>{Ae.functions.off(Dt.INSPECTOR_TREE_UPDATED,a),Ae.functions.off(Dt.ROUTER_INFO_UPDATED,o)}),(s,l)=>{const c=nG,u=_o("RouterLink");return M(),x("div",d9e,[b("div",f9e,[C9e,b("div",v9e,[b("div",A9e,[N(c,{"h-18":""})]),y(sa)?se("",!0):(M(),x("div",I9e,[p9e,b("code",m9e,"v"+Ee(y(h9e)),1)]))]),b("div",y9e,[b("div",b9e,[w9e,b("code",null,"v"+Ee(y(r)),1)]),N(u,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:W(()=>[$9e,b("div",null,Ee(y(e))+" pages",1)]),_:1}),y(n)?(M(),ie(u,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:W(()=>[_9e,b("div",null,Ee(y(n))+" components",1)]),_:1})):se("",!0)]),b("div",M9e,[z9e,E9e,S9e,T9e,N(u,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:W(()=>[L9e,ze(" Settings ")]),_:1})]),k9e,b("div",O9e,[ze(" Press "),y(k_)()?(M(),x(Se,{key:0},[N(y(ct),null,{default:W(()=>[ze(" ⌘ Command ")]),_:1}),H9e,N(y(ct),null,{default:W(()=>[ze(" K ")]),_:1})],64)):(M(),x(Se,{key:1},[N(y(ct),null,{default:W(()=>[ze(" Alt ")]),_:1}),x9e,N(y(ct),null,{default:W(()=>[ze(" K ")]),_:1})],64)),ze(" to toggle Command Palette ")]),!y(Rd)&&!y(sa)?(M(),x("div",V9e,[ze(" Press "),y(k_)()?(M(),x(Se,{key:0},[N(y(ct),null,{default:W(()=>[ze(" ⇧ Shift ")]),_:1}),P9e,N(y(ct),null,{default:W(()=>[ze(" ⌥ Option ")]),_:1}),R9e,N(y(ct),null,{default:W(()=>[ze(" D ")]),_:1})],64)):(M(),x(Se,{key:1},[N(y(ct),null,{default:W(()=>[ze(" Shift ")]),_:1}),D9e,N(y(ct),null,{default:W(()=>[ze(" Alt ")]),_:1}),N9e,N(y(ct),null,{default:W(()=>[ze(" D ")]),_:1})],64)),ze(" to toggle DevTools ")])):se("",!0)])])}}}),F9e=ge({__name:"pinia",setup(t){return(r,e)=>(M(),ie(y(p4e)))}}),j9e=ge({__name:"router",setup(t){const{registeredInspector:r}=YU(),e=U(()=>r.value?.find(i=>i.packageName==="vue-router")),n=U(()=>e.value?.id);return(i,o)=>(M(),ie(y(Mpe),{id:y(n)},null,8,["id"]))}}),U9e={"p-2":""},G9e={class:"flex items-center justify-between"},W9e=b("span",{class:"font-500"},"Route meta detail",-1),Z9e=ge({__name:"RouteMetaDetail",props:{meta:{}},emits:["close"],setup(t){return(r,e)=>(M(),x("div",U9e,[b("div",G9e,[W9e,b("div",{class:"i-carbon-close cursor-pointer p1 $ui-text",onClick:e[0]||(e[0]=n=>r.$emit("close"))})]),N(y(Mb),{code:JSON.stringify(r.meta,null,2),lang:"json",lines:""},null,8,["code"])]))}}),K9e={flex:"~ gap-3","items-center":""},Kb=ge({__name:"IconTitle",props:{icon:{},text:{}},setup(t){return(r,e)=>(M(),x("div",K9e,[r.icon?(M(),x("div",{key:0,class:Te(r.icon)},null,2)):se("",!0),Qe(r.$slots,"default",{},()=>[b("div",null,Ee(r.text),1)])]))}}),iG=t=>(Tu("data-v-d09fbc98"),t=t(),Lu(),t),Y9e=["open"],X9e={"text-base":""},q9e={key:0,"text-sm":"",op50:""},Q9e=iG(()=>b("div",{class:"flex-auto"},null,-1)),J9e=iG(()=>b("div",{class:"x-divider"},null,-1)),e6e=ge({__name:"SectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){const e=va(t,"open",void 0,{passive:!0});function n(i){e.value=i.target.open}return(i,o)=>{const a=Kb,s=Fy("lazy-show");return M(),x(Se,null,[b("details",{open:y(e),onToggle:n},[b("summary",{class:Te(["cursor-pointer select-none hover:bg-active p4",i.collapse?"":"pointer-events-none"])},[N(a,{icon:i.icon,text:i.text,"text-xl":"",transition:"",class:Te(y(e)?"op100":"op60")},{default:W(()=>[b("div",null,[b("div",X9e,[Qe(i.$slots,"text",{},()=>[ze(Ee(i.text),1)],!0)]),i.description||i.$slots.description?(M(),x("div",q9e,[Qe(i.$slots,"description",{},()=>[ze(Ee(i.description),1)],!0)])):se("",!0)]),Q9e,Qe(i.$slots,"actions",{},void 0,!0),i.collapse?(M(),ie(y(Ft),{key:0,icon:"i-carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"",op75:"",transition:"","duration-500":"","text-base":""})):se("",!0)]),_:3},8,["icon","text","class"])],2),Vt((M(),x("div",{class:Te(["flex flex-col flex-gap2 pb6 pt2",typeof i.padding=="string"?i.padding:i.padding?"px4":""])},[Qe(i.$slots,"details",{},void 0,!0),b("div",{class:Te([i.containerClass,"mt1"])},[Qe(i.$slots,"default",{},void 0,!0)],2),Qe(i.$slots,"footer",{},void 0,!0)],2)),[[s,y(e)]])],40,Y9e),J9e],64)}}}),oG=Zb(e6e,[["__scopeId","data-v-d09fbc98"]]),t6e={block:"","cursor-pointer":""},r6e={p2:""},n6e=["onSubmit"],i6e=b("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),o6e={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},a6e={key:1},s6e=ge({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(t,{emit:r}){const e=t,n=r;function i(u){return u.split(/(:\w+[?*+]?(?:\([^)]*\))?[?*+]?)/).filter(Boolean)}const o=G([]),a=U(()=>i(e.route.path));wn(()=>{o.value=Array.from({length:a.value.length},()=>"")});const s=U(()=>a.value.map((u,g)=>u[0]===":"?o.value[g]:u).join("").replace(/\/+/g,"/")),l=U(()=>e.route.path.includes(":"));function c(){n("navigate",s.value)}return(u,g)=>y(l)?(M(),ie(y(tu),{key:1},{popper:W(({hide:h})=>[b("div",r6e,[b("form",{flex:"~ col",onSubmit:ni(()=>{c(),h()},["prevent"])},[y(l)?(M(),x(Se,{key:0},[i6e,b("div",o6e,[(M(!0),x(Se,null,It(y(a),(d,f)=>(M(),x(Se,{key:f},[d[0]===":"?(M(),ie(y(Za),{key:0,modelValue:y(o)[f],"onUpdate:modelValue":C=>y(o)[f]=C,"n-sm":"","w-20":"",placeholder:d.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(M(),x("span",a6e,Ee(d),1))],64))),128))])],64)):se("",!0),N(y(ct),{block:"",type:"primary"},{default:W(()=>[ze(" Navigate ")]),_:1})],40,n6e)])]),default:W(()=>[b("code",t6e,[(M(!0),x(Se,null,It(y(a),(h,d)=>(M(),x("span",{key:d,class:Te(h[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},Ee(h[0]===":"?h.slice(1):h),3))),128))])]),_:1})):(M(),x("button",{key:0,onClick:c},[b("code",null,Ee(u.route.path),1)]))}}),l6e={"w-full":""},c6e={border:"b base","px-3":""},u6e=b("th",{"text-left":""},null,-1),g6e=b("th",{"text-left":""}," Route Path ",-1),h6e=b("th",{"text-left":""}," Name ",-1),d6e={key:0,"text-left":""},f6e={"w-20":"","pr-1":""},C6e={flex:"","items-center":"","justify-end":""},v6e={"text-sm":""},A6e={flex:"inline gap3","items-center":""},I6e={op0:"","group-hover:op100":"",flex:"~ gap1"},p6e=["onClick"],m6e=b("div",{"i-carbon-script-reference":""},null,-1),y6e=[m6e],b6e={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},w6e={key:0,"w-50":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:"",hover:"text-primary op100"},$6e=["title","onClick"],_6e=ge({__name:"RoutesTable",props:{pages:{},matched:{},matchedPending:{}},emits:["navigate","selectMeta"],setup(t){const r=t,e=U(()=>[...r.pages].sort((s,l)=>s.path.localeCompare(l.path))),n=U(()=>DA.value),i=Ca();function o(s,l=0){const c=JSON.stringify(s,null,l);return c==="{}"?"-":c}const a=U(()=>e.value.some(s=>Object.keys(s.meta)?.length));return(s,l)=>{const c=s6e;return M(),x("div",null,[b("table",l6e,[b("thead",c6e,[b("tr",null,[u6e,g6e,h6e,y(a)?(M(),x("th",d6e," Route Meta ")):se("",!0)])]),b("tbody",null,[(M(!0),x(Se,null,It(y(e),u=>(M(),x("tr",{key:u.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[b("td",f6e,[b("div",C6e,[s.matched.find(g=>g.name===u.name)?(M(),ie(y(GE),{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):s.matchedPending.find(g=>g.name===u.name)?(M(),ie(y(GE),{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):se("",!0)])]),b("td",v6e,[b("div",A6e,[N(c,{route:u,class:Te(s.matched.find(g=>g.name===u.name)?"text-primary-400":s.matchedPending.find(g=>g.name===u.name)?"text-teal":""),onNavigate:l[0]||(l[0]=g=>s.$emit("navigate",g))},null,8,["route","class"]),b("div",I6e,[u.meta?.file&&y(i).vitePluginDetected.value&&y(n)?(M(),x("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary-400",title:"Open in editor",onClick:g=>y(Xh)(u.meta?.file)},y6e,8,p6e)):se("",!0)])])]),b("td",b6e,Ee(u.name),1),y(a)?(M(),x("td",w6e,[b("span",{"inline-block":"","w-50":"","cursor-pointer":"","overflow-hidden":"","text-ellipsis":"",title:o(u.meta,2),onClick:()=>s.$emit("selectMeta",u.meta)},Ee(o(u.meta)),9,$6e)])):se("",!0)]))),128))])])])}}}),M6e={block:"","h-screen":"","of-auto":""},z6e={"h-full":"",class:"grid grid-rows-[auto_1fr]"},E6e={border:"b base",flex:"~ col gap1",px4:"",py3:""},S6e={key:1,op50:""},T6e=b("span",null,[ze("Press "),b("b",{"font-bold":""},"Enter"),ze(" to navigate")],-1),L6e={key:0,"text-orange":"",op75:""},k6e={key:1,op50:""},O6e=ge({__name:"pages",setup(t){const r=G(""),e=G(null),n=G([]),i=U(()=>r.value===e.value?.path?[]:n.value),o=G([]),a=G();function s(u){o.value=u.routes,e.value=u.currentRoute,r.value=e.value?.path??"/"}function l(){i.value.length&&c(r.value)}function c(u){Ae.value.navigate(u)}return ob(()=>{Ae.value.getRouterInfo().then(u=>{s(u)}),Ae.functions.on(Dt.ROUTER_INFO_UPDATED,s)}),aj(r,()=>{r.value!==e.value?.path&&Ae.value.getMatchedRoutes(r.value).then(u=>{n.value=u})}),cn(()=>{Ae.functions.off(Dt.ROUTER_INFO_UPDATED,s)}),(u,g)=>{const h=_6e,d=oG,f=Z9e;return M(),x("div",M6e,[b("div",z6e,[b("div",E6e,[b("div",null,[(M(),x("span",S6e,"Current route"))]),N(y(Za),{modelValue:y(r),"onUpdate:modelValue":g[0]||(g[0]=C=>nt(r)?r.value=C:null),"left-icon":"i-carbon-direction-right-01 scale-y--100",class:Te(y(e)?.path===y(r)?"":y(i).length?"text-green!":"text-orange!"),onKeydown:pB(l,["enter"])},null,8,["modelValue","class"]),b("div",null,[y(e)?.path!==y(r)?(M(),x(Se,{key:0},[T6e,y(i).length?se("",!0):(M(),x("span",L6e," (no match)"))],64)):(M(),x("span",k6e,"Edit path above to navigate"))])]),N(y(gc),{class:"of-hidden"},{default:W(()=>[N(y(Pn),{size:"70",class:"of-auto!"},{default:W(()=>[N(d,{icon:"i-carbon-tree-view-alt",text:"All Routes",description:`${y(o).length} routes registered in your application`,padding:!1},{default:W(()=>[y(o).length?(M(),ie(h,{key:0,pages:y(o),matched:y(e)?.matched??[],"matched-pending":y(i),onNavigate:c,onSelectMeta:g[1]||(g[1]=C=>a.value=C)},null,8,["pages","matched","matched-pending"])):se("",!0)]),_:1},8,["description"])]),_:1}),y(a)?(M(),ie(y(Pn),{key:0,size:"30",class:"of-auto!"},{default:W(()=>[N(f,{meta:y(a),onClose:g[2]||(g[2]=C=>a.value=void 0)},null,8,["meta"])]),_:1})):se("",!0)]),_:1})])])}}}),H6e={key:0,relative:"","code-block":""},x6e={flex:"~ wrap","w-full":""},V6e=["onClick"],P6e=b("div",{border:"b base","flex-auto":""},null,-1),R6e={flex:"~ gap-2",px3:"",pb3:""},D6e=ge({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(t){const r=t,e=Oi(r.codeSnippets[0]),{copy:n}=tI(),i=U(()=>e.value?.lang||"text");return wn(()=>{r.codeSnippets.includes(e.value)||(e.value=r.codeSnippets[0])}),(o,a)=>o.codeSnippets.length?(M(),x("div",H6e,[b("div",x6e,[(M(!0),x(Se,null,It(o.codeSnippets,(s,l)=>(M(),x("button",{key:l,px4:"",py2:"",border:"r base",hover:"bg-active",class:Te(s===y(e)?"":"border-b"),onClick:c=>e.value=s},[b("div",{class:Te(s===y(e)?"":"op30"),"font-mono":""},Ee(s.name),3)],10,V6e))),128)),P6e]),y(e)?(M(),x(Se,{key:0},[N(y(Mb),{code:y(e).code,lang:y(i),lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),b("div",R6e,[N(y(ct),{onClick:a[0]||(a[0]=s=>y(n)(y(e).code,{silent:!1,type:o.eventType||`code-snippet-${y(e).name}`}))},{icon:W(()=>[Qe(o.$slots,"i-carbon-copy")]),default:W(()=>[ze(" Copy ")]),_:3}),y(e)?.docs?(M(),ie(y(ct),{key:0,to:y(e).docs,target:"_blank"},{icon:W(()=>[Qe(o.$slots,"i-carbon-catalog")]),default:W(()=>[ze(" Docs ")]),_:3},8,["to"])):se("",!0)])],64)):se("",!0)])):se("",!0)}}),N6e=["title"],B6e=ge({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean}},setup(t){const r=t,e=U(()=>({path:r.filepath})),{copy:n}=tI();return(i,o)=>Vt((M(),x("button",{"font-mono":"","hover:underline":"",class:Te(i.lineBreak?"":"ws-nowrap of-hidden truncate"),title:i.filepath,onClick:o[0]||(o[0]=a=>y(n)(i.filepath))},[ze(Ee(y(e).path),1)],10,N6e)),[[y(pr),"Copy file path"]])}}),HS=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function F6e(t,r){r?r={...HS,...r}:r=HS;const e=aG(r);return e.dispatch(t),e.toString()}const j6e=Object.freeze(["prototype","__proto__","constructor"]);function aG(t){let r="",e=new Map;const n=i=>{r+=i};return{toString(){return r},getContext(){return e},dispatch(i){return t.replacer&&(i=t.replacer(i)),this[i===null?"null":typeof i](i)},object(i){if(i&&typeof i.toJSON=="function")return this.object(i.toJSON());const o=Object.prototype.toString.call(i);let a="";const s=o.length;s<10?a="unknown:["+o+"]":a=o.slice(8,s-1),a=a.toLowerCase();let l=null;if((l=e.get(i))===void 0)e.set(i,e.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(i))return n("buffer:"),n(i.toString("utf8"));if(a!=="object"&&a!=="function"&&a!=="asyncfunction")this[a]?this[a](i):t.ignoreUnknown||this.unkown(i,a);else{let c=Object.keys(i);t.unorderedObjects&&(c=c.sort());let u=[];t.respectType!==!1&&!xS(i)&&(u=j6e),t.excludeKeys&&(c=c.filter(h=>!t.excludeKeys(h)),u=u.filter(h=>!t.excludeKeys(h))),n("object:"+(c.length+u.length)+":");const g=h=>{this.dispatch(h),n(":"),t.excludeValues||this.dispatch(i[h]),n(",")};for(const h of c)g(h);for(const h of u)g(h)}},array(i,o){if(o=o===void 0?t.unorderedArrays!==!1:o,n("array:"+i.length+":"),!o||i.length<=1){for(const l of i)this.dispatch(l);return}const a=new Map,s=i.map(l=>{const c=aG(t);c.dispatch(l);for(const[u,g]of c.getContext())a.set(u,g);return c.toString()});return e=a,s.sort(),this.array(s,!1)},date(i){return n("date:"+i.toJSON())},symbol(i){return n("symbol:"+i.toString())},unkown(i,o){if(n(o),!!i&&(n(":"),i&&typeof i.entries=="function"))return this.array(Array.from(i.entries()),!0)},error(i){return n("error:"+i.toString())},boolean(i){return n("bool:"+i)},string(i){n("string:"+i.length+":"),n(i)},function(i){n("fn:"),xS(i)?this.dispatch("[native]"):this.dispatch(i.toString()),t.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(i.name)),t.respectFunctionProperties&&this.object(i)},number(i){return n("number:"+i)},xml(i){return n("xml:"+i.toString())},null(){return n("Null")},undefined(){return n("Undefined")},regexp(i){return n("regex:"+i.toString())},uint8array(i){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(i))},uint8clampedarray(i){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(i))},int8array(i){return n("int8array:"),this.dispatch(Array.prototype.slice.call(i))},uint16array(i){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(i))},int16array(i){return n("int16array:"),this.dispatch(Array.prototype.slice.call(i))},uint32array(i){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(i))},int32array(i){return n("int32array:"),this.dispatch(Array.prototype.slice.call(i))},float32array(i){return n("float32array:"),this.dispatch(Array.prototype.slice.call(i))},float64array(i){return n("float64array:"),this.dispatch(Array.prototype.slice.call(i))},arraybuffer(i){return n("arraybuffer:"),this.dispatch(new Uint8Array(i))},url(i){return n("url:"+i.toString())},map(i){n("map:");const o=[...i];return this.array(o,t.unorderedSets!==!1)},set(i){n("set:");const o=[...i];return this.array(o,t.unorderedSets!==!1)},file(i){return n("file:"),this.dispatch([i.name,i.size,i.type,i.lastModfied])},blob(){if(t.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported
36
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d0e(t){var r;return typeof t=="function"?r={callback:t}:r=t,r}function f0e(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,o,a=function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),g=1;g<c;g++)u[g-1]=arguments[g];if(o=u,!(n&&l===i)){var h=e.leading;typeof h=="function"&&(h=h(l,i)),(!n||l!==i)&&h&&t.apply(void 0,[l].concat(eS(o))),i=l,clearTimeout(n),n=setTimeout(function(){t.apply(void 0,[l].concat(eS(o))),n=0},r)}};return a._clear=function(){clearTimeout(n),n=null},a}function hU(t,r){if(t===r)return!0;if(p5(t)==="object"){for(var e in t)if(!hU(t[e],r[e]))return!1;return!0}return!1}var C0e=function(){function t(r,e,n){a0e(this,t),this.el=r,this.observer=null,this.frozen=!1,this.createObserver(e,n)}return l0e(t,[{key:"createObserver",value:function(e,n){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=d0e(e),this.callback=function(s,l){i.options.callback(s,l),s&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},a=o.leading;this.callback=f0e(this.callback,this.options.throttle,{leading:function(l){return a==="both"||a==="visible"&&l||a==="hidden"&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(s){var l=s[0];if(s.length>1){var c=s.find(function(g){return g.isIntersecting});c&&(l=c)}if(i.callback){var u=l.isIntersecting&&l.intersectionRatio>=i.threshold;if(u===i.oldResult)return;i.oldResult=u,i.callback(u,l)}},this.options.intersection),ln(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),t}();function dU(t,r,e){var n=r.value;if(n)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new C0e(t,n,e);t._vue_visibilityState=i}}function v0e(t,r,e){var n=r.value,i=r.oldValue;if(!hU(n,i)){var o=t._vue_visibilityState;if(!n){fU(t);return}o?o.createObserver(n,e):dU(t,{value:n},e)}}function fU(t){var r=t._vue_visibilityState;r&&(r.destroyObserver(),delete t._vue_visibilityState)}var A0e={beforeMount:dU,updated:v0e,unmounted:fU},I0e={itemsLimit:1e3},p0e=/(auto|scroll)/;function CU(t,r){return t.parentNode===null?r:CU(t.parentNode,r.concat([t]))}var fp=function(r,e){return getComputedStyle(r,null).getPropertyValue(e)},m0e=function(r){return fp(r,"overflow")+fp(r,"overflow-y")+fp(r,"overflow-x")},y0e=function(r){return p0e.test(m0e(r))};function tS(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var r=CU(t.parentNode,[]),e=0;e<r.length;e+=1)if(y0e(r[e]))return r[e];return document.scrollingElement||document.documentElement}}function i8(t){"@babel/helpers - typeof";return i8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},i8(t)}var b0e={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(r){return["vertical","horizontal"].includes(r)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function w0e(){return this.items.length&&i8(this.items[0])!=="object"}var o8=!1;if(typeof window<"u"){o8=!1;try{var $0e=Object.defineProperty({},"passive",{get:function(){o8=!0}});window.addEventListener("test",null,$0e)}catch{}}let _0e=0;var Eb={name:"RecycleScroller",components:{ResizeObserver:XA},directives:{ObserveVisibility:A0e},props:{...b0e,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const t={"-1":{accumulator:0}},r=this.items,e=this.sizeField,n=this.minItemSize;let i=1e4,o=0,a;for(let s=0,l=r.length;s<l;s++)a=r[s][e]||n,a<i&&(i=a),o+=a,t[s]={accumulator:o,size:a};return this.$_computedMinItemSize=i,t}return[]},simpleArray:w0e,itemIndexByKey(){const{keyField:t,items:r}=this,e={};for(let n=0,i=r.length;n<i;n++)e[r[n][t]]=n;return e}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const t=this.$_lastUpdateScrollPosition;typeof t=="number"&&this.$nextTick(()=>{this.scrollToPosition(t)})},beforeUnmount(){this.removeListeners()},methods:{addView(t,r,e,n,i){const o=$N({id:_0e++,index:r,used:!0,key:n,type:i}),a=xy({item:e,position:0,nr:o});return t.push(a),a},unuseView(t,r=!1){const e=this.$_unusedViews,n=t.nr.type;let i=e.get(n);i||(i=[],e.set(n,i)),i.push(t),r||(t.nr.used=!1,t.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(t){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const r=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});r(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&r()},this.updateInterval))}},handleVisibilityChange(t,r){this.ready&&(t||r.boundingClientRect.width!==0||r.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(t,r=!1){const e=this.itemSize,n=this.gridItems||1,i=this.itemSecondarySize||e,o=this.$_computedMinItemSize,a=this.typeField,s=this.simpleArray?null:this.keyField,l=this.items,c=l.length,u=this.sizes,g=this.$_views,h=this.$_unusedViews,d=this.pool,f=this.itemIndexByKey;let C,v,A,I,p;if(!c)C=v=I=p=A=0;else if(this.$_prerender)C=I=0,v=p=Math.min(this.prerender,l.length),A=null;else{const T=this.getScroll();if(r){let P=T.start-this.$_lastUpdateScrollPosition;if(P<0&&(P=-P),e===null&&P<o||P<e)return{continuous:!0}}this.$_lastUpdateScrollPosition=T.start;const L=this.buffer;T.start-=L,T.end+=L;let O=0;if(this.$refs.before&&(O=this.$refs.before.scrollHeight,T.start-=O),this.$refs.after){const P=this.$refs.after.scrollHeight;T.end+=P}if(e===null){let P,B=0,te=c-1,ee=~~(c/2),re;do re=ee,P=u[ee].accumulator,P<T.start?B=ee:ee<c-1&&u[ee+1].accumulator>T.start&&(te=ee),ee=~~((B+te)/2);while(ee!==re);for(ee<0&&(ee=0),C=ee,A=u[c-1].accumulator,v=ee;v<c&&u[v].accumulator<T.end;v++);for(v===-1?v=l.length-1:(v++,v>c&&(v=c)),I=C;I<c&&O+u[I].accumulator<T.start;I++);for(p=I;p<c&&O+u[p].accumulator<T.end;p++);}else{C=~~(T.start/e*n);const P=C%n;C-=P,v=Math.ceil(T.end/e*n),I=Math.max(0,Math.floor((T.start-O)/e*n)),p=Math.floor((T.end-O)/e*n),C<0&&(C=0),v>c&&(v=c),I<0&&(I=0),p>c&&(p=c),A=Math.ceil(c/n)*e}}v-C>I0e.itemsLimit&&this.itemsLimitError(),this.totalSize=A;let m;const w=C<=this.$_endIndex&&v>=this.$_startIndex;if(w)for(let T=0,L=d.length;T<L;T++)m=d[T],m.nr.used&&(t&&(m.nr.index=f[m.item[s]]),(m.nr.index==null||m.nr.index<C||m.nr.index>=v)&&this.unuseView(m));const _=w?null:new Map;let k,S,E;for(let T=C;T<v;T++){k=l[T];const L=s?k[s]:k;if(L==null)throw new Error(`Key is ${L} on item (keyField is '${s}')`);if(m=g.get(L),!e&&!u[T].size){m&&this.unuseView(m);continue}S=k[a];let O=h.get(S),P=!1;if(!m)w?O&&O.length?m=O.pop():m=this.addView(d,T,k,L,S):(E=_.get(S)||0,(!O||E>=O.length)&&(m=this.addView(d,T,k,L,S),this.unuseView(m,!0),O=h.get(S)),m=O[E],_.set(S,E+1)),g.delete(m.nr.key),m.nr.used=!0,m.nr.index=T,m.nr.key=L,m.nr.type=S,g.set(L,m),P=!0;else if(!m.nr.used&&(m.nr.used=!0,P=!0,O)){const B=O.indexOf(m);B!==-1&&O.splice(B,1)}m.item=k,P&&(T===l.length-1&&this.$emit("scroll-end"),T===0&&this.$emit("scroll-start")),e===null?(m.position=u[T-1].accumulator,m.offset=0):(m.position=Math.floor(T/n)*e,m.offset=T%n*i)}return this.$_startIndex=C,this.$_endIndex=v,this.emitUpdate&&this.$emit("update",C,v,I,p),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:w}},getListenerTarget(){let t=tS(this.$el);return window.document&&(t===window.document.documentElement||t===window.document.body)&&(t=window),t},getScroll(){const{$el:t,direction:r}=this,e=r==="vertical";let n;if(this.pageMode){const i=t.getBoundingClientRect(),o=e?i.height:i.width;let a=-(e?i.top:i.left),s=e?window.innerHeight:window.innerWidth;a<0&&(s+=a,a=0),a+s>o&&(s=o-a),n={start:a,end:a+s}}else e?n={start:t.scrollTop,end:t.scrollTop+t.clientHeight}:n={start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,o8?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(t){let r;const e=this.gridItems||1;this.itemSize===null?r=t>0?this.sizes[t-1].accumulator:0:r=Math.floor(t/e)*this.itemSize,this.scrollToPosition(r)},scrollToPosition(t){const r=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let e,n,i;if(this.pageMode){const o=tS(this.$el),a=o.tagName==="HTML"?0:o[r.scroll],s=o.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[r.start]-s[r.start];e=o,n=r.scroll,i=t+a+c}else e=this.$el,n=r.scroll,i=t;e[n]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((t,r)=>t.nr.index-r.nr.index)}}};const M0e={key:0,ref:"before",class:"vue-recycle-scroller__slot"},z0e={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function E0e(t,r,e,n,i,o){const a=_o("ResizeObserver"),s=Fy("observe-visibility");return Vt((M(),x("div",{class:Te(["vue-recycle-scroller",{ready:i.ready,"page-mode":e.pageMode,[`direction-${t.direction}`]:!0}]),onScrollPassive:r[0]||(r[0]=(...l)=>o.handleScroll&&o.handleScroll(...l))},[t.$slots.before?(M(),x("div",M0e,[Qe(t.$slots,"before")],512)):se("v-if",!0),(M(),ie(h1(e.listTag),{ref:"wrapper",style:Sr({[t.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:Te(["vue-recycle-scroller__item-wrapper",e.listClass])},{default:W(()=>[(M(!0),x(Se,null,It(i.pool,l=>(M(),ie(h1(e.itemTag),Gr({key:l.nr.id,style:i.ready?{transform:`translate${t.direction==="vertical"?"Y":"X"}(${l.position}px) translate${t.direction==="vertical"?"X":"Y"}(${l.offset}px)`,width:e.gridItems?`${t.direction==="vertical"&&e.itemSecondarySize||e.itemSize}px`:void 0,height:e.gridItems?`${t.direction==="horizontal"&&e.itemSecondarySize||e.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[e.itemClass,{hover:!e.skipHover&&i.hoverKey===l.nr.key}]]},Eie(e.skipHover?{}:{mouseenter:()=>{i.hoverKey=l.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:W(()=>[Qe(t.$slots,"default",{item:l.item,index:l.nr.index,active:l.nr.used})]),_:2},1040,["style","class"]))),128)),Qe(t.$slots,"empty")]),_:3},8,["style","class"])),t.$slots.after?(M(),x("div",z0e,[Qe(t.$slots,"after")],512)):se("v-if",!0),N(a,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[s,o.handleVisibilityChange]])}Eb.render=E0e;Eb.__file="src/components/RecycleScroller.vue";var vU=typeof global=="object"&&global&&global.Object===Object&&global,S0e=typeof self=="object"&&self&&self.Object===Object&&self,os=vU||S0e||Function("return this")(),ha=os.Symbol,AU=Object.prototype,T0e=AU.hasOwnProperty,L0e=AU.toString,Og=ha?ha.toStringTag:void 0;function k0e(t){var r=T0e.call(t,Og),e=t[Og];try{t[Og]=void 0;var n=!0}catch{}var i=L0e.call(t);return n&&(r?t[Og]=e:delete t[Og]),i}var O0e=Object.prototype,H0e=O0e.toString;function x0e(t){return H0e.call(t)}var V0e="[object Null]",P0e="[object Undefined]",rS=ha?ha.toStringTag:void 0;function xu(t){return t==null?t===void 0?P0e:V0e:rS&&rS in Object(t)?k0e(t):x0e(t)}function ru(t){return t!=null&&typeof t=="object"}var R0e="[object Symbol]";function Sb(t){return typeof t=="symbol"||ru(t)&&xu(t)==R0e}function D0e(t,r){for(var e=-1,n=t==null?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i}var Eo=Array.isArray,N0e=1/0,nS=ha?ha.prototype:void 0,iS=nS?nS.toString:void 0;function IU(t){if(typeof t=="string")return t;if(Eo(t))return D0e(t,IU)+"";if(Sb(t))return iS?iS.call(t):"";var r=t+"";return r=="0"&&1/t==-N0e?"-0":r}function Tb(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function B0e(t){return t}var F0e="[object AsyncFunction]",j0e="[object Function]",U0e="[object GeneratorFunction]",G0e="[object Proxy]";function pU(t){if(!Tb(t))return!1;var r=xu(t);return r==j0e||r==U0e||r==F0e||r==G0e}var Cp=os["__core-js_shared__"],oS=function(){var t=/[^.]+$/.exec(Cp&&Cp.keys&&Cp.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function W0e(t){return!!oS&&oS in t}var Z0e=Function.prototype,K0e=Z0e.toString;function hc(t){if(t!=null){try{return K0e.call(t)}catch{}try{return t+""}catch{}}return""}var Y0e=/[\\^$.*+?()[\]{}|]/g,X0e=/^\[object .+?Constructor\]$/,q0e=Function.prototype,Q0e=Object.prototype,J0e=q0e.toString,eCe=Q0e.hasOwnProperty,tCe=RegExp("^"+J0e.call(eCe).replace(Y0e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rCe(t){if(!Tb(t)||W0e(t))return!1;var r=pU(t)?tCe:X0e;return r.test(hc(t))}function nCe(t,r){return t?.[r]}function dc(t,r){var e=nCe(t,r);return rCe(e)?e:void 0}var a8=dc(os,"WeakMap"),aS=function(){try{var t=dc(Object,"defineProperty");return t({},"",{}),t}catch{}}(),iCe=9007199254740991,oCe=/^(?:0|[1-9]\d*)$/;function mU(t,r){var e=typeof t;return r=r??iCe,!!r&&(e=="number"||e!="symbol"&&oCe.test(t))&&t>-1&&t%1==0&&t<r}function aCe(t,r,e){r=="__proto__"&&aS?aS(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function yU(t,r){return t===r||t!==t&&r!==r}var sCe=9007199254740991;function Lb(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=sCe}function bU(t){return t!=null&&Lb(t.length)&&!pU(t)}var lCe=Object.prototype;function cCe(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||lCe;return t===e}function uCe(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}var gCe="[object Arguments]";function sS(t){return ru(t)&&xu(t)==gCe}var wU=Object.prototype,hCe=wU.hasOwnProperty,dCe=wU.propertyIsEnumerable,kb=sS(function(){return arguments}())?sS:function(t){return ru(t)&&hCe.call(t,"callee")&&!dCe.call(t,"callee")};function fCe(){return!1}var $U=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lS=$U&&typeof module=="object"&&module&&!module.nodeType&&module,CCe=lS&&lS.exports===$U,cS=CCe?os.Buffer:void 0,vCe=cS?cS.isBuffer:void 0,s8=vCe||fCe,ACe="[object Arguments]",ICe="[object Array]",pCe="[object Boolean]",mCe="[object Date]",yCe="[object Error]",bCe="[object Function]",wCe="[object Map]",$Ce="[object Number]",_Ce="[object Object]",MCe="[object RegExp]",zCe="[object Set]",ECe="[object String]",SCe="[object WeakMap]",TCe="[object ArrayBuffer]",LCe="[object DataView]",kCe="[object Float32Array]",OCe="[object Float64Array]",HCe="[object Int8Array]",xCe="[object Int16Array]",VCe="[object Int32Array]",PCe="[object Uint8Array]",RCe="[object Uint8ClampedArray]",DCe="[object Uint16Array]",NCe="[object Uint32Array]",rr={};rr[kCe]=rr[OCe]=rr[HCe]=rr[xCe]=rr[VCe]=rr[PCe]=rr[RCe]=rr[DCe]=rr[NCe]=!0;rr[ACe]=rr[ICe]=rr[TCe]=rr[pCe]=rr[LCe]=rr[mCe]=rr[yCe]=rr[bCe]=rr[wCe]=rr[$Ce]=rr[_Ce]=rr[MCe]=rr[zCe]=rr[ECe]=rr[SCe]=!1;function BCe(t){return ru(t)&&Lb(t.length)&&!!rr[xu(t)]}function FCe(t){return function(r){return t(r)}}var _U=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ah=_U&&typeof module=="object"&&module&&!module.nodeType&&module,jCe=Ah&&Ah.exports===_U,vp=jCe&&vU.process,uS=function(){try{var t=Ah&&Ah.require&&Ah.require("util").types;return t||vp&&vp.binding&&vp.binding("util")}catch{}}(),gS=uS&&uS.isTypedArray,MU=gS?FCe(gS):BCe,UCe=Object.prototype,GCe=UCe.hasOwnProperty;function WCe(t,r){var e=Eo(t),n=!e&&kb(t),i=!e&&!n&&s8(t),o=!e&&!n&&!i&&MU(t),a=e||n||i||o,s=a?uCe(t.length,String):[],l=s.length;for(var c in t)GCe.call(t,c)&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||mU(c,l)))&&s.push(c);return s}function ZCe(t,r){return function(e){return t(r(e))}}var KCe=ZCe(Object.keys,Object),YCe=Object.prototype,XCe=YCe.hasOwnProperty;function qCe(t){if(!cCe(t))return KCe(t);var r=[];for(var e in Object(t))XCe.call(t,e)&&e!="constructor"&&r.push(e);return r}function Ob(t){return bU(t)?WCe(t):qCe(t)}var QCe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JCe=/^\w*$/;function Hb(t,r){if(Eo(t))return!1;var e=typeof t;return e=="number"||e=="symbol"||e=="boolean"||t==null||Sb(t)?!0:JCe.test(t)||!QCe.test(t)||r!=null&&t in Object(r)}var ld=dc(Object,"create");function e5e(){this.__data__=ld?ld(null):{},this.size=0}function t5e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}var r5e="__lodash_hash_undefined__",n5e=Object.prototype,i5e=n5e.hasOwnProperty;function o5e(t){var r=this.__data__;if(ld){var e=r[t];return e===r5e?void 0:e}return i5e.call(r,t)?r[t]:void 0}var a5e=Object.prototype,s5e=a5e.hasOwnProperty;function l5e(t){var r=this.__data__;return ld?r[t]!==void 0:s5e.call(r,t)}var c5e="__lodash_hash_undefined__";function u5e(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=ld&&r===void 0?c5e:r,this}function Ul(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Ul.prototype.clear=e5e;Ul.prototype.delete=t5e;Ul.prototype.get=o5e;Ul.prototype.has=l5e;Ul.prototype.set=u5e;function g5e(){this.__data__=[],this.size=0}function qA(t,r){for(var e=t.length;e--;)if(yU(t[e][0],r))return e;return-1}var h5e=Array.prototype,d5e=h5e.splice;function f5e(t){var r=this.__data__,e=qA(r,t);if(e<0)return!1;var n=r.length-1;return e==n?r.pop():d5e.call(r,e,1),--this.size,!0}function C5e(t){var r=this.__data__,e=qA(r,t);return e<0?void 0:r[e][1]}function v5e(t){return qA(this.__data__,t)>-1}function A5e(t,r){var e=this.__data__,n=qA(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function as(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}as.prototype.clear=g5e;as.prototype.delete=f5e;as.prototype.get=C5e;as.prototype.has=v5e;as.prototype.set=A5e;var cd=dc(os,"Map");function I5e(){this.size=0,this.__data__={hash:new Ul,map:new(cd||as),string:new Ul}}function p5e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function QA(t,r){var e=t.__data__;return p5e(r)?e[typeof r=="string"?"string":"hash"]:e.map}function m5e(t){var r=QA(this,t).delete(t);return this.size-=r?1:0,r}function y5e(t){return QA(this,t).get(t)}function b5e(t){return QA(this,t).has(t)}function w5e(t,r){var e=QA(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this}function ss(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}ss.prototype.clear=I5e;ss.prototype.delete=m5e;ss.prototype.get=y5e;ss.prototype.has=b5e;ss.prototype.set=w5e;var $5e="Expected a function";function xb(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new TypeError($5e);var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return e.cache=o.set(i,a)||o,a};return e.cache=new(xb.Cache||ss),e}xb.Cache=ss;var _5e=500;function M5e(t){var r=xb(t,function(n){return e.size===_5e&&e.clear(),n}),e=r.cache;return r}var z5e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E5e=/\\(\\)?/g,S5e=M5e(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(z5e,function(e,n,i,o){r.push(i?o.replace(E5e,"$1"):n||e)}),r});function T5e(t){return t==null?"":IU(t)}function zU(t,r){return Eo(t)?t:Hb(t,r)?[t]:S5e(T5e(t))}var L5e=1/0;function JA(t){if(typeof t=="string"||Sb(t))return t;var r=t+"";return r=="0"&&1/t==-L5e?"-0":r}function EU(t,r){r=zU(r,t);for(var e=0,n=r.length;t!=null&&e<n;)t=t[JA(r[e++])];return e&&e==n?t:void 0}function k5e(t,r,e){var n=t==null?void 0:EU(t,r);return n===void 0?e:n}function SU(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}var hS=ha?ha.isConcatSpreadable:void 0;function O5e(t){return Eo(t)||kb(t)||!!(hS&&t&&t[hS])}function H5e(t,r,e,n,i){var o=-1,a=t.length;for(e||(e=O5e),i||(i=[]);++o<a;){var s=t[o];e(s)?SU(i,s):i[i.length]=s}return i}function x5e(t){var r=t==null?0:t.length;return r?H5e(t):[]}function V5e(){this.__data__=new as,this.size=0}function P5e(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}function R5e(t){return this.__data__.get(t)}function D5e(t){return this.__data__.has(t)}var N5e=200;function B5e(t,r){var e=this.__data__;if(e instanceof as){var n=e.__data__;if(!cd||n.length<N5e-1)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new ss(n)}return e.set(t,r),this.size=e.size,this}function Oa(t){var r=this.__data__=new as(t);this.size=r.size}Oa.prototype.clear=V5e;Oa.prototype.delete=P5e;Oa.prototype.get=R5e;Oa.prototype.has=D5e;Oa.prototype.set=B5e;function F5e(t,r){for(var e=-1,n=t==null?0:t.length,i=0,o=[];++e<n;){var a=t[e];r(a,e,t)&&(o[i++]=a)}return o}function j5e(){return[]}var U5e=Object.prototype,G5e=U5e.propertyIsEnumerable,dS=Object.getOwnPropertySymbols,W5e=dS?function(t){return t==null?[]:(t=Object(t),F5e(dS(t),function(r){return G5e.call(t,r)}))}:j5e;function Z5e(t,r,e){var n=r(t);return Eo(t)?n:SU(n,e(t))}function fS(t){return Z5e(t,Ob,W5e)}var l8=dc(os,"DataView"),c8=dc(os,"Promise"),u8=dc(os,"Set"),CS="[object Map]",K5e="[object Object]",vS="[object Promise]",AS="[object Set]",IS="[object WeakMap]",pS="[object DataView]",Y5e=hc(l8),X5e=hc(cd),q5e=hc(c8),Q5e=hc(u8),J5e=hc(a8),Os=xu;(l8&&Os(new l8(new ArrayBuffer(1)))!=pS||cd&&Os(new cd)!=CS||c8&&Os(c8.resolve())!=vS||u8&&Os(new u8)!=AS||a8&&Os(new a8)!=IS)&&(Os=function(t){var r=xu(t),e=r==K5e?t.constructor:void 0,n=e?hc(e):"";if(n)switch(n){case Y5e:return pS;case X5e:return CS;case q5e:return vS;case Q5e:return AS;case J5e:return IS}return r});var mS=os.Uint8Array,eve="__lodash_hash_undefined__";function tve(t){return this.__data__.set(t,eve),this}function rve(t){return this.__data__.has(t)}function Lv(t){var r=-1,e=t==null?0:t.length;for(this.__data__=new ss;++r<e;)this.add(t[r])}Lv.prototype.add=Lv.prototype.push=tve;Lv.prototype.has=rve;function nve(t,r){for(var e=-1,n=t==null?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}function ive(t,r){return t.has(r)}var ove=1,ave=2;function TU(t,r,e,n,i,o){var a=e&ove,s=t.length,l=r.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(t),u=o.get(r);if(c&&u)return c==r&&u==t;var g=-1,h=!0,d=e&ave?new Lv:void 0;for(o.set(t,r),o.set(r,t);++g<s;){var f=t[g],C=r[g];if(n)var v=a?n(C,f,g,r,t,o):n(f,C,g,t,r,o);if(v!==void 0){if(v)continue;h=!1;break}if(d){if(!nve(r,function(A,I){if(!ive(d,I)&&(f===A||i(f,A,e,n,o)))return d.push(I)})){h=!1;break}}else if(!(f===C||i(f,C,e,n,o))){h=!1;break}}return o.delete(t),o.delete(r),h}function sve(t){var r=-1,e=Array(t.size);return t.forEach(function(n,i){e[++r]=[i,n]}),e}function lve(t){var r=-1,e=Array(t.size);return t.forEach(function(n){e[++r]=n}),e}var cve=1,uve=2,gve="[object Boolean]",hve="[object Date]",dve="[object Error]",fve="[object Map]",Cve="[object Number]",vve="[object RegExp]",Ave="[object Set]",Ive="[object String]",pve="[object Symbol]",mve="[object ArrayBuffer]",yve="[object DataView]",yS=ha?ha.prototype:void 0,Ap=yS?yS.valueOf:void 0;function bve(t,r,e,n,i,o,a){switch(e){case yve:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case mve:return!(t.byteLength!=r.byteLength||!o(new mS(t),new mS(r)));case gve:case hve:case Cve:return yU(+t,+r);case dve:return t.name==r.name&&t.message==r.message;case vve:case Ive:return t==r+"";case fve:var s=sve;case Ave:var l=n&cve;if(s||(s=lve),t.size!=r.size&&!l)return!1;var c=a.get(t);if(c)return c==r;n|=uve,a.set(t,r);var u=TU(s(t),s(r),n,i,o,a);return a.delete(t),u;case pve:if(Ap)return Ap.call(t)==Ap.call(r)}return!1}var wve=1,$ve=Object.prototype,_ve=$ve.hasOwnProperty;function Mve(t,r,e,n,i,o){var a=e&wve,s=fS(t),l=s.length,c=fS(r),u=c.length;if(l!=u&&!a)return!1;for(var g=l;g--;){var h=s[g];if(!(a?h in r:_ve.call(r,h)))return!1}var d=o.get(t),f=o.get(r);if(d&&f)return d==r&&f==t;var C=!0;o.set(t,r),o.set(r,t);for(var v=a;++g<l;){h=s[g];var A=t[h],I=r[h];if(n)var p=a?n(I,A,h,r,t,o):n(A,I,h,t,r,o);if(!(p===void 0?A===I||i(A,I,e,n,o):p)){C=!1;break}v||(v=h=="constructor")}if(C&&!v){var m=t.constructor,w=r.constructor;m!=w&&"constructor"in t&&"constructor"in r&&!(typeof m=="function"&&m instanceof m&&typeof w=="function"&&w instanceof w)&&(C=!1)}return o.delete(t),o.delete(r),C}var zve=1,bS="[object Arguments]",wS="[object Array]",K0="[object Object]",Eve=Object.prototype,$S=Eve.hasOwnProperty;function Sve(t,r,e,n,i,o){var a=Eo(t),s=Eo(r),l=a?wS:Os(t),c=s?wS:Os(r);l=l==bS?K0:l,c=c==bS?K0:c;var u=l==K0,g=c==K0,h=l==c;if(h&&s8(t)){if(!s8(r))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new Oa),a||MU(t)?TU(t,r,e,n,i,o):bve(t,r,l,e,n,i,o);if(!(e&zve)){var d=u&&$S.call(t,"__wrapped__"),f=g&&$S.call(r,"__wrapped__");if(d||f){var C=d?t.value():t,v=f?r.value():r;return o||(o=new Oa),i(C,v,e,n,o)}}return h?(o||(o=new Oa),Mve(t,r,e,n,i,o)):!1}function Vb(t,r,e,n,i){return t===r?!0:t==null||r==null||!ru(t)&&!ru(r)?t!==t&&r!==r:Sve(t,r,e,n,Vb,i)}var Tve=1,Lve=2;function kve(t,r,e,n){var i=e.length,o=i;if(t==null)return!o;for(t=Object(t);i--;){var a=e[i];if(a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){a=e[i];var s=a[0],l=t[s],c=a[1];if(a[2]){if(l===void 0&&!(s in t))return!1}else{var u=new Oa,g;if(!(g===void 0?Vb(c,l,Tve|Lve,n,u):g))return!1}}return!0}function LU(t){return t===t&&!Tb(t)}function Ove(t){for(var r=Ob(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,LU(i)]}return r}function kU(t,r){return function(e){return e==null?!1:e[t]===r&&(r!==void 0||t in Object(e))}}function Hve(t){var r=Ove(t);return r.length==1&&r[0][2]?kU(r[0][0],r[0][1]):function(e){return e===t||kve(e,t,r)}}function xve(t,r){return t!=null&&r in Object(t)}function Vve(t,r,e){r=zU(r,t);for(var n=-1,i=r.length,o=!1;++n<i;){var a=JA(r[n]);if(!(o=t!=null&&e(t,a)))break;t=t[a]}return o||++n!=i?o:(i=t==null?0:t.length,!!i&&Lb(i)&&mU(a,i)&&(Eo(t)||kb(t)))}function Pve(t,r){return t!=null&&Vve(t,r,xve)}var Rve=1,Dve=2;function Nve(t,r){return Hb(t)&&LU(r)?kU(JA(t),r):function(e){var n=k5e(e,t);return n===void 0&&n===r?Pve(e,t):Vb(r,n,Rve|Dve)}}function Bve(t){return function(r){return r?.[t]}}function Fve(t){return function(r){return EU(r,t)}}function jve(t){return Hb(t)?Bve(JA(t)):Fve(t)}function Uve(t){return typeof t=="function"?t:t==null?B0e:typeof t=="object"?Eo(t)?Nve(t[0],t[1]):Hve(t):jve(t)}function Gve(t,r,e,n){for(var i=-1,o=t==null?0:t.length;++i<o;){var a=t[i];r(n,a,e(a),t)}return n}function Wve(t){return function(r,e,n){for(var i=-1,o=Object(r),a=n(r),s=a.length;s--;){var l=a[++i];if(e(o[l],l,o)===!1)break}return r}}var Zve=Wve();function Kve(t,r){return t&&Zve(t,r,Ob)}function Yve(t,r){return function(e,n){if(e==null)return e;if(!bU(e))return t(e,n);for(var i=e.length,o=-1,a=Object(e);++o<i&&n(a[o],o,a)!==!1;);return e}}var Xve=Yve(Kve);function qve(t,r,e,n){return Xve(t,function(i,o,a){r(n,i,e(i),a)}),n}function Qve(t,r){return function(e,n){var i=Eo(e)?Gve:qve,o={};return i(e,t,Uve(n),o)}}var Jve=Object.prototype,eAe=Jve.hasOwnProperty,tAe=Qve(function(t,r,e){eAe.call(t,e)?t[e].push(r):aCe(t,e,[r])});const fc=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},rAe={},nAe={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iAe=hB('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>',2),oAe=[iAe];function aAe(t,r){return M(),x("svg",nAe,oAe)}const sAe=fc(rAe,[["render",aAe]]),Pb=Symbol("VirtualRouteKey"),OU=Symbol("VirtualRoutesKey");function Rb(t,r){const e=r?.defaultRoutePath??Dh(t)[0].path,n=G({path:e}),i=U(()=>Dh(t)),o=U(()=>n.value.path),a=ge({setup(){return()=>{const l=i.value.find(c=>c.path===o.value);return l?oc(l.component):null}}});function s(){n.value.path=e}return Li(Pb,n),Li(OU,i),{VirtualRouterView:a,restoreRouter:s}}function tf(){const t=mr(Pb);return{push(r){t.value.path=r}}}function lAe(){const t=mr(OU),r=mr(Pb);return{routes:t,currentRoute:r}}const cAe={"h-full":"","w-full":"",flex:"","items-center":""},uAe={flex:"~ col gap2",ma:"","px-5":""},gAe=b("div",{"flex-auto":""},null,-1),hAe={flex:"~ col","mt-20":"","items-center":""},dAe={flex:"~","mt--10":"","items-center":"","justify-center":""},fAe=b("div",{mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},[b("span",{op40:""}," Pinia DevTools ")],-1),CAe=b("div",{"flex-auto":""},null,-1),vAe={flex:"~ gap2 wrap"},AAe=b("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),IAe=b("code",null,"Store",-1),pAe=[AAe,IAe],mAe=b("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),yAe=b("div",null,"Timeline",-1),bAe=[mAe,yAe],wAe=b("div",{flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},[b("a",{href:"https://github.com/vuejs/pinia",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[b("div",{"i-carbon-star":""}),ze(" Star on GitHub ")]),b("a",{href:"https://pinia.vuejs.org/",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[b("div",{"i-carbon-document":""}),ze(" View Documentation ")])],-1),$Ae=b("div",{"flex-auto":""},null,-1),_Ae=ge({__name:"About",setup(t){const r=tf();return(e,n)=>(M(),x("div",cAe,[b("div",uAe,[gAe,b("div",hAe,[b("div",dAe,[N(sAe,{"h-18":""})]),fAe]),CAe,b("div",vAe,[b("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[0]||(n[0]=i=>y(r).push("/store"))},pAe),b("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[1]||(n[1]=i=>y(r).push("/timeline"))},bAe)]),wAe,$Ae])]))}}),MAe={class:"flex gap3"},zAe=["onClick"],Vu=ge({__name:"Navbar",setup(t){const{routes:r,currentRoute:e}=lAe(),n=tf();return(i,o)=>(M(),x("ul",MAe,[(M(!0),x(Se,null,It(y(r),(a,s)=>(M(),x("li",{key:s,class:Te(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100",y(e).path===a.path?"op-100 font-medium text-primary-400 border-primary-400":"border-transparent op-70"]),onClick:l=>y(n).push(a.path)},Ee(a.name),11,zAe))),128))]))}}),EAe={border:"b base",class:"flex items-center justify-between px3"},SAe=["href"],TAe=b("i",{class:"i-clarity:document-line cursor-pointer op70 text-base hover:op100"},null,-1),LAe=[TAe],kAe=["href"],OAe=b("i",{class:"i-mdi:github cursor-pointer op70 text-base hover:op100"},null,-1),HAe=[OAe],Pu=ge({__name:"DevToolsHeader",props:{githubRepoLink:{},docLink:{}},setup(t){const r=tf();return(e,n)=>(M(),x("div",EAe,[b("div",null,[Qe(e.$slots,"default",{},()=>[b("i",{class:"i-ep:back cursor-pointer op70 text-base hover:op100",onClick:n[0]||(n[0]=i=>y(r).push("/"))})])]),b("div",null,[b("a",{class:"pr2",href:e.docLink,target:"_blank",title:"View Documentation"},LAe,8,SAe),e.githubRepoLink?(M(),x("a",{key:0,href:e.githubRepoLink,target:"_blank",title:"Star on GitHub"},HAe,8,kAe)):se("",!0)])]))}}),xAe={},VAe={class:"h-full flex flex-col items-center justify-center op50"},PAe=b("i",{class:"i-lets-icons:blank-light"},null,-1);function RAe(t,r){return M(),x("div",VAe,[PAe,b("span",null,[Qe(t.$slots,"default")])])}const ud=fc(xAe,[["render",RAe]]);function Db(t){return Sy()?(gN(t),!0):!1}function En(t){return typeof t=="function"?t():y(t)}const Nb=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const DAe=t=>typeof t<"u",NAe=Object.prototype.toString,BAe=t=>NAe.call(t)==="[object Object]",kv=()=>{};function FAe(t,r){function e(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(i).catch(o)})}return e}const jAe=t=>t();function UAe(t,r={}){let e,n,i=kv;const o=a=>{clearTimeout(a),i(),i=kv};return a=>{const s=En(t),l=En(r.maxWait);return e&&o(e),s<=0||l!==void 0&&l<=0?(n&&(o(n),n=null),Promise.resolve(a())):new Promise((c,u)=>{i=r.rejectOnCancel?u:c,l&&!n&&(n=setTimeout(()=>{e&&o(e),n=null,c(a())},l)),e=setTimeout(()=>{n&&o(n),n=null,c(a())},s)})}}function _S(t,r=!1,e="Timeout"){return new Promise((n,i)=>{setTimeout(r?()=>i(e):n,t)})}function GAe(t){let r;function e(){return r||(r=t()),r}return e.reset=async()=>{const n=r;r=void 0,n&&await n},e}function WAe(t){return is()}function ZAe(t,r,e={}){const{eventFilter:n=jAe,...i}=e;return et(t,FAe(n,r),i)}function KAe(t,r=!0,e){WAe()?gi(t,e):r?t():ln(t)}function g8(t,r=!1){function e(g,{flush:h="sync",deep:d=!1,timeout:f,throwOnTimeout:C}={}){let v=null;const A=[new Promise(I=>{v=et(t,p=>{g(p)!==r&&(v?v():ln(()=>v?.()),I(p))},{flush:h,deep:d,immediate:!0})})];return f!=null&&A.push(_S(f,C).then(()=>En(t)).finally(()=>v?.())),Promise.race(A)}function n(g,h){if(!nt(g))return e(p=>p===g,h);const{flush:d="sync",deep:f=!1,timeout:C,throwOnTimeout:v}=h??{};let A=null;const I=[new Promise(p=>{A=et([t,g],([m,w])=>{r!==(m===w)&&(A?A():ln(()=>A?.()),p(m))},{flush:d,deep:f,immediate:!0})})];return C!=null&&I.push(_S(C,v).then(()=>En(t)).finally(()=>(A?.(),En(t)))),Promise.race(I)}function i(g){return e(h=>!!h,g)}function o(g){return n(null,g)}function a(g){return n(void 0,g)}function s(g){return e(Number.isNaN,g)}function l(g,h){return e(d=>{const f=Array.from(d);return f.includes(g)||f.includes(En(g))},h)}function c(g){return u(1,g)}function u(g=1,h){let d=-1;return e(()=>(d+=1,d>=g),h)}return Array.isArray(En(t))?{toMatch:e,toContains:l,changed:c,changedTimes:u,get not(){return g8(t,!r)}}:{toMatch:e,toBe:n,toBeTruthy:i,toBeNull:o,toBeNaN:s,toBeUndefined:a,changed:c,changedTimes:u,get not(){return g8(t,!r)}}}function HU(t){return g8(t)}function YAe(t,r,e={}){const{immediate:n=!0}=e,i=G(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...c){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...c)},En(r))}return n&&(i.value=!0,Nb&&l()),Db(s),{isPending:M1(i),start:l,stop:s}}function XAe(t=!1,r={}){const{truthyValue:e=!0,falsyValue:n=!1}=r,i=nt(t),o=G(t);function a(s){if(arguments.length)return o.value=s,o.value;{const l=En(e);return o.value=o.value===l?En(n):l,o.value}}return i?a:[o,a]}function qAe(t,r,e={}){const{debounce:n=0,maxWait:i=void 0,...o}=e;return ZAe(t,r,{...o,eventFilter:UAe(n,{maxWait:i})})}function fl(t){var r;const e=En(t);return(r=e?.$el)!=null?r:e}const eI=Nb?window:void 0,xU=Nb?window.navigator:void 0;function Fs(...t){let r,e,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,i]=t,r=eI):[r,e,n,i]=t,!r)return kv;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,g,h,d)=>(u.addEventListener(g,h,d),()=>u.removeEventListener(g,h,d)),l=et(()=>[fl(r),En(i)],([u,g])=>{if(a(),!u)return;const h=BAe(g)?{...g}:g;o.push(...e.flatMap(d=>n.map(f=>s(u,d,f,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return Db(c),c}function QAe(){const t=G(!1),r=is();return r&&gi(()=>{t.value=!0},r),t}function Bb(t){const r=QAe();return U(()=>(r.value,!!t()))}function MS(t,r={}){const{controls:e=!1,navigator:n=xU}=r,i=Bb(()=>n&&"permissions"in n),o=Oi(),a=typeof t=="string"?{name:t}:t,s=Oi(),l=()=>{var u,g;s.value=(g=(u=o.value)==null?void 0:u.state)!=null?g:"prompt"};Fs(o,"change",l);const c=GAe(async()=>{if(i.value){if(!o.value)try{o.value=await n.permissions.query(a)}catch{o.value=void 0}finally{l()}if(e)return mt(o.value)}});return c(),e?{state:s,isSupported:i,query:c}:s}function JAe(t={}){const{navigator:r=xU,read:e=!1,source:n,copiedDuring:i=1500,legacy:o=!1}=t,a=Bb(()=>r&&"clipboard"in r),s=MS("clipboard-read"),l=MS("clipboard-write"),c=U(()=>a.value||o),u=G(""),g=G(!1),h=YAe(()=>g.value=!1,i);function d(){a.value&&A(s.value)?r.clipboard.readText().then(I=>{u.value=I}):u.value=v()}c.value&&e&&Fs(["copy","cut"],d);async function f(I=En(n)){c.value&&I!=null&&(a.value&&A(l.value)?await r.clipboard.writeText(I):C(I),u.value=I,g.value=!0,h.start())}function C(I){const p=document.createElement("textarea");p.value=I??"",p.style.position="absolute",p.style.opacity="0",document.body.appendChild(p),p.select(),document.execCommand("copy"),p.remove()}function v(){var I,p,m;return(m=(p=(I=document?.getSelection)==null?void 0:I.call(document))==null?void 0:p.toString())!=null?m:""}function A(I){return I==="granted"||I==="prompt"}return{isSupported:c,text:u,copied:g,copy:f}}function eIe(t){return JSON.parse(JSON.stringify(t))}function tIe(t,r,e={}){const{window:n=eI,...i}=e;let o;const a=Bb(()=>n&&"ResizeObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=U(()=>{const g=En(t);return Array.isArray(g)?g.map(h=>fl(h)):[fl(g)]}),c=et(l,g=>{if(s(),a.value&&n){o=new ResizeObserver(r);for(const h of g)h&&o.observe(h,i)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return Db(u),{isSupported:a,stop:u}}function rIe(t,r={width:0,height:0},e={}){const{window:n=eI,box:i="content-box"}=e,o=U(()=>{var g,h;return(h=(g=fl(t))==null?void 0:g.namespaceURI)==null?void 0:h.includes("svg")}),a=G(r.width),s=G(r.height),{stop:l}=tIe(t,([g])=>{const h=i==="border-box"?g.borderBoxSize:i==="content-box"?g.contentBoxSize:g.devicePixelContentBoxSize;if(n&&o.value){const d=fl(t);if(d){const f=d.getBoundingClientRect();a.value=f.width,s.value=f.height}}else if(h){const d=Array.isArray(h)?h:[h];a.value=d.reduce((f,{inlineSize:C})=>f+C,0),s.value=d.reduce((f,{blockSize:C})=>f+C,0)}else a.value=g.contentRect.width,s.value=g.contentRect.height},e);KAe(()=>{const g=fl(t);g&&(a.value="offsetWidth"in g?g.offsetWidth:r.width,s.value="offsetHeight"in g?g.offsetHeight:r.height)});const c=et(()=>fl(t),g=>{a.value=g?r.width:0,s.value=g?r.height:0});function u(){l(),c()}return{width:a,height:s,stop:u}}const nIe={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function iIe(t={}){const{reactive:r=!1,target:e=eI,aliasMap:n=nIe,passive:i=!0,onEventFired:o=kv}=t,a=ca(new Set),s={toJSON(){return{}},current:a},l=r?ca(s):s,c=new Set,u=new Set;function g(C,v){C in l&&(r?l[C]=v:l[C].value=v)}function h(){a.clear();for(const C of u)g(C,!1)}function d(C,v){var A,I;const p=(A=C.key)==null?void 0:A.toLowerCase(),m=[(I=C.code)==null?void 0:I.toLowerCase(),p].filter(Boolean);p&&(v?a.add(p):a.delete(p));for(const w of m)u.add(w),g(w,v);p==="meta"&&!v?(c.forEach(w=>{a.delete(w),g(w,!1)}),c.clear()):typeof C.getModifierState=="function"&&C.getModifierState("Meta")&&v&&[...a,...m].forEach(w=>c.add(w))}Fs(e,"keydown",C=>(d(C,!0),o(C)),{passive:i}),Fs(e,"keyup",C=>(d(C,!1),o(C)),{passive:i}),Fs("blur",h,{passive:!0}),Fs("focus",h,{passive:!0});const f=new Proxy(l,{get(C,v,A){if(typeof v!="string")return Reflect.get(C,v,A);if(v=v.toLowerCase(),v in n&&(v=n[v]),!(v in l))if(/[+_-]/.test(v)){const p=v.split(/[+_-]/g).map(m=>m.trim());l[v]=U(()=>p.every(m=>En(f[m])))}else l[v]=G(!1);const I=Reflect.get(C,v,A);return r?En(I):I}});return f}function oIe(t,r,e,n={}){var i,o,a;const{clone:s=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:g,shouldEmit:h}=n,d=is(),f=e||d?.emit||((i=d?.$emit)==null?void 0:i.bind(d))||((a=(o=d?.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(d?.proxy));let C=c;C=C||`update:${r.toString()}`;const v=p=>s?typeof s=="function"?s(p):eIe(p):p,A=()=>DAe(t[r])?v(t[r]):g,I=p=>{h?h(p)&&f(C,p):f(C,p)};if(l){const p=A(),m=G(p);let w=!1;return et(()=>t[r],_=>{w||(w=!0,m.value=v(_),ln(()=>w=!1))}),et(m,_=>{!w&&(_!==t[r]||u)&&I(_)},{deep:u}),m}else return U({get(){return A()},set(p){I(p)}})}const VU=Symbol("StateEditorSymbol");function aIe(t){const r=G(t);return Li(VU,r),{context:r}}function Fb(){return mr(VU)}function sIe(){const t=G(""),r=G("string"),e=G(!1),n=Fb();return{editingText:t,editing:e,toggleEditing(i){i&&(r.value=i),e.value=!e.value},editingType:r,nodeId:U(()=>n.value.nodeId)}}function lIe(t,r){if(t==="array")return r.length;const e="newProp";let n=1;for(;;){const i=`${e}${n}`;if(!r[i])return i;n++}}function cIe(){const t=G({enable:!1,key:"",value:"undefined"});function r(n,i){const o=lIe(n,i);t.value={enable:!0,key:o.toString(),value:"undefined"}}function e(){t.value={enable:!1,key:"",value:"undefined"}}return{addNewProp:r,resetDrafting:e,draftingNewProp:t}}const uIe={class:"flex pl5px"},gIe={class:"w160px py5px"},hIe=ge({__name:"StateFieldEditor",props:{data:{},hovering:{type:Boolean},depth:{},showAddIfNeeded:{type:Boolean,default:!0},disableEdit:{type:Boolean}},emits:["enableEditInput","addNewProp"],setup(t){const r=t,e=Fb(),{copy:n,isSupported:i}=JAe(),o=G(!1),a=U(()=>ib(r.data.value)),s=U(()=>a.value.value),l=U(()=>a.value.customType),c=U(()=>s.value===null?"null":typeof s.value),u={flat:!0,size:"mini"},g=U(()=>({"opacity-0":!r.hovering}));async function h(f,C=!1){await Ae.value.editInspectorState({path:r.data.path||[r.data.key],inspectorId:e.value.inspectorId,type:r.data.stateType,nodeId:e.value.nodeId,state:{newKey:null,value:mt(f),type:c.value,remove:C}}),await Ae.value.sendInspectorState(e.value.inspectorId)}function d(f,C){const v=typeof f=="number"?f+C:BigInt(f)+BigInt(C);h(v)}return(f,C)=>(M(),x("div",uIe,[!r.disableEdit&&f.data.editable?(M(),x(Se,{key:0},[c.value==="string"||c.value==="number"||c.value==="object"||c.value==="null"?(M(),x(Se,{key:0},[Vt((M(),ie(y(ct),Gr(u,{class:g.value,onClick:C[0]||(C[0]=ni(v=>f.$emit("enableEditInput",c.value),["stop"]))}),{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-edit-rounded"})]),_:1},16,["class"])),[[y(pr),{content:"Edit value"}]]),c.value==="object"&&f.showAddIfNeeded?Vt((M(),ie(y(ct),Gr({key:0},u,{class:g.value,onClick:C[1]||(C[1]=ni(v=>f.$emit("addNewProp",Array.isArray(s.value)?"array":"object"),["stop"]))}),{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-add-circle-rounded"})]),_:1},16,["class"])),[[y(pr),{content:"Add new value"}]]):se("",!0)],64)):se("",!0),c.value==="boolean"?(M(),ie(y(ct),Gr({key:1},u,{class:g.value,onClick:C[2]||(C[2]=v=>h(!s.value))}),{icon:W(()=>[N(y(Ft),{icon:s.value?"i-material-symbols-check-box-sharp":"i-material-symbols-check-box-outline-blank-sharp"},null,8,["icon"])]),_:1},16,["class"])):c.value==="number"||l.value==="bigint"?(M(),x(Se,{key:2},[N(y(ct),Gr(u,{class:g.value,onClick:C[3]||(C[3]=ni(v=>d(s.value,1),["stop"]))}),{icon:W(()=>[N(y(Ft),{icon:"i-carbon-add"})]),_:1},16,["class"]),N(y(ct),Gr(u,{class:g.value,onClick:C[4]||(C[4]=ni(v=>d(s.value,-1),["stop"]))}),{icon:W(()=>[N(y(Ft),{icon:"i-carbon-subtract"})]),_:1},16,["class"])],64)):se("",!0)],64)):se("",!0),!r.disableEdit&&f.depth>0&&f.data.editable?(M(),ie(y(ct),Gr({key:1},u,{class:g.value,onClick:C[5]||(C[5]=ni(v=>h(s.value,!0),["stop"]))}),{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-delete-rounded"})]),_:1},16,["class"])):se("",!0),N(y(tu),{class:Te({"opacity-0":!f.hovering&&!o.value}),"button-props":{flat:!0,size:"mini"},disabled:!y(i),"onUpdate:visible":C[8]||(C[8]=v=>o.value=v)},{popper:W(()=>[b("div",gIe,[N(y(WE),{onClick:C[6]||(C[6]=v=>y(n)(typeof s.value=="object"?JSON.stringify(s.value):s.value.toString()))},{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),ze(" Copy Value ")]),_:1}),N(y(WE),{onClick:C[7]||(C[7]=()=>{y(n)(f.data.key)})},{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),ze(" Copy Path ")]),_:1})])]),"button-icon":W(()=>[N(y(Ft),{icon:"i-material-symbols:more-vert"})]),_:1},8,["class","disabled"])]))}}),dIe={class:"flex-inline items-center gap4px"},Ip=ge({__name:"StateFieldInputEditor",props:{modelValue:{},customType:{},showActions:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0}},emits:["cancel","submit","update:modelValue"],setup(t,{emit:r}){const e=t,n=r,i=U(()=>e.customType==="date"?"datetime-local":""),{escape:o,enter:a}=iIe();wn(()=>{o.value?n("cancel"):a.value&&n("submit")});const s=oIe(e,"modelValue",n);function l(u){try{return d5(u,e.customType),!0}catch{return!1}}const c=G(!1);return et(s,Dl(()=>{c.value=!l(s.value)},300)),(u,g)=>(M(),x("span",dIe,[N(y(Za),{modelValue:y(s),"onUpdate:modelValue":g[0]||(g[0]=h=>nt(s)?s.value=h:null),type:i.value,variant:c.value?"warning":"normal",class:Te(["h25px px4px",u.customType==="date"?"w240px":"w120px"]),"auto-focus":u.autoFocus,onClick:g[1]||(g[1]=ni(()=>{},["stop"]))},null,8,["modelValue","type","variant","class","auto-focus"]),u.showActions?(M(),x(Se,{key:0},[Vt((M(),ie(y(ct),{size:"mini",flat:"",class:"p2px!",onClick:g[2]||(g[2]=ni(h=>u.$emit("cancel"),["stop"]))},{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-cancel"})]),_:1})),[[y(pr),{content:"Esc to cancel"}]]),c.value?Vt((M(),ie(y(Ft),{key:1,icon:"i-material-symbols-warning",class:"color-warning-500 dark:color-warning-300"},null,512)),[[y(pr),{content:"Invalid value"}]]):Vt((M(),ie(y(ct),{key:0,size:"mini",flat:"",class:"p2px!",onClick:g[3]||(g[3]=ni(h=>u.$emit("submit"),["stop"]))},{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-save"})]),_:1})),[[y(pr),{content:"Enter to submit change"}]])],64)):se("",!0)]))}}),jb=ge({__name:"ToggleExpanded",props:{value:{type:Boolean}},setup(t){return(r,e)=>(M(),x("i",{class:Te(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base",{"transform rotate-90":r.value}])},null,2))}}),PU="expanded-state";function Ya(t=""){const r=G([]);return Li(`${PU}-${t}`,r),{expanded:r}}function Ub(t=""){const r=mr(`${PU}-${t}`,G([]));function e(n){const i=r.value.indexOf(n);i===-1?r.value.push(n):r.value.splice(i,1)}return{expanded:r,toggleExpanded:e}}function fIe(t,r={}){const{enter:e=()=>{},leave:n=()=>{},initial:i=!1}=r,o=G(i);return Fs(t,"mouseenter",()=>{o.value=!0,e()}),Fs(t,"mouseleave",()=>{o.value=!1,n()}),{isHovering:o}}const RU=t=>(Tu("data-v-e1338684"),t=t(),Lu(),t),CIe={key:1,pl5:""},vIe={op70:"",class:"whitespace-nowrap"},AIe=RU(()=>b("span",{mx1:""},":",-1)),IIe=["innerHTML"],pIe={key:0},mIe={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},yIe=RU(()=>b("span",{"mx-1":""},":",-1)),zS=30,bIe=ge({__name:"StateFieldViewer",props:{data:{},depth:{},index:{},expandedStateId:{}},setup(t){const r=t,e=G(zS),n=U(()=>hF(r.data.value,!1,{customClass:{string:"max-w-120 truncate"}})),i=U(()=>Yh(r.data.value)),o=U(()=>ib(r.data.value)),{expanded:a,toggleExpanded:s}=Ub(r.expandedStateId??""),l=U(()=>{var P;return i.value==="custom"?`${((P=r.data.value._custom)==null?void 0:P.type)??"string"}-custom-state`:""}),c=U(()=>{const{value:P}=o.value;return H_(P)?P.length:O_(P)?Object.keys(P).length:0}),u=U(()=>r.data.path||[r.data.key]),g=U(()=>u.value[u.value.length-1]),h=U(()=>{var P,B,te,ee,re,_e,xe;const rt=["Reactive"],De=((B=(P=r.data)==null?void 0:P._custom)==null?void 0:B.stateTypeName)||((te=r.data)==null?void 0:te.stateTypeName);if(rt.includes(De))return De;if((re=(ee=r.data.value)==null?void 0:ee.fields)!=null&&re.abstract)return"";{const be=(xe=(_e=r.data.value)==null?void 0:_e._custom)==null?void 0:xe.type,Ne=i.value==="custom"&&!be?`"${n.value}"`:n.value===""?'""':n.value,Ue=i.value==="custom"&&be==="ref"?Yh(Ne):i.value,ot=i.value==="string"?"select-text":"",ft=`<span class="${Ue}-state-type flex whitespace-nowrap ${ot}">${Ne}</span>`;return De?`${ft} <span class="text-gray-500">(${De})</span>`:ft}}),d=U(()=>{const{value:P,inherit:B,customType:te}=o.value,ee=te==="set";let re=[];return H_(P)?P.slice(0,e.value).map((_e,xe)=>({key:xe.toString(),path:[...u.value,xe.toString()],value:_e,...B,editable:r.data.editable&&!ee,creating:!1})):(O_(P)&&(re=Object.keys(P).slice(0,e.value).map(_e=>({key:_e,path:[...u.value,_e],value:P[_e],...B,editable:r.data.editable&&!ee,creating:!1})),i.value!=="custom"&&(re=JD(re))),re===r.data.value?[]:re)}),f=U(()=>d.value.length>0),C=G(),v=Fb(),{isHovering:A}=fIe(()=>C.value),{editingType:I,editing:p,editingText:m,toggleEditing:w,nodeId:_}=sIe();et(()=>p.value,P=>{if(P){const{value:B}=o.value;m.value=ple(B,o.value.customType)}else m.value=""});async function k(){const P=r.data;await Ae.value.editInspectorState({path:u.value,inspectorId:v.value.inspectorId,type:P.stateType,nodeId:_.value,state:{newKey:null,type:I.value,value:d5(m.value,o.value.customType)}}),await Ae.value.sendInspectorState(v.value.inspectorId),w()}const{addNewProp:S,draftingNewProp:E,resetDrafting:T}=cIe();function L(P){const B=`${r.depth}-${r.index}`;a.value.includes(B)||s(B),S(P,o.value.value)}async function O(){const P=r.data;await Ae.value.editInspectorState({path:[...u.value,E.value.key],inspectorId:v.value.inspectorId,type:P.stateType,nodeId:_.value,state:{newKey:E.value.key,type:typeof d5(E.value.value),value:d5(E.value.value)}}),await Ae.value.sendInspectorState(v.value.inspectorId),T()}return(P,B)=>(M(),x("div",null,[b("div",{ref_key:"containerRef",ref:C,class:Te(["font-state-field flex items-center text-3.5",[f.value&&"cursor-pointer hover:bg-active"]]),style:Sr({paddingLeft:`${P.depth*15+4}px`}),onClick:B[1]||(B[1]=te=>y(s)(`${P.depth}-${P.index}`))},[f.value?(M(),ie(jb,{key:0,value:y(a).includes(`${P.depth}-${P.index}`)},null,8,["value"])):(M(),x("span",CIe)),b("span",vIe,Ee(g.value),1),AIe,y(p)?(M(),ie(Ip,{key:2,modelValue:y(m),"onUpdate:modelValue":B[0]||(B[0]=te=>nt(m)?m.value=te:null),class:"mr-1","custom-type":o.value.customType,onCancel:y(w),onSubmit:k},null,8,["modelValue","custom-type","onCancel"])):se("",!0),b("span",{class:Te([l.value,"flex whitespace-nowrap"])},[b("span",{class:"flex",innerHTML:h.value},null,8,IIe)],2),N(hIe,{hovering:y(A),"disable-edit":y(v).disableEdit||y(p),data:P.data,depth:P.depth,onEnableEditInput:y(w),onAddNewProp:L},null,8,["hovering","disable-edit","data","depth","onEnableEditInput"])],6),f.value&&y(a).includes(`${P.depth}-${P.index}`)?(M(),x("div",pIe,[N(DU,{data:d.value,depth:P.depth,index:P.index},null,8,["data","depth","index"]),c.value>e.value?Vt((M(),ie(y(ct),{key:0,flat:"",size:"mini",class:"ml-4",onClick:B[2]||(B[2]=te=>e.value+=zS)},{icon:W(()=>[N(y(Ft),{icon:"i-material-symbols-more-horiz"})]),_:1})),[[y(pr),"Show more"]]):se("",!0),y(E).enable?(M(),x("div",{key:1,style:Sr({paddingLeft:`${(P.depth+1)*15+4}px`})},[b("span",mIe,[N(Ip,{modelValue:y(E).key,"onUpdate:modelValue":B[3]||(B[3]=te=>y(E).key=te),"show-actions":!1},null,8,["modelValue"])]),yIe,N(Ip,{modelValue:y(E).value,"onUpdate:modelValue":B[4]||(B[4]=te=>y(E).value=te),"auto-focus":!1,onCancel:y(T),onSubmit:O},null,8,["modelValue","onCancel"])],4)):se("",!0)])):se("",!0)]))}}),wIe=fc(bIe,[["__scopeId","data-v-e1338684"]]),DU=ge({__name:"ChildStateViewer",props:{data:{},depth:{default:0},index:{},expandedStateId:{default:""}},setup(t){return(r,e)=>(M(),x("div",null,[(M(!0),x(Se,null,It(r.data,(n,i)=>(M(),x("div",{key:i},[N(wIe,{data:n,depth:r.depth+1,index:`${r.index}-${i}`,"expanded-state-id":r.expandedStateId},null,8,["data","depth","index","expanded-state-id"])]))),128))]))}}),$Ie=["onClick"],_Ie={key:1,pl5:""},MIe={"font-state-field":"","text-3.5":""},zIe={key:0},rf=ge({__name:"RootStateViewer",props:{data:{},nodeId:{},inspectorId:{},disableEdit:{type:Boolean,default:!1},expandedStateId:{default:""}},setup(t){const r=t;function e(){return{nodeId:r.nodeId,inspectorId:r.inspectorId,disableEdit:r.disableEdit}}const{context:n}=aIe(e());wn(()=>{n.value=e()});const{expanded:i,toggleExpanded:o}=Ub(r.expandedStateId);return(a,s)=>(M(),x("div",null,[(M(!0),x(Se,null,It(a.data,(l,c,u)=>(M(),x("div",{key:u},[b("div",{class:Te(["flex items-center",[l?.length&&"cursor-pointer hover:bg-active"]]),onClick:g=>y(o)(`${u}`)},[l!=null&&l.length?(M(),ie(jb,{key:0,value:y(i).includes(`${u}`)},null,8,["value"])):(M(),x("span",_Ie)),b("span",MIe,Ee(c),1)],10,$Ie),l!=null&&l.length&&y(i).includes(`${u}`)?(M(),x("div",zIe,[N(DU,{data:l,index:`${u}`,"expanded-state-id":a.expandedStateId},null,8,["data","index","expanded-state-id"])])):se("",!0)]))),128))]))}});function EIe(t,r){const e=new Date(t);return`${e.toString().match(/\d\d:\d\d:\d\d/)[0]}${r==="ms"?`.${String(e.getMilliseconds()).padStart(3,"0")}`:""}`}function SIe(t,r){const e=new Map,n=BU(t,r.toLowerCase(),e,0);return e.clear(),n}const NU=10;function BU(t,r,e,n){if(n>NU)return!1;let i=!1;const o=Object.keys(t);let a,s;for(let l=0;l<o.length&&(a=o[l],s=t[a],i=FU(r,a,s,e,n+1),!i);l++);return i}function FU(t,r,e,n,i){let o=!1,a;return r==="_custom"&&(r=e.display,e=e.value),(a=TIe(e))&&(e=a),r&&ES(r,t)?(o=!0,n.set(e,!0)):n.has(e)?o=n.get(e):Array.isArray(e)?(n.set(e,null),o=LIe(e,t,n,i),n.set(e,o)):VA(e)?(n.set(e,null),o=BU(e,t,n,i),n.set(e,o)):ES(e,t)&&(o=!0,n.set(e,!0)),o}function ES(t,r){return`${t}`.toLowerCase().includes(r)}function TIe(t){return t===null?"null":t===Wd?"undefined":t===Yd?"NaN":t===Zd?"Infinity":t===Kd?"-Infinity":!1}function LIe(t,r,e,n){if(n>NU)return!1;let i=!1,o;for(let a=0;a<t.length&&(o=t[a],i=FU(r,null,o,e,n+1),!i);a++);return i}function SS(t){return t.toString(16).padStart(6,"0")}const jU=ge({__name:"NodeTag",props:{tag:{}},setup(t){return(r,e)=>Vt((M(),x("span",{style:Sr({color:`#${y(SS)(r.tag.textColor)}`,backgroundColor:`#${y(SS)(r.tag.backgroundColor)}`}),class:"ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"},[ze(Ee(r.tag.label),1)],4)),[[y(pr),{content:r.tag.tooltip,html:!0}]])}}),UU=Symbol("SelectedSymbolKey");function kIe(){const t=G("");return Li(UU,t),{selected:t}}function OIe(){const t=mr(UU,G(""));function r(e){t.value=e}return{selected:t,select:r}}const HIe=["onClick","onDblclick"],xIe={key:1,pl5:""},VIe={"font-state-field":"","text-3.5":""},PIe={key:0,class:"text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"},RIe={"group-hover:text-white":"",class:"ws-nowrap [.active_&]:text-white"},DIe={key:1,class:"text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"},NIe={key:0},nf=ge({__name:"TreeViewer",props:rv({data:{},depth:{default:0},withTag:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=Zy(t,"modelValue"),{expanded:e,toggleExpanded:n}=Ub();OIe();function i(a){return"name"in a&&a?.name||"label"in a&&a.label}function o(a){r.value=a}return(a,s)=>(M(!0),x(Se,null,It(a.data,(l,c)=>{var u,g;return M(),x("div",{key:c,class:Te({"min-w-max":a.depth===0})},[b("div",{class:Te(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600",{"bg-primary-600! active":r.value===l.id}]),style:Sr({paddingLeft:`${15*a.depth+4}px`}),onClick:h=>o(l.id),onDblclick:h=>y(n)(l.id)},[(u=l?.children)!=null&&u.length?(M(),ie(jb,{key:0,value:y(e).includes(l.id),class:"[.active_&]:op20 group-hover:op20",onClick:ni(h=>y(n)(l.id),["stop"])},null,8,["value","onClick"])):(M(),x("span",xIe)),b("span",VIe,[a.withTag?(M(),x("span",PIe,"<")):se("",!0),b("span",RIe,Ee(i(l)),1),a.withTag?(M(),x("span",DIe,">")):se("",!0)]),(M(!0),x(Se,null,It(l.tags,(h,d)=>(M(),ie(jU,{key:d,tag:h},null,8,["tag"]))),128))],46,HIe),(g=l?.children)!=null&&g.length&&y(e).includes(l.id)?(M(),x("div",NIe,[N(nf,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=h=>r.value=h),data:l?.children,depth:a.depth+1,"with-tag":a.withTag},null,8,["modelValue","data","depth","with-tag"])])):se("",!0)],2)}),128))}}),BIe={class:"h-full flex flex-col"},FIe={class:"h-full flex flex-col p2"},jIe={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},UIe={class:"flex items-center gap-2 px-1"},GIe=["onClick"],WIe={class:"no-scrollbar flex-1 select-none overflow-scroll"},ZIe={class:"h-full flex flex-col p2"},KIe={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},YIe={class:"flex items-center gap-2 px-1"},XIe=["onClick"],_a="pinia",qIe=ge({__name:"Index",setup(t){const{expanded:r}=Ya(),{expanded:e}=Ya("pinia-store-state"),n=G([]),i=G([]),o=G(""),a=G([]),s=U(()=>{var S,E;return(S=a.value)!=null&&S.length?h((E=a.value)==null?void 0:E[0]):[]}),l=U(()=>f(a.value)),c=U(()=>l.value.map(S=>S.id)),u=G({}),g=U(()=>{var S,E;return!((S=u.value.state)!=null&&S.length)&&!((E=u.value.getters)!=null&&E.length)});function h(S,E=[],T=[]){var L;return E.push(S.id),((L=S.children)==null?void 0:L.length)===0&&T.push([...E]),Array.isArray(S.children)&&S.children.forEach(O=>{h(O,E,T)}),E.pop(),T}function d(S,E){const T=[];return S?.forEach(L=>{T.push(...L.slice(0,E+1))}),[...new Set(T)]}function f(S){const E=[],T=L=>{L?.forEach(O=>{var P;E.push(O),(P=O.children)!=null&&P.length&&T(O.children)})};return T(S),E}function C(){Ae.value.getInspectorNodeActions(_a).then(S=>{n.value=S})}function v(){Ae.value.getInspectorActions(_a).then(S=>{i.value=S})}C(),v();function A(S){Ae.value.callInspectorNodeAction(_a,S,o.value)}function I(S){Ae.value.callInspectorAction(_a,S)}function p(S){var E;for(const T in S)(E=S[T])!=null&&E.length||delete S[T];return S}function m(S){Ae.value.getInspectorState({inspectorId:_a,nodeId:S}).then(E=>{const T=Zr(E);T&&(u.value=p(T),e.value=Array.from({length:Object.keys(u.value).length},(L,O)=>`${O}`))})}function w(){u.value={}}et(o,()=>{w(),m(o.value)}),Ae.value.getInspectorTree({inspectorId:_a,filter:""}).then(S=>{const E=Zr(S);a.value=E,!o.value&&E.length&&(o.value=E[0].id,m(E[0].id),r.value=d(s.value,1))});function _(S){const E=Zr(S);E.inspectorId!==_a||!E.rootNodes.length||(a.value=E.rootNodes,c.value.includes(o.value)||(o.value=E.rootNodes[0].id,r.value=d(s.value,1),m(E.rootNodes[0].id)))}function k(S){const E=Zr(S);if(E.inspectorId!==_a)return;const T=E.state;u.value=p({state:T.state,getters:T.getters})}return Ae.functions.on(Dt.INSPECTOR_TREE_UPDATED,_),Ae.functions.on(Dt.INSPECTOR_STATE_UPDATED,k),cn(()=>{Ae.functions.off(Dt.INSPECTOR_TREE_UPDATED,_),Ae.functions.off(Dt.INSPECTOR_STATE_UPDATED,k)}),(S,E)=>(M(),x("div",BIe,[N(Pu,{"doc-link":"https://pinia.vuejs.org/","github-repo-link":"https://github.com/vuejs/pinia"},{default:W(()=>[N(Vu)]),_:1}),N(y(gc),{class:"flex-1 overflow-auto"},{default:W(()=>[N(y(Pn),{border:"r base",size:"40","h-full":""},{default:W(()=>{var T;return[b("div",FIe,[(T=i.value)!=null&&T.length?(M(),x("div",jIe,[b("div",UIe,[(M(!0),x(Se,null,It(i.value,(L,O)=>Vt((M(),x("div",{key:O,class:"flex items-center gap1",onClick:P=>I(O)},[b("i",{class:Te(`i-ic-baseline-${L.icon.replace(/\_/g,"-")}`),"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,2)],8,GIe)),[[y(pr),{content:L.tooltip},void 0,{"bottom-end":!0}]])),128))])])):se("",!0),b("div",WIe,[N(nf,{modelValue:o.value,"onUpdate:modelValue":E[0]||(E[0]=L=>o.value=L),data:a.value},null,8,["modelValue","data"])])])]}),_:1}),N(y(Pn),{size:"60"},{default:W(()=>{var T;return[b("div",ZIe,[(T=n.value)!=null&&T.length?(M(),x("div",KIe,[b("div",YIe,[(M(!0),x(Se,null,It(n.value,(L,O)=>Vt((M(),x("div",{key:O,class:"flex items-center gap1",onClick:P=>A(O)},[b("i",{class:Te(`i-ic-baseline-${L.icon.replace(/\_/g,"-")}`),"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,2)],8,XIe)),[[y(pr),{content:L.tooltip},void 0,{"bottom-end":!0}]])),128))])])):se("",!0),o.value&&!g.value?(M(),ie(rf,{key:1,class:"no-scrollbar flex-1 select-none overflow-scroll",data:u.value,"node-id":o.value,"inspector-id":_a,"expanded-state-id":"pinia-store-state"},null,8,["data","node-id"])):(M(),ie(ud,{key:2},{default:W(()=>[ze(" No Data ")]),_:1}))])]}),_:1})]),_:1})]))}}),QIe={class:"p3"},JIe=["onClick"],e4e={key:0,class:"absolute left-5px top-4.5 h10 w0 border-l-2",border:"solid gray2"},t4e={class:"h-full flex items-center truncate pl5"},r4e={absolute:"","top-5":"",pr2:"","text-3":"",op40:""},n4e={pl2:"",op30:""},i4e=ge({__name:"EventList",props:rv({data:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,e=Zy(t,"modelValue"),n=["#3e5770","#42b983","#0098c4"],i=G(null),o=U(()=>{let a=-1,s=0;return r.data.forEach((l,c)=>{(l.groupId!==s||a===-1)&&(a=(a+1)%n.length),s=l.groupId??s,l.id=c,l.color=n[a]}),r.data});return et(()=>o.value.length,a=>{var s;(s=i.value)==null||s.scrollToItem(a-1)},{flush:"post"}),(a,s)=>(M(),x("div",QIe,[N(y(Eb),{ref_key:"scrollerRef",ref:i,items:o.value,"min-item-size":52,"key-field":"id","page-mode":"","item-tag":"li","list-tag":"ul",buffer:20},{default:W(({item:l})=>[b("div",{class:"relative mb7 h6 cursor-pointer",style:Sr({color:e.value===l.id?l.color:""}),onClick:c=>e.value=l.id},[b("span",{class:"absolute top-1.5 inline-block h3 w3 b rounded-50%",style:Sr({border:`3px solid ${l.color}`})},null,4),l.id<a.data.length-1?(M(),x("span",e4e)):se("",!0),b("p",t4e,[b("span",r4e,"["+Ee(y(EIe)(l.time))+"]",1),ze(" "+Ee(l.title)+" ",1),b("span",n4e,Ee(l.subtitle),1)])],12,JIe)]),_:1},8,["items"])]))}}),o4e={class:"h-full flex flex-col"},a4e={key:0,class:"flex-1 overflow-hidden"},s4e={"h-full":"","select-none":"","overflow-scroll":"",class:"no-scrollbar"},l4e={"h-full":"","select-none":"","overflow-scroll":"",class:"no-scrollbar"},Gb=ge({__name:"index",props:{layerIds:{},docLink:{},githubRepoLink:{}},setup(t){const r=t,{expanded:e}=Ya("timeline-state");e.value=["0","1"];const n=G([]),i=G(new Map),o=G(0),a=U(()=>n.value[o.value]??null),s=U(()=>{var h;const d=[];for(const f in(h=a.value)==null?void 0:h.data)d.push({key:f,type:f,editable:!1,value:a.value.data[f]});return d}),l=U(()=>{var h,d,f;const C=(h=a.value)==null?void 0:h.groupId,v=i.value.get(C);if(v){const A=((d=v[v.length-1])==null?void 0:d.time)-(((f=v[0])==null?void 0:f.time)??0);return[{key:"events",type:"events",editable:!1,value:v.length},A&&{key:"duration",type:"duration",editable:!1,value:`${A}ms`}].filter(Boolean)}}),c=U(()=>({"Event Info":s.value,...l.value&&{"Group Info":l.value}}));function u(h){var d;const f=h.groupId;f!==void 0&&(i.value.set(f,i.value.get(f)??[]),(d=i.value.get(f))==null||d.push(h))}function g(h){const d=Zr(h);if(!d)return;const{layerId:f,event:C}=d;r.layerIds.includes(f)&&(n.value.push(C),u(C))}return Ae.functions.on(Dt.TIMELINE_EVENT_UPDATED,g),cn(()=>{Ae.functions.off(Dt.TIMELINE_EVENT_UPDATED,g)}),(h,d)=>(M(),x("div",o4e,[N(Pu,{"doc-link":h.docLink,"github-repo-link":h.githubRepoLink},{default:W(()=>[N(Vu)]),_:1},8,["doc-link","github-repo-link"]),n.value.length?(M(),x("div",a4e,[N(y(gc),{class:"h-full"},{default:W(()=>[N(y(Pn),{border:"r base",size:"40","h-full":""},{default:W(()=>[b("div",s4e,[N(i4e,{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),data:n.value},null,8,["modelValue","data"])])]),_:1}),N(y(Pn),{size:"60"},{default:W(()=>[b("div",l4e,[N(rf,{class:"p3",data:c.value,"node-id":"","inspector-id":"","disable-edit":!0,"expanded-state-id":"timeline-state"},null,8,["data"])])]),_:1})]),_:1})])):(M(),ie(ud,{key:1,class:"flex-1"},{default:W(()=>[ze(" No events ")]),_:1}))]))}}),c4e=ge({__name:"Index",setup(t){const r=["pinia:mutations"];return(e,n)=>(M(),ie(Gb,{"layer-ids":r,"doc-link":"https://pinia.vuejs.org/","github-repo-link":"https://github.com/vuejs/pinia"}))}}),u4e={class:"flex-1 overflow-y-auto p2"},g4e={class:"max-w-[190px] flex-1 select-none py-1.5 text-sm"},h4e={class:"w-4/5"},d4e={key:0,class:"flex justify-start"},f4e={key:1},GU=ge({__name:"Settings",props:{pluginId:{},options:{},values:{}},emits:["update"],setup(t,{emit:r}){const e=t,n=r,i=U(()=>e.options),o=U(()=>e.values);function a(s,l){Ae.value.updatePluginSettings(e.pluginId,s,l),Ae.value.getPluginSettings(e.pluginId).then(c=>{n("update",c)})}return(s,l)=>(M(),x("div",u4e,[b("ul",null,[(M(!0),x(Se,null,It(i.value,(c,u)=>(M(),x("li",{key:u,class:"flex items-center py-2"},[b("div",g4e,Ee(c.label),1),b("div",h4e,[c.type==="boolean"?(M(),x("div",d4e,[N(y(K6),{"model-value":o.value[u],class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","onUpdate:modelValue"])])):c.type==="choice"?(M(),x("div",f4e,[N(y(sd),{"model-value":o.value[u],options:c.options,"onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","options","onUpdate:modelValue"])])):c.type==="text"?(M(),ie(y(Za),{key:2,"model-value":o.value[u],"onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","onUpdate:modelValue"])):se("",!0)])]))),128))])]))}}),C4e={class:"h-full flex flex-col"},v4e="pinia",A4e=ge({__name:"Settings",setup(t){const r=mr("pluginSettings"),e=U(()=>r.value.options),n=U(()=>r.value.values);function i(o){r.value=o}return(o,a)=>(M(),x("div",C4e,[N(Pu,{"doc-link":"https://pinia.vuejs.org/","github-repo-link":"https://github.com/vuejs/pinia"},{default:W(()=>[N(Vu)]),_:1}),N(GU,{"plugin-id":v4e,options:e.value,values:n.value,onUpdate:i},null,8,["options","values"])]))}}),I4e={"h-full":"","w-full":""},p4e=ge({__name:"index",setup(t){const r=G(null);Li("pluginSettings",r);const e=U(()=>[{path:"/store",name:"Store",component:qIe,icon:"i-carbon-tree-view-alt"},{path:"/timeline",name:"Timeline",component:c4e,icon:"i-mdi:timeline-clock-outline"},{path:"/",name:"About",component:_Ae,icon:"i-logos-pinia"},r.value&&{path:"/settings",name:"Settings",component:A4e,icon:"i-mdi:cog-outline"}].filter(Boolean)),{VirtualRouterView:n,restoreRouter:i}=Rb(e,{defaultRoutePath:"/store"});return ka(()=>{Ae.value.getPluginSettings("pinia").then(o=>{o.options?r.value=o:r.value=null})}),(o,a)=>(M(),x("div",I4e,[N(y(n))]))}}),m4e={class:"absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]"},y4e=b("span",{class:"font-500"},"Render Code",-1),b4e={class:"flex-1 overflow-scroll text-3.5"},w4e=ge({__name:"RenderCode",props:{code:{}},emits:["close"],setup(t,{emit:r}){const e=r;function n(){e("close")}return(i,o)=>(M(),x("div",m4e,[b("div",{class:"h-12 w-full flex items-center justify-between p-2"},[y4e,b("i",{class:"i-carbon-close cursor-pointer hover:op80",onClick:n})]),b("div",b4e,[N(y(Mb),{code:i.code,lang:"javascript"},null,8,["code"])])]))}}),$4e={class:"p2"},_4e=["onClick"],M4e=ge({__name:"SelectiveList",props:rv({data:{}},{modelValue:{},modelModifiers:{}}),emits:rv(["select"],["update:modelValue"]),setup(t,{emit:r}){const e=r,n=Zy(t,"modelValue");function i(o){n.value=o,e("select",o)}return(o,a)=>(M(),x("ul",$4e,[(M(!0),x(Se,null,It(o.data,s=>(M(),x("li",{key:s.id,class:Te(["selectable-item",{active:s.id===n.value}]),onClick:l=>i(s.id)},[ze(Ee(s.label)+" ",1),(M(!0),x(Se,null,It(s.tags,(l,c)=>(M(),ie(jU,{key:c,tag:l},null,8,["tag"]))),128))],10,_4e))),128))]))}}),of=t=>(Tu("data-v-092d4be1"),t=t(),Lu(),t),z4e={class:"h-full w-full"},E4e={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},S4e={key:0,class:"h-full flex flex-col p2"},T4e={class:"flex py2"},L4e={xmlns:"http://www.w3.org/2000/svg",style:{height:"1.1em",width:"1.1em"},class:"op-80 hover:op-100",viewBox:"0 0 24 24"},k4e=of(()=>b("path",{fill:"currentColor",d:"M10.611 10.611a1 1 0 0 1 1.11-.208l8.839 3.889a1 1 0 0 1-.14 1.88l-3.338.91l-.91 3.338a1 1 0 0 1-1.88.14l-3.89-8.84a1 1 0 0 1 .209-1.109M17 3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm-3.73 10.269l1.715 3.9l.318-1.164a1 1 0 0 1 .701-.702l1.165-.318l-3.9-1.716Z"},null,-1)),O4e=[k4e],H4e={class:"h-full flex flex-col p2"},x4e={class:"flex py2"},V4e={key:0,class:"font-state-field flex items-center px-1 text-3.5"},P4e=of(()=>b("span",{class:"text-gray-400 dark:text-gray-600"},"<",-1)),R4e={"group-hover:text-white":"",class:"max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"},D4e=of(()=>b("span",{class:"text-gray-400 dark:text-gray-600"},">",-1)),N4e={class:"flex items-center gap-2 px-1"},B4e={class:"h-full flex flex-col items-center justify-center gap-2"},F4e={class:"block"},j4e={xmlns:"http://www.w3.org/2000/svg",style:{height:"2em",width:"2em",opacity:"0.5",color:"#00dc82"},class:"animate-fade",viewBox:"0 0 24 24"},U4e=of(()=>b("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[b("circle",{cx:"12",cy:"12",r:".5",fill:"currentColor"}),b("path",{d:"M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2"})],-1)),G4e=[U4e],W4e=of(()=>b("p",null," Click on a component on the page to select it ",-1)),Z4e={class:"flex items-center justify-center"},Hg="components",K4e=ge({__name:"index",emits:["openInEditor","onInspectComponentStart","onInspectComponentEnd"],setup(t,{emit:r}){const e=r,n=G(),i=G(!1),{width:o}=rIe(n),a=U(()=>i.value?o.value<700:!1),s=G(""),l=G(""),[c,u]=XAe(!0),g=G(!1),h=G(!1),d=G(""),f=G(!1);function C($,H=[],F=[]){var j;return H.push($.id),((j=$.children)==null?void 0:j.length)===0&&F.push([...H]),Array.isArray($.children)&&$.children.forEach(q=>{C(q,H,F)}),H.pop(),F}function v($){const H=[],F=j=>{j?.forEach(q=>{var le;H.push(q),(le=q.children)!=null&&le.length&&F(q.children)})};return F($),H}function A($,H){const F=[];return $?.forEach(j=>{F.push(...j.slice(0,H+1))}),[...new Set(F)]}function I($,H){const F=[];return $.forEach(j=>{const q=j.indexOf(H);q!==-1&&F.push(...j.slice(0,q+1))}),[...new Set(F)]}const p=G([]),m=U(()=>{var $,H;return($=p.value)!=null&&$.length?C((H=p.value)==null?void 0:H[0]):[]}),w=U(()=>v(p.value)),_=U(()=>w.value.map($=>$.id)),k=G({}),S=G(""),E=U(()=>{const $=[],H=F=>{F.forEach(j=>{var q;j.id===S.value&&$.push(j),(q=j.children)!=null&&q.length&&H(j.children)})};return H(p.value),$[0]}),T=U(()=>{var $;return(($=E.value)==null?void 0:$.file)??""}),L=U(()=>{const $={};for(const H in k.value){const F=k.value[H].filter(q=>{try{return SIe({[q.key]:q.value},l.value)}catch(le){return{[q.key]:le}}}),j=x5e(Object.values(tAe(JD(F),"stateType")));F.length&&($[H]=j)}return $}),{expanded:O}=Ya(),{expanded:P}=Ya("component-state");kIe();async function B($=""){return Ae.value.getInspectorTree({inspectorId:Hg,filter:$}).then(H=>{var F,j;const q=Zr(H);p.value=q,S.value=(j=(F=p.value)==null?void 0:F[0])==null?void 0:j.id,O.value=A(m.value,1),g.value=!0})}function te($){if(!$||!($!=null&&$.state))return{};const H={};return $.state.forEach(F=>{H[F.type]||(H[F.type]=[]),H[F.type].push(F)}),H}function ee($){Ae.value.getInspectorState({inspectorId:Hg,nodeId:$}).then(H=>{const F=Zr(H);F&&(k.value=te(F),P.value=Array.from({length:Object.keys(k.value).length},(j,q)=>`${q}`))})}et(S,$=>{ee($),f.value&&Ue()});function re($){const H=Zr($);H.inspectorId!==Hg||H.nodeId!==S.value||(k.value=te({state:H.state.state}))}Ae.functions.on(Dt.INSPECTOR_STATE_UPDATED,re),B();function _e($){const H=$.trim().toLowerCase();u(),B(H).then(()=>{u()})}qAe(s,$=>{_e($)},{debounce:300});function xe($){var H,F;const j=Zr($);j.inspectorId===Hg&&(s.value?_e(s.value):p.value=j.rootNodes,_.value.includes(S.value)||(S.value=(F=(H=p.value)==null?void 0:H[0])==null?void 0:F.id,O.value=A(m.value,1)))}Ae.functions.on(Dt.INSPECTOR_TREE_UPDATED,xe),cn(()=>{Ae.functions.off(Dt.INSPECTOR_STATE_UPDATED,re),Ae.functions.off(Dt.INSPECTOR_TREE_UPDATED,xe)});function rt(){h.value=!0,e("onInspectComponentStart"),Ae.value.inspectComponentInspector().then($=>{const H=JSON.parse($);S.value=H.id,O.value.includes(H.id)||O.value.push(H.id),O.value=[...new Set([...O.value,...I(m.value,H.id)])],Z()}).finally(()=>{h.value=!1,e("onInspectComponentEnd")})}function De(){h.value=!1,Ae.value.cancelInspectComponentInspector()}function be(){Ae.value.scrollToComponent(S.value)}function Ne(){Ae.value.inspectDOM(S.value).then(()=>{chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)")})}function Ue(){Ae.value.getComponentRenderCode(S.value).then($=>{d.value=$,f.value=!0})}function ot(){e("openInEditor",T.value)}const ft=G();function Z(){setTimeout(()=>{var $;const H=($=ft.value)==null?void 0:$.querySelector(".active");H?.scrollIntoView({behavior:"smooth",block:"center"})},300)}function ne(){d.value="",f.value=!1}const R=Ca(),V=U(()=>R.appRecords.value.map($=>({label:$.name+($.version?` (${$.version})`:""),value:$.id}))),D=U(()=>V.value.map($=>({label:$.label,id:$.value}))),K=G(R.activeAppRecordId.value);wn(()=>{K.value=R.activeAppRecordId.value});function z($){Ae.value.toggleApp($).then(()=>{S.value="",B()})}return($,H)=>(M(),x("div",z4e,[N(y(gc),{ref_key:"splitpanesRef",ref:n,class:"flex-1 overflow-auto",horizontal:a.value,onReady:H[4]||(H[4]=F=>i.value=!0)},{default:W(()=>[V.value.length>1?(M(),ie(y(Pn),{key:0,border:"base h-full",size:"20"},{default:W(()=>[b("div",E4e,[N(M4e,{modelValue:K.value,"onUpdate:modelValue":H[0]||(H[0]=F=>K.value=F),data:D.value,class:"w-full",onSelect:z},null,8,["modelValue","data"])])]),_:1})):se("",!0),N(y(Pn),{border:"base","h-full":""},{default:W(()=>[g.value?(M(),x("div",S4e,[b("div",T4e,[N(y(Za),{modelValue:s.value,"onUpdate:modelValue":H[1]||(H[1]=F=>s.value=F),"loading-debounce-time":250,loading:!y(c),placeholder:"Find components...",class:"flex-1 text-3.5"},null,8,["modelValue","loading"]),y(XD)?se("",!0):Vt((M(),x("button",{key:0,"px-1":"",class:"hover:color-#00dc82",onClick:rt},[(M(),x("svg",L4e,O4e))])),[[y(pr),"Select component in the page",void 0,{bottom:!0}]])]),b("div",{ref_key:"componentTreeContainer",ref:ft,class:"no-scrollbar flex-1 select-none overflow-scroll"},[N(nf,{modelValue:S.value,"onUpdate:modelValue":H[2]||(H[2]=F=>S.value=F),data:p.value,"with-tag":!0},null,8,["modelValue","data"])],512)])):se("",!0)]),_:1}),N(y(Pn),{relative:"","h-full":""},{default:W(()=>{var F;return[b("div",H4e,[b("div",x4e,[(F=E.value)!=null&&F.name?(M(),x("span",V4e,[P4e,b("span",R4e,Ee(E.value.name),1),D4e])):se("",!0),N(y(Za),{modelValue:l.value,"onUpdate:modelValue":H[3]||(H[3]=j=>l.value=j),"loading-debounce-time":250,placeholder:"Filter State...",class:"flex-1 text-3.5"},null,8,["modelValue"]),b("div",N4e,[Vt(b("i",{class:"i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",onClick:be},null,512),[[y(pr),"Scroll to component",void 0,{bottom:!0}]]),Vt(b("i",{class:"i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",onClick:Ue},null,512),[[y(pr),"Show render code",void 0,{bottom:!0}]]),y(sa)?Vt((M(),x("i",{key:0,class:"i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",onClick:Ne},null,512)),[[y(pr),"Inspect DOM",void 0,{bottom:!0}]]):se("",!0),T.value?Vt((M(),x("i",{key:1,class:"i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",onClick:ot},null,512)),[[y(pr),"Open in Editor",void 0,{bottom:!0}]]):se("",!0)])]),N(rf,{class:"no-scrollbar flex-1 select-none overflow-scroll",data:L.value,"node-id":S.value,"inspector-id":Hg,"expanded-state-id":"component-state"},null,8,["data","node-id"])]),f.value&&d.value?(M(),ie(w4e,{key:0,code:d.value,onClose:ne},null,8,["code"])):se("",!0)]}),_:1})]),_:1},8,["horizontal"]),y(sa)?(M(),ie(y(eU),{key:0,modelValue:h.value,"onUpdate:modelValue":H[5]||(H[5]=F=>h.value=F),title:"",height:"12rem",closable:!1},{footer:W(()=>[b("div",Z4e,[N(y(ct),{onClick:De},{default:W(()=>[ze(" Cancel ")]),_:1})])]),default:W(()=>[b("div",B4e,[b("span",F4e,[(M(),x("svg",j4e,G4e))]),W4e])]),_:1},8,["modelValue"])):se("",!0)]))}}),Y4e=fc(K4e,[["__scopeId","data-v-092d4be1"]]),X4e={},q4e={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Q4e=b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8em",height:"8em",viewBox:"0 -4 24 24"},[b("path",{fill:"#3dd68c",d:"M4 15V8.5a4.5 4.5 0 0 1 9 0v7a2.5 2.5 0 0 0 5 0V8.83a3.001 3.001 0 1 1 2 0v6.67a4.5 4.5 0 1 1-9 0v-7a2.5 2.5 0 0 0-5 0V15h3l-4 5l-4-5zm15-8a1 1 0 1 0 0-2a1 1 0 0 0 0 2"})],-1),J4e=b("path",{d:"M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z",fill:"currentColor"},null,-1),epe=[Q4e,J4e];function tpe(t,r){return M(),x("svg",q4e,epe)}const rpe=fc(X4e,[["render",tpe]]),npe={"h-full":"","w-full":"",flex:"","items-center":""},ipe={flex:"~ col gap2",ma:"","px-5":""},ope=b("div",{"flex-auto":""},null,-1),ape={flex:"~ col","mt-20":"","items-center":""},spe={flex:"~","mt--10":"","items-center":"","justify-center":""},lpe=b("div",{mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},[b("span",{op40:""}," Router DevTools ")],-1),cpe=b("div",{"flex-auto":""},null,-1),upe={flex:"~ gap2 wrap"},gpe=b("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),hpe=b("code",null,"Routes",-1),dpe=[gpe,hpe],fpe=b("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),Cpe=b("div",null,"Timeline",-1),vpe=[fpe,Cpe],Ape=b("div",{flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},[b("a",{href:"https://github.com/vuejs/router",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[b("div",{"i-carbon-star":""}),ze(" Star on GitHub ")]),b("a",{href:"https://router.vuejs.org/",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[b("div",{"i-carbon-document":""}),ze(" View Documentation ")])],-1),Ipe=b("div",{"flex-auto":""},null,-1),ppe=ge({__name:"About",setup(t){const r=tf();return(e,n)=>(M(),x("div",npe,[b("div",ipe,[ope,b("div",ape,[b("div",spe,[N(rpe,{"h-18":""})]),lpe]),cpe,b("div",upe,[b("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[0]||(n[0]=i=>y(r).push("/routes"))},dpe),b("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[1]||(n[1]=i=>y(r).push("/timeline"))},vpe)]),Ape,Ipe])]))}}),WU=Symbol.for("VueDevToolsCustomInspectorStateSymbol");function Ru(){return mr(WU)}function ZU(){const t=G({homepage:"",id:"",label:"",logo:"",timelineLayerIds:[]});return Li(WU,t),t}const mpe={class:"h-full flex flex-col"},ype={"h-full":"","select-none":"","overflow-scroll":"",p2:"",class:"no-scrollbar"},bpe={"h-full":"","select-none":"","overflow-scroll":"",class:"no-scrollbar"},wpe=ge({__name:"Index",setup(t){const{expanded:r}=Ya(),{expanded:e}=Ya("routes-state"),n=Ru(),i=U(()=>n.value.id),o=G(""),a=G([]),s=U(()=>{var m,w;return(m=a.value)!=null&&m.length?g((w=a.value)==null?void 0:w[0]):[]}),l=U(()=>d(a.value)),c=U(()=>l.value.map(m=>m.id)),u=G({});function g(m,w=[],_=[]){var k;return w.push(m.id),((k=m.children)==null?void 0:k.length)===0&&_.push([...w]),Array.isArray(m.children)&&m.children.forEach(S=>{g(S,w,_)}),w.pop(),_}function h(m,w){const _=[];return m?.forEach(k=>{_.push(...k.slice(0,w+1))}),[...new Set(_)]}function d(m){const w=[],_=k=>{k?.forEach(S=>{var E;w.push(S),(E=S.children)!=null&&E.length&&_(S.children)})};return _(m),w}function f(m){var w;for(const _ in m)(w=m[_])!=null&&w.length||delete m[_];return m}function C(m){Ae.value.getInspectorState({inspectorId:i.value,nodeId:m}).then(w=>{const _=Zr(w);_&&(u.value=f(_),e.value=Array.from({length:Object.keys(u.value).length},(k,S)=>`${S}`))})}function v(){u.value={}}et(o,()=>{v(),C(o.value)});const A=()=>{Ae.value.getInspectorTree({inspectorId:i.value,filter:""}).then(m=>{const w=Zr(m);a.value=w,!o.value&&w.length&&(o.value=w[0].id,C(w[0].id),r.value=h(s.value,1))})};HU(i).toBeTruthy().then(A);function I(m){const w=Zr(m);w.inspectorId!==i.value||!w.rootNodes.length||(a.value=w.rootNodes,c.value.includes(o.value)||(o.value=w.rootNodes[0].id,r.value=h(s.value,1),C(w.rootNodes[0].id)))}function p(m){const w=Zr(m);if(w.inspectorId!==i.value)return;const _=w.state;u.value=f(_)}return Ae.functions.on(Dt.INSPECTOR_TREE_UPDATED,I),Ae.functions.on(Dt.INSPECTOR_STATE_UPDATED,p),cn(()=>{Ae.functions.off(Dt.INSPECTOR_TREE_UPDATED,I),Ae.functions.off(Dt.INSPECTOR_STATE_UPDATED,p)}),(m,w)=>(M(),x("div",mpe,[N(Pu,{"doc-link":"https://router.vuejs.org/","github-repo-link":"https://github.com/vuejs/router"},{default:W(()=>[N(Vu)]),_:1}),N(y(gc),{class:"flex-1 overflow-auto"},{default:W(()=>[N(y(Pn),{border:"r base",size:"40","h-full":""},{default:W(()=>[b("div",ype,[N(nf,{modelValue:o.value,"onUpdate:modelValue":w[0]||(w[0]=_=>o.value=_),data:a.value},null,8,["modelValue","data"])])]),_:1}),N(y(Pn),{size:"60"},{default:W(()=>[b("div",bpe,[o.value?(M(),ie(rf,{key:0,class:"p3",data:u.value,"node-id":"","inspector-id":"router","expanded-state-id":"routes-state"},null,8,["data"])):(M(),ie(ud,{key:1},{default:W(()=>[ze(" No Data ")]),_:1}))])]),_:1})]),_:1})]))}}),$pe=ge({__name:"Index",setup(t){const r=Ru();return(e,n)=>(M(),ie(Gb,{"layer-ids":y(r).timelineLayerIds,"doc-link":"https://router.vuejs.org/","github-repo-link":"https://github.com/vuejs/router"},null,8,["layer-ids"]))}}),_pe={"h-full":"","w-full":""},Mpe=ge({__name:"index",props:{id:{}},setup(t){const r=t,e=ZU(),n=G(!1),{VirtualRouterView:i,restoreRouter:o}=Rb([{path:"/routes",name:"Routes",component:wpe,icon:"i-carbon-tree-view-alt"},{path:"/timeline",name:"Timeline",component:$pe,icon:"i-mdi:timeline-clock-outline"},{path:"/about",name:"About",component:ppe,icon:"i-ri-route-line"}],{defaultRoutePath:"/routes"});function a(){n.value=!0,ka(()=>{Ae.value.getInspectorInfo(r.id).then(s=>{if(!s)return;const l={homepage:s?.homepage,id:s?.id,label:s?.label,logo:s?.logo,timelineLayerIds:s?.timelineLayers.map(c=>c.id)};e.value=l,o(),n.value=!1})})}return et(()=>r.id,s=>{s&&a()}),(s,l)=>(M(),x("div",_pe,[N(y(i))]))}}),zpe={},Epe={width:"175",height:"34",viewBox:"0 0 175 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Spe=b("path",{fill:"currentColor",d:"M0.570999 33.3121V1.80715H10.8288C13.6975 1.80715 16.3198 2.39225 18.6962 3.56242C21.0721 4.73263 22.9701 6.5029 24.3901 8.87327C25.81 11.2136 26.52 14.1091 26.52 17.5596C26.52 20.9801 25.81 23.8756 24.3901 26.2458C22.9701 28.6162 21.0721 30.3868 18.6962 31.5568C16.3198 32.7269 13.6975 33.3121 10.8288 33.3121H0.570999ZM10.1332 27.461C12.9439 27.461 15.2767 26.6812 17.1314 25.1208C18.9858 23.5306 19.913 21.0102 19.913 17.5596C19.913 14.1091 18.9858 11.5887 17.1314 9.99846C15.2767 8.40819 12.9439 7.61306 10.1332 7.61306H7.09085V27.461H10.1332ZM50.3628 25.6159C49.928 28.0463 48.7544 29.9966 46.8421 31.4669C44.9297 32.9368 42.6257 33.672 39.931 33.672C37.5551 33.672 35.5119 33.117 33.8024 32.007C32.1216 30.8668 30.8468 29.3965 29.9772 27.5961C29.1081 25.7961 28.6733 23.9056 28.6733 21.9253C28.6733 19.915 29.0645 18.0247 29.8468 16.2544C30.6584 14.4841 31.8756 13.0439 33.498 11.9337C35.1499 10.8236 37.1491 10.2685 39.4962 10.2685C41.9306 10.2685 43.9589 10.8086 45.5817 11.8888C47.2045 12.9689 48.3924 14.3491 49.1456 16.0294C49.928 17.7097 50.3192 19.4799 50.3192 21.3402C50.3192 22.0303 50.2904 22.7054 50.2324 23.3656H34.4979C34.7295 24.9858 35.3091 26.2612 36.2363 27.191C37.1927 28.0914 38.4243 28.5412 39.931 28.5412C41.1482 28.5412 42.1478 28.3014 42.9301 27.8214C43.7125 27.3111 44.2197 26.5759 44.4513 25.6159H50.3628ZM39.4962 14.8592C38.1055 14.8592 37.0043 15.2343 36.1931 15.9844C35.3815 16.7045 34.8455 17.8447 34.5847 19.4049H44.2777C44.1905 18.0847 43.7269 17.0045 42.8865 16.1644C42.0466 15.2943 40.9162 14.8592 39.4962 14.8592ZM64.1603 33.3121H58.5969L50.599 10.6285H56.7713L61.3788 25.3008L65.9427 10.6285H72.1582L64.1603 33.3121ZM88.2757 33.3121H81.7559V7.61306H72.7585V1.80715H97.2731V7.61306H88.2757V33.3121ZM106.325 33.672C104.123 33.672 102.138 33.1771 100.37 32.1868C98.6029 31.1667 97.2266 29.7717 96.2414 28.0011C95.2562 26.2011 94.7634 24.1907 94.7634 21.9703C94.7634 19.75 95.2562 17.7547 96.2414 15.9844C97.2266 14.1841 98.6029 12.7889 100.37 11.7987C102.138 10.7786 104.123 10.2685 106.325 10.2685C108.528 10.2685 110.513 10.7786 112.28 11.7987C114.048 12.7889 115.424 14.1841 116.409 15.9844C117.395 17.7547 117.887 19.75 117.887 21.9703C117.887 24.1907 117.395 26.2011 116.409 28.0011C115.424 29.7717 114.048 31.1667 112.28 32.1868C110.513 33.1771 108.528 33.672 106.325 33.672ZM106.325 28.2712C107.948 28.2712 109.266 27.6864 110.281 26.5159C111.295 25.3458 111.802 23.8306 111.802 21.9703C111.802 20.08 111.295 18.5498 110.281 17.3796C109.266 16.2094 107.948 15.6243 106.325 15.6243C104.702 15.6243 103.384 16.2094 102.37 17.3796C101.356 18.5498 100.848 20.08 100.848 21.9703C100.848 23.8306 101.356 25.3458 102.37 26.5159C103.384 27.6864 104.702 28.2712 106.325 28.2712ZM131.624 33.672C129.422 33.672 127.436 33.1771 125.669 32.1868C123.901 31.1667 122.525 29.7717 121.54 28.0011C120.555 26.2011 120.062 24.1907 120.062 21.9703C120.062 19.75 120.555 17.7547 121.54 15.9844C122.525 14.1841 123.901 12.7889 125.669 11.7987C127.436 10.7786 129.422 10.2685 131.624 10.2685C133.826 10.2685 135.811 10.7786 137.579 11.7987C139.346 12.7889 140.722 14.1841 141.708 15.9844C142.693 17.7547 143.186 19.75 143.186 21.9703C143.186 24.1907 142.693 26.2011 141.708 28.0011C140.722 29.7717 139.346 31.1667 137.579 32.1868C135.811 33.1771 133.826 33.672 131.624 33.672ZM131.624 28.2712C133.246 28.2712 134.565 27.6864 135.579 26.5159C136.593 25.3458 137.101 23.8306 137.101 21.9703C137.101 20.08 136.593 18.5498 135.579 17.3796C134.565 16.2094 133.246 15.6243 131.624 15.6243C130.001 15.6243 128.682 16.2094 127.668 17.3796C126.654 18.5498 126.147 20.08 126.147 21.9703C126.147 23.8306 126.654 25.3458 127.668 26.5159C128.682 27.6864 130.001 28.2712 131.624 28.2712ZM152.88 33.3121H146.838V0.771999H152.88V33.3121ZM165.652 33.672C162.957 33.672 160.769 32.9522 159.088 31.5117C157.437 30.0418 156.553 28.0914 156.437 25.661H161.653C161.768 26.6812 162.174 27.4913 162.87 28.0914C163.594 28.6613 164.522 28.9463 165.652 28.9463C166.579 28.9463 167.332 28.7363 167.912 28.3163C168.52 27.8963 168.825 27.3712 168.825 26.7412C168.825 25.9008 168.477 25.3159 167.782 24.9858C167.086 24.6557 165.985 24.3557 164.478 24.0856C162.913 23.7856 161.638 23.4556 160.653 23.0955C159.668 22.7354 158.813 22.0903 158.089 21.1602C157.393 20.2 157.045 18.8498 157.045 17.1096C157.045 15.7893 157.379 14.6192 158.045 13.599C158.741 12.5488 159.682 11.7387 160.871 11.1686C162.058 10.5685 163.391 10.2685 164.869 10.2685C167.506 10.2685 169.636 10.9436 171.259 12.2938C172.91 13.644 173.794 15.4293 173.91 17.6496H168.651C168.535 16.7195 168.115 15.9994 167.39 15.4893C166.695 14.9492 165.912 14.6792 165.043 14.6792C164.174 14.6792 163.478 14.8742 162.957 15.2643C162.435 15.6543 162.174 16.1944 162.174 16.8845C162.174 17.7246 162.508 18.2948 163.174 18.5948C163.87 18.8648 164.956 19.1049 166.434 19.3149C168.028 19.5549 169.331 19.855 170.346 20.215C171.389 20.5451 172.287 21.2052 173.041 22.1953C173.794 23.1855 174.171 24.6257 174.171 26.5159C174.171 28.6762 173.389 30.4166 171.824 31.737C170.288 33.0271 168.23 33.672 165.652 33.672Z"},null,-1),Tpe=[Spe];function Lpe(t,r){return M(),x("svg",Epe,Tpe)}const kpe=fc(zpe,[["render",Lpe]]),Ope={"h-full":"","w-full":"",flex:"","items-center":""},Hpe={flex:"~ col gap2",ma:"","px-5":""},xpe=b("div",{"flex-auto":""},null,-1),Vpe={flex:"~ col","mt-20":"","items-center":""},Ppe={flex:"~","mt--10":"","items-center":"","justify-center":""},Rpe={class:"mr-1"},Dpe={key:0,class:"inline-block w20"},Npe=["src","alt"],Bpe={key:1,class:"mr2 inline-block min-w-20 text-center text-10 font-600"},Fpe={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},jpe={op40:""},Upe=b("div",{"flex-auto":""},null,-1),Gpe={flex:"~ gap2 wrap"},Wpe=b("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),Zpe=b("code",null,"State",-1),Kpe=[Wpe,Zpe],Ype=b("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),Xpe=b("div",null,"Timeline",-1),qpe=[Ype,Xpe],Qpe={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},Jpe=["href"],e3e=b("div",{"i-carbon-document":""},null,-1),t3e=b("div",{"flex-auto":""},null,-1),r3e=ge({__name:"About",setup(t){const r=tf(),e=Ru(),n=G(!1),i=G(!1);function o(){n.value=!0}function a(){n.value=!0,i.value=!0}return(s,l)=>{var c;return M(),x("div",Ope,[b("div",Hpe,[xpe,b("div",Vpe,[b("div",Ppe,[b("span",Rpe,[n.value?se("",!0):(M(),x("span",Dpe)),Vt(b("img",{src:y(e).logo,alt:`${y(e).label} Logo`,class:"inline-block h16",onError:a,onLoad:o},null,40,Npe),[[Eoe,n.value&&!i.value]]),i.value?(M(),x("span",Bpe,Ee(y(e).label),1)):se("",!0)]),b("span",null,[N(kpe,{"h-18":""})])]),b("div",Fpe,[b("span",jpe,Ee(y(e).label)+" DevTools ",1)])]),Upe,b("div",Gpe,[b("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:l[0]||(l[0]=u=>y(r).push("/state"))},Kpe),(c=y(e).timelineLayerIds)!=null&&c.length?(M(),x("div",{key:0,flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:l[1]||(l[1]=u=>y(r).push("/timeline"))},qpe)):se("",!0)]),b("div",Qpe,[b("a",{href:y(e).homepage,target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[e3e,ze(" View Documentation ")],8,Jpe)]),t3e])])}}}),n3e={class:"h-full flex flex-col"},i3e=ge({__name:"Settings",setup(t){const r=mr("pluginSettings"),e=Ru(),n=U(()=>r.value.options),i=U(()=>r.value.values);function o(a){r.value=a}return(a,s)=>(M(),x("div",n3e,[N(Pu,{"doc-link":y(e).homepage},{default:W(()=>[N(Vu)]),_:1},8,["doc-link"]),N(GU,{"plugin-id":y(e).id,options:n.value,values:i.value,onUpdate:o},null,8,["plugin-id","options","values"])]))}}),o3e={class:"h-full flex flex-col"},a3e={class:"h-full flex flex-col p2"},s3e={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},l3e={class:"flex items-center gap-2 px-1"},c3e=["onClick"],u3e={class:"no-scrollbar flex-1 select-none overflow-scroll"},g3e={class:"h-full flex flex-col p2"},h3e={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},d3e={class:"flex items-center gap-2 px-1"},f3e=["onClick"],C3e=ge({__name:"Index",setup(t){const{expanded:r}=Ya(),{expanded:e}=Ya("custom-inspector-state"),n=Ru(),i=U(()=>n.value.id),o=G([]),a=G([]),s=G([]),l=U(()=>{var L,O;return(L=s.value)!=null&&L.length?f((O=s.value)==null?void 0:O[0]):[]}),c=U(()=>v(s.value)),u=U(()=>c.value.map(L=>L.id)),g=G(""),h=G({}),d=U(()=>!Object.keys(h.value).length);function f(L,O=[],P=[]){var B;return O.push(L.id),((B=L.children)==null?void 0:B.length)===0&&P.push([...O]),Array.isArray(L.children)&&L.children.forEach(te=>{f(te,O,P)}),O.pop(),P}function C(L,O){const P=[];return L?.forEach(B=>{P.push(...B.slice(0,O+1))}),[...new Set(P)]}function v(L){const O=[],P=B=>{B?.forEach(te=>{var ee;O.push(te),(ee=te.children)!=null&&ee.length&&P(te.children)})};return P(L),O}function A(){Ae.value.getInspectorNodeActions(i.value).then(L=>{o.value=L})}function I(){Ae.value.getInspectorActions(i.value).then(L=>{a.value=L})}A(),I();function p(L){Ae.value.callInspectorNodeAction(i.value,L,g.value)}function m(L){Ae.value.callInspectorAction(i.value,L)}function w(L){var O;for(const P in L)(O=L[P])!=null&&O.length||delete L[P];return L}function _(L){Ae.value.getInspectorState({inspectorId:i.value,nodeId:L}).then(O=>{const P=Zr(O);P&&(h.value=w(P),e.value=Array.from({length:Object.keys(h.value).length},(B,te)=>`${te}`))})}function k(){h.value={}}et(g,()=>{k(),_(g.value)});const S=()=>{Ae.value.getInspectorTree({inspectorId:i.value,filter:""}).then(L=>{const O=Zr(L);s.value=O,!g.value&&O.length&&(g.value=O[0].id,r.value=C(l.value,1),_(O[0].id))})};HU(i).toBeTruthy().then(S);function E(L){var O,P;const B=Zr(L);!B.rootNodes.length||B.inspectorId!==i.value||(s.value=B.rootNodes,u.value.includes(g.value)||(g.value=(P=(O=s.value)==null?void 0:O[0])==null?void 0:P.id,r.value=C(l.value,1)))}function T(L){const O=Zr(L);if(O.inspectorId!==i.value||!O.state||O.nodeId!==g.value)return;const{inspectorId:P,...B}=O.state;h.value=w(B)}return ka(()=>{Ae.functions.on(Dt.INSPECTOR_TREE_UPDATED,E),Ae.functions.on(Dt.INSPECTOR_STATE_UPDATED,T)}),cn(()=>{Ae.functions.off(Dt.INSPECTOR_TREE_UPDATED,E),Ae.functions.off(Dt.INSPECTOR_STATE_UPDATED,T)}),(L,O)=>(M(),x("div",o3e,[N(Pu,{"doc-link":y(n).homepage},{default:W(()=>[N(Vu)]),_:1},8,["doc-link"]),s.value.length?(M(),ie(y(gc),{key:0,class:"flex-1 overflow-auto"},{default:W(()=>[N(y(Pn),{border:"r base",size:"40","h-full":""},{default:W(()=>{var P;return[b("div",a3e,[(P=a.value)!=null&&P.length?(M(),x("div",s3e,[b("div",l3e,[(M(!0),x(Se,null,It(a.value,(B,te)=>Vt((M(),x("div",{key:te,class:"flex items-center gap1",onClick:ee=>m(te)},[N(y(Y6),{name:`baseline-${B.icon.replace(/\_/g,"-")}`,"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,8,["name"])],8,c3e)),[[y(pr),{content:B.tooltip},void 0,{"bottom-end":!0}]])),128))])])):se("",!0),b("div",u3e,[N(nf,{modelValue:g.value,"onUpdate:modelValue":O[0]||(O[0]=B=>g.value=B),data:s.value},null,8,["modelValue","data"])])])]}),_:1}),N(y(Pn),{size:"60"},{default:W(()=>{var P;return[b("div",g3e,[(P=o.value)!=null&&P.length?(M(),x("div",h3e,[b("div",d3e,[(M(!0),x(Se,null,It(o.value,(B,te)=>Vt((M(),x("div",{key:te,class:"flex items-center gap1",onClick:ee=>p(te)},[N(y(Y6),{name:`baseline-${B.icon.replace(/\_/g,"-")}`,"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,8,["name"])],8,f3e)),[[y(pr),{content:B.tooltip},void 0,{"bottom-end":!0}]])),128))])])):se("",!0),g.value&&!d.value?(M(),ie(rf,{key:1,data:h.value,"node-id":g.value,"inspector-id":i.value,"expanded-state-id":"custom-inspector-state",class:"no-scrollbar flex-1 select-none overflow-scroll"},null,8,["data","node-id","inspector-id"])):(M(),ie(ud,{key:2},{default:W(()=>[ze(" No Data ")]),_:1}))])]}),_:1})]),_:1})):(M(),ie(ud,{key:1},{default:W(()=>[ze(" No Data ")]),_:1}))]))}}),v3e=ge({__name:"Index",setup(t){const r=Ru();return(e,n)=>(M(),ie(Gb,{"layer-ids":y(r).timelineLayerIds,"doc-link":y(r).homepage},null,8,["layer-ids","doc-link"]))}}),A3e={},I3e=t=>(Tu("data-v-b8018f07"),t=t(),Lu(),t),p3e={class:"h-screen w-screen $ui-fcc flex-col"},m3e=I3e(()=>b("div",{class:"outer"},[b("div",{class:"inner"},[b("i",{class:"i-logos-vue inline-block h8! w8!",alt:"Vue logo"})])],-1));function y3e(t,r){return M(),x("div",p3e,[m3e,Qe(t.$slots,"default",{},void 0,!0)])}const b3e=fc(A3e,[["render",y3e],["__scopeId","data-v-b8018f07"]]),w3e={"h-full":"","w-full":""},$3e={key:0},KU=ge({__name:"index",props:{id:{}},emits:["loadError"],setup(t,{emit:r}){const e=t,n=r,i=ZU(),o=G(!1),a=G(null);Li("pluginSettings",a);const s=U(()=>{var g;return[{path:"/state",name:"State",component:C3e,icon:"i-carbon-tree-view-alt"},((g=i.value.timelineLayerIds)==null?void 0:g.length)&&{path:"/timeline",name:"Timeline",component:v3e,icon:"i-mdi:timeline-clock-outline"},{path:"/about",name:"About",component:r3e},a.value&&{path:"/settings",name:"Settings",component:i3e,icon:"i-mdi:cog-outline"}].filter(Boolean)}),{VirtualRouterView:l,restoreRouter:c}=Rb(s,{defaultRoutePath:"/state"});function u(){o.value=!0,ka(()=>{Ae.value.getInspectorInfo(e.id).then(g=>{if(!g){n("loadError");return}const h={homepage:g?.homepage,id:g?.id,label:g?.label,logo:g?.logo,timelineLayerIds:g?.timelineLayers.map(d=>d.id)};i.value=h,c(),o.value=!1}),Ae.value.getPluginSettings(e.id).then(g=>{g.options?a.value=g:a.value=null})})}return et(()=>e.id,()=>{u()},{immediate:!0}),cn(()=>{Ae.value.unhighlight()}),(g,h)=>(M(),x("div",w3e,[o.value?(M(),x("div",$3e,[N(b3e)])):(M(),ie(y(l),{key:1}))]))}});function YU(){const t=G([]),r=G([]);function e(i){r.value=i,i.length<t.value.length&&(t.value=[]),r.value.forEach(o=>{n(o)})}ka(()=>{Ae.value.getCustomInspector().then(i=>{r.value=i,r.value.forEach(o=>{n(o)})}),Ae.functions.on(Dt.INSPECTOR_UPDATED,e)});function n(i){t.value.some(o=>o.id===i.id)||t.value.push(i)}return cn(()=>{Ae.functions.off(Dt.INSPECTOR_UPDATED,e)}),{registeredInspector:t,register:n}}const _3e=[["app",[{icon:"i-carbon-information",name:"overview",order:-100,path:"overview",title:"Overview"},{icon:"i-carbon-assembly-cluster",name:"components",order:-100,path:"components",title:"Components"},{icon:"i-carbon-tree-view-alt",name:"pages",order:-100,path:"pages",title:"Pages"},{icon:"i-carbon-image-copy",name:"assets",order:-100,path:"assets",title:"Assets"}]],["modules",[{icon:"i-ri-route-line",name:"router",order:-100,path:"router",title:"Router"},{icon:"i-logos-pinia",name:"pinia",order:-100,path:"pinia",title:"Pinia"}]],["advanced",[{icon:"i-carbon-network-4",name:"graph",order:-100,path:"graph",title:"Graph"}]]],XU=["assets","graph","vite-inspect"];function M3e(t,r){const e=X5(_3e);return e.forEach(n=>{if(n[0]==="modules"){n[1]=n[1].filter(o=>o.name==="router"?r.findIndex(a=>a.name.startsWith("router-inspector"))>-1:o.name==="pinia"?r.findIndex(a=>a.name==="pinia")>-1:!0);const i=r.filter(o=>!(o.name.startsWith("router-inspector")||o.name==="pinia"));n[1]=[...n[1],...i]}}),t&&!Rd&&!sa?e:e.map(([n,i])=>[n,i.filter(o=>!XU.includes(o.name))])}const h8="custom-tab-view",Ih="custom-inspector-tab-view";function z3e(){const{registeredInspector:t}=YU();return U(()=>t.value.map((e,n)=>({order:n,name:e.id,icon:e.logo,fallbackIcon:e.icon,title:e.label,path:`${Ih}/${e.id}`,category:"modules"})))}function qU(){return{isFirstVisit:!0,route:"/",graphSettings:{node_modules:!1,virtual:!1,lib:!1},tabSettings:{hiddenTabCategories:[],hiddenTabs:[],pinnedTabs:[]},expandSidebar:!1,scrollableSidebar:!0,splitScreen:{enabled:!1,view:"overview",size:[50,50]},scale:1,interactionCloseOnOutsideClick:!1,showPanel:!0,minimizePanelInteractive:5e3}}const gr=due("__VUE_DEVTOOLS_CLIENT_STATE__",qU(),{mergeDefaults:!0});function E3e(){gr.value=qU()}et(()=>gr.value.splitScreen.enabled,(t,r)=>{r&&!t&&(gr.value.splitScreen.size=[50,50])});function af(){const t=Ca(),r=z3e();let e=[];const n=U(()=>gU(t.tabs.value,e)?e:(e=t.tabs.value,t.tabs.value)),i=U(()=>{const c=t.vitePluginDetected.value,u=[...M3e(c,r.value)];return n.value.forEach(g=>{const h=u.find(d=>d[0]===g.category);if(h){if(h[1].some(d=>d.name===g.name)||(!c||Rd||sa)&&XU.includes(g.name))return;h[1].push({...g})}}),[...u]}),o=U(()=>i.value.reduce((c,[u,g])=>(g.forEach(h=>{c.push(h)}),c),[])),a=U(()=>{const{hiddenTabCategories:c,hiddenTabs:u,pinnedTabs:g}=gr.value.tabSettings,h=c.includes("pinned"),d=i.value.reduce((f,[C,v])=>{const A=[{hidden:!1,name:C},[]],I=c.includes(C);return v.forEach(p=>{const m=u.includes(p.name);if(g.includes(p.name))f[0][1].push({...p,hidden:m||h});else{const w=m||I;A[1].push({...p,hidden:w})}}),A[0].hidden=A[1].every(p=>p.hidden),f.push(A),f},[[{name:"pinned",hidden:!1},[]]]);return d[0][0].hidden=d[0][1].every(f=>f.hidden),d[0][1].sort((f,C)=>g.indexOf(f.name)-g.indexOf(C.name)),d}),s=U(()=>a.value.reduce((c,[u,g])=>{if(u.hidden)return c;const h=g.filter(d=>!d.hidden);return h.length&&c.push([u,h]),c},[])),l=U(()=>s.value.reduce((c,[u,g])=>(g.forEach(h=>{c.push(h)}),c),[]));return{categorizedTabs:a,flattenedTabs:o,enabledTabs:s,enabledFlattenTabs:l}}function TS(t,r){return U(()=>{const e=[],n=gr.value.tabSettings.pinnedTabs;Dh(r).reduce((a,[{name:s,hidden:l},c])=>(c.forEach(u=>{if(Dh(t).some(g=>g.name===u.name)){const g=n.includes(u.name)?"pinned":s||"app";a.push({tab:u,category:{name:g,hidden:l}})}}),a),[]).forEach(({tab:a,category:s})=>{const l=e.find(([{name:c}])=>c===s.name);l?l[1].push(a):e.push([s,[a]])});const o=e.find(([{name:a}])=>a==="pinned");return o&&o[1].sort((a,s)=>n.indexOf(a.name)-n.indexOf(s.name)),e})}function S3e(t){const r=new Map;return t.forEach(e=>r.set(e.id,e)),Array.from(r.values())}const d8=ca(new Map);function T3e(){const{enabledFlattenTabs:t}=af(),r=ac(),e=Ca();let n=[];const i=U(()=>gU(e.commands.value,n)?n:(n=e.commands.value,e.commands.value)),o=[{id:"fixed:settings",title:"Settings",icon:"i-carbon-settings-adjust",action:()=>{r.push("/settings")}},{id:"fixed:docs",title:"Vue Documentations",icon:"i-vscode-icons-file-type-vue",action:()=>k3e()}],a=U(()=>t.value.map(s=>({id:`tab:${s.name}`,title:s.title||s.name,icon:s.icon,action:()=>{"onClick"in s&&s.onClick?s.onClick():r.push("path"in s&&s.path?s.path:`/custom-tab-view/${s.name}`)}})));return U(()=>S3e([...o,...a.value,...L3e(i.value),...Array.from(d8.values()).flatMap(s=>Dh(s))]))}function LS(t){t?.type==="url"&&window.open(t.src,"_blank")}function L3e(t){return t.map(r=>({id:`${r.id}`,title:r.title,icon:r.icon,description:r.description,order:r.order,action:()=>{if(r.children)return r.children.map(e=>({id:e.id,title:e.title,icon:e.icon,description:e.description,order:e.order,action:()=>{LS(e.action)}})).sort((e,n)=>(n.order??0)-(e.order??0));LS(r.action)}})).sort((r,e)=>(e.order??0)-(r.order??0))}function kS(t){const r=ine();d8.set(r,t),cn(()=>{d8.delete(r)})}let pp;const OS={"utility-types":"i-mdi-language-typescript",ssr:"i-codicon-server-process","custom-renderer":"i-codicon-server-process","sfc-script-setup":"i-material-symbols:magic-button","sfc-css-features":"i-material-symbols-css","built-in-directives":"i-material-symbols-code","built-in-special-attributes":"i-material-symbols-code","component-instance":"i-material-symbols-code","composition-api-dependency-injection":"i-material-symbols-code","composition-api-lifecycle":"i-material-symbols-code",general:"i-material-symbols-code","compile-time-flags":"i-material-symbols-toggle-on","reactivity-utilities":"i-mdi-api","reactivity-advanced":"i-mdi-api","render-function":"i-mdi-api","...others":"i-uim-vuejs"};async function k3e(){return pp||(pp=(await mi(()=>import("./vue-apis-DWRQGgDp.js"),[],import.meta.url).then(r=>r.default)).map(r=>({...r,icon:OS[r.description]??OS["...others"],action:()=>{window.open(r.url,"_blank")}}))),pp}const O3e={flex:"~ col",h:"60%",border:"1 base","m-x-4":"","max-h-120":"","min-h-60":"","w-xl":"","of-hidden":"","rounded-md":"","text-3.75":""},H3e={border:"b base","flex-none":""},x3e={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},V3e=["id","onClick","onMouseover"],P3e={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},R3e={"ws-nowrap":""},D3e={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},N3e={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},B3e=b("span",{op50:""},"No results for",-1),F3e={"text-primary":""},j3e={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},U3e={"text-xs":"",flex:"~ items-center gap2"},G3e={px1:""},W3e={px1:""},Z3e=b("span",{op75:""},"to navigate",-1),K3e={"text-xs":"",flex:"~ items-center gap2"},Y3e=b("button",{px1:""}," Esc ",-1),X3e={op75:""},q3e={"text-xs":"",flex:"~ items-center gap2"},Q3e={px1:""},J3e=b("span",{op75:""},"to select",-1),eme=ge({__name:"CommandPalette",setup(t){const r=G(!1),e=G(""),n=T3e(),i=G(),o=U(()=>i.value||n.value),a=U(()=>new uc(o.value,{keys:["id","title"],distance:50})),s=U(()=>e.value?a.value.search(e.value).map(h=>h.item):o.value||[]),l=G(0);et(e,()=>{l.value=0,u()});function c(h){l.value=(l.value+h+s.value.length)%s.value.length,u()}function u(){document.getElementById(s.value[l.value]?.id)?.scrollIntoView({block:"center"})}async function g(h){const d=await h.action();d?(i.value=d,e.value=""):(i.value=void 0,e.value="",r.value=!1)}return oi("keydown",h=>{if((h.altKey||h.metaKey)&&h.key==="k"){h.preventDefault(),i.value=void 0,e.value="",r.value=!r.value;return}if(r.value)switch(h.key){case"ArrowDown":case"ArrowUp":h.preventDefault(),c(h.key==="ArrowDown"?1:-1);break;case"Enter":{const d=s.value[l.value];d&&(h.preventDefault(),g(d));break}case"Escape":{h.preventDefault(),i.value?(i.value=void 0,e.value=""):r.value=!1;break}}}),(h,d)=>{const f=ef;return y(r)?(M(),ie(y(_b),{key:0,dim:"",class:"$ui-z-max-override backdrop-blur-2xl!"},{default:W(()=>[b("div",O3e,[b("header",H3e,[N(y(Za),{modelValue:y(e),"onUpdate:modelValue":d[0]||(d[0]=C=>nt(e)?e.value=C:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),b("div",x3e,[(M(!0),x(Se,null,It(y(s),(C,v)=>(M(),x("button",{id:C.id,key:C.id,onClick:A=>g(C),onMouseover:A=>l.value=v},[b("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:Te(y(l)===v?"op100 saturate-100 bg-active":"op80")},[N(f,{icon:C.icon,title:C.title,"flex-none":"","text-xl":""},null,8,["icon","title"]),b("span",P3e,[b("span",R3e,Ee(C.title),1),b("span",D3e,Ee(C.description),1)]),y(l)===v?(M(),ie(y(Ft),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):se("",!0)],2)],40,V3e))),128)),y(s).length?se("",!0):(M(),x("div",N3e,[N(y(Ft),{icon:"carbon-search",op50:""}),b("div",null,[B3e,b("strong",F3e,' "'+Ee(y(e))+'" ',1)])]))]),b("footer",j3e,[b("div",U3e,[b("button",G3e,[N(y(Ft),{icon:"i-carbon-arrow-down"})]),b("button",W3e,[N(y(Ft),{icon:"i-carbon-arrow-up"})]),Z3e]),b("div",K3e,[Y3e,b("span",X3e,"to "+Ee(y(i)?"go back":"close"),1)]),b("div",q3e,[b("button",Q3e,[N(y(Ft),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),J3e])])])]),_:1})):se("",!0)}}}),tme={key:0,absolute:"","inset-0":"",flex:"","items-center":"","justify-center":""},rme=b("i",{class:"mdi:loading animate-spin text-3xl"},null,-1),nme=[rme],mp=new Map,ime=ge({__name:"IframeView",props:{src:{},inline:{type:Boolean,default:!1}},setup(t){const r=t,{colorMode:e}=YA(),n=G(),i=U(()=>r.src),o=G(),a=ca(cue(n)),s=G(!1);gi(()=>{if(mp.get(i.value))o.value=mp.get(i.value),o.value.style.visibility="visible",o.value.style.opacity="1",s.value=!0;else{o.value=document.createElement("iframe"),mp.set(i.value,o.value),o.value.src=r.src;try{o.value.style.opacity="0.01",o.value.onload=()=>{c(),o.value.style.opacity="1",s.value=!0}}catch{o.value.style.opacity="1"}document.body.appendChild(o.value),ln(u)}const g=setTimeout(l,100);setTimeout(c,100),cn(()=>{clearTimeout(g)})}),wn(u),wn(c),cn(()=>{o.value&&(o.value.style.visibility="hidden",o.value.style.opacity="0")});function l(){o.value&&(o.value.style.visibility="visible",o.value.style.opacity="1")}function c(){if(!(!o.value||!o.value.contentWindow))try{const g=o.value.contentWindow.document.querySelector("html");g?.classList.toggle("dark",e.value==="dark"),g?.classList.toggle("light",e.value==="dark")}catch{}}function u(){o.value&&Object.assign(o.value.style,{position:"fixed",left:`${a.left}px`,top:`${a.top}px`,width:`${a.width}px`,height:`${r.inline?a.height-a.top:a.height}px`,outline:"none"})}return(g,h)=>(M(),x("div",{ref_key:"anchor",ref:n,"h-full":"","w-full":""},[y(s)?se("",!0):(M(),x("div",tme,nme))],512))}}),ome={key:0,flex:"~ col","h-full":"","items-center":"","justify-center":""},ame={flex:"~ col gap2",mxa:"","items-center":""},sme=b("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1),lme={"text-xl":""},cme={"text-rose":""},ume=b("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1),gme={key:3},QU=ge({__name:"CustomTabComponent",props:{tab:{},iframeInline:{type:Boolean}},setup(t){const e=a6(t),n=U(()=>e.tab.value?.name),i=G(!0);return et(()=>n.value,()=>{i.value=!1,setTimeout(()=>{i.value=!0},100)}),(o,a)=>{const s=ime,l=_o("NCard");return o.tab?o.tab?.view?.type==="iframe"?(M(),x(Se,{key:1},[y(i)?(M(),ie(s,{key:0,src:o.tab.view.src,inline:o.iframeInline},null,8,["src","inline"])):se("",!0)],64)):o.tab?.view?.type==="vnode"?(M(),ie(h1(o.tab.view.vnode),{key:2})):(M(),x("div",gme,[N(l,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:W(()=>[ze(" Unknown tab type "+Ee(o.tab?.view),1)]),_:1})])):(M(),x("div",ome,[b("div",ame,[sme,b("p",lme,[ze(" Tab "),b("code",cme,Ee(y(n)),1),ze(" not found ")]),ume])]))}}}),hme={flex:"~ items-center gap-3"},dme={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},fme={"translate-y-0.5px":""},Cme={key:0,hidden:"","lg:block":""},JU=ge({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"},disabled:{type:Boolean,default:!1}},setup(t){const r=t,e=Xd(),n=U(()=>"path"in r.tab?`${r.tab.path.startsWith("/")?"":"/"}${r.tab.path}`:`/custom-tab-view/${r.tab.name}`),i=U(()=>"badge"in r.tab&&r.tab.badge?.()),o=U(()=>e.path.startsWith(n.value));function a(){r.disabled||("onClick"in r.tab&&r.tab.onClick?r.tab.onClick():r.target==="side"&&(gr.value.splitScreen.view=r.tab.name))}return(s,l)=>{const c=ef;return M(),ie(y(rfe),{disabled:!s.minimized,placement:"right",class:Te({"w-full":!s.minimized})},{popper:W(()=>[b("div",null,Ee(s.tab.title),1),"extraTabVNode"in s.tab&&s.tab.extraTabVNode?(M(),x("div",Cme,[(M(),ie(h1(s.tab.extraTabVNode)))])):se("",!0)]),default:W(()=>[(M(),ie(h1(s.target==="main"?y(SF):"button"),{to:y(n),flex:`~ items-center ${s.minimized?"justify-center":"justify-between"}`,"text-secondary":"",relative:"",block:"","h-10":"","select-none":"",op65:"",disabled:s.disabled,class:Te([s.disabled?"cursor-not-allowed op40!":"hover:bg-active hover:op-100"]),w:s.minimized?"10":"full",rounded:s.minimized?"xl":"",p:s.minimized?"1":"x3","exact-active-class":"!text-primary-600 bg-active op-100!",onClick:a},{default:W(()=>[b("div",hme,[N(c,{"text-xl":"",icon:s.tab.icon,fallback:s.tab.fallbackIcon,title:s.tab.name,"show-title":!1},null,8,["icon","fallback","title"]),s.minimized?se("",!0):(M(),x("span",dme,Ee(s.tab.title),1))]),y(i)?(M(),x("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:Te([y(o)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":s.minimized}])},[b("span",fme,Ee(y(Tr)(y(i))),1)],2)):se("",!0)]),_:1},8,["to","flex","disabled","class","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),vme={flex:"~ col gap-1","max-w-80":"",py1:""},Ame={key:0,"h-1px":"",border:"b base"},Ime={flex:"~ wrap",px1:""},eG=ge({__name:"TabsGrid",props:{categories:{},target:{},disabledItems:{}},setup(t){return(r,e)=>{const n=JU;return M(),x("div",vme,[(M(!0),x(Se,null,It(r.categories,([i,o],a)=>(M(),x(Se,{key:i},[o.length?(M(),x(Se,{key:0},[a?(M(),x("div",Ame)):se("",!0),b("div",Ime,[(M(!0),x(Se,null,It(o,s=>(M(),ie(n,{key:s.name,disabled:r.disabledItems?.includes(s.name),target:r.target,tab:s},null,8,["disabled","target","tab"]))),128))])],64)):se("",!0)],64))),128))])}}}),pme={"h-full":"","h-screen":"","of-hidden":""},mme={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},yme={flex:"","cursor-pointer":"","items-center":"",gap2:""},bme=b("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1),wme={capitalize:""},$me=b("div",{"flex-auto":""},null,-1),_me=b("div",{"i-carbon:side-panel-open":""},null,-1),Mme=[_me],zme={key:2,"of-auto":"",class:"h-[calc(100%-50px)]"},Eme={key:3,class:"h-full w-full $ui-fcc"},Sme=b("span",{"text-lg":"",op50:""}," Select a tab to start ",-1),Tme=ge({__name:"SplitScreen",setup(t){function r(){gr.value.splitScreen.enabled=!1}const e=U(()=>gr.value.splitScreen),{enabledTabs:n,flattenedTabs:i}=af(),o=ac(),a=Xd(),s=Oi(),l=G(null),c=G(null);function u(C){const v=d();return C?C.name===v:!1}const g=U(()=>{const C=i.value.find(v=>v.name===e.value.view);return u(C)?void 0:C}),h=U(()=>d());function d(){return a.path.startsWith(`/${h8}/`)?a.path.slice(h8.length+2):a.path.startsWith(`/${Ih}/`)?a.path.slice(Ih.length+2):a.path.startsWith("/")?a.path.slice(1):a.path}et(()=>g.value,C=>{if(!C)return;if(C.view){l.value=C.name,c.value="custom-tab";return}if(C.path.startsWith(Ih)){l.value=C.name,c.value="custom-inspector";return}l.value=null;const I=o.getRoutes().find(p=>p.path===`/${C.path}`)?.components?.default;typeof I=="function"?s.value=vie(I):s.value=I},{immediate:!0});const f=G(!1);return(C,v)=>{const A=ef,I=eG,p=QU;return M(),x("div",pme,[(y(s)||y(l))&&y(g)?(M(),x("div",mme,[N(y(tu),{placement:"bottom-start",distance:12,skidding:5,shown:y(f),trigger:"click"},{popper:W(()=>[N(I,{categories:y(n),target:"side","disabled-items":[y(h)]},null,8,["categories","disabled-items"])]),default:W(()=>[b("div",yme,[bme,N(A,{"text-xl":"",icon:y(g)?.icon,title:y(g).name,fallback:y(g).fallbackIcon,"show-title":!1},null,8,["icon","title","fallback"]),b("span",wme,Ee(y(g)?.name),1)])]),_:1},8,["shown"]),$me,Vt((M(),x("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:r},Mme)),[[y(pr),"Close split screen"]])])):se("",!0),y(l)&&y(g)?(M(),x(Se,{key:1},[y(c)==="custom-tab"?(M(),ie(p,{key:0,tab:y(g),class:"h-[calc(100%-50px)]","iframe-inline":"","of-auto":""},null,8,["tab"])):(M(),ie(y(KU),{key:1,id:y(l)},null,8,["id"]))],64)):y(s)&&y(g)?(M(),x("div",zme,[(M(),ie(h1(y(s)),{key:`tab-${y(g).name}`}))])):(M(),x("div",Eme,[b("div",null,[Sme,N(y(A5),{px4:"",py2:"","bg-base":""},{default:W(()=>[N(I,{categories:y(n),target:"side","disabled-items":[y(h)]},null,8,["categories","disabled-items"])]),_:1}),N(y(ct),{type:"warning",outlined:"",mt2:"",onClick:r},{default:W(()=>[ze(" Close Split Screen ")]),_:1})])]))])}}}),Lme={px3:"",py2:"",border:"b base",flex:"~ gap-2"},kme=b("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),Ome=b("div",{"i-carbon-settings-adjust":""},null,-1),Hme={px3:"",py2:"",border:"b base",flex:"~ gap-2"},xme=b("div",{"i-carbon-split-screen":""},null,-1),Vme={px3:"",py2:"",flex:"~ gap2"},Pme=ge({__name:"DockingPanel",setup(t){const r=ac(),e=U({get:()=>gr.value.expandSidebar,set:u=>gr.value.expandSidebar=u}),n=U({get:()=>gr.value.splitScreen.enabled,set:u=>gr.value.splitScreen.enabled=u});function i(){location.reload()}const o=Ca(),a=U(()=>o.appRecords.value.map(u=>({label:u.name+(u.version?` (${u.version})`:""),value:u.id}))),s=G(o.activeAppRecordId.value);wn(()=>{s.value=o.activeAppRecordId.value});const l=U(()=>a.value.find(u=>u.value===s.value)?.label??"");function c(u){Ae.value.toggleApp(u).then(()=>{r.push("/overview").then(()=>{IF()})})}return(u,g)=>(M(),x("div",null,[b("div",Lme,[N(y(Jj),null,{default:W(({isDark:h,toggle:d})=>[N(y(ct),{outlined:"",type:"primary",onClick:d},{default:W(()=>[kme,ze(" "+Ee(h?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),N(y(ct),{outlined:"",type:"primary",onClick:g[0]||(g[0]=h=>e.value=!y(e))},{default:W(()=>[N(y(Ft),{icon:y(e)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),ze(" "+Ee(y(e)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),N(y(ct),{to:"/settings",outlined:"",type:"primary"},{default:W(()=>[Ome,ze(" Settings ")]),_:1})]),b("div",Hme,[N(y(ct),{outlined:"",type:"primary",onClick:g[1]||(g[1]=h=>n.value=!y(n))},{default:W(()=>[xme,ze(" "+Ee(y(n)?"Close Split Screen":"Split Screen"),1)]),_:1})]),b("div",Vme,[y(a).length>1?(M(),ie(y(sd),{key:0,modelValue:y(s),"onUpdate:modelValue":[g[2]||(g[2]=h=>nt(s)?s.value=h:null),c],options:y(a),placeholder:y(l)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):se("",!0),N(y(ct),{outlined:"",type:"primary",onClick:i},{default:W(()=>[ze(" Refresh Page ")]),_:1})])]))}});function Wb(){return Rd?"electron":sa?"chrome":YD?"iframe":"separate-window"}const Rme={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},Dme=b("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1),Nme=b("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1),Bme=b("div",{"flex-auto":""},null,-1),Fme=b("div",{"i-carbon-overflow-menu-vertical":""},null,-1),jme={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},Ume={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},Gme=b("div",{"flex-auto":""},null,-1),Wme=["flex"],Zme={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},Kme={"translate-y-0.5px":""},Yme=45,Xme=ge({__name:"SideNav",emits:["toggleDevtoolsClientVisible"],setup(t,{emit:r}){const e=r,n=G(!1),i=G(!1),o=G(),a=G(),s=G(),l=U(()=>gr.value.expandSidebar),c=U(()=>gr.value.scrollableSidebar),{enabledTabs:u,flattenedTabs:g}=af(),{height:h}=$ue(),d=U(()=>{const _=h.value-130;return Math.max(0,Math.floor(_/Yme))}),f=U(()=>g.value.slice(0,d.value)),C=U(()=>g.value.slice(d.value)),v=TS(f,u),A=TS(C,u),I=U(()=>c.value||l.value?u.value:v.value);X2e(o,_=>{a.value&&_.composedPath().includes(a.value)||s.value&&_.composedPath().includes(s.value)||(n.value=!1,i.value=!1)},{detectIframe:!0});const p=G(),m=G(6);db(p,()=>{m.value=m.value===6?6.01:6});const w=Wb();return gue(p,([{isIntersecting:_}])=>{e("toggleDevtoolsClientVisible",{visible:_,host:w})}),(_,k)=>{const S=Pme,E=JU,T=ef,L=eG;return M(),x("div",{ref_key:"containerRef",ref:p,border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},[b("div",Rme,[N(y(tu),{placement:"left-start",distance:y(m),skidding:5,trigger:"click",shown:y(n),class:"w-full"},{popper:W(()=>[N(S)]),default:W(()=>[b("button",{ref_key:"buttonDocking",ref:a,flex:"~ items-center justify-center gap-2",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-full":"","select-none":"",p2:"","exact-active-class":"!text-primary bg-active",class:Te([y(l)?"rounded pl2.5":"rounded-xl"])},[Dme,y(l)?(M(),x(Se,{key:0},[Nme,Bme,Fme],64)):se("",!0)],2)]),_:1},8,["distance","shown"])]),b("div",jme,[(M(!0),x(Se,null,It(y(I),([O,P],B)=>(M(),x(Se,{key:O},[B?(M(),x("div",Ume)):se("",!0),(M(!0),x(Se,null,It(P.filter(te=>!te.hidden),te=>(M(),ie(E,{key:te.name,tab:te,minimized:!y(l)},null,8,["tab","minimized"]))),128))],64))),128)),Gme]),b("div",{flex:`~ items-center gap-1 ${y(l)?"":"none col"}`,border:"t base",sticky:"","bottom-0":"","w-full":"",p1:"","bg-base":"",class:"$ui-z-max-override"},[y(C).length&&!y(c)&&!y(l)?(M(),ie(y(tu),{key:0,placement:"left-end",distance:6},{popper:W(()=>[N(L,{categories:y(A),"max-w-80":"",target:"main"},null,8,["categories"])]),default:W(()=>[b("button",{ref_key:"buttonMoreTabs",ref:s,flex:"~",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-10":"","select-none":"","items-center":"","justify-center":"","rounded-xl":"",p1:"","exact-active-class":"!text-primary bg-active"},[N(T,{"text-xl":"",icon:"i-carbon-overflow-menu-vertical",title:"More tabs","show-title":!1}),b("div",Zme,[b("span",Kme,Ee(y(C).length),1)])],512)]),_:1})):se("",!0),N(E,{minimized:!y(l),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,Wme)],512)}}}),qme="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20id='svg2'%20version='1.1'%20inkscape:version='0.91%20r13725'%20xml:space='preserve'%20width='375'%20height='375'%20viewBox='0%200%20375%20375'%20sodipodi:docname='vue-logo.svg'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata8'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs6'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1017'%20id='namedview4'%20showgrid='false'%20inkscape:zoom='0.62933333'%20inkscape:cx='187.5'%20inkscape:cy='187.5'%20inkscape:window-x='0'%20inkscape:window-y='30'%20inkscape:window-maximized='1'%20inkscape:current-layer='g10'%20/%3e%3cg%20id='g10'%20inkscape:groupmode='layer'%20inkscape:label='logo'%20transform='matrix(1.25,0,0,-1.25,0,375)'%3e%3cg%20id='g12'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-120.829,0%20-22.669,-170.017%2075.491,0%200,0%20Z'%20style='fill:%2341b883;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path14'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3cg%20id='g16'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-81.565,0%20-22.669,-102.01%2036.227,0%200,0%20Z'%20style='fill:%2334495e;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path18'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Qme={class:"h-screen w-screen $ui-fcc flex-col"},Jme={class:"outer"},e9e={class:"inner"},t9e=["src"],r9e=ge({__name:"AppConnecting",setup(t){return(r,e)=>(M(),x("div",Qme,[b("div",Jme,[b("div",e9e,[b("img",{src:y(qme),class:"max-w-18",alt:"Vue logo"},null,8,t9e)])]),Qe(r.$slots,"default",{},void 0,!0)]))}}),Zb=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},n9e=Zb(r9e,[["__scopeId","data-v-56eba732"]]),tG=Oi([]),rG=G(null);U(()=>tG.value.find(t=>t.id===rG.value));function tI(){const{copy:t,copied:r}=uj();return{copy:(n,i={})=>{const{silent:o=!1,type:a=""}=i;t(n).then(()=>{o||Z6({message:"Copied to clipboard",type:"success",duration:3e3})}).catch(()=>{o||Z6({message:"Failed to copy to clipboard",type:"error",duration:3e3})})},copied:r}}const i9e={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},o9e=ge({__name:"App",setup(t){YA();const r=ac(),e=Xd(),{connected:n,clientConnected:i,activeAppRecordId:o,appRecords:a}=Ca(),s=gr,l=U(()=>n.value&&i.value),c=U(()=>e.path.startsWith("/__")||e.path==="/"),u=U(()=>s.value.expandSidebar),g=U(()=>s.value.splitScreen.enabled),h=U({get:()=>s.value.splitScreen.size,set:A=>s.value.splitScreen.size=A});wn(()=>{const A=gr.value.scale;document.documentElement.style.fontSize=`${A*15}px`}),ka(()=>{wn(()=>{Ae.value.emit("update-client-state",{minimizePanelInteractive:gr.value.minimizePanelInteractive,closeOnOutsideClick:gr.value.interactionCloseOnOutsideClick,showFloatingPanel:gr.value.showPanel})})}),et(l,A=>{A&&(r.replace(s.value.isFirstVisit?"/":s.value.route),r.afterEach(()=>{const I=e.path;I.includes("__")||(s.value.route=I)}))},{immediate:!0}),oi("keydown",A=>{A.code==="KeyD"&&A.altKey&&A.shiftKey&&Ae.value.emit("toggle-panel")}),wn(()=>{tG.value=a.value,rG.value=o.value}),ka(()=>{Ae.value.initDevToolsServerListener(),Ae.value.checkVueInspectorDetected().then(A=>{A&&(DA.value=!0,kS(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{Ae.value.emit("toggle-panel",!1),await Ae.value.enableVueInspector()}}]))})});function d(){r.push("/overview").then(()=>{IF()})}ob(()=>{Ae.functions.on(Dt.ACTIVE_APP_UNMOUNTED,d)});const{copy:f}=tI(),C=hue({});kS(()=>[...C.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{Ae.value.emit("toggle-panel",!1);const{sRGBHex:A}=await C.open()||{};A&&f(A)}}]:[]]),gi(()=>{ka(()=>{Ae.value.toggleClientConnected(!0)})}),cn(()=>{Ae.value.toggleClientConnected(!1),Ae.functions.off(Dt.ACTIVE_APP_UNMOUNTED,d)});function v(A){const{host:I,visible:p}=A;Ae.value.updateDevToolsClientDetected({[I]:p})}return(A,I)=>{const p=n9e,m=Xme,w=_o("RouterView"),_=Tme,k=eme;return M(),x("main",i9e,[y(l)?(M(),x("div",{key:1,class:Te(["h-full of-auto transition-base",y(c)?"flex":y(u)?"grid grid-cols-[250px_1fr]":"grid grid-cols-[50px_1fr]"]),"h-full":"","h-screen":"","of-hidden":"","font-sans":"","bg-base":""},[y(c)?se("",!0):(M(),ie(m,{key:0,"of-x-hidden":"","of-y-auto":"",onToggleDevtoolsClientVisible:v})),N(y(gc),{"h-full":"","of-hidden":"",onResize:I[0]||(I[0]=S=>h.value=S.map(E=>E.size))},{default:W(()=>[N(y(Pn),{"h-full":"",class:"of-auto!","min-size":"10",size:y(h)[0]},{default:W(()=>[N(w)]),_:1},8,["size"]),!y(c)&&y(g)?(M(),ie(y(Pn),{key:0,relative:"","h-full":"",class:"of-auto!",size:y(h)[1]},{default:W(()=>[N(_)]),_:1},8,["size"])):se("",!0)]),_:1})],2)):(M(),ie(p,{key:0})),N(k)])}}}),a9e=ge({__name:"components",setup(t){function r(){Ae.value.emit("toggle-panel",!1)}function e(){Ae.value.emit("toggle-panel",!0)}return(n,i)=>(M(),ie(y(Y4e),{onOpenInEditor:y(Xh),onOnInspectComponentStart:r,onOnInspectComponentEnd:e},null,8,["onOpenInEditor"]))}}),s9e={},l9e={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c9e=hB('<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 198" width="128" height="128"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>',2),u9e=[c9e];function g9e(t,r){return M(),x("svg",l9e,u9e)}const nG=Zb(s9e,[["render",g9e]]),h9e="7.4.4",d9e={"h-full":"","w-full":"",flex:"","of-auto":""},f9e={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},C9e=b("div",{"flex-auto":""},null,-1),v9e={flex:"~ col","mt-20":"","items-center":""},A9e={flex:"~","mt--10":"","items-center":"","justify-center":""},I9e={key:0,mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},p9e=b("span",{op40:""}," Vue DevTools ",-1),m9e={op40:""},y9e={flex:"~ gap2 wrap"},b9e={p4:"","theme-card-green":"",flex:"~ col auto"},w9e=b("div",{"i-logos-vue":"","text-3xl":""},null,-1),$9e=b("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),_9e=b("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),M9e={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},z9e=b("a",{href:"https://github.com/vuejs/devtools-next",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[b("div",{"i-carbon-star":""}),ze(" Star on GitHub ")],-1),E9e=b("a",{href:"https://github.com/vuejs/devtools-next/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[b("div",{"i-carbon-data-enrichment":""}),ze(" Ideas & Suggestions ")],-1),S9e=b("a",{href:"https://github.com/vuejs/devtools-next/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[b("div",{"i-carbon-plan":""}),ze(" Project Roadmap ")],-1),T9e=b("a",{href:"https://github.com/vuejs/devtools-next/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[b("div",{"i-carbon-debug":""}),ze(" Bug Reports ")],-1),L9e=b("div",{"i-carbon-settings":""},null,-1),k9e=b("div",{"flex-auto":""},null,-1),O9e={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},H9e=b("span",null,"+",-1),x9e=b("span",null,"+",-1),V9e={key:0,flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},P9e=b("span",null,"+",-1),R9e=b("span",null,"+",-1),D9e=b("span",null,"+",-1),N9e=b("span",null,"+",-1),B9e=ge({__name:"overview",setup(t){const{vueVersion:r}=Ca(),e=G(1),n=G(0);function i(s){let l=0;for(const c of s)l++,c.children?.length&&(l+=i(c.children));return l}function o(s){e.value=s?.routes?.length||1}function a(s){const l=Zr(s);l.inspectorId==="components"&&(n.value=i(l.rootNodes))}return ob(()=>{Ae.value.getRouterInfo().then(s=>{e.value=s?.routes?.length||1}),Ae.functions.on(Dt.ROUTER_INFO_UPDATED,o),Ae.value.getInspectorTree({inspectorId:"components",filter:""}).then(s=>{const l=Zr(s);n.value=i(l)})}),Ae.functions.on(Dt.INSPECTOR_TREE_UPDATED,a),cn(()=>{Ae.functions.off(Dt.INSPECTOR_TREE_UPDATED,a),Ae.functions.off(Dt.ROUTER_INFO_UPDATED,o)}),(s,l)=>{const c=nG,u=_o("RouterLink");return M(),x("div",d9e,[b("div",f9e,[C9e,b("div",v9e,[b("div",A9e,[N(c,{"h-18":""})]),y(sa)?se("",!0):(M(),x("div",I9e,[p9e,b("code",m9e,"v"+Ee(y(h9e)),1)]))]),b("div",y9e,[b("div",b9e,[w9e,b("code",null,"v"+Ee(y(r)),1)]),N(u,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:W(()=>[$9e,b("div",null,Ee(y(e))+" pages",1)]),_:1}),y(n)?(M(),ie(u,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:W(()=>[_9e,b("div",null,Ee(y(n))+" components",1)]),_:1})):se("",!0)]),b("div",M9e,[z9e,E9e,S9e,T9e,N(u,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:W(()=>[L9e,ze(" Settings ")]),_:1})]),k9e,b("div",O9e,[ze(" Press "),y(k_)()?(M(),x(Se,{key:0},[N(y(ct),null,{default:W(()=>[ze(" ⌘ Command ")]),_:1}),H9e,N(y(ct),null,{default:W(()=>[ze(" K ")]),_:1})],64)):(M(),x(Se,{key:1},[N(y(ct),null,{default:W(()=>[ze(" Alt ")]),_:1}),x9e,N(y(ct),null,{default:W(()=>[ze(" K ")]),_:1})],64)),ze(" to toggle Command Palette ")]),!y(Rd)&&!y(sa)?(M(),x("div",V9e,[ze(" Press "),y(k_)()?(M(),x(Se,{key:0},[N(y(ct),null,{default:W(()=>[ze(" ⇧ Shift ")]),_:1}),P9e,N(y(ct),null,{default:W(()=>[ze(" ⌥ Option ")]),_:1}),R9e,N(y(ct),null,{default:W(()=>[ze(" D ")]),_:1})],64)):(M(),x(Se,{key:1},[N(y(ct),null,{default:W(()=>[ze(" Shift ")]),_:1}),D9e,N(y(ct),null,{default:W(()=>[ze(" Alt ")]),_:1}),N9e,N(y(ct),null,{default:W(()=>[ze(" D ")]),_:1})],64)),ze(" to toggle DevTools ")])):se("",!0)])])}}}),F9e=ge({__name:"pinia",setup(t){return(r,e)=>(M(),ie(y(p4e)))}}),j9e=ge({__name:"router",setup(t){const{registeredInspector:r}=YU(),e=U(()=>r.value?.find(i=>i.packageName==="vue-router")),n=U(()=>e.value?.id);return(i,o)=>(M(),ie(y(Mpe),{id:y(n)},null,8,["id"]))}}),U9e={"p-2":""},G9e={class:"flex items-center justify-between"},W9e=b("span",{class:"font-500"},"Route meta detail",-1),Z9e=ge({__name:"RouteMetaDetail",props:{meta:{}},emits:["close"],setup(t){return(r,e)=>(M(),x("div",U9e,[b("div",G9e,[W9e,b("div",{class:"i-carbon-close cursor-pointer p1 $ui-text",onClick:e[0]||(e[0]=n=>r.$emit("close"))})]),N(y(Mb),{code:JSON.stringify(r.meta,null,2),lang:"json",lines:""},null,8,["code"])]))}}),K9e={flex:"~ gap-3","items-center":""},Kb=ge({__name:"IconTitle",props:{icon:{},text:{}},setup(t){return(r,e)=>(M(),x("div",K9e,[r.icon?(M(),x("div",{key:0,class:Te(r.icon)},null,2)):se("",!0),Qe(r.$slots,"default",{},()=>[b("div",null,Ee(r.text),1)])]))}}),iG=t=>(Tu("data-v-d09fbc98"),t=t(),Lu(),t),Y9e=["open"],X9e={"text-base":""},q9e={key:0,"text-sm":"",op50:""},Q9e=iG(()=>b("div",{class:"flex-auto"},null,-1)),J9e=iG(()=>b("div",{class:"x-divider"},null,-1)),e6e=ge({__name:"SectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){const e=va(t,"open",void 0,{passive:!0});function n(i){e.value=i.target.open}return(i,o)=>{const a=Kb,s=Fy("lazy-show");return M(),x(Se,null,[b("details",{open:y(e),onToggle:n},[b("summary",{class:Te(["cursor-pointer select-none hover:bg-active p4",i.collapse?"":"pointer-events-none"])},[N(a,{icon:i.icon,text:i.text,"text-xl":"",transition:"",class:Te(y(e)?"op100":"op60")},{default:W(()=>[b("div",null,[b("div",X9e,[Qe(i.$slots,"text",{},()=>[ze(Ee(i.text),1)],!0)]),i.description||i.$slots.description?(M(),x("div",q9e,[Qe(i.$slots,"description",{},()=>[ze(Ee(i.description),1)],!0)])):se("",!0)]),Q9e,Qe(i.$slots,"actions",{},void 0,!0),i.collapse?(M(),ie(y(Ft),{key:0,icon:"i-carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"",op75:"",transition:"","duration-500":"","text-base":""})):se("",!0)]),_:3},8,["icon","text","class"])],2),Vt((M(),x("div",{class:Te(["flex flex-col flex-gap2 pb6 pt2",typeof i.padding=="string"?i.padding:i.padding?"px4":""])},[Qe(i.$slots,"details",{},void 0,!0),b("div",{class:Te([i.containerClass,"mt1"])},[Qe(i.$slots,"default",{},void 0,!0)],2),Qe(i.$slots,"footer",{},void 0,!0)],2)),[[s,y(e)]])],40,Y9e),J9e],64)}}}),oG=Zb(e6e,[["__scopeId","data-v-d09fbc98"]]),t6e={block:"","cursor-pointer":""},r6e={p2:""},n6e=["onSubmit"],i6e=b("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),o6e={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},a6e={key:1},s6e=ge({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(t,{emit:r}){const e=t,n=r;function i(u){return u.split(/(:\w+[?*+]?(?:\([^)]*\))?[?*+]?)/).filter(Boolean)}const o=G([]),a=U(()=>i(e.route.path));wn(()=>{o.value=Array.from({length:a.value.length},()=>"")});const s=U(()=>a.value.map((u,g)=>u[0]===":"?o.value[g]:u).join("").replace(/\/+/g,"/")),l=U(()=>e.route.path.includes(":"));function c(){n("navigate",s.value)}return(u,g)=>y(l)?(M(),ie(y(tu),{key:1},{popper:W(({hide:h})=>[b("div",r6e,[b("form",{flex:"~ col",onSubmit:ni(()=>{c(),h()},["prevent"])},[y(l)?(M(),x(Se,{key:0},[i6e,b("div",o6e,[(M(!0),x(Se,null,It(y(a),(d,f)=>(M(),x(Se,{key:f},[d[0]===":"?(M(),ie(y(Za),{key:0,modelValue:y(o)[f],"onUpdate:modelValue":C=>y(o)[f]=C,"n-sm":"","w-20":"",placeholder:d.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(M(),x("span",a6e,Ee(d),1))],64))),128))])],64)):se("",!0),N(y(ct),{block:"",type:"primary"},{default:W(()=>[ze(" Navigate ")]),_:1})],40,n6e)])]),default:W(()=>[b("code",t6e,[(M(!0),x(Se,null,It(y(a),(h,d)=>(M(),x("span",{key:d,class:Te(h[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},Ee(h[0]===":"?h.slice(1):h),3))),128))])]),_:1})):(M(),x("button",{key:0,onClick:c},[b("code",null,Ee(u.route.path),1)]))}}),l6e={"w-full":""},c6e={border:"b base","px-3":""},u6e=b("th",{"text-left":""},null,-1),g6e=b("th",{"text-left":""}," Route Path ",-1),h6e=b("th",{"text-left":""}," Name ",-1),d6e={key:0,"text-left":""},f6e={"w-20":"","pr-1":""},C6e={flex:"","items-center":"","justify-end":""},v6e={"text-sm":""},A6e={flex:"inline gap3","items-center":""},I6e={op0:"","group-hover:op100":"",flex:"~ gap1"},p6e=["onClick"],m6e=b("div",{"i-carbon-script-reference":""},null,-1),y6e=[m6e],b6e={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},w6e={key:0,"w-50":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:"",hover:"text-primary op100"},$6e=["title","onClick"],_6e=ge({__name:"RoutesTable",props:{pages:{},matched:{},matchedPending:{}},emits:["navigate","selectMeta"],setup(t){const r=t,e=U(()=>[...r.pages].sort((s,l)=>s.path.localeCompare(l.path))),n=U(()=>DA.value),i=Ca();function o(s,l=0){const c=JSON.stringify(s,null,l);return c==="{}"?"-":c}const a=U(()=>e.value.some(s=>Object.keys(s.meta)?.length));return(s,l)=>{const c=s6e;return M(),x("div",null,[b("table",l6e,[b("thead",c6e,[b("tr",null,[u6e,g6e,h6e,y(a)?(M(),x("th",d6e," Route Meta ")):se("",!0)])]),b("tbody",null,[(M(!0),x(Se,null,It(y(e),u=>(M(),x("tr",{key:u.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[b("td",f6e,[b("div",C6e,[s.matched.find(g=>g.name===u.name)?(M(),ie(y(GE),{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):s.matchedPending.find(g=>g.name===u.name)?(M(),ie(y(GE),{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):se("",!0)])]),b("td",v6e,[b("div",A6e,[N(c,{route:u,class:Te(s.matched.find(g=>g.name===u.name)?"text-primary-400":s.matchedPending.find(g=>g.name===u.name)?"text-teal":""),onNavigate:l[0]||(l[0]=g=>s.$emit("navigate",g))},null,8,["route","class"]),b("div",I6e,[u.meta?.file&&y(i).vitePluginDetected.value&&y(n)?(M(),x("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary-400",title:"Open in editor",onClick:g=>y(Xh)(u.meta?.file)},y6e,8,p6e)):se("",!0)])])]),b("td",b6e,Ee(u.name),1),y(a)?(M(),x("td",w6e,[b("span",{"inline-block":"","w-50":"","cursor-pointer":"","overflow-hidden":"","text-ellipsis":"",title:o(u.meta,2),onClick:()=>s.$emit("selectMeta",u.meta)},Ee(o(u.meta)),9,$6e)])):se("",!0)]))),128))])])])}}}),M6e={block:"","h-screen":"","of-auto":""},z6e={"h-full":"",class:"grid grid-rows-[auto_1fr]"},E6e={border:"b base",flex:"~ col gap1",px4:"",py3:""},S6e={key:1,op50:""},T6e=b("span",null,[ze("Press "),b("b",{"font-bold":""},"Enter"),ze(" to navigate")],-1),L6e={key:0,"text-orange":"",op75:""},k6e={key:1,op50:""},O6e=ge({__name:"pages",setup(t){const r=G(""),e=G(null),n=G([]),i=U(()=>r.value===e.value?.path?[]:n.value),o=G([]),a=G();function s(u){o.value=u.routes,e.value=u.currentRoute,r.value=e.value?.path??"/"}function l(){i.value.length&&c(r.value)}function c(u){Ae.value.navigate(u)}return ob(()=>{Ae.value.getRouterInfo().then(u=>{s(u)}),Ae.functions.on(Dt.ROUTER_INFO_UPDATED,s)}),aj(r,()=>{r.value!==e.value?.path&&Ae.value.getMatchedRoutes(r.value).then(u=>{n.value=u})}),cn(()=>{Ae.functions.off(Dt.ROUTER_INFO_UPDATED,s)}),(u,g)=>{const h=_6e,d=oG,f=Z9e;return M(),x("div",M6e,[b("div",z6e,[b("div",E6e,[b("div",null,[(M(),x("span",S6e,"Current route"))]),N(y(Za),{modelValue:y(r),"onUpdate:modelValue":g[0]||(g[0]=C=>nt(r)?r.value=C:null),"left-icon":"i-carbon-direction-right-01 scale-y--100",class:Te(y(e)?.path===y(r)?"":y(i).length?"text-green!":"text-orange!"),onKeydown:pB(l,["enter"])},null,8,["modelValue","class"]),b("div",null,[y(e)?.path!==y(r)?(M(),x(Se,{key:0},[T6e,y(i).length?se("",!0):(M(),x("span",L6e," (no match)"))],64)):(M(),x("span",k6e,"Edit path above to navigate"))])]),N(y(gc),{class:"of-hidden"},{default:W(()=>[N(y(Pn),{size:"70",class:"of-auto!"},{default:W(()=>[N(d,{icon:"i-carbon-tree-view-alt",text:"All Routes",description:`${y(o).length} routes registered in your application`,padding:!1},{default:W(()=>[y(o).length?(M(),ie(h,{key:0,pages:y(o),matched:y(e)?.matched??[],"matched-pending":y(i),onNavigate:c,onSelectMeta:g[1]||(g[1]=C=>a.value=C)},null,8,["pages","matched","matched-pending"])):se("",!0)]),_:1},8,["description"])]),_:1}),y(a)?(M(),ie(y(Pn),{key:0,size:"30",class:"of-auto!"},{default:W(()=>[N(f,{meta:y(a),onClose:g[2]||(g[2]=C=>a.value=void 0)},null,8,["meta"])]),_:1})):se("",!0)]),_:1})])])}}}),H6e={key:0,relative:"","code-block":""},x6e={flex:"~ wrap","w-full":""},V6e=["onClick"],P6e=b("div",{border:"b base","flex-auto":""},null,-1),R6e={flex:"~ gap-2",px3:"",pb3:""},D6e=ge({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(t){const r=t,e=Oi(r.codeSnippets[0]),{copy:n}=tI(),i=U(()=>e.value?.lang||"text");return wn(()=>{r.codeSnippets.includes(e.value)||(e.value=r.codeSnippets[0])}),(o,a)=>o.codeSnippets.length?(M(),x("div",H6e,[b("div",x6e,[(M(!0),x(Se,null,It(o.codeSnippets,(s,l)=>(M(),x("button",{key:l,px4:"",py2:"",border:"r base",hover:"bg-active",class:Te(s===y(e)?"":"border-b"),onClick:c=>e.value=s},[b("div",{class:Te(s===y(e)?"":"op30"),"font-mono":""},Ee(s.name),3)],10,V6e))),128)),P6e]),y(e)?(M(),x(Se,{key:0},[N(y(Mb),{code:y(e).code,lang:y(i),lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),b("div",R6e,[N(y(ct),{onClick:a[0]||(a[0]=s=>y(n)(y(e).code,{silent:!1,type:o.eventType||`code-snippet-${y(e).name}`}))},{icon:W(()=>[Qe(o.$slots,"i-carbon-copy")]),default:W(()=>[ze(" Copy ")]),_:3}),y(e)?.docs?(M(),ie(y(ct),{key:0,to:y(e).docs,target:"_blank"},{icon:W(()=>[Qe(o.$slots,"i-carbon-catalog")]),default:W(()=>[ze(" Docs ")]),_:3},8,["to"])):se("",!0)])],64)):se("",!0)])):se("",!0)}}),N6e=["title"],B6e=ge({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean}},setup(t){const r=t,e=U(()=>({path:r.filepath})),{copy:n}=tI();return(i,o)=>Vt((M(),x("button",{"font-mono":"","hover:underline":"",class:Te(i.lineBreak?"":"ws-nowrap of-hidden truncate"),title:i.filepath,onClick:o[0]||(o[0]=a=>y(n)(i.filepath))},[ze(Ee(y(e).path),1)],10,N6e)),[[y(pr),"Copy file path"]])}}),HS=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function F6e(t,r){r?r={...HS,...r}:r=HS;const e=aG(r);return e.dispatch(t),e.toString()}const j6e=Object.freeze(["prototype","__proto__","constructor"]);function aG(t){let r="",e=new Map;const n=i=>{r+=i};return{toString(){return r},getContext(){return e},dispatch(i){return t.replacer&&(i=t.replacer(i)),this[i===null?"null":typeof i](i)},object(i){if(i&&typeof i.toJSON=="function")return this.object(i.toJSON());const o=Object.prototype.toString.call(i);let a="";const s=o.length;s<10?a="unknown:["+o+"]":a=o.slice(8,s-1),a=a.toLowerCase();let l=null;if((l=e.get(i))===void 0)e.set(i,e.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(i))return n("buffer:"),n(i.toString("utf8"));if(a!=="object"&&a!=="function"&&a!=="asyncfunction")this[a]?this[a](i):t.ignoreUnknown||this.unkown(i,a);else{let c=Object.keys(i);t.unorderedObjects&&(c=c.sort());let u=[];t.respectType!==!1&&!xS(i)&&(u=j6e),t.excludeKeys&&(c=c.filter(h=>!t.excludeKeys(h)),u=u.filter(h=>!t.excludeKeys(h))),n("object:"+(c.length+u.length)+":");const g=h=>{this.dispatch(h),n(":"),t.excludeValues||this.dispatch(i[h]),n(",")};for(const h of c)g(h);for(const h of u)g(h)}},array(i,o){if(o=o===void 0?t.unorderedArrays!==!1:o,n("array:"+i.length+":"),!o||i.length<=1){for(const l of i)this.dispatch(l);return}const a=new Map,s=i.map(l=>{const c=aG(t);c.dispatch(l);for(const[u,g]of c.getContext())a.set(u,g);return c.toString()});return e=a,s.sort(),this.array(s,!1)},date(i){return n("date:"+i.toJSON())},symbol(i){return n("symbol:"+i.toString())},unkown(i,o){if(n(o),!!i&&(n(":"),i&&typeof i.entries=="function"))return this.array(Array.from(i.entries()),!0)},error(i){return n("error:"+i.toString())},boolean(i){return n("bool:"+i)},string(i){n("string:"+i.length+":"),n(i)},function(i){n("fn:"),xS(i)?this.dispatch("[native]"):this.dispatch(i.toString()),t.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(i.name)),t.respectFunctionProperties&&this.object(i)},number(i){return n("number:"+i)},xml(i){return n("xml:"+i.toString())},null(){return n("Null")},undefined(){return n("Undefined")},regexp(i){return n("regex:"+i.toString())},uint8array(i){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(i))},uint8clampedarray(i){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(i))},int8array(i){return n("int8array:"),this.dispatch(Array.prototype.slice.call(i))},uint16array(i){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(i))},int16array(i){return n("int16array:"),this.dispatch(Array.prototype.slice.call(i))},uint32array(i){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(i))},int32array(i){return n("int32array:"),this.dispatch(Array.prototype.slice.call(i))},float32array(i){return n("float32array:"),this.dispatch(Array.prototype.slice.call(i))},float64array(i){return n("float64array:"),this.dispatch(Array.prototype.slice.call(i))},arraybuffer(i){return n("arraybuffer:"),this.dispatch(new Uint8Array(i))},url(i){return n("url:"+i.toString())},map(i){n("map:");const o=[...i];return this.array(o,t.unorderedSets!==!1)},set(i){n("set:");const o=[...i];return this.array(o,t.unorderedSets!==!1)},file(i){return n("file:"),this.dispatch([i.name,i.size,i.type,i.lastModfied])},blob(){if(t.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported
37
37
  Use "options.replacer" or "options.ignoreUnknown"
38
38
  `)},domwindow(){return n("domwindow")},bigint(i){return n("bigint:"+i.toString())},process(){return n("process")},timer(){return n("timer")},pipe(){return n("pipe")},tcp(){return n("tcp")},udp(){return n("udp")},tty(){return n("tty")},statwatcher(){return n("statwatcher")},securecontext(){return n("securecontext")},connection(){return n("connection")},zlib(){return n("zlib")},context(){return n("context")},nodescript(){return n("nodescript")},httpparser(){return n("httpparser")},dataview(){return n("dataview")},signal(){return n("signal")},fsevent(){return n("fsevent")},tlswrap(){return n("tlswrap")}}}const sG="[native code] }",U6e=sG.length;function xS(t){return typeof t!="function"?!1:Function.prototype.toString.call(t).slice(-U6e)===sG}class Qs{constructor(r,e){r=this.words=r||[],this.sigBytes=e===void 0?r.length*4:e}toString(r){return(r||G6e).stringify(this)}concat(r){if(this.clamp(),this.sigBytes%4)for(let e=0;e<r.sigBytes;e++){const n=r.words[e>>>2]>>>24-e%4*8&255;this.words[this.sigBytes+e>>>2]|=n<<24-(this.sigBytes+e)%4*8}else for(let e=0;e<r.sigBytes;e+=4)this.words[this.sigBytes+e>>>2]=r.words[e>>>2];return this.sigBytes+=r.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Qs([...this.words])}}const G6e={stringify(t){const r=[];for(let e=0;e<t.sigBytes;e++){const n=t.words[e>>>2]>>>24-e%4*8&255;r.push((n>>>4).toString(16),(n&15).toString(16))}return r.join("")}},W6e={stringify(t){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=[];for(let n=0;n<t.sigBytes;n+=3){const i=t.words[n>>>2]>>>24-n%4*8&255,o=t.words[n+1>>>2]>>>24-(n+1)%4*8&255,a=t.words[n+2>>>2]>>>24-(n+2)%4*8&255,s=i<<16|o<<8|a;for(let l=0;l<4&&n*8+l*6<t.sigBytes*8;l++)e.push(r.charAt(s>>>6*(3-l)&63))}return e.join("")}},Z6e={parse(t){const r=t.length,e=[];for(let n=0;n<r;n++)e[n>>>2]|=(t.charCodeAt(n)&255)<<24-n%4*8;return new Qs(e,r)}},K6e={parse(t){return Z6e.parse(unescape(encodeURIComponent(t)))}};class Y6e{constructor(){this._data=new Qs,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new Qs,this._nDataBytes=0}_append(r){typeof r=="string"&&(r=K6e.parse(r)),this._data.concat(r),this._nDataBytes+=r.sigBytes}_doProcessBlock(r,e){}_process(r){let e,n=this._data.sigBytes/(this.blockSize*4);r?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const i=n*this.blockSize,o=Math.min(i*4,this._data.sigBytes);if(i){for(let a=0;a<i;a+=this.blockSize)this._doProcessBlock(this._data.words,a);e=this._data.words.splice(0,i),this._data.sigBytes-=o}return new Qs(e,o)}}class X6e extends Y6e{update(r){return this._append(r),this._process(),this}finalize(r){r&&this._append(r)}}const VS=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],q6e=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],tl=[];class Q6e extends X6e{constructor(){super(...arguments),this._hash=new Qs([...VS])}reset(){super.reset(),this._hash=new Qs([...VS])}_doProcessBlock(r,e){const n=this._hash.words;let i=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=n[6],g=n[7];for(let h=0;h<64;h++){if(h<16)tl[h]=r[e+h]|0;else{const p=tl[h-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,w=tl[h-2],_=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;tl[h]=m+tl[h-7]+_+tl[h-16]}const d=l&c^~l&u,f=i&o^i&a^o&a,C=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),v=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),A=g+v+d+q6e[h]+tl[h],I=C+f;g=u,u=c,c=l,l=s+A|0,s=a,a=o,o=i,i=A+I|0}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+g|0}finalize(r){super.finalize(r);const e=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(e/4294967296),this._data.words[(n+64>>>9<<4)+15]=e,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function J6e(t){return new Q6e().finalize(t).toString(W6e)}function e8e(t,r={}){const e=typeof t=="string"?t:F6e(t,r);return J6e(e).slice(0,10)}const t8e=ge({__name:"AssetFontPreview",props:{asset:{}},setup(t){const r=t,e=U(()=>`devtools-assets-${e8e(r.asset)}`);return Iue(U(()=>`
39
39
  @font-face {