scrum-skills 0.2.7 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/assets/board/200.html +1 -1
  2. package/assets/board/404.html +1 -1
  3. package/assets/board/_nuxt/{wRPvhAJz.js → 1eqboJxR.js} +1 -1
  4. package/assets/board/_nuxt/{CTK2Sysu.js → 2K7ag6ES.js} +1 -1
  5. package/assets/board/_nuxt/{BfBP16Im.js → BDK2Hj7B.js} +1 -1
  6. package/assets/board/_nuxt/{D7ufz00d.js → BDcnzXHq.js} +1 -1
  7. package/assets/board/_nuxt/{CyG4hsVv.js → BodFvto3.js} +1 -1
  8. package/assets/board/_nuxt/{BbaAxZ2N.js → BpWeHLuN.js} +1 -1
  9. package/assets/board/_nuxt/{f1ditBVp.js → C40iTe-x.js} +1 -1
  10. package/assets/board/_nuxt/{CqTxogVu.js → CGI_ZV79.js} +1 -1
  11. package/assets/board/_nuxt/{b2JYbYKt.js → CJMBJQuf.js} +1 -1
  12. package/assets/board/_nuxt/{M6ZOYZ8R.js → CMUi2-Lj.js} +1 -1
  13. package/assets/board/_nuxt/{CXCIZbbz.js → COf6E6h4.js} +1 -1
  14. package/assets/board/_nuxt/{CKtAvtay.js → CPCUMJnF.js} +1 -1
  15. package/assets/board/_nuxt/{DNtz8Ent.js → CPcKlmSm.js} +1 -1
  16. package/assets/board/_nuxt/{BaqGLZhY.js → CSSb154I.js} +1 -1
  17. package/assets/board/_nuxt/{CMt3SL3m.js → CkF353aX.js} +15 -15
  18. package/assets/board/_nuxt/{Dc4dIyTM.js → CvLiA4_O.js} +1 -1
  19. package/assets/board/_nuxt/{BWgbICJ-.js → Cvs12oA0.js} +1 -1
  20. package/assets/board/_nuxt/{BC0YsiYy.js → CyEXFe3V.js} +1 -1
  21. package/assets/board/_nuxt/{KxQggkNX.js → D2FhHl1o.js} +1 -1
  22. package/assets/board/_nuxt/{q6p4rsh_.js → D75vbfSb.js} +1 -1
  23. package/assets/board/_nuxt/{DUhdM-rb.js → DEfLc7p3.js} +1 -1
  24. package/assets/board/_nuxt/{CmyOKc3S.js → DRPlYvb3.js} +1 -1
  25. package/assets/board/_nuxt/{z40PaBW1.js → DRlQgul3.js} +1 -1
  26. package/assets/board/_nuxt/{jtompfyX.js → D_S6N7_b.js} +1 -1
  27. package/assets/board/_nuxt/{BscJTep0.js → DfR3IZN_.js} +1 -1
  28. package/assets/board/_nuxt/{DOdi2wDw.js → DhuleNnm.js} +1 -1
  29. package/assets/board/_nuxt/{Cplt7ZnK.js → DnDHGSYI.js} +1 -1
  30. package/assets/board/_nuxt/DrprggWq.js +3 -0
  31. package/assets/board/_nuxt/{BetRVCu6.js → Dtsa-1NS.js} +1 -1
  32. package/assets/board/_nuxt/{C5MtlISK.js → Dx1wcYFo.js} +1 -1
  33. package/assets/board/_nuxt/{o_84IzFk.js → EYTShbt4.js} +1 -1
  34. package/assets/board/_nuxt/{CcYp6rwI.js → P9x67aq2.js} +1 -1
  35. package/assets/board/_nuxt/{DgbDcd9I.js → assMu_Wn.js} +1 -1
  36. package/assets/board/_nuxt/builds/latest.json +1 -1
  37. package/assets/board/_nuxt/builds/meta/d7f0931f-32b3-4c23-b05f-7cbf5851b226.json +1 -0
  38. package/assets/board/_nuxt/{entry.CqnxzTAU.css → entry.Dx3CNA--.css} +1 -1
  39. package/assets/board/_nuxt/last-change.8FndoiOt.css +1 -0
  40. package/assets/board/_nuxt/{DrZpfjBq.js → rlePnzpc.js} +1 -1
  41. package/assets/board/_nuxt/{Cti_rGPY.js → vwxaNGfc.js} +1 -1
  42. package/assets/board/burndown/index.html +1 -1
  43. package/assets/board/epics/index.html +1 -1
  44. package/assets/board/gantt/index.html +1 -1
  45. package/assets/board/index.html +1 -1
  46. package/assets/board/last-change/index.html +1 -1
  47. package/assets/board/milestones/index.html +1 -1
  48. package/docs/ai-assistant-guide.md +1008 -0
  49. package/package.json +1 -1
  50. package/assets/board/_nuxt/Cj8KbSzE.js +0 -2
  51. package/assets/board/_nuxt/builds/meta/88de87b9-e62d-4466-a908-66ef1b011538.json +0 -1
  52. package/assets/board/_nuxt/last-change.B59xu_sV.css +0 -1
