showai-reader 0.9.0-reader.kusarg53 → 0.9.0-reader.lmacp3ue
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/chunks/CardGrid-2L7SI3GT.js +2 -0
- package/chunks/CommandReference-MABH4WNR.js +3 -0
- package/chunks/{ComparisonMatrix-Y23JEUWT.js → ComparisonMatrix-4VID3SKW.js} +1 -1
- package/chunks/EventTimeline-RPUO3ANI.js +2 -0
- package/chunks/{ExperimentTracker-E75KXRF2.js → ExperimentTracker-I7FMOSAT.js} +1 -1
- package/chunks/{ExternalDiagram-JL7AG5GP.js → ExternalDiagram-PQMI7IOF.js} +7924 -4810
- package/chunks/Flowchart-DJDRE6J4.js +12 -0
- package/chunks/{G2Chart-BA5IDTUV.js → G2Chart-GKX2KBAE.js} +2 -2
- package/chunks/LayerDiagram-XRFOBN5D.js +2 -0
- package/chunks/{Mindmap-UG3527BI.js → Mindmap-EIHQYYIM.js} +2 -2
- package/chunks/RichTextEditor-ORD5B66H.js +159 -0
- package/chunks/Roadmap-2PZUUITP.js +2 -0
- package/chunks/{Scene3D-W7LZXKUP.js → Scene3D-VUYXLU66.js} +2 -2
- package/chunks/SequenceDiagram-SKWUSADO.js +2 -0
- package/chunks/{StatusTree-5UT6FPGY.js → StatusTree-M32T5DZK.js} +1 -1
- package/chunks/StepGuide-H3CX2NOQ.js +1 -0
- package/chunks/StructureBrowser-TRZVSHJZ.js +3 -0
- package/chunks/Waterfall-FRJWHEW4.js +2 -0
- package/chunks/{chunk-JQE3ZACJ.js → chunk-2CPNXVIL.js} +2 -2
- package/chunks/{chunk-WPCUZTWD.js → chunk-2XAH6DED.js} +1 -1
- package/chunks/chunk-3RZMLHCB.js +1 -0
- package/chunks/chunk-3YAYFUS4.js +21 -0
- package/chunks/{chunk-LU2JYOE4.js.LEGAL.txt → chunk-3YAYFUS4.js.LEGAL.txt} +24 -8
- package/chunks/chunk-AD4URO5L.js +3 -0
- package/chunks/chunk-AIBH6MTQ.js +1 -0
- package/chunks/chunk-AO3QGOYX.js +1 -0
- package/chunks/chunk-BJ2PXDYC.js +1 -0
- package/chunks/chunk-GLP5VV7P.js +1 -0
- package/chunks/{chunk-2HJ7X47C.js → chunk-HIORXCFE.js} +1 -1
- package/chunks/chunk-IB47MJKL.js +2 -0
- package/chunks/chunk-JXKAISUX.js +1 -0
- package/chunks/{chunk-YMX2EQEL.js → chunk-NLDO4KEP.js} +1 -1
- package/chunks/chunk-OK4632EO.js +5 -0
- package/chunks/chunk-QHZRUC47.js +1 -0
- package/chunks/chunk-R2O3ZCKW.js +4 -0
- package/chunks/chunk-VFRLMJEN.js +333 -0
- package/index.js +1 -1
- package/manifest.json +5 -5
- package/package.json +1 -1
- package/reader-LMACP3UE.js +47 -0
- package/chunks/Flowchart-WNVHN5AC.js +0 -10
- package/chunks/RichTextEditor-PWYETK5J.js +0 -155
- package/chunks/chunk-CONQMWJD.js +0 -2
- package/chunks/chunk-LU2JYOE4.js +0 -21
- package/chunks/chunk-M3KEZP5Z.js +0 -1
- package/chunks/chunk-NU3EF6FT.js +0 -326
- package/chunks/chunk-QSELZI5S.js +0 -1
- package/reader-KUSARG53.js +0 -41
- /package/chunks/{Flowchart-WNVHN5AC.js.LEGAL.txt → Flowchart-DJDRE6J4.js.LEGAL.txt} +0 -0
- /package/chunks/{G2Chart-BA5IDTUV.js.LEGAL.txt → G2Chart-GKX2KBAE.js.LEGAL.txt} +0 -0
- /package/chunks/{Scene3D-W7LZXKUP.js.LEGAL.txt → Scene3D-VUYXLU66.js.LEGAL.txt} +0 -0
- /package/chunks/{chunk-JQE3ZACJ.js.LEGAL.txt → chunk-2CPNXVIL.js.LEGAL.txt} +0 -0
- /package/{reader-KUSARG53.js.LEGAL.txt → reader-LMACP3UE.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as G,d as U}from"./chunk-AIBH6MTQ.js";import{f as ss}from"./chunk-BJ2PXDYC.js";import{d as Z}from"./chunk-2XAH6DED.js";import{a as Q,c as as,hb as Y,kb as J}from"./chunk-3YAYFUS4.js";import{c as B,d as V}from"./chunk-DUIGVKKG.js";var h=B(as(),1);Q(`.sb-block.sq-block :is(h3,h4,p,ul,ol,li,pre):not(svg){margin:0}.sb-block.sq-block li:not(svg){padding:0}.sb-block.sq-block pre:not(svg){border:0;border-radius:0;background:none;color:inherit}.sb-block.sq-block{--sq-text: var(--sb-text);--sq-muted: var(--sb-muted);--sq-faint: color-mix(in srgb, var(--sb-muted) 70%, transparent);--sq-line: var(--sb-line);--sq-paper: var(--sb-surface);--sq-soft: var(--sb-soft);--sq-accent: var(--sb-accent);--sq-accent-soft: var(--sb-accent-soft);--sq-wire: color-mix(in srgb, var(--sb-muted) 85%, var(--sb-text));--sq-teal: #0d8579;--sq-teal-soft: #e6f4f2;--sq-orange: #bf6528;--sq-orange-soft: #fbefe6;--sq-violet: #7348d0;--sq-violet-soft: #f2edfc;--sq-rose: #c4415a;--sq-rose-soft: #fbebee;--sq-slate: #526476;--sq-slate-soft: #edf1f4;--t: var(--sq-accent);--ts: var(--sq-accent-soft);color:var(--sq-text);font-family:inherit;font-size:14px;line-height:1.65;padding:8px 0;overflow-wrap:anywhere}:root[data-theme=dark] .sb-block.sq-block,[data-theme=dark] .sb-block.sq-block{--sq-teal: #4fc4b6;--sq-teal-soft: #163734;--sq-orange: #e79c64;--sq-orange-soft: #3b2b1e;--sq-violet: #b497ff;--sq-violet-soft: #2e2648;--sq-rose: #f0839a;--sq-rose-soft: #3e222a;--sq-slate: #a2b2c2;--sq-slate-soft: #242d35}.sb-block.sq-block *{box-sizing:border-box}.sb-block.sq-block [data-tone=accent]{--t: var(--sq-accent);--ts: var(--sq-accent-soft)}.sb-block.sq-block [data-tone=teal]{--t: var(--sq-teal);--ts: var(--sq-teal-soft)}.sb-block.sq-block [data-tone=orange]{--t: var(--sq-orange);--ts: var(--sq-orange-soft)}.sb-block.sq-block [data-tone=violet]{--t: var(--sq-violet);--ts: var(--sq-violet-soft)}.sb-block.sq-block [data-tone=rose]{--t: var(--sq-rose);--ts: var(--sq-rose-soft)}.sb-block.sq-block [data-tone=slate]{--t: var(--sq-slate);--ts: var(--sq-slate-soft)}.sb-block.sq-block .sq-top{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 12px}.sb-block.sq-block .sq-title{margin:0;font-size:16px;line-height:1.5;font-weight:650}.sb-block.sq-block .sq-description{margin:2px 0 0;color:var(--sq-muted);font-size:13px}.sb-block.sq-block .sq-hint{flex:none;font-size:12px;color:var(--sq-faint);white-space:nowrap}.sb-block.sq-block code{font-family:var(--mono, ui-monospace, Menlo, Consolas, monospace);font-size:.88em;background:var(--sq-soft);border-radius:4px;padding:1px 5px}.sb-block.sq-block .sq-svg{display:block;max-width:100%;height:auto;overflow:visible;border-radius:6px;user-select:none;-webkit-user-select:none}.sb-block.sq-block .sq-svg:focus{outline:none}.sb-block.sq-block .sq-svg:focus-visible{outline:2px solid var(--sq-accent);outline-offset:2px}.sb-block.sq-block .sq-svg text{font-family:inherit}.sb-block.sq-block .sq-life{stroke:var(--sq-line);stroke-width:1.2;stroke-dasharray:3 4}.sb-block.sq-block .sq-life[data-on]{stroke:var(--t);stroke-opacity:.45;stroke-dasharray:none}.sb-block.sq-block .sq-actor rect{fill:var(--sq-paper);stroke:var(--sq-line)}.sb-block.sq-block .sq-actor[data-on] rect{fill:var(--ts);stroke:var(--t);stroke-width:1.4}.sb-block.sq-block .sq-alabel{fill:var(--sq-text);font-size:14px;font-weight:600}.sb-block.sq-block .sq-asub{fill:var(--sq-muted);font-size:12px}.sb-block.sq-block .sq-icon{font-size:15px}.sb-block.sq-block .sq-band{fill:var(--sq-accent-soft);opacity:.6}.sb-block.sq-block .sq-step{cursor:pointer;transition:opacity .2s ease}.sb-block.sq-block .sq-hit{fill:transparent}.sb-block.sq-block .sq-line{fill:none;stroke:var(--sq-wire);stroke-width:1.4;stroke-linejoin:round}.sb-block.sq-block .sq-line[data-reply]{stroke-dasharray:5 4}.sb-block.sq-block .sq-head{fill:var(--sq-wire)}.sb-block.sq-block .sq-open{fill:none;stroke:var(--sq-wire);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.sb-block.sq-block .sq-label{fill:var(--sq-text);font-size:13px;font-weight:500}.sb-block.sq-block .sq-note{fill:var(--sq-orange-soft);stroke:var(--sq-orange);stroke-opacity:.35}.sb-block.sq-block .sq-num circle{fill:var(--sq-paper);stroke:var(--sq-line)}.sb-block.sq-block .sq-num text{fill:var(--sq-muted);font-size:11.5px;font-weight:600;font-variant-numeric:tabular-nums}.sb-block.sq-block .sq-step[data-state=todo]{opacity:.3}.sb-block.sq-block .sq-step[data-state=todo]:hover{opacity:.55}.sb-block.sq-block .sq-step[data-state=cur] .sq-line{stroke:var(--sq-accent);stroke-width:2}.sb-block.sq-block .sq-step[data-state=cur] .sq-head{fill:var(--sq-accent)}.sb-block.sq-block .sq-step[data-state=cur] .sq-open{stroke:var(--sq-accent);stroke-width:2}.sb-block.sq-block .sq-step[data-state=cur] .sq-label{font-weight:650}.sb-block.sq-block .sq-step[data-state=cur] .sq-num circle{fill:var(--sq-accent);stroke:var(--sq-accent)}.sb-block.sq-block .sq-step[data-state=cur] .sq-num text{fill:var(--sq-paper)}.sb-block.sq-block .sq-step[data-state=cur] .sq-note{stroke-opacity:.8}.sb-block.sq-block .sq-actor rect,.sb-block.sq-block .sq-life{transition:fill .2s ease,stroke .2s ease}.sb-block.sq-block .sq-panel{margin-top:14px;border:1px solid var(--sq-line);border-radius:10px;background:var(--sq-soft);overflow:hidden}.sb-block.sq-block .sq-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:10px 12px}.sb-block.sq-block .sq-buttons{display:flex;flex-wrap:wrap;gap:6px}.sb-block.sq-block .sq-buttons button{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13px;line-height:1;color:var(--sq-text);background:var(--sq-paper);border:1px solid var(--sq-line);border-radius:6px;padding:7px 11px 7px 9px;cursor:pointer;transition:border-color .15s ease}.sb-block.sq-block .sq-buttons button:hover:not(:disabled){border-color:var(--sq-muted)}.sb-block.sq-block .sq-buttons button:disabled{color:var(--sq-faint);cursor:default}.sb-block.sq-block .sq-buttons svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sb-block.sq-block .sq-buttons svg .sq-fill{fill:currentColor;stroke:none}.sb-block.sq-block .sq-buttons .sq-play{background:var(--sq-accent);border-color:var(--sq-accent);color:var(--sq-paper)}.sb-block.sq-block .sq-buttons .sq-play:disabled{opacity:.5;color:var(--sq-paper)}.sb-block.sq-block .sq-buttons button:focus-visible,.sb-block.sq-block .sq-list button:focus-visible,.sb-block.sq-block a:focus-visible{outline:2px solid var(--sq-accent);outline-offset:2px}.sb-block.sq-block .sq-count{font-size:12px;color:var(--sq-muted);font-variant-numeric:tabular-nums;white-space:nowrap}.sb-block.sq-block .sq-progress{height:2px;background:var(--sq-line)}.sb-block.sq-block .sq-progress i{display:block;height:100%;background:var(--sq-accent);transition:width .25s ease}.sb-block.sq-block .sq-detail{padding:14px 18px 16px;background:var(--sq-paper)}.sb-block.sq-block .sq-meta,.sb-block.sq-block .sq-route{display:flex;align-items:center;flex-wrap:wrap;gap:5px 6px;font-size:12px;color:var(--sq-muted)}.sb-block.sq-block .sq-meta em,.sb-block.sq-block .sq-route em{font-style:normal;font-size:12px;color:var(--sq-faint);margin-left:2px}.sb-block.sq-block .sq-detail h4{margin:8px 0 4px;font-size:15px;line-height:1.5;font-weight:650}.sb-block.sq-block .sq-md p{margin:0 0 6px;font-size:14px;line-height:1.7}.sb-block.sq-block .sq-md p:last-child{margin-bottom:0}.sb-block.sq-block .sq-md strong{font-weight:650}.sb-block.sq-block .sq-md a{color:var(--sq-accent);text-underline-offset:3px}.sb-block.sq-block .sq-lnum{flex:none;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--sq-accent);color:var(--sq-paper);font-size:11.5px;font-weight:600;font-variant-numeric:tabular-nums}.sb-block.sq-block .sq-chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;line-height:1;padding:4px 8px;border-radius:6px;background:var(--ts);color:var(--t);font-weight:600;white-space:nowrap}.sb-block.sq-block .sq-arrow{color:var(--sq-faint);font-size:13px}.sb-block.sq-block .sq-cast{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.sb-block.sq-block .sq-panel-bar{margin:0 0 10px}.sb-block.sq-block .sq-panel-bar .sq-buttons button{padding:7px 9px}.sb-block.sq-block .sq-list{list-style:none;margin:0;padding:0;position:relative}.sb-block.sq-block .sq-list:before{content:"";position:absolute;left:21px;top:16px;bottom:16px;width:1px;background:var(--sq-line)}.sb-block.sq-block .sq-list li{position:relative;border-radius:10px;transition:opacity .2s ease}.sb-block.sq-block .sq-list li[data-state=todo]{opacity:.5}.sb-block.sq-block .sq-list li[data-state=cur]{background:var(--sq-soft);box-shadow:inset 0 0 0 1px var(--sq-line)}.sb-block.sq-block .sq-list button{display:flex;align-items:flex-start;gap:12px;width:100%;font:inherit;text-align:left;color:inherit;background:none;border:0;padding:10px;cursor:pointer;border-radius:10px}.sb-block.sq-block .sq-list .sq-lnum{position:relative;margin-top:1px;background:var(--sq-paper);color:var(--sq-muted);box-shadow:inset 0 0 0 1px var(--sq-line)}.sb-block.sq-block .sq-list li[data-state=cur] .sq-lnum{background:var(--sq-accent);color:var(--sq-paper);box-shadow:none}.sb-block.sq-block .sq-lbody{flex:1;min-width:0;display:grid;gap:5px}.sb-block.sq-block .sq-ltitle{font-size:14px;line-height:1.5;font-weight:500}.sb-block.sq-block .sq-list li[data-state=cur] .sq-ltitle{font-weight:650}.sb-block.sq-block .sq-ldetail{padding:0 14px 12px 44px}.sb-block.sq-block .sq-static{display:none}@media(prefers-reduced-motion:reduce){.sb-block.sq-block .sq-step,.sb-block.sq-block .sq-actor rect,.sb-block.sq-block .sq-life,.sb-block.sq-block .sq-progress i,.sb-block.sq-block .sq-list li,.sb-block.sq-block .sq-buttons button{transition:none}}@media print{.sb-block.sq-block .sq-hint,.sb-block.sq-block .sq-panel,.sb-block.sq-block .sq-list,.sb-block.sq-block .sq-cast{display:none}.sb-block.sq-block .sq-step[data-state]{opacity:1}.sb-block.sq-block .sq-band{display:none}.sb-block.sq-block .sq-actor[data-on] rect{fill:var(--sq-paper);stroke:var(--sq-line);stroke-width:1}.sb-block.sq-block .sq-life[data-on]{stroke:var(--sq-line);stroke-opacity:1;stroke-dasharray:3 4}.sb-block.sq-block .sq-step[data-state=cur] .sq-line,.sb-block.sq-block .sq-step[data-state=cur] .sq-open{stroke:var(--sq-wire);stroke-width:1.4}.sb-block.sq-block .sq-step[data-state=cur] .sq-head{fill:var(--sq-wire)}.sb-block.sq-block .sq-step[data-state=cur] .sq-num circle{fill:var(--sq-paper);stroke:var(--sq-line)}.sb-block.sq-block .sq-step[data-state=cur] .sq-num text{fill:var(--sq-muted)}.sb-block.sq-block .sq-static{display:block;margin-top:12px}.sb-block.sq-block .sq-static-title{margin:0 0 6px;font-weight:650}.sb-block.sq-block .sq-static ol{margin:0;padding-left:22px}.sb-block.sq-block .sq-static li{break-inside:avoid;margin-bottom:8px}.sb-block.sq-block .sq-static b{display:block;font-weight:600}}
|
|
2
|
+
`);var ts=V("sequenceDiagram",{"zh-CN":{title:"\u65F6\u5E8F\u56FE",diagram:"\u65F6\u5E8F\u56FE\uFF0C\u5171 {count} \u6B65\u3002\u65B9\u5411\u952E\u5207\u6362\u6B65\u9AA4\uFF0CHome / End \u8DF3\u5230\u9996\u5C3E\u3002",controls:"\u6B65\u9AA4\u63A7\u5236",prev:"\u4E0A\u4E00\u6B65",next:"\u4E0B\u4E00\u6B65",play:"\u64AD\u653E",pause:"\u6682\u505C",restart:"\u91CD\u6765",count:"\u7B2C {current} / {total} \u6B65",hint:"\u70B9\u51FB\u7BAD\u5934\u8DF3\u5230\u8BE5\u6B65 \xB7 \u65B9\u5411\u952E\u5207\u6362",reply:"\u8FD4\u56DE",note:"\u5907\u6CE8",stepTitle:"{number}. {from} \u2192 {to}\uFF1A{label}",allSteps:"\u5168\u90E8\u6B65\u9AA4",actors:"\u53C2\u4E0E\u8005"},en:{title:"Sequence diagram",diagram:"Sequence diagram with {count} steps. Arrow keys change the step; Home and End jump to the ends.",controls:"Step controls",prev:"Previous",next:"Next",play:"Play",pause:"Pause",restart:"Restart",count:"Step {current} of {total}",hint:"Click an arrow to jump \xB7 arrow keys to step",reply:"reply",note:"note",stepTitle:"{number}. {from} \u2192 {to}: {label}",allSteps:"All steps",actors:"Participants"}});var s=B(Y(),1),ls=1600,ns=46,rs=56,es="system-ui, -apple-system, sans-serif";function F({source:e}){return(0,s.jsx)(s.Fragment,{children:U(e).map((o,l)=>(0,s.jsx)("p",{children:(0,s.jsx)(ss,{source:o})},l))})}var j;function cs(e){return j===void 0&&(j=typeof document>"u"?null:document.createElement("canvas").getContext("2d")),(o,l,b=400)=>{if(j)return j.font=`${b} ${l}px ${e}`,j.measureText(o).width;let n=0;for(let m of o)n+=/[\u2e80-\uffff]/.test(m)?l:l*.58;return n}}function K(e,o,l,b,n=400){if(e(o,b,n)<=l)return o;let m=Array.from(o),N=0,S=m.length;for(;N<S;){let H=N+S+1>>1;e(`${m.slice(0,H).join("")}\u2026`,b,n)<=l?N=H:S=H-1}return`${m.slice(0,N).join("").trimEnd()}\u2026`}function is(e){let o=(Array.isArray(e.actors)?e.actors:[]).map(n=>({...n,tone:G.includes(n.tone)?n.tone:"accent"})),l=new Map(o.map((n,m)=>[n.id,m])),b=[];for(let n of Array.isArray(e.steps)?e.steps:[]){let m=l.get(n.from),N=l.get(n.to);m===void 0||N===void 0||b.push({...n,a:m,b:N,kind:n.kind==="reply"||n.kind==="note"?n.kind:"call"})}return{actors:o,steps:b}}var bs={prev:(0,s.jsx)("path",{d:"M10 3.5 5.5 8l4.5 4.5"}),next:(0,s.jsx)("path",{d:"M6 3.5 10.5 8 6 12.5"}),play:(0,s.jsx)("path",{className:"sq-fill",d:"M5 3.2v9.6L12.6 8z"}),pause:(0,s.jsx)("path",{className:"sq-fill",d:"M4.5 3.5h2.4v9H4.5zM9.1 3.5h2.4v9H9.1z"}),restart:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M3.5 8a4.5 4.5 0 1 0 1.4-3.3"}),(0,s.jsx)("path",{d:"M4.6 2.2v2.7h2.7"})]})},I=({name:e})=>(0,s.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:bs[e]});function X({actor:e}){return(0,s.jsxs)("span",{className:"sq-chip","data-tone":e.tone,children:[e.icon&&(0,s.jsx)("span",{"aria-hidden":"true",children:e.icon}),e.label]})}function _({step:e,actors:o,t:l}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(X,{actor:o[e.a]}),e.a!==e.b&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"sq-arrow","aria-hidden":"true",children:e.kind==="note"?"\xB7":"\u2192"}),(0,s.jsx)(X,{actor:o[e.b]})]}),e.kind!=="call"&&(0,s.jsx)("em",{children:l(e.kind)})]})}function os(e,o,l){return e.key==="Home"?0:e.key==="End"?l-1:e.key==="ArrowRight"||e.key==="ArrowDown"?Math.min(l-1,o+1):e.key==="ArrowLeft"||e.key==="ArrowUp"?Math.max(0,o-1):null}function ps({actors:e,steps:o,width:l,current:b,measure:n,go:m,label:N,stepTitle:S}){let T=(l-8)/e.length,L=t=>4+T*(t+.5),W=e.some(t=>t.sub)?58:42,D=Math.min(T-12,176),v=[],P=W+16;for(let t of o){let c=t.kind!=="note"&&t.a===t.b?rs:ns;v.push({top:P,h:c,y:P+30}),P+=c}let f=P+14,p=o[b],O=new Set(p?[p.a,p.b]:[]),z=(t,c,q)=>(0,s.jsxs)("g",{className:"sq-num",children:[(0,s.jsx)("circle",{cx:t,cy:c,r:10}),(0,s.jsx)("text",{x:t,y:c+4,textAnchor:"middle",children:q+1})]});return(0,s.jsxs)("svg",{className:"sq-svg",width:l,height:f,viewBox:`0 0 ${l} ${f}`,tabIndex:0,role:"group","aria-label":N,onKeyDown:t=>{let c=os(t,b,o.length);c!==null&&(t.preventDefault(),m(c))},children:[e.map((t,c)=>(0,s.jsx)("line",{className:"sq-life","data-tone":t.tone,"data-on":O.has(c)?"":void 0,x1:L(c),x2:L(c),y1:W,y2:f-4},t.id)),p&&(0,s.jsx)("rect",{className:"sq-band",x:2,y:v[b].top+3,width:l-4,height:v[b].h-6,rx:8}),e.map((t,c)=>{let q=L(c),M=t.icon?26:0,r=K(n,t.label,D-20-M,14,600),w=q-(n(r,14,600)+M)/2,y=t.sub?K(n,t.sub,D-16,12):"",g=t.sub?24:W/2+5;return(0,s.jsxs)("g",{className:"sq-actor","data-tone":t.tone,"data-on":O.has(c)?"":void 0,children:[(0,s.jsx)("rect",{x:q-D/2,y:1,width:D,height:W-2,rx:10}),t.icon&&(0,s.jsx)("text",{className:"sq-icon",x:w+9,y:g,textAnchor:"middle",children:t.icon}),(0,s.jsx)("text",{className:"sq-alabel",x:w+M,y:g,children:r}),y&&(0,s.jsx)("text",{className:"sq-asub",x:q,y:g+19,textAnchor:"middle",children:y}),(0,s.jsx)("title",{children:t.sub?`${t.label} \xB7 ${t.sub}`:t.label})]},t.id)}),o.map((t,c)=>{let q=v[c],M=c<b?"done":c===b?"cur":"todo",r=L(t.a),w=L(t.b),y=13,g=M==="cur"?600:500,a,i;if(t.kind==="note"){let k=Math.min(r,w),$=Math.max(r,w),x=n(t.label,y,g)+52,d,u;if(t.a===t.b){let E=Math.min(x,T-8);d=k-E/2,u=k+E/2}else if(d=k-T*.36,u=$+T*.36,u-d<x){let E=(k+$)/2;d=E-x/2,u=E+x/2}d=Math.max(4,d),u=Math.min(l-4,u);let C=K(n,t.label,u-d-52,y,g),R=27+n(C,y,g),A=(d+u)/2-R/2;a=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("rect",{className:"sq-note",x:d,y:q.top+8,width:u-d,height:30,rx:6}),z(A+10,q.top+23,c),(0,s.jsx)("text",{className:"sq-label",x:A+27,y:q.top+27.5,children:C})]}),i={x:d,w:u-d}}else if(t.a===t.b){let k=r+74+n(t.label,y,g)<l-4||r<l/2,$=k?1:-1,x=q.top+16,d=q.top+40,u=r+$*30,C=K(n,t.label,k?l-4-(r+70):r-74,y,g),R=27+n(C,y,g),A=k?r+44:r-44-R;a=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{className:"sq-line","data-reply":t.kind==="reply"?"":void 0,d:`M${r},${x}H${u-$*6}Q${u},${x} ${u},${x+6}V${d-6}Q${u},${d} ${u-$*6},${d}H${r+$*8}`}),(0,s.jsx)("path",{className:"sq-head",d:`M${r+$},${d}l${$*8},-4.5v9z`}),z(A+10,(x+d)/2,c),(0,s.jsx)("text",{className:"sq-label",x:A+27,y:(x+d)/2+4.5,children:C})]});let E=k?r-8:A-4;i={x:E,w:(k?A+R+8:r+8)-E}}else{let k=w>r?1:-1,$=r+k*2,x=w-k*2,d=K(n,t.label,Math.max(84,Math.abs(w-r)+T*.4-36),y,g),u=27+n(d,y,g),C=Math.max(4,Math.min(l-4-u,(r+w)/2-u/2)),R=t.kind==="reply";a=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{className:"sq-line","data-reply":R?"":void 0,d:`M${$},${q.y}H${x-k*(R?1:7)}`}),R?(0,s.jsx)("path",{className:"sq-open",d:`M${x-k*8},${q.y-5}L${x},${q.y}L${x-k*8},${q.y+5}`}):(0,s.jsx)("path",{className:"sq-head",d:`M${x},${q.y}l${-k*8},-4.5v9z`}),z(C+10,q.y-15,c),(0,s.jsx)("text",{className:"sq-label",x:C+27,y:q.y-10.5,children:d})]});let A=Math.min(r,w,C)-6;i={x:A,w:Math.max(r,w,C+u)+6-A}}return(0,s.jsxs)("g",{className:"sq-step","data-state":M,"data-kind":t.kind,onClick:()=>m(c),children:[(0,s.jsx)("rect",{className:"sq-hit",x:i.x,y:q.top+2,width:i.w,height:q.h-4}),a,(0,s.jsx)("title",{children:S(t,c)})]},c)})]})}function vs({data:e}){let o=J(ts),l=e,{actors:b,steps:n}=(0,h.useMemo)(()=>is(l),[l]),m=(0,h.useRef)(null),N=(0,h.useRef)(null),[S,H]=(0,h.useState)(800),[T,L]=(0,h.useState)(es),[W,D]=(0,h.useState)(0),[v,P]=(0,h.useState)(!1),f=n.length,p=Math.min(W,Math.max(0,f-1));(0,h.useEffect)(()=>{let a=m.current;if(!a)return;L(getComputedStyle(a).fontFamily||es);let i=()=>H(Math.floor(a.clientWidth));if(i(),typeof ResizeObserver!="function")return;let k=new ResizeObserver(i);return k.observe(a),()=>k.disconnect()},[]),(0,h.useEffect)(()=>{if(!v)return;let a=setInterval(()=>D(i=>Math.min(i+1,f-1)),ls);return()=>clearInterval(a)},[v,f]),(0,h.useEffect)(()=>{v&&p>=f-1&&P(!1)},[p,v,f]);let O=(0,h.useMemo)(()=>cs(T),[T]),z=a=>{P(!1),D(Math.max(0,Math.min(f-1,a)))},t=()=>{if(v)return P(!1);p>=f-1&&D(0),P(!0)},c=(a,i)=>o("stepTitle",{number:i+1,from:b[a.a].label,to:b[a.b].label,label:a.label}),q=Z(l.title,o("title")),M=S<640||(S-8)/Math.max(1,b.length)<96,r=n[p],w=a=>a<p?"done":a===p?"cur":"todo",y=(0,s.jsxs)("div",{className:"sq-bar",children:[(0,s.jsxs)("div",{className:"sq-buttons",role:"group","aria-label":o("controls"),children:[(0,s.jsxs)("button",{type:"button",onClick:()=>z(p-1),disabled:p===0,children:[(0,s.jsx)(I,{name:"prev"}),(0,s.jsx)("span",{children:o("prev")})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>z(p+1),disabled:p>=f-1,children:[(0,s.jsx)(I,{name:"next"}),(0,s.jsx)("span",{children:o("next")})]}),(0,s.jsxs)("button",{type:"button",className:"sq-play","aria-pressed":v,onClick:t,disabled:f<2,children:[(0,s.jsx)(I,{name:v?"pause":"play"}),(0,s.jsx)("span",{children:o(v?"pause":"play")})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>z(0),disabled:p===0&&!v,children:[(0,s.jsx)(I,{name:"restart"}),(0,s.jsx)("span",{children:o("restart")})]})]}),(0,s.jsx)("span",{className:"sq-count","aria-live":"polite",children:o("count",{current:p+1,total:f})})]}),g=(0,s.jsx)("div",{className:"sq-progress","aria-hidden":"true",children:(0,s.jsx)("i",{style:{width:`${(p+1)/Math.max(1,f)*100}%`}})});return(0,s.jsxs)("section",{className:"sb-block sq-block","aria-label":q,ref:m,"data-narrow":M?"":void 0,children:[(l.title||l.description||!M)&&(0,s.jsxs)("div",{className:"sq-top",children:[(0,s.jsxs)("div",{children:[l.title&&(0,s.jsx)("h3",{className:"sq-title",children:l.title}),l.description&&(0,s.jsx)("p",{className:"sq-description",children:l.description})]}),!M&&f>0&&(0,s.jsx)("span",{className:"sq-hint",children:o("hint")})]}),r&&(M?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"sq-cast","aria-label":o("actors"),children:b.map(a=>(0,s.jsx)(X,{actor:a},a.id))}),(0,s.jsxs)("div",{className:"sq-panel sq-panel-bar",children:[y,g]}),(0,s.jsx)("ol",{className:"sq-list",ref:N,onKeyDown:a=>{let i=os(a,p,f);i!==null&&(a.preventDefault(),z(i),N.current?.querySelectorAll("button")[i]?.focus())},children:n.map((a,i)=>(0,s.jsxs)("li",{"data-state":w(i),"data-kind":a.kind,children:[(0,s.jsxs)("button",{type:"button","aria-current":i===p?"step":void 0,onClick:()=>z(i),children:[(0,s.jsx)("span",{className:"sq-lnum",children:i+1}),(0,s.jsxs)("span",{className:"sq-lbody",children:[(0,s.jsx)("span",{className:"sq-route",children:(0,s.jsx)(_,{step:a,actors:b,t:o})}),(0,s.jsx)("span",{className:"sq-ltitle",children:a.label})]})]}),i===p&&a.detail&&(0,s.jsx)("div",{className:"sq-ldetail sq-md",children:(0,s.jsx)(F,{source:a.detail})})]},i))})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ps,{actors:b,steps:n,width:S,current:p,measure:O,go:z,label:o("diagram",{count:f}),stepTitle:c}),(0,s.jsxs)("div",{className:"sq-panel",children:[y,g,(0,s.jsxs)("div",{className:"sq-detail","aria-live":"polite",children:[(0,s.jsxs)("div",{className:"sq-meta",children:[(0,s.jsx)("span",{className:"sq-lnum",children:p+1}),(0,s.jsx)(_,{step:r,actors:b,t:o})]}),(0,s.jsx)("h4",{children:r.label}),r.detail&&(0,s.jsx)("div",{className:"sq-md",children:(0,s.jsx)(F,{source:r.detail})})]})]})]})),(0,s.jsxs)("div",{className:"sq-static",children:[(0,s.jsx)("p",{className:"sq-static-title",children:o("allSteps")}),(0,s.jsx)("ol",{children:n.map((a,i)=>(0,s.jsxs)("li",{children:[(0,s.jsx)("div",{className:"sq-route",children:(0,s.jsx)(_,{step:a,actors:b,t:o})}),(0,s.jsx)("b",{children:a.label}),a.detail&&(0,s.jsx)("div",{className:"sq-md",children:(0,s.jsx)(F,{source:a.detail})})]},i))})]})]})}export{F as DetailText,vs as SequenceDiagramBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as H}from"./chunk-
|
|
1
|
+
import{a as H}from"./chunk-NLDO4KEP.js";import{a as x,d as U}from"./chunk-KF47DKNH.js";import{d as z}from"./chunk-2XAH6DED.js";import{c as ee,hb as O,kb as q}from"./chunk-3YAYFUS4.js";import{c as L}from"./chunk-DUIGVKKG.js";var m=L(ee(),1);var t=L(O(),1),R={done:"\u2713",failed:"\u2715",active:"\u25CF",todo:"\u25CB",paused:"\u2016"},X={done:["var(--an-good)","var(--an-good-soft)"],failed:["var(--an-bad)","var(--an-bad-soft)"],active:["var(--an-info)","var(--an-info-soft)"],todo:["var(--an-idle)","var(--an-idle-soft)"],paused:["var(--an-warn)","var(--an-warn-soft)"]},v=s=>({"--tone":s.color??X[s.tone][0],"--tone-soft":s.color?`color-mix(in srgb, ${s.color} 14%, transparent)`:X[s.tone][1]}),te=new Map(x.map(s=>[s.id,s.label])),se={done:"tree.status.done",active:"tree.status.active",failed:"tree.status.failed",todo:"tree.status.todo",paused:"tree.status.paused"};function ae(s,o){let a=se[s.id];return a&&te.get(s.id)===s.label?{...s,label:o(a)}:s}function ne(){let s=(0,m.useRef)(null),[o,a]=(0,m.useState)(800);return(0,m.useEffect)(()=>{let r=s.current;if(!r)return;let d=new ResizeObserver(([c])=>a(c.contentRect.width));return d.observe(r),()=>d.disconnect()},[]),[s,o]}function Y({items:s,statuses:o,height:a}){return(0,t.jsx)("div",{className:"an-bar",style:a?{height:a,borderRadius:a/2}:void 0,children:o.map(r=>{let d=s.filter(c=>c.status===r.id).length;return d?(0,t.jsx)("div",{style:{...v(r),width:`${d/s.length*100}%`,background:"var(--tone)"}},r.id):null})})}function ue({data:s}){let o=q(H),a=s,r=(a.statuses??x).map(e=>ae(e,o)),d=new Map(r.map(e=>[e.id,e])),c=a.groups.flatMap(e=>e.items),G=U(a),[V,E]=ne(),[g,J]=(0,m.useState)(()=>(c.find(e=>d.get(e.status)?.tone==="active")??c[0])?.id??""),[h,Q]=(0,m.useState)(null),k=E<980?E:E-316,b=!!a.root&&k>760,N=b?150:0,W=200,D=b?46:36,y=b?N+D:0,S=y+W+D,I=Math.max(180,k-S),K=38,P=16,p=0,A=[],$=[];for(let e of a.groups){let n=p;for(let l of e.items)A.push({item:l,y:p+K/2,group:e}),p+=K;$.push({group:e,y:(n+p)/2,top:n,bottom:p}),p+=P}let C=Math.max(0,p-P),B=C/2,i=c.find(e=>e.id===g),_=a.groups.find(e=>e.items.some(n=>n.id===g)),f=i?d.get(i.status):void 0,F=e=>h!==null&&e.status!==h;return(0,t.jsxs)("section",{className:"sb-block an-block","aria-label":z(a.title,o("tree.title")),children:[(0,t.jsxs)("div",{className:"an-head",children:[a.title&&(0,t.jsx)("h3",{className:"an-title",children:a.title}),a.description&&(0,t.jsx)("p",{className:"an-sub",children:a.description}),(0,t.jsx)("div",{className:"an-tools",role:"group","aria-label":o("tree.highlightByStatus"),children:r.map(e=>(0,t.jsx)("button",{type:"button",className:"an-chip",style:{...v(e),color:"var(--tone)"},"aria-pressed":h===e.id,onClick:()=>Q(h===e.id?null:e.id),children:`${R[e.tone]} ${e.label} ${G[e.id]??0}`},e.id))})]}),(0,t.jsxs)("div",{className:"an-tree-layout",ref:V,children:[(0,t.jsxs)("div",{className:"an-tree",style:{height:C,width:k},children:[(0,t.jsxs)("svg",{width:k,height:C,"aria-hidden":"true",children:[b&&$.map(({group:e,y:n})=>{let l=(N+y)/2;return(0,t.jsx)("path",{d:`M${N},${B} C${l},${B} ${l},${n} ${y},${n}`,fill:"none",stroke:"var(--an-line)",strokeWidth:1.5},e.id)}),A.map(({item:e,y:n,group:l})=>{let w=$.find(j=>j.group.id===l.id),u=d.get(e.status),T=y+W,M=(T+S)/2,Z=u.tone==="todo"||u.tone==="paused";return(0,t.jsx)("path",{d:`M${T},${w.y} C${M},${w.y} ${M},${n} ${S},${n}`,fill:"none",style:v(u),stroke:"var(--tone)",strokeOpacity:F(e)?.12:Z?.45:.7,strokeWidth:e.id===g?2.5:1.6,strokeDasharray:u.tone==="failed"||u.tone==="todo"?"4 4":void 0},e.id)})]}),b&&(0,t.jsxs)("div",{className:"an-root",style:{left:0,top:B-60,width:N,height:120},children:[(0,t.jsx)("small",{children:o("tree.question")}),a.root]}),$.map(({group:e,y:n,top:l,bottom:w})=>{let u=Math.max(56,Math.min(w-l-6,92)),T=e.items.filter(M=>d.get(M.status)?.tone==="done").length;return(0,t.jsxs)("div",{className:"an-group",style:{left:y,top:n-u/2,width:W,height:u},children:[(0,t.jsxs)("div",{className:"an-group-top",children:[(0,t.jsx)("b",{children:e.label}),(0,t.jsxs)("span",{children:[T,"/",e.items.length]})]}),e.summary&&u>70&&(0,t.jsx)("div",{className:"an-group-summary",children:e.summary}),(0,t.jsx)(Y,{items:e.items,statuses:r})]},e.id)}),A.map(({item:e,y:n})=>{let l=d.get(e.status);return(0,t.jsxs)("button",{type:"button",className:`an-item an-st-${l.tone}${e.id===g?" is-selected":""}${F(e)?" is-dim":""}`,style:{...v(l),left:S,top:n-15,width:I,height:30},"aria-pressed":e.id===g,onClick:()=>J(e.id),children:[(0,t.jsx)("span",{className:"an-mark","aria-label":l.label,children:R[l.tone]}),(0,t.jsx)("span",{className:"an-item-label",children:e.label}),e.result&&I>420&&(0,t.jsx)("span",{className:"an-item-result",children:e.result}),e.source&&(0,t.jsx)("span",{className:"an-item-source",children:e.source})]},e.id)})]}),i&&f&&(0,t.jsxs)("aside",{className:"an-detail","aria-live":"polite",children:[(0,t.jsxs)("div",{className:"an-panel",children:[_&&(0,t.jsx)("div",{className:"an-sub",children:_.label}),(0,t.jsx)("h4",{children:i.label}),(0,t.jsxs)("span",{className:"an-pill",style:v(f),children:[R[f.tone]," ",f.label]}),i.source&&(0,t.jsxs)("span",{className:"an-sub",children:[" \xB7 ",o("tree.source",{source:i.source})]}),i.detail&&(0,t.jsxs)("div",{className:"an-field",children:[(0,t.jsx)("small",{children:o("tree.detail")}),i.detail]}),i.result&&(0,t.jsxs)("div",{className:"an-result-box",style:v(f),children:[(0,t.jsx)("small",{style:{color:"var(--tone)",fontWeight:600},children:o("tree.result")}),(0,t.jsx)("div",{children:i.result})]}),i.links&&i.links.length>0&&(0,t.jsxs)("div",{className:"an-field",children:[(0,t.jsx)("small",{children:o("tree.links")}),(0,t.jsx)("div",{className:"an-tags",children:i.links.map(e=>(0,t.jsx)("span",{className:"an-tag",children:e},e))})]})]}),(0,t.jsxs)("div",{className:"an-panel",children:[(0,t.jsx)("p",{className:"an-panel-title",children:o("tree.overall")}),(0,t.jsx)(Y,{items:c,statuses:r,height:10}),(0,t.jsx)("div",{className:"an-legend",children:r.map(e=>(0,t.jsxs)("span",{style:v(e),children:[(0,t.jsx)("b",{children:R[e.tone]})," ",e.label," ",G[e.id]??0]},e.id))})]})]})]}),(0,t.jsxs)("details",{className:"an-static",children:[(0,t.jsx)("summary",{children:o("tree.readAll",{count:c.length})}),a.groups.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{children:e.label}),(0,t.jsx)("ul",{children:e.items.map(n=>(0,t.jsxs)("li",{children:[(0,t.jsx)("b",{children:d.get(n.status)?.label})," \xB7"," ",n.result?o("tree.itemResult",{label:n.label,result:n.result}):n.label]},n.id))})]},e.id))]})]})}export{ue as StatusTreeBlock};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-R2O3ZCKW.js";import"./chunk-AO3QGOYX.js";import"./chunk-BJ2PXDYC.js";import"./chunk-2XAH6DED.js";import"./chunk-3YAYFUS4.js";import"./chunk-DUIGVKKG.js";export{a as CodePanel,b as StepGuideBlock};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as M,b as I,c as O}from"./chunk-QHZRUC47.js";import{d as E,f as y}from"./chunk-BJ2PXDYC.js";import{d as K}from"./chunk-2XAH6DED.js";import{a as P,c as V,hb as D,kb as T}from"./chunk-3YAYFUS4.js";import{c as j,d as A}from"./chunk-DUIGVKKG.js";var c=j(V(),1);P(`.sb-block.stb-block :is(h3,h4,p,ul,ol,li,pre):not(svg){margin:0}.sb-block.stb-block li:not(svg){padding:0}.sb-block.stb-block pre:not(svg){border:0;border-radius:0;background:none;color:inherit}.sb-block.stb-block{--stb-text: var(--text, #222222);--stb-muted: var(--muted, #6a6a6a);--stb-faint: var(--subtle, #929292);--stb-line: var(--line, #dddddd);--stb-paper: var(--paper, #ffffff);--stb-surface: var(--surface, #fafafa);--stb-hover: var(--hover, #f7f7f7);--stb-accent: var(--accent, #120a8f);--stb-accent-soft: var(--accent-soft, #eeedf9);--stb-mono: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);--stb-object: #7348d0;--stb-object-soft: #f2edfc;--stb-array: #0d8579;--stb-array-soft: #e6f4f2;--stb-note: #a8582a;color:var(--stb-text);font-family:inherit;font-size:14px;line-height:1.7;padding:8px 0;container-type:inline-size}:root[data-theme=dark] .sb-block.stb-block,[data-theme=dark] .sb-block.stb-block{--stb-object: #b497ff;--stb-object-soft: #2e2648;--stb-array: #4fc4b6;--stb-array-soft: #163734;--stb-note: #e79c64}.sb-block.stb-block *{box-sizing:border-box}.sb-block.stb-block .stb-heading{margin:0 0 10px;font-size:17px;font-weight:700}.sb-block.stb-block .stb-frame{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);border:1px solid var(--stb-line);border-radius:10px;overflow:hidden;background:var(--stb-paper)}.sb-block.stb-block .stb-nav{background:var(--stb-surface);border-right:1px solid var(--stb-line);padding:8px 0;min-width:0}.sb-block.stb-block .stb-tree{display:flex;flex-direction:column;gap:1px}.sb-block.stb-block .stb-row{position:relative;display:flex;align-items:center;gap:6px;min-height:30px;margin:0 6px;padding:0 10px 0 calc(8px + var(--depth) * 18px);border-radius:6px;cursor:pointer;font-family:var(--stb-mono);font-size:12.5px;line-height:1.2;color:var(--stb-text);user-select:none;-webkit-user-select:none}.sb-block.stb-block .stb-row:hover{background:var(--stb-hover)}.sb-block.stb-block .stb-row.is-selected{background:var(--stb-accent-soft)}.sb-block.stb-block .stb-row.is-selected .stb-name{color:var(--stb-accent);font-weight:600}.sb-block.stb-block .stb-row:focus{outline:none}.sb-block.stb-block .stb-row:focus-visible{outline:2px solid var(--stb-accent);outline-offset:-2px}.sb-block.stb-block .stb-guide{position:absolute;top:0;bottom:-1px;left:calc(8px + var(--level) * 18px + 6px);width:1px;background:var(--stb-line)}.sb-block.stb-block .stb-row.is-selected .stb-guide{background:color-mix(in srgb,var(--stb-accent) 18%,transparent)}.sb-block.stb-block .stb-chevron{flex:none;display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-right:-1px;border-radius:4px;color:var(--stb-faint)}.sb-block.stb-block .stb-chevron svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}.sb-block.stb-block .stb-chevron.is-open svg{transform:rotate(90deg)}.sb-block.stb-block .stb-row:hover .stb-chevron:not(.is-none){color:var(--stb-muted)}.sb-block.stb-block .stb-name,.sb-block.stb-block .stb-type{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 0}.sb-block.stb-block .stb-type{color:var(--stb-faint);font-family:var(--stb-mono);font-size:11.5px}.sb-block.stb-block .stb-badge{flex:none;margin-left:auto;display:inline-flex;align-items:center;height:19px;padding:0 7px;border-radius:6px;background:var(--stb-surface);border:1px solid var(--stb-line);font-family:var(--font-sans, inherit);font-size:11px;line-height:1;color:var(--stb-muted);white-space:nowrap}.sb-block.stb-block .stb-row .stb-badge{background:var(--stb-paper)}.sb-block.stb-block .stb-row.is-selected .stb-badge{border-color:color-mix(in srgb,var(--stb-accent) 22%,transparent);color:var(--stb-accent)}.sb-block.stb-block .stb-icon{flex:none;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center}.sb-block.stb-block svg.stb-icon{overflow:visible}.sb-block.stb-block .stb-icon.is-dir path{fill:color-mix(in srgb,var(--stb-accent) 14%,transparent);stroke:var(--stb-accent);stroke-width:1.2;stroke-linejoin:round}.sb-block.stb-block .stb-icon.is-dir.is-open path{fill:color-mix(in srgb,var(--stb-accent) 30%,transparent)}.sb-block.stb-block .stb-icon.is-file path{fill:none;stroke:var(--stb-muted);stroke-width:1.2;stroke-linejoin:round}.sb-block.stb-block .stb-icon.is-file path:first-child{fill:var(--stb-paper)}.sb-block.stb-block .stb-icon.is-field rect{fill:none;stroke:var(--stb-faint);stroke-width:1.3}.sb-block.stb-block .stb-icon.is-glyph{font-family:var(--stb-mono);font-size:10.5px;font-weight:700;letter-spacing:-.5px;border-radius:4px;line-height:16px}.sb-block.stb-block .stb-icon.is-object{color:var(--stb-object);background:var(--stb-object-soft)}.sb-block.stb-block .stb-icon.is-array{color:var(--stb-array);background:var(--stb-array-soft);letter-spacing:-2px;padding-right:2px}.sb-block.stb-block .stb-detail{padding:18px 24px 22px;min-width:0;overflow-wrap:anywhere}.sb-block.stb-block .stb-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:2px 4px;font-family:var(--stb-mono);font-size:11.5px;line-height:1.5;color:var(--stb-muted)}.sb-block.stb-block .stb-crumbs button{border:0;background:none;font:inherit;cursor:pointer;color:var(--stb-muted);border-radius:4px;padding:0 2px}.sb-block.stb-block .stb-crumbs button:hover{color:var(--stb-accent)}.sb-block.stb-block .stb-crumbs button:focus-visible{outline:2px solid var(--stb-accent);outline-offset:2px}.sb-block.stb-block .stb-crumbs [aria-current]{color:var(--stb-text);padding:0 2px}.sb-block.stb-block .stb-sep{color:var(--stb-faint)}.sb-block.stb-block .stb-title{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;margin-top:12px}.sb-block.stb-block .stb-title .stb-icon{width:18px;height:18px}.sb-block.stb-block .stb-title .stb-icon.is-glyph{font-size:11.5px;line-height:18px}.sb-block.stb-block .stb-title h4{margin:0;font-family:var(--stb-mono);font-size:17px;line-height:1.35;font-weight:600;letter-spacing:-.01em}.sb-block.stb-block .stb-dtype{font-family:var(--stb-mono);font-size:12px;line-height:1.5;color:var(--stb-muted);background:var(--stb-surface);border-radius:6px;padding:1px 7px}.sb-block.stb-block .stb-title .stb-badge{margin-left:0}.sb-block.stb-block .stb-meta{margin-top:3px;padding-left:27px;font-size:12px;color:var(--stb-faint)}.sb-block.stb-block .stb-summary{margin:12px 0 0;font-size:15px;line-height:1.65}.sb-block.stb-block .stb-body{margin-top:2px}.sb-block.stb-block .stb-para{margin:10px 0 0;line-height:1.75}.sb-block.stb-block ul.stb-para{padding-left:18px}.sb-block.stb-block ul.stb-para li+li{margin-top:3px}.sb-block.stb-block .stb-empty{margin:14px 0 0;font-size:13px;color:var(--stb-faint)}.sb-block.stb-block .stb-code{margin-top:16px;border:1px solid var(--stb-line);border-radius:8px;background:var(--stb-surface);overflow:hidden}.sb-block.stb-block .stb-codebar{display:flex;align-items:center;gap:8px;padding:5px 6px 5px 12px;border-bottom:1px solid var(--stb-line)}.sb-block.stb-block .stb-lang{font-family:var(--stb-mono);font-size:11px;color:var(--stb-muted);letter-spacing:.03em}.sb-block.stb-block .stb-copystate{flex:1;min-width:0;text-align:right;font-size:11.5px;color:var(--stb-note);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sb-block.stb-block .stb-copy{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:var(--stb-muted);font:inherit;font-size:12px;cursor:pointer}.sb-block.stb-block .stb-copy:hover{background:var(--stb-line);color:var(--stb-text)}.sb-block.stb-block .stb-copy:focus-visible{outline:2px solid var(--stb-accent);outline-offset:2px}.sb-block.stb-block .stb-copy svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.sb-block.stb-block .stb-copy.is-done{color:var(--stb-array)}.sb-block.stb-block .stb-code .stb-pre{margin:0;padding:12px 14px 14px;overflow-x:auto;font-family:var(--stb-mono);font-size:12.5px;line-height:1.65;white-space:pre;tab-size:2;scrollbar-width:thin}.sb-block.stb-block .stb-code code{font:inherit;background:none;border:0;padding:0;border-radius:0;color:inherit;overflow-wrap:normal}.sb-block.stb-block .stb-kids{margin-top:20px}.sb-block.stb-block .stb-kidshead{font-size:12px;font-weight:600;color:var(--stb-muted);letter-spacing:.04em;margin-bottom:4px}.sb-block.stb-block .stb-kid{display:grid;grid-template-columns:16px auto minmax(0,1fr);align-items:center;gap:9px;width:100%;padding:7px 8px;border:0;border-top:1px solid var(--stb-line);border-radius:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.sb-block.stb-block .stb-kid:last-child{border-bottom:1px solid var(--stb-line)}.sb-block.stb-block .stb-kid:hover{background:var(--stb-hover)}.sb-block.stb-block .stb-kid:focus-visible{outline:2px solid var(--stb-accent);outline-offset:-2px;border-radius:4px}.sb-block.stb-block .stb-kidname{font-family:var(--stb-mono);font-size:12.5px;white-space:nowrap}.sb-block.stb-block .stb-kidsum{font-size:12.5px;color:var(--stb-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sb-block.stb-block .stb-detail code,.sb-block.stb-block .stb-caption code,.sb-block.stb-block .stb-print code{font-family:var(--stb-mono);font-size:.88em;background:var(--stb-surface);border:1px solid var(--stb-line);border-radius:4px;padding:0 4px;overflow-wrap:anywhere}.sb-block.stb-block a{color:var(--stb-accent);text-decoration:none;border-bottom:1px solid color-mix(in srgb,var(--stb-accent) 35%,transparent)}.sb-block.stb-block a:hover{border-bottom-color:var(--stb-accent)}.sb-block.stb-block strong{font-weight:600}.sb-block.stb-block .stb-caption{margin:10px 2px 0;font-size:12.5px;line-height:1.65;color:var(--stb-muted)}.sb-block.stb-block .stb-print{display:none}.sb-block.stb-block .stb-print ul{list-style:none;margin:0;padding-left:18px}.sb-block.stb-block .stb-print>ul{padding-left:0}.sb-block.stb-block .stb-print li{margin:2px 0;break-inside:avoid}.sb-block.stb-block .stb-print-name{font-family:var(--stb-mono);font-weight:600;margin-right:6px}.sb-block.stb-block .stb-print .stb-type{display:inline;margin-right:6px}.sb-block.stb-block .stb-print .stb-badge{display:inline;height:auto;margin:0;padding:0 4px}.sb-block.stb-block .stb-print-summary{color:var(--stb-muted)}@container (max-width: 640px){.sb-block.stb-block .stb-frame{grid-template-columns:minmax(0,1fr)}.sb-block.stb-block .stb-nav{border-right:0;border-bottom:1px solid var(--stb-line)}.sb-block.stb-block .stb-detail{padding:16px 16px 18px}.sb-block.stb-block .stb-row{padding-left:calc(6px + var(--depth) * 16px)}.sb-block.stb-block .stb-guide{left:calc(6px + var(--level) * 16px + 6px)}.sb-block.stb-block .stb-summary{font-size:14.5px}}@media(prefers-reduced-motion:reduce){.sb-block.stb-block *{transition:none!important}}@media print{.sb-block.stb-block .stb-frame{display:none}.sb-block.stb-block .stb-print{display:block;font-size:12.5px;line-height:1.6}}
|
|
2
|
+
`);var B=A("structureBrowser",{"zh-CN":{title:"\u7ED3\u6784\u6D4F\u89C8\u5668",tree:"\u7ED3\u6784",path:"\u8DEF\u5F84","kind.dir":"\u6587\u4EF6\u5939","kind.file":"\u6587\u4EF6","kind.object":"\u5BF9\u8C61","kind.array":"\u6570\u7EC4","kind.field":"\u5B57\u6BB5",childCount:{other:"{count} \u4E2A\u5B50\u9879"},contains:"\u5305\u542B",example:"\u793A\u4F8B",copy:"\u590D\u5236",copied:"\u5DF2\u590D\u5236",copyLabel:"\u590D\u5236\u793A\u4F8B\uFF1A{name}",selectedToCopy:"\u5DF2\u9009\u4E2D\uFF0C\u6309 \u2318C / Ctrl+C \u590D\u5236",toggle:"\u5C55\u5F00\u6216\u6536\u8D77 {name}",noDetail:"\u8FD9\u4E00\u9879\u6CA1\u6709\u66F4\u591A\u8BF4\u660E\u3002",empty:"\u6CA1\u6709\u53EF\u663E\u793A\u7684\u7ED3\u6784\u3002"},en:{title:"Structure browser",tree:"Structure",path:"Path","kind.dir":"Folder","kind.file":"File","kind.object":"Object","kind.array":"Array","kind.field":"Field",childCount:{one:"{count} child",other:"{count} children"},contains:"Contains",example:"Example",copy:"Copy",copied:"Copied",copyLabel:"Copy example: {name}",selectedToCopy:"Selected \u2014 press \u2318C / Ctrl+C to copy",toggle:"Expand or collapse {name}",noDetail:"No further description for this item.",empty:"There is no structure to show."}});var t=j(D(),1);function U({source:l}){return l.trim().split(/\n\s*\n/).map((i,b)=>{let s=i.split(`
|
|
3
|
+
`);return s.every(a=>/^\s*[-•]\s+/.test(a))?(0,t.jsx)("ul",{className:"stb-para",children:s.map((a,d)=>(0,t.jsx)("li",{children:(0,t.jsx)(y,{source:a.replace(/^\s*[-•]\s+/,"")})},d))},b):(0,t.jsx)("p",{className:"stb-para",children:s.map((a,d)=>(0,t.jsxs)(c.Fragment,{children:[d>0&&(0,t.jsx)("br",{}),(0,t.jsx)(y,{source:a})]},d))},b)})}function L({kind:l,open:i}){return l==="dir"?(0,t.jsx)("svg",{className:`stb-icon is-dir${i?" is-open":""}`,viewBox:"0 0 16 16","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M1.75 4.25c0-.69.56-1.25 1.25-1.25h2.6l1.4 1.5h6c.69 0 1.25.56 1.25 1.25v6c0 .69-.56 1.25-1.25 1.25H3c-.69 0-1.25-.56-1.25-1.25z"})}):l==="file"?(0,t.jsxs)("svg",{className:"stb-icon is-file",viewBox:"0 0 16 16","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 1.75h5.2L12.75 5.3v8.2c0 .41-.34.75-.75.75H4a.75.75 0 0 1-.75-.75V2.5c0-.41.34-.75.75-.75z"}),(0,t.jsx)("path",{d:"M9 1.9v3.6h3.6"})]}):l==="object"?(0,t.jsx)("span",{className:"stb-icon is-glyph is-object","aria-hidden":"true",children:"{}"}):l==="array"?(0,t.jsx)("span",{className:"stb-icon is-glyph is-array","aria-hidden":"true",children:"[ ]"}):(0,t.jsx)("svg",{className:"stb-icon is-field",viewBox:"0 0 16 16","aria-hidden":"true",children:(0,t.jsx)("rect",{x:"5",y:"5",width:"6",height:"6",rx:"1.5",transform:"rotate(45 8 8)"})})}function _({code:l,lang:i,name:b}){let s=T(B),a=(0,c.useRef)(null),d=(0,c.useRef)(void 0),[m,k]=(0,c.useState)("idle");(0,c.useEffect)(()=>()=>window.clearTimeout(d.current),[]);let p=x=>{k(x),window.clearTimeout(d.current),d.current=window.setTimeout(()=>k("idle"),x==="copied"?1500:4e3)},h=()=>{let x=window.getSelection();if(a.current&&x){let g=document.createRange();g.selectNodeContents(a.current),x.removeAllRanges(),x.addRange(g)}p("selected")},w=()=>{if(!navigator.clipboard)return h();navigator.clipboard.writeText(l).then(()=>p("copied"),h)};return(0,t.jsxs)("div",{className:"stb-code",children:[(0,t.jsxs)("div",{className:"stb-codebar",children:[(0,t.jsx)("span",{className:"stb-lang",children:i||s("example")}),(0,t.jsx)("span",{className:"stb-copystate","aria-live":"polite",children:m==="selected"?s("selectedToCopy"):""}),(0,t.jsxs)("button",{type:"button",className:`stb-copy${m==="copied"?" is-done":""}`,"aria-label":s("copyLabel",{name:b}),onClick:w,children:[m==="copied"?(0,t.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3.5 8.5l3 3 6-6.5"})}):(0,t.jsxs)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.6"}),(0,t.jsx)("path",{d:"M10.5 3.5v-.4A1.6 1.6 0 0 0 8.9 1.5H4.1A1.6 1.6 0 0 0 2.5 3.1v4.8a1.6 1.6 0 0 0 1.6 1.6h.4"})]}),s(m==="copied"?"copied":"copy")]})]}),(0,t.jsx)("pre",{className:"stb-pre",children:(0,t.jsx)("code",{ref:a,children:l})})]})}function $({items:l,roots:i},b){let s=new Set;for(let k of l.values())k.node.open&&k.children.length&&s.add(k.path);let a=b?I(b):"",d=l.has(a)?a:null,m=d??i[0]??null;if(d)for(let k=d;k;k=l.get(k).parent)l.get(k).children.length&&s.add(k);else!s.size&&m&&l.get(m).children.length&&s.add(m);return{selected:m,open:s}}function F({paths:l,outline:i}){return(0,t.jsx)("ul",{children:l.map(b=>{let s=i.items.get(b);return(0,t.jsxs)("li",{children:[(0,t.jsx)("span",{className:"stb-print-name",children:s.node.name}),s.node.type&&(0,t.jsx)("span",{className:"stb-type",children:s.node.type}),s.node.badge&&(0,t.jsx)("span",{className:"stb-badge",children:s.node.badge}),s.node.summary&&(0,t.jsxs)("span",{className:"stb-print-summary",children:[" \u2014 ",(0,t.jsx)(y,{source:s.node.summary,links:!1})]}),s.children.length>0&&(0,t.jsx)(F,{paths:s.children,outline:i})]},b)})})}function et({data:l}){let i=T(B),b=l,s=(0,c.useMemo)(()=>O(b.nodes??[]),[b.nodes]),{items:a,roots:d}=s,[m,k]=(0,c.useState)(()=>$(s,b.initial));(0,c.useEffect)(()=>k($(s,b.initial)),[s,b.initial]);let{selected:p,open:h}=m,w=(e,o)=>k(u=>{let r=new Set(u.open);return o==="open"||o==="flip"&&!r.has(e)?r.add(e):(o==="close"||o==="flip")&&r.delete(e),{selected:e,open:r}}),x=e=>k(o=>{let u=new Set(o.open);for(let r=a.get(e)?.parent??null;r;r=a.get(r).parent)u.add(r);return{selected:e,open:u}}),g=(0,c.useMemo)(()=>{let e=[],o=u=>{for(let r of u){let f=a.get(r);e.push(f),f.children.length&&h.has(r)&&o(f.children)}};return o(d),e},[a,d,h]),z=(0,c.useRef)(new Map),C=(0,c.useRef)(!1);(0,c.useLayoutEffect)(()=>{C.current&&p&&z.current.get(p)?.focus(),C.current=!1},[p,g]);let H=e=>{if(!p)return;let o=a.get(p),u=g.findIndex(f=>f.path===p),r=(f,v)=>{e.preventDefault(),f&&(C.current=!0,w(f,v))};switch(e.key){case"ArrowDown":return r(g[u+1]?.path);case"ArrowUp":return r(g[u-1]?.path);case"Home":return r(g[0]?.path);case"End":return r(g[g.length-1]?.path);case"ArrowRight":return o.children.length?h.has(p)?r(o.children[0]):r(p,"open"):e.preventDefault();case"ArrowLeft":return o.children.length&&h.has(p)?r(p,"close"):r(o.parent);case"Enter":case" ":return o.children.length?r(p,"flip"):e.preventDefault()}},n=p?a.get(p):void 0,S=[];for(let e=p;e;e=a.get(e).parent)S.unshift(a.get(e));let R=e=>e.parent?a.get(e.parent).children:d;return(0,t.jsxs)("section",{className:"sb-block stb-block","aria-label":K(b.title,i("title")),children:[b.title&&(0,t.jsx)("h3",{className:"stb-heading",children:b.title}),(0,t.jsxs)("div",{className:"stb-frame",children:[(0,t.jsx)("div",{className:"stb-nav",children:(0,t.jsx)("div",{className:"stb-tree",role:"tree","aria-label":i("tree"),onKeyDown:H,children:g.map(e=>{let o=h.has(e.path),u=e.path===p,r=R(e);return(0,t.jsxs)("div",{ref:f=>{f?z.current.set(e.path,f):z.current.delete(e.path)},role:"treeitem","aria-level":e.depth+1,"aria-setsize":r.length,"aria-posinset":r.indexOf(e.path)+1,"aria-selected":u,"aria-expanded":e.children.length?o:void 0,tabIndex:u?0:-1,className:`stb-row${u?" is-selected":""}`,style:{"--depth":e.depth},onClick:()=>w(e.path,e.children.length&&(!o||u)?"flip":void 0),children:[Array.from({length:e.depth},(f,v)=>(0,t.jsx)("i",{className:"stb-guide",style:{"--level":v},"aria-hidden":"true"},v)),(0,t.jsx)("span",{className:`stb-chevron${e.children.length?"":" is-none"}${o?" is-open":""}`,"aria-hidden":"true",title:e.children.length?i("toggle",{name:e.node.name}):void 0,onClick:f=>{e.children.length&&(f.stopPropagation(),k(v=>{let N=new Set(v.open);return N.has(e.path)?N.delete(e.path):N.add(e.path),{...v,open:N}}))},children:e.children.length>0&&(0,t.jsx)("svg",{viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M4.5 2.75L7.75 6 4.5 9.25"})})}),(0,t.jsx)(L,{kind:e.kind,open:o}),(0,t.jsx)("span",{className:"stb-name",children:e.node.name}),e.node.type&&(0,t.jsx)("span",{className:"stb-type",children:e.node.type}),e.node.badge&&(0,t.jsx)("span",{className:"stb-badge",children:e.node.badge})]},e.path)})})}),(0,t.jsx)("div",{className:"stb-detail","aria-live":"polite",children:n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("nav",{className:"stb-crumbs","aria-label":i("path"),children:S.map((e,o)=>(0,t.jsxs)(c.Fragment,{children:[o>0&&(0,t.jsx)("span",{className:"stb-sep","aria-hidden":"true",children:"/"}),o<S.length-1?(0,t.jsx)("button",{type:"button",onClick:()=>w(e.path),children:M(e.node.name)}):(0,t.jsx)("span",{"aria-current":"location",children:M(e.node.name)})]},e.path))}),(0,t.jsxs)("div",{className:"stb-title",children:[(0,t.jsx)(L,{kind:n.kind}),(0,t.jsx)("h4",{children:n.node.name}),n.node.type&&(0,t.jsx)("span",{className:"stb-dtype",children:n.node.type}),n.node.badge&&(0,t.jsx)("span",{className:"stb-badge",children:n.node.badge})]}),(0,t.jsxs)("div",{className:"stb-meta",children:[i(`kind.${n.kind}`),n.children.length>0&&` \xB7 ${i("childCount",{count:n.children.length})}`]}),n.node.summary&&(0,t.jsx)("p",{className:"stb-summary",children:(0,t.jsx)(y,{source:n.node.summary})}),n.node.detail&&(0,t.jsx)("div",{className:"stb-body",children:(0,t.jsx)(U,{source:n.node.detail})}),n.node.example&&(0,t.jsx)(_,{code:n.node.example,lang:n.node.exampleLang,name:n.node.name},n.path),n.children.length>0&&(0,t.jsxs)("div",{className:"stb-kids",children:[(0,t.jsx)("div",{className:"stb-kidshead",children:i("contains")}),n.children.map(e=>{let o=a.get(e);return(0,t.jsxs)("button",{type:"button",className:"stb-kid",onClick:()=>x(e),children:[(0,t.jsx)(L,{kind:o.kind}),(0,t.jsx)("span",{className:"stb-kidname",children:o.node.name}),o.node.summary&&(0,t.jsx)("span",{className:"stb-kidsum",children:E(o.node.summary)})]},e)})]}),!n.node.summary&&!n.node.detail&&!n.node.example&&!n.children.length&&(0,t.jsx)("p",{className:"stb-empty",children:i("noDetail")})]}):(0,t.jsx)("p",{className:"stb-empty",children:i("empty")})})]}),(0,t.jsx)("div",{className:"stb-print",children:(0,t.jsx)(F,{paths:d,outline:s})}),b.caption&&(0,t.jsx)("p",{className:"stb-caption",children:(0,t.jsx)(y,{source:b.caption})})]})}export{et as StructureBrowserBlock};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{f as P,g as j}from"./chunk-3RZMLHCB.js";import{d as X}from"./chunk-2XAH6DED.js";import{a as H,c as be,hb as C,jb as V,kb as q}from"./chunk-3YAYFUS4.js";import{c as A,d as O}from"./chunk-DUIGVKKG.js";var c=A(be(),1);H(`.sb-block.wf-block :is(h3,h4,p,ul,ol,li,pre):not(svg){margin:0}.sb-block.wf-block li:not(svg){padding:0}.sb-block.wf-block pre:not(svg){border:0;border-radius:0;background:none;color:inherit}.sb-block.wf-block{--wf-text: var(--text, #222222);--wf-muted: var(--muted, #6a6a6a);--wf-line: var(--line, #dddddd);--wf-paper: var(--paper, #ffffff);--wf-surface: var(--surface, #fafafa);--wf-accent: var(--accent, #120a8f);--wf-accent-soft: var(--accent-soft, #eeedf9);--wf-good: #1d5fc4;--wf-bad: #c4402f;color:var(--wf-text);font-family:inherit;font-size:14px;line-height:1.5;padding:8px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;container-type:inline-size}:root[data-theme=dark] .sb-block.wf-block,[data-theme=dark] .sb-block.wf-block{--wf-good: #7fb0f0;--wf-bad: #ef8a7c}.sb-block.wf-block *{box-sizing:border-box}.sb-block.wf-block .wf-tone-total{--wf-tone: var(--wf-text)}.sb-block.wf-block .wf-tone-good{--wf-tone: var(--wf-good)}.sb-block.wf-block .wf-tone-bad{--wf-tone: var(--wf-bad)}.sb-block.wf-block .wf-eyebrow{font-size:11.5px;letter-spacing:.06em;color:var(--wf-muted);font-weight:600}.sb-block.wf-block .wf-title{font-size:17px;font-weight:700;margin:2px 0 0}.sb-block.wf-block .wf-story{margin:6px 0 14px;font-size:18px;line-height:1.42;font-weight:650;max-width:44em}.sb-block.wf-block .wf-heads{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin:0;border-top:2px solid var(--wf-text);border-bottom:1px solid var(--wf-line)}.sb-block.wf-block .wf-head{display:flex;flex-direction:column;gap:2px;padding:10px 14px 11px 0;min-width:0}.sb-block.wf-block .wf-head+.wf-head{padding-left:16px;border-left:1px solid var(--wf-line)}.sb-block.wf-block .wf-head dt{font-size:12px;color:var(--wf-muted);font-weight:600}.sb-block.wf-block .wf-head dd{margin:0;display:flex;flex-direction:column;gap:2px}.sb-block.wf-block .wf-head b{font-size:26px;line-height:1.1;font-weight:750;letter-spacing:-.02em;white-space:nowrap}.sb-block.wf-block .wf-head dd span{font-size:12.5px;font-weight:600;color:var(--wf-tone)}.sb-block.wf-block .wf-head dd .wf-tone-total{color:var(--wf-muted)}.sb-block.wf-block .wf-body{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:20px;margin-top:14px;align-items:stretch}.sb-block.wf-block .wf-chart{margin:0;min-width:0}.sb-block.wf-block .wf-scroll{overflow-x:auto}.sb-block.wf-block .wf-canvas{position:relative}.sb-block.wf-block .wf-canvas svg{display:block;overflow:visible}.sb-block.wf-block .wf-gridline{stroke:var(--wf-line)}.sb-block.wf-block .wf-zero{stroke:var(--wf-muted)}.sb-block.wf-block .wf-tick{font-size:11px;fill:var(--wf-muted)}.sb-block.wf-block .wf-break path{fill:none;stroke:var(--wf-muted);stroke-width:1.4}.sb-block.wf-block .wf-bar{cursor:pointer;outline:none}.sb-block.wf-block .wf-slot{fill:transparent}.sb-block.wf-block .wf-bar.is-active .wf-slot{fill:var(--wf-accent-soft)}.sb-block.wf-block .wf-bar:focus-visible .wf-slot{stroke:var(--wf-accent);stroke-width:2}.sb-block.wf-block .wf-fill{fill:var(--wf-tone);opacity:.78;transition:opacity .15s}.sb-block.wf-block .wf-bar:hover .wf-fill,.sb-block.wf-block .wf-bar.is-active .wf-fill{opacity:1}.sb-block.wf-block .wf-connector{stroke:var(--wf-muted);stroke-dasharray:3 3}.sb-block.wf-block .wf-value{font-size:12.5px;font-weight:700;fill:var(--wf-tone)}.sb-block.wf-block .wf-labels{position:absolute;left:0;right:0;height:44px}.sb-block.wf-block .wf-labels span{position:absolute;top:4px;padding:0 4px;text-align:center;font-size:12px;font-weight:600;line-height:1.3;color:var(--wf-muted);cursor:pointer}.sb-block.wf-block .wf-labels span.is-active{color:var(--wf-text);font-weight:750}.sb-block.wf-block .wf-chart figcaption{font-size:11.5px;color:var(--wf-muted);margin-top:4px;display:flex;flex-direction:column;gap:2px}.sb-block.wf-block .wf-warn{color:var(--wf-bad);font-weight:600}.sb-block.wf-block .wf-side{border-radius:12px;background:var(--wf-surface);border:1px solid var(--wf-line);padding:14px 16px;display:flex;flex-direction:column;min-width:0}.sb-block.wf-block .wf-side-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.sb-block.wf-block .wf-side-top span{font-size:13px;font-weight:700}.sb-block.wf-block .wf-side-top b{font-size:23px;font-weight:750;letter-spacing:-.02em;color:var(--wf-tone);white-space:nowrap}.sb-block.wf-block .wf-side-title{font-size:12px;color:var(--wf-muted);margin:2px 0 10px;font-weight:600}.sb-block.wf-block .wf-side ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}.sb-block.wf-block .wf-row{display:flex;justify-content:space-between;gap:8px;font-size:13px;font-weight:600}.sb-block.wf-block .wf-row span:first-child{min-width:0}.sb-block.wf-block .wf-num{white-space:nowrap}.sb-block.wf-block .wf-num em{font-style:normal;color:var(--wf-muted);margin-left:6px;font-size:12px}.sb-block.wf-block .wf-track{height:7px;border-radius:4px;background:color-mix(in srgb,var(--wf-line) 70%,transparent);margin-top:4px;overflow:hidden}.sb-block.wf-block .wf-track span{display:block;height:100%;border-radius:4px;background:var(--wf-tone);transition:width .3s ease}.sb-block.wf-block .wf-muted{color:var(--wf-muted);font-size:12px;margin:8px 0 0}.sb-block.wf-block .wf-note{font-size:12.5px;line-height:1.45;margin:12px 0 0;padding-top:10px;border-top:1px solid var(--wf-line)}.sb-block.wf-block .wf-hint{margin:auto 0 0;padding-top:10px;font-size:11.5px;color:var(--wf-muted)}.sb-block.wf-block .wf-static{margin-top:12px;font-size:13px}.sb-block.wf-block .wf-static summary{cursor:pointer;color:var(--wf-muted)}.sb-block.wf-block .wf-static table{border-collapse:collapse;width:100%;margin-top:8px}.sb-block.wf-block .wf-static th,.sb-block.wf-block .wf-static td{border-bottom:1px solid var(--wf-line);padding:4px 6px;text-align:left;vertical-align:top}@container (max-width: 760px){.sb-block.wf-block .wf-body{grid-template-columns:minmax(0,1fr)}.sb-block.wf-block .wf-head b{font-size:22px}.sb-block.wf-block .wf-story{font-size:16px}}@container (max-width: 420px){.sb-block.wf-block .wf-head+.wf-head{padding-left:0;border-left:0}}@media(prefers-reduced-motion:reduce){.sb-block.wf-block .wf-fill,.sb-block.wf-block .wf-track span{transition:none}}@media print{.sb-block.wf-block .wf-hint{display:none}.sb-block.wf-block .wf-scroll{overflow:visible}}
|
|
2
|
+
`);var _=O("waterfall",{"zh-CN":{title:"\u7011\u5E03\u6865\u56FE","kind.total":"\u5408\u8BA1","kind.up":"\u589E\u52A0","kind.down":"\u51CF\u5C11",chart:"\u4ECE\u671F\u521D\u5230\u671F\u672B\u7684\u9010\u9879\u53D8\u52A8",step:"{label}\uFF0C{kind} {value}",hint:"\u70B9\u51FB\u67F1\u5B50\u6216\u7528\u65B9\u5411\u952E\u5207\u6362\uFF0C\u67E5\u770B\u8FD9\u4E00\u6B65\u7684\u6784\u6210\u3002",axisFloor:"\u7EB5\u8F74\u4ECE {value} \u8D77\uFF0C\u4EE5\u4FBF\u770B\u6E05\u53D8\u52A8\u3002",mismatch:"\u300C{label}\u300D\u5199\u7684\u662F {stated}\uFF0C\u5404\u9879\u7D2F\u8BA1\u4E3A {computed}\uFF0C\u4E24\u8005\u5BF9\u4E0D\u4E0A\u3002",share:"\u5360\u6BD4",noBreakdown:"\u8FD9\u4E00\u6B65\u6CA1\u6709\u5217\u51FA\u6784\u6210\u3002",breakdownGap:"\u660E\u7EC6\u5408\u8BA1 {sum}\uFF0C\u4E0E\u8FD9\u4E00\u6B65\u7684 {value} \u76F8\u5DEE {gap}\u3002",readAll:"\u4EE5\u8868\u683C\u9605\u8BFB\u5168\u90E8\u6B65\u9AA4\uFF08{count}\uFF09","column.step":"\u6B65\u9AA4","column.kind":"\u7C7B\u578B","column.value":"\u53D8\u52A8","column.level":"\u7D2F\u8BA1"},en:{title:"Waterfall","kind.total":"Total","kind.up":"Increase","kind.down":"Decrease",chart:"Step-by-step change from opening to closing value",step:"{label}, {kind} {value}",hint:"Click a bar or use the arrow keys to see what makes up that step.",axisFloor:"The axis starts at {value} so the changes stay visible.",mismatch:"\u201C{label}\u201D states {stated}, but the steps add up to {computed}.",share:"Share",noBreakdown:"No breakdown is listed for this step.",breakdownGap:"Items add up to {sum}, {gap} away from this step's {value}.",readAll:"Read every step as a table ({count})","column.step":"Step","column.kind":"Kind","column.value":"Change","column.level":"Running total"}});var t=A(C(),1),u=300,s={left:52,right:8,top:28,bottom:12},de=64;function we(){let m=(0,c.useRef)(null),[i,b]=(0,c.useState)(640);return(0,c.useEffect)(()=>{let l=m.current;if(!l)return;let a=new ResizeObserver(([n])=>b(n.contentRect.width));return a.observe(l),()=>a.disconnect()},[]),[m,i]}function pe(m,i){let b=(i-m)/4,l=10**Math.floor(Math.log10(b)),a=[1,2,2.5,5,10].map(d=>d*l).find(d=>d>=b)??b,n=[];for(let d=Math.ceil(m/a)*a;d<=i+a*1e-6;d+=a)n.push(Number(d.toPrecision(12)));return n}function Ne({data:m}){let i=q(_),b=V(),l=m,a=l.steps,n=l.format??{},d=l.upIsGood??!0,J=(0,c.useMemo)(()=>new Intl.NumberFormat(b,{minimumFractionDigits:n.decimals??0,maximumFractionDigits:n.decimals??0}),[b,n.decimals]),Q=(0,c.useMemo)(()=>new Intl.NumberFormat(b,{maximumFractionDigits:n.decimals??0}),[b,n.decimals]),f=(e,o=!1,h=!1)=>{let D=(h?Q:J).format(Math.abs(e)/(n.divisor??1));return`${e<0?"\u2212":o&&e>0?"+":""}${n.prefix??""}${D}${n.suffix??""}`},y=e=>e.kind==="total"?f(e.value):f(e.kind==="down"?-e.value:e.value,!0),F=e=>e==="total"||e==="neutral"?"total":e==="up"===d?"good":"bad",{spans:N}=P(a),E=N.map((e,o)=>a[o].kind==="total"?a[o].value:a[o].kind==="down"?e[0]:e[1]),U=j(l),[Y,M]=(0,c.useState)(()=>l.initialStep??a[1]?.id??a[0].id),r=a.find(e=>e.id===Y)??a[0],[Z,ee]=we(),K=(0,c.useRef)(null),G=(0,c.useRef)(null);(0,c.useEffect)(()=>{let e=()=>{G.current&&(G.current.open=!0)};return window.addEventListener("beforeprint",e),()=>window.removeEventListener("beforeprint",e)},[]);let g=Math.max(ee,s.left+s.right+a.length*de),z=Math.max(...N.map(e=>e[1])),te=Math.min(...N.map(e=>e[0])),w=l.axisFloor??Math.min(0,te),I=pe(w,z>w?z:w+1),oe=Math.max(z,I[I.length-1]??z),p=e=>s.top+(1-(Math.max(e,w)-w)/(oe-w||1))*(u-s.top-s.bottom),k=(g-s.left-s.right)/a.length,S=Math.min(k*.6,72),L=e=>s.left+e*k+(k-S)/2,T=w>0,ae=e=>{let o=a[(e+a.length)%a.length];M(o.id),K.current?.querySelector(`[data-step="${CSS.escape(o.id)}"]`)?.focus()},le=(e,o)=>{e.key==="Enter"||e.key===" "?(e.preventDefault(),M(a[o].id)):(e.key==="ArrowRight"||e.key==="ArrowLeft")&&(e.preventDefault(),ae(o+(e.key==="ArrowRight"?1:-1)))},v=r.breakdown?.items??[],x=v.reduce((e,o)=>e+o.value,0),se=Math.max(1e-9,...v.map(e=>Math.abs(e.value))),ie=.5*(n.divisor??1)/10**(n.decimals??0),ne=v.length>0&&Math.abs(x-Math.abs(r.value))>ie,B=e=>i(`kind.${e}`);return(0,t.jsxs)("section",{className:"sb-block wf-block","aria-label":X(l.title,i("title")),children:[l.eyebrow&&(0,t.jsx)("div",{className:"wf-eyebrow",children:l.eyebrow}),l.title&&(0,t.jsx)("h3",{className:"wf-title",children:l.title}),l.narrative&&(0,t.jsx)("p",{className:"wf-story",children:l.narrative}),l.headlines&&l.headlines.length>0&&(0,t.jsx)("dl",{className:"wf-heads",children:l.headlines.map((e,o)=>(0,t.jsxs)("div",{className:"wf-head",children:[(0,t.jsx)("dt",{children:e.label}),(0,t.jsxs)("dd",{children:[(0,t.jsx)("b",{children:e.value}),e.detail&&(0,t.jsx)("span",{className:`wf-tone-${F(e.tone??"neutral")}`,children:e.detail})]})]},o))}),(0,t.jsxs)("div",{className:"wf-body",children:[(0,t.jsxs)("figure",{className:"wf-chart",children:[(0,t.jsx)("div",{className:"wf-scroll",ref:Z,children:(0,t.jsxs)("div",{className:"wf-canvas",style:{width:g,height:u+44},children:[(0,t.jsxs)("svg",{width:g,height:u,role:"group","aria-label":i("chart"),children:[I.map(e=>(0,t.jsxs)("g",{"aria-hidden":"true",children:[(0,t.jsx)("line",{className:"wf-gridline",x1:s.left,x2:g-s.right,y1:p(e),y2:p(e)}),(0,t.jsx)("text",{className:"wf-tick",x:s.left-8,y:p(e)+4,textAnchor:"end",children:f(e,!1,!0)})]},e)),w<0&&(0,t.jsx)("line",{className:"wf-zero","aria-hidden":"true",x1:s.left,x2:g-s.right,y1:p(0),y2:p(0)}),T&&(0,t.jsxs)("g",{className:"wf-break","aria-hidden":"true",children:[(0,t.jsx)("path",{d:`M${s.left-5} ${u-s.bottom+2} l5 -5 l5 5`}),(0,t.jsx)("path",{d:`M${s.left-5} ${u-s.bottom+8} l5 -5 l5 5`})]}),(0,t.jsx)("g",{ref:K,children:a.map((e,o)=>{let[h,D]=N[o],$=L(o),R=p(D),re=Math.max(2,p(h)-R),W=e.id===r.id,ce=o<a.length-1;return(0,t.jsxs)("g",{className:`wf-bar wf-tone-${F(e.kind)}${W?" is-active":""}`,"data-step":e.id,tabIndex:0,role:"button","aria-pressed":W,"aria-label":i("step",{label:e.label,kind:B(e.kind),value:y(e)}),onClick:()=>M(e.id),onKeyDown:fe=>le(fe,o),children:[(0,t.jsx)("rect",{className:"wf-slot",x:s.left+o*k+2,y:s.top-24,width:k-4,height:u-s.top+22,rx:8}),(0,t.jsx)("rect",{className:"wf-fill",x:$,y:R,width:S,height:re,rx:3}),ce&&(0,t.jsx)("line",{className:"wf-connector",x1:$+S,x2:L(o+1),y1:p(E[o]),y2:p(E[o])}),(0,t.jsx)("text",{className:"wf-value",x:$+S/2,y:R-7,textAnchor:"middle",children:y(e)})]},e.id)})})]}),(0,t.jsx)("div",{className:"wf-labels",style:{top:u},"aria-hidden":"true",children:a.map((e,o)=>(0,t.jsx)("span",{className:e.id===r.id?"is-active":void 0,style:{left:s.left+o*k,width:k},onClick:()=>M(e.id),children:e.label},e.id))})]})}),(0,t.jsxs)("figcaption",{children:[l.axisNote??(T?i("axisFloor",{value:f(w)}):null),U.map(e=>(0,t.jsx)("span",{className:"wf-warn",role:"status",children:i("mismatch",{label:a.find(o=>o.id===e.id).label,stated:f(e.stated),computed:f(e.computed)})},e.id))]})]}),(0,t.jsxs)("aside",{className:`wf-side wf-tone-${F(r.kind)}`,"aria-live":"polite",children:[(0,t.jsxs)("div",{className:"wf-side-top",children:[(0,t.jsx)("span",{children:r.label}),(0,t.jsx)("b",{children:y(r)})]}),r.breakdown?.title&&(0,t.jsx)("div",{className:"wf-side-title",children:r.breakdown.title}),v.length>0?(0,t.jsx)("ul",{children:v.map((e,o)=>(0,t.jsxs)("li",{children:[(0,t.jsxs)("div",{className:"wf-row",children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsxs)("span",{className:"wf-num",children:[f(e.value),(0,t.jsx)("em",{"aria-label":i("share"),children:x?`${Math.round(e.value/x*100)}%`:"\u2013"})]})]}),(0,t.jsx)("div",{className:"wf-track","aria-hidden":"true",children:(0,t.jsx)("span",{style:{width:`${Math.abs(e.value)/se*100}%`}})})]},o))}):(0,t.jsx)("p",{className:"wf-muted",children:i("noBreakdown")}),ne&&(0,t.jsx)("p",{className:"wf-muted",children:i("breakdownGap",{sum:f(x),value:f(Math.abs(r.value)),gap:f(Math.abs(x-Math.abs(r.value)))})}),r.breakdown?.note&&(0,t.jsx)("p",{className:"wf-note",children:r.breakdown.note}),(0,t.jsx)("p",{className:"wf-hint",children:i("hint")})]})]}),(0,t.jsxs)("details",{className:"wf-static",ref:G,children:[(0,t.jsx)("summary",{children:i("readAll",{count:a.length})}),(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:i("column.step")}),(0,t.jsx)("th",{children:i("column.kind")}),(0,t.jsx)("th",{children:i("column.value")}),(0,t.jsx)("th",{children:i("column.level")})]})}),(0,t.jsx)("tbody",{children:a.map((e,o)=>(0,t.jsxs)("tr",{children:[(0,t.jsxs)("td",{children:[e.label,e.breakdown&&e.breakdown.items.length>0&&(0,t.jsx)("div",{className:"wf-muted",children:e.breakdown.items.map(h=>`${h.label} ${f(h.value)}`).join(" \xB7 ")})]}),(0,t.jsx)("td",{children:B(e.kind)}),(0,t.jsx)("td",{children:y(e)}),(0,t.jsx)("td",{children:f(E[o])})]},e.id))})]})]})]})}export{Ne as WaterfallBlock};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as p}from"./chunk-
|
|
2
|
-
/*! For license information please see chunk-
|
|
1
|
+
import{c as p}from"./chunk-3YAYFUS4.js";import{a as d}from"./chunk-DUIGVKKG.js";var w=d(V=>{"use strict";var f=p();function q(e,u){return e===u&&(e!==0||1/e===1/u)||e!==e&&u!==u}var z=typeof Object.is=="function"?Object.is:q,I=f.useState,M=f.useEffect,_=f.useLayoutEffect,g=f.useDebugValue;function G(e,u){var t=u(),s=I({inst:{value:t,getSnapshot:u}}),r=s[0].inst,n=s[1];return _(function(){r.value=t,r.getSnapshot=u,E(r)&&n({inst:r})},[e,t,u]),M(function(){return E(r)&&n({inst:r}),e(function(){E(r)&&n({inst:r})})},[e]),g(t),t}function E(e){var u=e.getSnapshot;e=e.value;try{var t=u();return!z(e,t)}catch{return!0}}function L(e,u){return u()}var $=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?L:G;V.useSyncExternalStore=f.useSyncExternalStore!==void 0?f.useSyncExternalStore:$});var D=d((P,h)=>{"use strict";h.exports=w()});var R=d(O=>{"use strict";var m=p(),k=D();function C(e,u){return e===u&&(e!==0||1/e===1/u)||e!==e&&u!==u}var U=typeof Object.is=="function"?Object.is:C,W=k.useSyncExternalStore,A=m.useRef,B=m.useEffect,F=m.useMemo,H=m.useDebugValue;O.useSyncExternalStoreWithSelector=function(e,u,t,s,r){var n=A(null);if(n.current===null){var i={hasValue:!1,value:null};n.current=i}else i=n.current;n=F(function(){function y(o){if(!j){if(j=!0,l=o,o=s(o),r!==void 0&&i.hasValue){var c=i.value;if(r(c,o))return v=c}return v=o}if(c=v,U(l,o))return c;var b=s(o);return r!==void 0&&r(c,b)?(l=o,c):(l=o,v=b)}var j=!1,l,v,S=t===void 0?null:t;return[function(){return y(u())},S===null?void 0:function(){return y(S())}]},[u,t,s,r]);var a=W(e,n[0],n[1]);return B(function(){i.hasValue=!0,i.value=a},[a]),H(a),a}});var J=d((T,N)=>{"use strict";N.exports=R()});export{D as a,J as b};
|
|
2
|
+
/*! For license information please see chunk-2CPNXVIL.js.LEGAL.txt */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ja as S,c as v,gb as B,hb as d,ib as T,kb as y}from"./chunk-3YAYFUS4.js";import{c as i,d as h}from"./chunk-DUIGVKKG.js";var u=i(v(),1),N=i(T(),1),R=i(d(),1),g=(0,u.createContext)(null);function x({children:e}){let t=(0,u.useContext)(g);return t?t.selected&&t.target?(0,N.createPortal)(e,t.target):null:e}function H({children:e}){let t=(0,u.useContext)(g);return t?t.target?(0,N.createPortal)((0,R.jsx)("div",{className:"board-component-settings","data-surface-ui":!0,hidden:!t.selected,onKeyDown:s=>{s.key==="Escape"&&t.closeSettings&&(s.preventDefault(),s.stopPropagation(),t.closeSettings(),t.target?.querySelector(".sb-actions > button.sb-icon-button.is-active:last-child")?.focus({preventScroll:!0}))},children:e}),t.target):null:e}var m=i(v(),1);var A=h("blocks",{"zh-CN":{blockActions:"\u7EC4\u4EF6\u64CD\u4F5C",closeSettings:"\u5173\u95ED\u8BBE\u7F6E",editBlock:"\u7F16\u8F91\u533A\u5757"},en:{blockActions:"Block actions",closeSettings:"Close settings",editBlock:"Edit block"}});var o=i(d(),1),C=new Set(["\u6570\u636E\u56FE\u8868|\u6570\u636E\u5E93|\u5173\u952E\u6307\u6807|\u4EA4\u4E92\u8BA1\u7B97|\u56FE\u7247\u753B\u5ECA|\u4EA4\u4E92\u6D41\u7A0B\u56FE|\u601D\u7EF4\u5BFC\u56FE|G2 \u56FE\u8868|\u56FE\u8868","\u67F1\u72B6\u56FE|\u6298\u7EBF\u56FE|\u9762\u79EF\u56FE|\u6563\u70B9\u56FE|\u6C14\u6CE1\u56FE|\u5206\u7EC4\u67F1\u72B6\u56FE|\u53CC\u5411\u6761\u5F62\u56FE|\u96F7\u8FBE\u56FE|\u5F84\u5411\u6761\u5F62\u56FE|\u5E73\u884C\u5750\u6807|\u56DE\u5F52\u66F2\u7EBF","\u997C\u56FE|\u73AF\u56FE|\u5806\u53E0\u67F1\u72B6\u56FE|\u5806\u53E0\u9762\u79EF\u56FE|\u73AB\u7470\u56FE|\u9A6C\u8D5B\u514B\u56FE|\u77E9\u5F62\u6811\u56FE|\u65ED\u65E5\u56FE|\u6F0F\u6597\u56FE","\u76F4\u65B9\u56FE|\u7BB1\u7EBF\u56FE|\u5C0F\u63D0\u7434\u56FE|\u5206\u5E03\u66F2\u7EBF|\u5BC6\u5EA6\u70ED\u529B\u56FE|\u8272\u5757\u56FE|\u7B49\u9AD8\u7EBF\u56FE|\u830E\u53F6\u56FE","\u6851\u57FA\u56FE|\u5F26\u56FE|\u5F27\u56FE|\u5706\u5F62\u6253\u5305\u56FE|\u97E6\u6069\u56FE|\u7518\u7279\u56FE|K \u7EBF\u56FE|Kagi \u8F6C\u5411\u56FE|\u87BA\u65CB\u56FE","\u5206\u7EA7\u8BBE\u8272\u5730\u56FE|\u70B9\u5730\u56FE|\u6C14\u6CE1\u5730\u56FE|\u4EEA\u8868\u76D8|\u5B50\u5F39\u56FE|\u8BCD\u4E91"].join("|").split("|"));function D(e,t){return typeof e=="string"&&e.trim()&&!C.has(e.trim())?e:t}function P({title:e,defaultTitle:t,description:s,editable:c,editing:n,onEdit:l,children:b}){let r=y(A),a=(0,m.useContext)(g);(0,m.useLayoutEffect)(()=>{if(!(!a||!n||!l))return a.closeSettings=l,()=>{a.closeSettings===l&&delete a.closeSettings}},[a,n,l]);let p=e?.trim(),f=p&&p!==t&&!C.has(p)?p:"",k=!!(f||s?.trim());return!k&&!b&&!c?null:(0,o.jsxs)("div",{className:`sb-header${k?" has-caption":""}${n?" is-editing":""}`,children:[k&&(0,o.jsxs)("div",{className:"sb-heading",children:[f&&(0,o.jsx)("div",{className:"sb-title",children:f}),s?.trim()&&(0,o.jsx)("p",{className:"sb-description",children:s})]}),(b||c)&&(0,o.jsx)(x,{children:(0,o.jsxs)("div",{className:"sb-actions",role:"group","aria-label":r("blockActions"),children:[b,c&&(0,o.jsx)("button",{type:"button",className:`sb-icon-button ${n?"is-active":""}`,onClick:l,"aria-label":r(n?"closeSettings":"editBlock"),title:r(n?"closeSettings":"editBlock"),children:n?(0,o.jsx)(B,{size:16}):(0,o.jsx)(S,{size:16})})]})})]})}function q({icon:e,title:t,description:s,action:c}){return(0,o.jsxs)("div",{className:"sb-empty",children:[e,(0,o.jsx)("strong",{children:t}),s&&(0,o.jsx)("p",{children:s}),c]})}function F({label:e,children:t,className:s=""}){return(0,o.jsxs)("label",{className:`sb-field ${s}`,children:[(0,o.jsx)("span",{children:e}),t]})}export{g as a,x as b,H as c,D as d,P as e,q as f,F as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=e=>{throw new Error(e)},y=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function m(e,s,n=400){(typeof e!="string"||!e.trim())&&r(`${s} must be non-empty text.`),e.length>n&&r(`${s} must be at most ${n} characters.`)}function u(e,s,n){e!==void 0&&m(e,s,n)}function h(e,s){(typeof e!="number"||!Number.isFinite(e))&&r(`${s} must be a finite number.`)}function $(e,s,n,i=0){return(!Array.isArray(e)||e.length<i||e.length>n)&&r(`${s} must be an array of ${i} to ${n} items.`),e.forEach((o,d)=>{y(o)||r(`${s}[${d}] must be an object.`)}),e}function w(e,s){let n=new Set;return e.forEach((i,o)=>{m(i.id,`${s}[${o}].id`,60),n.has(i.id)&&r(`${s} contains duplicate id ${i.id}.`),n.add(i.id)}),n}function D(e,s){e!==void 0&&!/^#[0-9a-fA-F]{6}$/.test(e)&&r(`${s} must be a six-digit hex color.`)}function g(e,s,n){s.includes(e)||r(`${n} must be one of ${s.join(", ")}.`)}var v=864e5;function c(e){let s=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e??"");if(!s)return Number.NaN;let[n,i,o]=s.slice(1).map(Number),d=Date.UTC(n,i-1,o),a=new Date(d);return a.getUTCFullYear()===n&&a.getUTCMonth()===i-1&&a.getUTCDate()===o?d/v:Number.NaN}function A(e){return new Date(e*v).toISOString().slice(0,10)}function b(e,s){return Number.isNaN(c(e))&&r(`${s} must be a calendar date written YYYY-MM-DD.`),c(e)}var F=["done","active","todo","blocked"],M=[{id:"done",label:"\u5DF2\u5B8C\u6210",tone:"done"},{id:"active",label:"\u8FDB\u884C\u4E2D",tone:"active"},{id:"todo",label:"\u672A\u5F00\u59CB",tone:"todo"},{id:"blocked",label:"\u53D7\u963B",tone:"blocked"}],E=400;function T(e){return c(e.end)-c(e.start)+1}function I(e){if(e.start&&e.end)return{start:c(e.start),end:c(e.end)};let s=[...e.items.flatMap(n=>[c(n.start),c(n.end)]),...(e.milestones??[]).map(n=>c(n.date)),...e.deadline?[c(e.deadline.date)]:[]];return{start:e.start?c(e.start):Math.min(...s),end:e.end?c(e.end):Math.max(...s)}}function W(e){let s=new Map((e.statuses??M).map(i=>[i.id,i.tone])),n={};for(let i of e.items){let o=i.owner??"",d=n[o]??={scheduled:0,open:0,items:0},a=T(i);d.scheduled+=a,d.items+=1,s.get(i.status)!=="done"&&(d.open+=a*(1-(i.progress??0)))}return n}function j(e){u(e.description,"description",400);for(let t of["start","end","today"])e[t]!==void 0&&b(e[t],t);e.start!==void 0&&e.end!==void 0&&c(e.end)<c(e.start)&&r("end must be on or after start."),e.groupBy!==void 0&&g(e.groupBy,["lane","owner"],"groupBy");let s=new Set;if(e.owners!==void 0){$(e.owners,"owners",8,1);for(let t of w(e.owners,"owners"))s.add(t);e.owners.forEach((t,l)=>{m(t.label,`owners[${l}].label`,40),D(t.color,`owners[${l}].color`)})}let n=w($(e.lanes,"lanes",12,1),"lanes");e.lanes.forEach((t,l)=>{m(t.label,`lanes[${l}].label`,40),u(t.summary,`lanes[${l}].summary`,120)}),e.statuses!==void 0&&($(e.statuses,"statuses",6,1),w(e.statuses,"statuses"),e.statuses.forEach((t,l)=>{m(t.label,`statuses[${l}].label`,30),g(t.tone,F,`statuses[${l}].tone`)}));let i=new Set((e.statuses??M).map(t=>t.id)),o=w($(e.items,"items",80,1),"items");e.items.forEach((t,l)=>{let f=`items[${l}]`;m(t.title,`${f}.title`,80),n.has(t.lane)||r(`${f}.lane ${t.lane} does not match a lane id.`),t.owner!==void 0&&!s.has(t.owner)&&r(`${f}.owner ${t.owner} does not match an owner id.`),i.has(t.status)||r(`${f}.status ${t.status} is not a defined status.`);let S=b(t.start,`${f}.start`);b(t.end,`${f}.end`)<S&&r(`${f}.end must be on or after ${f}.start.`),t.progress!==void 0&&(h(t.progress,`${f}.progress`),(t.progress<0||t.progress>1)&&r(`${f}.progress must be between 0 and 1.`)),u(t.detail,`${f}.detail`,600),u(t.doneWhen,`${f}.doneWhen`,240),u(t.basis,`${f}.basis`,300),t.tags!==void 0&&((!Array.isArray(t.tags)||t.tags.length>12)&&r(`${f}.tags must be an array of at most 12 labels.`),t.tags.forEach((p,k)=>m(p,`${f}.tags[${k}]`,30))),t.depends!==void 0&&((!Array.isArray(t.depends)||t.depends.length>12)&&r(`${f}.depends must be an array of at most 12 item ids.`),t.depends.forEach((p,k)=>{let x=`${f}.depends[${k}]`;o.has(p)||r(`${x} ${p} does not match an item id.`),p===t.id&&r(`${x} points to the item itself.`)}),new Set(t.depends).size!==t.depends.length&&r(`${f}.depends lists the same item twice.`))}),O(e.items),e.milestones!==void 0&&($(e.milestones,"milestones",12),e.milestones.forEach((t,l)=>{b(t.date,`milestones[${l}].date`),m(t.label,`milestones[${l}].label`,30)})),e.deadline!==void 0&&(y(e.deadline)||r("deadline must be an object."),b(e.deadline.date,"deadline.date"),u(e.deadline.label,"deadline.label",40)),e.initialItem!==void 0&&!o.has(e.initialItem)&&r(`initialItem ${e.initialItem} does not match an item id.`);let d=I(e);d.end-d.start+1>E&&r(`The roadmap spans more than ${E} days.`);let a=(t,l)=>{let f=c(t);(f<d.start||f>d.end)&&r(`${l} ${t} is outside the roadmap from ${A(d.start)} to ${A(d.end)}.`)};e.items.forEach((t,l)=>{a(t.start,`items[${l}].start`),a(t.end,`items[${l}].end`)}),(e.milestones??[]).forEach((t,l)=>a(t.date,`milestones[${l}].date`)),e.deadline&&a(e.deadline.date,"deadline.date")}function O(e){let s=new Map(e.map(o=>[o.id,o])),n=new Map,i=(o,d)=>{if(n.get(o)!=="done"){n.get(o)==="visiting"&&r(`items.depends form a cycle: ${[...d.slice(d.indexOf(o)),o].join(" \u2192 ")}.`),n.set(o,"visiting");for(let a of s.get(o).depends??[])i(a,[...d,o]);n.set(o,"done")}};for(let o of e)i(o.id,[])}var U=["total","up","down"];function N(e){let s=0,n=[];return{spans:e.map((o,d)=>{if(o.kind==="total")return d>0&&o.value!==s&&n.push({id:o.id,stated:o.value,computed:s}),s=o.value,[Math.min(0,s),Math.max(0,s)];let a=s;return s+=o.kind==="up"?o.value:-o.value,[Math.min(a,s),Math.max(a,s)]}),end:s,mismatches:n}}function _(e){let s=e.format??{},n=.5*(s.divisor??1)/10**(s.decimals??0);return N(e.steps).mismatches.filter(i=>Math.abs(i.stated-i.computed)>n)}function Y(e){if(u(e.eyebrow,"eyebrow",160),u(e.narrative,"narrative",400),u(e.axisNote,"axisNote",200),e.upIsGood!==void 0&&typeof e.upIsGood!="boolean"&&r("upIsGood must be true or false."),e.headlines!==void 0&&($(e.headlines,"headlines",5),e.headlines.forEach((n,i)=>{m(n.label,`headlines[${i}].label`,40),m(n.value,`headlines[${i}].value`,24),u(n.detail,`headlines[${i}].detail`,80),n.tone!==void 0&&g(n.tone,["up","down","neutral"],`headlines[${i}].tone`)})),e.format!==void 0){let n=e.format;y(n)||r("format must be an object.");for(let[i,o]of[["prefix",6],["suffix",10]])n[i]!==void 0&&(typeof n[i]!="string"||n[i].length>o)&&r(`format.${i} must be text of at most ${o} characters.`);n.divisor!==void 0&&(h(n.divisor,"format.divisor"),n.divisor<=0&&r("format.divisor must be greater than 0.")),n.decimals!==void 0&&(!Number.isInteger(n.decimals)||n.decimals<0||n.decimals>4)&&r("format.decimals must be an integer from 0 to 4.")}let s=w($(e.steps,"steps",16,2),"steps");if(e.steps.forEach((n,i)=>{let o=`steps[${i}]`;if(m(n.label,`${o}.label`,24),g(n.kind,U,`${o}.kind`),h(n.value,`${o}.value`),n.kind!=="total"&&n.value<0&&r(`${o}.value must be a positive magnitude; use kind down for decreases.`),n.breakdown!==void 0){let d=n.breakdown;y(d)||r(`${o}.breakdown must be an object.`),u(d.title,`${o}.breakdown.title`,80),u(d.note,`${o}.breakdown.note`,300),$(d.items,`${o}.breakdown.items`,12),d.items.forEach((a,t)=>{m(a.label,`${o}.breakdown.items[${t}].label`,60),h(a.value,`${o}.breakdown.items[${t}].value`)})}}),e.initialStep!==void 0&&!s.has(e.initialStep)&&r(`initialStep ${e.initialStep} does not match a step id.`),e.axisFloor!==void 0){h(e.axisFloor,"axisFloor");let{spans:n}=N(e.steps);e.steps.forEach((i,o)=>{let[d,a]=n[o];(i.kind==="total"?a<=e.axisFloor:d<e.axisFloor)&&r(`axisFloor ${e.axisFloor} cuts steps[${o}] (${i.label}); lower it below ${i.kind==="total"?a:d}.`)})}}function B(e,s){return y(s)||r("Component data must be an object."),u(s.title,"title",120),e==="roadmap"?j(s):e==="waterfall"?Y(s):r(`Unknown plan component ${e}.`),s}export{c as a,M as b,T as c,I as d,W as e,N as f,_ as g,B as h};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{a as b,c as N,f as Va,h as $a,i as Ya}from"./chunk-DUIGVKKG.js";var xt=b(l=>{"use strict";var Xa=Symbol.for("react.transitional.element"),Zu=Symbol.for("react.portal"),Ju=Symbol.for("react.fragment"),Qu=Symbol.for("react.strict_mode"),$u=Symbol.for("react.profiler"),Yu=Symbol.for("react.consumer"),ed=Symbol.for("react.context"),ad=Symbol.for("react.forward_ref"),td=Symbol.for("react.suspense"),od=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),ud=Symbol.for("react.activity"),dd=Symbol.for("react.view_transition"),ut=Symbol.iterator;function ld(e){return e===null||typeof e!="object"?null:(e=ut&&e[ut]||e["@@iterator"],typeof e=="function"?e:null)}var ft={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},it=Object.assign,ct={};function O(e,a,o){this.props=e,this.context=a,this.refs=ct,this.updater=o||ft}O.prototype.isReactComponent={};O.prototype.setState=function(e,a){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,a,"setState")};O.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nt(){}nt.prototype=O.prototype;function ja(e,a,o){this.props=e,this.context=a,this.refs=ct,this.updater=o||ft}var Ka=ja.prototype=new nt;Ka.constructor=ja;it(Ka,O.prototype);Ka.isPureReactComponent=!0;var dt=Array.isArray;function Na(){}var f={H:null,A:null,T:null,S:null},pt=Object.prototype.hasOwnProperty;function Za(e,a,o){var u=o.ref;return{$$typeof:Xa,type:e,key:a,ref:u!==void 0?u:null,props:o}}function rd(e,a){return Za(e.type,a,e.props)}function Ja(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xa}function sd(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(o){return a[o]})}var lt=/\/+/g;function Wa(e,a){return typeof e=="object"&&e!==null&&e.key!=null?sd(""+e.key):a.toString(36)}function fd(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Na,Na):(e.status="pending",e.then(function(a){e.status==="pending"&&(e.status="fulfilled",e.value=a)},function(a){e.status==="pending"&&(e.status="rejected",e.reason=a)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function H(e,a,o,u,d){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(r){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Xa:case Zu:s=!0;break;case st:return s=e._init,H(s(e._payload),a,o,u,d)}}if(s)return d=d(e),s=u===""?"."+Wa(e,0):u,dt(d)?(o="",s!=null&&(o=s.replace(lt,"$&/")+"/"),H(d,a,o,"",function(v){return v})):d!=null&&(Ja(d)&&(d=rd(d,o+(d.key==null||e&&e.key===d.key?"":(""+d.key).replace(lt,"$&/")+"/")+s)),a.push(d)),1;s=0;var c=u===""?".":u+":";if(dt(e))for(var i=0;i<e.length;i++)u=e[i],r=c+Wa(u,i),s+=H(u,a,o,r,d);else if(i=ld(e),typeof i=="function")for(e=i.call(e),i=0;!(u=e.next()).done;)u=u.value,r=c+Wa(u,i++),s+=H(u,a,o,r,d);else if(r==="object"){if(typeof e.then=="function")return H(fd(e),a,o,u,d);throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}return s}function X(e,a,o){if(e==null)return e;var u=[],d=0;return H(e,u,"","",function(r){return a.call(o,r,d++)}),u}function id(e){if(e._status===-1){var a=e._result,o=a();o.then(function(u){(e._status===0||e._status===-1)&&(e._status=1,e._result=u,o.status===void 0&&(o.status="fulfilled",o.value=u))},function(u){(e._status===0||e._status===-1)&&(e._status=2,e._result=u,o.status===void 0&&(o.status="rejected",o.reason=u))}),e._status===-1&&(e._status=0,e._result=o)}if(e._status===1)return e._result.default;throw e._result}var rt=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function mt(e){var a=f.T,o={};o.types=a!==null?a.types:null,f.T=o;try{var u=e(),d=f.S;d!==null&&d(o,u),typeof u=="object"&&u!==null&&typeof u.then=="function"&&u.then(Na,rt)}catch(r){rt(r)}finally{a!==null&&o.types!==null&&(a.types=o.types),f.T=a}}function Lt(e){var a=f.T;if(a!==null){var o=a.types;o===null?a.types=[e]:o.indexOf(e)===-1&&o.push(e)}else mt(Lt.bind(null,e))}var cd={map:X,forEach:function(e,a,o){X(e,function(){a.apply(this,arguments)},o)},count:function(e){var a=0;return X(e,function(){a++}),a},toArray:function(e){return X(e,function(a){return a})||[]},only:function(e){if(!Ja(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};l.Activity=ud;l.Children=cd;l.Component=O;l.Fragment=Ju;l.Profiler=$u;l.PureComponent=ja;l.StrictMode=Qu;l.Suspense=td;l.ViewTransition=dd;l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;l.__COMPILER_RUNTIME={__proto__:null,c:function(e){return f.H.useMemoCache(e)}};l.addTransitionType=Lt;l.cache=function(e){return function(){return e.apply(null,arguments)}};l.cacheSignal=function(){return null};l.cloneElement=function(e,a,o){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var u=it({},e.props),d=e.key;if(a!=null)for(r in a.key!==void 0&&(d=""+a.key),a)!pt.call(a,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&a.ref===void 0||(u[r]=a[r]);var r=arguments.length-2;if(r===1)u.children=o;else if(1<r){for(var s=Array(r),c=0;c<r;c++)s[c]=arguments[c+2];u.children=s}return Za(e.type,d,u)};l.createContext=function(e){return e={$$typeof:ed,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Yu,_context:e},e};l.createElement=function(e,a,o){var u,d={},r=null;if(a!=null)for(u in a.key!==void 0&&(r=""+a.key),a)pt.call(a,u)&&u!=="key"&&u!=="__self"&&u!=="__source"&&(d[u]=a[u]);var s=arguments.length-2;if(s===1)d.children=o;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];d.children=c}if(e&&e.defaultProps)for(u in s=e.defaultProps,s)d[u]===void 0&&(d[u]=s[u]);return Za(e,r,d)};l.createRef=function(){return{current:null}};l.forwardRef=function(e){return{$$typeof:ad,render:e}};l.isValidElement=Ja;l.lazy=function(e){return{$$typeof:st,_payload:{_status:-1,_result:e},_init:id}};l.memo=function(e,a){return{$$typeof:od,type:e,compare:a===void 0?null:a}};l.startTransition=mt;l.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};l.use=function(e){return f.H.use(e)};l.useActionState=function(e,a,o){return f.H.useActionState(e,a,o)};l.useCallback=function(e,a){return f.H.useCallback(e,a)};l.useContext=function(e){return f.H.useContext(e)};l.useDebugValue=function(){};l.useDeferredValue=function(e,a){return f.H.useDeferredValue(e,a)};l.useEffect=function(e,a){return f.H.useEffect(e,a)};l.useEffectEvent=function(e){return f.H.useEffectEvent(e)};l.useId=function(){return f.H.useId()};l.useImperativeHandle=function(e,a,o){return f.H.useImperativeHandle(e,a,o)};l.useInsertionEffect=function(e,a){return f.H.useInsertionEffect(e,a)};l.useLayoutEffect=function(e,a){return f.H.useLayoutEffect(e,a)};l.useMemo=function(e,a){return f.H.useMemo(e,a)};l.useOptimistic=function(e,a){return f.H.useOptimistic(e,a)};l.useReducer=function(e,a,o){return f.H.useReducer(e,a,o)};l.useRef=function(e){return f.H.useRef(e)};l.useState=function(e){return f.H.useState(e)};l.useSyncExternalStore=function(e,a,o){return f.H.useSyncExternalStore(e,a,o)};l.useTransition=function(){return f.H.useTransition()};l.version="19.3.0"});var U=b((Dd,It)=>{"use strict";It.exports=xt()});var vu=b(Oa=>{"use strict";var pd=Symbol.for("react.transitional.element"),md=Symbol.for("react.fragment");function Ru(e,a,o){var u=null;if(o!==void 0&&(u=""+o),a.key!==void 0&&(u=""+a.key),"key"in a){o={};for(var d in a)d!=="key"&&(o[d]=a[d])}else o=a;return a=o.ref,{$$typeof:pd,type:e,key:u,ref:a!==void 0?a:null,props:o}}Oa.Fragment=md;Oa.jsx=Ru;Oa.jsxs=Ru});var Ld=b((Qn,qu)=>{"use strict";qu.exports=vu()});var Ou=b(n=>{"use strict";var xd=U();function Hu(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function C(){}var p={d:{f:C,r:function(){throw Error(Hu(522))},D:C,C,L:C,m:C,X:C,S:C,M:C},p:0,findDOMNode:null},Id=Symbol.for("react.portal"),hd=Symbol.for("react.recoverable"),bu=Symbol.for("react.optimistic_key");function Cd(e,a,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Id,key:u==null?null:u===bu?bu:""+u,children:e,containerInfo:a,implementation:o}}var V=xd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ua(e,a){if(e==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p;n.browser=function(e){return{$$typeof:hd,_reason:e}};n.createPortal=function(e,a){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(Hu(299));return Cd(e,a,null,o)};n.flushSync=function(e){var a=V.T,o=p.p;try{if(V.T=null,p.p=2,e)return e()}finally{V.T=a,p.p=o,p.d.f()}};n.preconnect=function(e,a){typeof e=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,p.d.C(e,a))};n.prefetchDNS=function(e){typeof e=="string"&&p.d.D(e)};n.preinit=function(e,a){if(typeof e=="string"&&a&&typeof a.as=="string"){var o=a.as,u=Ua(o,a.crossOrigin),d=typeof a.integrity=="string"?a.integrity:void 0,r=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;o==="style"?p.d.S(e,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:u,integrity:d,fetchPriority:r}):o==="script"&&p.d.X(e,{crossOrigin:u,integrity:d,fetchPriority:r,nonce:typeof a.nonce=="string"?a.nonce:void 0})}};n.preinitModule=function(e,a){if(typeof e=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var o=Ua(a.as,a.crossOrigin);p.d.M(e,{crossOrigin:o,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0})}}else a==null&&p.d.M(e)};n.preload=function(e,a){if(typeof e=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var o=a.as,u=Ua(o,a.crossOrigin);p.d.L(e,o,{crossOrigin:u,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}};n.preloadModule=function(e,a){if(typeof e=="string")if(a){var o=Ua(a.as,a.crossOrigin);p.d.m(e,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:o,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0})}else p.d.m(e)};n.requestFormReset=function(e){p.d.r(e)};n.unstable_batchedUpdates=function(e,a){return e(a)};n.useFormState=function(e,a,o){return V.H.useFormState(e,a,o)};n.useFormStatus=function(){return V.H.useHostTransitionStatus()};n.version="19.3.0"});var gd=b((Yn,zu)=>{"use strict";function Uu(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uu)}catch(e){console.error(e)}}Uu(),zu.exports=Ou()});function et(e){return e.replace(/@charset[^;]+;/g,"").replaceAll(":root",":scope").replace(/(?<![\w-])(?:html|body)(?=[,{])/g,":scope")}var Ku=`.portable-document { max-width: none; padding: 24px 0 12px; }
|
|
2
|
+
.portable-title { padding-right: 96px; font-size: 28px; margin-bottom: 24px; }
|
|
3
|
+
.portable-options { display: none; }
|
|
4
|
+
.portable-app { min-height: 0; }
|
|
5
|
+
.portable-app:has(> .container-workspace > .container-main > .container-page.is-root),
|
|
6
|
+
.portable-app > .container-workspace:has(> .container-main > .container-page.is-root) {
|
|
7
|
+
height: auto;
|
|
8
|
+
}
|
|
9
|
+
.portable-app > .container-workspace > .container-main:has(> .container-page.is-root) {
|
|
10
|
+
flex: none;
|
|
11
|
+
}
|
|
12
|
+
.portable-app > .container-workspace > .container-main > .container-page.is-root {
|
|
13
|
+
height: auto;
|
|
14
|
+
overflow: visible;
|
|
15
|
+
overscroll-behavior: auto;
|
|
16
|
+
scrollbar-gutter: auto;
|
|
17
|
+
}`;function at(e,a){return`@scope (#${e}) {
|
|
18
|
+
${a}
|
|
19
|
+
${Ku}
|
|
20
|
+
}`}var tt=[],Ga=new Set;function ot({root:e,scoped:a},o){let u=e.ownerDocument.createElement("style");u.dataset.showaiReaderStyle=e.id,u.textContent=a?at(e.id,et(o)):o,(a?e:e.ownerDocument.head).append(u)}function wd(e){tt.push(e);for(let a of Ga)ot(a,e)}function Pd(e,{scoped:a=!0}={}){let o={root:e,scoped:a};Ga.add(o);for(let u of tt)ot(o,u);return()=>{Ga.delete(o),e.ownerDocument.querySelectorAll(`style[data-showai-reader-style="${e.id}"]`).forEach(u=>u.remove())}}var j=N(U(),1);var ht=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function Ct(e,a,o=[]){if(a==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:ht(e),size:24,node:a,...o.length>0?{aliases:o}:{}}}var gt=e=>{let a="",o=!1;for(let u of e){if(u==="-"||u==="_"||u<=" "){o=a.length>0;continue}a.length===0?a+=u.toLowerCase():a+=o?u.toUpperCase():u,o=!1}return a};var St=e=>{let a=gt(e);return a.charAt(0).toUpperCase()+a.slice(1)};var E=N(U(),1);var _=(...e)=>e.filter((a,o,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===o).join(" ").trim();var x={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Qa(e){return e!=null}function kt(e,a={}){let o=a.attributeNames??{},u=m=>o[m]??m,d=e.size??e.width??x.width,r=e.size??e.height??x.height,s=e.aliases?.filter(m=>typeof m=="string"&&m.trim()!=="").map(m=>`lucide-${m}`)??[],c=[...e.name?[`lucide-${e.name}`]:[],...s],i=a.className?.split(" ").filter(Boolean)??[],v=a.includeDefaultClasses===!1?_(...i):_("lucide",...c,...i),_a=a.absoluteStrokeWidth?Number(a.strokeWidth??x["stroke-width"])*Number(e.size??e.width??x.width)/Number(a.size??a.width??x.width):a.strokeWidth??x["stroke-width"];return["svg",{...Object.entries(x).reduce((m,[g,q])=>(m[u(g)]=q,m),{}),..."color"in a&&a.color&&{[u("stroke")]:a.color},..."size"in a&&Qa(a.size)&&{[u("width")]:a.size,[u("height")]:a.size},..."width"in a&&Qa(a.width)&&{[u("width")]:a.width},..."height"in a&&Qa(a.height)&&{[u("height")]:a.height},[u("stroke-width")]:_a,...v&&{[u("class")]:v},[u("viewBox")]:`0 0 ${d} ${r}`,...a.hasA11yProp===!1?{[u("aria-hidden")]:"true"}:{},..."attributes"in a&&a.attributes},e.node.map(m=>{let[g,q,G]=m,W=a.nonScalingStroke?{[u("vector-effect")]:"non-scaling-stroke",...q}:q;return G?[g,W,G]:[g,W]})]}function yt(e,a={}){return kt(e,{...a,attributeNames:{...a.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var wt=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};var z=N(U(),1);var nd=(0,z.createContext)({});var Pt=()=>(0,z.useContext)(nd);var Mt=(0,E.forwardRef)(({color:e,size:a,width:o,height:u,strokeWidth:d,absoluteStrokeWidth:r,nonScalingStroke:s,className:c="",children:i,iconNode:v=[],icon:_a={node:v,aliases:[],size:24},...Ea},m)=>{let{size:g=24,strokeWidth:q=2,absoluteStrokeWidth:G=!1,nonScalingStroke:W=!1,color:_u="currentColor",className:Eu=""}=Pt()??{},Vu=!!i||wt(Ea),[Gu,Wu,Nu=[]]=yt(_a,{color:e??_u,width:o??a??g,height:u??a??g,strokeWidth:d??q,absoluteStrokeWidth:r??G,nonScalingStroke:s??W,className:_(Eu,c),hasA11yProp:Vu,attributes:Ea});return(0,E.createElement)(Gu,{ref:m,...Wu},[...Nu.map(([Xu,ju])=>(0,E.createElement)(Xu,ju)),...Array.isArray(i)?i:[i]])});function t(e,a=[],o=[]){let u=typeof e=="string"?Ct(e,a,o):e,d=(0,j.forwardRef)(({className:r,...s},c)=>(0,j.createElement)(Mt,{ref:c,icon:u,className:r,...s}));return u.name&&(d.displayName=St(u.name)),d}var At={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};At.node;var K=t(At);var Dt={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Dt.node;var Z=t(Dt);var Bt={name:"chart-column",size:24,node:[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],aliases:["bar-chart-3"]};Bt.node;var S=t(Bt);var Tt={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Tt.node;var J=t(Tt);var Ft={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Ft.node;var Q=t(Ft);var Rt={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};Rt.node;var $=t(Rt);var vt={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};vt.node;var Y=t(vt);var qt={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};qt.node;var I=t(qt);var bt={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};bt.node;var ee=t(bt);var Ht={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};Ht.node;var ae=t(Ht);var Ot={name:"expand",size:24,node:[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]};Ot.node;var te=t(Ot);var Ut={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};Ut.node;var oe=t(Ut);var zt={name:"grip-vertical",size:24,node:[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]};zt.node;var ue=t(zt);var _t={name:"heading-1",size:24,node:[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]};_t.node;var de=t(_t);var Et={name:"heading-2",size:24,node:[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]};Et.node;var le=t(Et);var Vt={name:"heading-3",size:24,node:[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]]};Vt.node;var re=t(Vt);var Gt={name:"image-plus",size:24,node:[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]};Gt.node;var se=t(Gt);var Wt={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};Wt.node;var fe=t(Wt);var Nt={name:"list-ordered",size:24,node:[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]]};Nt.node;var ie=t(Nt);var Xt={name:"list-tree",size:24,node:[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]]};Xt.node;var ce=t(Xt);var jt={name:"list",size:24,node:[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]};jt.node;var ne=t(jt);var Kt={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};Kt.node;var pe=t(Kt);var Zt={name:"message-square-quote",size:24,node:[["path",{d:"M14 14a2 2 0 0 0 2-2V8h-2",key:"1r06pg"}],["path",{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",key:"18887p"}],["path",{d:"M8 14a2 2 0 0 0 2-2V8H8",key:"1jzu5j"}]]};Zt.node;var me=t(Zt);var Jt={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};Jt.node;var Le=t(Jt);var Qt={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};Qt.node;var xe=t(Qt);var $t={name:"panel-top",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]]};$t.node;var Ie=t($t);var Yt={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};Yt.node;var he=t(Yt);var eo={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};eo.node;var Ce=t(eo);var ao={name:"quote",size:24,node:[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]};ao.node;var ge=t(ao);var to={name:"redo-2",size:24,node:[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]};to.node;var Se=t(to);var oo={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};oo.node;var ke=t(oo);var uo={name:"sparkles",size:24,node:[["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.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};uo.node;var k=t(uo);var lo={name:"square-check-big",size:24,node:[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-square"]};lo.node;var y=t(lo);var ro={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};ro.node;var ye=t(ro);var so={name:"table-2",size:24,node:[["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]};so.node;var we=t(so);var fo={name:"text-align-center",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]],aliases:["align-center"]};fo.node;var w=t(fo);var io={name:"text-align-end",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]],aliases:["align-right"]};io.node;var P=t(io);var co={name:"text-align-start",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],aliases:["text","align-left"]};co.node;var L=t(co);var no={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};no.node;var M=t(no);var po={name:"type",size:24,node:[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]};po.node;var Pe=t(po);var mo={name:"undo-2",size:24,node:[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]};mo.node;var Me=t(mo);var Lo={name:"upload",size:24,node:[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]};Lo.node;var Ae=t(Lo);var xo={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};xo.node;var De=t(xo);var Io={name:"align-center-horizontal",size:24,node:[["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4",key:"11f1s0"}],["path",{d:"M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4",key:"t14dx9"}],["path",{d:"M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1",key:"1w07xs"}],["path",{d:"M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1",key:"1apec2"}]]};Io.node;var Be=t(Io);var ho={name:"align-center-vertical",size:24,node:[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]]};ho.node;var Te=t(ho);var Co={name:"align-end-horizontal",size:24,node:[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]]};Co.node;var Fe=t(Co);var go={name:"align-end-vertical",size:24,node:[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]]};go.node;var Re=t(go);var So={name:"align-horizontal-distribute-center",size:24,node:[["rect",{width:"6",height:"14",x:"4",y:"5",rx:"2",key:"1wwnby"}],["rect",{width:"6",height:"10",x:"14",y:"7",rx:"2",key:"1fe6j6"}],["path",{d:"M17 22v-5",key:"4b6g73"}],["path",{d:"M17 7V2",key:"hnrr36"}],["path",{d:"M7 22v-3",key:"1r4jpn"}],["path",{d:"M7 5V2",key:"liy1u9"}]]};So.node;var ve=t(So);var ko={name:"align-start-horizontal",size:24,node:[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]]};ko.node;var qe=t(ko);var yo={name:"align-start-vertical",size:24,node:[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]]};yo.node;var be=t(yo);var wo={name:"align-vertical-distribute-center",size:24,node:[["path",{d:"M22 17h-3",key:"1lwga1"}],["path",{d:"M22 7h-5",key:"o2endc"}],["path",{d:"M5 17H2",key:"1gx9xc"}],["path",{d:"M7 7H2",key:"6bq26l"}],["rect",{x:"5",y:"14",width:"14",height:"6",rx:"2",key:"1qrzuf"}],["rect",{x:"7",y:"4",width:"10",height:"6",rx:"2",key:"we8e9z"}]]};wo.node;var He=t(wo);var Po={name:"arrow-down-right",size:24,node:[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]};Po.node;var Oe=t(Po);var Mo={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Mo.node;var Ue=t(Mo);var Ao={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Ao.node;var ze=t(Ao);var Do={name:"bold",size:24,node:[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]};Do.node;var _e=t(Do);var Bo={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};Bo.node;var Ee=t(Bo);var To={name:"bookmark-plus",size:24,node:[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M15 10H9",key:"o6yqo3"}],["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]};To.node;var Ve=t(To);var Fo={name:"bookmark",size:24,node:[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]};Fo.node;var Ge=t(Fo);var Ro={name:"bring-to-front",size:24,node:[["rect",{x:"8",y:"8",width:"8",height:"8",rx:"2",key:"yj20xf"}],["path",{d:"M4 10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2",key:"1ltk23"}],["path",{d:"M14 20a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2",key:"1q24h9"}]]};Ro.node;var We=t(Ro);var vo={name:"chart-no-axes-combined",size:24,node:[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14.639V21",key:"1s85h0"}],["path",{d:"M20 10.656V21",key:"q45596"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18.463V21",key:"1otddq"}],["path",{d:"M8 14.656V21",key:"1t2idw"}]]};vo.node;var Ne=t(vo);var qo={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};qo.node;var Xe=t(qo);var bo={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};bo.node;var je=t(bo);var Ho={name:"clipboard",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["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-2h2",key:"116196"}]]};Ho.node;var Ke=t(Ho);var Oo={name:"code",size:24,node:[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]};Oo.node;var Ze=t(Oo);var Uo={name:"columns-3",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],aliases:["panels-left-right"]};Uo.node;var A=t(Uo);var zo={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]};zo.node;var Je=t(zo);var _o={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};_o.node;var D=t(_o);var Eo={name:"eraser",size:24,node:[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]]};Eo.node;var Qe=t(Eo);var Vo={name:"file-braces",size:24,node:[["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",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};Vo.node;var B=t(Vo);var Go={name:"file-text",size:24,node:[["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",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};Go.node;var $e=t(Go);var Wo={name:"flask-conical",size:24,node:[["path",{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 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]};Wo.node;var Ye=t(Wo);var No={name:"focus",size:24,node:[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]};No.node;var ea=t(No);var Xo={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.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",key:"usdka0"}]]};Xo.node;var aa=t(Xo);var jo={name:"folder",size:24,node:[["path",{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",key:"1kt360"}]]};jo.node;var ta=t(jo);var Ko={name:"funnel",size:24,node:[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],aliases:["filter"]};Ko.node;var T=t(Ko);var Zo={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};Zo.node;var oa=t(Zo);var Jo={name:"grip-horizontal",size:24,node:[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]};Jo.node;var ua=t(Jo);var Qo={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["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",key:"1s1gnw"}]]};Qo.node;var da=t(Qo);var $o={name:"highlighter",size:24,node:[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]]};$o.node;var la=t($o);var Yo={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]};Yo.node;var ra=t(Yo);var eu={name:"italic",size:24,node:[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]};eu.node;var sa=t(eu);var au={name:"lasso",size:24,node:[["path",{d:"M3.704 14.467a10 8 0 1 1 3.115 2.375",key:"wxgc5m"}],["path",{d:"M7 22a5 5 0 0 1-2-3.994",key:"1xp6a4"}],["circle",{cx:"5",cy:"16",r:"2",key:"18csp3"}]]};au.node;var fa=t(au);var tu={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};tu.node;var ia=t(tu);var ou={name:"layout-list",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]};ou.node;var ca=t(ou);var uu={name:"lock-keyhole-open",size:24,node:[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}],["path",{d:"M7 10V7a5 5 0 0 1 9.33-2.5",key:"car5b7"}]],aliases:["unlock-keyhole"]};uu.node;var h=t(uu);var du={name:"lock-keyhole",size:24,node:[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]};du.node;var na=t(du);var lu={name:"map",size:24,node:[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]};lu.node;var pa=t(lu);var ru={name:"moon",size:24,node:[["path",{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",key:"kfwtm"}]]};ru.node;var ma=t(ru);var su={name:"mouse-pointer-2",size:24,node:[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]};su.node;var La=t(su);var fu={name:"music-2",size:24,node:[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]]};fu.node;var xa=t(fu);var iu={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};iu.node;var Ia=t(iu);var cu={name:"pin",size:24,node:[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]};cu.node;var ha=t(cu);var nu={name:"printer",size:24,node:[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]};nu.node;var Ca=t(nu);var pu={name:"puzzle",size:24,node:[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]};pu.node;var ga=t(pu);var mu={name:"ruler",size:24,node:[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]};mu.node;var Sa=t(mu);var Lu={name:"scissors",size:24,node:[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]};Lu.node;var ka=t(Lu);var xu={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};xu.node;var ya=t(xu);var Iu={name:"send-to-back",size:24,node:[["rect",{x:"14",y:"14",width:"8",height:"8",rx:"2",key:"1b0bso"}],["rect",{x:"2",y:"2",width:"8",height:"8",rx:"2",key:"1x09vl"}],["path",{d:"M7 14v1a2 2 0 0 0 2 2h1",key:"pao6x6"}],["path",{d:"M14 7h1a2 2 0 0 1 2 2v1",key:"19tdru"}]]};Iu.node;var wa=t(Iu);var hu={name:"settings-2",size:24,node:[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]};hu.node;var Pa=t(hu);var Cu={name:"square-dashed",size:24,node:[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]],aliases:["box-select"]};Cu.node;var F=t(Cu);var gu={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};gu.node;var Ma=t(gu);var Su={name:"strikethrough",size:24,node:[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]};Su.node;var Aa=t(Su);var ku={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};ku.node;var Da=t(ku);var yu={name:"table-cells-merge",size:24,node:[["path",{d:"M12 21v-6",key:"lihzve"}],["path",{d:"M12 9V3",key:"da5inc"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};yu.node;var Ba=t(yu);var wu={name:"table-columns-split",size:24,node:[["path",{d:"M14 14v2",key:"w2a1xv"}],["path",{d:"M14 20v2",key:"1lq872"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M14 8v2",key:"i67w9a"}],["path",{d:"M2 15h8",key:"82wtch"}],["path",{d:"M2 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2",key:"up0l64"}],["path",{d:"M2 9h8",key:"yelfik"}],["path",{d:"M22 15h-4",key:"1es58f"}],["path",{d:"M22 3h-2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h2",key:"pdjoqf"}],["path",{d:"M22 9h-4",key:"1luja7"}],["path",{d:"M5 3v18",key:"14hmio"}]]};wu.node;var Ta=t(wu);var Pu={name:"table-cells-split",size:24,node:[["path",{d:"M12 15V9",key:"8c7uyn"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};Pu.node;var Fa=t(Pu);var Mu={name:"table-properties",size:24,node:[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]};Mu.node;var Ra=t(Mu);var Au={name:"table-rows-split",size:24,node:[["path",{d:"M14 10h2",key:"1lstlu"}],["path",{d:"M15 22v-8",key:"1fwwgm"}],["path",{d:"M15 2v4",key:"1044rn"}],["path",{d:"M2 10h2",key:"1r8dkt"}],["path",{d:"M20 10h2",key:"1ug425"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"M3 22v-6a2 2 135 0 1 2-2h14a2 2 45 0 1 2 2v6",key:"ibqhof"}],["path",{d:"M3 2v2a2 2 45 0 0 2 2h14a2 2 135 0 0 2-2V2",key:"1uenja"}],["path",{d:"M8 10h2",key:"66od0"}],["path",{d:"M9 22v-8",key:"fmnu31"}],["path",{d:"M9 2v4",key:"j1yeou"}]]};Au.node;var va=t(Au);var Du={name:"text-align-justify",size:24,node:[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]],aliases:["align-justify"]};Du.node;var R=t(Du);var Bu={name:"underline",size:24,node:[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]};Bu.node;var qa=t(Bu);var Tu={name:"ungroup",size:24,node:[["rect",{x:"11",y:"14",width:"10",height:"7",rx:"2",key:"nfm8rk"}],["rect",{x:"3",y:"3",width:"10",height:"7",rx:"2",key:"1ljebb"}]]};Tu.node;var ba=t(Tu);var Fu={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};Fu.node;var Ha=t(Fu);var za=N(U(),1);function Sd(){return(0,za.useSyncExternalStore)($a,Va,Va)}function tp(e){let a=Sd();return(0,za.useMemo)(()=>Ya(e),[e,a])}export{wd as a,Pd as b,U as c,Be as d,Te as e,Fe as f,Re as g,ve as h,qe as i,be as j,He as k,Oe as l,K as m,Ue as n,ze as o,Z as p,_e as q,Ee as r,Ve as s,Ge as t,We as u,S as v,Ne as w,J as x,Q as y,$ as z,Y as A,Xe as B,je as C,Ke as D,I as E,Ze as F,A as G,ee as H,Je as I,ae as J,D as K,Qe as L,te as M,oe as N,B as O,$e as P,Ye as Q,ea as R,aa as S,ta as T,T as U,oa as V,ua as W,ue as X,da as Y,de as Z,le as _,re as $,la as aa,se as ba,ra as ca,sa as da,fa as ea,ia as fa,ca as ga,fe as ha,ie as ia,ce as ja,ne as ka,h as la,na as ma,pa as na,pe as oa,me as pa,Le as qa,ma as ra,La as sa,xa as ta,xe as ua,Ie as va,Ia as wa,ha as xa,he as ya,Ce as za,Ca as Aa,ga as Ba,ge as Ca,Se as Da,ke as Ea,Sa as Fa,ka as Ga,ya as Ha,wa as Ia,Pa as Ja,k as Ka,y as La,F as Ma,ye as Na,Ma as Oa,Aa as Pa,Da as Qa,we as Ra,Ba as Sa,Ta,Fa as Ua,Ra as Va,va as Wa,w as Xa,P as Ya,R as Za,L as _a,M as $a,Pe as ab,qa as bb,Me as cb,ba as db,Ae as eb,Ha as fb,De as gb,Ld as hb,gd as ib,Sd as jb,tp as kb};
|
|
21
|
+
/*! For license information please see chunk-3YAYFUS4.js.LEGAL.txt */
|
|
@@ -47,13 +47,12 @@ lucide-react/dist/esm/Icon.mjs:
|
|
|
47
47
|
lucide-react/dist/esm/createLucideIcon.mjs:
|
|
48
48
|
lucide-react/dist/esm/icons/arrow-down.mjs:
|
|
49
49
|
lucide-react/dist/esm/icons/arrow-up.mjs:
|
|
50
|
-
lucide-react/dist/esm/icons/bold.mjs:
|
|
51
50
|
lucide-react/dist/esm/icons/chart-column.mjs:
|
|
52
51
|
lucide-react/dist/esm/icons/check.mjs:
|
|
53
52
|
lucide-react/dist/esm/icons/chevron-down.mjs:
|
|
54
53
|
lucide-react/dist/esm/icons/chevron-right.mjs:
|
|
54
|
+
lucide-react/dist/esm/icons/chevron-left.mjs:
|
|
55
55
|
lucide-react/dist/esm/icons/code-xml.mjs:
|
|
56
|
-
lucide-react/dist/esm/icons/code.mjs:
|
|
57
56
|
lucide-react/dist/esm/icons/copy.mjs:
|
|
58
57
|
lucide-react/dist/esm/icons/download.mjs:
|
|
59
58
|
lucide-react/dist/esm/icons/expand.mjs:
|
|
@@ -62,9 +61,7 @@ lucide-react/dist/esm/icons/grip-vertical.mjs:
|
|
|
62
61
|
lucide-react/dist/esm/icons/heading-1.mjs:
|
|
63
62
|
lucide-react/dist/esm/icons/heading-2.mjs:
|
|
64
63
|
lucide-react/dist/esm/icons/heading-3.mjs:
|
|
65
|
-
lucide-react/dist/esm/icons/highlighter.mjs:
|
|
66
64
|
lucide-react/dist/esm/icons/image-plus.mjs:
|
|
67
|
-
lucide-react/dist/esm/icons/italic.mjs:
|
|
68
65
|
lucide-react/dist/esm/icons/link-2.mjs:
|
|
69
66
|
lucide-react/dist/esm/icons/list-ordered.mjs:
|
|
70
67
|
lucide-react/dist/esm/icons/list-tree.mjs:
|
|
@@ -79,28 +76,39 @@ lucide-react/dist/esm/icons/plus.mjs:
|
|
|
79
76
|
lucide-react/dist/esm/icons/quote.mjs:
|
|
80
77
|
lucide-react/dist/esm/icons/redo-2.mjs:
|
|
81
78
|
lucide-react/dist/esm/icons/rotate-ccw.mjs:
|
|
79
|
+
lucide-react/dist/esm/icons/sparkles.mjs:
|
|
82
80
|
lucide-react/dist/esm/icons/square-check-big.mjs:
|
|
83
81
|
lucide-react/dist/esm/icons/square.mjs:
|
|
84
|
-
lucide-react/dist/esm/icons/strikethrough.mjs:
|
|
85
82
|
lucide-react/dist/esm/icons/table-2.mjs:
|
|
86
83
|
lucide-react/dist/esm/icons/text-align-center.mjs:
|
|
87
84
|
lucide-react/dist/esm/icons/text-align-end.mjs:
|
|
88
85
|
lucide-react/dist/esm/icons/text-align-start.mjs:
|
|
89
86
|
lucide-react/dist/esm/icons/trash.mjs:
|
|
90
87
|
lucide-react/dist/esm/icons/type.mjs:
|
|
91
|
-
lucide-react/dist/esm/icons/underline.mjs:
|
|
92
88
|
lucide-react/dist/esm/icons/undo-2.mjs:
|
|
93
89
|
lucide-react/dist/esm/icons/upload.mjs:
|
|
94
90
|
lucide-react/dist/esm/icons/x.mjs:
|
|
91
|
+
lucide-react/dist/esm/icons/align-center-horizontal.mjs:
|
|
92
|
+
lucide-react/dist/esm/icons/align-center-vertical.mjs:
|
|
93
|
+
lucide-react/dist/esm/icons/align-end-horizontal.mjs:
|
|
94
|
+
lucide-react/dist/esm/icons/align-end-vertical.mjs:
|
|
95
|
+
lucide-react/dist/esm/icons/align-horizontal-distribute-center.mjs:
|
|
96
|
+
lucide-react/dist/esm/icons/align-start-horizontal.mjs:
|
|
97
|
+
lucide-react/dist/esm/icons/align-start-vertical.mjs:
|
|
98
|
+
lucide-react/dist/esm/icons/align-vertical-distribute-center.mjs:
|
|
95
99
|
lucide-react/dist/esm/icons/arrow-down-right.mjs:
|
|
96
100
|
lucide-react/dist/esm/icons/arrow-left.mjs:
|
|
97
101
|
lucide-react/dist/esm/icons/arrow-up-right.mjs:
|
|
102
|
+
lucide-react/dist/esm/icons/bold.mjs:
|
|
98
103
|
lucide-react/dist/esm/icons/book-open.mjs:
|
|
99
104
|
lucide-react/dist/esm/icons/bookmark-plus.mjs:
|
|
100
105
|
lucide-react/dist/esm/icons/bookmark.mjs:
|
|
106
|
+
lucide-react/dist/esm/icons/bring-to-front.mjs:
|
|
101
107
|
lucide-react/dist/esm/icons/chart-no-axes-combined.mjs:
|
|
102
|
-
lucide-react/dist/esm/icons/chevron-
|
|
108
|
+
lucide-react/dist/esm/icons/chevron-up.mjs:
|
|
103
109
|
lucide-react/dist/esm/icons/circle.mjs:
|
|
110
|
+
lucide-react/dist/esm/icons/clipboard.mjs:
|
|
111
|
+
lucide-react/dist/esm/icons/code.mjs:
|
|
104
112
|
lucide-react/dist/esm/icons/columns-3.mjs:
|
|
105
113
|
lucide-react/dist/esm/icons/database.mjs:
|
|
106
114
|
lucide-react/dist/esm/icons/ellipsis.mjs:
|
|
@@ -115,31 +123,39 @@ lucide-react/dist/esm/icons/funnel.mjs:
|
|
|
115
123
|
lucide-react/dist/esm/icons/gauge.mjs:
|
|
116
124
|
lucide-react/dist/esm/icons/grip-horizontal.mjs:
|
|
117
125
|
lucide-react/dist/esm/icons/hand.mjs:
|
|
126
|
+
lucide-react/dist/esm/icons/highlighter.mjs:
|
|
118
127
|
lucide-react/dist/esm/icons/images.mjs:
|
|
128
|
+
lucide-react/dist/esm/icons/italic.mjs:
|
|
119
129
|
lucide-react/dist/esm/icons/lasso.mjs:
|
|
120
130
|
lucide-react/dist/esm/icons/layout-dashboard.mjs:
|
|
121
131
|
lucide-react/dist/esm/icons/layout-list.mjs:
|
|
122
132
|
lucide-react/dist/esm/icons/lock-keyhole-open.mjs:
|
|
123
133
|
lucide-react/dist/esm/icons/lock-keyhole.mjs:
|
|
134
|
+
lucide-react/dist/esm/icons/map.mjs:
|
|
124
135
|
lucide-react/dist/esm/icons/moon.mjs:
|
|
125
136
|
lucide-react/dist/esm/icons/mouse-pointer-2.mjs:
|
|
126
137
|
lucide-react/dist/esm/icons/music-2.mjs:
|
|
127
|
-
lucide-react/dist/esm/icons/panels-top-left.mjs:
|
|
128
138
|
lucide-react/dist/esm/icons/pencil.mjs:
|
|
129
139
|
lucide-react/dist/esm/icons/pin.mjs:
|
|
130
140
|
lucide-react/dist/esm/icons/printer.mjs:
|
|
131
141
|
lucide-react/dist/esm/icons/puzzle.mjs:
|
|
132
142
|
lucide-react/dist/esm/icons/ruler.mjs:
|
|
143
|
+
lucide-react/dist/esm/icons/scissors.mjs:
|
|
133
144
|
lucide-react/dist/esm/icons/search.mjs:
|
|
145
|
+
lucide-react/dist/esm/icons/send-to-back.mjs:
|
|
134
146
|
lucide-react/dist/esm/icons/settings-2.mjs:
|
|
135
147
|
lucide-react/dist/esm/icons/square-dashed.mjs:
|
|
136
148
|
lucide-react/dist/esm/icons/star.mjs:
|
|
149
|
+
lucide-react/dist/esm/icons/strikethrough.mjs:
|
|
137
150
|
lucide-react/dist/esm/icons/sun.mjs:
|
|
138
151
|
lucide-react/dist/esm/icons/table-cells-merge.mjs:
|
|
139
152
|
lucide-react/dist/esm/icons/table-columns-split.mjs:
|
|
140
153
|
lucide-react/dist/esm/icons/table-cells-split.mjs:
|
|
141
154
|
lucide-react/dist/esm/icons/table-properties.mjs:
|
|
142
155
|
lucide-react/dist/esm/icons/table-rows-split.mjs:
|
|
156
|
+
lucide-react/dist/esm/icons/text-align-justify.mjs:
|
|
157
|
+
lucide-react/dist/esm/icons/underline.mjs:
|
|
158
|
+
lucide-react/dist/esm/icons/ungroup.mjs:
|
|
143
159
|
lucide-react/dist/esm/icons/video.mjs:
|
|
144
160
|
lucide-react/dist/esm/lucide-react.mjs:
|
|
145
161
|
/**
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as s,b as c,d as a}from"./chunk-OK4632EO.js";import{c as f}from"./chunk-3YAYFUS4.js";import{c as u}from"./chunk-DUIGVKKG.js";var l=Object.freeze({archify:["workflow","architecture","sequence","dataflow","lifecycle","erd","class","tree","timeline","waterfall"],"diagram-design":["architecture","architecture-delta","axonometric-plan","bar","data-flow","db-schema","dependency","deployment","dp-integration","dp-security-matrix","er","exploded","fishbone","flowchart","gantt","heatmap","high-level","it-state","journey","kanban","layers","line","loop","medallion","nested","org-chart","polar","process","pyramid","quadrant","radar","sankey","scatter","sequence","service-blueprint","state","story-map","swimlane","timeline","tree","treemap","uml-class","venn","wardley","waterfall"],"fireworks-tech-graph":Array.from({length:12},(i,t)=>`style-${t+1}`)});function p(i,t){if(!Object.hasOwn(l,i))throw new Error(`Unknown diagram family: ${i}.`);if(!t||typeof t!="object"||Array.isArray(t))throw new Error("\u56FE\u5F62\u6570\u636E\u5FC5\u987B\u662F\u5BF9\u8C61\u3002");for(let r of Object.keys(t))if(!["template","source","title","description","height","presentation"].includes(r))throw new Error(`\u4E0D\u652F\u6301\u7684\u56FE\u5F62\u5B57\u6BB5\uFF1A${r}\u3002`);if(!l[i].includes(t.template)&&t.template!=="custom")throw new Error("\u8BF7\u9009\u62E9\u8BE5\u7EC4\u4EF6\u63D0\u4F9B\u7684\u6A21\u677F\uFF0C\u6216\u4F7F\u7528 custom \u5BFC\u5165\u56FE\u5F62\u6E90\u7801\u3002");for(let r of["title","description"])if(t[r]!==void 0&&(typeof t[r]!="string"||t[r].length>2e3))throw new Error(`${r} \u5FC5\u987B\u662F\u6700\u591A 2000 \u5B57\u7B26\u7684\u6587\u672C\u3002`);if(t.height!==void 0&&(!Number.isFinite(t.height)||t.height<240||t.height>1200))throw new Error("\u56FE\u5F62\u9AD8\u5EA6\u987B\u5728 240\u20131200 px \u4E4B\u95F4\u3002");if(t.source!==void 0){if(typeof t.source!="string"||!t.source.trim())throw new Error("\u56FE\u5F62\u6E90\u7801\u987B\u4E3A\u975E\u7A7A\u7684 SVG \u6216 HTML \u6587\u672C\u3002");if(new TextEncoder().encode(t.source).byteLength>8*1024*1024)throw new Error("\u56FE\u5F62\u6E90\u7801\u8D85\u8FC7 8 MiB \u4E0A\u9650\u3002");if(!/<svg\b/i.test(t.source))throw new Error("\u56FE\u5F62\u6E90\u7801\u987B\u5305\u542B SVG\u3002JSON \u8F93\u5165\u8BF7\u5148\u7528\u539F\u9879\u76EE\u6E32\u67D3\u5668\u751F\u6210 SVG \u6216 HTML\u3002")}if(t.template==="custom"&&t.source===void 0)throw new Error("\u81EA\u5B9A\u4E49\u56FE\u5F62\u987B\u63D0\u4F9B source\u3002");if(t.presentation!==void 0){let r=t.presentation;if(!r||typeof r!="object"||Array.isArray(r))throw new Error("presentation \u5FC5\u987B\u662F\u663E\u793A\u8BBE\u7F6E\u5BF9\u8C61\u3002");for(let n of Object.keys(r))if(!["title","description","notes","legend","controls"].includes(n))throw new Error(`\u4E0D\u652F\u6301\u7684\u663E\u793A\u8BBE\u7F6E\uFF1A${n}\u3002`);for(let n of["title","description"])if(r[n]!==void 0&&!["inside","outside","hidden"].includes(r[n]))throw new Error(`${n} \u7684\u663E\u793A\u4F4D\u7F6E\u65E0\u6548\u3002`);if(r.notes!==void 0&&!["inline","details","hidden"].includes(r.notes))throw new Error("\u8BF4\u660E\u6587\u5B57\u7684\u663E\u793A\u65B9\u5F0F\u65E0\u6548\u3002");for(let n of["legend","controls"])if(r[n]!==void 0&&typeof r[n]!="boolean")throw new Error(`${n} \u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002`)}}function m(i){let t='button,input,textarea,select,summary,[role="button"],[role="slider"],[data-surface-ui],.react-flow,[data-surface-gesture="own"]',r=()=>{let e=document.body.cloneNode(!0);e.querySelectorAll(t+",script,style,[hidden]").forEach(o=>o.remove()),e.querySelectorAll("p,div,section,article,li,tr,h1,h2,h3,h4,pre,blockquote").forEach(o=>o.append(`
|
|
2
|
+
`)),e.querySelectorAll("br").forEach(o=>o.replaceWith(`
|
|
3
|
+
`)),parent.postMessage({channel:i,type:"showai:text-selection-content",text:(e.textContent??"").slice(0,256e3)},"*")};window.addEventListener("message",e=>{e.source===parent&&e.data?.channel===i&&e.data.type==="showai:text-selection-content-request"&&r()});let n=(e,o)=>parent.postMessage({channel:i,type:"showai:text-selection-pointer",phase:e,x:o.clientX,y:o.clientY,width:innerWidth,height:innerHeight,buttons:o.buttons},"*");document.addEventListener("pointerdown",e=>{if(e.button!==0||e.pointerType!=="mouse"||e.shiftKey||e.metaKey||e.ctrlKey||!(e.target instanceof Element)||e.target.closest(t))return;let o=document.caretRangeFromPoint(e.clientX,e.clientY);o?.startContainer.nodeType!==Node.TEXT_NODE||!e.target.contains(o.startContainer)||(r(),n("down",e))},!0),document.addEventListener("pointermove",e=>{e.pointerType==="mouse"&&e.buttons&1&&n("move",e)},!0),document.addEventListener("pointerup",e=>n("up",e),!0),document.addEventListener("pointercancel",e=>n("cancel",e),!0)}var d=u(f(),1);function g(i,t){(0,d.useEffect)(()=>{let r=i.current,n=s(r,t),e=o=>{o.source!==r.contentWindow||o.data?.channel!==t||(o.data.type==="showai:text-selection-pointer"&&a(r,o.data),o.data.type==="showai:text-selection-content"&&c(r,o.data.text))};return window.addEventListener("message",e),()=>{n(),window.removeEventListener("message",e)}},[t,i])}export{l as a,p as b,m as c,g as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=n=>{throw new Error(n)},b=n=>!!n&&typeof n=="object"&&!Array.isArray(n);function c(n,t){(typeof n!="string"||!n.trim())&&r(`${t} must be non-empty text.`)}function a(n,t){n!==void 0&&c(n,t)}function $(n,t,e,s=0){return(!Array.isArray(n)||n.length<s||n.length>e)&&r(`${t} must be an array of ${s} to ${e} items.`),n.forEach((o,i)=>{b(o)||r(`${t}[${i}] must be an object.`)}),n}function d(n,t,e){c(t,e),n.has(t)&&r(`${e} duplicates id ${t}.`),n.add(t)}function y(n,t){n!==void 0&&!u.includes(n)&&r(`${t} must be one of ${u.join(", ")}.`)}var u=["accent","teal","orange","violet","rose","slate"],x=["accent","teal","violet","orange","rose","slate"],m=["call","reply","note"],p={actors:8,steps:40},h={layers:8,modules:12};function g(n){a(n.description,"description");let t=new Set;$(n.actors,"actors",p.actors,1).forEach((e,s)=>{let o=`actors[${s}]`;d(t,e.id,`${o}.id`),c(e.label,`${o}.label`),a(e.sub,`${o}.sub`),a(e.icon,`${o}.icon`),e.icon!==void 0&&Array.from(e.icon).length>8&&r(`${o}.icon must be a single emoji or short symbol.`),y(e.tone,`${o}.tone`)}),$(n.steps,"steps",p.steps,1).forEach((e,s)=>{let o=`steps[${s}]`;for(let i of["from","to"])c(e[i],`${o}.${i}`),t.has(e[i])||r(`${o}.${i} ${e[i]} does not match an actor id.`);c(e.label,`${o}.label`),a(e.detail,`${o}.detail`),e.kind!==void 0&&!m.includes(e.kind)&&r(`${o}.kind must be one of ${m.join(", ")}.`)})}function S(n){a(n.caption,"caption");let t=new Set,e=new Set;$(n.layers,"layers",h.layers,1).forEach((s,o)=>{let i=`layers[${o}]`;d(t,s.id,`${i}.id`),c(s.name,`${i}.name`),a(s.sub,`${i}.sub`),y(s.tone,`${i}.tone`),$(s.modules,`${i}.modules`,h.modules).forEach((f,E)=>{let l=`${i}.modules[${E}]`;d(e,f.id,`${l}.id`),c(f.name,`${l}.name`),a(f.path,`${l}.path`),a(f.detail,`${l}.detail`)})}),n.initial!==void 0&&(c(n.initial,"initial"),e.has(n.initial)||r(`initial ${n.initial} does not match a module id.`))}function A(n,t){return b(t)||r("Component data must be an object."),a(t.title,"title"),n==="sequence-diagram"?g(t):n==="layer-diagram"?S(t):r(`Unknown diagram component ${n}.`),t}function j(n){return typeof n!="string"?[]:n.split(/\n+/).map(t=>t.trim()).filter(Boolean)}export{u as a,x as b,A as c,j as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as p}from"./chunk-BJ2PXDYC.js";var r=t=>{throw new Error(t)},h=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function l(t,i,o){(typeof t!="string"||!t.trim())&&r(`${i} must be non-empty text.`),t.length>o&&r(`${i} must be at most ${o} characters.`)}function a(t,i,o){t!==void 0&&l(t,i,o)}function g(t,i){(typeof t!="string"||!t.trim())&&r(`${i} must be non-empty code.`),t.length>8e3&&r(`${i} must be at most 8000 characters.`)}function b(t,i,o,e,f=!1){(typeof t!="number"||!Number.isFinite(t)||(f?t<=o:t<o)||t>e)&&r(`${i} must be a number ${f?"above":"of at least"} ${o} and at most ${e}.`)}function y(t,i,o,e){(!Number.isInteger(t)||t<o||t>e)&&r(`${i} must be an integer from ${o} to ${e}.`)}function m(t,i,o,e=0){return(!Array.isArray(t)||t.length<e||t.length>o)&&r(`${i} must be an array of ${e} to ${o} items.`),t.forEach((f,n)=>{h(f)||r(`${i}[${n}] must be an object.`)}),t}function u(t,i,o){for(let e of Object.keys(t))i.includes(e)||r(`${o}.${e} is not a known field.`)}var w=["list","focus"],S=["active","wait"],x=["id","title","short","badge","body","code","lang","variants","note","result","cue","wait","timer","segments"];function E(t){a(t.description,"description",600),t.layout!==void 0&&!w.includes(t.layout)&&r(`layout must be one of ${w.join(", ")}.`),t.start!==void 0&&y(t.start,"start",0,999);let i=m(t.steps,"steps",40,1);t.initialStep!==void 0&&y(t.initialStep,"initialStep",0,i.length-1);let o=new Set;i.forEach((e,f)=>{let n=`steps[${f}]`;u(e,x,n),e.id!==void 0&&(l(e.id,`${n}.id`,64),o.has(e.id)&&r(`${n}.id duplicates ${e.id}.`),o.add(e.id)),l(e.title,`${n}.title`,160),a(e.short,`${n}.short`,24),a(e.badge,`${n}.badge`,24),a(e.body,`${n}.body`,3e3);for(let s of["note","result","cue","wait"])a(e[s],`${n}.${s}`,600);if(a(e.lang,`${n}.lang`,24),e.code!==void 0&&g(e.code,`${n}.code`),e.variants!==void 0){e.code!==void 0&&r(`${n} uses either code or variants, not both.`);let s=new Set;m(e.variants,`${n}.variants`,6,1).forEach((c,d)=>{let $=`${n}.variants[${d}]`;u(c,["label","code","lang"],$),l(c.label,`${$}.label`,32),s.has(c.label)&&r(`${$}.label duplicates ${c.label}.`),s.add(c.label),g(c.code,`${$}.code`),a(c.lang,`${$}.lang`,24)})}e.timer!==void 0&&(h(e.timer)||r(`${n}.timer must be an object.`),u(e.timer,["minutes","label"],`${n}.timer`),b(e.timer.minutes,`${n}.timer.minutes`,0,1440,!0),a(e.timer.label,`${n}.timer.label`,40)),e.segments!==void 0&&m(e.segments,`${n}.segments`,8,1).forEach((s,c)=>{let d=`${n}.segments[${c}]`;u(s,["start","minutes","kind"],d),b(s.start,`${d}.start`,0,1e4),b(s.minutes,`${d}.minutes`,0,1e4,!0),S.includes(s.kind)||r(`${d}.kind must be one of ${S.join(", ")}.`)})})}function k(t){a(t.description,"description",600),a(t.placeholder,"placeholder",60),a(t.program,"program",40),t.program!==void 0&&/\s/.test(t.program)&&r("program must be a single word.");let i=new Set;m(t.groups,"groups",16,1).forEach((e,f)=>{let n=`groups[${f}]`;u(e,["id","label"],n),l(e.id,`${n}.id`,64),i.has(e.id)&&r(`${n}.id duplicates ${e.id}.`),i.add(e.id),l(e.label,`${n}.label`,24)});let o=new Set;m(t.commands,"commands",300,1).forEach((e,f)=>{let n=`commands[${f}]`;if(u(e,["id","group","command","summary","detail","params","examples"],n),e.id!==void 0&&(l(e.id,`${n}.id`,64),o.has(e.id)&&r(`${n}.id duplicates ${e.id}.`),o.add(e.id)),l(e.group,`${n}.group`,64),i.has(e.group)||r(`${n}.group ${e.group} does not match a group id.`),l(e.command,`${n}.command`,240),l(e.summary,`${n}.summary`,240),a(e.detail,`${n}.detail`,3e3),e.params!==void 0){let s=new Set;m(e.params,`${n}.params`,40,1).forEach((c,d)=>{let $=`${n}.params[${d}]`;u(c,["name","meaning"],$),l(c.name,`${$}.name`,80),s.has(c.name)&&r(`${$}.name duplicates ${c.name}.`),s.add(c.name),l(c.meaning,`${$}.meaning`,400)})}e.examples!==void 0&&m(e.examples,`${n}.examples`,6,1).forEach((s,c)=>{let d=`${n}.examples[${c}]`;u(s,["label","code"],d),a(s.label,`${d}.label`,40),g(s.code,`${d}.code`)})})}function T(t,i){return h(i)||r("Component data must be an object."),a(i.title,"title",120),t==="step-guide"?E(i):t==="command-reference"?k(i):r(`Unknown doc reference component ${t}.`),i}function A(t){let i=0,o=0,e=0;for(let f of t)for(let n of f.segments??[])n.kind==="active"?i+=n.minutes:o+=n.minutes,e=Math.max(e,n.start+n.minutes);return{active:i,wait:o,total:e}}function C(t){if(!(t>0))return[];let i=[5,10,15,30,60,120,240,480].find(e=>t/e<=8)??Math.ceil(t/8/60)*60,o=[];for(let e=0;e<=t;e+=i)o.push(e);return o}function O(t){return[...new Set(t.toLowerCase().split(/\s+/).filter(Boolean))]}function L(t,i){let o=[t.command,p(t.summary),...(t.params??[]).map(e=>`${e.name} ${e.meaning}`)].map(e=>e.toLowerCase());return i.every(e=>o.some(f=>f.includes(e)))}function M(t,i){let o=t.toLowerCase(),e=[];for(let n of i)for(let s=o.indexOf(n);s>=0;s=o.indexOf(n,s+n.length))e.push([s,s+n.length]);e.sort((n,s)=>n[0]-s[0]);let f=[];for(let n of e){let s=f[f.length-1];s&&n[0]<=s[1]?s[1]=Math.max(s[1],n[1]):f.push([n[0],n[1]])}return f}export{T as a,A as b,C as c,O as d,L as e,M as f};
|