'+(r?t:A(t,!0))+`
-`:""+(r?t:A(t,!0))+`
-`}blockquote({tokens:s}){return`-${this.parser.parse(s)}-`}html({text:s}){return s}def(s){return""}heading({tokens:s,depth:e}){return`
${this.parser.parseInline(s)}
-`}table(s){let e="",r="";for(let t=0;t${A(s,!0)}`}br(s){return"An error occurred:
"+A(r.message+"",!0)+"";return e?Promise.resolve(n):n}if(e)return Promise.reject(r);throw r}}},B=new Ct;function f(s,e){return B.parse(s,e)}f.options=f.setOptions=function(s){return B.setOptions(s),f.defaults=B.defaults,Se(f.defaults),f};f.getDefaults=ne;f.defaults=E;f.use=function(...s){return B.use(...s),f.defaults=B.defaults,Se(f.defaults),f};f.walkTokens=function(s,e){return B.walkTokens(s,e)};f.parseInline=B.parseInline;f.Parser=R;f.parser=R.parse;f.Renderer=W;f.TextRenderer=ue;f.Lexer=S;f.lexer=S.lex;f.Tokenizer=J;f.Hooks=j;f.parse=f;f.options;f.setOptions;f.use;f.walkTokens;f.parseInline;R.parse;S.lex;const Pt=De({__name:"SkillEditor",props:{mode:{},slug:{},initialName:{},initialDescription:{},initialAllowedTools:{},initialArgumentHint:{},initialModel:{},initialUserInvocable:{type:Boolean},initialDisableModelInvocation:{type:Boolean},initialContext:{},initialAgent:{},initialHooks:{},initialBody:{},availableTools:{},availableModels:{}},setup(s,{expose:e}){e();const r=s,n=r.availableTools??["Bash","Read","Write","Edit","Glob","Grep","WebFetch","WebSearch","Task","NotebookEdit"],t=r.availableModels??[{id:"claude-opus-4-6",display_name:"Claude Opus 4.6"},{id:"claude-sonnet-4-5-20250929",display_name:"Claude Sonnet 4.5"},{id:"claude-haiku-4-5-20251001",display_name:"Claude Haiku 4.5"}],i=y(r.initialName||""),l=y(r.initialDescription||""),o=y(r.initialArgumentHint||""),a=y(r.initialModel||""),u=y(r.initialUserInvocable??!0),c=y(r.initialDisableModelInvocation??!1),d=y(r.initialContext||""),h=y(r.initialAgent||""),x=y(r.initialHooks||""),k=y(r.initialBody||""),v=y(!1),_=y(""),T=y(new Set(r.initialAllowedTools?r.initialAllowedTools.split(",").map(b=>b.trim()).filter(Boolean):[]));function U(b){T.value.has(b)?T.value.delete(b):T.value.add(b),T.value=new Set(T.value)}const M=Oe(()=>r.mode==="edit"&&r.slug?r.slug:i.value.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,64)||"my-skill");let q=y(""),z;He(k,b=>{clearTimeout(z),z=setTimeout(async()=>{q.value=await f(b||"")},300)},{immediate:!0});function I(){const b=[...T.value],m=["---"];if(m.push(`name: ${i.value}`),l.value&&m.push(`description: ${l.value}`),o.value&&m.push(`argument-hint: ${o.value}`),b.length>0&&m.push(`allowed-tools: ${b.join(", ")}`),a.value&&m.push(`model: ${a.value}`),u.value===!1&&m.push("user-invocable: false"),c.value&&m.push("disable-model-invocation: true"),d.value&&m.push(`context: ${d.value}`),h.value&&m.push(`agent: ${h.value}`),x.value.trim())try{const D=JSON.parse(x.value.trim());m.push(`hooks: ${JSON.stringify(D)}`)}catch{}return m.push("---"),m.join(` -`)+` - -`+k.value.trim()+` -`}async function _e(){v.value=!0,_.value="";try{const b=I();if(r.mode==="create"){const m=await fetch("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:M.value,content:b})});if(!m.ok){const D=await m.json();throw new Error(D.error||"Failed to create skill")}window.location.href=`/${M.value}`}else{const m=await fetch(`/api/skills/${r.slug}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:b})});if(!m.ok){const D=await m.json();throw new Error(D.error||"Failed to update skill")}window.location.href=`/${r.slug}`}}catch(b){_.value=b instanceof Error?b.message:"Something went wrong"}finally{v.value=!1}}const he={props:r,AVAILABLE_TOOLS:n,AVAILABLE_MODELS:t,name:i,description:l,argumentHint:o,model:a,userInvocable:u,disableModelInvocation:c,context:d,agent:h,hooksJson:x,body:k,saving:v,error:_,selectedTools:T,toggleTool:U,computedSlug:M,get previewHtml(){return q},set previewHtml(b){q=b},get debounceTimer(){return z},set debounceTimer(b){z=b},buildContent:I,save:_e};return Object.defineProperty(he,"__isScriptSetup",{enumerable:!1,value:!0}),he}}),Lt={class:"grid gap-4 sm:grid-cols-2"},Bt={class:"mt-1.5 text-xs text-gray-600"},Et={class:"text-gray-500 font-mono"},_t={class:"flex flex-wrap gap-1.5 rounded-xl border border-white/[0.06] bg-[var(--color-surface-100)] px-3 py-2.5 min-h-[42px]"},Mt=["onClick"],qt={class:"grid gap-4 sm:grid-cols-3"},Dt=["value"],Ht={class:"flex flex-wrap gap-6"},Ot={class:"flex items-center gap-2.5 cursor-pointer group"},Zt={class:"flex items-center gap-2.5 cursor-pointer group"},Nt={class:"group"},jt={class:"mt-3"},Vt={class:"grid gap-4 lg:grid-cols-2"},Ut=["innerHTML"],Qt={class:"flex items-center gap-4 pt-2"},Ft=["disabled"],Gt={key:0,class:"h-4 w-4 animate-spin",fill:"none",viewBox:"0 0 24 24"},Jt={key:0,class:"text-sm text-red-400"};function Wt(s,e,r,n,t,i){return P(),C("form",{onSubmit:Me(n.save,["prevent"]),class:"space-y-6"},[p("div",Lt,[p("div",null,[e[11]||(e[11]=p("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},"Name",-1)),$(p("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>n.name=l),type:"text",required:"",placeholder:"My Awesome Skill",class:"w-full rounded-xl border border-white/[0.06] bg-[var(--color-surface-100)] px-4 py-2.5 text-sm text-white placeholder-gray-600 focus:border-[var(--color-accent-500)]/50 focus:outline-none focus:ring-1 focus:ring-[var(--color-accent-500)]/20 transition-all"},null,512),[[H,n.name]]),p("p",Bt,[e[10]||(e[10]=Q(" Slug: ",-1)),p("code",Et,O(n.computedSlug),1)])]),p("div",null,[e[12]||(e[12]=p("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},"Description",-1)),$(p("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>n.description=l),type:"text",placeholder:"Brief description of what this skill does",class:"w-full rounded-xl border border-white/[0.06] bg-[var(--color-surface-100)] px-4 py-2.5 text-sm text-white placeholder-gray-600 focus:border-[var(--color-accent-500)]/50 focus:outline-none focus:ring-1 focus:ring-[var(--color-accent-500)]/20 transition-all"},null,512),[[H,n.description]])])]),p("div",null,[e[13]||(e[13]=p("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},"Allowed Tools",-1)),p("div",_t,[(P(!0),C(ge,null,fe(n.AVAILABLE_TOOLS,l=>(P(),C("button",{key:l,type:"button",onClick:o=>n.toggleTool(l),class:Ze(["rounded-md px-2.5 py-1 text-xs font-medium transition-all",n.selectedTools.has(l)?"bg-[var(--color-accent-500)] text-white shadow-sm":"bg-white/[0.04] border border-white/[0.06] text-gray-500 hover:text-gray-300 hover:bg-white/[0.08]"])},O(l),11,Mt))),128))])]),p("div",qt,[p("div",null,[e[15]||(e[15]=p("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},"Model",-1)),$(p("select",{"onUpdate:modelValue":e[2]||(e[2]=l=>n.model=l),class:"w-full rounded-xl border border-white/[0.06] bg-[var(--color-surface-100)] px-4 py-2.5 text-sm text-white focus:border-[var(--color-accent-500)]/50 focus:outline-none focus:ring-1 focus:ring-[var(--color-accent-500)]/20 transition-all"},[e[14]||(e[14]=p("option",{value:""},"Default",-1)),(P(!0),C(ge,null,fe(n.AVAILABLE_MODELS,l=>(P(),C("option",{key:l.id,value:l.id},O(l.display_name),9,Dt))),128))],512),[[Y,n.model]])]),p("div",null,[e[16]||(e[16]=p("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},"Argument Hint",-1)),$(p("input",{"onUpdate:modelValue":e[3]||(e[3]=l=>n.argumentHint=l),type:"text",placeholder:"e.g.
'+(t?r:E(r,!0))+`
+`:""+(t?r:E(r,!0))+`
+`}blockquote({tokens:s}){return`+${this.parser.parse(s)}+`}html({text:s}){return s}def(s){return""}heading({tokens:s,depth:e}){return`
${this.parser.parseInline(s)}
+`}table(s){let e="",t="";for(let r=0;r${E(s,!0)}`}br(s){return"An error occurred:
"+E(t.message+"",!0)+"";return e?Promise.resolve(n):n}if(e)return Promise.reject(t);throw t}}},N=new Wt;function x(s,e){return N.parse(s,e)}x.options=x.setOptions=function(s){return N.setOptions(s),x.defaults=N.defaults,_e(x.defaults),x};x.getDefaults=me;x.defaults=H;x.use=function(...s){return N.use(...s),x.defaults=N.defaults,_e(x.defaults),x};x.walkTokens=function(s,e){return N.walkTokens(s,e)};x.parseInline=N.parseInline;x.Parser=C;x.parser=C.parse;x.Renderer=ie;x.TextRenderer=ze;x.Lexer=z;x.lexer=z.lex;x.Tokenizer=le;x.Hooks=W;x.parse=x;x.options;x.setOptions;x.use;x.walkTokens;x.parseInline;C.parse;z.lex;const Xt=lt({__name:"SkillEditor",props:{mode:{},slug:{},forkOf:{},initialName:{},initialDescription:{},initialAllowedTools:{},initialArgumentHint:{},initialModel:{},initialUserInvocable:{type:Boolean},initialDisableModelInvocation:{type:Boolean},initialContext:{},initialAgent:{},initialHooks:{},initialBody:{},initialAuthor:{},initialAuthorEmail:{},initialTags:{},availableTools:{},availableModels:{},availableTags:{}},setup(s,{expose:e}){e();const t=s,n=t.availableTools??["Bash","Read","Write","Edit","Glob","Grep","WebFetch","WebSearch","Task","NotebookEdit"],r=t.availableModels??[{id:"claude-opus-4-6",display_name:"Claude Opus 4.6"},{id:"claude-sonnet-4-5-20250929",display_name:"Claude Sonnet 4.5"},{id:"claude-haiku-4-5-20251001",display_name:"Claude Haiku 4.5"}],i=Q(()=>!!t.forkOf),l=m(t.initialName||""),c=m(t.initialDescription||""),a=m(t.initialArgumentHint||""),p=m(t.initialModel||""),u=m(t.initialUserInvocable??!0),g=m(t.initialDisableModelInvocation??!1),d=m(t.initialContext||""),w=m(t.initialAgent||""),b=m(t.initialHooks||""),y=m(t.initialTags?t.initialTags.split(",").map(h=>h.trim()).filter(Boolean):[]),I=m(""),F=m(!1),V=m(),U=t.availableTags?t.availableTags.split(",").map(h=>h.trim()).filter(Boolean):[],Z=m(t.initialBody||""),O=m(!1),B=m(""),ce=m(""),ue=m(""),pe=m(typeof localStorage<"u"&&localStorage.getItem("skillshere-token")||""),_=m(new Set(t.initialAllowedTools?t.initialAllowedTools.split(",").map(h=>h.trim()).filter(Boolean):[]));function Je(h){_.value.has(h)?_.value.delete(h):_.value.add(h),_.value=new Set(_.value)}const We=Q(()=>{const h=I.value.toLowerCase().trim(),k=new Set(y.value.map($=>$.toLowerCase())),R=U.filter($=>!k.has($.toLowerCase())&&(!h||$.toLowerCase().includes(h)));return h&&!k.has(h)&&!R.some($=>$.toLowerCase()===h)&&R.push(h),R}),Xe=h=>!U.some(k=>k.toLowerCase()===h.toLowerCase());function he(h){const k=h.trim().toLowerCase();k&&!y.value.some(R=>R.toLowerCase()===k)&&y.value.push(k),I.value="",V.value?.focus()}function Ke(h){y.value.splice(h,1)}function Ye(h){h.key==="Enter"||h.key===","?(h.preventDefault(),I.value.trim()&&he(I.value)):h.key==="Backspace"&&!I.value&&y.value.length&&y.value.pop()}let K;function et(){K=setTimeout(()=>{F.value=!1},200)}function tt(h){clearTimeout(K),he(h)}const Y=Q(()=>t.mode==="edit"&&t.slug?t.slug:l.value.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,64)||"my-skill"),rt=Q(()=>t.forkOf?Y.value===t.forkOf:!1),nt=Q(()=>Z.value.split(` +`).length);let de=m(""),ee;it(Z,h=>{clearTimeout(ee),ee=setTimeout(async()=>{de.value=await x(h||"")},300)},{immediate:!0});function Ce(){const h=[..._.value],k=["---"];if(k.push(`name: ${l.value}`),c.value&&k.push(`description: ${c.value}`),i.value?(ce.value&&k.push(`author: ${ce.value}`),ue.value&&k.push(`author-email: ${ue.value}`),k.push(`fork-of: ${t.forkOf}`)):(t.initialAuthor&&k.push(`author: ${t.initialAuthor}`),t.initialAuthorEmail&&k.push(`author-email: ${t.initialAuthorEmail}`)),a.value&&k.push(`argument-hint: ${a.value}`),h.length>0&&k.push(`allowed-tools: ${h.join(", ")}`),y.value.length>0&&k.push(`tags: ${y.value.join(", ")}`),p.value&&k.push(`model: ${p.value}`),u.value===!1&&k.push("user-invocable: false"),g.value&&k.push("disable-model-invocation: true"),d.value&&k.push(`context: ${d.value}`),w.value&&k.push(`agent: ${w.value}`),b.value.trim())try{const R=JSON.parse(b.value.trim());k.push(`hooks: ${JSON.stringify(R)}`)}catch{}return k.push("---"),k.join(` +`)+` + +`+Z.value.trim()+` +`}async function st(){O.value=!0,B.value="";try{const h=Ce(),k={"Content-Type":"application/json"};if(!i.value&&pe.value&&(k.Authorization=`Bearer ${pe.value}`),t.mode==="create"){const R=await fetch("/api/skills",{method:"POST",headers:k,body:JSON.stringify({slug:Y.value,content:h})});if(!R.ok){const $=await R.json();throw new Error($.error||"Failed to create skill")}window.location.href=`/${Y.value}`}else{const R=await fetch(`/api/skills/${t.slug}`,{method:"PUT",headers:k,body:JSON.stringify({content:h})});if(!R.ok){const $=await R.json();throw new Error($.error||"Failed to update skill")}window.location.href=`/${t.slug}`}}catch(h){B.value=h instanceof Error?h.message:"Something went wrong"}finally{O.value=!1}}const $e={props:t,AVAILABLE_TOOLS:n,AVAILABLE_MODELS:r,isFork:i,name:l,description:c,argumentHint:a,model:p,userInvocable:u,disableModelInvocation:g,context:d,agent:w,hooksJson:b,tags:y,tagQuery:I,tagSuggestionsOpen:F,tagInputEl:V,knownTags:U,body:Z,saving:O,error:B,forkAuthorName:ce,forkAuthorEmail:ue,authorToken:pe,selectedTools:_,toggleTool:Je,tagSuggestions:We,isNewTag:Xe,addTag:he,removeTag:Ke,onTagKeydown:Ye,get tagBlurTimer(){return K},set tagBlurTimer(h){K=h},onTagBlur:et,onTagSuggestionClick:tt,computedSlug:Y,slugMatchesOriginal:rt,bodyLines:nt,get previewHtml(){return de},set previewHtml(h){de=h},get debounceTimer(){return ee},set debounceTimer(h){ee=h},buildContent:Ce,save:st};return Object.defineProperty($e,"__isScriptSetup",{enumerable:!1,value:!0}),$e}}),Kt={key:0,class:"rounded-xl border border-[var(--color-accent-500)]/20 bg-[var(--color-accent-500)]/5 p-4 space-y-3"},Yt={class:"grid gap-3 sm:grid-cols-2"},er={key:1,class:"rounded-xl border border-amber-500/20 bg-amber-500/5 p-4"},tr={class:"grid gap-4 sm:grid-cols-2"},rr={class:"mt-1.5 text-xs text-gray-600 flex justify-between"},nr={class:"relative"},sr=["onClick"],lr={key:0,class:"absolute z-10 mt-1 w-full max-h-40 overflow-auto rounded-xl border border-white/[0.08] bg-[var(--color-surface-200)] shadow-xl"},ir=["onMousedown"],ar={key:0,class:"text-[var(--color-accent-500)] text-xs"},or={key:1,class:"text-xs text-gray-600"},cr={class:"flex flex-wrap gap-1.5 rounded-xl border border-white/[0.06] bg-[var(--color-surface-100)] px-3 py-2.5 min-h-[42px]"},ur=["onClick"],pr={class:"grid gap-4 sm:grid-cols-3"},hr=["value"],dr={class:"flex flex-wrap gap-6"},gr={class:"flex items-center gap-2.5 cursor-pointer group"},fr={class:"flex items-center gap-2.5 cursor-pointer group"},kr={class:"group"},xr={class:"mt-3"},br={class:"grid gap-4 lg:grid-cols-2"},mr={class:"flex justify-between text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},wr=["innerHTML"],yr={class:"flex items-center gap-4 pt-2"},vr=["disabled","title"],Sr={key:0,class:"h-4 w-4 animate-spin",fill:"none",viewBox:"0 0 24 24"},Tr={key:0,class:"text-sm text-red-400"};function Rr(s,e,t,n,r,i){return S(),v("form",{onSubmit:fe(n.save,["prevent"]),class:"space-y-6"},[n.isFork?(S(),v("div",Kt,[e[19]||(e[19]=o("p",{class:"text-sm text-[var(--color-accent-400)]"},"Claim this fork as yours. It will stay open for editing until you push from CLI, which registers a token and locks it to you.",-1)),o("div",Yt,[o("div",null,[e[17]||(e[17]=o("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1"},"Your Name",-1)),A(o("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>n.forkAuthorName=l),type:"text",placeholder:"Jane Doe",class:"w-full rounded-xl border border-white/[0.06] bg-[var(--color-surface-100)] px-4 py-2.5 text-sm text-white placeholder-gray-600 focus:border-[var(--color-accent-500)]/50 focus:outline-none focus:ring-1 focus:ring-[var(--color-accent-500)]/20 transition-all"},null,512),[[P,n.forkAuthorName]])]),o("div",null,[e[18]||(e[18]=o("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1"},"Your Email",-1)),A(o("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>n.forkAuthorEmail=l),type:"email",placeholder:"jane@example.com",class:"w-full rounded-xl border border-white/[0.06] bg-[var(--color-surface-100)] px-4 py-2.5 text-sm text-white placeholder-gray-600 focus:border-[var(--color-accent-500)]/50 focus:outline-none focus:ring-1 focus:ring-[var(--color-accent-500)]/20 transition-all"},null,512),[[P,n.forkAuthorEmail]])])])])):q("",!0),n.isFork&&n.slugMatchesOriginal?(S(),v("div",er,[...e[20]||(e[20]=[o("p",{class:"text-sm text-amber-400"},[M("Change the "),o("strong",null,"name"),M(" to generate a different slug. You can't save a fork with the same slug as the original.")],-1)])])):q("",!0),o("div",tr,[o("div",null,[e[22]||(e[22]=o("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},"Name",-1)),A(o("input",{"onUpdate:modelValue":e[2]||(e[2]=l=>n.name=l),type:"text",required:"",maxlength:"64",placeholder:"My Awesome Skill",class:j(["w-full rounded-xl border px-4 py-2.5 text-sm text-white placeholder-gray-600 focus:outline-none focus:ring-1 transition-all",n.isFork&&n.slugMatchesOriginal?"border-amber-500/30 bg-[var(--color-surface-100)] focus:border-amber-500/50 focus:ring-amber-500/20":"border-white/[0.06] bg-[var(--color-surface-100)] focus:border-[var(--color-accent-500)]/50 focus:ring-[var(--color-accent-500)]/20"])},null,2),[[P,n.name]]),o("p",rr,[o("span",null,[e[21]||(e[21]=M("Slug: ",-1)),o("code",{class:j(["font-mono",n.isFork&&n.slugMatchesOriginal?"text-amber-500":"text-gray-500"])},L(n.computedSlug),3)]),o("span",{class:j(n.name.length>58?"text-amber-500":"")},L(n.name.length)+"/64",3)])]),o("div",null,[e[23]||(e[23]=o("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},"Description",-1)),A(o("input",{"onUpdate:modelValue":e[3]||(e[3]=l=>n.description=l),type:"text",maxlength:"200",placeholder:"Brief description of what this skill does",class:"w-full rounded-xl border border-white/[0.06] bg-[var(--color-surface-100)] px-4 py-2.5 text-sm text-white placeholder-gray-600 focus:border-[var(--color-accent-500)]/50 focus:outline-none focus:ring-1 focus:ring-[var(--color-accent-500)]/20 transition-all"},null,512),[[P,n.description]]),o("p",{class:j(["mt-1.5 text-xs text-gray-600 text-right",n.description.length>180?"text-amber-500":""])},L(n.description.length)+"/200",3)])]),o("div",nr,[e[25]||(e[25]=o("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},"Tags",-1)),o("div",{class:"flex flex-wrap items-center gap-1.5 rounded-xl border border-white/[0.06] bg-[var(--color-surface-100)] px-3 py-2 min-h-[42px] cursor-text focus-within:border-[var(--color-accent-500)]/50 focus-within:ring-1 focus-within:ring-[var(--color-accent-500)]/20 transition-all",onClick:e[8]||(e[8]=l=>n.tagInputEl?.focus())},[(S(!0),v(te,null,re(n.tags,(l,c)=>(S(),v("span",{key:l,class:"inline-flex items-center gap-1 rounded-full bg-[var(--color-accent-500)]/15 border border-[var(--color-accent-500)]/25 pl-2.5 pr-1.5 py-0.5 text-xs font-medium text-[var(--color-accent-400)]"},[M(L(l)+" ",1),o("button",{type:"button",onClick:fe(a=>n.removeTag(c),["stop"]),class:"rounded-full p-0.5 hover:bg-[var(--color-accent-500)]/30 transition-colors"},[...e[24]||(e[24]=[o("svg",{class:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2.5"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)])],8,sr)]))),128)),A(o("input",{ref:"tagInputEl","onUpdate:modelValue":e[4]||(e[4]=l=>n.tagQuery=l),type:"text",placeholder:"Add tag...",class:"flex-1 min-w-[80px] bg-transparent text-sm text-white placeholder-gray-600 outline-none",onKeydown:n.onTagKeydown,onFocus:e[5]||(e[5]=l=>n.tagSuggestionsOpen=!0),onClick:e[6]||(e[6]=l=>n.tagSuggestionsOpen=!0),onInput:e[7]||(e[7]=l=>n.tagSuggestionsOpen=!0),onBlur:n.onTagBlur},null,544),[[P,n.tagQuery]])]),n.tagSuggestionsOpen&&n.tagSuggestions.length>0?(S(),v("div",lr,[(S(!0),v(te,null,re(n.tagSuggestions,l=>(S(),v("button",{key:l,type:"button",onMousedown:fe(c=>n.onTagSuggestionClick(l),["prevent"]),class:"flex w-full items-center gap-2 px-4 py-2 text-sm text-gray-300 hover:bg-white/[0.06] hover:text-white transition-colors text-left"},[n.isNewTag(l)?(S(),v("span",ar,"+")):q("",!0),M(" "+L(l)+" ",1),n.isNewTag(l)?(S(),v("span",or,"(new)")):q("",!0)],40,ir))),128))])):q("",!0),e[26]||(e[26]=o("p",{class:"mt-1.5 text-xs text-gray-600"},"Type and press Enter or comma. Click suggestions to add.",-1))]),o("div",null,[e[27]||(e[27]=o("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},"Allowed Tools",-1)),o("div",cr,[(S(!0),v(te,null,re(n.AVAILABLE_TOOLS,l=>(S(),v("button",{key:l,type:"button",onClick:c=>n.toggleTool(l),class:j(["rounded-md px-2.5 py-1 text-xs font-medium transition-all",n.selectedTools.has(l)?"bg-[var(--color-accent-500)] text-white shadow-sm":"bg-white/[0.04] border border-white/[0.06] text-gray-500 hover:text-gray-300 hover:bg-white/[0.08]"])},L(l),11,ur))),128))])]),o("div",pr,[o("div",null,[e[29]||(e[29]=o("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},"Model",-1)),A(o("select",{"onUpdate:modelValue":e[9]||(e[9]=l=>n.model=l),class:"w-full rounded-xl border border-white/[0.06] bg-[var(--color-surface-100)] px-4 py-2.5 text-sm text-white focus:border-[var(--color-accent-500)]/50 focus:outline-none focus:ring-1 focus:ring-[var(--color-accent-500)]/20 transition-all"},[e[28]||(e[28]=o("option",{value:""},"Default",-1)),(S(!0),v(te,null,re(n.AVAILABLE_MODELS,l=>(S(),v("option",{key:l.id,value:l.id},L(l.display_name),9,hr))),128))],512),[[ge,n.model]])]),o("div",null,[e[30]||(e[30]=o("label",{class:"block text-xs font-medium uppercase tracking-wider text-gray-500 mb-1.5"},"Argument Hint",-1)),A(o("input",{"onUpdate:modelValue":e[10]||(e[10]=l=>n.argumentHint=l),type:"text",placeholder:"e.g.
{const{slotScopeIds:H}=m;H&&(B=B?B.concat(H):H);const P=l(p),q=S(r(p),m,P,T,M,B,L);return q&&zt(q)&&q.data==="]"?r(m.anchor=q):(ft(),c(m.anchor=d("]"),P,q),q)},F=(p,m,T,M,B,L)=>{if(es(p.parentElement,1)||ft(),m.el=null,L){const q=k(p);for(;;){const J=r(p);if(J&&J!==q)o(J);else break}}const H=r(p),P=l(p);return o(p),s(null,m,P,H,T,M,Qt(P),B),T&&(T.vnode.el=m.el,Ts(T,m.el)),H},k=(p,m="[",T="]")=>{let M=0;for(;p;)if(p=r(p),p&&zt(p)&&(p.data===m&&M++,p.data===T)){if(M===0)return r(p);M--}return p},U=(p,m,T)=>{const M=m.parentNode;M&&M.replaceChild(p,m);let B=T;for(;B;)B.vnode.el===m&&(B.vnode.el=B.subTree.el=p),B=B.parent},D=p=>p.nodeType===1&&p.tagName==="TEMPLATE";return[a,h]}const Bn="data-allow-mismatch",Fl={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function es(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Bn);)e=e.parentElement;const s=e&&e.getAttribute(Bn);if(s==null)return!1;if(s==="")return!0;{const n=s.split(",");return t===0&&n.includes("children")?!0:n.includes(Fl[t])}}_s().requestIdleCallback;_s().cancelIdleCallback;const gt=e=>!!e.type.__asyncLoader,Ui=e=>e.type.__isKeepAlive;function Ol(e,t){Wi(e,"a",t)}function Pl(e,t){Wi(e,"da",t)}function Wi(e,t,s=ge){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ys(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Ui(i.parent.vnode)&&Rl(n,t,s,i),i=i.parent}}function Rl(e,t,s,n){const i=ys(t,e,n,!0);ki(()=>{tn(n[t],i)},s)}function ys(e,t,s=ge,n=!1){if(s){const i=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...l)=>{Ue();const o=kt(s),c=He(t,s,e,l);return o(),We(),c});return n?i.unshift(r):i.push(r),r}}const qe=e=>(t,s=ge)=>{(!jt||e==="sp")&&ys(e,(...n)=>t(...n),s)},Il=qe("bm"),Dl=qe("m"),Nl=qe("bu"),Hl=qe("u"),Bl=qe("bum"),ki=qe("um"),Ll=qe("sp"),jl=qe("rtg"),Vl=qe("rtc");function $l(e,t=ge){ys("ec",e,t)}const Kl=Symbol.for("v-ndc");function uc(e,t,s,n){let i;const r=s,l=V(e);if(l||ie(e)){const o=l&&Qe(e);let c=!1,d=!1;o&&(c=!Se(e),d=ke(e),e=bs(e)),i=new Array(e.length);for(let a=0,h=e.length;at(o,c,void 0,r));else{const o=Object.keys(e);i=new Array(o.length);for(let c=0,d=o.length;c e?br(e)?vs(e):ks(e.parent):null,Pt=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ks(e.parent),$root:e=>ks(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Gi(e),$forceUpdate:e=>e.f||(e.f=()=>{gn(e.update)}),$nextTick:e=>e.n||(e.n=Di.bind(e.proxy)),$watch:e=>vl.bind(e)}),Rs=(e,t)=>e!==ee&&!e.__isScriptSetup&&Z(e,t),Ul={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:r,accessCache:l,type:o,appContext:c}=e;if(t[0]!=="$"){const b=l[t];if(b!==void 0)switch(b){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return r[t]}else{if(Rs(n,t))return l[t]=1,n[t];if(i!==ee&&Z(i,t))return l[t]=2,i[t];if(Z(r,t))return l[t]=3,r[t];if(s!==ee&&Z(s,t))return l[t]=4,s[t];qs&&(l[t]=0)}}const d=Pt[t];let a,h;if(d)return t==="$attrs"&&ue(e.attrs,"get",""),d(e);if((a=o.__cssModules)&&(a=a[t]))return a;if(s!==ee&&Z(s,t))return l[t]=4,s[t];if(h=c.config.globalProperties,Z(h,t))return h[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:r}=e;return Rs(i,t)?(i[t]=s,!0):n!==ee&&Z(n,t)?(n[t]=s,!0):Z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:r,type:l}},o){let c;return!!(s[o]||e!==ee&&o[0]!=="$"&&Z(e,o)||Rs(t,o)||Z(r,o)||Z(n,o)||Z(Pt,o)||Z(i.config.globalProperties,o)||(c=l.__cssModules)&&c[o])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Z(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Ln(e){return V(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let qs=!0;function Wl(e){const t=Gi(e),s=e.proxy,n=e.ctx;qs=!1,t.beforeCreate&&jn(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:l,watch:o,provide:c,inject:d,created:a,beforeMount:h,mounted:b,beforeUpdate:S,updated:O,activated:F,deactivated:k,beforeDestroy:U,beforeUnmount:D,destroyed:p,unmounted:m,render:T,renderTracked:M,renderTriggered:B,errorCaptured:L,serverPrefetch:H,expose:P,inheritAttrs:q,components:J,directives:Y,filters:re}=t;if(d&&kl(d,n,null),l)for(const W in l){const R=l[W];K(R)&&(n[W]=R.bind(s))}if(i){const W=i.call(s,s);z(W)&&(e.data=hn(W))}if(qs=!0,r)for(const W in r){const R=r[W],ne=K(R)?R.bind(s,s):K(R.get)?R.get.bind(s,s):De,qt=!K(R)&&K(R.set)?R.set.bind(s):De,tt=Io({get:ne,set:qt});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>tt.value,set:Oe=>tt.value=Oe})}if(o)for(const W in o)qi(o[W],n,s,W);if(c){const W=K(c)?c.call(s):c;Reflect.ownKeys(W).forEach(R=>{yl(R,W[R])})}a&&jn(a,e,"c");function N(W,R){V(R)?R.forEach(ne=>W(ne.bind(s))):R&&W(R.bind(s))}if(N(Il,h),N(Dl,b),N(Nl,S),N(Hl,O),N(Ol,F),N(Pl,k),N($l,L),N(Vl,M),N(jl,B),N(Bl,D),N(ki,m),N(Ll,H),V(P))if(P.length){const W=e.exposed||(e.exposed={});P.forEach(R=>{Object.defineProperty(W,R,{get:()=>s[R],set:ne=>s[R]=ne,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===De&&(e.render=T),q!=null&&(e.inheritAttrs=q),J&&(e.components=J),Y&&(e.directives=Y),H&&Ki(e)}function kl(e,t,s=De){V(e)&&(e=Gs(e));for(const n in e){const i=e[n];let r;z(i)?"default"in i?r=ss(i.from||n,i.default,!0):r=ss(i.from||n):r=ss(i),he(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:l=>r.value=l}):t[n]=r}}function jn(e,t,s){He(V(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function qi(e,t,s,n){let i=n.includes(".")?ji(s,n):()=>s[n];if(ie(e)){const r=t[e];K(r)&&Ps(i,r)}else if(K(e))Ps(i,e.bind(s));else if(z(e))if(V(e))e.forEach(r=>qi(r,t,s,n));else{const r=K(e.handler)?e.handler.bind(s):t[e.handler];K(r)&&Ps(i,r,e)}}function Gi(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:l}}=e.appContext,o=r.get(t);let c;return o?c=o:!i.length&&!s&&!n?c=t:(c={},i.length&&i.forEach(d=>hs(c,d,l,!0)),hs(c,t,l)),z(t)&&r.set(t,c),c}function hs(e,t,s,n=!1){const{mixins:i,extends:r}=t;r&&hs(e,r,s,!0),i&&i.forEach(l=>hs(e,l,s,!0));for(const l in t)if(!(n&&l==="expose")){const o=ql[l]||s&&s[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const ql={data:Vn,props:$n,emits:$n,methods:Et,computed:Et,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:Et,directives:Et,watch:Jl,provide:Vn,inject:Gl};function Vn(e,t){return t?e?function(){return ce(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Gl(e,t){return Et(Gs(e),Gs(t))}function Gs(e){if(V(e)){const t={};for(let s=0;s t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ze(t)}Modifiers`]||e[`${et(t)}Modifiers`];function Ql(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||ee;let i=s;const r=t.startsWith("update:"),l=r&&Zl(n,t.slice(7));l&&(l.trim&&(i=s.map(a=>ie(a)?a.trim():a)),l.number&&(i=s.map(ms)));let o,c=n[o=As(t)]||n[o=As(ze(t))];!c&&r&&(c=n[o=As(et(t))]),c&&He(c,e,6,i);const d=n[o+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,He(d,e,6,i)}}const zl=new WeakMap;function Yi(e,t,s=!1){const n=s?zl:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const r=e.emits;let l={},o=!1;if(!K(e)){const c=d=>{const a=Yi(d,t,!0);a&&(o=!0,ce(l,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!o?(z(e)&&n.set(e,null),null):(V(r)?r.forEach(c=>l[c]=null):ce(l,r),z(e)&&n.set(e,l),l)}function xs(e,t){return!e||!$t(t)?!1:(t=t.slice(2).replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,et(t))||Z(e,t))}function Is(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[r],slots:l,attrs:o,emit:c,render:d,renderCache:a,props:h,data:b,setupState:S,ctx:O,inheritAttrs:F}=e,k=us(e);let U,D;try{if(s.shapeFlag&4){const m=i||n,T=m;U=Te(d.call(T,m,a,h,S,b,O)),D=o}else{const m=t;U=Te(m.length>1?m(h,{attrs:o,slots:l,emit:c}):m(h,null)),D=t.props?o:to(o)}}catch(m){Rt.length=0,Wt(m,e,1),U=ae(Fe)}let p=U;if(D&&F!==!1){const m=Object.keys(D),{shapeFlag:T}=p;m.length&&T&7&&(r&&m.some(en)&&(D=so(D,r)),p=xt(p,D,!1,!0))}return s.dirs&&(p=xt(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(s.dirs):s.dirs),s.transition&&mn(p,s.transition),U=p,us(k),U}function eo(e,t=!0){let s;for(let n=0;n {let t;for(const s in e)(s==="class"||s==="style"||$t(s))&&((t||(t={}))[s]=e[s]);return t},so=(e,t)=>{const s={};for(const n in e)(!en(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function no(e,t,s){const{props:n,children:i,component:r}=e,{props:l,children:o,patchFlag:c}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Kn(n,l,d):!!l;if(c&8){const a=t.dynamicProps;for(let h=0;h Object.create(Zi),zi=e=>Object.getPrototypeOf(e)===Zi;function io(e,t,s,n=!1){const i={},r=Qi();e.propsDefaults=Object.create(null),er(e,t,i,r);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);s?e.props=n?i:ll(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function ro(e,t,s,n){const{props:i,attrs:r,vnode:{patchFlag:l}}=e,o=X(i),[c]=e.propsOptions;let d=!1;if((n||l>0)&&!(l&16)){if(l&8){const a=e.vnode.dynamicProps;for(let h=0;h {c=!0;const[b,S]=tr(h,t,!0);ce(l,b),S&&o.push(...S)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!c)return z(e)&&n.set(e,at),at;if(V(r))for(let a=0;a e==="_"||e==="_ctx"||e==="$stable",bn=e=>V(e)?e.map(Te):[Te(e)],oo=(e,t,s)=>{if(t._n)return t;const n=bl((...i)=>bn(t(...i)),s);return n._c=!1,n},sr=(e,t,s)=>{const n=e._ctx;for(const i in e){if(_n(i))continue;const r=e[i];if(K(r))t[i]=oo(i,r,n);else if(r!=null){const l=bn(r);t[i]=()=>l}}},nr=(e,t)=>{const s=bn(t);e.slots.default=()=>s},ir=(e,t,s)=>{for(const n in t)(s||!_n(n))&&(e[n]=t[n])},co=(e,t,s)=>{const n=e.slots=Qi();if(e.vnode.shapeFlag&32){const i=t._;i?(ir(n,t,s),s&&pi(n,"_",i,!0)):sr(t,n)}else t&&nr(e,t)},fo=(e,t,s)=>{const{vnode:n,slots:i}=e;let r=!0,l=ee;if(n.shapeFlag&32){const o=t._;o?s&&o===1?r=!1:ir(i,t,s):(r=!t.$stable,sr(t,i)),l=t}else t&&(nr(e,t),l={default:1});if(r)for(const o in i)!_n(o)&&l[o]==null&&delete i[o]},oe=ar;function uo(e){return rr(e)}function ao(e){return rr(e,Ml)}function rr(e,t){const s=_s();s.__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:l,createText:o,createComment:c,setText:d,setElementText:a,parentNode:h,nextSibling:b,setScopeId:S=De,insertStaticContent:O}=e,F=(f,u,g,v=null,_=null,y=null,A=void 0,C=null,w=!!u.dynamicChildren)=>{if(f===u)return;f&&!Ye(f,u)&&(v=Gt(f),Oe(f,_,y,!0),f=null),u.patchFlag===-2&&(w=!1,u.dynamicChildren=null);const{type:x,ref:j,shapeFlag:E}=u;switch(x){case lt:k(f,u,g,v);break;case Fe:U(f,u,g,v);break;case is:f==null&&D(u,g,v,A);break;case Ae:J(f,u,g,v,_,y,A,C,w);break;default:E&1?T(f,u,g,v,_,y,A,C,w):E&6?Y(f,u,g,v,_,y,A,C,w):(E&64||E&128)&&x.process(f,u,g,v,_,y,A,C,w,ot)}j!=null&&_?pt(j,f&&f.ref,y,u||f,!u):j==null&&f&&f.ref!=null&&pt(f.ref,null,y,f,!0)},k=(f,u,g,v)=>{if(f==null)n(u.el=o(u.children),g,v);else{const _=u.el=f.el;u.children!==f.children&&d(_,u.children)}},U=(f,u,g,v)=>{f==null?n(u.el=c(u.children||""),g,v):u.el=f.el},D=(f,u,g,v)=>{[f.el,f.anchor]=O(f.children,u,g,v,f.el,f.anchor)},p=({el:f,anchor:u},g,v)=>{let _;for(;f&&f!==u;)_=b(f),n(f,g,v),f=_;n(u,g,v)},m=({el:f,anchor:u})=>{let g;for(;f&&f!==u;)g=b(f),i(f),f=g;i(u)},T=(f,u,g,v,_,y,A,C,w)=>{if(u.type==="svg"?A="svg":u.type==="math"&&(A="mathml"),f==null)M(u,g,v,_,y,A,C,w);else{const x=f.el&&f.el._isVueCE?f.el:null;try{x&&x._beginPatch(),H(f,u,_,y,A,C,w)}finally{x&&x._endPatch()}}},M=(f,u,g,v,_,y,A,C)=>{let w,x;const{props:j,shapeFlag:E,transition:I,dirs:$}=f;if(w=f.el=l(f.type,y,j&&j.is,j),E&8?a(w,f.children):E&16&&L(f.children,w,null,v,_,Ds(f,y),A,C),$&&Ie(f,null,v,"created"),B(w,f,f.scopeId,A,v),j){for(const te in j)te!=="value"&&!it(te)&&r(w,te,null,j[te],y,v);"value"in j&&r(w,"value",null,j.value,y),(x=j.onVnodeBeforeMount)&&ve(x,v,f)}$&&Ie(f,null,v,"beforeMount");const G=lr(_,I);G&&I.beforeEnter(w),n(w,u,g),((x=j&&j.onVnodeMounted)||G||$)&&oe(()=>{x&&ve(x,v,f),G&&I.enter(w),$&&Ie(f,null,v,"mounted")},_)},B=(f,u,g,v,_)=>{if(g&&S(f,g),v)for(let y=0;y {for(let x=w;x {const C=u.el=f.el;let{patchFlag:w,dynamicChildren:x,dirs:j}=u;w|=f.patchFlag&16;const E=f.props||ee,I=u.props||ee;let $;if(g&&st(g,!1),($=I.onVnodeBeforeUpdate)&&ve($,g,u,f),j&&Ie(u,f,g,"beforeUpdate"),g&&st(g,!0),(E.innerHTML&&I.innerHTML==null||E.textContent&&I.textContent==null)&&a(C,""),x?P(f.dynamicChildren,x,C,g,v,Ds(u,_),y):A||R(f,u,C,null,g,v,Ds(u,_),y,!1),w>0){if(w&16)q(C,E,I,g,_);else if(w&2&&E.class!==I.class&&r(C,"class",null,I.class,_),w&4&&r(C,"style",E.style,I.style,_),w&8){const G=u.dynamicProps;for(let te=0;te {$&&ve($,g,u,f),j&&Ie(u,f,g,"updated")},v)},P=(f,u,g,v,_,y,A)=>{for(let C=0;C {if(u!==g){if(u!==ee)for(const y in u)!it(y)&&!(y in g)&&r(f,y,u[y],null,_,v);for(const y in g){if(it(y))continue;const A=g[y],C=u[y];A!==C&&y!=="value"&&r(f,y,C,A,_,v)}"value"in g&&r(f,"value",u.value,g.value,_)}},J=(f,u,g,v,_,y,A,C,w)=>{const x=u.el=f?f.el:o(""),j=u.anchor=f?f.anchor:o("");let{patchFlag:E,dynamicChildren:I,slotScopeIds:$}=u;$&&(C=C?C.concat($):$),f==null?(n(x,g,v),n(j,g,v),L(u.children||[],g,j,_,y,A,C,w)):E>0&&E&64&&I&&f.dynamicChildren&&f.dynamicChildren.length===I.length?(P(f.dynamicChildren,I,g,_,y,A,C),(u.key!=null||_&&u===_.subTree)&&yn(f,u,!0)):R(f,u,g,j,_,y,A,C,w)},Y=(f,u,g,v,_,y,A,C,w)=>{u.slotScopeIds=C,f==null?u.shapeFlag&512?_.ctx.activate(u,g,v,A,w):re(u,g,v,_,y,A,w):le(f,u,w)},re=(f,u,g,v,_,y,A)=>{const C=f.component=Ao(f,v,_);if(Ui(f)&&(C.ctx.renderer=ot),Mo(C,!1,A),C.asyncDep){if(_&&_.registerDep(C,N,A),!f.el){const w=C.subTree=ae(Fe);U(null,w,u,g),f.placeholder=w.el}}else N(C,f,u,g,_,y,A)},le=(f,u,g)=>{const v=u.component=f.component;if(no(f,u,g))if(v.asyncDep&&!v.asyncResolved){W(v,u,g);return}else v.next=u,v.update();else u.el=f.el,v.vnode=u},N=(f,u,g,v,_,y,A)=>{const C=()=>{if(f.isMounted){let{next:E,bu:I,u:$,parent:G,vnode:te}=f;{const ye=or(f);if(ye){E&&(E.el=te.el,W(f,E,A)),ye.asyncDep.then(()=>{oe(()=>{f.isUnmounted||x()},_)});return}}let Q=E,me;st(f,!1),E?(E.el=te.el,W(f,E,A)):E=te,I&&ts(I),(me=E.props&&E.props.onVnodeBeforeUpdate)&&ve(me,G,E,te),st(f,!0);const fe=Is(f),Ce=f.subTree;f.subTree=fe,F(Ce,fe,h(Ce.el),Gt(Ce),f,_,y),E.el=fe.el,Q===null&&Ts(f,fe.el),$&&oe($,_),(me=E.props&&E.props.onVnodeUpdated)&&oe(()=>ve(me,G,E,te),_)}else{let E;const{el:I,props:$}=u,{bm:G,m:te,parent:Q,root:me,type:fe}=f,Ce=gt(u);if(st(f,!1),G&&ts(G),!Ce&&(E=$&&$.onVnodeBeforeMount)&&ve(E,Q,u),st(f,!0),I&&Cs){const ye=()=>{f.subTree=Is(f),Cs(I,f.subTree,f,_,null)};Ce&&fe.__asyncHydrate?fe.__asyncHydrate(I,f,ye):ye()}else{me.ce&&me.ce._hasShadowRoot()&&me.ce._injectChildStyle(fe);const ye=f.subTree=Is(f);F(null,ye,g,v,f,_,y),u.el=ye.el}if(te&&oe(te,_),!Ce&&(E=$&&$.onVnodeMounted)){const ye=u;oe(()=>ve(E,Q,ye),_)}(u.shapeFlag&256||Q&>(Q.vnode)&&Q.vnode.shapeFlag&256)&&f.a&&oe(f.a,_),f.isMounted=!0,u=g=v=null}};f.scope.on();const w=f.effect=new bi(C);f.scope.off();const x=f.update=w.run.bind(w),j=f.job=w.runIfDirty.bind(w);j.i=f,j.id=f.uid,w.scheduler=()=>gn(j),st(f,!0),x()},W=(f,u,g)=>{u.component=f;const v=f.vnode.props;f.vnode=u,f.next=null,ro(f,u.props,v,g),fo(f,u.children,g),Ue(),On(f),We()},R=(f,u,g,v,_,y,A,C,w=!1)=>{const x=f&&f.children,j=f?f.shapeFlag:0,E=u.children,{patchFlag:I,shapeFlag:$}=u;if(I>0){if(I&128){qt(x,E,g,v,_,y,A,C,w);return}else if(I&256){ne(x,E,g,v,_,y,A,C,w);return}}$&8?(j&16&&St(x,_,y),E!==x&&a(g,E)):j&16?$&16?qt(x,E,g,v,_,y,A,C,w):St(x,_,y,!0):(j&8&&a(g,""),$&16&&L(E,g,v,_,y,A,C,w))},ne=(f,u,g,v,_,y,A,C,w)=>{f=f||at,u=u||at;const x=f.length,j=u.length,E=Math.min(x,j);let I;for(I=0;I j?St(f,_,y,!0,!1,E):L(u,g,v,_,y,A,C,w,E)},qt=(f,u,g,v,_,y,A,C,w)=>{let x=0;const j=u.length;let E=f.length-1,I=j-1;for(;x<=E&&x<=I;){const $=f[x],G=u[x]=w?je(u[x]):Te(u[x]);if(Ye($,G))F($,G,g,null,_,y,A,C,w);else break;x++}for(;x<=E&&x<=I;){const $=f[E],G=u[I]=w?je(u[I]):Te(u[I]);if(Ye($,G))F($,G,g,null,_,y,A,C,w);else break;E--,I--}if(x>E){if(x<=I){const $=I+1,G=$ I)for(;x<=E;)Oe(f[x],_,y,!0),x++;else{const $=x,G=x,te=new Map;for(x=G;x<=I;x++){const xe=u[x]=w?je(u[x]):Te(u[x]);xe.key!=null&&te.set(xe.key,x)}let Q,me=0;const fe=I-G+1;let Ce=!1,ye=0;const Ct=new Array(fe);for(x=0;x =fe){Oe(xe,_,y,!0);continue}let Pe;if(xe.key!=null)Pe=te.get(xe.key);else for(Q=G;Q<=I;Q++)if(Ct[Q-G]===0&&Ye(xe,u[Q])){Pe=Q;break}Pe===void 0?Oe(xe,_,y,!0):(Ct[Pe-G]=x+1,Pe>=ye?ye=Pe:Ce=!0,F(xe,u[Pe],g,null,_,y,A,C,w),me++)}const wn=Ce?ho(Ct):at;for(Q=wn.length-1,x=fe-1;x>=0;x--){const xe=G+x,Pe=u[xe],Sn=u[xe+1],Cn=xe+1 {const{el:y,type:A,transition:C,children:w,shapeFlag:x}=f;if(x&6){tt(f.component.subTree,u,g,v);return}if(x&128){f.suspense.move(u,g,v);return}if(x&64){A.move(f,u,g,ot);return}if(A===Ae){n(y,u,g);for(let E=0;E C.enter(y),_);else{const{leave:E,delayLeave:I,afterLeave:$}=C,G=()=>{f.ctx.isUnmounted?i(y):n(y,u,g)},te=()=>{y._isLeaving&&y[Cl](!0),E(y,()=>{G(),$&&$()})};I?I(y,G,te):te()}else n(y,u,g)},Oe=(f,u,g,v=!1,_=!1)=>{const{type:y,props:A,ref:C,children:w,dynamicChildren:x,shapeFlag:j,patchFlag:E,dirs:I,cacheIndex:$}=f;if(E===-2&&(_=!1),C!=null&&(Ue(),pt(C,null,g,f,!0),We()),$!=null&&(u.renderCache[$]=void 0),j&256){u.ctx.deactivate(f);return}const G=j&1&&I,te=!gt(f);let Q;if(te&&(Q=A&&A.onVnodeBeforeUnmount)&&ve(Q,u,f),j&6)Ar(f.component,g,v);else{if(j&128){f.suspense.unmount(g,v);return}G&&Ie(f,null,u,"beforeUnmount"),j&64?f.type.remove(f,u,g,ot,v):x&&!x.hasOnce&&(y!==Ae||E>0&&E&64)?St(x,u,g,!1,!0):(y===Ae&&E&384||!_&&j&16)&&St(w,u,g),v&&Tn(f)}(te&&(Q=A&&A.onVnodeUnmounted)||G)&&oe(()=>{Q&&ve(Q,u,f),G&&Ie(f,null,u,"unmounted")},g)},Tn=f=>{const{type:u,el:g,anchor:v,transition:_}=f;if(u===Ae){Cr(g,v);return}if(u===is){m(f);return}const y=()=>{i(g),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(f.shapeFlag&1&&_&&!_.persisted){const{leave:A,delayLeave:C}=_,w=()=>A(g,y);C?C(f.el,y,w):w()}else y()},Cr=(f,u)=>{let g;for(;f!==u;)g=b(f),i(f),f=g;i(u)},Ar=(f,u,g)=>{const{bum:v,scope:_,job:y,subTree:A,um:C,m:w,a:x}=f;Wn(w),Wn(x),v&&ts(v),_.stop(),y&&(y.flags|=8,Oe(A,f,u,g)),C&&oe(C,u),oe(()=>{f.isUnmounted=!0},u)},St=(f,u,g,v=!1,_=!1,y=0)=>{for(let A=y;A {if(f.shapeFlag&6)return Gt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const u=b(f.anchor||f.el),g=u&&u[Vi];return g?b(g):u};let ws=!1;const vn=(f,u,g)=>{let v;f==null?u._vnode&&(Oe(u._vnode,null,null,!0),v=u._vnode.component):F(u._vnode||null,f,u,null,null,null,g),u._vnode=f,ws||(ws=!0,On(v),fs(),ws=!1)},ot={p:F,um:Oe,m:tt,r:Tn,mt:re,mc:L,pc:R,pbc:P,n:Gt,o:e};let Ss,Cs;return t&&([Ss,Cs]=t(ot)),{render:vn,hydrate:Ss,createApp:Xl(vn,Ss)}}function Ds({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function st({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function lr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function yn(e,t,s=!1){const n=e.children,i=t.children;if(V(n)&&V(i))for(let r=0;r >1,e[s[o]] 0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,l=s[r-1];r-- >0;)s[r]=l,l=t[l];return s}function or(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:or(t)}function Wn(e){if(e)for(let t=0;t e.__isSuspense;let Ys=0;const po={name:"Suspense",__isSuspense:!0,process(e,t,s,n,i,r,l,o,c,d){if(e==null)go(t,s,n,i,r,l,o,c,d);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}mo(e,t,s,n,i,l,o,c,d)}},hydrate:_o,normalize:bo},ac=po;function Bt(e,t){const s=e.props&&e.props[t];K(s)&&s()}function go(e,t,s,n,i,r,l,o,c){const{p:d,o:{createElement:a}}=c,h=a("div"),b=e.suspense=ur(e,i,n,t,h,s,r,l,o,c);d(null,b.pendingBranch=e.ssContent,h,null,n,b,r,l),b.deps>0?(Bt(e,"onPending"),Bt(e,"onFallback"),d(null,e.ssFallback,t,s,n,null,r,l),_t(b,e.ssFallback)):b.resolve(!1,!0)}function mo(e,t,s,n,i,r,l,o,{p:c,um:d,o:{createElement:a}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const b=t.ssContent,S=t.ssFallback,{activeBranch:O,pendingBranch:F,isInFallback:k,isHydrating:U}=h;if(F)h.pendingBranch=b,Ye(F,b)?(c(F,b,h.hiddenContainer,null,i,h,r,l,o),h.deps<=0?h.resolve():k&&(U||(c(O,S,s,n,i,null,r,l,o),_t(h,S)))):(h.pendingId=Ys++,U?(h.isHydrating=!1,h.activeBranch=F):d(F,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=a("div"),k?(c(null,b,h.hiddenContainer,null,i,h,r,l,o),h.deps<=0?h.resolve():(c(O,S,s,n,i,null,r,l,o),_t(h,S))):O&&Ye(O,b)?(c(O,b,s,n,i,h,r,l,o),h.resolve(!0)):(c(null,b,h.hiddenContainer,null,i,h,r,l,o),h.deps<=0&&h.resolve()));else if(O&&Ye(O,b))c(O,b,s,n,i,h,r,l,o),_t(h,b);else if(Bt(t,"onPending"),h.pendingBranch=b,b.shapeFlag&512?h.pendingId=b.component.suspenseId:h.pendingId=Ys++,c(null,b,h.hiddenContainer,null,i,h,r,l,o),h.deps<=0)h.resolve();else{const{timeout:D,pendingId:p}=h;D>0?setTimeout(()=>{h.pendingId===p&&h.fallback(S)},D):D===0&&h.fallback(S)}}function ur(e,t,s,n,i,r,l,o,c,d,a=!1){const{p:h,m:b,um:S,n:O,o:{parentNode:F,remove:k}}=d;let U;const D=yo(e);D&&t&&t.pendingBranch&&(U=t.pendingId,t.deps++);const p=e.props?Pr(e.props.timeout):void 0,m=r,T={vnode:e,parent:t,parentComponent:s,namespace:l,container:n,hiddenContainer:i,deps:0,pendingId:Ys++,timeout:typeof p=="number"?p:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(M=!1,B=!1){const{vnode:L,activeBranch:H,pendingBranch:P,pendingId:q,effects:J,parentComponent:Y,container:re,isInFallback:le}=T;let N=!1;T.isHydrating?T.isHydrating=!1:M||(N=H&&P.transition&&P.transition.mode==="out-in",N&&(H.transition.afterLeave=()=>{q===T.pendingId&&(b(P,re,r===m?O(H):r,0),Ks(J),le&&L.ssFallback&&(L.ssFallback.el=null))}),H&&(F(H.el)===re&&(r=O(H)),S(H,Y,T,!0),!N&&le&&L.ssFallback&&oe(()=>L.ssFallback.el=null,T)),N||b(P,re,r,0)),_t(T,P),T.pendingBranch=null,T.isInFallback=!1;let W=T.parent,R=!1;for(;W;){if(W.pendingBranch){W.effects.push(...J),R=!0;break}W=W.parent}!R&&!N&&Ks(J),T.effects=[],D&&t&&t.pendingBranch&&U===t.pendingId&&(t.deps--,t.deps===0&&!B&&t.resolve()),Bt(L,"onResolve")},fallback(M){if(!T.pendingBranch)return;const{vnode:B,activeBranch:L,parentComponent:H,container:P,namespace:q}=T;Bt(B,"onFallback");const J=O(L),Y=()=>{T.isInFallback&&(h(null,M,P,J,H,null,q,o,c),_t(T,M))},re=M.transition&&M.transition.mode==="out-in";re&&(L.transition.afterLeave=Y),T.isInFallback=!0,S(L,H,null,!0),re||Y()},move(M,B,L){T.activeBranch&&b(T.activeBranch,M,B,L),T.container=M},next(){return T.activeBranch&&O(T.activeBranch)},registerDep(M,B,L){const H=!!T.pendingBranch;H&&T.deps++;const P=M.vnode.el;M.asyncDep.catch(q=>{Wt(q,M,0)}).then(q=>{if(M.isUnmounted||T.isUnmounted||T.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:J}=M;Zs(M,q),P&&(J.el=P);const Y=!P&&M.subTree.el;B(M,J,F(P||M.subTree.el),P?null:O(M.subTree),T,l,L),Y&&(J.placeholder=null,k(Y)),Ts(M,J.el),H&&--T.deps===0&&T.resolve()})},unmount(M,B){T.isUnmounted=!0,T.activeBranch&&S(T.activeBranch,s,M,B),T.pendingBranch&&S(T.pendingBranch,s,M,B)}};return T}function _o(e,t,s,n,i,r,l,o,c){const d=t.suspense=ur(t,n,s,e.parentNode,document.createElement("div"),null,i,r,l,o,!0),a=c(e,d.pendingBranch=t.ssContent,s,d,r,l);return d.deps===0&&d.resolve(!1,!0),a}function bo(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=kn(n?s.default:s),e.ssFallback=n?kn(s.fallback):ae(Fe)}function kn(e){let t;if(K(e)){const s=yt&&e._c;s&&(e._d=!1,hr()),e=e(),s&&(e._d=!0,t=be,dr())}return V(e)&&(e=eo(e)),e=Te(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function ar(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Ks(e)}function _t(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,n&&n.subTree===s&&(n.vnode.el=i,Ts(n,i))}function yo(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ae=Symbol.for("v-fgt"),lt=Symbol.for("v-txt"),Fe=Symbol.for("v-cmt"),is=Symbol.for("v-stc"),Rt=[];let be=null;function hr(e=!1){Rt.push(be=e?null:[])}function dr(){Rt.pop(),be=Rt[Rt.length-1]||null}let yt=1;function ds(e,t=!1){yt+=e,e<0&&be&&t&&(be.hasOnce=!0)}function pr(e){return e.dynamicChildren=yt>0?be||at:null,dr(),yt>0&&be&&be.push(e),e}function hc(e,t,s,n,i,r){return pr(mr(e,t,s,n,i,r,!0))}function xo(e,t,s,n,i){return pr(ae(e,t,s,n,i,!0))}function Lt(e){return e?e.__v_isVNode===!0:!1}function Ye(e,t){return e.type===t.type&&e.key===t.key}const gr=({key:e})=>e??null,rs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ie(e)||he(e)||K(e)?{i:we,r:e,k:t,f:!!s}:e:null);function mr(e,t=null,s=null,n=0,i=null,r=e===Ae?0:1,l=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gr(t),ref:t&&rs(t),scopeId:Bi,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:we};return o?(xn(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=ie(s)?8:16),yt>0&&!l&&be&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&be.push(c),c}const ae=To;function To(e,t=null,s=null,n=0,i=null,r=!1){if((!e||e===Kl)&&(e=Fe),Lt(e)){const o=xt(e,t,!0);return s&&xn(o,s),yt>0&&!r&&be&&(o.shapeFlag&6?be[be.indexOf(e)]=o:be.push(o)),o.patchFlag=-2,o}if(Ro(e)&&(e=e.__vccOpts),t){t=vo(t);let{class:o,style:c}=t;o&&!ie(o)&&(t.class=rn(o)),z(c)&&(pn(c)&&!V(c)&&(c=ce({},c)),t.style=nn(c))}const l=ie(e)?1:fr(e)?128:wl(e)?64:z(e)?4:K(e)?2:0;return mr(e,t,s,n,i,l,r,!0)}function vo(e){return e?pn(e)||zi(e)?ce({},e):e:null}function xt(e,t,s=!1,n=!1){const{props:i,ref:r,patchFlag:l,children:o,transition:c}=e,d=t?wo(i||{},t):i,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&gr(d),ref:t&&t.ref?s&&r?V(r)?r.concat(rs(t)):[r,rs(t)]:rs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ae?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&mn(a,c.clone(a)),a}function _r(e=" ",t=0){return ae(lt,null,e,t)}function dc(e="",t=!1){return t?(hr(),xo(Fe,null,e)):ae(Fe,null,e)}function Te(e){return e==null||typeof e=="boolean"?ae(Fe):V(e)?ae(Ae,null,e.slice()):Lt(e)?je(e):ae(lt,null,String(e))}function je(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function xn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(V(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),xn(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!zi(t)?t._ctx=we:i===3&&we&&(we.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:we},s=32):(t=String(t),n&64?(s=16,t=[_r(t)]):s=8);e.children=t,e.shapeFlag|=s}function wo(...e){const t={};for(let s=0;s ge||we;let ps,Xs;{const e=_s(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),r=>{i.length>1?i.forEach(l=>l(r)):i[0](r)}};ps=t("__VUE_INSTANCE_SETTERS__",s=>ge=s),Xs=t("__VUE_SSR_SETTERS__",s=>jt=s)}const kt=e=>{const t=ge;return ps(e),e.scope.on(),()=>{e.scope.off(),ps(t)}},qn=()=>{ge&&ge.scope.off(),ps(null)};function br(e){return e.vnode.shapeFlag&4}let jt=!1;function Mo(e,t=!1,s=!1){t&&Xs(t);const{props:n,children:i}=e.vnode,r=br(e);io(e,n,r,t),co(e,i,s||t);const l=r?Fo(e,t):void 0;return t&&Xs(!1),l}function Fo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ul);const{setup:n}=s;if(n){Ue();const i=e.setupContext=n.length>1?Po(e):null,r=kt(e),l=Ut(n,e,0,[e.props,i]),o=ui(l);if(We(),r(),(o||e.sp)&&!gt(e)&&Ki(e),o){if(l.then(qn,qn),t)return l.then(c=>{Zs(e,c)}).catch(c=>{Wt(c,e,0)});e.asyncDep=l}else Zs(e,l)}else yr(e)}function Zs(e,t,s){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=Ri(t)),yr(e)}function yr(e,t,s){const n=e.type;e.render||(e.render=n.render||De);{const i=kt(e);Ue();try{Wl(e)}finally{We(),i()}}}const Oo={get(e,t){return ue(e,"get",""),e[t]}};function Po(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Oo),slots:e.slots,emit:e.emit,expose:t}}function vs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ri(ol(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Pt)return Pt[s](e)},has(t,s){return s in t||s in Pt}})):e.proxy}function Ro(e){return K(e)&&"__vccOpts"in e}const Io=(e,t)=>dl(e,t,jt);function pc(e,t,s){try{ds(-1);const n=arguments.length;return n===2?z(t)&&!V(t)?Lt(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Lt(s)&&(s=[s]),ae(e,t,s))}finally{ds(1)}}const Do="3.5.28";/** +* @vue/runtime-dom v3.5.28 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Qs;const Gn=typeof window<"u"&&window.trustedTypes;if(Gn)try{Qs=Gn.createPolicy("vue",{createHTML:e=>e})}catch{}const xr=Qs?e=>Qs.createHTML(e):e=>e,No="http://www.w3.org/2000/svg",Ho="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,Jn=Le&&Le.createElement("template"),Bo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Le.createElementNS(No,e):t==="mathml"?Le.createElementNS(Ho,e):s?Le.createElement(e,{is:s}):Le.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const l=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{Jn.innerHTML=xr(n==="svg"?``:n==="mathml"?``:e);const o=Jn.content;if(n==="svg"||n==="mathml"){const c=o.firstChild;for(;c.firstChild;)o.appendChild(c.firstChild);o.removeChild(c)}t.insertBefore(o,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Lo=Symbol("_vtc");function jo(e,t,s){const n=e[Lo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Yn=Symbol("_vod"),Vo=Symbol("_vsh"),$o=Symbol(""),Ko=/(?:^|;)\s*display\s*:/;function Uo(e,t,s){const n=e.style,i=ie(s);let r=!1;if(s&&!i){if(t)if(ie(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();s[o]==null&&ls(n,o,"")}else for(const l in t)s[l]==null&&ls(n,l,"");for(const l in s)l==="display"&&(r=!0),ls(n,l,s[l])}else if(i){if(t!==s){const l=n[$o];l&&(s+=";"+l),n.cssText=s,r=Ko.test(s)}}else t&&e.removeAttribute("style");Yn in e&&(e[Yn]=r?n.display:"",e[Vo]&&(n.display="none"))}const Xn=/\s*!important$/;function ls(e,t,s){if(V(s))s.forEach(n=>ls(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Wo(e,t);Xn.test(s)?e.setProperty(et(n),s.replace(Xn,""),"important"):e[n]=s}}const Zn=["Webkit","Moz","ms"],Ns={};function Wo(e,t){const s=Ns[t];if(s)return s;let n=ze(t);if(n!=="filter"&&n in e)return Ns[t]=n;n=di(n);for(let i=0;i Hs||(Jo.then(()=>Hs=0),Hs=Date.now());function Xo(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;He(Zo(n,s.value),t,5,[n])};return s.value=e,s.attached=Yo(),s}function Zo(e,t){if(V(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const ni=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Qo=(e,t,s,n,i,r)=>{const l=i==="svg";t==="class"?jo(e,n,l):t==="style"?Uo(e,s,n):$t(t)?en(t)||qo(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zo(e,t,n,l))?(ei(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zn(e,t,n,l,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ie(n))?ei(e,ze(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),zn(e,t,n,l))};function zo(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ni(t)&&K(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ni(t)&&ie(s)?!1:t in e}const Tt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?s=>ts(t,s):t};function ec(e){e.target.composing=!0}function ii(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ke=Symbol("_assign");function ri(e,t,s){return t&&(e=e.trim()),s&&(e=ms(e)),e}const gc={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Ke]=Tt(i);const r=n||i.props&&i.props.type==="number";Xe(e,t?"change":"input",l=>{l.target.composing||e[Ke](ri(e.value,s,r))}),(s||r)&&Xe(e,"change",()=>{e.value=ri(e.value,s,r)}),t||(Xe(e,"compositionstart",ec),Xe(e,"compositionend",ii),Xe(e,"change",ii))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:r}},l){if(e[Ke]=Tt(l),e.composing)return;const o=(r||e.type==="number")&&!/^0\d/.test(e.value)?ms(e.value):e.value,c=t??"";o!==c&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===c)||(e.value=c))}},mc={deep:!0,created(e,t,s){e[Ke]=Tt(s),Xe(e,"change",()=>{const n=e._modelValue,i=Vt(e),r=e.checked,l=e[Ke];if(V(n)){const o=ln(n,i),c=o!==-1;if(r&&!c)l(n.concat(i));else if(!r&&c){const d=[...n];d.splice(o,1),l(d)}}else if(vt(n)){const o=new Set(n);r?o.add(i):o.delete(i),l(o)}else l(Tr(e,r))})},mounted:li,beforeUpdate(e,t,s){e[Ke]=Tt(s),li(e,t,s)}};function li(e,{value:t,oldValue:s},n){e._modelValue=t;let i;if(V(t))i=ln(t,n.props.value)>-1;else if(vt(t))i=t.has(n.props.value);else{if(t===s)return;i=wt(t,Tr(e,!0))}e.checked!==i&&(e.checked=i)}const _c={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=vt(t);Xe(e,"change",()=>{const r=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>s?ms(Vt(l)):Vt(l));e[Ke](e.multiple?i?new Set(r):r:r[0]),e._assigning=!0,Di(()=>{e._assigning=!1})}),e[Ke]=Tt(n)},mounted(e,{value:t}){oi(e,t)},beforeUpdate(e,t,s){e[Ke]=Tt(s)},updated(e,{value:t}){e._assigning||oi(e,t)}};function oi(e,t){const s=e.multiple,n=V(t);if(!(s&&!n&&!vt(t))){for(let i=0,r=e.options.length;i String(d)===String(o)):l.selected=ln(t,o)>-1}else l.selected=t.has(o);else if(wt(Vt(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vt(e){return"_value"in e?e._value:e.value}function Tr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const tc=["ctrl","shift","alt","meta"],sc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tc.some(s=>e[`${s}Key`]&&!t.includes(s))},bc=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((i,...r)=>{for(let l=0;l {const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(i=>{if(!("key"in i))return;const r=et(i.key);if(t.some(l=>l===r||nc[l]===r))return e(i)}))},vr=ce({patchProp:Qo},Bo);let It,ci=!1;function ic(){return It||(It=uo(vr))}function rc(){return It=ci?It:ao(vr),ci=!0,It}const xc=((...e)=>{const t=ic().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=Sr(n);if(!i)return;const r=t._component;!K(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=s(i,!1,wr(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t}),Tc=((...e)=>{const t=rc().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=Sr(n);if(i)return s(i,!0,wr(i))},t});function wr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Sr(e){return ie(e)?document.querySelector(e):e}export{Ae as F,ac as S,cc as T,mr as a,dc as b,hc as c,_r as d,_c as e,mc as f,bc as g,fc as h,lc as i,Ps as j,Io as k,xo as l,Di as m,rn as n,hr as o,yc as p,Dl as q,uc as r,pc as s,jr as t,Tc as u,gc as v,oc as w,xc as x}; diff --git a/dist/client/_astro/runtime-dom.esm-bundler.ALO2-icn.js b/dist/client/_astro/runtime-dom.esm-bundler.ALO2-icn.js deleted file mode 100644 index cf06536..0000000 --- a/dist/client/_astro/runtime-dom.esm-bundler.ALO2-icn.js +++ /dev/null @@ -1,5 +0,0 @@ -import{l as M,j as A,k as m,m as _,p as q,q as Q,s as B,u as Y,v as g,x as k,y as tt,z as et,A as nt,B as it,C as $,D as z,E as st,G as ot,H as W,I as rt,J as ct}from"./runtime-core.esm-bundler.D9KZBfyO.js";/** -* @vue/runtime-dom v3.5.28 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let v;const w=typeof window<"u"&&window.trustedTypes;if(w)try{v=w.createPolicy("vue",{createHTML:t=>t})}catch{}const j=v?t=>v.createHTML(t):t=>t,ft="http://www.w3.org/2000/svg",at="http://www.w3.org/1998/Math/MathML",a=typeof document<"u"?document:null,T=a&&a.createElement("template"),ut={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const s=e==="svg"?a.createElementNS(ft,t):e==="mathml"?a.createElementNS(at,t):n?a.createElement(t,{is:n}):a.createElement(t);return t==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:t=>a.createTextNode(t),createComment:t=>a.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>a.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,s,r){const o=n?n.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{T.innerHTML=j(i==="svg"?``:i==="mathml"?``:t);const c=T.content;if(i==="svg"||i==="mathml"){const f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}e.insertBefore(c,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},lt=Symbol("_vtc");function dt(t,e,n){const i=t[lt];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const N=Symbol("_vod"),pt=Symbol("_vsh"),mt=Symbol(""),ht=/(?:^|;)\s*display\s*:/;function gt(t,e,n){const i=t.style,s=g(n);let r=!1;if(n&&!s){if(e)if(g(e))for(const o of e.split(";")){const c=o.slice(0,o.indexOf(":")).trim();n[c]==null&&b(i,c,"")}else for(const o in e)n[o]==null&&b(i,o,"");for(const o in n)o==="display"&&(r=!0),b(i,o,n[o])}else if(s){if(e!==n){const o=i[mt];o&&(n+=";"+o),i.cssText=n,r=ht.test(n)}}else e&&t.removeAttribute("style");N in t&&(t[N]=r?i.display:"",t[pt]&&(i.display="none"))}const x=/\s*!important$/;function b(t,e,n){if(m(n))n.forEach(i=>b(t,e,i));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=St(t,e);x.test(n)?t.setProperty(W(i),n.replace(x,""),"important"):t[i]=n}}const I=["Webkit","Moz","ms"],C={};function St(t,e){const n=C[e];if(n)return n;let i=$(e);if(i!=="filter"&&i in t)return C[e]=i;i=rt(i);for(let s=0;s E||(Et.then(()=>E=0),E=Date.now());function Mt(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;ct(_t(i,n.value),e,5,[i])};return n.value=t,n.attached=vt(),n}function _t(t,e){if(m(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>s=>!s._stopped&&i&&i(s))}else return e}const V=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,wt=(t,e,n,i,s,r)=>{const o=s==="svg";e==="class"?dt(t,i,o):e==="style"?gt(t,n,i):nt(e)?it(e)||At(t,e,n,i,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Tt(t,e,i,o))?(R(t,e,i),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&P(t,e,i,o,r,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!g(i))?R(t,$(e),i,r,e):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),P(t,e,i,o))};function Tt(t,e,n,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in t&&V(e)&&B(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return V(e)&&g(n)?!1:e in t}const p=t=>{const e=t.props["onUpdate:modelValue"]||!1;return m(e)?n=>Q(e,n):e};function Nt(t){t.target.composing=!0}function y(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const u=Symbol("_assign");function K(t,e,n){return e&&(t=t.trim()),n&&(t=M(t)),t}const Ht={created(t,{modifiers:{lazy:e,trim:n,number:i}},s){t[u]=p(s);const r=i||s.props&&s.props.type==="number";l(t,e?"change":"input",o=>{o.target.composing||t[u](K(t.value,n,r))}),(n||r)&&l(t,"change",()=>{t.value=K(t.value,n,r)}),e||(l(t,"compositionstart",Nt),l(t,"compositionend",y),l(t,"change",y))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:i,trim:s,number:r}},o){if(t[u]=p(o),t.composing)return;const c=(r||t.type==="number")&&!/^0\d/.test(t.value)?M(t.value):t.value,f=e??"";c!==f&&(document.activeElement===t&&t.type!=="range"&&(i&&e===n||s&&t.value.trim()===f)||(t.value=f))}},Ot={deep:!0,created(t,e,n){t[u]=p(n),l(t,"change",()=>{const i=t._modelValue,s=S(t),r=t.checked,o=t[u];if(m(i)){const c=_(i,s),f=c!==-1;if(r&&!f)o(i.concat(s));else if(!r&&f){const d=[...i];d.splice(c,1),o(d)}}else if(A(i)){const c=new Set(i);r?c.add(s):c.delete(s),o(c)}else o(F(t,r))})},mounted:D,beforeUpdate(t,e,n){t[u]=p(n),D(t,e,n)}};function D(t,{value:e,oldValue:n},i){t._modelValue=e;let s;if(m(e))s=_(e,i.props.value)>-1;else if(A(e))s=e.has(i.props.value);else{if(e===n)return;s=q(e,F(t,!0))}t.checked!==s&&(t.checked=s)}const Vt={deep:!0,created(t,{value:e,modifiers:{number:n}},i){const s=A(e);l(t,"change",()=>{const r=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?M(S(o)):S(o));t[u](t.multiple?s?new Set(r):r:r[0]),t._assigning=!0,tt(()=>{t._assigning=!1})}),t[u]=p(i)},mounted(t,{value:e}){G(t,e)},beforeUpdate(t,e,n){t[u]=p(n)},updated(t,{value:e}){t._assigning||G(t,e)}};function G(t,e){const n=t.multiple,i=m(e);if(!(n&&!i&&!A(e))){for(let s=0,r=t.options.length;s String(d)===String(c)):o.selected=_(e,c)>-1}else o.selected=e.has(c);else if(q(S(o),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function S(t){return"_value"in t?t._value:t.value}function F(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const xt=["ctrl","shift","alt","meta"],It={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>xt.some(n=>t[`${n}Key`]&&!e.includes(n))},yt=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),i=e.join(".");return n[i]||(n[i]=((s,...r)=>{for(let o=0;o {const e=Lt().createApp(...t),{mount:n}=e;return e.mount=i=>{const s=Z(i);if(!s)return;const r=e._component;!B(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,J(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e}),Dt=((...t)=>{const e=Pt().createApp(...t),{mount:n}=e;return e.mount=i=>{const s=Z(i);if(s)return n(s,!0,J(s))},e});function J(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Z(t){return g(t)?document.querySelector(t):t}export{Vt as a,Ot as b,Dt as c,Kt as d,Ht as v,yt as w}; diff --git a/dist/client/favicon.svg b/dist/client/favicon.svg new file mode 100644 index 0000000..1726c13 --- /dev/null +++ b/dist/client/favicon.svg @@ -0,0 +1,21 @@ + + + + diff --git a/dist/server/_@astrojs-ssr-adapter.mjs b/dist/server/_@astrojs-ssr-adapter.mjs index be23b21..e53f9f6 100644 --- a/dist/server/_@astrojs-ssr-adapter.mjs +++ b/dist/server/_@astrojs-ssr-adapter.mjs @@ -1 +1 @@ -export { c as createExports, a as start } from './chunks/_@astrojs-ssr-adapter_DIu76Dvd.mjs'; +export { c as createExports, a as start } from './chunks/_@astrojs-ssr-adapter_BeL8VyJ8.mjs'; diff --git a/dist/server/chunks/_@astrojs-ssr-adapter_DIu76Dvd.mjs b/dist/server/chunks/_@astrojs-ssr-adapter_BeL8VyJ8.mjs similarity index 99% rename from dist/server/chunks/_@astrojs-ssr-adapter_DIu76Dvd.mjs rename to dist/server/chunks/_@astrojs-ssr-adapter_BeL8VyJ8.mjs index 50332bc..2db951c 100644 --- a/dist/server/chunks/_@astrojs-ssr-adapter_DIu76Dvd.mjs +++ b/dist/server/chunks/_@astrojs-ssr-adapter_BeL8VyJ8.mjs @@ -1,7 +1,7 @@ -import { q as decryptString, v as createSlotValueFromString, w as isAstroComponentFactory, k as renderComponent, r as renderTemplate, R as ROUTE_TYPE_HEADER, x as REROUTE_DIRECTIVE_HEADER, A as AstroError, y as i18nNoLocaleFoundInPath, z as ResponseSentError, B as ActionNotFoundError, C as MiddlewareNoDataOrNextCalled, D as MiddlewareNotAResponse, G as originPathnameSymbol, H as RewriteWithBodyUsed, J as GetStaticPathsRequired, K as InvalidGetStaticPathsReturn, O as InvalidGetStaticPathsEntry, P as GetStaticPathsExpectedParams, Q as GetStaticPathsInvalidRouteParam, S as PageNumberParamNotFound, T as DEFAULT_404_COMPONENT, V as NoMatchingStaticPathFound, W as PrerenderDynamicEndpointPathCollide, X as ReservedSlotName, Y as renderSlotToString, Z as renderJSX, _ as chunkToString, $ as isRenderInstruction, a0 as ForbiddenRewrite, a1 as SessionStorageInitError, a2 as SessionStorageSaveError, a3 as ASTRO_VERSION, a4 as CspNotEnabled, a5 as LocalsReassigned, a6 as generateCspDigest, a7 as PrerenderClientAddressNotAvailable, a8 as clientAddressSymbol, a9 as ClientAddressNotAvailable, aa as StaticClientAddressNotAvailable, ab as AstroResponseHeadersReassigned, ac as responseSentSymbol$1, ad as renderPage, ae as REWRITE_DIRECTIVE_HEADER_KEY, af as REWRITE_DIRECTIVE_HEADER_VALUE, ag as renderEndpoint, ah as LocalsNotAnObject, ai as FailedToFindPageMapSSR, aj as REROUTABLE_STATUS_CODES, ak as nodeRequestAbortControllerCleanupSymbol } from './astro/server_B-2LxKLH.mjs'; +import { q as decryptString, v as createSlotValueFromString, w as isAstroComponentFactory, k as renderComponent, r as renderTemplate, R as ROUTE_TYPE_HEADER, x as REROUTE_DIRECTIVE_HEADER, A as AstroError, y as i18nNoLocaleFoundInPath, z as ResponseSentError, B as ActionNotFoundError, C as MiddlewareNoDataOrNextCalled, D as MiddlewareNotAResponse, G as originPathnameSymbol, H as RewriteWithBodyUsed, J as GetStaticPathsRequired, K as InvalidGetStaticPathsReturn, O as InvalidGetStaticPathsEntry, P as GetStaticPathsExpectedParams, Q as GetStaticPathsInvalidRouteParam, S as PageNumberParamNotFound, T as DEFAULT_404_COMPONENT, V as NoMatchingStaticPathFound, W as PrerenderDynamicEndpointPathCollide, X as ReservedSlotName, Y as renderSlotToString, Z as renderJSX, _ as chunkToString, $ as isRenderInstruction, a0 as ForbiddenRewrite, a1 as SessionStorageInitError, a2 as SessionStorageSaveError, a3 as ASTRO_VERSION, a4 as CspNotEnabled, a5 as LocalsReassigned, a6 as generateCspDigest, a7 as PrerenderClientAddressNotAvailable, a8 as clientAddressSymbol, a9 as ClientAddressNotAvailable, aa as StaticClientAddressNotAvailable, ab as AstroResponseHeadersReassigned, ac as responseSentSymbol$1, ad as renderPage, ae as REWRITE_DIRECTIVE_HEADER_KEY, af as REWRITE_DIRECTIVE_HEADER_VALUE, ag as renderEndpoint, ah as LocalsNotAnObject, ai as FailedToFindPageMapSSR, aj as REROUTABLE_STATUS_CODES, ak as nodeRequestAbortControllerCleanupSymbol } from './astro/server_CF97kUu8.mjs'; import colors from 'piccolore'; import 'clsx'; -import { A as ActionError, d as deserializeActionResult, s as serializeActionResult, a as ACTION_RPC_ROUTE_PATTERN, b as ACTION_QUERY_PARAMS, g as getActionQueryString, D as DEFAULT_404_ROUTE, c as default404Instance, N as NOOP_MIDDLEWARE_FN, e as ensure404Route } from './astro-designed-error-pages_B_BAqCrl.mjs'; +import { A as ActionError, d as deserializeActionResult, s as serializeActionResult, a as ACTION_RPC_ROUTE_PATTERN, b as ACTION_QUERY_PARAMS, g as getActionQueryString, D as DEFAULT_404_ROUTE, c as default404Instance, N as NOOP_MIDDLEWARE_FN, e as ensure404Route } from './astro-designed-error-pages_DSexancP.mjs'; import 'es-module-lexer'; import buffer from 'node:buffer'; import crypto$1 from 'node:crypto'; diff --git a/dist/server/chunks/_plugin-vue_export-helper_B1lnwsE2.mjs b/dist/server/chunks/_plugin-vue_export-helper_B1lnwsE2.mjs deleted file mode 100644 index 17fca43..0000000 --- a/dist/server/chunks/_plugin-vue_export-helper_B1lnwsE2.mjs +++ /dev/null @@ -1,24 +0,0 @@ -import { e as createComponent, n as renderHead, o as renderSlot, r as renderTemplate, h as createAstro } from './astro/server_B-2LxKLH.mjs'; -import 'piccolore'; -import 'clsx'; -/* empty css */ - -const $$Astro = createAstro(); -const $$Base = createComponent(($$result, $$props, $$slots) => { - const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); - Astro2.self = $$Base; - const { title = "Skillit" } = Astro2.props; - return renderTemplate` ${title} ${renderHead()}${renderSlot($$result, $$slots["default"])} `; -}, "/Users/alex/projects/skillit/src/layouts/Base.astro", void 0); - -const _export_sfc = (sfc, props) => { - const target = sfc.__vccOpts || sfc; - for (const [key, val] of props) { - target[key] = val; - } - return target; -}; - -export { $$Base as $, _export_sfc as _ }; diff --git a/dist/server/chunks/_plugin-vue_export-helper_CEgY73aA.mjs b/dist/server/chunks/_plugin-vue_export-helper_CEgY73aA.mjs new file mode 100644 index 0000000..cd4a30a --- /dev/null +++ b/dist/server/chunks/_plugin-vue_export-helper_CEgY73aA.mjs @@ -0,0 +1,24 @@ +import { e as createAstro, f as createComponent, n as renderHead, o as renderSlot, r as renderTemplate } from './astro/server_CF97kUu8.mjs'; +import 'piccolore'; +import 'clsx'; +/* empty css */ + +const $$Astro = createAstro("https://skills.here.run.place"); +const $$Base = createComponent(($$result, $$props, $$slots) => { + const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); + Astro2.self = $$Base; + const { title = "Skills Here" } = Astro2.props; + return renderTemplate`${title} ${renderHead()}${renderSlot($$result, $$slots["default"])} `; +}, "/Users/alex/projects/skillit/src/layouts/Base.astro", void 0); + +const _export_sfc = (sfc, props) => { + const target = sfc.__vccOpts || sfc; + for (const [key, val] of props) { + target[key] = val; + } + return target; +}; + +export { $$Base as $, _export_sfc as _ }; diff --git a/dist/server/chunks/astro-designed-error-pages_B_BAqCrl.mjs b/dist/server/chunks/astro-designed-error-pages_DSexancP.mjs similarity index 99% rename from dist/server/chunks/astro-designed-error-pages_B_BAqCrl.mjs rename to dist/server/chunks/astro-designed-error-pages_DSexancP.mjs index 91acbe2..24fd071 100644 --- a/dist/server/chunks/astro-designed-error-pages_B_BAqCrl.mjs +++ b/dist/server/chunks/astro-designed-error-pages_DSexancP.mjs @@ -1,4 +1,4 @@ -import { al as NOOP_MIDDLEWARE_HEADER, am as REDIRECT_STATUS_CODES, A as AstroError, an as ActionsReturnedInvalidDataError, T as DEFAULT_404_COMPONENT } from './astro/server_B-2LxKLH.mjs'; +import { al as NOOP_MIDDLEWARE_HEADER, am as REDIRECT_STATUS_CODES, A as AstroError, an as ActionsReturnedInvalidDataError, T as DEFAULT_404_COMPONENT } from './astro/server_CF97kUu8.mjs'; import { parse, stringify } from 'devalue'; import { escape } from 'html-escaper'; @@ -12,7 +12,7 @@ const ACTION_QUERY_PARAMS$1 = { actionName: "_action"}; const ACTION_RPC_ROUTE_PATTERN = "/_actions/[...path]"; -const __vite_import_meta_env__ = {"ASSETS_PREFIX": undefined, "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SITE": undefined, "SSR": true}; +const __vite_import_meta_env__ = {"ASSETS_PREFIX": undefined, "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SITE": "https://skills.here.run.place", "SSR": true}; const ACTION_QUERY_PARAMS = ACTION_QUERY_PARAMS$1; const codeToStatusMap = { // Implemented from IANA HTTP Status Code Registry diff --git a/dist/server/chunks/astro/server_B-2LxKLH.mjs b/dist/server/chunks/astro/server_CF97kUu8.mjs similarity index 99% rename from dist/server/chunks/astro/server_B-2LxKLH.mjs rename to dist/server/chunks/astro/server_CF97kUu8.mjs index 13bc881..6104092 100644 --- a/dist/server/chunks/astro/server_B-2LxKLH.mjs +++ b/dist/server/chunks/astro/server_CF97kUu8.mjs @@ -455,7 +455,7 @@ Use import.meta.glob instead: https://vitejs.dev/guide/features.html#glob-import } function createAstro(site) { return { - site: void 0, + site: new URL(site) , generator: `Astro v${ASTRO_VERSION}`, glob: createAstroGlobFn() }; @@ -2837,4 +2837,4 @@ function spreadAttributes(values = {}, _name, { class: scopedClassName } = {}) { return markHTMLString(output); } -export { isRenderInstruction as $, AstroError as A, ActionNotFoundError as B, MiddlewareNoDataOrNextCalled as C, MiddlewareNotAResponse as D, ExpectedImage as E, FailedToFetchRemoteImageDimensions as F, originPathnameSymbol as G, RewriteWithBodyUsed as H, IncompatibleDescriptorOptions as I, GetStaticPathsRequired as J, InvalidGetStaticPathsReturn as K, LocalImageUsedWrongly as L, MissingImageDimension as M, NoImageMetadata as N, InvalidGetStaticPathsEntry as O, GetStaticPathsExpectedParams as P, GetStaticPathsInvalidRouteParam as Q, ROUTE_TYPE_HEADER as R, PageNumberParamNotFound as S, DEFAULT_404_COMPONENT as T, UnsupportedImageFormat as U, NoMatchingStaticPathFound as V, PrerenderDynamicEndpointPathCollide as W, ReservedSlotName as X, renderSlotToString as Y, renderJSX as Z, chunkToString as _, UnsupportedImageConversion as a, ForbiddenRewrite as a0, SessionStorageInitError as a1, SessionStorageSaveError as a2, ASTRO_VERSION as a3, CspNotEnabled as a4, LocalsReassigned as a5, generateCspDigest as a6, PrerenderClientAddressNotAvailable as a7, clientAddressSymbol as a8, ClientAddressNotAvailable as a9, StaticClientAddressNotAvailable as aa, AstroResponseHeadersReassigned as ab, responseSentSymbol as ac, renderPage as ad, REWRITE_DIRECTIVE_HEADER_KEY as ae, REWRITE_DIRECTIVE_HEADER_VALUE as af, renderEndpoint as ag, LocalsNotAnObject as ah, FailedToFindPageMapSSR as ai, REROUTABLE_STATUS_CODES as aj, nodeRequestAbortControllerCleanupSymbol as ak, NOOP_MIDDLEWARE_HEADER as al, REDIRECT_STATUS_CODES as am, ActionsReturnedInvalidDataError as an, MissingSharp as ao, ExpectedImageOptions as b, ExpectedNotESMImage as c, InvalidImageService as d, createComponent as e, ImageMissingAlt as f, addAttribute as g, createAstro as h, ExperimentalFontsNotEnabled as i, FontFamilyNotFound as j, renderComponent as k, renderScript as l, maybeRenderHead as m, renderHead as n, renderSlot as o, decodeKey as p, decryptString as q, renderTemplate as r, spreadAttributes as s, toStyleString as t, unescapeHTML as u, createSlotValueFromString as v, isAstroComponentFactory as w, REROUTE_DIRECTIVE_HEADER as x, i18nNoLocaleFoundInPath as y, ResponseSentError as z }; +export { isRenderInstruction as $, AstroError as A, ActionNotFoundError as B, MiddlewareNoDataOrNextCalled as C, MiddlewareNotAResponse as D, ExpectedImage as E, FailedToFetchRemoteImageDimensions as F, originPathnameSymbol as G, RewriteWithBodyUsed as H, IncompatibleDescriptorOptions as I, GetStaticPathsRequired as J, InvalidGetStaticPathsReturn as K, LocalImageUsedWrongly as L, MissingImageDimension as M, NoImageMetadata as N, InvalidGetStaticPathsEntry as O, GetStaticPathsExpectedParams as P, GetStaticPathsInvalidRouteParam as Q, ROUTE_TYPE_HEADER as R, PageNumberParamNotFound as S, DEFAULT_404_COMPONENT as T, UnsupportedImageFormat as U, NoMatchingStaticPathFound as V, PrerenderDynamicEndpointPathCollide as W, ReservedSlotName as X, renderSlotToString as Y, renderJSX as Z, chunkToString as _, UnsupportedImageConversion as a, ForbiddenRewrite as a0, SessionStorageInitError as a1, SessionStorageSaveError as a2, ASTRO_VERSION as a3, CspNotEnabled as a4, LocalsReassigned as a5, generateCspDigest as a6, PrerenderClientAddressNotAvailable as a7, clientAddressSymbol as a8, ClientAddressNotAvailable as a9, StaticClientAddressNotAvailable as aa, AstroResponseHeadersReassigned as ab, responseSentSymbol as ac, renderPage as ad, REWRITE_DIRECTIVE_HEADER_KEY as ae, REWRITE_DIRECTIVE_HEADER_VALUE as af, renderEndpoint as ag, LocalsNotAnObject as ah, FailedToFindPageMapSSR as ai, REROUTABLE_STATUS_CODES as aj, nodeRequestAbortControllerCleanupSymbol as ak, NOOP_MIDDLEWARE_HEADER as al, REDIRECT_STATUS_CODES as am, ActionsReturnedInvalidDataError as an, MissingSharp as ao, ExpectedImageOptions as b, ExpectedNotESMImage as c, InvalidImageService as d, createAstro as e, createComponent as f, ImageMissingAlt as g, addAttribute as h, ExperimentalFontsNotEnabled as i, FontFamilyNotFound as j, renderComponent as k, renderScript as l, maybeRenderHead as m, renderHead as n, renderSlot as o, decodeKey as p, decryptString as q, renderTemplate as r, spreadAttributes as s, toStyleString as t, unescapeHTML as u, createSlotValueFromString as v, isAstroComponentFactory as w, REROUTE_DIRECTIVE_HEADER as x, i18nNoLocaleFoundInPath as y, ResponseSentError as z }; diff --git a/dist/server/chunks/models_DPfuEi7q.mjs b/dist/server/chunks/models_BK7lP4G3.mjs similarity index 61% rename from dist/server/chunks/models_DPfuEi7q.mjs rename to dist/server/chunks/models_BK7lP4G3.mjs index 8e20192..8bceed6 100644 --- a/dist/server/chunks/models_DPfuEi7q.mjs +++ b/dist/server/chunks/models_BK7lP4G3.mjs @@ -1,13 +1,14 @@ -import { useSSRContext, defineComponent, ref, computed, watch, mergeProps } from 'vue'; +import { useSSRContext, defineComponent, computed, ref, watch, mergeProps } from 'vue'; import { marked } from 'marked'; -import { ssrRenderAttrs, ssrRenderAttr, ssrInterpolate, ssrRenderList, ssrRenderClass, ssrIncludeBooleanAttr, ssrLooseContain, ssrLooseEqual } from 'vue/server-renderer'; -import { _ as _export_sfc } from './_plugin-vue_export-helper_B1lnwsE2.mjs'; +import { ssrRenderAttrs, ssrRenderAttr, ssrRenderClass, ssrInterpolate, ssrRenderList, ssrIncludeBooleanAttr, ssrLooseContain, ssrLooseEqual } from 'vue/server-renderer'; +import { _ as _export_sfc } from './_plugin-vue_export-helper_CEgY73aA.mjs'; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "SkillEditor", props: { mode: {}, slug: {}, + forkOf: {}, initialName: {}, initialDescription: {}, initialAllowedTools: {}, @@ -19,8 +20,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({ initialAgent: {}, initialHooks: {}, initialBody: {}, + initialAuthor: {}, + initialAuthorEmail: {}, + initialTags: {}, availableTools: {}, - availableModels: {} + availableModels: {}, + availableTags: {} }, setup(__props, { expose: __expose }) { __expose(); @@ -42,6 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({ { id: "claude-sonnet-4-5-20250929", display_name: "Claude Sonnet 4.5" }, { id: "claude-haiku-4-5-20251001", display_name: "Claude Haiku 4.5" } ]; + const isFork = computed(() => Boolean(props.forkOf)); const name = ref(props.initialName || ""); const description = ref(props.initialDescription || ""); const argumentHint = ref(props.initialArgumentHint || ""); @@ -51,9 +57,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({ const context = ref(props.initialContext || ""); const agent = ref(props.initialAgent || ""); const hooksJson = ref(props.initialHooks || ""); + const tags = ref( + props.initialTags ? props.initialTags.split(",").map((t) => t.trim()).filter(Boolean) : [] + ); + const tagQuery = ref(""); + const tagSuggestionsOpen = ref(false); + const tagInputEl = ref(); + const knownTags = props.availableTags ? props.availableTags.split(",").map((t) => t.trim()).filter(Boolean) : []; const body = ref(props.initialBody || ""); const saving = ref(false); const error = ref(""); + const forkAuthorName = ref(""); + const forkAuthorEmail = ref(""); + const authorToken = ref( + typeof localStorage !== "undefined" ? localStorage.getItem("skillshere-token") || "" : "" + ); const selectedTools = ref(new Set( props.initialAllowedTools ? props.initialAllowedTools.split(",").map((t) => t.trim()).filter(Boolean) : [] )); @@ -65,10 +83,56 @@ const _sfc_main = /* @__PURE__ */ defineComponent({ } selectedTools.value = new Set(selectedTools.value); } + const tagSuggestions = computed(() => { + const q = tagQuery.value.toLowerCase().trim(); + const current = new Set(tags.value.map((t) => t.toLowerCase())); + const matches = knownTags.filter((t) => !current.has(t.toLowerCase()) && (!q || t.toLowerCase().includes(q))); + if (q && !current.has(q) && !matches.some((m) => m.toLowerCase() === q)) { + matches.push(q); + } + return matches; + }); + const isNewTag = (tag) => !knownTags.some((t) => t.toLowerCase() === tag.toLowerCase()); + function addTag(tag) { + const normalized = tag.trim().toLowerCase(); + if (normalized && !tags.value.some((t) => t.toLowerCase() === normalized)) { + tags.value.push(normalized); + } + tagQuery.value = ""; + tagInputEl.value?.focus(); + } + function removeTag(idx) { + tags.value.splice(idx, 1); + } + function onTagKeydown(e) { + if (e.key === "Enter" || e.key === ",") { + e.preventDefault(); + if (tagQuery.value.trim()) { + addTag(tagQuery.value); + } + } else if (e.key === "Backspace" && !tagQuery.value && tags.value.length) { + tags.value.pop(); + } + } + let tagBlurTimer; + function onTagBlur() { + tagBlurTimer = setTimeout(() => { + tagSuggestionsOpen.value = false; + }, 200); + } + function onTagSuggestionClick(tag) { + clearTimeout(tagBlurTimer); + addTag(tag); + } const computedSlug = computed(() => { if (props.mode === "edit" && props.slug) return props.slug; return name.value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 64) || "my-skill"; }); + const slugMatchesOriginal = computed(() => { + if (!props.forkOf) return false; + return computedSlug.value === props.forkOf; + }); + const bodyLines = computed(() => body.value.split("\n").length); let previewHtml = ref(""); let debounceTimer; watch(body, (val) => { @@ -82,8 +146,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({ const lines = ["---"]; lines.push(`name: ${name.value}`); if (description.value) lines.push(`description: ${description.value}`); + if (isFork.value) { + if (forkAuthorName.value) lines.push(`author: ${forkAuthorName.value}`); + if (forkAuthorEmail.value) lines.push(`author-email: ${forkAuthorEmail.value}`); + lines.push(`fork-of: ${props.forkOf}`); + } else { + if (props.initialAuthor) lines.push(`author: ${props.initialAuthor}`); + if (props.initialAuthorEmail) lines.push(`author-email: ${props.initialAuthorEmail}`); + } if (argumentHint.value) lines.push(`argument-hint: ${argumentHint.value}`); if (tools.length > 0) lines.push(`allowed-tools: ${tools.join(", ")}`); + if (tags.value.length > 0) lines.push(`tags: ${tags.value.join(", ")}`); if (model.value) lines.push(`model: ${model.value}`); if (userInvocable.value === false) lines.push("user-invocable: false"); if (disableModelInvocation.value) lines.push("disable-model-invocation: true"); @@ -104,10 +177,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({ error.value = ""; try { const content = buildContent(); + const headers = { "Content-Type": "application/json" }; + if (!isFork.value && authorToken.value) { + headers["Authorization"] = `Bearer ${authorToken.value}`; + } if (props.mode === "create") { const res = await fetch("/api/skills", { method: "POST", - headers: { "Content-Type": "application/json" }, + headers, body: JSON.stringify({ slug: computedSlug.value, content }) }); if (!res.ok) { @@ -118,7 +195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({ } else { const res = await fetch(`/api/skills/${props.slug}`, { method: "PUT", - headers: { "Content-Type": "application/json" }, + headers, body: JSON.stringify({ content }) }); if (!res.ok) { @@ -133,7 +210,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({ saving.value = false; } } - const __returned__ = { props, AVAILABLE_TOOLS, AVAILABLE_MODELS, name, description, argumentHint, model, userInvocable, disableModelInvocation, context, agent, hooksJson, body, saving, error, selectedTools, toggleTool, computedSlug, get previewHtml() { + const __returned__ = { props, AVAILABLE_TOOLS, AVAILABLE_MODELS, isFork, name, description, argumentHint, model, userInvocable, disableModelInvocation, context, agent, hooksJson, tags, tagQuery, tagSuggestionsOpen, tagInputEl, knownTags, body, saving, error, forkAuthorName, forkAuthorEmail, authorToken, selectedTools, toggleTool, tagSuggestions, isNewTag, addTag, removeTag, onTagKeydown, get tagBlurTimer() { + return tagBlurTimer; + }, set tagBlurTimer(v) { + tagBlurTimer = v; + }, onTagBlur, onTagSuggestionClick, computedSlug, slugMatchesOriginal, bodyLines, get previewHtml() { return previewHtml; }, set previewHtml(v) { previewHtml = v; @@ -147,7 +228,47 @@ const _sfc_main = /* @__PURE__ */ defineComponent({ } }); function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) { - _push(`