@@ -1 +1 @@
1
- import{D as e,E as t,On as n,T as r,Ut as i,Yt as ee,Zn as a,_ as o,b as s,bt as c,er as te,g as l,k as u,mt as d,o as f,qt as ne,tr as p,un as re,vn as m,y as h}from"./DZo3dYLJ.js";import{S as ie}from"./51OWHj8c.js";import{t as ae}from"./CJ2mz0WY.js";import{t as oe}from"./D7ufz00d.js";import{t as se}from"./DrZpfjBq.js";import{a as g,i as _,o as v,r as ce,s as y}from"#entry";var le={class:`kpis`},ue={class:`v`},de={class:`v`},fe={class:`v`},pe={class:`v`},me={key:0,class:`card panel`},he={class:`panel-hd`},ge={class:`ph-l`},_e={class:`sp-name`},ve={class:`sub mono`},ye={class:`goal`},be={class:`chart-wrap`},xe=[`viewBox`],Se=[`y1`,`x2`,`y2`],b=[`x`,`y`],x=[`d`],S=[`d`],C=[`points`],w=[`cx`,`cy`],T=[`x1`,`y1`,`x2`,`y2`],E=[`x`,`y`],D=[`x`,`y`],O=[`x1`,`y1`,`x2`,`y2`],k=[`cx`,`cy`],A={class:`cells`},j={class:`cd mono`},Ce={class:`ca`},we={class:`ci dim`},Te={key:0,class:`scope`},Ee={class:`h3`},De={class:`tag tag-info`},Oe={class:`dim`},ke={key:1,class:`callout soft`},Ae={class:`card`},je={class:`card-hd`},Me={class:`tag tag-neutral`},M={class:`card-bd`},Ne={class:`tbl`},Pe=[`onClick`],Fe={class:`mono`},Ie={class:`mono dim`},Le={class:`r`},Re={class:`r mono`},ze=980,Be=300,N=42,P=_(u({__name:`burndown`,setup(u){let{sprints:_,burndown:P,sprintCommit:F,md:I,now:L,sprintById:R,storyById:Ve,SCOPE_LABEL:z}=y(),B=m(``),He=l(()=>[..._.value].reverse().map(e=>({label:`${e.id} · ${e.name}`,value:e.id,icon:`i-lucide-calendar-range`}))),V=l(()=>R.value.get(B.value)??_.value[_.value.length-1]),H=l(()=>V.value?P(V.value):{total:0,days:[]});i(()=>{B.value&&!R.value.has(B.value)&&(B.value=``),!B.value&&_.value.length&&(B.value=_.value[_.value.length-1].id)});let U=l(()=>H.value.days.length||1),W=l(()=>H.value.total||1),G=e=>N+e*896/(U.value-1||1),K=e=>258-e*216/W.value,Ue=e=>H.value.days.map((t,n)=>`${G(n)},${K(t[e])}`).join(` `),We=l(()=>{let e=H.value.days.map((e,t)=>`${G(t)},${K(e.actual)}`).join(` `),t=H.value.days.length-1;return`M${G(0)},${K(0)} L${e.replaceAll(` `,` L`)} L${G(t)},${K(0)} Z`}),q=l(()=>H.value.days.findIndex(e=>e.date===L)),J=l(()=>H.value.days.find(e=>e.date===L)??H.value.days[H.value.days.length-1]),Y=l(()=>J.value?.actual??0),X=l(()=>J.value?.ideal??0),Z=l(()=>Math.round((Y.value-X.value)*10)/10),Q=l(()=>{let e=V.value;return e?(e.stories??[]).map(e=>Ve.value.get(e)).filter(Boolean).filter(t=>t.scopeChange&&t.scopeChange.at>=e.start&&t.scopeChange.at<=e.end).map(e=>({id:e.id,title:e.title,at:e.scopeChange.at,kind:e.scopeChange.kind,reason:e.scopeChange.reason,points:e.points,idx:H.value.days.findIndex(t=>t.date===e.scopeChange.at)})).filter(e=>e.idx>=0):[]}),Ge=l(()=>new Set(Q.value.map(e=>e.at))),$=l(()=>[..._.value].reverse().map(e=>{let t=e.start<=L&&e.end>=L;return{id:e.id,name:e.name,period:`${I(e.start)} ~ ${I(e.end)}`,stories:(e.stories??[]).length,commit:F(e),capacity:e.capacity,status:t?`进行中`:e.end<L?`已结束`:`未开始`,tone:t?`tag-primary`:e.end<L?`tag-neutral`:`tag-info`}}));return(i,l)=>{let u=ce,m=oe,_=se,y=ae;return d(),s(`div`,null,[o(`div`,le,[o(`div`,{class:a([`kpi`,(`cardToneClass`in i?i.cardToneClass:n(v))(0)])},[e(u,{tone:(`cardTone`in i?i.cardTone:n(g))(0),size:`sm`},null,8,[`tone`]),l[1]||=o(`p`,{class:`k`},`剩余故事点`,-1),o(`p`,ue,[t(p(n(Y)),1),o(`small`,null,`/ `+p(n(H).total),1)])],2),o(`div`,{class:a([`kpi`,(`cardToneClass`in i?i.cardToneClass:n(v))(1)])},[e(u,{tone:(`cardTone`in i?i.cardTone:n(g))(1),size:`sm`},null,8,[`tone`]),l[3]||=o(`p`,{class:`k`},`理想剩余(今天)`,-1),o(`p`,de,[t(p(n(X)),1),l[2]||=o(`small`,null,`点`,-1)])],2),o(`div`,{class:a([`kpi`,(`cardToneClass`in i?i.cardToneClass:n(v))(2)])},[e(u,{tone:(`cardTone`in i?i.cardTone:n(g))(2),size:`sm`},null,8,[`tone`]),l[5]||=o(`p`,{class:`k`},`偏差`,-1),o(`p`,{class:a([`v`,{bad:n(Z)>0,good:n(Z)<=0}])},[t(p(n(Z)>0?`+`+n(Z):n(Z)),1),l[4]||=o(`small`,null,`点`,-1)],2)],2),o(`div`,{class:a([`kpi`,(`cardToneClass`in i?i.cardToneClass:n(v))(3)])},[e(u,{tone:(`cardTone`in i?i.cardTone:n(g))(3),size:`sm`},null,8,[`tone`]),l[6]||=o(`p`,{class:`k`},`承诺 / 容量`,-1),o(`p`,fe,[t(p(n(V)?n(F)(n(V)):0),1),o(`small`,null,`/ `+p(n(V)?.capacity??0),1)])],2),o(`div`,{class:a([`kpi`,(`cardToneClass`in i?i.cardToneClass:n(v))(4)])},[e(u,{tone:(`cardTone`in i?i.cardTone:n(g))(4),size:`sm`},null,8,[`tone`]),l[8]||=o(`p`,{class:`k`},`范围变更`,-1),o(`p`,pe,[t(p(n(Q).length),1),l[7]||=o(`small`,null,`次`,-1)])],2)]),n(V)?(d(),s(`div`,me,[o(`div`,he,[o(`div`,ge,[o(`h2`,_e,p(n(V).name),1),o(`p`,ve,p(n(V).id)+` · `+p(n(I)(n(V).start))+` ~ `+p(n(I)(n(V).end)),1),o(`p`,ye,p(n(V).goal),1)]),e(m,{modelValue:n(B),"onUpdate:modelValue":l[0]||=e=>re(B)?B.value=e:null,items:n(He),icon:`i-lucide-calendar-range`,"aria-label":`选择迭代`,class:`bd-select`},null,8,[`modelValue`,`items`])]),o(`div`,be,[l[10]||=r(`<div class="chart-legend" data-v-d8ba9a67><span class="lg" data-v-d8ba9a67><i class="sw actual" data-v-d8ba9a67></i>实际剩余</span><span class="lg" data-v-d8ba9a67><i class="sw ideal" data-v-d8ba9a67></i>理想线</span><span class="lg" data-v-d8ba9a67><i class="sw scope" data-v-d8ba9a67></i>范围变更</span></div>`,1),(d(),s(`svg`,{viewBox:`0 0 ${ze} ${Be}`,class:`chart`,role:`img`},[l[9]||=r(`<defs data-v-d8ba9a67><linearGradient id="bd-line" x1="0" y1="0" x2="1" y2="0" data-v-d8ba9a67><stop offset="0%" stop-color="#8a63f7" data-v-d8ba9a67></stop><stop offset="100%" stop-color="#c3aefb" data-v-d8ba9a67></stop></linearGradient><linearGradient id="bd-area" x1="0" y1="0" x2="0" y2="1" data-v-d8ba9a67><stop offset="0%" stop-color="#8a63f7" stop-opacity="0.16" data-v-d8ba9a67></stop><stop offset="100%" stop-color="#8a63f7" stop-opacity="0" data-v-d8ba9a67></stop></linearGradient></defs>`,1),o(`g`,null,[(d(),s(f,null,c([0,.25,.5,.75,1],e=>o(`line`,{key:`grid`+e,x1:N,y1:K(n(W)*e),x2:938,y2:K(n(W)*e),stroke:`#f1f0ea`,"stroke-width":`1`},null,8,Se)),64)),(d(),s(f,null,c([0,.25,.5,.75,1],e=>o(`text`,{key:`gl`+e,x:32,y:K(n(W)*e)+3.5,"text-anchor":`end`,"font-size":`9.5`,fill:`#b0b4ba`},p(Math.round(n(W)*e)),9,b)),64))]),o(`path`,{d:n(We),fill:`url(#bd-area)`},null,8,x),o(`path`,{d:`M${G(0)},${K(n(W))} L${G(n(U)-1)},${K(0)}`,stroke:`#cdc9d8`,"stroke-width":`1.4`,"stroke-dasharray":`5 5`,fill:`none`},null,8,S),o(`polyline`,{points:Ue(`actual`),stroke:`url(#bd-line)`,"stroke-width":`2.6`,fill:`none`,"stroke-linejoin":`round`,"stroke-linecap":`round`},null,8,C),(d(!0),s(f,null,c(n(H).days,(e,t)=>(d(),s(`circle`,{key:e.date,cx:G(t),cy:K(e.actual),r:`3`,fill:`#fff`,stroke:`#8a63f7`,"stroke-width":`1.8`},null,8,w))),128)),n(q)>=0?(d(),s(`line`,{key:0,x1:G(n(q)),y1:34,x2:G(n(q)),y2:K(0),stroke:`#cf4759`,"stroke-dasharray":`3 3`,"stroke-width":`1.2`,opacity:`0.7`},null,8,T)):h(``,!0),n(q)>=0?(d(),s(`text`,{key:1,x:G(n(q)),y:28,"text-anchor":`middle`,"font-size":`9.5`,fill:`#a5382f`},`今天`,8,E)):h(``,!0),(d(!0),s(f,null,c(n(H).days,(e,t)=>ee((d(),s(`text`,{key:`t`+e.date,x:G(t),y:286,"text-anchor":`middle`,"font-size":`9.5`,fill:`#b0b4ba`},p(n(I)(e.date)),9,D)),[[ie,t%Math.ceil(n(U)/10)===0]])),128)),(d(!0),s(f,null,c(n(Q),e=>(d(),s(`g`,{key:e.at+e.id},[o(`title`,null,p(e.id)+` `+p(e.title)+`:`+p(n(z)[e.kind])+`(`+p(e.at)+`,`+p(e.points)+` 点)—— `+p(e.reason),1),o(`line`,{x1:G(e.idx),y1:36,x2:G(e.idx),y2:K(0),stroke:`#3f7fd4`,"stroke-dasharray":`4 3`,"stroke-width":`1.2`,opacity:`0.8`},null,8,O),o(`circle`,{cx:G(e.idx),cy:34,r:`3`,fill:`#3f7fd4`},null,8,k)]))),128))],8,xe))]),o(`div`,A,[(d(!0),s(f,null,c(n(H).days,e=>(d(),s(`div`,{key:`row`+e.date,class:a([`cell`,{today:e.date===n(L),future:e.date>n(L),scope:n(Ge).has(e.date)}])},[o(`span`,j,p(n(I)(e.date)),1),o(`span`,Ce,p(e.actual),1),o(`span`,we,p(e.ideal),1),o(`i`,{class:`underline`,style:te({width:(n(W)?e.actual/n(W)*100:0)+`%`})},null,4)],2))),128))]),l[12]||=o(`p`,{class:`foot dim`},`每格:日期 / 实际剩余 / 理想剩余`,-1),n(Q).length?(d(),s(`div`,Te,[o(`p`,Ee,[e(_,{name:`i-lucide-git-branch`,class:`size-3`}),t(`本迭代范围变更(`+p(n(Q).length)+`)`,1)]),o(`ul`,null,[(d(!0),s(f,null,c(n(Q),r=>(d(),s(`li`,{key:r.id},[o(`span`,De,p(n(z)[r.kind]),1),e(y,{to:`/story/${r.id}`,class:`mono link`},{default:ne(()=>[t(p(r.id),1)]),_:2},1032,[`to`]),o(`span`,null,p(r.title),1),o(`span`,Oe,`· `+p(r.at)+` · `+p(r.points)+` 点 · `+p(r.reason),1)]))),128))]),l[11]||=o(`p`,{class:`foot dim`},`竖线标出的那几天,实际剩余没有按理想线下滑,是插了活而不是团队拖。`,-1)])):h(``,!0)])):(d(),s(`div`,ke,[e(_,{name:`i-lucide-info`,class:`size-4`}),l[13]||=t(`还没有迭代数据。 `,-1)])),o(`div`,Ae,[o(`div`,je,[l[14]||=o(`h2`,{class:`h2`},`迭代对照`,-1),o(`span`,Me,p(n($).length),1),l[15]||=o(`span`,{class:`dim tip`},`点一行切换上面的燃尽图`,-1)]),o(`div`,M,[o(`table`,Ne,[l[16]||=o(`thead`,null,[o(`tr`,null,[o(`th`,null,`迭代`),o(`th`,null,`名称`),o(`th`,null,`周期`),o(`th`,{class:`r`},`故事`),o(`th`,{class:`r`},`承诺 / 容量`),o(`th`,null,`状态`)])],-1),o(`tbody`,null,[(d(!0),s(f,null,c(n($),e=>(d(),s(`tr`,{key:e.id,class:a({on:e.id===n(B)}),onClick:t=>B.value=e.id},[o(`td`,Fe,p(e.id),1),o(`td`,null,p(e.name),1),o(`td`,Ie,p(e.period),1),o(`td`,Le,p(e.stories),1),o(`td`,Re,p(e.commit)+`/`+p(e.capacity),1),o(`td`,null,[o(`span`,{class:a([`tag`,e.tone])},p(e.status),3)])],10,Pe))),128))])])])])])}}}),[[`__scopeId`,`data-v-d8ba9a67`]]);export{P as default};
1
+ import{D as e,E as t,On as n,T as r,Ut as i,Yt as ee,Zn as a,_ as o,b as s,bt as c,er as te,g as l,k as u,mt as d,o as f,qt as ne,tr as p,un as re,vn as m,y as h}from"./DZo3dYLJ.js";import{S as ie}from"./51OWHj8c.js";import{t as ae}from"./CJ2mz0WY.js";import{t as oe}from"./BDcnzXHq.js";import{t as se}from"./rlePnzpc.js";import{a as g,i as _,o as v,r as ce,s as y}from"#entry";var le={class:`kpis`},ue={class:`v`},de={class:`v`},fe={class:`v`},pe={class:`v`},me={key:0,class:`card panel`},he={class:`panel-hd`},ge={class:`ph-l`},_e={class:`sp-name`},ve={class:`sub mono`},ye={class:`goal`},be={class:`chart-wrap`},xe=[`viewBox`],Se=[`y1`,`x2`,`y2`],b=[`x`,`y`],x=[`d`],S=[`d`],C=[`points`],w=[`cx`,`cy`],T=[`x1`,`y1`,`x2`,`y2`],E=[`x`,`y`],D=[`x`,`y`],O=[`x1`,`y1`,`x2`,`y2`],k=[`cx`,`cy`],A={class:`cells`},j={class:`cd mono`},Ce={class:`ca`},we={class:`ci dim`},Te={key:0,class:`scope`},Ee={class:`h3`},De={class:`tag tag-info`},Oe={class:`dim`},ke={key:1,class:`callout soft`},Ae={class:`card`},je={class:`card-hd`},Me={class:`tag tag-neutral`},M={class:`card-bd`},Ne={class:`tbl`},Pe=[`onClick`],Fe={class:`mono`},Ie={class:`mono dim`},Le={class:`r`},Re={class:`r mono`},ze=980,Be=300,N=42,P=_(u({__name:`burndown`,setup(u){let{sprints:_,burndown:P,sprintCommit:F,md:I,now:L,sprintById:R,storyById:Ve,SCOPE_LABEL:z}=y(),B=m(``),He=l(()=>[..._.value].reverse().map(e=>({label:`${e.id} · ${e.name}`,value:e.id,icon:`i-lucide-calendar-range`}))),V=l(()=>R.value.get(B.value)??_.value[_.value.length-1]),H=l(()=>V.value?P(V.value):{total:0,days:[]});i(()=>{B.value&&!R.value.has(B.value)&&(B.value=``),!B.value&&_.value.length&&(B.value=_.value[_.value.length-1].id)});let U=l(()=>H.value.days.length||1),W=l(()=>H.value.total||1),G=e=>N+e*896/(U.value-1||1),K=e=>258-e*216/W.value,Ue=e=>H.value.days.map((t,n)=>`${G(n)},${K(t[e])}`).join(` `),We=l(()=>{let e=H.value.days.map((e,t)=>`${G(t)},${K(e.actual)}`).join(` `),t=H.value.days.length-1;return`M${G(0)},${K(0)} L${e.replaceAll(` `,` L`)} L${G(t)},${K(0)} Z`}),q=l(()=>H.value.days.findIndex(e=>e.date===L)),J=l(()=>H.value.days.find(e=>e.date===L)??H.value.days[H.value.days.length-1]),Y=l(()=>J.value?.actual??0),X=l(()=>J.value?.ideal??0),Z=l(()=>Math.round((Y.value-X.value)*10)/10),Q=l(()=>{let e=V.value;return e?(e.stories??[]).map(e=>Ve.value.get(e)).filter(Boolean).filter(t=>t.scopeChange&&t.scopeChange.at>=e.start&&t.scopeChange.at<=e.end).map(e=>({id:e.id,title:e.title,at:e.scopeChange.at,kind:e.scopeChange.kind,reason:e.scopeChange.reason,points:e.points,idx:H.value.days.findIndex(t=>t.date===e.scopeChange.at)})).filter(e=>e.idx>=0):[]}),Ge=l(()=>new Set(Q.value.map(e=>e.at))),$=l(()=>[..._.value].reverse().map(e=>{let t=e.start<=L&&e.end>=L;return{id:e.id,name:e.name,period:`${I(e.start)} ~ ${I(e.end)}`,stories:(e.stories??[]).length,commit:F(e),capacity:e.capacity,status:t?`进行中`:e.end<L?`已结束`:`未开始`,tone:t?`tag-primary`:e.end<L?`tag-neutral`:`tag-info`}}));return(i,l)=>{let u=ce,m=oe,_=se,y=ae;return d(),s(`div`,null,[o(`div`,le,[o(`div`,{class:a([`kpi`,(`cardToneClass`in i?i.cardToneClass:n(v))(0)])},[e(u,{tone:(`cardTone`in i?i.cardTone:n(g))(0),size:`sm`},null,8,[`tone`]),l[1]||=o(`p`,{class:`k`},`剩余故事点`,-1),o(`p`,ue,[t(p(n(Y)),1),o(`small`,null,`/ `+p(n(H).total),1)])],2),o(`div`,{class:a([`kpi`,(`cardToneClass`in i?i.cardToneClass:n(v))(1)])},[e(u,{tone:(`cardTone`in i?i.cardTone:n(g))(1),size:`sm`},null,8,[`tone`]),l[3]||=o(`p`,{class:`k`},`理想剩余(今天)`,-1),o(`p`,de,[t(p(n(X)),1),l[2]||=o(`small`,null,`点`,-1)])],2),o(`div`,{class:a([`kpi`,(`cardToneClass`in i?i.cardToneClass:n(v))(2)])},[e(u,{tone:(`cardTone`in i?i.cardTone:n(g))(2),size:`sm`},null,8,[`tone`]),l[5]||=o(`p`,{class:`k`},`偏差`,-1),o(`p`,{class:a([`v`,{bad:n(Z)>0,good:n(Z)<=0}])},[t(p(n(Z)>0?`+`+n(Z):n(Z)),1),l[4]||=o(`small`,null,`点`,-1)],2)],2),o(`div`,{class:a([`kpi`,(`cardToneClass`in i?i.cardToneClass:n(v))(3)])},[e(u,{tone:(`cardTone`in i?i.cardTone:n(g))(3),size:`sm`},null,8,[`tone`]),l[6]||=o(`p`,{class:`k`},`承诺 / 容量`,-1),o(`p`,fe,[t(p(n(V)?n(F)(n(V)):0),1),o(`small`,null,`/ `+p(n(V)?.capacity??0),1)])],2),o(`div`,{class:a([`kpi`,(`cardToneClass`in i?i.cardToneClass:n(v))(4)])},[e(u,{tone:(`cardTone`in i?i.cardTone:n(g))(4),size:`sm`},null,8,[`tone`]),l[8]||=o(`p`,{class:`k`},`范围变更`,-1),o(`p`,pe,[t(p(n(Q).length),1),l[7]||=o(`small`,null,`次`,-1)])],2)]),n(V)?(d(),s(`div`,me,[o(`div`,he,[o(`div`,ge,[o(`h2`,_e,p(n(V).name),1),o(`p`,ve,p(n(V).id)+` · `+p(n(I)(n(V).start))+` ~ `+p(n(I)(n(V).end)),1),o(`p`,ye,p(n(V).goal),1)]),e(m,{modelValue:n(B),"onUpdate:modelValue":l[0]||=e=>re(B)?B.value=e:null,items:n(He),icon:`i-lucide-calendar-range`,"aria-label":`选择迭代`,class:`bd-select`},null,8,[`modelValue`,`items`])]),o(`div`,be,[l[10]||=r(`<div class="chart-legend" data-v-d8ba9a67><span class="lg" data-v-d8ba9a67><i class="sw actual" data-v-d8ba9a67></i>实际剩余</span><span class="lg" data-v-d8ba9a67><i class="sw ideal" data-v-d8ba9a67></i>理想线</span><span class="lg" data-v-d8ba9a67><i class="sw scope" data-v-d8ba9a67></i>范围变更</span></div>`,1),(d(),s(`svg`,{viewBox:`0 0 ${ze} ${Be}`,class:`chart`,role:`img`},[l[9]||=r(`<defs data-v-d8ba9a67><linearGradient id="bd-line" x1="0" y1="0" x2="1" y2="0" data-v-d8ba9a67><stop offset="0%" stop-color="#8a63f7" data-v-d8ba9a67></stop><stop offset="100%" stop-color="#c3aefb" data-v-d8ba9a67></stop></linearGradient><linearGradient id="bd-area" x1="0" y1="0" x2="0" y2="1" data-v-d8ba9a67><stop offset="0%" stop-color="#8a63f7" stop-opacity="0.16" data-v-d8ba9a67></stop><stop offset="100%" stop-color="#8a63f7" stop-opacity="0" data-v-d8ba9a67></stop></linearGradient></defs>`,1),o(`g`,null,[(d(),s(f,null,c([0,.25,.5,.75,1],e=>o(`line`,{key:`grid`+e,x1:N,y1:K(n(W)*e),x2:938,y2:K(n(W)*e),stroke:`#f1f0ea`,"stroke-width":`1`},null,8,Se)),64)),(d(),s(f,null,c([0,.25,.5,.75,1],e=>o(`text`,{key:`gl`+e,x:32,y:K(n(W)*e)+3.5,"text-anchor":`end`,"font-size":`9.5`,fill:`#b0b4ba`},p(Math.round(n(W)*e)),9,b)),64))]),o(`path`,{d:n(We),fill:`url(#bd-area)`},null,8,x),o(`path`,{d:`M${G(0)},${K(n(W))} L${G(n(U)-1)},${K(0)}`,stroke:`#cdc9d8`,"stroke-width":`1.4`,"stroke-dasharray":`5 5`,fill:`none`},null,8,S),o(`polyline`,{points:Ue(`actual`),stroke:`url(#bd-line)`,"stroke-width":`2.6`,fill:`none`,"stroke-linejoin":`round`,"stroke-linecap":`round`},null,8,C),(d(!0),s(f,null,c(n(H).days,(e,t)=>(d(),s(`circle`,{key:e.date,cx:G(t),cy:K(e.actual),r:`3`,fill:`#fff`,stroke:`#8a63f7`,"stroke-width":`1.8`},null,8,w))),128)),n(q)>=0?(d(),s(`line`,{key:0,x1:G(n(q)),y1:34,x2:G(n(q)),y2:K(0),stroke:`#cf4759`,"stroke-dasharray":`3 3`,"stroke-width":`1.2`,opacity:`0.7`},null,8,T)):h(``,!0),n(q)>=0?(d(),s(`text`,{key:1,x:G(n(q)),y:28,"text-anchor":`middle`,"font-size":`9.5`,fill:`#a5382f`},`今天`,8,E)):h(``,!0),(d(!0),s(f,null,c(n(H).days,(e,t)=>ee((d(),s(`text`,{key:`t`+e.date,x:G(t),y:286,"text-anchor":`middle`,"font-size":`9.5`,fill:`#b0b4ba`},p(n(I)(e.date)),9,D)),[[ie,t%Math.ceil(n(U)/10)===0]])),128)),(d(!0),s(f,null,c(n(Q),e=>(d(),s(`g`,{key:e.at+e.id},[o(`title`,null,p(e.id)+` `+p(e.title)+`:`+p(n(z)[e.kind])+`(`+p(e.at)+`,`+p(e.points)+` 点)—— `+p(e.reason),1),o(`line`,{x1:G(e.idx),y1:36,x2:G(e.idx),y2:K(0),stroke:`#3f7fd4`,"stroke-dasharray":`4 3`,"stroke-width":`1.2`,opacity:`0.8`},null,8,O),o(`circle`,{cx:G(e.idx),cy:34,r:`3`,fill:`#3f7fd4`},null,8,k)]))),128))],8,xe))]),o(`div`,A,[(d(!0),s(f,null,c(n(H).days,e=>(d(),s(`div`,{key:`row`+e.date,class:a([`cell`,{today:e.date===n(L),future:e.date>n(L),scope:n(Ge).has(e.date)}])},[o(`span`,j,p(n(I)(e.date)),1),o(`span`,Ce,p(e.actual),1),o(`span`,we,p(e.ideal),1),o(`i`,{class:`underline`,style:te({width:(n(W)?e.actual/n(W)*100:0)+`%`})},null,4)],2))),128))]),l[12]||=o(`p`,{class:`foot dim`},`每格:日期 / 实际剩余 / 理想剩余`,-1),n(Q).length?(d(),s(`div`,Te,[o(`p`,Ee,[e(_,{name:`i-lucide-git-branch`,class:`size-3`}),t(`本迭代范围变更(`+p(n(Q).length)+`)`,1)]),o(`ul`,null,[(d(!0),s(f,null,c(n(Q),r=>(d(),s(`li`,{key:r.id},[o(`span`,De,p(n(z)[r.kind]),1),e(y,{to:`/story/${r.id}`,class:`mono link`},{default:ne(()=>[t(p(r.id),1)]),_:2},1032,[`to`]),o(`span`,null,p(r.title),1),o(`span`,Oe,`· `+p(r.at)+` · `+p(r.points)+` 点 · `+p(r.reason),1)]))),128))]),l[11]||=o(`p`,{class:`foot dim`},`竖线标出的那几天,实际剩余没有按理想线下滑,是插了活而不是团队拖。`,-1)])):h(``,!0)])):(d(),s(`div`,ke,[e(_,{name:`i-lucide-info`,class:`size-4`}),l[13]||=t(`还没有迭代数据。 `,-1)])),o(`div`,Ae,[o(`div`,je,[l[14]||=o(`h2`,{class:`h2`},`迭代对照`,-1),o(`span`,Me,p(n($).length),1),l[15]||=o(`span`,{class:`dim tip`},`点一行切换上面的燃尽图`,-1)]),o(`div`,M,[o(`table`,Ne,[l[16]||=o(`thead`,null,[o(`tr`,null,[o(`th`,null,`迭代`),o(`th`,null,`名称`),o(`th`,null,`周期`),o(`th`,{class:`r`},`故事`),o(`th`,{class:`r`},`承诺 / 容量`),o(`th`,null,`状态`)])],-1),o(`tbody`,null,[(d(!0),s(f,null,c(n($),e=>(d(),s(`tr`,{key:e.id,class:a({on:e.id===n(B)}),onClick:t=>B.value=e.id},[o(`td`,Fe,p(e.id),1),o(`td`,null,p(e.name),1),o(`td`,Ie,p(e.period),1),o(`td`,Le,p(e.stories),1),o(`td`,Re,p(e.commit)+`/`+p(e.capacity),1),o(`td`,null,[o(`span`,{class:a([`tag`,e.tone])},p(e.status),3)])],10,Pe))),128))])])])])])}}}),[[`__scopeId`,`data-v-d8ba9a67`]]);export{P as default};
@@ -1,3 +1,3 @@
1
- import{D as e,Ht as t,Lt as n,On as r,Tn as i,Zn as a,_ as o,at as s,b as c,bt as l,ct as u,et as d,g as f,k as p,mt as m,o as h,qt as g,tr as _,tt as v,v as y,vn as b,wt as x,xt as S,y as C}from"./DZo3dYLJ.js";import{C as w,w as T}from"./51OWHj8c.js";import{r as E}from"./Csqgy925.js";import{t as D}from"./Cm9lkUvP.js";import{h as O,n as k,t as A}from"./6gFtTBwm.js";import{r as j,t as M}from"./DLkAKotw.js";import{n as N,r as P}from"./Bb3Limos.js";import{r as F}from"./CuJUHLl8.js";import{p as I,t as L}from"./Vo4wMbnS.js";import{t as R}from"./CK9_veoz.js";import{t as z}from"./Ci0qbkgh.js";import{r as B}from"./BPTrRhcw.js";import{t as V}from"./V0uynWE2.js";import{t as H}from"./DrZpfjBq.js";import{x as U}from"#entry";import W from"./b2JYbYKt.js";function G(e,t){let n=b(),r=(r,i)=>{if(t.multiple&&Array.isArray(e.value)){if(t.selectionBehavior===`replace`)e.value=[r],n.value=r;else{let t=e.value.findIndex(e=>i(e));e.value=t===-1?[...e.value,r]:e.value.filter((e,n)=>n!==t)}}else e.value=t.selectionBehavior===`replace`?{...r}:!Array.isArray(e.value)&&i(e.value)?void 0:{...r};return e.value};function i(r,i,a,o){if(!n?.value||!t.multiple||!Array.isArray(e.value))return;let s=a().filter(e=>e.ref.dataset.disabled!==``).find(e=>e.ref===i)?.value;if(!s)return;let c=null;switch(r){case`prev`:case`next`:c=D(o,n.value,s);break;case`first`:c=D(o,n.value,o?.[0]);break;case`last`:c=D(o,n.value,o.at(-1))}e.value=c}return{firstValue:n,onSelectItem:r,handleMultipleReplace:i}}function K(e){return e.reduce((e,t)=>(e.push(t),t.children&&e.push(...K(t.children)),e),[])}var[q,J]=O(`TreeRoot`),Y=p({__name:`TreeRoot`,props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},items:{type:Array,required:!1},expanded:{type:Array,required:!1},defaultExpanded:{type:Array,required:!1},getKey:{type:Function,required:!0},getChildren:{type:Function,required:!1,default:e=>e.children},selectionBehavior:{type:String,required:!1,default:`toggle`},multiple:{type:Boolean,required:!1,skipCheck:!0},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},propagateSelect:{type:Boolean,required:!1},bubbleSelect:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`ul`}},emits:[`update:modelValue`,`update:expanded`],setup(t,{emit:n}){let a=t,o=n,{items:s,multiple:c,disabled:l,propagateSelect:u,dir:d,bubbleSelect:p,loop:h}=i(a),{handleTypeaheadSearch:_}=N(),x=z(d),C=b(),E=b(!1),D=F(),O=I(a,`modelValue`,o,{defaultValue:a.defaultValue??(c.value?[]:void 0),passive:!0,deep:!0}),k=I(a,`expanded`,o,{defaultValue:a.defaultExpanded??[],passive:a.expanded===void 0,deep:!0}),{onSelectItem:A,handleMultipleReplace:M}=G(O,a),P=f(()=>c.value&&Array.isArray(O.value)?O.value.map(e=>a.getKey(e)):[a.getKey(O.value??{})]);function L(e,t=1,n){return e.reduce((r,i,o)=>{let s=a.getKey(i),c=a.getChildren(i),l=k.value.includes(s),u={_id:s,value:i,index:o,level:t,parentItem:n,hasChildren:!!c,bind:{value:i,level:t,"aria-setsize":e.length,"aria-posinset":o+1}};return r.push(u),c&&l&&r.push(...L(c,t+1,i)),r},[])}let V=f(()=>{let e=a.items;return k.value.map(e=>e),L(e??[])}),H=[`input`,`textarea`,`select`];function W(e){let t=e.target;return t?H.includes(t.tagName.toLowerCase())||t.isContentEditable:!1}function q(e){if(!W(e)){if(E.value)D.trigger(e);else{let t=C.value?.getItems()??[];_(e.key,t)}}}function Y(e){if(E.value||W(e))return;let t=B[e.key];v(()=>{M(t,j(),C.value?.getItems,V.value.map(e=>e.value))})}function X(e){if(e.parentItem!=null&&Array.isArray(O.value)&&a.multiple){let t=V.value.find(t=>e.parentItem!=null&&a.getKey(t.value)===a.getKey(e.parentItem));t!=null&&(a.getChildren(t.value)?.every(e=>O.value.find(t=>a.getKey(t)===a.getKey(e)))?O.value=[...O.value,t.value]:O.value=O.value.filter(e=>a.getKey(e)!==a.getKey(t.value)),X(t))}}return J({modelValue:O,selectedKeys:P,onSelect:e=>{let t=t=>a.getKey(t??{})===a.getKey(e),n=a.multiple&&Array.isArray(O.value)?O.value?.findIndex(t)!==-1:void 0;if(A(e,t),a.bubbleSelect&&a.multiple&&Array.isArray(O.value)){let t=V.value.find(t=>a.getKey(t.value)===a.getKey(e));t!=null&&X(t)}if(a.propagateSelect&&a.multiple&&Array.isArray(O.value)){let t=K(a.getChildren(e)??[]);n?O.value=[...O.value].filter(e=>!t.some(t=>a.getKey(e??{})===a.getKey(t))):O.value=[...O.value,...t]}},expanded:k,onToggle(e){if(!(e&&a.getChildren(e)))return;let t=a.getKey(e)??e;k.value.includes(t)?k.value=k.value.filter(e=>e!==t):k.value=[...k.value,t]},getKey:a.getKey,getChildren:a.getChildren,items:s,expandedItems:V,disabled:l,multiple:c,dir:x,propagateSelect:u,bubbleSelect:p,loop:h,isVirtual:E,virtualKeydownHook:D,handleMultipleReplace:M}),(n,i)=>(m(),y(r(U),{ref_key:`rovingFocusGroupRef`,ref:C,"as-child":``,orientation:`vertical`,dir:r(x),loop:r(h)&&!E.value},{default:g(()=>[e(r(R),{role:`tree`,as:t.as,"as-child":t.asChild,"aria-multiselectable":r(c)?!0:void 0,onKeydown:[q,w(T(Y,[`shift`]),[`up`,`down`])]},{default:g(()=>[S(n.$slots,`default`,{flattenItems:V.value,modelValue:r(O),expanded:r(k)})]),_:3},8,[`as`,`as-child`,`aria-multiselectable`,`onKeydown`])]),_:3},8,[`dir`,`loop`]))}}),X=`tree.select`,Z=`tree.toggle`,Q=p({inheritAttrs:!1,__name:`TreeItem`,props:{value:{type:null,required:!0},level:{type:Number,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`li`}},emits:[`select`,`toggle`],setup(t,{expose:n,emit:i}){let a=t,o=i,s=q(),{getItems:c}=M(),l=f(()=>!!s.getChildren(a.value)),u=f(()=>{let e=s.getKey(a.value);return s.expanded.value.includes(e)}),p=f(()=>{let e=s.getKey(a.value);return s.selectedKeys.value.includes(e)}),h=f(()=>{if(s.bubbleSelect.value&&l.value&&Array.isArray(s.modelValue.value)){let e=K(s.getChildren(a.value)||[]);return e.some(e=>s.modelValue.value.find(t=>s.getKey(t)===s.getKey(e)))&&!e.every(e=>s.modelValue.value.find(t=>s.getKey(t)===s.getKey(e)))}if(s.propagateSelect.value&&p.value&&l.value&&Array.isArray(s.modelValue.value))return!K(s.getChildren(a.value)||[]).every(e=>s.modelValue.value.find(t=>s.getKey(t)===s.getKey(e)))}),_=f(()=>s.disabled.value||a.disabled);function v(e){if(!_.value&&l.value){if(u.value){let e=c().map(e=>e.ref),t=j(),n=e.indexOf(t),r=[...e].slice(n).find(e=>Number(e.getAttribute(`data-indent`))===a.level+1);r&&r.focus()}else D(e)}}function b(e){if(!_.value){if(u.value)D(e);else{let e=c().map(e=>e.ref),t=j(),n=e.indexOf(t),r=[...e].slice(0,n).reverse().find(e=>Number(e.getAttribute(`data-indent`))===a.level-1);r&&r.focus()}}}async function x(e){_.value||(o(`select`,e),!e?.defaultPrevented&&s.onSelect(a.value))}async function C(e){_.value||(o(`toggle`,e),!e?.defaultPrevented&&s.onToggle(a.value))}async function E(e){if(!e)return;let t={originalEvent:e,value:a.value,isExpanded:u.value,isSelected:p.value};P(X,x,t)}async function D(e){if(!e)return;let t={originalEvent:e,value:a.value,isExpanded:u.value,isSelected:p.value};P(Z,C,t)}return n({isExpanded:u,isSelected:p,isIndeterminate:h,isDisabled:_,handleToggle:()=>s.onToggle(a.value),handleSelect:()=>s.onSelect(a.value)}),(n,i)=>(m(),y(r(V),{"as-child":``,value:t.value,"allow-shift-key":``,focusable:!_.value},{default:g(()=>[e(r(R),d(n.$attrs,{role:`treeitem`,as:t.as,"as-child":t.asChild,"aria-selected":p.value,"aria-expanded":l.value?u.value:void 0,"aria-level":t.level,"aria-disabled":_.value?!0:void 0,"data-indent":t.level,"data-selected":p.value?``:void 0,"data-expanded":u.value?``:void 0,"data-disabled":_.value?``:void 0,onKeydown:[w(T(E,[`self`,`prevent`]),[`enter`,`space`]),i[0]||=w(T(e=>r(s).dir.value===`ltr`?v(e):b(e),[`self`,`prevent`]),[`right`]),i[1]||=w(T(e=>r(s).dir.value===`ltr`?b(e):v(e),[`self`,`prevent`]),[`left`])],onClick:i[2]||=T(e=>{E(e),D(e)},[`stop`])}),{default:g(()=>[S(n.$slots,`default`,{isExpanded:u.value,isSelected:p.value,isIndeterminate:h.value,isDisabled:_.value,handleSelect:()=>r(s).onSelect(t.value),handleToggle:()=>r(s).onToggle(t.value)})]),_:3},16,[`as`,`as-child`,`aria-selected`,`aria-expanded`,`aria-level`,`aria-disabled`,`data-indent`,`data-selected`,`data-expanded`,`data-disabled`,`onKeydown`])]),_:3},8,[`value`,`focusable`]))}}),$={slots:{root:`relative lg:h-[450px] my-5 grid lg:grid-cols-3 border border-muted rounded-md`,list:`isolate relative p-2 border-b lg:border-b-0 lg:border-e border-muted overflow-y-auto`,item:``,listWithChildren:`ms-4.5 border-s border-default`,itemWithChildren:`ps-1.5 -ms-px`,link:`relative group peer w-full px-2.5 py-1.5 before:inset-y-px before:inset-x-0 flex items-center gap-1.5 text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none before:outline-primary/25 focus-visible:before:outline-3`,linkLeadingIcon:`size-4 shrink-0`,linkLabel:`truncate`,linkTrailing:`ms-auto inline-flex gap-1.5 items-center`,linkTrailingIcon:`size-5 transform transition-transform duration-200 ease-out motion-reduce:transition-none shrink-0 group-data-expanded:rotate-180`,content:`overflow-hidden lg:col-span-2 flex flex-col [&>div]:my-0 [&>div]:flex-1 [&>div]:flex [&>div]:flex-col [&>div>div]:border-0 [&>div>pre]:border-b-0 [&>div>pre]:border-s-0 [&>div>pre]:border-e-0 [&>div>pre]:rounded-s-none [&>div>pre]:flex-1 [&>div]:overflow-y-auto`},variants:{active:{true:{link:`text-highlighted before:bg-elevated`},false:{link:[`hover:text-highlighted hover:before:bg-elevated/50`,`transition-colors before:transition-colors`]}}}},ee=Object.assign({inheritAttrs:!1},{__name:`ProseCodeTree`,props:{items:{type:Array,required:!1},modelValue:{type:String,required:!1},defaultValue:{type:String,required:!1},expandAll:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},emits:[`update:modelValue`],setup(i,{emit:p}){let v=i,S=p,w=n(),T=k(`prose.codeTree`,v),D=E(),[O,j]=L(),M=f(()=>A({extend:$,...D.ui?.prose?.codeTree||{}})()),N=T.modelValue??T.defaultValue,P=b(N?{path:N}:void 0);t(P,e=>{e?.path!==T.modelValue&&S(`update:modelValue`,e?.path)}),t(()=>T.modelValue,e=>{if(e===P.value?.path)return;P.value=e?{path:e}:void 0;let t=[...G.value];for(let n of V(e))t.includes(n)||t.push(n);G.value=t});let F=b(1),I=f(()=>(F.value,T.items||w.default?.()?.flatMap(B).filter(Boolean)||[])),R=f(()=>z(I.value));function z(e){let t=new Map,n=[];e.forEach(e=>{let r=e.label.split(`/`),i=``;r.forEach((e,a)=>{if(i=i?`${i}/${e}`:e,!t.has(i)){let o={label:e,path:i,...a<r.length-1&&{children:[]}};t.set(i,o),a===0?n.push(o):t.get(r.slice(0,a).join(`/`))?.children?.push(o)}})});let r=e=>e.sort((e,t)=>!!e.children==!!t.children?e.label.localeCompare(t.label):t.children?1:-1).map(e=>({...e,children:e.children&&r(e.children)}));return r(n)}function B(e,t){return typeof e.type==`symbol`?e.children?.map(B):{label:e.props?.filename||e.props?.label||`${t}`,icon:e.props?.icon,component:e}}function V(e){if(T.expandAll){let e=new Set;return I.value.forEach(t=>{let n=t.label.split(`/`);for(let t=1;t<n.length;t++)e.add(n.slice(0,t).join(`/`))}),Array.from(e)}if(!e)return[];let t=e.split(`/`);return t.slice(0,-1).map((e,n)=>t.slice(0,n+1).join(`/`))}let U=b(T.expandAll?null:V(P.value?.path)),G=f({get:()=>U.value??V(),set:e=>{U.value=e}});t(()=>T.expandAll,e=>{U.value=e?null:V(P.value?.path)}),u(()=>{t(I,(e,t)=>{T.expandAll&&e.map(e=>e.label).join(`
1
+ import{D as e,Ht as t,Lt as n,On as r,Tn as i,Zn as a,_ as o,at as s,b as c,bt as l,ct as u,et as d,g as f,k as p,mt as m,o as h,qt as g,tr as _,tt as v,v as y,vn as b,wt as x,xt as S,y as C}from"./DZo3dYLJ.js";import{C as w,w as T}from"./51OWHj8c.js";import{r as E}from"./Csqgy925.js";import{t as D}from"./Cm9lkUvP.js";import{h as O,n as k,t as A}from"./6gFtTBwm.js";import{r as j,t as M}from"./DLkAKotw.js";import{n as N,r as P}from"./Bb3Limos.js";import{r as F}from"./CuJUHLl8.js";import{p as I,t as L}from"./Vo4wMbnS.js";import{t as R}from"./CK9_veoz.js";import{t as z}from"./Ci0qbkgh.js";import{r as B}from"./BPTrRhcw.js";import{t as V}from"./V0uynWE2.js";import{t as H}from"./rlePnzpc.js";import{x as U}from"#entry";import W from"./CJMBJQuf.js";function G(e,t){let n=b(),r=(r,i)=>{if(t.multiple&&Array.isArray(e.value)){if(t.selectionBehavior===`replace`)e.value=[r],n.value=r;else{let t=e.value.findIndex(e=>i(e));e.value=t===-1?[...e.value,r]:e.value.filter((e,n)=>n!==t)}}else e.value=t.selectionBehavior===`replace`?{...r}:!Array.isArray(e.value)&&i(e.value)?void 0:{...r};return e.value};function i(r,i,a,o){if(!n?.value||!t.multiple||!Array.isArray(e.value))return;let s=a().filter(e=>e.ref.dataset.disabled!==``).find(e=>e.ref===i)?.value;if(!s)return;let c=null;switch(r){case`prev`:case`next`:c=D(o,n.value,s);break;case`first`:c=D(o,n.value,o?.[0]);break;case`last`:c=D(o,n.value,o.at(-1))}e.value=c}return{firstValue:n,onSelectItem:r,handleMultipleReplace:i}}function K(e){return e.reduce((e,t)=>(e.push(t),t.children&&e.push(...K(t.children)),e),[])}var[q,J]=O(`TreeRoot`),Y=p({__name:`TreeRoot`,props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},items:{type:Array,required:!1},expanded:{type:Array,required:!1},defaultExpanded:{type:Array,required:!1},getKey:{type:Function,required:!0},getChildren:{type:Function,required:!1,default:e=>e.children},selectionBehavior:{type:String,required:!1,default:`toggle`},multiple:{type:Boolean,required:!1,skipCheck:!0},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},propagateSelect:{type:Boolean,required:!1},bubbleSelect:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`ul`}},emits:[`update:modelValue`,`update:expanded`],setup(t,{emit:n}){let a=t,o=n,{items:s,multiple:c,disabled:l,propagateSelect:u,dir:d,bubbleSelect:p,loop:h}=i(a),{handleTypeaheadSearch:_}=N(),x=z(d),C=b(),E=b(!1),D=F(),O=I(a,`modelValue`,o,{defaultValue:a.defaultValue??(c.value?[]:void 0),passive:!0,deep:!0}),k=I(a,`expanded`,o,{defaultValue:a.defaultExpanded??[],passive:a.expanded===void 0,deep:!0}),{onSelectItem:A,handleMultipleReplace:M}=G(O,a),P=f(()=>c.value&&Array.isArray(O.value)?O.value.map(e=>a.getKey(e)):[a.getKey(O.value??{})]);function L(e,t=1,n){return e.reduce((r,i,o)=>{let s=a.getKey(i),c=a.getChildren(i),l=k.value.includes(s),u={_id:s,value:i,index:o,level:t,parentItem:n,hasChildren:!!c,bind:{value:i,level:t,"aria-setsize":e.length,"aria-posinset":o+1}};return r.push(u),c&&l&&r.push(...L(c,t+1,i)),r},[])}let V=f(()=>{let e=a.items;return k.value.map(e=>e),L(e??[])}),H=[`input`,`textarea`,`select`];function W(e){let t=e.target;return t?H.includes(t.tagName.toLowerCase())||t.isContentEditable:!1}function q(e){if(!W(e)){if(E.value)D.trigger(e);else{let t=C.value?.getItems()??[];_(e.key,t)}}}function Y(e){if(E.value||W(e))return;let t=B[e.key];v(()=>{M(t,j(),C.value?.getItems,V.value.map(e=>e.value))})}function X(e){if(e.parentItem!=null&&Array.isArray(O.value)&&a.multiple){let t=V.value.find(t=>e.parentItem!=null&&a.getKey(t.value)===a.getKey(e.parentItem));t!=null&&(a.getChildren(t.value)?.every(e=>O.value.find(t=>a.getKey(t)===a.getKey(e)))?O.value=[...O.value,t.value]:O.value=O.value.filter(e=>a.getKey(e)!==a.getKey(t.value)),X(t))}}return J({modelValue:O,selectedKeys:P,onSelect:e=>{let t=t=>a.getKey(t??{})===a.getKey(e),n=a.multiple&&Array.isArray(O.value)?O.value?.findIndex(t)!==-1:void 0;if(A(e,t),a.bubbleSelect&&a.multiple&&Array.isArray(O.value)){let t=V.value.find(t=>a.getKey(t.value)===a.getKey(e));t!=null&&X(t)}if(a.propagateSelect&&a.multiple&&Array.isArray(O.value)){let t=K(a.getChildren(e)??[]);n?O.value=[...O.value].filter(e=>!t.some(t=>a.getKey(e??{})===a.getKey(t))):O.value=[...O.value,...t]}},expanded:k,onToggle(e){if(!(e&&a.getChildren(e)))return;let t=a.getKey(e)??e;k.value.includes(t)?k.value=k.value.filter(e=>e!==t):k.value=[...k.value,t]},getKey:a.getKey,getChildren:a.getChildren,items:s,expandedItems:V,disabled:l,multiple:c,dir:x,propagateSelect:u,bubbleSelect:p,loop:h,isVirtual:E,virtualKeydownHook:D,handleMultipleReplace:M}),(n,i)=>(m(),y(r(U),{ref_key:`rovingFocusGroupRef`,ref:C,"as-child":``,orientation:`vertical`,dir:r(x),loop:r(h)&&!E.value},{default:g(()=>[e(r(R),{role:`tree`,as:t.as,"as-child":t.asChild,"aria-multiselectable":r(c)?!0:void 0,onKeydown:[q,w(T(Y,[`shift`]),[`up`,`down`])]},{default:g(()=>[S(n.$slots,`default`,{flattenItems:V.value,modelValue:r(O),expanded:r(k)})]),_:3},8,[`as`,`as-child`,`aria-multiselectable`,`onKeydown`])]),_:3},8,[`dir`,`loop`]))}}),X=`tree.select`,Z=`tree.toggle`,Q=p({inheritAttrs:!1,__name:`TreeItem`,props:{value:{type:null,required:!0},level:{type:Number,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`li`}},emits:[`select`,`toggle`],setup(t,{expose:n,emit:i}){let a=t,o=i,s=q(),{getItems:c}=M(),l=f(()=>!!s.getChildren(a.value)),u=f(()=>{let e=s.getKey(a.value);return s.expanded.value.includes(e)}),p=f(()=>{let e=s.getKey(a.value);return s.selectedKeys.value.includes(e)}),h=f(()=>{if(s.bubbleSelect.value&&l.value&&Array.isArray(s.modelValue.value)){let e=K(s.getChildren(a.value)||[]);return e.some(e=>s.modelValue.value.find(t=>s.getKey(t)===s.getKey(e)))&&!e.every(e=>s.modelValue.value.find(t=>s.getKey(t)===s.getKey(e)))}if(s.propagateSelect.value&&p.value&&l.value&&Array.isArray(s.modelValue.value))return!K(s.getChildren(a.value)||[]).every(e=>s.modelValue.value.find(t=>s.getKey(t)===s.getKey(e)))}),_=f(()=>s.disabled.value||a.disabled);function v(e){if(!_.value&&l.value){if(u.value){let e=c().map(e=>e.ref),t=j(),n=e.indexOf(t),r=[...e].slice(n).find(e=>Number(e.getAttribute(`data-indent`))===a.level+1);r&&r.focus()}else D(e)}}function b(e){if(!_.value){if(u.value)D(e);else{let e=c().map(e=>e.ref),t=j(),n=e.indexOf(t),r=[...e].slice(0,n).reverse().find(e=>Number(e.getAttribute(`data-indent`))===a.level-1);r&&r.focus()}}}async function x(e){_.value||(o(`select`,e),!e?.defaultPrevented&&s.onSelect(a.value))}async function C(e){_.value||(o(`toggle`,e),!e?.defaultPrevented&&s.onToggle(a.value))}async function E(e){if(!e)return;let t={originalEvent:e,value:a.value,isExpanded:u.value,isSelected:p.value};P(X,x,t)}async function D(e){if(!e)return;let t={originalEvent:e,value:a.value,isExpanded:u.value,isSelected:p.value};P(Z,C,t)}return n({isExpanded:u,isSelected:p,isIndeterminate:h,isDisabled:_,handleToggle:()=>s.onToggle(a.value),handleSelect:()=>s.onSelect(a.value)}),(n,i)=>(m(),y(r(V),{"as-child":``,value:t.value,"allow-shift-key":``,focusable:!_.value},{default:g(()=>[e(r(R),d(n.$attrs,{role:`treeitem`,as:t.as,"as-child":t.asChild,"aria-selected":p.value,"aria-expanded":l.value?u.value:void 0,"aria-level":t.level,"aria-disabled":_.value?!0:void 0,"data-indent":t.level,"data-selected":p.value?``:void 0,"data-expanded":u.value?``:void 0,"data-disabled":_.value?``:void 0,onKeydown:[w(T(E,[`self`,`prevent`]),[`enter`,`space`]),i[0]||=w(T(e=>r(s).dir.value===`ltr`?v(e):b(e),[`self`,`prevent`]),[`right`]),i[1]||=w(T(e=>r(s).dir.value===`ltr`?b(e):v(e),[`self`,`prevent`]),[`left`])],onClick:i[2]||=T(e=>{E(e),D(e)},[`stop`])}),{default:g(()=>[S(n.$slots,`default`,{isExpanded:u.value,isSelected:p.value,isIndeterminate:h.value,isDisabled:_.value,handleSelect:()=>r(s).onSelect(t.value),handleToggle:()=>r(s).onToggle(t.value)})]),_:3},16,[`as`,`as-child`,`aria-selected`,`aria-expanded`,`aria-level`,`aria-disabled`,`data-indent`,`data-selected`,`data-expanded`,`data-disabled`,`onKeydown`])]),_:3},8,[`value`,`focusable`]))}}),$={slots:{root:`relative lg:h-[450px] my-5 grid lg:grid-cols-3 border border-muted rounded-md`,list:`isolate relative p-2 border-b lg:border-b-0 lg:border-e border-muted overflow-y-auto`,item:``,listWithChildren:`ms-4.5 border-s border-default`,itemWithChildren:`ps-1.5 -ms-px`,link:`relative group peer w-full px-2.5 py-1.5 before:inset-y-px before:inset-x-0 flex items-center gap-1.5 text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none before:outline-primary/25 focus-visible:before:outline-3`,linkLeadingIcon:`size-4 shrink-0`,linkLabel:`truncate`,linkTrailing:`ms-auto inline-flex gap-1.5 items-center`,linkTrailingIcon:`size-5 transform transition-transform duration-200 ease-out motion-reduce:transition-none shrink-0 group-data-expanded:rotate-180`,content:`overflow-hidden lg:col-span-2 flex flex-col [&>div]:my-0 [&>div]:flex-1 [&>div]:flex [&>div]:flex-col [&>div>div]:border-0 [&>div>pre]:border-b-0 [&>div>pre]:border-s-0 [&>div>pre]:border-e-0 [&>div>pre]:rounded-s-none [&>div>pre]:flex-1 [&>div]:overflow-y-auto`},variants:{active:{true:{link:`text-highlighted before:bg-elevated`},false:{link:[`hover:text-highlighted hover:before:bg-elevated/50`,`transition-colors before:transition-colors`]}}}},ee=Object.assign({inheritAttrs:!1},{__name:`ProseCodeTree`,props:{items:{type:Array,required:!1},modelValue:{type:String,required:!1},defaultValue:{type:String,required:!1},expandAll:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},emits:[`update:modelValue`],setup(i,{emit:p}){let v=i,S=p,w=n(),T=k(`prose.codeTree`,v),D=E(),[O,j]=L(),M=f(()=>A({extend:$,...D.ui?.prose?.codeTree||{}})()),N=T.modelValue??T.defaultValue,P=b(N?{path:N}:void 0);t(P,e=>{e?.path!==T.modelValue&&S(`update:modelValue`,e?.path)}),t(()=>T.modelValue,e=>{if(e===P.value?.path)return;P.value=e?{path:e}:void 0;let t=[...G.value];for(let n of V(e))t.includes(n)||t.push(n);G.value=t});let F=b(1),I=f(()=>(F.value,T.items||w.default?.()?.flatMap(B).filter(Boolean)||[])),R=f(()=>z(I.value));function z(e){let t=new Map,n=[];e.forEach(e=>{let r=e.label.split(`/`),i=``;r.forEach((e,a)=>{if(i=i?`${i}/${e}`:e,!t.has(i)){let o={label:e,path:i,...a<r.length-1&&{children:[]}};t.set(i,o),a===0?n.push(o):t.get(r.slice(0,a).join(`/`))?.children?.push(o)}})});let r=e=>e.sort((e,t)=>!!e.children==!!t.children?e.label.localeCompare(t.label):t.children?1:-1).map(e=>({...e,children:e.children&&r(e.children)}));return r(n)}function B(e,t){return typeof e.type==`symbol`?e.children?.map(B):{label:e.props?.filename||e.props?.label||`${t}`,icon:e.props?.icon,component:e}}function V(e){if(T.expandAll){let e=new Set;return I.value.forEach(t=>{let n=t.label.split(`/`);for(let t=1;t<n.length;t++)e.add(n.slice(0,t).join(`/`))}),Array.from(e)}if(!e)return[];let t=e.split(`/`);return t.slice(0,-1).map((e,n)=>t.slice(0,n+1).join(`/`))}let U=b(T.expandAll?null:V(P.value?.path)),G=f({get:()=>U.value??V(),set:e=>{U.value=e}});t(()=>T.expandAll,e=>{U.value=e?null:V(P.value?.path)}),u(()=>{t(I,(e,t)=>{T.expandAll&&e.map(e=>e.label).join(`
2
2
  `)!==(t?.map(e=>e.label).join(`
3
3
  `)??``)&&(U.value=null)})});let K,q=f(()=>{let e=I.value.find(e=>P.value?.path===e.label);return e?.component&&(K=e),K});return s(()=>F.value++),(t,n)=>(m(),c(h,null,[e(r(O),null,{default:g(({items:t,level:n})=>[(m(!0),c(h,null,l(t,(t,i)=>(m(),c(`li`,{key:`${n}-${i}`,role:`presentation`,class:a(n>1?M.value.itemWithChildren({class:r(T).ui?.itemWithChildren}):M.value.item({class:r(T).ui?.item}))},[e(r(Q),{level:n,value:t,"as-child":``},{default:g(({isExpanded:i,isSelected:s})=>[o(`button`,{type:`button`,class:a(M.value.link({class:r(T).ui?.link,active:s}))},[t.children?.length?(m(),y(H,{key:0,name:i?r(D).ui.icons.folderOpen:r(D).ui.icons.folder,class:a(M.value.linkLeadingIcon({class:r(T).ui?.linkLeadingIcon}))},null,8,[`name`,`class`])):(m(),y(W,{key:1,filename:t.label,class:a(M.value.linkLeadingIcon({class:r(T).ui?.linkLeadingIcon}))},null,8,[`filename`,`class`])),o(`span`,{class:a(M.value.linkLabel({class:r(T).ui?.linkLabel}))},_(t.label),3),t.children?.length?(m(),c(`span`,{key:2,class:a(M.value.linkTrailing({class:r(T).ui?.linkTrailing}))},[e(H,{name:r(D).ui.icons.chevronDown,class:a(M.value.linkTrailingIcon({class:r(T).ui?.linkTrailingIcon}))},null,8,[`name`,`class`])],2)):C(``,!0)],2),t.children?.length&&i?(m(),c(`ul`,{key:0,role:`group`,class:a(M.value.listWithChildren({class:r(T).ui?.listWithChildren}))},[e(r(j),{items:t.children,level:n+1},null,8,[`items`,`level`])],2)):C(``,!0)]),_:2},1032,[`level`,`value`])],2))),128))]),_:1}),o(`div`,d(t.$attrs,{class:M.value.root({class:[r(T).ui?.root,r(T).class]})}),[e(r(Y),{modelValue:P.value,"onUpdate:modelValue":n[0]||=e=>P.value=e,expanded:G.value,"onUpdate:expanded":n[1]||=e=>G.value=e,class:a(M.value.list({class:r(T).ui?.list})),items:R.value,"get-key":e=>e.path},{default:g(()=>[e(r(j),{items:R.value,level:1},null,8,[`items`])]),_:1},8,[`modelValue`,`expanded`,`class`,`items`,`get-key`]),o(`div`,{class:a(M.value.content({class:r(T).ui?.content}))},[(m(),y(x(q.value?.component)))],2)],16)],64))}});export{ee as default};
@@ -1 +1 @@
1
- import{D as e,On as t,Rt as n,Zn as r,_ as i,b as a,et as o,g as s,mt as c,tr as l,v as u,xt as d,y as f}from"./DZo3dYLJ.js";import{r as p}from"./Csqgy925.js";import{n as m,t as h}from"./6gFtTBwm.js";import{a as g}from"./Vo4wMbnS.js";import{t as _}from"./o_84IzFk.js";import{u as v}from"#entry";import y from"./b2JYbYKt.js";var b={slots:{root:`relative my-5 group`,header:`flex items-center gap-1.5 border border-muted bg-default border-b-0 relative rounded-t-md px-4 py-3`,filename:`text-default text-sm/6`,icon:`size-4 shrink-0`,copy:`absolute top-[11px] end-[11px] lg:opacity-0 lg:group-hover:opacity-100 lg:focus-visible:opacity-100 transition`,base:`group font-mono text-sm/6 border border-muted bg-muted rounded-md px-4 py-3 whitespace-pre-wrap wrap-break-word overflow-x-auto outline-primary/25 focus-visible:outline-3 focus-visible:border-primary **:[.line]:block **:[.line.highlight]:-mx-4 **:[.line.highlight]:px-4 **:[.line.highlight]:bg-accented/50!`},variants:{filename:{true:{root:`[&>pre]:rounded-t-none [&>pre]:my-0 my-5`}}}},x={__name:`ProsePre`,props:{icon:{type:null,required:!1},code:{type:String,required:!1},language:{type:String,required:!1},filename:{type:String,required:!1},highlights:{type:Array,required:!1},hideHeader:{type:Boolean,required:!1},meta:{type:String,required:!1},copy:{type:[Boolean,Object],required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(x){let S=m(`prose.pre`,x),{t:C}=v(),{copy:w,copied:T}=g(),E=p(),D=n(`baseRef`),O=s(()=>h({extend:b,...E.ui?.prose?.pre||{}})());function k(){let e=S.code??D.value?.textContent??``;w(e)}return(n,s)=>(c(),a(`div`,{class:r(O.value.root({class:[t(S).ui?.root],filename:!!t(S).filename}))},[t(S).filename&&!t(S).hideHeader?(c(),a(`div`,{key:0,class:r(O.value.header({class:t(S).ui?.header}))},[e(y,{icon:t(S).icon,filename:t(S).filename,class:r(O.value.icon({class:t(S).ui?.icon}))},null,8,[`icon`,`filename`,`class`]),i(`span`,{class:r(O.value.filename({class:t(S).ui?.filename}))},l(t(S).filename),3)],2)):f(``,!0),t(S).copy?(c(),u(_,o({key:1,icon:t(T)?t(E).ui.icons.copyCheck:t(E).ui.icons.copy,color:`neutral`,variant:`outline`,size:`sm`,"aria-label":t(C)(`prose.pre.copy`)},typeof t(S).copy==`object`?t(S).copy:{},{class:O.value.copy({class:t(S).ui?.copy}),onClick:k}),null,16,[`icon`,`aria-label`,`class`])):f(``,!0),i(`pre`,o({ref_key:`baseRef`,ref:D,class:O.value.base({class:[t(S).ui?.base,t(S).class]})},n.$attrs),[d(n.$slots,`default`)],16)],2))}};export{x as default};
1
+ import{D as e,On as t,Rt as n,Zn as r,_ as i,b as a,et as o,g as s,mt as c,tr as l,v as u,xt as d,y as f}from"./DZo3dYLJ.js";import{r as p}from"./Csqgy925.js";import{n as m,t as h}from"./6gFtTBwm.js";import{a as g}from"./Vo4wMbnS.js";import{t as _}from"./EYTShbt4.js";import{u as v}from"#entry";import y from"./CJMBJQuf.js";var b={slots:{root:`relative my-5 group`,header:`flex items-center gap-1.5 border border-muted bg-default border-b-0 relative rounded-t-md px-4 py-3`,filename:`text-default text-sm/6`,icon:`size-4 shrink-0`,copy:`absolute top-[11px] end-[11px] lg:opacity-0 lg:group-hover:opacity-100 lg:focus-visible:opacity-100 transition`,base:`group font-mono text-sm/6 border border-muted bg-muted rounded-md px-4 py-3 whitespace-pre-wrap wrap-break-word overflow-x-auto outline-primary/25 focus-visible:outline-3 focus-visible:border-primary **:[.line]:block **:[.line.highlight]:-mx-4 **:[.line.highlight]:px-4 **:[.line.highlight]:bg-accented/50!`},variants:{filename:{true:{root:`[&>pre]:rounded-t-none [&>pre]:my-0 my-5`}}}},x={__name:`ProsePre`,props:{icon:{type:null,required:!1},code:{type:String,required:!1},language:{type:String,required:!1},filename:{type:String,required:!1},highlights:{type:Array,required:!1},hideHeader:{type:Boolean,required:!1},meta:{type:String,required:!1},copy:{type:[Boolean,Object],required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(x){let S=m(`prose.pre`,x),{t:C}=v(),{copy:w,copied:T}=g(),E=p(),D=n(`baseRef`),O=s(()=>h({extend:b,...E.ui?.prose?.pre||{}})());function k(){let e=S.code??D.value?.textContent??``;w(e)}return(n,s)=>(c(),a(`div`,{class:r(O.value.root({class:[t(S).ui?.root],filename:!!t(S).filename}))},[t(S).filename&&!t(S).hideHeader?(c(),a(`div`,{key:0,class:r(O.value.header({class:t(S).ui?.header}))},[e(y,{icon:t(S).icon,filename:t(S).filename,class:r(O.value.icon({class:t(S).ui?.icon}))},null,8,[`icon`,`filename`,`class`]),i(`span`,{class:r(O.value.filename({class:t(S).ui?.filename}))},l(t(S).filename),3)],2)):f(``,!0),t(S).copy?(c(),u(_,o({key:1,icon:t(T)?t(E).ui.icons.copyCheck:t(E).ui.icons.copy,color:`neutral`,variant:`outline`,size:`sm`,"aria-label":t(C)(`prose.pre.copy`)},typeof t(S).copy==`object`?t(S).copy:{},{class:O.value.copy({class:t(S).ui?.copy}),onClick:k}),null,16,[`icon`,`aria-label`,`class`])):f(``,!0),i(`pre`,o({ref_key:`baseRef`,ref:D,class:O.value.base({class:[t(S).ui?.base,t(S).class]})},n.$attrs),[d(n.$slots,`default`)],16)],2))}};export{x as default};
@@ -1 +1 @@
1
- import{$ as e,D as t,Ft as n,Ht as r,Lt as i,On as a,Zn as o,_ as s,at as c,b as l,bt as u,ct as d,g as f,mt as p,o as m,qt as h,tr as g,v as _,vn as v,wt as y}from"./DZo3dYLJ.js";import{r as b}from"./Csqgy925.js";import{n as x,t as S}from"./6gFtTBwm.js";import{a as C,i as w,n as T,r as E,t as D}from"./DWO9c9yp.js";import{c as O}from"#entry";import k from"./b2JYbYKt.js";var A={slots:{root:`relative group *:not-first:my-0! *:not-first:static! my-5`,list:`relative flex items-center gap-1 border border-muted bg-default border-b-0 rounded-t-md overflow-x-auto p-2`,indicator:`absolute left-0 inset-y-2 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position) transition-[translate,width] duration-200 ease-out motion-reduce:transition-none bg-elevated rounded-md shadow-xs`,trigger:[`relative inline-flex items-center gap-1.5 text-default data-[state=active]:text-highlighted hover:bg-elevated/50 px-2 py-1.5 text-sm rounded-md disabled:cursor-not-allowed disabled:opacity-75 outline-primary/25 focus-visible:outline-3`,`transition-colors`],triggerIcon:`size-4 shrink-0`,triggerLabel:`truncate`}},j={__name:`ProseCodeGroup`,props:e({defaultValue:{type:String,required:!1,default:`0`},sync:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let j=e,M=i(),N=x(`prose.codeGroup`,j),P=n(e,`modelValue`),F=b(),I=f(()=>S({extend:A,...F.ui?.prose?.codeGroup||{}})()),L=v(1),R=f(()=>(L.value,M.default?.()?.flatMap(z).filter(Boolean)||[]));function z(e,t){return typeof e.type==`symbol`?e.children?.map(z):{label:e.props?.filename||e.props?.label||`${t}`,icon:e.props?.icon,component:e}}return d(()=>{if(N.sync){let e=`code-group-${N.sync}`,t=O(e,()=>localStorage.getItem(e));r(t,()=>{t.value&&(P.value=t.value)},{immediate:!0}),r(P,()=>{P.value&&(t.value=P.value,localStorage.setItem(e,P.value))})}}),c(()=>L.value++),(e,n)=>(p(),_(a(C),{modelValue:P.value,"onUpdate:modelValue":n[0]||=e=>P.value=e,"default-value":a(N).defaultValue,"unmount-on-hide":!1,class:o(I.value.root({class:[a(N).ui?.root,a(N).class]}))},{default:h(()=>[t(a(T),{class:o(I.value.list({class:a(N).ui?.list}))},{default:h(()=>[t(a(E),{class:o(I.value.indicator({class:a(N).ui?.indicator}))},null,8,[`class`]),(p(!0),l(m,null,u(R.value,(e,n)=>(p(),_(a(D),{key:n,value:String(n),class:o(I.value.trigger({class:a(N).ui?.trigger}))},{default:h(()=>[t(k,{icon:e.icon,filename:e.label,class:o(I.value.triggerIcon({class:a(N).ui?.triggerIcon}))},null,8,[`icon`,`filename`,`class`]),s(`span`,{class:o(I.value.triggerLabel({class:a(N).ui?.triggerLabel}))},g(e.label),3)]),_:2},1032,[`value`,`class`]))),128))]),_:1},8,[`class`]),(p(!0),l(m,null,u(R.value,(e,t)=>(p(),_(a(w),{key:t,value:String(t),"as-child":``},{default:h(()=>[(p(),_(y(e.component),{"hide-header":``,tabindex:`-1`}))]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`,`default-value`,`class`]))}};export{j as default};
1
+ import{$ as e,D as t,Ft as n,Ht as r,Lt as i,On as a,Zn as o,_ as s,at as c,b as l,bt as u,ct as d,g as f,mt as p,o as m,qt as h,tr as g,v as _,vn as v,wt as y}from"./DZo3dYLJ.js";import{r as b}from"./Csqgy925.js";import{n as x,t as S}from"./6gFtTBwm.js";import{a as C,i as w,n as T,r as E,t as D}from"./DWO9c9yp.js";import{c as O}from"#entry";import k from"./CJMBJQuf.js";var A={slots:{root:`relative group *:not-first:my-0! *:not-first:static! my-5`,list:`relative flex items-center gap-1 border border-muted bg-default border-b-0 rounded-t-md overflow-x-auto p-2`,indicator:`absolute left-0 inset-y-2 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position) transition-[translate,width] duration-200 ease-out motion-reduce:transition-none bg-elevated rounded-md shadow-xs`,trigger:[`relative inline-flex items-center gap-1.5 text-default data-[state=active]:text-highlighted hover:bg-elevated/50 px-2 py-1.5 text-sm rounded-md disabled:cursor-not-allowed disabled:opacity-75 outline-primary/25 focus-visible:outline-3`,`transition-colors`],triggerIcon:`size-4 shrink-0`,triggerLabel:`truncate`}},j={__name:`ProseCodeGroup`,props:e({defaultValue:{type:String,required:!1,default:`0`},sync:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let j=e,M=i(),N=x(`prose.codeGroup`,j),P=n(e,`modelValue`),F=b(),I=f(()=>S({extend:A,...F.ui?.prose?.codeGroup||{}})()),L=v(1),R=f(()=>(L.value,M.default?.()?.flatMap(z).filter(Boolean)||[]));function z(e,t){return typeof e.type==`symbol`?e.children?.map(z):{label:e.props?.filename||e.props?.label||`${t}`,icon:e.props?.icon,component:e}}return d(()=>{if(N.sync){let e=`code-group-${N.sync}`,t=O(e,()=>localStorage.getItem(e));r(t,()=>{t.value&&(P.value=t.value)},{immediate:!0}),r(P,()=>{P.value&&(t.value=P.value,localStorage.setItem(e,P.value))})}}),c(()=>L.value++),(e,n)=>(p(),_(a(C),{modelValue:P.value,"onUpdate:modelValue":n[0]||=e=>P.value=e,"default-value":a(N).defaultValue,"unmount-on-hide":!1,class:o(I.value.root({class:[a(N).ui?.root,a(N).class]}))},{default:h(()=>[t(a(T),{class:o(I.value.list({class:a(N).ui?.list}))},{default:h(()=>[t(a(E),{class:o(I.value.indicator({class:a(N).ui?.indicator}))},null,8,[`class`]),(p(!0),l(m,null,u(R.value,(e,n)=>(p(),_(a(D),{key:n,value:String(n),class:o(I.value.trigger({class:a(N).ui?.trigger}))},{default:h(()=>[t(k,{icon:e.icon,filename:e.label,class:o(I.value.triggerIcon({class:a(N).ui?.triggerIcon}))},null,8,[`icon`,`filename`,`class`]),s(`span`,{class:o(I.value.triggerLabel({class:a(N).ui?.triggerLabel}))},g(e.label),3)]),_:2},1032,[`value`,`class`]))),128))]),_:1},8,[`class`]),(p(!0),l(m,null,u(R.value,(e,t)=>(p(),_(a(w),{key:t,value:String(t),"as-child":``},{default:h(()=>[(p(),_(y(e.component),{"hide-header":``,tabindex:`-1`}))]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`,`default-value`,`class`]))}};export{j as default};
@@ -1 +1 @@
1
- import{s as e}from"./D2O8Q8x9.js";import{D as t,On as n,Zn as r,_ as i,b as a,g as o,mt as s,xt as c}from"./DZo3dYLJ.js";import{r as l}from"./Csqgy925.js";import{n as u,t as d}from"./6gFtTBwm.js";import{t as f}from"./DrZpfjBq.js";var p={slots:{base:[`relative text-xl text-highlighted font-bold mt-8 mb-3 scroll-mt-[calc(32px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(32px+var(--ui-header-height))] [&>a]:rounded-sm [&>a]:outline-primary/25 [&>a]:focus-visible:outline-3 [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&>a>code]:text-lg/6 [&>a>code]:font-bold`,`[&>a>code]:transition-colors`],leading:[`absolute -ms-8 top-0.5 opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-1 bg-elevated group-hover:text-primary group-focus:text-primary rounded-md hidden lg:flex text-muted`,`transition`],leadingIcon:`size-4 shrink-0`,link:`group lg:after:absolute lg:after:inset-y-0 lg:after:-inset-s-2 lg:after:w-2`}},m=[`id`],h=[`href`],g={__name:`ProseH3`,props:{id:{type:String,required:!1},anchor:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(g){let _=u(`prose.h3`,g),v=l(),{headings:y}=e().public?.mdc||{},b=o(()=>d({extend:p,...v.ui?.prose?.h3||{}})()),x=o(()=>_.id&&(_.anchor??(typeof y?.anchorLinks==`boolean`?y.anchorLinks:y?.anchorLinks?.h3)??!1));return(e,o)=>(s(),a(`h3`,{id:n(_).id,class:r(b.value.base({class:[n(_).ui?.base,n(_).class]}))},[n(_).id&&x.value?(s(),a(`a`,{key:0,href:`#${n(_).id}`,class:r(b.value.link({class:n(_).ui?.link}))},[i(`span`,{class:r(b.value.leading({class:n(_).ui?.leading}))},[t(f,{name:n(v).ui.icons.hash,class:r(b.value.leadingIcon({class:n(_).ui?.leadingIcon}))},null,8,[`name`,`class`])],2),c(e.$slots,`default`)],10,h)):c(e.$slots,`default`,{},void 0,void 0,1)],10,m))}};export{g as default};
1
+ import{s as e}from"./D2O8Q8x9.js";import{D as t,On as n,Zn as r,_ as i,b as a,g as o,mt as s,xt as c}from"./DZo3dYLJ.js";import{r as l}from"./Csqgy925.js";import{n as u,t as d}from"./6gFtTBwm.js";import{t as f}from"./rlePnzpc.js";var p={slots:{base:[`relative text-xl text-highlighted font-bold mt-8 mb-3 scroll-mt-[calc(32px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(32px+var(--ui-header-height))] [&>a]:rounded-sm [&>a]:outline-primary/25 [&>a]:focus-visible:outline-3 [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&>a>code]:text-lg/6 [&>a>code]:font-bold`,`[&>a>code]:transition-colors`],leading:[`absolute -ms-8 top-0.5 opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-1 bg-elevated group-hover:text-primary group-focus:text-primary rounded-md hidden lg:flex text-muted`,`transition`],leadingIcon:`size-4 shrink-0`,link:`group lg:after:absolute lg:after:inset-y-0 lg:after:-inset-s-2 lg:after:w-2`}},m=[`id`],h=[`href`],g={__name:`ProseH3`,props:{id:{type:String,required:!1},anchor:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(g){let _=u(`prose.h3`,g),v=l(),{headings:y}=e().public?.mdc||{},b=o(()=>d({extend:p,...v.ui?.prose?.h3||{}})()),x=o(()=>_.id&&(_.anchor??(typeof y?.anchorLinks==`boolean`?y.anchorLinks:y?.anchorLinks?.h3)??!1));return(e,o)=>(s(),a(`h3`,{id:n(_).id,class:r(b.value.base({class:[n(_).ui?.base,n(_).class]}))},[n(_).id&&x.value?(s(),a(`a`,{key:0,href:`#${n(_).id}`,class:r(b.value.link({class:n(_).ui?.link}))},[i(`span`,{class:r(b.value.leading({class:n(_).ui?.leading}))},[t(f,{name:n(v).ui.icons.hash,class:r(b.value.leadingIcon({class:n(_).ui?.leadingIcon}))},null,8,[`name`,`class`])],2),c(e.$slots,`default`)],10,h)):c(e.$slots,`default`,{},void 0,void 0,1)],10,m))}};export{g as default};
@@ -3,4 +3,4 @@ import{t as e}from"./DK3Fl9T5.js";import{b as t,d as n,o as r,v as i,y as a}from
3
3
  }
4
4
  `},rule:{compressed:`{key}:`,compact:` {key}: `,expanded:`
5
5
  {key}: `}};function an(e,t=`expanded`){let n=[];for(let r=0;r<e.length;r++){let{selector:i,rules:a}=e[r],o=(i instanceof Array?i.join(t===`compressed`?`,`:`, `):i)+X.selectorStart[t],s=!0;for(let e in a)s||(o+=`;`),o+=X.rule[t].replace(`{key}`,e)+a[e],s=!1;o+=X.selectorEnd[t],n.push(o)}return n.join(t===`compressed`?``:`
6
- `)}function on(e,t={}){let n=t.customise?t.customise(e.body):e.body,r=t.mode||(t.color||!n.includes(`currentColor`)?`background`:`mask`),i=t.varName;i===void 0&&r===`mask`&&(i=`svg`);let a={...t,mode:r,varName:i};r===`background`&&delete a.varName;let o=Object.create(null);return Object.assign(o,t.rules,nn(a),rn({...J,...e,body:n},a)),an([{selector:t.iconSelector||`.icon`,rules:o}],a.format)}var sn=1e3,Z=new Map;function cn(e,t){let n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>Object.hasOwn(t,n)&&e[n]===t[n])}function ln(e,t,n){if(n)return on(e,{iconSelector:t,format:`compressed`,customise:n});let r=Z.get(t);if(r&&cn(r.icon,e))return r.css;let i=on(e,{iconSelector:t,format:`compressed`});return!r&&Z.size>=sn&&Z.clear(),Z.set(t,{icon:{...e},css:i}),i}var un=!1;function dn(e){if(un)return;let t=JSON.parse(`[{"prefix":"lucide","icons":{"activity":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\\"/>"},"alert-circle":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 8v4m0 4h.01\\"/></g>"},"arrow-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 5v14m7-7l-7 7l-7-7\\"/>"},"arrow-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m12 19l-7-7l7-7m7 7H5\\"/>"},"arrow-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7l7 7l-7 7\\"/>"},"arrow-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m5 12l7-7l7 7m-7 7V5\\"/>"},"arrow-up-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m21 16l-4 4l-4-4m4 4V4M3 8l4-4l4 4M7 4v16\\"/>"},"arrow-up-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M7 7h10v10M7 17L17 7\\"/>"},"badge-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3.85 8.62a4 4 0 0 1 4.78-4.77a4 4 0 0 1 6.74 0a4 4 0 0 1 4.78 4.78a4 4 0 0 1 0 6.74a4 4 0 0 1-4.77 4.78a4 4 0 0 1-6.75 0a4 4 0 0 1-4.78-4.77a4 4 0 0 1 0-6.76\\"/><path d=\\"m16 9l-5.5 5.5L8 12\\"/></g>"},"blocks":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2\\"/><rect width=\\"8\\" height=\\"8\\" x=\\"14\\" y=\\"2\\" rx=\\"1\\"/></g>"},"book-open":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 5v16m8.001-2A2 2 0 0 0 22 17V5a2 2 0 0 0-1.999-2L16 3.002A5 5 0 0 0 12 5a5 5 0 0 0-4-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 1.999 2H8a5 5 0 0 1 4 2a5 5 0 0 1 4-2z\\"/>"},"bug":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 20v-9m2-4a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4zm.12-3.12L16 2\\"/><path d=\\"M21 21a4 4 0 0 0-3.81-4M21 5a4 4 0 0 1-3.55 3.97M22 13h-4M3 21a4 4 0 0 1 3.81-4M3 5a4 4 0 0 0 3.55 3.97M6 13H2M8 2l1.88 1.88M9 7.13V6a3 3 0 1 1 6 0v1.13\\"/></g>"},"calendar-days":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M8 2v3m8-3v3\\"/><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M3 9h18M8 13h.01M12 13h.01M16 13h.01M8 17h.01M12 17h.01M16 17h.01\\"/></g>"},"calendar-range":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M16 2v3M3 9h18M8 2v3m9 8h-6m2 4H7m0-4h.01M17 17h.01\\"/></g>"},"chart-gantt":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M10 6h8m-6 10h6M3 3v16a2 2 0 0 0 2 2h16M8 11h7\\"/>"},"check":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 6L9 17l-5-5\\"/>"},"chevron-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 9l6 6l6-6\\"/>"},"chevron-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m15 18l-6-6l6-6\\"/>"},"chevron-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m9 18l6-6l-6-6\\"/>"},"chevron-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m18 15l-6-6l-6 6\\"/>"},"chevrons-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m11 17l-5-5l5-5m7 10l-5-5l5-5\\"/>"},"chevrons-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 17l5-5l-5-5m7 10l5-5l-5-5\\"/>"},"circle":{"width":24,"height":24,"body":"<circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\" fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"/>"},"circle-alert":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 8v4m0 4h.01\\"/></g>"},"circle-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m16 9l-5.5 5.5L8 12\\"/></g>"},"circle-check-big":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M21.801 10A10 10 0 1 1 17 3.335\\"/><path d=\\"m9 11l3 3L22 4\\"/></g>"},"circle-slash":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m9 15l6-6\\"/></g>"},"circle-x":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m15 9l-6 6m0-6l6 6\\"/></g>"},"clipboard-list":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"8\\" height=\\"4\\" x=\\"8\\" y=\\"2\\" rx=\\"1\\" ry=\\"1\\"/><path d=\\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2m4 7h4m-4 5h4m-8-5h.01M8 16h.01\\"/></g>"},"compass":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m16.24 7.76l-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z\\"/></g>"},"copy":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"14\\" height=\\"14\\" x=\\"8\\" y=\\"8\\" rx=\\"2\\" ry=\\"2\\"/><path d=\\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\\"/></g>"},"copy-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m12 15l2 2l4-4\\"/><rect width=\\"14\\" height=\\"14\\" x=\\"8\\" y=\\"8\\" rx=\\"2\\" ry=\\"2\\"/><path d=\\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\\"/></g>"},"ellipsis":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"19\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"5\\" cy=\\"12\\" r=\\"1\\"/></g>"},"eye":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"3\\"/></g>"},"eye-off":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242\\"/><path d=\\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20\\"/></g>"},"file":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\\"/><path d=\\"M14 2v5a1 1 0 0 0 1 1h5\\"/></g>"},"file-pen-line":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004zm.123-5.776A1 1 0 0 1 14 7V2\\"/><path d=\\"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516M8 18h1\\"/></g>"},"flag":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528\\"/>"},"flask-conical":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2M6.453 15h11.094M8.5 2h7\\"/>"},"folder":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\\"/>"},"folder-open":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\\"/>"},"gauge":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m12 14l4-4M3.34 19a10 10 0 1 1 17.32 0\\"/>"},"git-branch":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M15 6a9 9 0 0 0-9 9V3\\"/><circle cx=\\"18\\" cy=\\"6\\" r=\\"3\\"/><circle cx=\\"6\\" cy=\\"18\\" r=\\"3\\"/></g>"},"git-commit-horizontal":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"3\\"/><path d=\\"M3 12h6m6 0h6\\"/></g>"},"git-commit-vertical":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 3v6\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"3\\"/><path d=\\"M12 15v6\\"/></g>"},"grip-vertical":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"9\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"19\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"19\\" r=\\"1\\"/></g>"},"hand":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2m0 4V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2m0 4.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8\\"/><path d=\\"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15\\"/></g>"},"hash":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 9h16M4 15h16M10 3L8 21m8-18l-2 18\\"/>"},"history":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8\\"/><path d=\\"M3 3v5h5m4-1v5l4 2\\"/></g>"},"image-off":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m2 2l20 20M10.41 10.41a2 2 0 1 1-2.83-2.83m5.92 5.92L6 21m12-9l3 3\\"/><path d=\\"M3.59 3.59A2 2 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59M21 15V5a2 2 0 0 0-2-2H9\\"/></g>"},"image-plus":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M16 5h6m-3-3v6m2 3.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5\\"/><path d=\\"m21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21\\"/><circle cx=\\"9\\" cy=\\"9\\" r=\\"2\\"/></g>"},"info":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 16v-4m0-4h.01\\"/></g>"},"key-round":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z\\"/><circle cx=\\"16.5\\" cy=\\"7.5\\" r=\\".5\\" fill=\\"currentColor\\"/></g>"},"layers":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z\\"/><path d=\\"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12\\"/><path d=\\"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17\\"/></g>"},"layout-grid":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"7\\" height=\\"7\\" x=\\"3\\" y=\\"3\\" rx=\\"1\\"/><rect width=\\"7\\" height=\\"7\\" x=\\"14\\" y=\\"3\\" rx=\\"1\\"/><rect width=\\"7\\" height=\\"7\\" x=\\"14\\" y=\\"14\\" rx=\\"1\\"/><rect width=\\"7\\" height=\\"7\\" x=\\"3\\" y=\\"14\\" rx=\\"1\\"/></g>"},"lightbulb":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4\\"/>"},"list":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13\\"/>"},"list-checks":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M13 5h8m-8 7h8m-8 7h8M3 17l2 2l4-4M3 7l2 2l4-4\\"/>"},"list-ordered":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M11 5h10m-10 7h10m-10 7h10M4 4h1v5M4 9h2m.5 11H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02\\"/>"},"list-todo":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M13 5h8m-8 7h8m-8 7h8M3 17l2 2l4-4\\"/><rect width=\\"6\\" height=\\"6\\" x=\\"3\\" y=\\"4\\" rx=\\"1\\"/></g>"},"loader-circle":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M21 12a9 9 0 1 1-6.219-8.56\\"/>"},"map-pin":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0\\"/><circle cx=\\"12\\" cy=\\"10\\" r=\\"3\\"/></g>"},"menu":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 5h16M4 12h16M4 19h16\\"/>"},"message-square":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z\\"/>"},"message-square-more":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2zm-10-6h.01M16 11h.01M8 11h.01\\"/>"},"minus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14\\"/>"},"monitor":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"20\\" height=\\"14\\" x=\\"2\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M8 21h8m-4-4v4\\"/></g>"},"moon":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\\"/>"},"octagon-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 16h.01M12 8v4m3.312-10a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z\\"/>"},"panel-left-close":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m7-6l-3-3l3-3\\"/></g>"},"panel-left-open":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m5-12l3 3l-3 3\\"/></g>"},"plug-zap":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6l-2.3 2.3a2.4 2.4 0 0 0 0 3.4ZM2 22l3-3m2.5-5.5L10 11m.5 5.5L13 14m5-11l-4 4h6l-4 4\\"/>"},"plus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7v14\\"/>"},"refresh-cw":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8\\"/><path d=\\"M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16\\"/><path d=\\"M8 16H3v5\\"/></g>"},"rocket":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09\\"/><path d=\\"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z\\"/><path d=\\"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05\\"/></g>"},"rotate-ccw":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8\\"/><path d=\\"M3 3v5h5\\"/></g>"},"scale":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 3v18m7-13l3 8a5 5 0 0 1-6 0zV7\\"/><path d=\\"M3 7h1a17 17 0 0 0 8-2a17 17 0 0 0 8 2h1M5 8l3 8a5 5 0 0 1-6 0zV7m2 14h10\\"/></g>"},"search":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m21 21l-4.34-4.34\\"/><circle cx=\\"11\\" cy=\\"11\\" r=\\"8\\"/></g>"},"search-x":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m13.5 8.5l-5 5m0-5l5 5\\"/><circle cx=\\"11\\" cy=\\"11\\" r=\\"8\\"/><path d=\\"m21 21l-4.3-4.3\\"/></g>"},"settings-2":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M14 17H5M19 7h-9\\"/><circle cx=\\"17\\" cy=\\"17\\" r=\\"3\\"/><circle cx=\\"7\\" cy=\\"7\\" r=\\"3\\"/></g>"},"shield-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1zm-8-5v4m0 4h.01\\"/>"},"shield-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\\"/><path d=\\"m9 12l2 2l4-4\\"/></g>"},"signal":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M2 20h.01M7 20v-4m5 4v-8m5 8V8m5-4v16\\"/>"},"sparkles":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594zM20 2v4m2-2h-4\\"/><circle cx=\\"4\\" cy=\\"20\\" r=\\"2\\"/></g>"},"square":{"width":24,"height":24,"body":"<rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" rx=\\"2\\"/>"},"star":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z\\"/>"},"sun":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"4\\"/><path d=\\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\\"/></g>"},"target":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"6\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"2\\"/></g>"},"terminal":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 19h8M4 17l6-6l-6-6\\"/>"},"terminal-square":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m7 11l2-2l-2-2m4 6h4\\"/><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\" ry=\\"2\\"/></g>"},"trending-down":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M16 17h6v-6\\"/><path d=\\"m22 17l-8.5-8.5l-5 5L2 7\\"/></g>"},"triangle-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01\\"/>"},"upload":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\\"/>"},"x":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M18 6L6 18M6 6l12 12\\"/>"},"zap":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M15.914 4a1.5 1.5 0 0 0-2.474-1.561l-9 9A1.5 1.5 0 0 0 5.5 14h4.002a.5.5 0 0 1 .471.666L8.086 20a1.5 1.5 0 0 0 2.475 1.56l9-9A1.5 1.5 0 0 0 18.5 10h-3.997a.5.5 0 0 1-.472-.667z\\"/>"}}}]`);for(let n of t)for(let[t,r]of Object.entries(n.icons))e(n.prefix?n.prefix+`:`+t:t,r);un=!0}var fn=45,pn=new WeakMap;function mn(e){if(!e)return[];let t=s(e),n=pn.get(t);if(!n){let e=e=>[...e].sort((e,t)=>t.length-e.length);n=_(()=>e(v(t))),pn.set(t,n)}return n.value}function hn(e,t){let n=e.startsWith(t.cssSelectorPrefix)?e.slice(t.cssSelectorPrefix.length):e,r=t.aliases?.[n]||n;if(!r.includes(`:`)){let e=mn(t.collections).find(e=>r.charCodeAt(e.length)===fn&&r.startsWith(e));return e?e+`:`+r.slice(e.length+1):r}return r}async function gn(e,t){if(!e)return null;dn(L);let n=xe(e);if(n)return n;let r,i=ft(e).catch(()=>(console.warn(`[Icon] failed to load icon \`${e}\``),null));return t>0?await Promise.race([i,new Promise(n=>{r=setTimeout(()=>{console.warn(`[Icon] loading icon \`${e}\` timed out after ${t}ms`),n()},t)})]).finally(()=>clearTimeout(r)):await i,xe(e)}function _n(e){let t=O().icon;return _(()=>hn(e(),t))}function vn(e,t){if(e!==!1)return e===!0||e===null?t:e}function yn(e,t,n){if(n){t.appendChild(e);return}let r=t.querySelector(`style, link[rel="stylesheet"]`);r?t.insertBefore(e,r):t.appendChild(e)}var Q;function bn(e){return e.replace(/([^\w-])/g,`\\$1`)}function xn(){if(Q)return Q;Q=new Set;let e=e=>{if(e=e.replace(/^:where\((.*)\)$/,`$1`).trim(),e.startsWith(`.`))return e},t=n=>{if(n?.length)for(let r of n){r?.cssRules&&t(r.cssRules);let n=r?.selectorText;if(typeof n==`string`){let t=e(n);t&&Q.add(t)}}};if(typeof document<`u`)for(let e of document.styleSheets)try{t(e.cssRules||e.rules)}catch{}return Q}var Sn=x({name:`NuxtIconCss`,props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e){let t=r(),n=O().icon,i=_(()=>{if(!e.name)return``;let t=n.cssSelectorPrefix+e.name;return typeof e.customize==`function`?t+`--customized-`+zt(e.customize.toString()):t});function a(e){if(!e)return;let n=xe(e);if(n)return n;let r=t.payload?.data?.[e];if(r)return L(e,r),r}let s=_(()=>`.`+bn(i.value));function c(t,r=!0,i=s.value){n.cssWherePseudo&&(i=`:where(${i})`);let a=ln(t,i,vn(e.customize,n.customize));return n.cssLayer&&r?`@layer ${n.cssLayer} { ${a} }`:a}{let t=xn();async function r(e,r,i){if(t.has(i)||typeof document>`u`)return;let a=document.createElement(`style`);a.textContent=c(e,!0,i),yn(a,document.head,n.cssLayer),t.add(i)}l(()=>e.name,e=>{let n=s.value;if(t.has(n))return;let i=a(e);i?r(i,e,n):gn(e,-1).then(t=>{t&&r(t,e,n)}).catch(()=>null)},{immediate:!0})}return G(),()=>o(`span`,{class:[`iconify`,i.value]})}});function Cn(e,t={}){let n,r=!1,i=[],a,o,s=(t,n)=>{let i=wn(e,t,n);return a=i,i.finally(()=>{if(a=void 0,o&&!r){let e=o;o=void 0,s(t,e)}}),i};return function(...e){return o=e,a||new Promise(a=>{let c=t.leading&&!r;r||(r=!0,re(()=>{r=!1;let a=o??e;o=void 0;let c=t.leading?n:s(this,a);for(let e of i)e(c);i=[]})),c?(n=s(this,e),a(n)):i.push(a)})}}async function wn(e,t,n){return await e.apply(t,n)}x({name:`ServerPlaceholder`,render(){return m(`div`)}});var Tn=Symbol.for(`nuxt:client-only`);x({name:`ClientOnly`,inheritAttrs:!1,props:[`fallback`,`placeholder`,`placeholderTag`,`fallbackTag`],setup(e,{slots:t,attrs:n}){let r=T(!1);h(()=>{r.value=!0});let i=d();return i&&(i._nuxtClientOnly=!0),y(Tn,!0),()=>{if(r.value){let e=t.default?.();return e&&e.length===1?[b(e[0],n)]:e}let i=t.fallback||t.placeholder;if(i)return o(i);let a=e.fallback||e.placeholder||``,s=D(e.fallbackTag||e.placeholderTag,`span`);return m(s,n,a)}}});var En=t({docsBase:i,reporters:a});function Dn(e={}){{function t(...t){let i=typeof t[t.length-1]==`string`?t.pop():void 0;kn(t[0],t[1])&&t.unshift(i);let[a,o,s={}]=t,f=!1,m=ne(a)||typeof a==`function`,h=m?_(()=>c(a)):{value:a};if(!h.value||typeof h.value!=`string`)throw En.NUXT_E3008();if(typeof o!=`function`)throw En.NUXT_E3009();let v=typeof e==`function`,y=r(),b=v?e(s):e;if(!v)for(let e in b)b[e]!==void 0&&s[e]===void 0&&(s[e]=b[e]);if(s.server??=!0,s.default??=Nn,s.getCachedData??=Pn,s.lazy??=!1,s.immediate??=!0,s.deep??=n.deep,s.dedupe??=`cancel`,s.enabled??=!0,v)for(let e in b)b[e]!==void 0&&(s[e]=b[e]);y._asyncData[h.value];function x(){let e={cause:`initial`,dedupe:s.dedupe},t=y._asyncData[h.value];return t?._init?y._asyncDataPromises[h.value]&&(e.cachedData=t._initialCachedData):(e.cachedData=s.getCachedData(h.value,y,{cause:`initial`}),y._asyncData[h.value]=Mn(y,h.value,o,s,e.cachedData),y._asyncData[h.value]._initialCachedData=e.cachedData),()=>y._asyncData[h.value].execute(e)}let S=x(),C=y._asyncData[h.value];C._deps++;let w=s.server!==!1&&y.payload.serverRendered,T=()=>!1;{let e=d(),t=!!e||T();if(w&&s.immediate&&G(),e&&!e._nuxtOnBeforeMountCbs){e._nuxtOnBeforeMountCbs=[];let t=e._nuxtOnBeforeMountCbs;te(()=>{t.forEach(e=>{e()}),t.splice(0,t.length)}),g(()=>t.splice(0,t.length))}let n=t&&(e?._nuxtClientOnly||u(Tn,!1)),r=h.value in y.payload.data;w&&y.isHydrating&&(C.error.value||C.data.value!==void 0&&(r||C._initialCachedData!==void 0))?C.status.value=C.error.value?`error`:`success`:t&&(!n&&y.payload.serverRendered&&y.isHydrating&&(!w||r)||s.lazy)&&s.immediate?e?e._nuxtOnBeforeMountCbs.push(S):te(()=>{S()}):s.immediate&&C.status.value!==`success`&&S();function i(e){let t=y._asyncData[e];t?._deps&&(t._deps--,t._deps===0&&t?._off())}let a=p(),_=()=>{},v=m?l(h,(e,t)=>{if((e||t)&&e!==t){f=!0;let n=y._asyncData[t]?.data.value!==void 0,r=y._asyncDataPromises[t]!==void 0,a={cause:`initial`,dedupe:s.dedupe};if(!y._asyncData[e]?._init){let r=s.getCachedData(e,y,{cause:`initial`});a.cachedData=r;let i=t&&n&&r===void 0?y._asyncData[t].data.value:r;y._asyncData[e]=Mn(y,e,o,s,i),y._asyncData[e]._initialCachedData=r}y._asyncData[e]._deps++,t&&i(t),s._keyTriggersExecute!==!1&&(s.immediate||n||r)&&y._asyncData[e].execute(a),re(()=>{f=!1})}},{flush:`sync`}):_,b=s.watch?l(s.watch,()=>{f||y._asyncData[h.value]?._execute({cause:`watch`,dedupe:s.dedupe})}):_,x=ne(s.enabled)||typeof s.enabled==`function`?l(()=>c(s.enabled),e=>{let t=y._asyncData[h.value];!e&&t&&y._asyncDataPromises[h.value]&&(t._abortController?.abort(new DOMException("AsyncData request cancelled by `enabled: false`",`AbortError`)),t._abortController=void 0,delete y._asyncDataPromises[h.value],t.status.value=`idle`)}):_;a&&ee(()=>{v(),b(),x(),i(h.value)})}let E={data:$(()=>y._asyncData[h.value]?.data,!s.deep),pending:$(()=>y._asyncData[h.value]?.pending),status:$(()=>y._asyncData[h.value]?.status),error:$(()=>y._asyncData[h.value]?.error),refresh:(...e)=>y._asyncData[h.value]?._init?y._asyncData[h.value].execute(...e):x()(),execute:(...e)=>E.refresh(...e),clear:()=>{let e=y._asyncData[h.value];if(e?._abortController)try{e._abortController.abort(new DOMException(`AsyncData aborted by user.`,`AbortError`))}finally{e._abortController=void 0}An(y,h.value)}},D=Promise.resolve(s.lazy?void 0:y._asyncDataPromises[h.value]).then(()=>E);return Object.assign(D,E),Object.defineProperties(D,{then:{enumerable:!0,value:D.then.bind(D)},catch:{enumerable:!0,value:D.catch.bind(D)},finally:{enumerable:!0,value:D.finally.bind(D)}}),D}return t}}var On=Dn();function $(e,t=!1){let n=_({get(){return e()?.value},set(t){let n=e();n&&(n.value=t)}});return t&&(n.__v_isShallow=!0),n}function kn(e,t){return!(typeof e==`string`||typeof e==`object`&&e||typeof e==`function`&&typeof t==`function`)}function An(e,t){delete e.payload.data[t],delete e.payload._errors[t],e._asyncData[t]&&(e._asyncData[t].data.value=f(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value=`idle`,e._asyncData[t]._initialCachedData=void 0),delete e._asyncDataPromises[t]}function jn(e,t){let n={};for(let r of t)n[r]=e[r];return n}function Mn(e,t,n,r,i){e.payload._errors[t]??=void 0;let a=r.getCachedData!==Pn,o=n,s=r.deep?C:T,l=i!==void 0,u=e.hook(`app:data:refresh`,async e=>{(!e||e.includes(t))&&await d.execute({cause:`refresh:hook`})}),d={data:s(l?i:r.default()),pending:_(()=>d.status.value===`pending`),error:w(e.payload._errors,t),status:T(`idle`),execute:(...n)=>{let[i,a=void 0]=n,s=i&&a===void 0&&typeof i==`object`?i:{};if(e._asyncDataPromises[t]&&(s.dedupe??r.dedupe)===`defer`)return e._asyncDataPromises[t];{let n=`cachedData`in s?s.cachedData:r.getCachedData(t,e,{cause:s.cause??`refresh:manual`});if(n!==void 0)return r.serialize!==!1&&(e.payload.data[t]=n),d.data.value=n,d.error.value=void 0,d.status.value=`success`,Promise.resolve(n)}if(c(r.enabled)===!1)return Promise.resolve(d.data.value);d._abortController&&d._abortController.abort(new DOMException(`AsyncData request cancelled by deduplication`,`AbortError`)),d._abortController=new AbortController,d.status.value=`pending`;let l=new AbortController,u=new Promise((t,n)=>{try{let i=s.timeout??r.timeout,a=Fn([d._abortController?.signal,s?.signal],l.signal,i);if(a.aborted){let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`));return}a.addEventListener(`abort`,()=>{let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`))},{once:!0,signal:l.signal});let c={signal:a},u=()=>Promise.resolve(o(e,c));if(r.middleware?.length)for(let e=r.middleware.length-1;e>=0;e--){let t=r.middleware[e],n=u;u=()=>Promise.resolve(t(n,c))}return u().then(t,n)}catch(e){n(e)}}).then(async n=>{if(e._asyncDataPromises[t]!==u)return;let i=n;r.transform&&(i=await r.transform(n)),r.pick&&(i=jn(i,r.pick)),r.serialize!==!1&&(e.payload.data[t]=i),d.data.value=i,d.error.value=void 0,d.status.value=`success`}).catch(n=>{if(e._asyncDataPromises[t]!==u||d._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<`u`&&n instanceof DOMException&&n.name===`AbortError`)return d.status.value=`idle`,e._asyncDataPromises[t];d.error.value=E(n),d.data.value=f(r.default()),d.status.value=`error`}).finally(()=>{l.abort(),e._asyncDataPromises[t]===u&&delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=u,e._asyncDataPromises[t]},_execute:Cn((...e)=>d.execute(...e)),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{u(),e._asyncData[t]===d&&(e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),e._asyncDataPromises[t]&&(d._abortController?.abort(new DOMException(`AsyncData request cancelled by unmount`,`AbortError`)),delete e._asyncDataPromises[t],d.status.value===`pending`&&(d.status.value=`idle`)),a||S(()=>{e._asyncData[t]?._init||(An(e,t),d.execute=()=>Promise.resolve())}))}};return d}var Nn=()=>void 0,Pn=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!==`refresh:manual`&&n.cause!==`refresh:hook`)return t.static.data[e]};function Fn(e,t,n){let r=e.filter(e=>!!e);if(typeof n==`number`&&n>=0){let e=AbortSignal.timeout?.(n);e&&r.push(e)}if(AbortSignal.any)return AbortSignal.any(r);let i=new AbortController;for(let e of r)if(e.aborted){let t=e.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(t)}catch{i.abort()}return i.signal}let a=()=>{let e=r.find(e=>e.aborted)?.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(e)}catch{i.abort()}};for(let e of r)e.addEventListener?.(`abort`,a,{once:!0,signal:t});return i.signal}var In=x({name:`NuxtIconSvg`,props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){let n=r(),i=O().icon,a=_n(()=>e.name),s=`i-`+a.value;if(a.value){G();{let e=n.payload.data[s];e?L(a.value,e):dn(L)}}return()=>o(Mt,{icon:a.value,ssr:!0,customise:vn(e.customize,i.customize)},t)}}),Ln=e({default:()=>Rn}),Rn=x({name:`NuxtIcon`,props:{name:{type:String,required:!0},mode:{type:String,required:!1,default:null},size:{type:[Number,String],required:!1,default:null},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){let n=r(),i=O().icon,a=_n(()=>e.name),s=_(()=>n.vueApp?.component(a.value)||((e.mode||i.mode)===`svg`?In:Sn)),c=_(()=>{let t=e.size||i.size;return t?{fontSize:Number.isNaN(+t)?t:t+`px`}:null});return()=>o(s.value,{...i.attrs,name:a.value,class:i.class,style:c.value,customize:e.customize},t)}});export{G as a,pt as c,En as i,Ln as n,Nt as o,On as r,Re as s,Rn as t};
6
+ `)}function on(e,t={}){let n=t.customise?t.customise(e.body):e.body,r=t.mode||(t.color||!n.includes(`currentColor`)?`background`:`mask`),i=t.varName;i===void 0&&r===`mask`&&(i=`svg`);let a={...t,mode:r,varName:i};r===`background`&&delete a.varName;let o=Object.create(null);return Object.assign(o,t.rules,nn(a),rn({...J,...e,body:n},a)),an([{selector:t.iconSelector||`.icon`,rules:o}],a.format)}var sn=1e3,Z=new Map;function cn(e,t){let n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>Object.hasOwn(t,n)&&e[n]===t[n])}function ln(e,t,n){if(n)return on(e,{iconSelector:t,format:`compressed`,customise:n});let r=Z.get(t);if(r&&cn(r.icon,e))return r.css;let i=on(e,{iconSelector:t,format:`compressed`});return!r&&Z.size>=sn&&Z.clear(),Z.set(t,{icon:{...e},css:i}),i}var un=!1;function dn(e){if(un)return;let t=JSON.parse(`[{"prefix":"lucide","icons":{"activity":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\\"/>"},"alert-circle":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 8v4m0 4h.01\\"/></g>"},"arrow-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 5v14m7-7l-7 7l-7-7\\"/>"},"arrow-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m12 19l-7-7l7-7m7 7H5\\"/>"},"arrow-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7l7 7l-7 7\\"/>"},"arrow-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m5 12l7-7l7 7m-7 7V5\\"/>"},"arrow-up-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m21 16l-4 4l-4-4m4 4V4M3 8l4-4l4 4M7 4v16\\"/>"},"arrow-up-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M7 7h10v10M7 17L17 7\\"/>"},"badge-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3.85 8.62a4 4 0 0 1 4.78-4.77a4 4 0 0 1 6.74 0a4 4 0 0 1 4.78 4.78a4 4 0 0 1 0 6.74a4 4 0 0 1-4.77 4.78a4 4 0 0 1-6.75 0a4 4 0 0 1-4.78-4.77a4 4 0 0 1 0-6.76\\"/><path d=\\"m16 9l-5.5 5.5L8 12\\"/></g>"},"blocks":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2\\"/><rect width=\\"8\\" height=\\"8\\" x=\\"14\\" y=\\"2\\" rx=\\"1\\"/></g>"},"book-open":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 5v16m8.001-2A2 2 0 0 0 22 17V5a2 2 0 0 0-1.999-2L16 3.002A5 5 0 0 0 12 5a5 5 0 0 0-4-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 1.999 2H8a5 5 0 0 1 4 2a5 5 0 0 1 4-2z\\"/>"},"bug":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 20v-9m2-4a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4zm.12-3.12L16 2\\"/><path d=\\"M21 21a4 4 0 0 0-3.81-4M21 5a4 4 0 0 1-3.55 3.97M22 13h-4M3 21a4 4 0 0 1 3.81-4M3 5a4 4 0 0 0 3.55 3.97M6 13H2M8 2l1.88 1.88M9 7.13V6a3 3 0 1 1 6 0v1.13\\"/></g>"},"calendar-days":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M8 2v3m8-3v3\\"/><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M3 9h18M8 13h.01M12 13h.01M16 13h.01M8 17h.01M12 17h.01M16 17h.01\\"/></g>"},"calendar-range":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M16 2v3M3 9h18M8 2v3m9 8h-6m2 4H7m0-4h.01M17 17h.01\\"/></g>"},"chart-gantt":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M10 6h8m-6 10h6M3 3v16a2 2 0 0 0 2 2h16M8 11h7\\"/>"},"check":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 6L9 17l-5-5\\"/>"},"chevron-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 9l6 6l6-6\\"/>"},"chevron-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m15 18l-6-6l6-6\\"/>"},"chevron-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m9 18l6-6l-6-6\\"/>"},"chevron-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m18 15l-6-6l-6 6\\"/>"},"chevrons-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m11 17l-5-5l5-5m7 10l-5-5l5-5\\"/>"},"chevrons-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 17l5-5l-5-5m7 10l5-5l-5-5\\"/>"},"circle":{"width":24,"height":24,"body":"<circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\" fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"/>"},"circle-alert":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 8v4m0 4h.01\\"/></g>"},"circle-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m16 9l-5.5 5.5L8 12\\"/></g>"},"circle-check-big":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M21.801 10A10 10 0 1 1 17 3.335\\"/><path d=\\"m9 11l3 3L22 4\\"/></g>"},"circle-slash":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m9 15l6-6\\"/></g>"},"circle-x":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m15 9l-6 6m0-6l6 6\\"/></g>"},"clipboard-copy":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"8\\" height=\\"4\\" x=\\"8\\" y=\\"2\\" rx=\\"1\\" ry=\\"1\\"/><path d=\\"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M16 4h2a2 2 0 0 1 2 2v4m1 4H11\\"/><path d=\\"m15 10l-4 4l4 4\\"/></g>"},"clipboard-list":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"8\\" height=\\"4\\" x=\\"8\\" y=\\"2\\" rx=\\"1\\" ry=\\"1\\"/><path d=\\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2m4 7h4m-4 5h4m-8-5h.01M8 16h.01\\"/></g>"},"compass":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m16.24 7.76l-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z\\"/></g>"},"copy":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"14\\" height=\\"14\\" x=\\"8\\" y=\\"8\\" rx=\\"2\\" ry=\\"2\\"/><path d=\\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\\"/></g>"},"copy-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m12 15l2 2l4-4\\"/><rect width=\\"14\\" height=\\"14\\" x=\\"8\\" y=\\"8\\" rx=\\"2\\" ry=\\"2\\"/><path d=\\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\\"/></g>"},"ellipsis":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"19\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"5\\" cy=\\"12\\" r=\\"1\\"/></g>"},"eye":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"3\\"/></g>"},"eye-off":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242\\"/><path d=\\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20\\"/></g>"},"file":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\\"/><path d=\\"M14 2v5a1 1 0 0 0 1 1h5\\"/></g>"},"file-pen-line":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004zm.123-5.776A1 1 0 0 1 14 7V2\\"/><path d=\\"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516M8 18h1\\"/></g>"},"flag":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528\\"/>"},"flask-conical":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2M6.453 15h11.094M8.5 2h7\\"/>"},"folder":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\\"/>"},"folder-open":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\\"/>"},"gauge":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m12 14l4-4M3.34 19a10 10 0 1 1 17.32 0\\"/>"},"git-branch":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M15 6a9 9 0 0 0-9 9V3\\"/><circle cx=\\"18\\" cy=\\"6\\" r=\\"3\\"/><circle cx=\\"6\\" cy=\\"18\\" r=\\"3\\"/></g>"},"git-commit-horizontal":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"3\\"/><path d=\\"M3 12h6m6 0h6\\"/></g>"},"git-commit-vertical":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 3v6\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"3\\"/><path d=\\"M12 15v6\\"/></g>"},"grip-vertical":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"9\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"19\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"19\\" r=\\"1\\"/></g>"},"hand":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2m0 4V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2m0 4.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8\\"/><path d=\\"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15\\"/></g>"},"hash":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 9h16M4 15h16M10 3L8 21m8-18l-2 18\\"/>"},"history":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8\\"/><path d=\\"M3 3v5h5m4-1v5l4 2\\"/></g>"},"image-off":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m2 2l20 20M10.41 10.41a2 2 0 1 1-2.83-2.83m5.92 5.92L6 21m12-9l3 3\\"/><path d=\\"M3.59 3.59A2 2 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59M21 15V5a2 2 0 0 0-2-2H9\\"/></g>"},"image-plus":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M16 5h6m-3-3v6m2 3.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5\\"/><path d=\\"m21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21\\"/><circle cx=\\"9\\" cy=\\"9\\" r=\\"2\\"/></g>"},"info":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 16v-4m0-4h.01\\"/></g>"},"key-round":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z\\"/><circle cx=\\"16.5\\" cy=\\"7.5\\" r=\\".5\\" fill=\\"currentColor\\"/></g>"},"layers":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z\\"/><path d=\\"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12\\"/><path d=\\"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17\\"/></g>"},"layout-grid":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"7\\" height=\\"7\\" x=\\"3\\" y=\\"3\\" rx=\\"1\\"/><rect width=\\"7\\" height=\\"7\\" x=\\"14\\" y=\\"3\\" rx=\\"1\\"/><rect width=\\"7\\" height=\\"7\\" x=\\"14\\" y=\\"14\\" rx=\\"1\\"/><rect width=\\"7\\" height=\\"7\\" x=\\"3\\" y=\\"14\\" rx=\\"1\\"/></g>"},"lightbulb":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4\\"/>"},"list":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13\\"/>"},"list-checks":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M13 5h8m-8 7h8m-8 7h8M3 17l2 2l4-4M3 7l2 2l4-4\\"/>"},"list-ordered":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M11 5h10m-10 7h10m-10 7h10M4 4h1v5M4 9h2m.5 11H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02\\"/>"},"list-todo":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M13 5h8m-8 7h8m-8 7h8M3 17l2 2l4-4\\"/><rect width=\\"6\\" height=\\"6\\" x=\\"3\\" y=\\"4\\" rx=\\"1\\"/></g>"},"loader-circle":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M21 12a9 9 0 1 1-6.219-8.56\\"/>"},"map-pin":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0\\"/><circle cx=\\"12\\" cy=\\"10\\" r=\\"3\\"/></g>"},"menu":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 5h16M4 12h16M4 19h16\\"/>"},"message-square":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z\\"/>"},"message-square-more":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2zm-10-6h.01M16 11h.01M8 11h.01\\"/>"},"minus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14\\"/>"},"monitor":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"20\\" height=\\"14\\" x=\\"2\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M8 21h8m-4-4v4\\"/></g>"},"moon":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\\"/>"},"octagon-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 16h.01M12 8v4m3.312-10a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z\\"/>"},"panel-left-close":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m7-6l-3-3l3-3\\"/></g>"},"panel-left-open":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m5-12l3 3l-3 3\\"/></g>"},"plug-zap":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6l-2.3 2.3a2.4 2.4 0 0 0 0 3.4ZM2 22l3-3m2.5-5.5L10 11m.5 5.5L13 14m5-11l-4 4h6l-4 4\\"/>"},"plus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7v14\\"/>"},"refresh-cw":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8\\"/><path d=\\"M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16\\"/><path d=\\"M8 16H3v5\\"/></g>"},"rocket":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09\\"/><path d=\\"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z\\"/><path d=\\"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05\\"/></g>"},"rotate-ccw":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8\\"/><path d=\\"M3 3v5h5\\"/></g>"},"scale":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 3v18m7-13l3 8a5 5 0 0 1-6 0zV7\\"/><path d=\\"M3 7h1a17 17 0 0 0 8-2a17 17 0 0 0 8 2h1M5 8l3 8a5 5 0 0 1-6 0zV7m2 14h10\\"/></g>"},"search":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m21 21l-4.34-4.34\\"/><circle cx=\\"11\\" cy=\\"11\\" r=\\"8\\"/></g>"},"search-x":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m13.5 8.5l-5 5m0-5l5 5\\"/><circle cx=\\"11\\" cy=\\"11\\" r=\\"8\\"/><path d=\\"m21 21l-4.3-4.3\\"/></g>"},"settings-2":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M14 17H5M19 7h-9\\"/><circle cx=\\"17\\" cy=\\"17\\" r=\\"3\\"/><circle cx=\\"7\\" cy=\\"7\\" r=\\"3\\"/></g>"},"shield-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1zm-8-5v4m0 4h.01\\"/>"},"shield-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\\"/><path d=\\"m9 12l2 2l4-4\\"/></g>"},"signal":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M2 20h.01M7 20v-4m5 4v-8m5 8V8m5-4v16\\"/>"},"sparkles":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594zM20 2v4m2-2h-4\\"/><circle cx=\\"4\\" cy=\\"20\\" r=\\"2\\"/></g>"},"square":{"width":24,"height":24,"body":"<rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" rx=\\"2\\"/>"},"star":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z\\"/>"},"sun":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"4\\"/><path d=\\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\\"/></g>"},"target":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"6\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"2\\"/></g>"},"terminal":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 19h8M4 17l6-6l-6-6\\"/>"},"terminal-square":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m7 11l2-2l-2-2m4 6h4\\"/><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\" ry=\\"2\\"/></g>"},"trash-2":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\\"/>"},"trending-down":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M16 17h6v-6\\"/><path d=\\"m22 17l-8.5-8.5l-5 5L2 7\\"/></g>"},"triangle-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01\\"/>"},"upload":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\\"/>"},"x":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M18 6L6 18M6 6l12 12\\"/>"},"zap":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M15.914 4a1.5 1.5 0 0 0-2.474-1.561l-9 9A1.5 1.5 0 0 0 5.5 14h4.002a.5.5 0 0 1 .471.666L8.086 20a1.5 1.5 0 0 0 2.475 1.56l9-9A1.5 1.5 0 0 0 18.5 10h-3.997a.5.5 0 0 1-.472-.667z\\"/>"}}}]`);for(let n of t)for(let[t,r]of Object.entries(n.icons))e(n.prefix?n.prefix+`:`+t:t,r);un=!0}var fn=45,pn=new WeakMap;function mn(e){if(!e)return[];let t=s(e),n=pn.get(t);if(!n){let e=e=>[...e].sort((e,t)=>t.length-e.length);n=_(()=>e(v(t))),pn.set(t,n)}return n.value}function hn(e,t){let n=e.startsWith(t.cssSelectorPrefix)?e.slice(t.cssSelectorPrefix.length):e,r=t.aliases?.[n]||n;if(!r.includes(`:`)){let e=mn(t.collections).find(e=>r.charCodeAt(e.length)===fn&&r.startsWith(e));return e?e+`:`+r.slice(e.length+1):r}return r}async function gn(e,t){if(!e)return null;dn(L);let n=xe(e);if(n)return n;let r,i=ft(e).catch(()=>(console.warn(`[Icon] failed to load icon \`${e}\``),null));return t>0?await Promise.race([i,new Promise(n=>{r=setTimeout(()=>{console.warn(`[Icon] loading icon \`${e}\` timed out after ${t}ms`),n()},t)})]).finally(()=>clearTimeout(r)):await i,xe(e)}function _n(e){let t=O().icon;return _(()=>hn(e(),t))}function vn(e,t){if(e!==!1)return e===!0||e===null?t:e}function yn(e,t,n){if(n){t.appendChild(e);return}let r=t.querySelector(`style, link[rel="stylesheet"]`);r?t.insertBefore(e,r):t.appendChild(e)}var Q;function bn(e){return e.replace(/([^\w-])/g,`\\$1`)}function xn(){if(Q)return Q;Q=new Set;let e=e=>{if(e=e.replace(/^:where\((.*)\)$/,`$1`).trim(),e.startsWith(`.`))return e},t=n=>{if(n?.length)for(let r of n){r?.cssRules&&t(r.cssRules);let n=r?.selectorText;if(typeof n==`string`){let t=e(n);t&&Q.add(t)}}};if(typeof document<`u`)for(let e of document.styleSheets)try{t(e.cssRules||e.rules)}catch{}return Q}var Sn=x({name:`NuxtIconCss`,props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e){let t=r(),n=O().icon,i=_(()=>{if(!e.name)return``;let t=n.cssSelectorPrefix+e.name;return typeof e.customize==`function`?t+`--customized-`+zt(e.customize.toString()):t});function a(e){if(!e)return;let n=xe(e);if(n)return n;let r=t.payload?.data?.[e];if(r)return L(e,r),r}let s=_(()=>`.`+bn(i.value));function c(t,r=!0,i=s.value){n.cssWherePseudo&&(i=`:where(${i})`);let a=ln(t,i,vn(e.customize,n.customize));return n.cssLayer&&r?`@layer ${n.cssLayer} { ${a} }`:a}{let t=xn();async function r(e,r,i){if(t.has(i)||typeof document>`u`)return;let a=document.createElement(`style`);a.textContent=c(e,!0,i),yn(a,document.head,n.cssLayer),t.add(i)}l(()=>e.name,e=>{let n=s.value;if(t.has(n))return;let i=a(e);i?r(i,e,n):gn(e,-1).then(t=>{t&&r(t,e,n)}).catch(()=>null)},{immediate:!0})}return G(),()=>o(`span`,{class:[`iconify`,i.value]})}});function Cn(e,t={}){let n,r=!1,i=[],a,o,s=(t,n)=>{let i=wn(e,t,n);return a=i,i.finally(()=>{if(a=void 0,o&&!r){let e=o;o=void 0,s(t,e)}}),i};return function(...e){return o=e,a||new Promise(a=>{let c=t.leading&&!r;r||(r=!0,re(()=>{r=!1;let a=o??e;o=void 0;let c=t.leading?n:s(this,a);for(let e of i)e(c);i=[]})),c?(n=s(this,e),a(n)):i.push(a)})}}async function wn(e,t,n){return await e.apply(t,n)}x({name:`ServerPlaceholder`,render(){return m(`div`)}});var Tn=Symbol.for(`nuxt:client-only`);x({name:`ClientOnly`,inheritAttrs:!1,props:[`fallback`,`placeholder`,`placeholderTag`,`fallbackTag`],setup(e,{slots:t,attrs:n}){let r=T(!1);h(()=>{r.value=!0});let i=d();return i&&(i._nuxtClientOnly=!0),y(Tn,!0),()=>{if(r.value){let e=t.default?.();return e&&e.length===1?[b(e[0],n)]:e}let i=t.fallback||t.placeholder;if(i)return o(i);let a=e.fallback||e.placeholder||``,s=D(e.fallbackTag||e.placeholderTag,`span`);return m(s,n,a)}}});var En=t({docsBase:i,reporters:a});function Dn(e={}){{function t(...t){let i=typeof t[t.length-1]==`string`?t.pop():void 0;kn(t[0],t[1])&&t.unshift(i);let[a,o,s={}]=t,f=!1,m=ne(a)||typeof a==`function`,h=m?_(()=>c(a)):{value:a};if(!h.value||typeof h.value!=`string`)throw En.NUXT_E3008();if(typeof o!=`function`)throw En.NUXT_E3009();let v=typeof e==`function`,y=r(),b=v?e(s):e;if(!v)for(let e in b)b[e]!==void 0&&s[e]===void 0&&(s[e]=b[e]);if(s.server??=!0,s.default??=Nn,s.getCachedData??=Pn,s.lazy??=!1,s.immediate??=!0,s.deep??=n.deep,s.dedupe??=`cancel`,s.enabled??=!0,v)for(let e in b)b[e]!==void 0&&(s[e]=b[e]);y._asyncData[h.value];function x(){let e={cause:`initial`,dedupe:s.dedupe},t=y._asyncData[h.value];return t?._init?y._asyncDataPromises[h.value]&&(e.cachedData=t._initialCachedData):(e.cachedData=s.getCachedData(h.value,y,{cause:`initial`}),y._asyncData[h.value]=Mn(y,h.value,o,s,e.cachedData),y._asyncData[h.value]._initialCachedData=e.cachedData),()=>y._asyncData[h.value].execute(e)}let S=x(),C=y._asyncData[h.value];C._deps++;let w=s.server!==!1&&y.payload.serverRendered,T=()=>!1;{let e=d(),t=!!e||T();if(w&&s.immediate&&G(),e&&!e._nuxtOnBeforeMountCbs){e._nuxtOnBeforeMountCbs=[];let t=e._nuxtOnBeforeMountCbs;te(()=>{t.forEach(e=>{e()}),t.splice(0,t.length)}),g(()=>t.splice(0,t.length))}let n=t&&(e?._nuxtClientOnly||u(Tn,!1)),r=h.value in y.payload.data;w&&y.isHydrating&&(C.error.value||C.data.value!==void 0&&(r||C._initialCachedData!==void 0))?C.status.value=C.error.value?`error`:`success`:t&&(!n&&y.payload.serverRendered&&y.isHydrating&&(!w||r)||s.lazy)&&s.immediate?e?e._nuxtOnBeforeMountCbs.push(S):te(()=>{S()}):s.immediate&&C.status.value!==`success`&&S();function i(e){let t=y._asyncData[e];t?._deps&&(t._deps--,t._deps===0&&t?._off())}let a=p(),_=()=>{},v=m?l(h,(e,t)=>{if((e||t)&&e!==t){f=!0;let n=y._asyncData[t]?.data.value!==void 0,r=y._asyncDataPromises[t]!==void 0,a={cause:`initial`,dedupe:s.dedupe};if(!y._asyncData[e]?._init){let r=s.getCachedData(e,y,{cause:`initial`});a.cachedData=r;let i=t&&n&&r===void 0?y._asyncData[t].data.value:r;y._asyncData[e]=Mn(y,e,o,s,i),y._asyncData[e]._initialCachedData=r}y._asyncData[e]._deps++,t&&i(t),s._keyTriggersExecute!==!1&&(s.immediate||n||r)&&y._asyncData[e].execute(a),re(()=>{f=!1})}},{flush:`sync`}):_,b=s.watch?l(s.watch,()=>{f||y._asyncData[h.value]?._execute({cause:`watch`,dedupe:s.dedupe})}):_,x=ne(s.enabled)||typeof s.enabled==`function`?l(()=>c(s.enabled),e=>{let t=y._asyncData[h.value];!e&&t&&y._asyncDataPromises[h.value]&&(t._abortController?.abort(new DOMException("AsyncData request cancelled by `enabled: false`",`AbortError`)),t._abortController=void 0,delete y._asyncDataPromises[h.value],t.status.value=`idle`)}):_;a&&ee(()=>{v(),b(),x(),i(h.value)})}let E={data:$(()=>y._asyncData[h.value]?.data,!s.deep),pending:$(()=>y._asyncData[h.value]?.pending),status:$(()=>y._asyncData[h.value]?.status),error:$(()=>y._asyncData[h.value]?.error),refresh:(...e)=>y._asyncData[h.value]?._init?y._asyncData[h.value].execute(...e):x()(),execute:(...e)=>E.refresh(...e),clear:()=>{let e=y._asyncData[h.value];if(e?._abortController)try{e._abortController.abort(new DOMException(`AsyncData aborted by user.`,`AbortError`))}finally{e._abortController=void 0}An(y,h.value)}},D=Promise.resolve(s.lazy?void 0:y._asyncDataPromises[h.value]).then(()=>E);return Object.assign(D,E),Object.defineProperties(D,{then:{enumerable:!0,value:D.then.bind(D)},catch:{enumerable:!0,value:D.catch.bind(D)},finally:{enumerable:!0,value:D.finally.bind(D)}}),D}return t}}var On=Dn();function $(e,t=!1){let n=_({get(){return e()?.value},set(t){let n=e();n&&(n.value=t)}});return t&&(n.__v_isShallow=!0),n}function kn(e,t){return!(typeof e==`string`||typeof e==`object`&&e||typeof e==`function`&&typeof t==`function`)}function An(e,t){delete e.payload.data[t],delete e.payload._errors[t],e._asyncData[t]&&(e._asyncData[t].data.value=f(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value=`idle`,e._asyncData[t]._initialCachedData=void 0),delete e._asyncDataPromises[t]}function jn(e,t){let n={};for(let r of t)n[r]=e[r];return n}function Mn(e,t,n,r,i){e.payload._errors[t]??=void 0;let a=r.getCachedData!==Pn,o=n,s=r.deep?C:T,l=i!==void 0,u=e.hook(`app:data:refresh`,async e=>{(!e||e.includes(t))&&await d.execute({cause:`refresh:hook`})}),d={data:s(l?i:r.default()),pending:_(()=>d.status.value===`pending`),error:w(e.payload._errors,t),status:T(`idle`),execute:(...n)=>{let[i,a=void 0]=n,s=i&&a===void 0&&typeof i==`object`?i:{};if(e._asyncDataPromises[t]&&(s.dedupe??r.dedupe)===`defer`)return e._asyncDataPromises[t];{let n=`cachedData`in s?s.cachedData:r.getCachedData(t,e,{cause:s.cause??`refresh:manual`});if(n!==void 0)return r.serialize!==!1&&(e.payload.data[t]=n),d.data.value=n,d.error.value=void 0,d.status.value=`success`,Promise.resolve(n)}if(c(r.enabled)===!1)return Promise.resolve(d.data.value);d._abortController&&d._abortController.abort(new DOMException(`AsyncData request cancelled by deduplication`,`AbortError`)),d._abortController=new AbortController,d.status.value=`pending`;let l=new AbortController,u=new Promise((t,n)=>{try{let i=s.timeout??r.timeout,a=Fn([d._abortController?.signal,s?.signal],l.signal,i);if(a.aborted){let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`));return}a.addEventListener(`abort`,()=>{let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`))},{once:!0,signal:l.signal});let c={signal:a},u=()=>Promise.resolve(o(e,c));if(r.middleware?.length)for(let e=r.middleware.length-1;e>=0;e--){let t=r.middleware[e],n=u;u=()=>Promise.resolve(t(n,c))}return u().then(t,n)}catch(e){n(e)}}).then(async n=>{if(e._asyncDataPromises[t]!==u)return;let i=n;r.transform&&(i=await r.transform(n)),r.pick&&(i=jn(i,r.pick)),r.serialize!==!1&&(e.payload.data[t]=i),d.data.value=i,d.error.value=void 0,d.status.value=`success`}).catch(n=>{if(e._asyncDataPromises[t]!==u||d._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<`u`&&n instanceof DOMException&&n.name===`AbortError`)return d.status.value=`idle`,e._asyncDataPromises[t];d.error.value=E(n),d.data.value=f(r.default()),d.status.value=`error`}).finally(()=>{l.abort(),e._asyncDataPromises[t]===u&&delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=u,e._asyncDataPromises[t]},_execute:Cn((...e)=>d.execute(...e)),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{u(),e._asyncData[t]===d&&(e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),e._asyncDataPromises[t]&&(d._abortController?.abort(new DOMException(`AsyncData request cancelled by unmount`,`AbortError`)),delete e._asyncDataPromises[t],d.status.value===`pending`&&(d.status.value=`idle`)),a||S(()=>{e._asyncData[t]?._init||(An(e,t),d.execute=()=>Promise.resolve())}))}};return d}var Nn=()=>void 0,Pn=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!==`refresh:manual`&&n.cause!==`refresh:hook`)return t.static.data[e]};function Fn(e,t,n){let r=e.filter(e=>!!e);if(typeof n==`number`&&n>=0){let e=AbortSignal.timeout?.(n);e&&r.push(e)}if(AbortSignal.any)return AbortSignal.any(r);let i=new AbortController;for(let e of r)if(e.aborted){let t=e.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(t)}catch{i.abort()}return i.signal}let a=()=>{let e=r.find(e=>e.aborted)?.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(e)}catch{i.abort()}};for(let e of r)e.addEventListener?.(`abort`,a,{once:!0,signal:t});return i.signal}var In=x({name:`NuxtIconSvg`,props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){let n=r(),i=O().icon,a=_n(()=>e.name),s=`i-`+a.value;if(a.value){G();{let e=n.payload.data[s];e?L(a.value,e):dn(L)}}return()=>o(Mt,{icon:a.value,ssr:!0,customise:vn(e.customize,i.customize)},t)}}),Ln=e({default:()=>Rn}),Rn=x({name:`NuxtIcon`,props:{name:{type:String,required:!0},mode:{type:String,required:!1,default:null},size:{type:[Number,String],required:!1,default:null},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){let n=r(),i=O().icon,a=_n(()=>e.name),s=_(()=>n.vueApp?.component(a.value)||((e.mode||i.mode)===`svg`?In:Sn)),c=_(()=>{let t=e.size||i.size;return t?{fontSize:Number.isNaN(+t)?t:t+`px`}:null});return()=>o(s.value,{...i.attrs,name:a.value,class:i.class,style:c.value,customize:e.customize},t)}});export{G as a,pt as c,En as i,Ln as n,Nt as o,On as r,Re as s,Rn as t};
@@ -1 +1 @@
1
- import{D as e,E as t,On as n,T as r,Zn as i,_ as a,b as o,bt as s,er as c,g as l,k as u,mt as d,o as f,qt as p,tr as m,y as h}from"./DZo3dYLJ.js";import{t as ee}from"./CJ2mz0WY.js";import{t as te}from"./DrZpfjBq.js";import{a as g,i as _,o as v,r as ne,s as y}from"#entry";var re={class:`kpis`},ie={class:`v`},ae={class:`v`},oe={class:`v`},se={class:`v`},ce={class:`v mono`},le={class:`card gantt`},ue={class:`ticks`},de={class:`track`},fe={class:`label`},pe={class:`lane`},me={class:`grid-lines`},he=[`title`],ge={class:`track-hd`},_e={class:`tag tag-neutral mono`},ve={class:`dim`},ye={class:`grow-row`},b={class:`label`},x={class:`tag tag-ghost`},S={class:`lane`},C={class:`grid-lines`},w={class:`label`},T=[`title`],E=[`title`],D={class:`pts mono dim`},O={class:`lane`},k={class:`grid-lines`},A={class:`track last`},j={class:`label`},M={class:`dim pts mono`},N={class:`tag tag-neutral`},P={class:`lane`},be={class:`grid-lines`},xe={class:`extra`},Se={key:0,class:`card`},Ce={class:`card-hd`},we={class:`h2`},Te={class:`tag tag-neutral`},Ee={class:`card-bd`},De={class:`list`},Oe={class:`dep-txt`},ke={class:`dep-txt dim`},F={key:1,class:`card`},Ae={class:`card-hd`},je={class:`h2`},Me={class:`tag tag-error`},Ne={class:`card-bd`},Pe={class:`list`},Fe={class:`dep-txt`},Ie={class:`dim`},I=_(u({__name:`gantt`,setup(u){let{sprints:_,stories:I,milestones:L,storyById:R,actualRange:z,progress:B,addDays:Le,diffDays:V,md:H,now:U,MS_COLOR:Re,MS_LABEL:ze,KIND_LABEL:Be,KIND_ICON:Ve,STATE_LABEL:He,STATE_DOT:W,dependencyPairs:G,blockedStories:K}=y(),Ue=l(()=>_.value.map(e=>({id:e.id,name:e.name,start:e.start,end:e.end,rows:(e.stories??[]).map(e=>R.value.get(e)).filter(Boolean).map(e=>({...e,actual:z(e),prog:B(e)}))}))),q=l(()=>I.value.filter(e=>e.schedule)),We=l(()=>I.value.filter(e=>!e.schedule)),J=l(()=>[..._.value.map(e=>e.start),...q.value.map(e=>e.schedule.start),...L.value.map(e=>e.due)].sort()[0]??U),Ge=l(()=>{let e=[..._.value.map(e=>e.end),...q.value.map(e=>e.schedule.end),...L.value.map(e=>e.due)].sort();return e[e.length-1]??U}),Y=l(()=>Math.max(1,V(J.value,Ge.value)+1)),X=e=>V(J.value,e)/Y.value*100,Z=(e,t)=>({left:`${X(e)}%`,width:`${Math.max(1.1,(V(e,t)+1)/Y.value*100)}%`}),Q=l(()=>{let e=Y.value>90?14:Y.value>45?7:4,t=[];for(let n=0;n<=Y.value;n+=e)t.push({date:Le(J.value,n),x:n/Y.value*100});return t}),$=l(()=>X(U));return(l,u)=>{let y=ne,z=te,B=ee;return d(),o(`div`,null,[a(`div`,re,[a(`div`,{class:i([`kpi`,(`cardToneClass`in l?l.cardToneClass:n(v))(0)])},[e(y,{tone:(`cardTone`in l?l.cardTone:n(g))(0),size:`sm`},null,8,[`tone`]),u[1]||=a(`p`,{class:`k`},`迭代窗口`,-1),a(`p`,ie,[t(m(n(_).length),1),u[0]||=a(`small`,null,`个`,-1)])],2),a(`div`,{class:i([`kpi`,(`cardToneClass`in l?l.cardToneClass:n(v))(1)])},[e(y,{tone:(`cardTone`in l?l.cardTone:n(g))(1),size:`sm`},null,8,[`tone`]),u[3]||=a(`p`,{class:`k`},`里程碑`,-1),a(`p`,ae,[t(m(n(L).length),1),u[2]||=a(`small`,null,`个`,-1)])],2),a(`div`,{class:i([`kpi`,(`cardToneClass`in l?l.cardToneClass:n(v))(2)])},[e(y,{tone:(`cardTone`in l?l.cardTone:n(g))(2),size:`sm`},null,8,[`tone`]),u[4]||=a(`p`,{class:`k`},`已排期故事`,-1),a(`p`,oe,[t(m(n(q).length),1),a(`small`,null,`/ `+m(n(I).length),1)])],2),a(`div`,{class:i([`kpi`,(`cardToneClass`in l?l.cardToneClass:n(v))(3)])},[e(y,{tone:(`cardTone`in l?l.cardTone:n(g))(3),size:`sm`},null,8,[`tone`]),u[6]||=a(`p`,{class:`k`},`时间跨度`,-1),a(`p`,se,[t(m(n(Y)),1),u[5]||=a(`small`,null,`天`,-1)])],2),a(`div`,{class:i([`kpi`,(`cardToneClass`in l?l.cardToneClass:n(v))(4)])},[e(y,{tone:(`cardTone`in l?l.cardTone:n(g))(4),size:`sm`},null,8,[`tone`]),u[7]||=a(`p`,{class:`k`},`今天`,-1),a(`p`,ce,m(n(U)),1)],2)]),a(`div`,le,[u[11]||=r(`<div class="gantt-hd" data-v-719eb5d7><h2 class="h2" data-v-719eb5d7>时间轴</h2><div class="legend" data-v-719eb5d7><span class="lg" data-v-719eb5d7><i class="sw plan" data-v-719eb5d7></i>计划</span><span class="lg" data-v-719eb5d7><i class="sw real" data-v-719eb5d7></i>实际</span><span class="lg" data-v-719eb5d7><i class="sw ms" data-v-719eb5d7></i>里程碑</span><span class="lg" data-v-719eb5d7><i class="sw mvp" data-v-719eb5d7></i>MVP 节点</span><span class="lg" data-v-719eb5d7><i class="sw today" data-v-719eb5d7></i>今天</span></div></div>`,1),a(`div`,ue,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`div`,{key:e.date,class:`tick`,style:c({left:e.x+`%`})},[a(`span`,null,m(n(H)(e.date)),1)],4))),128)),a(`div`,{class:`today-line`,style:c({left:n($)+`%`})},null,4),a(`div`,{class:`today-flag`,style:c({left:n($)+`%`})},`今天 `+m(n(H)(n(U))),5)]),a(`section`,de,[u[8]||=a(`header`,{class:`track-hd`},`里程碑`,-1),(d(!0),o(f,null,s(n(L),r=>(d(),o(`div`,{key:r.id,class:`grow-row`},[a(`div`,fe,[a(`span`,{class:i([`tag`,r.kind===`mvp`?`tag-mint`:`tag-primary`])},[e(z,{name:n(Ve)[r.kind],class:`size-3`},null,8,[`name`]),t(m(n(Be)[r.kind]),1)],2),e(B,{to:`/milestones`,class:`lbl-txt`},{default:p(()=>[t(m(r.title),1)]),_:2},1024),a(`span`,{class:i([`tag`,`tag-${n(Re)[r.status]}`])},m(n(ze)[r.status]),3)]),a(`div`,pe,[a(`div`,me,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))]),a(`span`,{class:i([`diamond`,{mvp:r.kind===`mvp`}]),style:c({left:X(r.due)+`%`}),title:`${r.id} · ${r.due} · ${r.criteria}`},null,14,he)])]))),128))]),(d(!0),o(f,null,s(n(Ue),r=>(d(),o(`section`,{key:r.id,class:`track`},[a(`header`,ge,[a(`span`,_e,m(r.id),1),t(` `+m(r.name)+` `,1),a(`span`,ve,m(n(H)(r.start))+` ~ `+m(n(H)(r.end)),1)]),a(`div`,ye,[a(`div`,b,[a(`span`,x,[e(z,{name:`i-lucide-calendar-range`,class:`size-3`}),u[9]||=t(`迭代窗口`,-1)])]),a(`div`,S,[a(`div`,C,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))]),a(`div`,{class:`band`,style:c(Z(r.start,r.end))},null,4)])]),(d(!0),o(f,null,s(r.rows,r=>(d(),o(`div`,{key:r.id,class:`grow-row`},[a(`div`,w,[a(`i`,{class:`sdot`,style:c({background:n(W)[r.status]})},null,4),e(B,{to:`/story/${r.id}`,class:`lbl-txt`},{default:p(()=>[t(m(r.title),1)]),_:2},1032,[`to`]),r.dependsOn?.length?(d(),o(`span`,{key:0,class:`tag tag-secondary`,title:`依赖:${r.dependsOn.join(`、`)}`},m(r.dependsOn.length),9,T)):h(``,!0),r.blocked?(d(),o(`span`,{key:1,class:`tag tag-error`,title:`阻塞:${r.blocked.reason}(自 ${r.blocked.since})`},`!`,8,E)):h(``,!0),a(`span`,D,m(r.points)+` 点 · `+m(r.prog.done)+`/`+m(r.prog.total),1)]),a(`div`,O,[a(`div`,k,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))]),r.schedule?(d(),o(`div`,{key:0,class:`g-plan`,style:c(Z(r.schedule.start,r.schedule.end))},null,4)):h(``,!0),r.actual?(d(),o(`div`,{key:1,class:`g-real`,style:c(Z(r.actual.start,r.actual.end))},null,4)):h(``,!0)])]))),128))]))),128)),a(`section`,A,[u[10]||=a(`header`,{class:`track-hd`},`未排期(backlog)`,-1),(d(!0),o(f,null,s(n(We),r=>(d(),o(`div`,{key:r.id,class:`grow-row`},[a(`div`,j,[a(`i`,{class:`sdot`,style:c({background:n(W)[r.status]})},null,4),e(B,{to:`/story/${r.id}`,class:`lbl-txt`},{default:p(()=>[t(m(r.title),1)]),_:2},1032,[`to`]),a(`span`,M,m(r.points)+` 点`,1),a(`span`,N,m(n(He)[r.status]),1)]),a(`div`,P,[a(`div`,be,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))])])]))),128))])]),a(`div`,xe,[n(G).length?(d(),o(`div`,Se,[a(`div`,Ce,[a(`h2`,we,[e(z,{name:`i-lucide-git-branch`,class:`size-3.5`}),u[12]||=t(`依赖链`,-1)]),a(`span`,Te,m(n(G).length),1)]),a(`div`,Ee,[a(`ul`,De,[(d(!0),o(f,null,s(n(G),r=>(d(),o(`li`,{key:`${r.from}-${r.to}`},[e(B,{to:`/story/${r.to}`,class:`mono link`},{default:p(()=>[t(m(r.to),1)]),_:2},1032,[`to`]),a(`span`,Oe,m(n(R).get(r.to)?.title),1),e(z,{name:`i-lucide-arrow-left`,class:`size-3 dim`}),u[13]||=a(`span`,{class:`dim`},`依赖`,-1),e(B,{to:`/story/${r.from}`,class:`mono link`},{default:p(()=>[t(m(r.from),1)]),_:2},1032,[`to`]),a(`span`,ke,m(n(R).get(r.from)?.title),1)]))),128))])])])):h(``,!0),n(K).length?(d(),o(`div`,F,[a(`div`,Ae,[a(`h2`,je,[e(z,{name:`i-lucide-octagon-alert`,class:`size-3.5`}),u[14]||=t(`阻塞中`,-1)]),a(`span`,Me,m(n(K).length),1)]),a(`div`,Ne,[a(`ul`,Pe,[(d(!0),o(f,null,s(n(K),n=>(d(),o(`li`,{key:n.id},[u[15]||=a(`span`,{class:`tag tag-error tag-dot`},`阻塞`,-1),e(B,{to:`/story/${n.id}`,class:`mono link`},{default:p(()=>[t(m(n.id),1)]),_:2},1032,[`to`]),a(`span`,Fe,m(n.title),1),a(`span`,Ie,`· `+m(n.blocked.reason)+`(自 `+m(n.blocked.since)+`)`,1)]))),128))])])])):h(``,!0)])])}}}),[[`__scopeId`,`data-v-719eb5d7`]]);export{I as default};
1
+ import{D as e,E as t,On as n,T as r,Zn as i,_ as a,b as o,bt as s,er as c,g as l,k as u,mt as d,o as f,qt as p,tr as m,y as h}from"./DZo3dYLJ.js";import{t as ee}from"./CJ2mz0WY.js";import{t as te}from"./rlePnzpc.js";import{a as g,i as _,o as v,r as ne,s as y}from"#entry";var re={class:`kpis`},ie={class:`v`},ae={class:`v`},oe={class:`v`},se={class:`v`},ce={class:`v mono`},le={class:`card gantt`},ue={class:`ticks`},de={class:`track`},fe={class:`label`},pe={class:`lane`},me={class:`grid-lines`},he=[`title`],ge={class:`track-hd`},_e={class:`tag tag-neutral mono`},ve={class:`dim`},ye={class:`grow-row`},b={class:`label`},x={class:`tag tag-ghost`},S={class:`lane`},C={class:`grid-lines`},w={class:`label`},T=[`title`],E=[`title`],D={class:`pts mono dim`},O={class:`lane`},k={class:`grid-lines`},A={class:`track last`},j={class:`label`},M={class:`dim pts mono`},N={class:`tag tag-neutral`},P={class:`lane`},be={class:`grid-lines`},xe={class:`extra`},Se={key:0,class:`card`},Ce={class:`card-hd`},we={class:`h2`},Te={class:`tag tag-neutral`},Ee={class:`card-bd`},De={class:`list`},Oe={class:`dep-txt`},ke={class:`dep-txt dim`},F={key:1,class:`card`},Ae={class:`card-hd`},je={class:`h2`},Me={class:`tag tag-error`},Ne={class:`card-bd`},Pe={class:`list`},Fe={class:`dep-txt`},Ie={class:`dim`},I=_(u({__name:`gantt`,setup(u){let{sprints:_,stories:I,milestones:L,storyById:R,actualRange:z,progress:B,addDays:Le,diffDays:V,md:H,now:U,MS_COLOR:Re,MS_LABEL:ze,KIND_LABEL:Be,KIND_ICON:Ve,STATE_LABEL:He,STATE_DOT:W,dependencyPairs:G,blockedStories:K}=y(),Ue=l(()=>_.value.map(e=>({id:e.id,name:e.name,start:e.start,end:e.end,rows:(e.stories??[]).map(e=>R.value.get(e)).filter(Boolean).map(e=>({...e,actual:z(e),prog:B(e)}))}))),q=l(()=>I.value.filter(e=>e.schedule)),We=l(()=>I.value.filter(e=>!e.schedule)),J=l(()=>[..._.value.map(e=>e.start),...q.value.map(e=>e.schedule.start),...L.value.map(e=>e.due)].sort()[0]??U),Ge=l(()=>{let e=[..._.value.map(e=>e.end),...q.value.map(e=>e.schedule.end),...L.value.map(e=>e.due)].sort();return e[e.length-1]??U}),Y=l(()=>Math.max(1,V(J.value,Ge.value)+1)),X=e=>V(J.value,e)/Y.value*100,Z=(e,t)=>({left:`${X(e)}%`,width:`${Math.max(1.1,(V(e,t)+1)/Y.value*100)}%`}),Q=l(()=>{let e=Y.value>90?14:Y.value>45?7:4,t=[];for(let n=0;n<=Y.value;n+=e)t.push({date:Le(J.value,n),x:n/Y.value*100});return t}),$=l(()=>X(U));return(l,u)=>{let y=ne,z=te,B=ee;return d(),o(`div`,null,[a(`div`,re,[a(`div`,{class:i([`kpi`,(`cardToneClass`in l?l.cardToneClass:n(v))(0)])},[e(y,{tone:(`cardTone`in l?l.cardTone:n(g))(0),size:`sm`},null,8,[`tone`]),u[1]||=a(`p`,{class:`k`},`迭代窗口`,-1),a(`p`,ie,[t(m(n(_).length),1),u[0]||=a(`small`,null,`个`,-1)])],2),a(`div`,{class:i([`kpi`,(`cardToneClass`in l?l.cardToneClass:n(v))(1)])},[e(y,{tone:(`cardTone`in l?l.cardTone:n(g))(1),size:`sm`},null,8,[`tone`]),u[3]||=a(`p`,{class:`k`},`里程碑`,-1),a(`p`,ae,[t(m(n(L).length),1),u[2]||=a(`small`,null,`个`,-1)])],2),a(`div`,{class:i([`kpi`,(`cardToneClass`in l?l.cardToneClass:n(v))(2)])},[e(y,{tone:(`cardTone`in l?l.cardTone:n(g))(2),size:`sm`},null,8,[`tone`]),u[4]||=a(`p`,{class:`k`},`已排期故事`,-1),a(`p`,oe,[t(m(n(q).length),1),a(`small`,null,`/ `+m(n(I).length),1)])],2),a(`div`,{class:i([`kpi`,(`cardToneClass`in l?l.cardToneClass:n(v))(3)])},[e(y,{tone:(`cardTone`in l?l.cardTone:n(g))(3),size:`sm`},null,8,[`tone`]),u[6]||=a(`p`,{class:`k`},`时间跨度`,-1),a(`p`,se,[t(m(n(Y)),1),u[5]||=a(`small`,null,`天`,-1)])],2),a(`div`,{class:i([`kpi`,(`cardToneClass`in l?l.cardToneClass:n(v))(4)])},[e(y,{tone:(`cardTone`in l?l.cardTone:n(g))(4),size:`sm`},null,8,[`tone`]),u[7]||=a(`p`,{class:`k`},`今天`,-1),a(`p`,ce,m(n(U)),1)],2)]),a(`div`,le,[u[11]||=r(`<div class="gantt-hd" data-v-719eb5d7><h2 class="h2" data-v-719eb5d7>时间轴</h2><div class="legend" data-v-719eb5d7><span class="lg" data-v-719eb5d7><i class="sw plan" data-v-719eb5d7></i>计划</span><span class="lg" data-v-719eb5d7><i class="sw real" data-v-719eb5d7></i>实际</span><span class="lg" data-v-719eb5d7><i class="sw ms" data-v-719eb5d7></i>里程碑</span><span class="lg" data-v-719eb5d7><i class="sw mvp" data-v-719eb5d7></i>MVP 节点</span><span class="lg" data-v-719eb5d7><i class="sw today" data-v-719eb5d7></i>今天</span></div></div>`,1),a(`div`,ue,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`div`,{key:e.date,class:`tick`,style:c({left:e.x+`%`})},[a(`span`,null,m(n(H)(e.date)),1)],4))),128)),a(`div`,{class:`today-line`,style:c({left:n($)+`%`})},null,4),a(`div`,{class:`today-flag`,style:c({left:n($)+`%`})},`今天 `+m(n(H)(n(U))),5)]),a(`section`,de,[u[8]||=a(`header`,{class:`track-hd`},`里程碑`,-1),(d(!0),o(f,null,s(n(L),r=>(d(),o(`div`,{key:r.id,class:`grow-row`},[a(`div`,fe,[a(`span`,{class:i([`tag`,r.kind===`mvp`?`tag-mint`:`tag-primary`])},[e(z,{name:n(Ve)[r.kind],class:`size-3`},null,8,[`name`]),t(m(n(Be)[r.kind]),1)],2),e(B,{to:`/milestones`,class:`lbl-txt`},{default:p(()=>[t(m(r.title),1)]),_:2},1024),a(`span`,{class:i([`tag`,`tag-${n(Re)[r.status]}`])},m(n(ze)[r.status]),3)]),a(`div`,pe,[a(`div`,me,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))]),a(`span`,{class:i([`diamond`,{mvp:r.kind===`mvp`}]),style:c({left:X(r.due)+`%`}),title:`${r.id} · ${r.due} · ${r.criteria}`},null,14,he)])]))),128))]),(d(!0),o(f,null,s(n(Ue),r=>(d(),o(`section`,{key:r.id,class:`track`},[a(`header`,ge,[a(`span`,_e,m(r.id),1),t(` `+m(r.name)+` `,1),a(`span`,ve,m(n(H)(r.start))+` ~ `+m(n(H)(r.end)),1)]),a(`div`,ye,[a(`div`,b,[a(`span`,x,[e(z,{name:`i-lucide-calendar-range`,class:`size-3`}),u[9]||=t(`迭代窗口`,-1)])]),a(`div`,S,[a(`div`,C,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))]),a(`div`,{class:`band`,style:c(Z(r.start,r.end))},null,4)])]),(d(!0),o(f,null,s(r.rows,r=>(d(),o(`div`,{key:r.id,class:`grow-row`},[a(`div`,w,[a(`i`,{class:`sdot`,style:c({background:n(W)[r.status]})},null,4),e(B,{to:`/story/${r.id}`,class:`lbl-txt`},{default:p(()=>[t(m(r.title),1)]),_:2},1032,[`to`]),r.dependsOn?.length?(d(),o(`span`,{key:0,class:`tag tag-secondary`,title:`依赖:${r.dependsOn.join(`、`)}`},m(r.dependsOn.length),9,T)):h(``,!0),r.blocked?(d(),o(`span`,{key:1,class:`tag tag-error`,title:`阻塞:${r.blocked.reason}(自 ${r.blocked.since})`},`!`,8,E)):h(``,!0),a(`span`,D,m(r.points)+` 点 · `+m(r.prog.done)+`/`+m(r.prog.total),1)]),a(`div`,O,[a(`div`,k,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))]),r.schedule?(d(),o(`div`,{key:0,class:`g-plan`,style:c(Z(r.schedule.start,r.schedule.end))},null,4)):h(``,!0),r.actual?(d(),o(`div`,{key:1,class:`g-real`,style:c(Z(r.actual.start,r.actual.end))},null,4)):h(``,!0)])]))),128))]))),128)),a(`section`,A,[u[10]||=a(`header`,{class:`track-hd`},`未排期(backlog)`,-1),(d(!0),o(f,null,s(n(We),r=>(d(),o(`div`,{key:r.id,class:`grow-row`},[a(`div`,j,[a(`i`,{class:`sdot`,style:c({background:n(W)[r.status]})},null,4),e(B,{to:`/story/${r.id}`,class:`lbl-txt`},{default:p(()=>[t(m(r.title),1)]),_:2},1032,[`to`]),a(`span`,M,m(r.points)+` 点`,1),a(`span`,N,m(n(He)[r.status]),1)]),a(`div`,P,[a(`div`,be,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))])])]))),128))])]),a(`div`,xe,[n(G).length?(d(),o(`div`,Se,[a(`div`,Ce,[a(`h2`,we,[e(z,{name:`i-lucide-git-branch`,class:`size-3.5`}),u[12]||=t(`依赖链`,-1)]),a(`span`,Te,m(n(G).length),1)]),a(`div`,Ee,[a(`ul`,De,[(d(!0),o(f,null,s(n(G),r=>(d(),o(`li`,{key:`${r.from}-${r.to}`},[e(B,{to:`/story/${r.to}`,class:`mono link`},{default:p(()=>[t(m(r.to),1)]),_:2},1032,[`to`]),a(`span`,Oe,m(n(R).get(r.to)?.title),1),e(z,{name:`i-lucide-arrow-left`,class:`size-3 dim`}),u[13]||=a(`span`,{class:`dim`},`依赖`,-1),e(B,{to:`/story/${r.from}`,class:`mono link`},{default:p(()=>[t(m(r.from),1)]),_:2},1032,[`to`]),a(`span`,ke,m(n(R).get(r.from)?.title),1)]))),128))])])])):h(``,!0),n(K).length?(d(),o(`div`,F,[a(`div`,Ae,[a(`h2`,je,[e(z,{name:`i-lucide-octagon-alert`,class:`size-3.5`}),u[14]||=t(`阻塞中`,-1)]),a(`span`,Me,m(n(K).length),1)]),a(`div`,Ne,[a(`ul`,Pe,[(d(!0),o(f,null,s(n(K),n=>(d(),o(`li`,{key:n.id},[u[15]||=a(`span`,{class:`tag tag-error tag-dot`},`阻塞`,-1),e(B,{to:`/story/${n.id}`,class:`mono link`},{default:p(()=>[t(m(n.id),1)]),_:2},1032,[`to`]),a(`span`,Fe,m(n.title),1),a(`span`,Ie,`· `+m(n.blocked.reason)+`(自 `+m(n.blocked.since)+`)`,1)]))),128))])])])):h(``,!0)])])}}}),[[`__scopeId`,`data-v-719eb5d7`]]);export{I as default};
@@ -1 +1 @@
1
- import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,g as c,k as l,mt as u,o as d,qt as f,tr as p,v as m,y as h}from"./DZo3dYLJ.js";import{t as ee}from"./CJ2mz0WY.js";import{t as te}from"./DrZpfjBq.js";import{i as g,s as _,t as ne}from"#entry";var re={class:`card hero`},ie={class:`chips`},ae={class:`tag tag-ghost`},oe=[`title`],se=[`title`],ce={class:`tag tag-neutral`},le={key:3,class:`tag tag-primary mono`},ue=[`title`],de={class:`story-title`},fe={class:`narrative`},pe={class:`facts`},me={class:`fact`},he={class:`fact`},v={class:`fact`},y={class:`fact`},b={class:`fact`},x={class:`mono`},S={class:`fact`},C={class:`mono`},w={class:`dim`},T={class:`fact`},E={class:`mono`},D={key:0,class:`fact`},O={class:`hero-foot`},k={class:`dim`},A={class:`bar`},j={class:`cols`},M={key:0,class:`card block`},N={class:`card-hd`},P={class:`h2`},F={class:`card-bd bug`},I={class:`steps`},L={key:1,class:`card block`},R={class:`card-hd`},ge={class:`h2`},_e={class:`card-bd`},ve={key:0,class:`callout`},ye={key:1,class:`dep-row`},be={key:2,class:`dep-row`},xe={class:`card block`},Se={class:`card-hd`},Ce={class:`h2`},we={class:`tag tag-neutral`},Te={class:`card-bd`},Ee={key:0,class:`ac`},De={class:`ac-row`},Oe={class:`ac-row`},ke={class:`ac-row`},Ae={key:0,class:`ac-row verify`},je={key:1,class:`dim`},Me={class:`card-hd task-hd`},Ne={class:`tag tag-ghost`},Pe={class:`tag tag-neutral`},Fe={class:`task-title`},Ie={class:`dim entries-ct`},Le={key:0,class:`files mono dim`},Re={class:`card-bd`},ze={key:0,class:`entries`},Be={class:`entry-hd`},Ve={class:`date mono dim`},He={class:`tag tag-neutral mono result`},Ue={class:`note`},We={key:0,class:`cmd mono`},Ge={key:1,class:`efiles dim mono`},Ke={key:1,class:`dim`},qe={class:`pager`},Je={class:`pg-k`},Ye={class:`pg-t`},Xe={key:1,class:`pg-empty`},Ze={class:`pg-k`},Qe={class:`pg-t`},$e={key:1,class:`callout warn`},z=g(l({__name:`[id]`,setup(l){let g=ne(),{storyById:z,stories:B,epicById:et,sprintById:tt,journalByTask:nt,actualRange:V,progress:H,milestoneOfStory:rt,STATE_LABEL:it,STATE_COLOR:at,TASK_LABEL:ot,TASK_COLOR:st,KIND_LABEL:ct,MS_LABEL:lt,md:U,diffDays:ut,wsjf:W,dependentsOf:G,TYPE_LABEL:dt,TYPE_COLOR:ft,TYPE_ICON:pt,PRIORITY_COLOR:mt,SEVERITY_LABEL:K,SEVERITY_COLOR:q,SCOPE_LABEL:J}=_(),Y=c(()=>z.value.get(String(g.value?.params?.id))),X=c(()=>B.value.findIndex(e=>e.id===Y.value?.id)),Z=c(()=>X.value>0?B.value[X.value-1]:null),Q=c(()=>X.value>=0&&X.value<B.value.length-1?B.value[X.value+1]:null),$=e=>nt.value.get(e)?.entries??[],ht={red:`RED 失败测试`,green:`GREEN 让测试通过`,refactor:`REFACTOR 重构`},gt={red:`tag-error`,green:`tag-success`,refactor:`tag-primary`};return(c,l)=>{let g=te,_=ee;return u(),a(`div`,null,[n(Y)?(u(),a(d,{key:0},[e(_,{to:`/`,class:`btn btn-quiet btn-sm back`},{default:f(()=>[e(g,{name:`i-lucide-arrow-left`,class:`size-3.5`}),l[0]||=t(`返回看板 `,-1)]),_:1}),i(`article`,re,[i(`div`,ie,[i(`span`,ae,p(n(Y).id),1),i(`span`,{class:r([`tag`,`tag-${n(at)[n(Y).status]}`])},p(n(it)[n(Y).status]??n(Y).status),3),i(`span`,{class:r([`tag`,`tag-${n(ft)[n(Y).type]}`])},[e(g,{name:n(pt)[n(Y).type],class:`size-3`},null,8,[`name`]),t(p(n(dt)[n(Y).type]),1)],2),i(`span`,{class:r([`tag`,`tag-${n(mt)[n(Y).priority]}`])},p(n(Y).priority),3),n(Y).bug?(u(),a(`span`,{key:0,class:r([`tag`,`tag-${n(q)[n(Y).bug.severity]}`])},[e(g,{name:`i-lucide-bug`,class:`size-3`}),t(p(n(K)[n(Y).bug.severity]),1)],2)):h(``,!0),n(Y).blocked?(u(),a(`span`,{key:1,class:`tag tag-error tag-dot`,title:n(Y).blocked.reason},`阻塞`,8,oe)):h(``,!0),n(Y).scopeChange?(u(),a(`span`,{key:2,class:`tag tag-info`,title:`${n(J)[n(Y).scopeChange.kind]}(${n(Y).scopeChange.at}):${n(Y).scopeChange.reason}`},p(n(J)[n(Y).scopeChange.kind])+` · `+p(n(Y).scopeChange.at),9,se)):h(``,!0),i(`span`,ce,[e(g,{name:`i-lucide-layers`,class:`size-3`}),t(p(n(Y).epicId)+` `+p(n(et).get(n(Y).epicId)?.title),1)]),n(Y).sprintId?(u(),a(`span`,le,[e(g,{name:`i-lucide-calendar-range`,class:`size-3`}),t(p(n(Y).sprintId),1)])):h(``,!0),(u(!0),a(d,null,o(n(rt)(n(Y).id),e=>(u(),a(`span`,{key:e.id,class:r([`tag`,e.kind===`mvp`?`tag-mint`:`tag-neutral`]),title:`${e.id} · ${e.criteria}`},p(n(ct)[e.kind])+` `+p(e.id)+` · `+p(n(lt)[e.status]),11,ue))),128))]),i(`h1`,de,p(n(Y).title),1),i(`p`,fe,p(n(Y).narrative),1),i(`div`,pe,[i(`div`,me,[l[1]||=i(`span`,{class:`k`},`点数`,-1),i(`b`,null,p(n(Y).points),1)]),i(`div`,he,[l[2]||=i(`span`,{class:`k`},`价值`,-1),i(`b`,null,p(n(Y).value),1)]),i(`div`,v,[l[3]||=i(`span`,{class:`k`},`WSJF`,-1),i(`b`,null,p(n(W)(n(Y))),1)]),i(`div`,y,[l[4]||=i(`span`,{class:`k`},`任务`,-1),i(`b`,null,p(n(H)(n(Y)).done)+`/`+p(n(H)(n(Y)).total),1)]),i(`div`,b,[l[5]||=i(`span`,{class:`k`},`计划`,-1),i(`b`,x,p(n(Y).schedule?`${n(U)(n(Y).schedule.start)} ~ ${n(U)(n(Y).schedule.end)}`:`未排期`),1)]),i(`div`,S,[l[6]||=i(`span`,{class:`k`},`实际`,-1),i(`b`,C,[n(V)(n(Y))?(u(),a(d,{key:0},[t(p(n(U)(n(V)(n(Y)).start))+` ~ `+p(n(U)(n(V)(n(Y)).end))+` `,1),i(`small`,w,`(`+p(n(ut)(n(V)(n(Y)).start,n(V)(n(Y)).end)+1)+` 天)`,1)],64)):(u(),a(d,{key:1},[t(`—`)],64))])]),i(`div`,T,[l[7]||=i(`span`,{class:`k`},`创建`,-1),i(`b`,E,p(n(Y).created),1)]),n(Y).sprintId?(u(),a(`div`,D,[l[8]||=i(`span`,{class:`k`},`所属迭代`,-1),i(`b`,null,p(n(tt).get(n(Y).sprintId)?.name),1)])):h(``,!0)]),i(`div`,O,[i(`span`,k,`任务完成度 `+p(n(H)(n(Y)).pct)+`%`,1),i(`div`,A,[i(`i`,{style:s({width:n(H)(n(Y)).pct+`%`})},null,4)])])]),i(`div`,j,[n(Y).bug?(u(),a(`article`,M,[i(`div`,N,[i(`h2`,P,[e(g,{name:`i-lucide-bug`,class:`size-3.5`}),l[9]||=t(`缺陷详情`,-1)]),i(`span`,{class:r([`tag`,`tag-${n(q)[n(Y).bug.severity]}`])},p(n(K)[n(Y).bug.severity]),3)]),i(`div`,F,[i(`div`,null,[l[10]||=i(`span`,{class:`lbl`},`影响环境`,-1),i(`p`,null,p(n(Y).bug.environment),1)]),i(`div`,null,[l[11]||=i(`span`,{class:`lbl`},`复现步骤`,-1),i(`p`,I,p(n(Y).bug.steps),1)])])])):h(``,!0),n(Y).blocked||n(Y).dependsOn?.length||n(G)(n(Y).id).length?(u(),a(`article`,L,[i(`div`,R,[i(`h2`,ge,[e(g,{name:`i-lucide-git-branch`,class:`size-3.5`}),l[12]||=t(`依赖与阻塞`,-1)])]),i(`div`,_e,[n(Y).blocked?(u(),a(`div`,ve,[e(g,{name:`i-lucide-octagon-alert`,class:`size-4`}),i(`div`,null,[l[13]||=i(`b`,null,`当前被阻塞`,-1),i(`p`,null,p(n(Y).blocked.reason)+`(自 `+p(n(Y).blocked.since)+` 起)`,1)])])):h(``,!0),n(Y).dependsOn?.length?(u(),a(`div`,ye,[l[14]||=i(`span`,{class:`lbl`},`依赖`,-1),(u(!0),a(d,null,o(n(Y).dependsOn,r=>(u(),m(_,{key:r,to:`/story/${r}`,class:`dep`},{default:f(()=>[e(g,{name:`i-lucide-arrow-left`,class:`size-3`}),t(p(r)+` `+p(n(z).get(r)?.title??``),1)]),_:2},1032,[`to`]))),128))])):h(``,!0),n(G)(n(Y).id).length?(u(),a(`div`,be,[l[15]||=i(`span`,{class:`lbl`},`被依赖`,-1),(u(!0),a(d,null,o(n(G)(n(Y).id),n=>(u(),m(_,{key:n.id,to:`/story/${n.id}`,class:`dep ghost`},{default:f(()=>[t(p(n.id)+` `+p(n.title),1),e(g,{name:`i-lucide-arrow-right`,class:`size-3`})]),_:2},1032,[`to`]))),128))])):h(``,!0)])])):h(``,!0)]),i(`article`,xe,[i(`div`,Se,[i(`h2`,Ce,[e(g,{name:`i-lucide-list-checks`,class:`size-3.5`}),l[16]||=t(`验收标准`,-1)]),i(`span`,we,p(n(Y).acceptance?.length??0)+` 条`,1)]),i(`div`,Te,[n(Y).acceptance?.length?(u(),a(`ol`,Ee,[(u(!0),a(d,null,o(n(Y).acceptance,(e,t)=>(u(),a(`li`,{key:t},[i(`div`,De,[l[17]||=i(`span`,{class:`tag tag-neutral gw`},`Given`,-1),i(`span`,null,p(e.given),1)]),i(`div`,Oe,[l[18]||=i(`span`,{class:`tag tag-info gw`},`When`,-1),i(`span`,null,p(e.when),1)]),i(`div`,ke,[l[19]||=i(`span`,{class:`tag tag-success gw`},`Then`,-1),i(`span`,null,p(e.then),1)]),e.verifyBy?.length?(u(),a(`div`,Ae,[l[20]||=i(`span`,{class:`dim`},`由谁验证`,-1),(u(!0),a(d,null,o(e.verifyBy,e=>(u(),a(`span`,{key:e,class:`tag tag-ghost`},p(e),1))),128))])):h(``,!0)]))),128))])):(u(),a(`p`,je,`还没有验收标准(草稿阶段允许为空,进迭代前必须补)。`))])]),(u(!0),a(d,null,o(n(Y).tasks,s=>(u(),a(`article`,{key:s.id,class:`card block`},[i(`div`,Me,[i(`span`,Ne,p(s.id),1),i(`span`,Pe,p(s.type),1),i(`span`,{class:r([`tag`,`tag-${n(st)[s.status]}`])},p(n(ot)[s.status]),3),i(`b`,Fe,p(s.title),1),i(`span`,Ie,p($(s.id).length)+` 条记录`,1)]),s.files?.length?(u(),a(`p`,Le,p(s.files.join(` · `)),1)):h(``,!0),i(`div`,Re,[$(s.id).length?(u(),a(`div`,ze,[(u(!0),a(d,null,o($(s.id),(o,s)=>(u(),a(`div`,{key:s,class:r([`entry`,o.phase])},[i(`div`,Be,[i(`span`,{class:r([`tag`,gt[o.phase]])},p(ht[o.phase]),3),i(`span`,Ve,p(n(U)(o.date)),1),i(`span`,He,p(o.result),1)]),i(`p`,Ue,p(o.note),1),o.testCommand?(u(),a(`p`,We,[e(g,{name:`i-lucide-terminal`,class:`size-3`}),t(p(o.testCommand),1)])):h(``,!0),o.files?.length?(u(),a(`p`,Ge,p(o.files.join(`, `)),1)):h(``,!0)],2))),128))])):(u(),a(`p`,Ke,`还没有实施记录(未开工)。`))])]))),128)),i(`div`,qe,[n(Z)?(u(),m(_,{key:0,to:`/story/${n(Z).id}`,class:`pg`},{default:f(()=>[i(`span`,Je,[e(g,{name:`i-lucide-arrow-left`,class:`size-3.5`}),l[21]||=t(`上一个`,-1)]),i(`span`,Ye,p(n(Z).id)+` `+p(n(Z).title),1)]),_:1},8,[`to`])):(u(),a(`span`,Xe)),n(Q)?(u(),m(_,{key:2,to:`/story/${n(Q).id}`,class:`pg right`},{default:f(()=>[i(`span`,Ze,[l[22]||=t(`下一个`,-1),e(g,{name:`i-lucide-arrow-right`,class:`size-3.5`})]),i(`span`,Qe,p(n(Q).id)+` `+p(n(Q).title),1)]),_:1},8,[`to`])):h(``,!0)])],64)):(u(),a(`div`,$e,[e(g,{name:`i-lucide-search-x`,class:`size-4`}),l[23]||=t(`没找到这个故事,可能 id 写错了。 `,-1)]))])}}}),[[`__scopeId`,`data-v-6e27d061`]]);export{z as default};
1
+ import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,g as c,k as l,mt as u,o as d,qt as f,tr as p,v as m,y as h}from"./DZo3dYLJ.js";import{t as ee}from"./CJ2mz0WY.js";import{t as te}from"./rlePnzpc.js";import{i as g,s as _,t as ne}from"#entry";var re={class:`card hero`},ie={class:`chips`},ae={class:`tag tag-ghost`},oe=[`title`],se=[`title`],ce={class:`tag tag-neutral`},le={key:3,class:`tag tag-primary mono`},ue=[`title`],de={class:`story-title`},fe={class:`narrative`},pe={class:`facts`},me={class:`fact`},he={class:`fact`},v={class:`fact`},y={class:`fact`},b={class:`fact`},x={class:`mono`},S={class:`fact`},C={class:`mono`},w={class:`dim`},T={class:`fact`},E={class:`mono`},D={key:0,class:`fact`},O={class:`hero-foot`},k={class:`dim`},A={class:`bar`},j={class:`cols`},M={key:0,class:`card block`},N={class:`card-hd`},P={class:`h2`},F={class:`card-bd bug`},I={class:`steps`},L={key:1,class:`card block`},R={class:`card-hd`},ge={class:`h2`},_e={class:`card-bd`},ve={key:0,class:`callout`},ye={key:1,class:`dep-row`},be={key:2,class:`dep-row`},xe={class:`card block`},Se={class:`card-hd`},Ce={class:`h2`},we={class:`tag tag-neutral`},Te={class:`card-bd`},Ee={key:0,class:`ac`},De={class:`ac-row`},Oe={class:`ac-row`},ke={class:`ac-row`},Ae={key:0,class:`ac-row verify`},je={key:1,class:`dim`},Me={class:`card-hd task-hd`},Ne={class:`tag tag-ghost`},Pe={class:`tag tag-neutral`},Fe={class:`task-title`},Ie={class:`dim entries-ct`},Le={key:0,class:`files mono dim`},Re={class:`card-bd`},ze={key:0,class:`entries`},Be={class:`entry-hd`},Ve={class:`date mono dim`},He={class:`tag tag-neutral mono result`},Ue={class:`note`},We={key:0,class:`cmd mono`},Ge={key:1,class:`efiles dim mono`},Ke={key:1,class:`dim`},qe={class:`pager`},Je={class:`pg-k`},Ye={class:`pg-t`},Xe={key:1,class:`pg-empty`},Ze={class:`pg-k`},Qe={class:`pg-t`},$e={key:1,class:`callout warn`},z=g(l({__name:`[id]`,setup(l){let g=ne(),{storyById:z,stories:B,epicById:et,sprintById:tt,journalByTask:nt,actualRange:V,progress:H,milestoneOfStory:rt,STATE_LABEL:it,STATE_COLOR:at,TASK_LABEL:ot,TASK_COLOR:st,KIND_LABEL:ct,MS_LABEL:lt,md:U,diffDays:ut,wsjf:W,dependentsOf:G,TYPE_LABEL:dt,TYPE_COLOR:ft,TYPE_ICON:pt,PRIORITY_COLOR:mt,SEVERITY_LABEL:K,SEVERITY_COLOR:q,SCOPE_LABEL:J}=_(),Y=c(()=>z.value.get(String(g.value?.params?.id))),X=c(()=>B.value.findIndex(e=>e.id===Y.value?.id)),Z=c(()=>X.value>0?B.value[X.value-1]:null),Q=c(()=>X.value>=0&&X.value<B.value.length-1?B.value[X.value+1]:null),$=e=>nt.value.get(e)?.entries??[],ht={red:`RED 失败测试`,green:`GREEN 让测试通过`,refactor:`REFACTOR 重构`},gt={red:`tag-error`,green:`tag-success`,refactor:`tag-primary`};return(c,l)=>{let g=te,_=ee;return u(),a(`div`,null,[n(Y)?(u(),a(d,{key:0},[e(_,{to:`/`,class:`btn btn-quiet btn-sm back`},{default:f(()=>[e(g,{name:`i-lucide-arrow-left`,class:`size-3.5`}),l[0]||=t(`返回看板 `,-1)]),_:1}),i(`article`,re,[i(`div`,ie,[i(`span`,ae,p(n(Y).id),1),i(`span`,{class:r([`tag`,`tag-${n(at)[n(Y).status]}`])},p(n(it)[n(Y).status]??n(Y).status),3),i(`span`,{class:r([`tag`,`tag-${n(ft)[n(Y).type]}`])},[e(g,{name:n(pt)[n(Y).type],class:`size-3`},null,8,[`name`]),t(p(n(dt)[n(Y).type]),1)],2),i(`span`,{class:r([`tag`,`tag-${n(mt)[n(Y).priority]}`])},p(n(Y).priority),3),n(Y).bug?(u(),a(`span`,{key:0,class:r([`tag`,`tag-${n(q)[n(Y).bug.severity]}`])},[e(g,{name:`i-lucide-bug`,class:`size-3`}),t(p(n(K)[n(Y).bug.severity]),1)],2)):h(``,!0),n(Y).blocked?(u(),a(`span`,{key:1,class:`tag tag-error tag-dot`,title:n(Y).blocked.reason},`阻塞`,8,oe)):h(``,!0),n(Y).scopeChange?(u(),a(`span`,{key:2,class:`tag tag-info`,title:`${n(J)[n(Y).scopeChange.kind]}(${n(Y).scopeChange.at}):${n(Y).scopeChange.reason}`},p(n(J)[n(Y).scopeChange.kind])+` · `+p(n(Y).scopeChange.at),9,se)):h(``,!0),i(`span`,ce,[e(g,{name:`i-lucide-layers`,class:`size-3`}),t(p(n(Y).epicId)+` `+p(n(et).get(n(Y).epicId)?.title),1)]),n(Y).sprintId?(u(),a(`span`,le,[e(g,{name:`i-lucide-calendar-range`,class:`size-3`}),t(p(n(Y).sprintId),1)])):h(``,!0),(u(!0),a(d,null,o(n(rt)(n(Y).id),e=>(u(),a(`span`,{key:e.id,class:r([`tag`,e.kind===`mvp`?`tag-mint`:`tag-neutral`]),title:`${e.id} · ${e.criteria}`},p(n(ct)[e.kind])+` `+p(e.id)+` · `+p(n(lt)[e.status]),11,ue))),128))]),i(`h1`,de,p(n(Y).title),1),i(`p`,fe,p(n(Y).narrative),1),i(`div`,pe,[i(`div`,me,[l[1]||=i(`span`,{class:`k`},`点数`,-1),i(`b`,null,p(n(Y).points),1)]),i(`div`,he,[l[2]||=i(`span`,{class:`k`},`价值`,-1),i(`b`,null,p(n(Y).value),1)]),i(`div`,v,[l[3]||=i(`span`,{class:`k`},`WSJF`,-1),i(`b`,null,p(n(W)(n(Y))),1)]),i(`div`,y,[l[4]||=i(`span`,{class:`k`},`任务`,-1),i(`b`,null,p(n(H)(n(Y)).done)+`/`+p(n(H)(n(Y)).total),1)]),i(`div`,b,[l[5]||=i(`span`,{class:`k`},`计划`,-1),i(`b`,x,p(n(Y).schedule?`${n(U)(n(Y).schedule.start)} ~ ${n(U)(n(Y).schedule.end)}`:`未排期`),1)]),i(`div`,S,[l[6]||=i(`span`,{class:`k`},`实际`,-1),i(`b`,C,[n(V)(n(Y))?(u(),a(d,{key:0},[t(p(n(U)(n(V)(n(Y)).start))+` ~ `+p(n(U)(n(V)(n(Y)).end))+` `,1),i(`small`,w,`(`+p(n(ut)(n(V)(n(Y)).start,n(V)(n(Y)).end)+1)+` 天)`,1)],64)):(u(),a(d,{key:1},[t(`—`)],64))])]),i(`div`,T,[l[7]||=i(`span`,{class:`k`},`创建`,-1),i(`b`,E,p(n(Y).created),1)]),n(Y).sprintId?(u(),a(`div`,D,[l[8]||=i(`span`,{class:`k`},`所属迭代`,-1),i(`b`,null,p(n(tt).get(n(Y).sprintId)?.name),1)])):h(``,!0)]),i(`div`,O,[i(`span`,k,`任务完成度 `+p(n(H)(n(Y)).pct)+`%`,1),i(`div`,A,[i(`i`,{style:s({width:n(H)(n(Y)).pct+`%`})},null,4)])])]),i(`div`,j,[n(Y).bug?(u(),a(`article`,M,[i(`div`,N,[i(`h2`,P,[e(g,{name:`i-lucide-bug`,class:`size-3.5`}),l[9]||=t(`缺陷详情`,-1)]),i(`span`,{class:r([`tag`,`tag-${n(q)[n(Y).bug.severity]}`])},p(n(K)[n(Y).bug.severity]),3)]),i(`div`,F,[i(`div`,null,[l[10]||=i(`span`,{class:`lbl`},`影响环境`,-1),i(`p`,null,p(n(Y).bug.environment),1)]),i(`div`,null,[l[11]||=i(`span`,{class:`lbl`},`复现步骤`,-1),i(`p`,I,p(n(Y).bug.steps),1)])])])):h(``,!0),n(Y).blocked||n(Y).dependsOn?.length||n(G)(n(Y).id).length?(u(),a(`article`,L,[i(`div`,R,[i(`h2`,ge,[e(g,{name:`i-lucide-git-branch`,class:`size-3.5`}),l[12]||=t(`依赖与阻塞`,-1)])]),i(`div`,_e,[n(Y).blocked?(u(),a(`div`,ve,[e(g,{name:`i-lucide-octagon-alert`,class:`size-4`}),i(`div`,null,[l[13]||=i(`b`,null,`当前被阻塞`,-1),i(`p`,null,p(n(Y).blocked.reason)+`(自 `+p(n(Y).blocked.since)+` 起)`,1)])])):h(``,!0),n(Y).dependsOn?.length?(u(),a(`div`,ye,[l[14]||=i(`span`,{class:`lbl`},`依赖`,-1),(u(!0),a(d,null,o(n(Y).dependsOn,r=>(u(),m(_,{key:r,to:`/story/${r}`,class:`dep`},{default:f(()=>[e(g,{name:`i-lucide-arrow-left`,class:`size-3`}),t(p(r)+` `+p(n(z).get(r)?.title??``),1)]),_:2},1032,[`to`]))),128))])):h(``,!0),n(G)(n(Y).id).length?(u(),a(`div`,be,[l[15]||=i(`span`,{class:`lbl`},`被依赖`,-1),(u(!0),a(d,null,o(n(G)(n(Y).id),n=>(u(),m(_,{key:n.id,to:`/story/${n.id}`,class:`dep ghost`},{default:f(()=>[t(p(n.id)+` `+p(n.title),1),e(g,{name:`i-lucide-arrow-right`,class:`size-3`})]),_:2},1032,[`to`]))),128))])):h(``,!0)])])):h(``,!0)]),i(`article`,xe,[i(`div`,Se,[i(`h2`,Ce,[e(g,{name:`i-lucide-list-checks`,class:`size-3.5`}),l[16]||=t(`验收标准`,-1)]),i(`span`,we,p(n(Y).acceptance?.length??0)+` 条`,1)]),i(`div`,Te,[n(Y).acceptance?.length?(u(),a(`ol`,Ee,[(u(!0),a(d,null,o(n(Y).acceptance,(e,t)=>(u(),a(`li`,{key:t},[i(`div`,De,[l[17]||=i(`span`,{class:`tag tag-neutral gw`},`Given`,-1),i(`span`,null,p(e.given),1)]),i(`div`,Oe,[l[18]||=i(`span`,{class:`tag tag-info gw`},`When`,-1),i(`span`,null,p(e.when),1)]),i(`div`,ke,[l[19]||=i(`span`,{class:`tag tag-success gw`},`Then`,-1),i(`span`,null,p(e.then),1)]),e.verifyBy?.length?(u(),a(`div`,Ae,[l[20]||=i(`span`,{class:`dim`},`由谁验证`,-1),(u(!0),a(d,null,o(e.verifyBy,e=>(u(),a(`span`,{key:e,class:`tag tag-ghost`},p(e),1))),128))])):h(``,!0)]))),128))])):(u(),a(`p`,je,`还没有验收标准(草稿阶段允许为空,进迭代前必须补)。`))])]),(u(!0),a(d,null,o(n(Y).tasks,s=>(u(),a(`article`,{key:s.id,class:`card block`},[i(`div`,Me,[i(`span`,Ne,p(s.id),1),i(`span`,Pe,p(s.type),1),i(`span`,{class:r([`tag`,`tag-${n(st)[s.status]}`])},p(n(ot)[s.status]),3),i(`b`,Fe,p(s.title),1),i(`span`,Ie,p($(s.id).length)+` 条记录`,1)]),s.files?.length?(u(),a(`p`,Le,p(s.files.join(` · `)),1)):h(``,!0),i(`div`,Re,[$(s.id).length?(u(),a(`div`,ze,[(u(!0),a(d,null,o($(s.id),(o,s)=>(u(),a(`div`,{key:s,class:r([`entry`,o.phase])},[i(`div`,Be,[i(`span`,{class:r([`tag`,gt[o.phase]])},p(ht[o.phase]),3),i(`span`,Ve,p(n(U)(o.date)),1),i(`span`,He,p(o.result),1)]),i(`p`,Ue,p(o.note),1),o.testCommand?(u(),a(`p`,We,[e(g,{name:`i-lucide-terminal`,class:`size-3`}),t(p(o.testCommand),1)])):h(``,!0),o.files?.length?(u(),a(`p`,Ge,p(o.files.join(`, `)),1)):h(``,!0)],2))),128))])):(u(),a(`p`,Ke,`还没有实施记录(未开工)。`))])]))),128)),i(`div`,qe,[n(Z)?(u(),m(_,{key:0,to:`/story/${n(Z).id}`,class:`pg`},{default:f(()=>[i(`span`,Je,[e(g,{name:`i-lucide-arrow-left`,class:`size-3.5`}),l[21]||=t(`上一个`,-1)]),i(`span`,Ye,p(n(Z).id)+` `+p(n(Z).title),1)]),_:1},8,[`to`])):(u(),a(`span`,Xe)),n(Q)?(u(),m(_,{key:2,to:`/story/${n(Q).id}`,class:`pg right`},{default:f(()=>[i(`span`,Ze,[l[22]||=t(`下一个`,-1),e(g,{name:`i-lucide-arrow-right`,class:`size-3.5`})]),i(`span`,Qe,p(n(Q).id)+` `+p(n(Q).title),1)]),_:1},8,[`to`])):h(``,!0)])],64)):(u(),a(`div`,$e,[e(g,{name:`i-lucide-search-x`,class:`size-4`}),l[23]||=t(`没找到这个故事,可能 id 写错了。 `,-1)]))])}}}),[[`__scopeId`,`data-v-6e27d061`]]);export{z as default};
@@ -1 +1 @@
1
- import{On as e,mt as t,qt as n,v as r}from"./DZo3dYLJ.js";import{r as i}from"./Csqgy925.js";import{t as a}from"./CQTvWh4i.js";import o from"./Cti_rGPY.js";var s={__name:`ProseCaution`,setup(s){let c=i();return(i,s)=>(t(),r(o,{color:`error`,icon:e(c).ui.icons.caution},{default:n(()=>[a(i.$slots,`default`,{mdcUnwrap:`p`})]),_:3},8,[`icon`]))}};export{s as default};
1
+ import{On as e,mt as t,qt as n,v as r}from"./DZo3dYLJ.js";import{r as i}from"./Csqgy925.js";import{t as a}from"./CQTvWh4i.js";import o from"./vwxaNGfc.js";var s={__name:`ProseCaution`,setup(s){let c=i();return(i,s)=>(t(),r(o,{color:`error`,icon:e(c).ui.icons.caution},{default:n(()=>[a(i.$slots,`default`,{mdcUnwrap:`p`})]),_:3},8,[`icon`]))}};export{s as default};
@@ -1 +1 @@
1
- import{$ as e,$n as t,D as n,E as r,En as i,Ft as a,Ht as o,J as s,On as c,Zn as l,b as u,et as d,g as f,gt as p,k as m,mt as h,qt as g,tr as _,v,vn as y,wt as b,xt as x,y as S,z as C}from"./DZo3dYLJ.js";import{r as w}from"./Csqgy925.js";import{f as T,n as E,t as D}from"./6gFtTBwm.js";import{n as O,t as k}from"./CK9_veoz.js";import{t as A}from"./DrZpfjBq.js";var j=Symbol(`nuxt-ui.field-group`);function M(e){let t=s(j,void 0);return{orientation:f(()=>t?.value.orientation),size:f(()=>e?.size??t?.value.size)}}var N=m({name:`FieldGroupReset`,setup(e,{slots:t}){return p(j,f(()=>({size:void 0,orientation:void 0}))),()=>t.default?.()}}),P=Symbol(`nuxt-ui.avatar-group`);function F(e){let t=s(P,void 0),n=f(()=>e.size??t?.value.size),r=f(()=>e.color??t?.value.color);return p(P,f(()=>({size:n.value,color:r.value}))),{size:n,color:r}}var I={slots:{root:`relative inline-flex items-center justify-center shrink-0`,base:`rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap`},variants:{color:{primary:`bg-primary`,secondary:`bg-secondary`,success:`bg-success`,info:`bg-info`,warning:`bg-warning`,error:`bg-error`,neutral:`bg-inverted`},size:{"3xs":`h-[4px] min-w-[4px] text-[4px]`,"2xs":`h-[5px] min-w-[5px] text-[5px]`,xs:`h-[6px] min-w-[6px] text-[6px]`,sm:`h-[7px] min-w-[7px] text-[7px]`,md:`h-[8px] min-w-[8px] text-[8px]`,lg:`h-[9px] min-w-[9px] text-[9px]`,xl:`h-[10px] min-w-[10px] text-[10px]`,"2xl":`h-[11px] min-w-[11px] text-[11px]`,"3xl":`h-[12px] min-w-[12px] text-[12px]`},position:{"top-right":`top-0 right-0`,"bottom-right":`bottom-0 right-0`,"top-left":`top-0 left-0`,"bottom-left":`bottom-0 left-0`},inset:{false:``},standalone:{false:`absolute`}},compoundVariants:[{position:`top-right`,inset:!1,class:`-translate-y-1/2 translate-x-1/2 transform`},{position:`bottom-right`,inset:!1,class:`translate-y-1/2 translate-x-1/2 transform`},{position:`top-left`,inset:!1,class:`-translate-y-1/2 -translate-x-1/2 transform`},{position:`bottom-left`,inset:!1,class:`translate-y-1/2 -translate-x-1/2 transform`}],defaultVariants:{size:`md`,color:`primary`,position:`top-right`}},L=Object.assign({inheritAttrs:!1},{__name:`UChip`,props:e({as:{type:null,required:!1},text:{type:[String,Number],required:!1},color:{type:null,required:!1},size:{type:null,required:!1},position:{type:null,required:!1},inset:{type:Boolean,required:!1,default:!1},standalone:{type:Boolean,required:!1,default:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:[`update:show`],setup(e){let i=e,o=E(`chip`,i),s=a(e,`show`,{type:Boolean,default:!0}),{size:d}=F(i),p=w(),m=f(()=>D({extend:I,...p.ui?.chip||{}})({color:o.color,size:d.value??o.size,position:o.position,inset:o.inset,standalone:o.standalone}));return(e,i)=>(h(),v(c(k),{as:c(o).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:l(m.value.root({class:[c(o).ui?.root,c(o).class]}))},{default:g(()=>[n(c(O),t(C({...e.$attrs,"data-slot":void 0})),{default:g(()=>[x(e.$slots,`default`)]),_:3},16),s.value?(h(),u(`span`,{key:0,"data-slot":`base`,class:l(m.value.base({class:c(o).ui?.base}))},[x(e.$slots,`content`,{},()=>[r(_(c(o).text),1)])],2)):S(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),R={slots:{root:`inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle`,image:`h-full w-full rounded-[inherit] object-cover`,fallback:`font-medium truncate`,icon:`shrink-0`},variants:{color:{primary:{root:`bg-primary/10`,fallback:`text-primary`,icon:`text-primary`},secondary:{root:`bg-secondary/10`,fallback:`text-secondary`,icon:`text-secondary`},success:{root:`bg-success/10`,fallback:`text-success`,icon:`text-success`},info:{root:`bg-info/10`,fallback:`text-info`,icon:`text-info`},warning:{root:`bg-warning/10`,fallback:`text-warning`,icon:`text-warning`},error:{root:`bg-error/10`,fallback:`text-error`,icon:`text-error`},neutral:{root:`bg-elevated`,fallback:`text-muted`,icon:`text-muted`}},size:{"3xs":{root:`size-4 text-[8px]`},"2xs":{root:`size-5 text-[10px]`},xs:{root:`size-6 text-xs`},sm:{root:`size-7 text-sm`},md:{root:`size-8 text-base`},lg:{root:`size-9 text-lg`},xl:{root:`size-10 text-xl`},"2xl":{root:`size-11 text-[22px]`},"3xl":{root:`size-12 text-2xl`}}},defaultVariants:{size:`md`,color:`neutral`}},z=Object.assign({inheritAttrs:!1},{__name:`UAvatar`,props:{as:{type:null,required:!1},src:{type:String,required:!1},alt:{type:String,required:!1},icon:{type:null,required:!1},text:{type:String,required:!1},size:{type:null,required:!1},color:{type:null,required:!1},chip:{type:[Boolean,Object],required:!1},class:{type:null,required:!1},style:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let n=e,r=E(`avatar`,n),i=f(()=>T(r.as,{root:`span`})),a=f(()=>r.text||(r.alt||``).split(` `).map(e=>e.charAt(0)).join(``).substring(0,2)),s=w(),{size:p,color:m}=F(n),S=f(()=>D({extend:R,...s.ui?.avatar||{}})({size:p.value??r.size,color:m.value??r.color})),C=f(()=>S.value.root({class:[r.ui?.root,r.class]})),j=f(()=>{let e=(C.value||``).split(` `).find(e=>/^size-\d+$/.test(e));if(e){let t=Number.parseFloat(e.split(`-`)[1]??``);if(!Number.isNaN(t))return t*4}return null}),M=y(!1);o(()=>r.src,()=>{M.value&&=!1});function N(){M.value=!0}return(e,n)=>(h(),v(b(c(r).chip?L:c(k)),d({as:i.value.root},c(r).chip?typeof c(r).chip==`object`?{inset:!0,...c(r).chip}:{inset:!0}:{},{"data-slot":e.$attrs[`data-slot`]??`root`,class:C.value,style:c(r).style}),{default:g(()=>[c(r).src&&!M.value?(h(),v(b(i.value.img||c(`img`)),d({key:0,src:c(r).src,alt:c(r).alt,width:j.value,height:j.value},e.$attrs,{"data-slot":`image`,class:S.value.image({class:c(r).ui?.image}),onError:N}),null,16,[`src`,`alt`,`width`,`height`,`class`])):(h(),v(c(O),t(d({key:1},{...e.$attrs,"data-slot":void 0})),{default:g(()=>[x(e.$slots,`default`,{},()=>[c(r).icon?(h(),v(A,{key:0,name:c(r).icon,"data-slot":`icon`,class:l(S.value.icon({class:c(r).ui?.icon}))},null,8,[`name`,`class`])):(h(),u(`span`,{key:1,"data-slot":`fallback`,class:l(S.value.fallback({class:c(r).ui?.fallback}))},_(a.value||`\xA0`),3))])]),_:3},16))]),_:3},16,[`as`,`data-slot`,`class`,`style`]))}});function B(e){let t=w(),n=f(()=>i(e)),r=f(()=>n.value.icon&&n.value.leading||n.value.icon&&!n.value.trailing||n.value.loading&&!n.value.trailing||!!n.value.leadingIcon);return{isLeading:r,isTrailing:f(()=>n.value.icon&&n.value.trailing||n.value.loading&&n.value.trailing&&!r.value||!!n.value.trailingIcon&&n.value.trailing!==!1),leadingIconName:f(()=>n.value.loading?n.value.loadingIcon||t.ui.icons.loading:n.value.leadingIcon||n.value.icon),trailingIconName:f(()=>n.value.loading&&!r.value?n.value.loadingIcon||t.ui.icons.loading:n.value.trailingIcon||n.value.icon)}}export{M as a,N as i,z as n,L as r,B as t};
1
+ import{$ as e,$n as t,D as n,E as r,En as i,Ft as a,Ht as o,J as s,On as c,Zn as l,b as u,et as d,g as f,gt as p,k as m,mt as h,qt as g,tr as _,v,vn as y,wt as b,xt as x,y as S,z as C}from"./DZo3dYLJ.js";import{r as w}from"./Csqgy925.js";import{f as T,n as E,t as D}from"./6gFtTBwm.js";import{n as O,t as k}from"./CK9_veoz.js";import{t as A}from"./rlePnzpc.js";var j=Symbol(`nuxt-ui.field-group`);function M(e){let t=s(j,void 0);return{orientation:f(()=>t?.value.orientation),size:f(()=>e?.size??t?.value.size)}}var N=m({name:`FieldGroupReset`,setup(e,{slots:t}){return p(j,f(()=>({size:void 0,orientation:void 0}))),()=>t.default?.()}}),P=Symbol(`nuxt-ui.avatar-group`);function F(e){let t=s(P,void 0),n=f(()=>e.size??t?.value.size),r=f(()=>e.color??t?.value.color);return p(P,f(()=>({size:n.value,color:r.value}))),{size:n,color:r}}var I={slots:{root:`relative inline-flex items-center justify-center shrink-0`,base:`rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap`},variants:{color:{primary:`bg-primary`,secondary:`bg-secondary`,success:`bg-success`,info:`bg-info`,warning:`bg-warning`,error:`bg-error`,neutral:`bg-inverted`},size:{"3xs":`h-[4px] min-w-[4px] text-[4px]`,"2xs":`h-[5px] min-w-[5px] text-[5px]`,xs:`h-[6px] min-w-[6px] text-[6px]`,sm:`h-[7px] min-w-[7px] text-[7px]`,md:`h-[8px] min-w-[8px] text-[8px]`,lg:`h-[9px] min-w-[9px] text-[9px]`,xl:`h-[10px] min-w-[10px] text-[10px]`,"2xl":`h-[11px] min-w-[11px] text-[11px]`,"3xl":`h-[12px] min-w-[12px] text-[12px]`},position:{"top-right":`top-0 right-0`,"bottom-right":`bottom-0 right-0`,"top-left":`top-0 left-0`,"bottom-left":`bottom-0 left-0`},inset:{false:``},standalone:{false:`absolute`}},compoundVariants:[{position:`top-right`,inset:!1,class:`-translate-y-1/2 translate-x-1/2 transform`},{position:`bottom-right`,inset:!1,class:`translate-y-1/2 translate-x-1/2 transform`},{position:`top-left`,inset:!1,class:`-translate-y-1/2 -translate-x-1/2 transform`},{position:`bottom-left`,inset:!1,class:`translate-y-1/2 -translate-x-1/2 transform`}],defaultVariants:{size:`md`,color:`primary`,position:`top-right`}},L=Object.assign({inheritAttrs:!1},{__name:`UChip`,props:e({as:{type:null,required:!1},text:{type:[String,Number],required:!1},color:{type:null,required:!1},size:{type:null,required:!1},position:{type:null,required:!1},inset:{type:Boolean,required:!1,default:!1},standalone:{type:Boolean,required:!1,default:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:[`update:show`],setup(e){let i=e,o=E(`chip`,i),s=a(e,`show`,{type:Boolean,default:!0}),{size:d}=F(i),p=w(),m=f(()=>D({extend:I,...p.ui?.chip||{}})({color:o.color,size:d.value??o.size,position:o.position,inset:o.inset,standalone:o.standalone}));return(e,i)=>(h(),v(c(k),{as:c(o).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:l(m.value.root({class:[c(o).ui?.root,c(o).class]}))},{default:g(()=>[n(c(O),t(C({...e.$attrs,"data-slot":void 0})),{default:g(()=>[x(e.$slots,`default`)]),_:3},16),s.value?(h(),u(`span`,{key:0,"data-slot":`base`,class:l(m.value.base({class:c(o).ui?.base}))},[x(e.$slots,`content`,{},()=>[r(_(c(o).text),1)])],2)):S(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),R={slots:{root:`inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle`,image:`h-full w-full rounded-[inherit] object-cover`,fallback:`font-medium truncate`,icon:`shrink-0`},variants:{color:{primary:{root:`bg-primary/10`,fallback:`text-primary`,icon:`text-primary`},secondary:{root:`bg-secondary/10`,fallback:`text-secondary`,icon:`text-secondary`},success:{root:`bg-success/10`,fallback:`text-success`,icon:`text-success`},info:{root:`bg-info/10`,fallback:`text-info`,icon:`text-info`},warning:{root:`bg-warning/10`,fallback:`text-warning`,icon:`text-warning`},error:{root:`bg-error/10`,fallback:`text-error`,icon:`text-error`},neutral:{root:`bg-elevated`,fallback:`text-muted`,icon:`text-muted`}},size:{"3xs":{root:`size-4 text-[8px]`},"2xs":{root:`size-5 text-[10px]`},xs:{root:`size-6 text-xs`},sm:{root:`size-7 text-sm`},md:{root:`size-8 text-base`},lg:{root:`size-9 text-lg`},xl:{root:`size-10 text-xl`},"2xl":{root:`size-11 text-[22px]`},"3xl":{root:`size-12 text-2xl`}}},defaultVariants:{size:`md`,color:`neutral`}},z=Object.assign({inheritAttrs:!1},{__name:`UAvatar`,props:{as:{type:null,required:!1},src:{type:String,required:!1},alt:{type:String,required:!1},icon:{type:null,required:!1},text:{type:String,required:!1},size:{type:null,required:!1},color:{type:null,required:!1},chip:{type:[Boolean,Object],required:!1},class:{type:null,required:!1},style:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let n=e,r=E(`avatar`,n),i=f(()=>T(r.as,{root:`span`})),a=f(()=>r.text||(r.alt||``).split(` `).map(e=>e.charAt(0)).join(``).substring(0,2)),s=w(),{size:p,color:m}=F(n),S=f(()=>D({extend:R,...s.ui?.avatar||{}})({size:p.value??r.size,color:m.value??r.color})),C=f(()=>S.value.root({class:[r.ui?.root,r.class]})),j=f(()=>{let e=(C.value||``).split(` `).find(e=>/^size-\d+$/.test(e));if(e){let t=Number.parseFloat(e.split(`-`)[1]??``);if(!Number.isNaN(t))return t*4}return null}),M=y(!1);o(()=>r.src,()=>{M.value&&=!1});function N(){M.value=!0}return(e,n)=>(h(),v(b(c(r).chip?L:c(k)),d({as:i.value.root},c(r).chip?typeof c(r).chip==`object`?{inset:!0,...c(r).chip}:{inset:!0}:{},{"data-slot":e.$attrs[`data-slot`]??`root`,class:C.value,style:c(r).style}),{default:g(()=>[c(r).src&&!M.value?(h(),v(b(i.value.img||c(`img`)),d({key:0,src:c(r).src,alt:c(r).alt,width:j.value,height:j.value},e.$attrs,{"data-slot":`image`,class:S.value.image({class:c(r).ui?.image}),onError:N}),null,16,[`src`,`alt`,`width`,`height`,`class`])):(h(),v(c(O),t(d({key:1},{...e.$attrs,"data-slot":void 0})),{default:g(()=>[x(e.$slots,`default`,{},()=>[c(r).icon?(h(),v(A,{key:0,name:c(r).icon,"data-slot":`icon`,class:l(S.value.icon({class:c(r).ui?.icon}))},null,8,[`name`,`class`])):(h(),u(`span`,{key:1,"data-slot":`fallback`,class:l(S.value.fallback({class:c(r).ui?.fallback}))},_(a.value||`\xA0`),3))])]),_:3},16))]),_:3},16,[`as`,`data-slot`,`class`,`style`]))}});function B(e){let t=w(),n=f(()=>i(e)),r=f(()=>n.value.icon&&n.value.leading||n.value.icon&&!n.value.trailing||n.value.loading&&!n.value.trailing||!!n.value.leadingIcon);return{isLeading:r,isTrailing:f(()=>n.value.icon&&n.value.trailing||n.value.loading&&n.value.trailing&&!r.value||!!n.value.trailingIcon&&n.value.trailing!==!1),leadingIconName:f(()=>n.value.loading?n.value.loadingIcon||t.ui.icons.loading:n.value.leadingIcon||n.value.icon),trailingIconName:f(()=>n.value.loading&&!r.value?n.value.loadingIcon||t.ui.icons.loading:n.value.trailingIcon||n.value.icon)}}export{M as a,N as i,z as n,L as r,B as t};