showai-reader 0.10.0-reader.ofqfnwx7 → 0.10.0-reader.pmhbvync
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-AJZKUXS6.js → CardGrid-CXO2U3K5.js} +1 -1
- package/chunks/{CommandReference-RV7YII3H.js → CommandReference-E5Y6VMXC.js} +1 -1
- package/chunks/{ComparisonMatrix-ZZD2G2AA.js → ComparisonMatrix-TXTUZF55.js} +1 -1
- package/chunks/{EventTimeline-EUOZGK5I.js → EventTimeline-JOTYNIMI.js} +1 -1
- package/chunks/{ExperimentTracker-ULN4Z5OW.js → ExperimentTracker-CWZCU2QO.js} +1 -1
- package/chunks/{ExternalDiagram-6XIHKA7E.js → ExternalDiagram-WFWITA4Q.js} +1 -1
- package/chunks/{Flowchart-CLUQTGTM.js → Flowchart-DJGFXDXU.js} +1 -1
- package/chunks/{G2Chart-DIG5VQML.js → G2Chart-YVTXVVRZ.js} +2 -2
- package/chunks/{LayerDiagram-ERF2NRNM.js → LayerDiagram-KDSBIPHG.js} +1 -1
- package/chunks/{Mindmap-6XNXEXFE.js → Mindmap-SB34H5SG.js} +1 -1
- package/chunks/{RichTextEditor-6VUVXVYN.js → RichTextEditor-SMQMXUUN.js} +44 -44
- package/chunks/{Roadmap-J643DY2U.js → Roadmap-BSPT5PBK.js} +1 -1
- package/chunks/{Scene3D-KGHIFPQH.js → Scene3D-VILMVRHH.js} +2 -2
- package/chunks/{SequenceDiagram-G7UAIBJJ.js → SequenceDiagram-W2YQCHNV.js} +1 -1
- package/chunks/{StatusTree-BO3E5N3J.js → StatusTree-57AOX2U2.js} +1 -1
- package/chunks/StepGuide-VQRICGFO.js +1 -0
- package/chunks/{StructureBrowser-IKXDOONV.js → StructureBrowser-PVPAFYTN.js} +1 -1
- package/chunks/{Waterfall-WQQRXMRH.js → Waterfall-FIQDQSMD.js} +1 -1
- package/chunks/{chunk-WWRZIZ7N.js → chunk-55FJSXTX.js} +1 -1
- package/chunks/{chunk-A2JDK7HA.js → chunk-5SAGHDIJ.js} +1 -1
- package/chunks/{chunk-HC6FTJAR.js → chunk-6WTBCWHP.js} +4 -2
- package/chunks/{chunk-4M3FPEBB.js → chunk-7FHZWI2R.js} +1 -1
- package/chunks/{chunk-C2OMFGU2.js → chunk-7TNODUAV.js} +1 -1
- package/chunks/{chunk-5KANJNMG.js → chunk-DTW4F4AN.js} +1 -1
- package/chunks/{chunk-HPTQVBGO.js → chunk-GREB3PFJ.js} +1 -1
- package/chunks/{chunk-LXPCGURF.js → chunk-ISEW5ABW.js} +1 -1
- package/chunks/{chunk-JZTWI7SZ.js → chunk-TFZIEWR5.js} +1 -1
- package/chunks/{chunk-NL63BEBA.js → chunk-UWAAPX6Y.js} +1 -1
- package/chunks/{chunk-MCD72KVU.js → chunk-VUDDBRCY.js} +2 -2
- package/chunks/{chunk-57OQN4T3.js → chunk-X6OHYKIW.js} +1 -1
- package/index.js +1 -1
- package/manifest.json +4 -4
- package/package.json +1 -1
- package/reader-PMHBVYNC.js +51 -0
- package/chunks/StepGuide-QYQ74I56.js +0 -1
- package/reader-OFQFNWX7.js +0 -51
- /package/chunks/{G2Chart-DIG5VQML.js.LEGAL.txt → G2Chart-YVTXVVRZ.js.LEGAL.txt} +0 -0
- /package/chunks/{Scene3D-KGHIFPQH.js.LEGAL.txt → Scene3D-VILMVRHH.js.LEGAL.txt} +0 -0
- /package/chunks/{chunk-HC6FTJAR.js.LEGAL.txt → chunk-6WTBCWHP.js.LEGAL.txt} +0 -0
- /package/chunks/{chunk-MCD72KVU.js.LEGAL.txt → chunk-VUDDBRCY.js.LEGAL.txt} +0 -0
- /package/{reader-OFQFNWX7.js.LEGAL.txt → reader-PMHBVYNC.js.LEGAL.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as J,c as Q}from"./chunk-5KANJNMG.js";import{d as U,f as v}from"./chunk-WWRZIZ7N.js";import{d as Z}from"./chunk-NL63BEBA.js";import{a as q,c as rs,jb as F,mb as j}from"./chunk-HC6FTJAR.js";import{a as X}from"./chunk-J6IRWTF7.js";import{c as B}from"./chunk-DCANE7XH.js";var d=B(rs(),1);q(`.sb-block.sg-block :is(h3,h4,p,ul,ol,li,pre):not(svg){margin:0}.sb-block.sg-block li:not(svg){padding:0}.sb-block.sg-block pre:not(svg){border:0;border-radius:0;background:none;color:inherit}.sb-block.sg-block{--sg-text: var(--text, #222222);--sg-muted: var(--muted, #6a6a6a);--sg-faint: var(--subtle, #929292);--sg-line: var(--line, #dddddd);--sg-paper: var(--paper, #ffffff);--sg-surface: var(--surface, #fafafa);--sg-accent: var(--accent, #120a8f);--sg-accent-soft: var(--accent-soft, #eeedf9);--sg-on-accent: var(--paper, #ffffff);--sg-good: #2f6b4f;--sg-good-soft: #e6efe9;--sg-warn: #a86b34;--sg-warn-soft: #f6ece2;--sg-wait: #d9a85b;--sg-wait-soft: #f8ead0;color:var(--sg-text);font-family:inherit;font-size:14px;line-height:1.7;padding:8px 0;container-type:inline-size;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}:root[data-theme=dark] .sb-block.sg-block,[data-theme=dark] .sb-block.sg-block{--sg-good: #7cc3a0;--sg-good-soft: #20352b;--sg-warn: #e0a96f;--sg-warn-soft: #3a2c1e;--sg-wait: #b88a45;--sg-wait-soft: #3a2f1c}.sb-block.sg-block *{box-sizing:border-box}.sb-block.sg-block button{font:inherit;cursor:pointer}.sb-block.sg-block button:focus-visible,.sb-block.sg-block pre:focus-visible,.sb-block.sg-block a:focus-visible{outline:2px solid var(--sg-accent);outline-offset:2px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-head{margin-bottom:14px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-heading{margin:0;font-size:17px;font-weight:700}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-sub{margin:2px 0 0;color:var(--sg-muted);font-size:13px}.sb-block.sg-block strong{font-weight:650}.sb-block.sg-block :not(pre)>code{font-family:var(--font-mono, ui-monospace, monospace);font-size:.88em;background:var(--sg-surface);border:1px solid var(--sg-line);border-radius:4px;padding:0 4px}.sb-block.sg-block a{color:var(--sg-accent);text-decoration:none;border-bottom:1px solid color-mix(in srgb,var(--sg-accent) 35%,transparent)}.sb-block.sg-block a:hover{border-bottom-color:var(--sg-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-announce{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-progress{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 16px;font-size:12px;line-height:1.4;color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-count{white-space:nowrap}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-bar{flex:1;max-width:220px;min-width:60px;height:3px;border-radius:2px;background:var(--sg-line);overflow:hidden}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-bar i{display:block;height:100%;background:var(--sg-accent);border-radius:2px;transition:width .25s ease}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tip{color:var(--sg-faint);white-space:nowrap}.sb-block.sg-block .sg-clear{border:0;background:none;padding:2px 4px;margin:-2px -4px;font-size:12px;color:var(--sg-muted);border-radius:4px}.sb-block.sg-block .sg-clear:hover{color:var(--sg-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-list{list-style:none;margin:0;padding:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-step{display:grid;grid-template-columns:30px minmax(0,1fr);gap:0 16px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-rail{position:relative;display:flex;flex-direction:column;align-items:center}.sb-block.sg-block .sg-num{position:relative;z-index:1;flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border-radius:50%;border:1px solid var(--sg-line);background:var(--sg-paper);color:var(--sg-text);font-size:13px;font-weight:600;transition:border-color .15s,background-color .15s,color .15s,box-shadow .15s}.sb-block.sg-block .sg-num:hover{border-color:var(--sg-accent);color:var(--sg-accent);box-shadow:0 0 0 3px var(--sg-accent-soft)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-num svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.sb-block.sg-block .sg-num[aria-pressed=true]{background:var(--sg-accent);border-color:var(--sg-accent);color:var(--sg-on-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-line{flex:1;width:1px;margin:6px 0;background:var(--sg-line);position:relative}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-line:after{content:"";position:absolute;width:2px;inset:0 0 0 -.5px;background:var(--sg-accent);transform:scaleY(0);transform-origin:top;transition:transform .3s ease}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-step.is-done .sg-line:after{transform:scaleY(1)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-content{min-width:0;padding:3px 0 28px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-step:last-child .sg-content{padding-bottom:4px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-title{margin:0;font-size:16px;line-height:1.5;font-weight:650}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-badge{display:inline-block;vertical-align:2px;margin-left:8px;padding:0 8px;border:1px solid var(--sg-line);border-radius:999px;font-size:11.5px;font-weight:600;line-height:1.7;color:var(--sg-muted);background:var(--sg-paper)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-body{margin:6px 0 0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-note,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-result{display:flex;align-items:flex-start;gap:8px;margin:12px 0 0;font-size:13px;line-height:1.65}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-note{color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-note svg,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-result svg{flex:none;width:16px;height:16px;margin-top:2px;fill:none;stroke-linecap:round;stroke-linejoin:round}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-note svg{stroke:var(--sg-faint);stroke-width:1.3}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-result{background:var(--sg-good-soft);border-radius:6px;padding:8px 12px 8px 10px;width:fit-content;max-width:100%}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-result svg circle{fill:var(--sg-good);stroke:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-result svg path{stroke:var(--sg-good-soft);stroke-width:1.8}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint{margin:10px 0 0;padding:8px 12px;border-radius:8px;font-size:13.5px;line-height:1.6}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint b{margin-right:8px;font-weight:650}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint.is-cue{background:var(--sg-good-soft)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint.is-cue b{color:var(--sg-good)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint.is-wait{background:var(--sg-warn-soft)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint.is-wait b{color:var(--sg-warn)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print-only{display:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer-static{margin:10px 0 0;font-size:13px;color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code{--sg-code-line: var(--line, #dddddd);margin-top:12px;border:1px solid var(--sg-code-line);border-radius:10px;background:var(--surface, #fafafa);color:var(--text, #222222);overflow:hidden}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-codebar{display:flex;align-items:center;gap:10px;min-height:38px;padding:0 6px 0 12px;border-bottom:1px solid var(--sg-code-line);background:color-mix(in srgb,var(--line, #dddddd) 30%,var(--surface, #fafafa))}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-lang{font-family:var(--font-mono, ui-monospace, monospace);font-size:11.5px;color:var(--muted, #6a6a6a);letter-spacing:.02em}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tabs{display:flex;align-self:stretch;gap:2px;margin-left:-4px;overflow-x:auto;scrollbar-width:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button{position:relative;border:0;background:none;padding:0 10px;font:inherit;font-size:12.5px;color:var(--muted, #6a6a6a);white-space:nowrap;cursor:pointer}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button:hover,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button[aria-selected=true]{color:var(--text, #222222)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button[aria-selected=true]{font-weight:650}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button[aria-selected=true]:after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;border-radius:1px;background:var(--accent, #120a8f)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy-hint{flex:1;min-width:0;text-align:right;font-size:12px;color:var(--muted, #6a6a6a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-copy{flex:none;display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 9px;border:1px solid transparent;border-radius:6px;background:none;font:inherit;font-size:12px;color:var(--muted, #6a6a6a);cursor:pointer}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-copy:hover{color:var(--text, #222222);background:var(--paper, #ffffff);border-color:var(--sg-code-line)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-copy.is-ok{color:var(--accent, #120a8f)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button:focus-visible,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-copy:focus-visible,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre:focus-visible{outline:2px solid var(--accent, #120a8f);outline-offset:-2px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre{margin:0;padding:13px 16px 14px;overflow-x:auto;font-family:var(--font-mono, ui-monospace, monospace);font-size:12.5px;line-height:1.7;tab-size:2;background:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre code{font:inherit;color:inherit;background:none;border:0;padding:0;white-space:pre}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-comment{color:var(--muted, #6a6a6a)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px;padding:8px 10px 8px 14px;border:1px solid var(--sg-line);border-radius:12px;background:var(--sg-paper);width:fit-content;max-width:100%}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-clock{display:flex;align-items:baseline;gap:8px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-clock b{font-size:18px;font-weight:700}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-clock span{font-size:12px;color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-meter{width:72px;height:4px;border-radius:2px;background:var(--sg-line);overflow:hidden}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-meter i{display:block;height:100%;background:var(--sg-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-run .sg-meter i{background:var(--sg-good)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer-buttons{display:flex;flex-wrap:wrap;gap:6px}.sb-block.sg-block .sg-go,.sb-block.sg-block .sg-reset{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 12px;font-size:13px;font-weight:600}.sb-block.sg-block .sg-go{border:1px solid var(--sg-accent);background:var(--sg-accent);color:var(--sg-on-accent)}.sb-block.sg-block .sg-timer.is-run .sg-go{background:var(--sg-good);border-color:var(--sg-good)}.sb-block.sg-block .sg-reset{border:1px solid var(--sg-line);background:var(--sg-paper);color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-done{border-color:var(--sg-warn);background:var(--sg-warn-soft);animation:sg-ding .6s ease 3}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-done .sg-clock b{color:var(--sg-warn)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large{position:relative;flex-direction:column;justify-content:flex-start;width:100%;margin:0;padding:14px 10px 12px;border-radius:16px;gap:10px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ring{width:132px;height:132px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ring-bg{fill:none;stroke:var(--sg-line);stroke-width:9}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ring-fg{fill:none;stroke:var(--sg-accent);stroke-width:9;stroke-linecap:round;transition:stroke-dashoffset .3s linear}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-run .sg-ring-fg{stroke:var(--sg-good)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-done .sg-ring-fg{stroke:var(--sg-warn)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-clock{position:absolute;top:14px;height:132px;width:110px;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-clock b{font-size:26px;line-height:1.2}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large.is-done .sg-clock b{font-size:18px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-clock span{line-height:1.3;margin-top:2px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-timer-buttons{justify-content:center}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon{margin:0 0 16px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-sum{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px;margin-bottom:8px;font-size:13px;color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-total b{font-size:20px;font-weight:700;color:var(--sg-text)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-key{display:inline-flex;align-items:center;gap:6px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-key b{color:var(--sg-text)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-key i{display:inline-block;width:20px;height:9px;border-radius:3px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-key.is-active i,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-seg.is-active{background:var(--sg-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-key.is-wait i,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-seg.is-wait{background:repeating-linear-gradient(135deg,var(--sg-wait-soft) 0 5px,var(--sg-wait) 5px 7px)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-hint{margin-left:auto;font-size:12px;color:var(--sg-faint)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-rows{background:var(--sg-surface);border:1px solid var(--sg-line);border-radius:12px;padding:8px 12px 4px}.sb-block.sg-block .sg-row{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:center;width:100%;height:24px;padding:0;border:0;border-radius:6px;background:none;color:inherit;text-align:left}.sb-block.sg-block .sg-row:hover{background:var(--sg-paper)}.sb-block.sg-block .sg-row.is-current{background:var(--sg-accent-soft)}.sb-block.sg-block .sg-row:focus-visible{outline-offset:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row-label{padding-left:4px;font-size:12.5px;color:var(--sg-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row-label em{font-style:normal;font-weight:700;margin-right:6px;color:var(--sg-faint)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row.is-current .sg-row-label{color:var(--sg-text);font-weight:650}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row.is-current .sg-row-label em{color:var(--sg-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-track{position:relative;display:block;height:100%}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-grid{position:absolute;top:0;bottom:0;border-left:1px dashed var(--sg-line)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-seg{position:absolute;top:6px;height:12px;min-width:3px;border-radius:4px;opacity:.6;transition:opacity .2s}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row:hover .sg-seg,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row.is-current .sg-seg{opacity:1}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row.is-done .sg-seg{opacity:.35}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-live{position:absolute;inset:-3px;border-radius:6px;border:2px solid var(--sg-good);animation:sg-pulse 1.2s ease-in-out infinite}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-axis{display:grid;grid-template-columns:118px minmax(0,1fr);height:20px;font-size:11px;color:var(--sg-faint)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-axis .sg-track span{position:absolute;top:3px;transform:translate(-50%);white-space:nowrap}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-axis .sg-track span:first-child{transform:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tray{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}.sb-block.sg-block .sg-tray button{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 11px;border:1px solid transparent;border-radius:999px;background:var(--sg-good-soft);color:var(--sg-text);font-size:12.5px}.sb-block.sg-block .sg-tray button.is-done{background:var(--sg-warn-soft);border-color:var(--sg-warn)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tray-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:12em}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:22px;padding:18px 20px;border:1px solid var(--sg-line);border-radius:16px;background:var(--sg-paper);animation:sg-in .25s ease}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card:not(:has(.sg-card-side)){grid-template-columns:minmax(0,1fr)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-main{min-width:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:4px}.sb-block.sg-block .sg-num.is-large{width:46px;height:46px;font-size:22px;font-weight:700}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-num.is-large svg{width:22px;height:22px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-titles{flex:1;min-width:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-titles small{font-size:12px;color:var(--sg-muted);letter-spacing:.04em}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-titles .sg-title{font-size:20px;line-height:1.3}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-head>.sg-badge{margin-left:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card .sg-body{font-size:15.5px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-foot{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;margin-top:14px}.sb-block.sg-block .sg-nav{padding:6px 16px;border:1px solid var(--sg-line);border-radius:999px;background:var(--sg-paper);color:var(--sg-text);font-size:14px;font-weight:600}.sb-block.sg-block .sg-nav.is-next{margin-left:auto;background:var(--sg-accent);border-color:var(--sg-accent);color:var(--sg-on-accent)}.sb-block.sg-block .sg-nav:disabled{opacity:.4;cursor:default}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-dots{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.sb-block.sg-block .sg-dots button{width:10px;height:10px;padding:0;border:0;border-radius:50%;background:var(--sg-line)}.sb-block.sg-block .sg-dots button.is-done{background:color-mix(in srgb,var(--sg-accent) 45%,var(--sg-line))}.sb-block.sg-block .sg-dots button.is-current{width:22px;border-radius:6px;background:var(--sg-accent)}@keyframes sg-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes sg-pulse{0%,to{opacity:.3}50%{opacity:1}}@keyframes sg-ding{0%,to{transform:none}25%{transform:rotate(-1.5deg)}75%{transform:rotate(1.5deg)}}@container (max-width: 640px){:is(.sb-block.sg-block,.sb-block.cr-block) .sg-step{grid-template-columns:26px minmax(0,1fr);gap:0 12px}.sb-block.sg-block .sg-num{width:26px;height:26px;font-size:12px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-content{padding:1px 0 24px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tip,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-hint{display:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-bar{max-width:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre{padding:12px 13px;font-size:12px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-codebar{flex-wrap:wrap}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-codebar>:first-child{flex:1;min-width:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy-hint{order:3;flex-basis:100%;text-align:left;white-space:normal}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy-hint:empty{display:none}.sb-block.sg-block .sg-row,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-axis{grid-template-columns:76px minmax(0,1fr)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card{grid-template-columns:minmax(0,1fr);padding:14px 12px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ring{width:104px;height:104px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-clock{width:92px;height:104px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-clock b{font-size:20px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-titles .sg-title{font-size:18px}.sb-block.sg-block .sg-nav{padding:6px 12px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-dots{order:3;flex-basis:100%;justify-content:center}}@media(prefers-reduced-motion:reduce){.sb-block.sg-block *,.sb-block.sg-block *:after{transition:none!important}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-live,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-done{animation:none}}@media print{:is(.sb-block.sg-block,.sb-block.cr-block) .sg-progress,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tray,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-hint,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy-hint,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-foot,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-screen,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer-buttons{display:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print-only{display:block}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print{margin:0;padding-left:1.6em}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print>li{break-inside:avoid;margin-bottom:16px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre{overflow:visible}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code pre[hidden]{display:block;border-top:1px solid var(--sg-code-line)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code pre[data-label]:before{content:attr(data-label);display:block;margin-bottom:4px;font-family:var(--font-sans, sans-serif);font-size:11.5px;font-weight:650;color:var(--muted, #6a6a6a)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre code{white-space:pre-wrap}}
|
|
1
|
+
import{b as J,c as Q}from"./chunk-DTW4F4AN.js";import{d as U,f as v}from"./chunk-55FJSXTX.js";import{d as Z}from"./chunk-UWAAPX6Y.js";import{a as q,c as rs,jb as F,mb as j}from"./chunk-6WTBCWHP.js";import{a as X}from"./chunk-J6IRWTF7.js";import{c as B}from"./chunk-DCANE7XH.js";var d=B(rs(),1);q(`.sb-block.sg-block :is(h3,h4,p,ul,ol,li,pre):not(svg){margin:0}.sb-block.sg-block li:not(svg){padding:0}.sb-block.sg-block pre:not(svg){border:0;border-radius:0;background:none;color:inherit}.sb-block.sg-block{--sg-text: var(--text, #222222);--sg-muted: var(--muted, #6a6a6a);--sg-faint: var(--subtle, #929292);--sg-line: var(--line, #dddddd);--sg-paper: var(--paper, #ffffff);--sg-surface: var(--surface, #fafafa);--sg-accent: var(--accent, #120a8f);--sg-accent-soft: var(--accent-soft, #eeedf9);--sg-on-accent: var(--paper, #ffffff);--sg-good: #2f6b4f;--sg-good-soft: #e6efe9;--sg-warn: #a86b34;--sg-warn-soft: #f6ece2;--sg-wait: #d9a85b;--sg-wait-soft: #f8ead0;color:var(--sg-text);font-family:inherit;font-size:14px;line-height:1.7;padding:8px 0;container-type:inline-size;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}:root[data-theme=dark] .sb-block.sg-block,[data-theme=dark] .sb-block.sg-block{--sg-good: #7cc3a0;--sg-good-soft: #20352b;--sg-warn: #e0a96f;--sg-warn-soft: #3a2c1e;--sg-wait: #b88a45;--sg-wait-soft: #3a2f1c}.sb-block.sg-block *{box-sizing:border-box}.sb-block.sg-block button{font:inherit;cursor:pointer}.sb-block.sg-block button:focus-visible,.sb-block.sg-block pre:focus-visible,.sb-block.sg-block a:focus-visible{outline:2px solid var(--sg-accent);outline-offset:2px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-head{margin-bottom:14px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-heading{margin:0;font-size:17px;font-weight:700}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-sub{margin:2px 0 0;color:var(--sg-muted);font-size:13px}.sb-block.sg-block strong{font-weight:650}.sb-block.sg-block :not(pre)>code{font-family:var(--font-mono, ui-monospace, monospace);font-size:.88em;background:var(--sg-surface);border:1px solid var(--sg-line);border-radius:4px;padding:0 4px}.sb-block.sg-block a{color:var(--sg-accent);text-decoration:none;border-bottom:1px solid color-mix(in srgb,var(--sg-accent) 35%,transparent)}.sb-block.sg-block a:hover{border-bottom-color:var(--sg-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-announce{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-progress{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 16px;font-size:12px;line-height:1.4;color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-count{white-space:nowrap}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-bar{flex:1;max-width:220px;min-width:60px;height:3px;border-radius:2px;background:var(--sg-line);overflow:hidden}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-bar i{display:block;height:100%;background:var(--sg-accent);border-radius:2px;transition:width .25s ease}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tip{color:var(--sg-faint);white-space:nowrap}.sb-block.sg-block .sg-clear{border:0;background:none;padding:2px 4px;margin:-2px -4px;font-size:12px;color:var(--sg-muted);border-radius:4px}.sb-block.sg-block .sg-clear:hover{color:var(--sg-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-list{list-style:none;margin:0;padding:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-step{display:grid;grid-template-columns:30px minmax(0,1fr);gap:0 16px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-rail{position:relative;display:flex;flex-direction:column;align-items:center}.sb-block.sg-block .sg-num{position:relative;z-index:1;flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border-radius:50%;border:1px solid var(--sg-line);background:var(--sg-paper);color:var(--sg-text);font-size:13px;font-weight:600;transition:border-color .15s,background-color .15s,color .15s,box-shadow .15s}.sb-block.sg-block .sg-num:hover{border-color:var(--sg-accent);color:var(--sg-accent);box-shadow:0 0 0 3px var(--sg-accent-soft)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-num svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.sb-block.sg-block .sg-num[aria-pressed=true]{background:var(--sg-accent);border-color:var(--sg-accent);color:var(--sg-on-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-line{flex:1;width:1px;margin:6px 0;background:var(--sg-line);position:relative}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-line:after{content:"";position:absolute;width:2px;inset:0 0 0 -.5px;background:var(--sg-accent);transform:scaleY(0);transform-origin:top;transition:transform .3s ease}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-step.is-done .sg-line:after{transform:scaleY(1)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-content{min-width:0;padding:3px 0 28px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-step:last-child .sg-content{padding-bottom:4px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-title{margin:0;font-size:16px;line-height:1.5;font-weight:650}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-badge{display:inline-block;vertical-align:2px;margin-left:8px;padding:0 8px;border:1px solid var(--sg-line);border-radius:999px;font-size:11.5px;font-weight:600;line-height:1.7;color:var(--sg-muted);background:var(--sg-paper)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-body{margin:6px 0 0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-note,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-result{display:flex;align-items:flex-start;gap:8px;margin:12px 0 0;font-size:13px;line-height:1.65}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-note{color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-note svg,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-result svg{flex:none;width:16px;height:16px;margin-top:2px;fill:none;stroke-linecap:round;stroke-linejoin:round}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-note svg{stroke:var(--sg-faint);stroke-width:1.3}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-result{background:var(--sg-good-soft);border-radius:6px;padding:8px 12px 8px 10px;width:fit-content;max-width:100%}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-result svg circle{fill:var(--sg-good);stroke:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-result svg path{stroke:var(--sg-good-soft);stroke-width:1.8}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint{margin:10px 0 0;padding:8px 12px;border-radius:8px;font-size:13.5px;line-height:1.6}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint b{margin-right:8px;font-weight:650}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint.is-cue{background:var(--sg-good-soft)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint.is-cue b{color:var(--sg-good)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint.is-wait{background:var(--sg-warn-soft)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-hint.is-wait b{color:var(--sg-warn)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print-only{display:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer-static{margin:10px 0 0;font-size:13px;color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code{--sg-code-line: var(--line, #dddddd);margin-top:12px;border:1px solid var(--sg-code-line);border-radius:10px;background:var(--surface, #fafafa);color:var(--text, #222222);overflow:hidden}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-codebar{display:flex;align-items:center;gap:10px;min-height:38px;padding:0 6px 0 12px;border-bottom:1px solid var(--sg-code-line);background:color-mix(in srgb,var(--line, #dddddd) 30%,var(--surface, #fafafa))}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-lang{font-family:var(--font-mono, ui-monospace, monospace);font-size:11.5px;color:var(--muted, #6a6a6a);letter-spacing:.02em}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tabs{display:flex;align-self:stretch;gap:2px;margin-left:-4px;overflow-x:auto;scrollbar-width:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button{position:relative;border:0;background:none;padding:0 10px;font:inherit;font-size:12.5px;color:var(--muted, #6a6a6a);white-space:nowrap;cursor:pointer}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button:hover,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button[aria-selected=true]{color:var(--text, #222222)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button[aria-selected=true]{font-weight:650}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button[aria-selected=true]:after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;border-radius:1px;background:var(--accent, #120a8f)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy-hint{flex:1;min-width:0;text-align:right;font-size:12px;color:var(--muted, #6a6a6a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-copy{flex:none;display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 9px;border:1px solid transparent;border-radius:6px;background:none;font:inherit;font-size:12px;color:var(--muted, #6a6a6a);cursor:pointer}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-copy:hover{color:var(--text, #222222);background:var(--paper, #ffffff);border-color:var(--sg-code-line)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-copy.is-ok{color:var(--accent, #120a8f)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-tabs button:focus-visible,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-copy:focus-visible,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre:focus-visible{outline:2px solid var(--accent, #120a8f);outline-offset:-2px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre{margin:0;padding:13px 16px 14px;overflow-x:auto;font-family:var(--font-mono, ui-monospace, monospace);font-size:12.5px;line-height:1.7;tab-size:2;background:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre code{font:inherit;color:inherit;background:none;border:0;padding:0;white-space:pre}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-comment{color:var(--muted, #6a6a6a)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px;padding:8px 10px 8px 14px;border:1px solid var(--sg-line);border-radius:12px;background:var(--sg-paper);width:fit-content;max-width:100%}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-clock{display:flex;align-items:baseline;gap:8px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-clock b{font-size:18px;font-weight:700}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-clock span{font-size:12px;color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-meter{width:72px;height:4px;border-radius:2px;background:var(--sg-line);overflow:hidden}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-meter i{display:block;height:100%;background:var(--sg-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-run .sg-meter i{background:var(--sg-good)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer-buttons{display:flex;flex-wrap:wrap;gap:6px}.sb-block.sg-block .sg-go,.sb-block.sg-block .sg-reset{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 12px;font-size:13px;font-weight:600}.sb-block.sg-block .sg-go{border:1px solid var(--sg-accent);background:var(--sg-accent);color:var(--sg-on-accent)}.sb-block.sg-block .sg-timer.is-run .sg-go{background:var(--sg-good);border-color:var(--sg-good)}.sb-block.sg-block .sg-reset{border:1px solid var(--sg-line);background:var(--sg-paper);color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-done{border-color:var(--sg-warn);background:var(--sg-warn-soft);animation:sg-ding .6s ease 3}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-done .sg-clock b{color:var(--sg-warn)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large{position:relative;flex-direction:column;justify-content:flex-start;width:100%;margin:0;padding:14px 10px 12px;border-radius:16px;gap:10px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ring{width:132px;height:132px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ring-bg{fill:none;stroke:var(--sg-line);stroke-width:9}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ring-fg{fill:none;stroke:var(--sg-accent);stroke-width:9;stroke-linecap:round;transition:stroke-dashoffset .3s linear}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-run .sg-ring-fg{stroke:var(--sg-good)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-done .sg-ring-fg{stroke:var(--sg-warn)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-clock{position:absolute;top:14px;height:132px;width:110px;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-clock b{font-size:26px;line-height:1.2}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large.is-done .sg-clock b{font-size:18px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-clock span{line-height:1.3;margin-top:2px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-timer-buttons{justify-content:center}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon{margin:0 0 16px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-sum{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px;margin-bottom:8px;font-size:13px;color:var(--sg-muted)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-total b{font-size:20px;font-weight:700;color:var(--sg-text)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-key{display:inline-flex;align-items:center;gap:6px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-key b{color:var(--sg-text)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-key i{display:inline-block;width:20px;height:9px;border-radius:3px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-key.is-active i,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-seg.is-active{background:var(--sg-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-key.is-wait i,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-seg.is-wait{background:repeating-linear-gradient(135deg,var(--sg-wait-soft) 0 5px,var(--sg-wait) 5px 7px)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-hint{margin-left:auto;font-size:12px;color:var(--sg-faint)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-rows{background:var(--sg-surface);border:1px solid var(--sg-line);border-radius:12px;padding:8px 12px 4px}.sb-block.sg-block .sg-row{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:center;width:100%;height:24px;padding:0;border:0;border-radius:6px;background:none;color:inherit;text-align:left}.sb-block.sg-block .sg-row:hover{background:var(--sg-paper)}.sb-block.sg-block .sg-row.is-current{background:var(--sg-accent-soft)}.sb-block.sg-block .sg-row:focus-visible{outline-offset:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row-label{padding-left:4px;font-size:12.5px;color:var(--sg-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row-label em{font-style:normal;font-weight:700;margin-right:6px;color:var(--sg-faint)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row.is-current .sg-row-label{color:var(--sg-text);font-weight:650}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row.is-current .sg-row-label em{color:var(--sg-accent)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-track{position:relative;display:block;height:100%}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-grid{position:absolute;top:0;bottom:0;border-left:1px dashed var(--sg-line)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-seg{position:absolute;top:6px;height:12px;min-width:3px;border-radius:4px;opacity:.6;transition:opacity .2s}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row:hover .sg-seg,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row.is-current .sg-seg{opacity:1}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-row.is-done .sg-seg{opacity:.35}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-live{position:absolute;inset:-3px;border-radius:6px;border:2px solid var(--sg-good);animation:sg-pulse 1.2s ease-in-out infinite}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-axis{display:grid;grid-template-columns:118px minmax(0,1fr);height:20px;font-size:11px;color:var(--sg-faint)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-axis .sg-track span{position:absolute;top:3px;transform:translate(-50%);white-space:nowrap}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-axis .sg-track span:first-child{transform:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tray{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}.sb-block.sg-block .sg-tray button{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 11px;border:1px solid transparent;border-radius:999px;background:var(--sg-good-soft);color:var(--sg-text);font-size:12.5px}.sb-block.sg-block .sg-tray button.is-done{background:var(--sg-warn-soft);border-color:var(--sg-warn)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tray-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:12em}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:22px;padding:18px 20px;border:1px solid var(--sg-line);border-radius:16px;background:var(--sg-paper);animation:sg-in .25s ease}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card:not(:has(.sg-card-side)){grid-template-columns:minmax(0,1fr)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-main{min-width:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:4px}.sb-block.sg-block .sg-num.is-large{width:46px;height:46px;font-size:22px;font-weight:700}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-num.is-large svg{width:22px;height:22px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-titles{flex:1;min-width:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-titles small{font-size:12px;color:var(--sg-muted);letter-spacing:.04em}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-titles .sg-title{font-size:20px;line-height:1.3}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-head>.sg-badge{margin-left:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card .sg-body{font-size:15.5px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-foot{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;margin-top:14px}.sb-block.sg-block .sg-nav{padding:6px 16px;border:1px solid var(--sg-line);border-radius:999px;background:var(--sg-paper);color:var(--sg-text);font-size:14px;font-weight:600}.sb-block.sg-block .sg-nav.is-next{margin-left:auto;background:var(--sg-accent);border-color:var(--sg-accent);color:var(--sg-on-accent)}.sb-block.sg-block .sg-nav:disabled{opacity:.4;cursor:default}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-dots{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.sb-block.sg-block .sg-dots button{width:10px;height:10px;padding:0;border:0;border-radius:50%;background:var(--sg-line)}.sb-block.sg-block .sg-dots button.is-done{background:color-mix(in srgb,var(--sg-accent) 45%,var(--sg-line))}.sb-block.sg-block .sg-dots button.is-current{width:22px;border-radius:6px;background:var(--sg-accent)}@keyframes sg-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes sg-pulse{0%,to{opacity:.3}50%{opacity:1}}@keyframes sg-ding{0%,to{transform:none}25%{transform:rotate(-1.5deg)}75%{transform:rotate(1.5deg)}}@container (max-width: 640px){:is(.sb-block.sg-block,.sb-block.cr-block) .sg-step{grid-template-columns:26px minmax(0,1fr);gap:0 12px}.sb-block.sg-block .sg-num{width:26px;height:26px;font-size:12px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-content{padding:1px 0 24px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tip,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-hint{display:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-bar{max-width:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre{padding:12px 13px;font-size:12px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-codebar{flex-wrap:wrap}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-codebar>:first-child{flex:1;min-width:0}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy-hint{order:3;flex-basis:100%;text-align:left;white-space:normal}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy-hint:empty{display:none}.sb-block.sg-block .sg-row,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-axis{grid-template-columns:76px minmax(0,1fr)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card{grid-template-columns:minmax(0,1fr);padding:14px 12px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ring{width:104px;height:104px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-clock{width:92px;height:104px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-large .sg-clock b{font-size:20px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card-titles .sg-title{font-size:18px}.sb-block.sg-block .sg-nav{padding:6px 12px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-dots{order:3;flex-basis:100%;justify-content:center}}@media(prefers-reduced-motion:reduce){.sb-block.sg-block *,.sb-block.sg-block *:after{transition:none!important}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-live,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer.is-done{animation:none}}@media print{:is(.sb-block.sg-block,.sb-block.cr-block) .sg-progress,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-tray,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-ribbon-hint,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-copy-hint,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-card,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-foot,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-screen,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-timer-buttons{display:none}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print,:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print-only{display:block}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print{margin:0;padding-left:1.6em}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-print>li{break-inside:avoid;margin-bottom:16px}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre{overflow:visible}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code pre[hidden]{display:block;border-top:1px solid var(--sg-code-line)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code pre[data-label]:before{content:attr(data-label);display:block;margin-bottom:4px;font-family:var(--font-sans, sans-serif);font-size:11.5px;font-weight:650;color:var(--muted, #6a6a6a)}:is(.sb-block.sg-block,.sb-block.cr-block) .sg-code .sg-pre code{white-space:pre-wrap}}
|
|
2
2
|
`);var K=X("stepGuide",{"zh-CN":{title:"\u64CD\u4F5C\u6B65\u9AA4",progress:"\u5DF2\u5B8C\u6210 {done} / {total} \u6B65",allDone:"\u5168\u90E8\u5B8C\u6210",resetProgress:"\u91CD\u7F6E",resetProgressLabel:"\u6E05\u9664\u5168\u90E8\u5B8C\u6210\u6807\u8BB0",tickHint:"\u70B9\u51FB\u5E8F\u53F7\u6807\u8BB0\u5B8C\u6210",markDone:"\u5C06\u7B2C {number} \u6B65\u6807\u8BB0\u4E3A\u5DF2\u5B8C\u6210",markUndone:"\u7B2C {number} \u6B65\u5DF2\u5B8C\u6210\uFF0C\u70B9\u51FB\u53D6\u6D88",note:"\u63D0\u793A",result:"\u5B8C\u6210\u540E",cue:"\u770B\u5230\u8FD9\u6837\u5C31\u5BF9\u4E86",wait:"\u7B49\u5F85\u65F6","code.label":"\u4EE3\u7801","code.variants":"\u9009\u62E9\u73AF\u5883","code.copy":"\u590D\u5236","code.copied":"\u5DF2\u590D\u5236","code.copyLabel":"\u590D\u5236{label}","code.selected":"\u5DF2\u9009\u4E2D\uFF0C\u6309 \u2318C / Ctrl+C \u590D\u5236","code.stepLabel":"\u7B2C {number} \u6B65\u7684\u4EE3\u7801","timer.label":"\u8BA1\u65F6\u5668","timer.start":"\u5F00\u59CB\u8BA1\u65F6","timer.pause":"\u6682\u505C","timer.resume":"\u7EE7\u7EED","timer.reset":"\u91CD\u7F6E","timer.timeUp":"\u65F6\u95F4\u5230","timer.timeUpStep":"\u7B2C {number} \u6B65\u65F6\u95F4\u5230","timer.tray":"\u6B63\u5728\u8BA1\u65F6","timer.trayItem":"\u7B2C {number} \u6B65 {label}\uFF1A{time}\uFF0C\u70B9\u51FB\u67E5\u770B","timer.of":"{label} \xB7 {minutes}","duration.minutes":"{minutes} \u5206\u949F","duration.hours":"{hours} \u5C0F\u65F6","duration.hoursMinutes":"{hours} \u5C0F\u65F6 {minutes} \u5206\u949F","ribbon.label":"\u65F6\u95F4\u7EBF","ribbon.total":"\u603B\u8BA1","ribbon.active":"\u52A8\u624B","ribbon.wait":"\u7B49\u5F85","ribbon.hint":"\u70B9\u51FB\u4E00\u884C\u8DF3\u5230\u8BE5\u6B65\u9AA4","ribbon.row":"\u7B2C {number} \u6B65 {label}","focus.position":"\u6B65\u9AA4 {number} / {total}","focus.prev":"\u4E0A\u4E00\u6B65","focus.next":"\u4E0B\u4E00\u6B65","focus.nav":"\u6B65\u9AA4\u5BFC\u822A","focus.goTo":"\u8DF3\u5230\u7B2C {number} \u6B65\uFF1A{title}"},en:{title:"Steps",progress:"{done} of {total} steps done",allDone:"All steps done",resetProgress:"Reset",resetProgressLabel:"Clear every done mark",tickHint:"Click a number to mark it done",markDone:"Mark step {number} as done",markUndone:"Step {number} is done; click to undo",note:"Note",result:"Result",cue:"You are there when",wait:"While you wait","code.label":"Code","code.variants":"Choose an environment","code.copy":"Copy","code.copied":"Copied","code.copyLabel":"Copy {label}","code.selected":"Selected. Press \u2318C / Ctrl+C to copy","code.stepLabel":"code for step {number}","timer.label":"Timer","timer.start":"Start timer","timer.pause":"Pause","timer.resume":"Resume","timer.reset":"Reset","timer.timeUp":"Time's up","timer.timeUpStep":"Step {number}: time's up","timer.tray":"Running timers","timer.trayItem":"Step {number} {label}: {time}; click to view","timer.of":"{label} \xB7 {minutes}","duration.minutes":"{minutes} min","duration.hours":"{hours} h","duration.hoursMinutes":"{hours} h {minutes} min","ribbon.label":"Timeline","ribbon.total":"total","ribbon.active":"Hands-on","ribbon.wait":"Waiting","ribbon.hint":"Click a row to jump to that step","ribbon.row":"Step {number} {label}","focus.position":"Step {number} of {total}","focus.prev":"Previous","focus.next":"Next","focus.nav":"Step navigation","focus.goTo":"Go to step {number}: {title}"}});var s=B(F(),1);function bs({source:l,className:c}){return(0,s.jsx)(s.Fragment,{children:l.split(/\n+/).filter(t=>t.trim()).map((t,r)=>(0,s.jsx)("p",{className:c,children:(0,s.jsx)(v,{source:t})},r))})}function as(l,c){let t=document.activeElement,r=document.createElement("textarea");r.value=l,r.setAttribute("readonly",""),r.style.cssText="position:fixed;top:0;left:0;width:1px;height:1px;opacity:0;pointer-events:none",document.body.appendChild(r),r.select();let n=document.execCommand("copy");if(r.remove(),t?.focus?.({preventScroll:!0}),!n&&c){let g=document.createRange();g.selectNodeContents(c);let i=window.getSelection();i?.removeAllRanges(),i?.addRange(g)}return n}var is=(l,c)=>{let t=l.trimStart();return t.startsWith("//")?!0:t.startsWith("#")&&!t.startsWith("#!")&&!/^(md|markdown)$/i.test(c??"")};function ns({variants:l,name:c,fallbackLang:t}){let r=j(K),n=(0,d.useId)(),[g,i]=(0,d.useState)(0),[k,y]=(0,d.useState)("idle"),N=(0,d.useRef)(null),S=(0,d.useRef)(null),z=(0,d.useRef)(void 0);(0,d.useEffect)(()=>()=>window.clearTimeout(z.current),[]);let a=l.length>1,x=l[Math.min(g,l.length-1)],D=x.code.replace(/\n+$/,""),h=x.lang??t,L=()=>{let u=as(D,N.current);y(u?"copied":"selected"),window.clearTimeout(z.current),z.current=window.setTimeout(()=>y("idle"),u?1500:4e3)},R=u=>{i(u),y("idle")},E=u=>{let p={ArrowRight:g+1,ArrowLeft:g-1,Home:0,End:l.length-1};if(!(u.key in p))return;u.preventDefault();let T=(p[u.key]+l.length)%l.length;R(T),S.current?.children[T]?.focus()};return(0,s.jsxs)("div",{className:"sg-code",children:[(0,s.jsxs)("div",{className:"sg-codebar",children:[a?(0,s.jsx)("div",{className:"sg-tabs",role:"tablist","aria-label":r("code.variants"),ref:S,onKeyDown:E,children:l.map((u,p)=>(0,s.jsx)("button",{type:"button",role:"tab",id:`${n}-tab${p}`,"aria-selected":p===g,"aria-controls":`${n}-panel${p}`,tabIndex:p===g?0:-1,onClick:()=>R(p),children:u.label},p))}):(0,s.jsx)("span",{className:"sg-lang",children:x.label||h||r("code.label")}),(0,s.jsx)("span",{className:"sg-copy-hint","aria-live":"polite",children:k==="selected"?r("code.selected"):""}),(0,s.jsxs)("button",{type:"button",className:`sg-copy${k==="copied"?" is-ok":""}`,onClick:L,"aria-label":k==="copied"?r("code.copied"):r("code.copyLabel",{label:c}),children:[k==="copied"?(0,s.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M3.5 8.5l3 3 6-7"})}):(0,s.jsxs)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),(0,s.jsx)("path",{d:"M10.5 3.5v-.5a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h.5"})]}),(0,s.jsx)("span",{children:r(k==="copied"?"code.copied":"code.copy")})]})]}),l.map((u,p)=>(0,s.jsx)("pre",{className:"sg-pre",id:`${n}-panel${p}`,role:a?"tabpanel":void 0,"aria-labelledby":a?`${n}-tab${p}`:void 0,"aria-label":a?void 0:c,"data-label":a?u.label:void 0,hidden:p!==g,tabIndex:0,children:(0,s.jsx)("code",{ref:p===g?N:void 0,children:u.code.replace(/\n+$/,"").split(`
|
|
3
3
|
`).map((T,C)=>(0,s.jsxs)("span",{className:is(T,u.lang??t)?"sg-comment":void 0,children:[T,`
|
|
4
4
|
`]},C))})},p))]})}function H(l,c){let t=Math.floor(l/60),r=Math.round(l%60);return t?r?c("duration.hoursMinutes",{hours:t,minutes:r}):c("duration.hours",{hours:t}):c("duration.minutes",{minutes:r})}function ss(l){let c=Math.max(0,Math.ceil(l/1e3)),t=Math.floor(c/3600),r=Math.floor(c%3600/60),n=String(c%60).padStart(2,"0");return t?`${t}:${String(r).padStart(2,"0")}:${n}`:`${r}:${n}`}var gs=l=>l===0?"0":`${Math.floor(l/60)}:${String(l%60).padStart(2,"0")}`,ks=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;function ds({step:l,number:c,timer:t,left:r,large:n,onToggle:g,onReset:i,t:k}){let y=l.timer.minutes*6e4,N=y?r/y:0,S=54,z=2*Math.PI*S,a=l.timer.label,x=t?.done?" is-done":t?.endAt?" is-run":"";return(0,s.jsxs)("div",{className:`sg-timer${n?" is-large":""}${x}`,role:"group","aria-label":a?`${k("timer.label")} \xB7 ${a}`:k("timer.label"),children:[n&&(0,s.jsxs)("svg",{viewBox:"0 0 132 132",className:"sg-ring","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"66",cy:"66",r:S,className:"sg-ring-bg"}),(0,s.jsx)("circle",{cx:"66",cy:"66",r:S,className:"sg-ring-fg",strokeDasharray:z,strokeDashoffset:z*(1-N),transform:"rotate(-90 66 66)"})]}),(0,s.jsxs)("div",{className:"sg-clock",children:[(0,s.jsx)("b",{role:"timer",children:t?.done?k("timer.timeUp"):ss(r)}),a&&(0,s.jsx)("span",{children:a})]}),!n&&(0,s.jsx)("span",{className:"sg-meter","aria-hidden":"true",children:(0,s.jsx)("i",{style:{width:`${(1-N)*100}%`}})}),(0,s.jsxs)("div",{className:"sg-timer-buttons",children:[!t?.done&&(0,s.jsxs)("button",{type:"button",className:"sg-go",onClick:g,"aria-label":`${t?.endAt?k("timer.pause"):k(t?"timer.resume":"timer.start")} \xB7 ${c}`,children:[(0,s.jsx)("span",{"aria-hidden":"true",children:t?.endAt?"\u275A\u275A":"\u25B6"}),t?.endAt?k("timer.pause"):k(t?"timer.resume":"timer.start")]}),t&&(0,s.jsxs)("button",{type:"button",className:"sg-reset",onClick:i,children:[(0,s.jsx)("span",{"aria-hidden":"true",children:"\u21BA"}),k("timer.reset")]})]})]})}function G({step:l,number:c,t,timer:r}){let n=l.variants?.length?l.variants:l.code?[{label:"",code:l.code,lang:l.lang}]:null;return(0,s.jsxs)(s.Fragment,{children:[l.body&&(0,s.jsx)(bs,{source:l.body,className:"sg-body"}),n&&(0,s.jsx)(ns,{variants:n,name:t("code.stepLabel",{number:c}),fallbackLang:l.lang}),l.cue&&(0,s.jsxs)("p",{className:"sg-hint is-cue",children:[(0,s.jsx)("b",{children:t("cue")}),(0,s.jsx)("span",{children:(0,s.jsx)(v,{source:l.cue})})]}),l.wait&&(0,s.jsxs)("p",{className:"sg-hint is-wait",children:[(0,s.jsx)("b",{children:t("wait")}),(0,s.jsx)("span",{children:(0,s.jsx)(v,{source:l.wait})})]}),l.note&&(0,s.jsxs)("p",{className:"sg-note",children:[(0,s.jsxs)("svg",{viewBox:"0 0 16 16",role:"img","aria-label":t("note"),children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"6.2"}),(0,s.jsx)("path",{d:"M8 7.2v3.6M8 5.1v.1"})]}),(0,s.jsx)("span",{children:(0,s.jsx)(v,{source:l.note})})]}),l.result&&(0,s.jsxs)("p",{className:"sg-result",children:[(0,s.jsxs)("svg",{viewBox:"0 0 16 16",role:"img","aria-label":t("result"),children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"7"}),(0,s.jsx)("path",{d:"M4.9 8.2l2.1 2.1 4.1-4.5"})]}),(0,s.jsx)("span",{children:(0,s.jsx)(v,{source:l.result})})]}),r]})}function _({step:l,t:c}){if(!l.timer)return null;let t=H(l.timer.minutes,c);return(0,s.jsxs)("p",{className:"sg-timer-static",children:[(0,s.jsx)("span",{"aria-hidden":"true",children:"\u23F1 "}),l.timer.label?c("timer.of",{label:l.timer.label,minutes:t}):t]})}var ps=()=>(0,s.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M3.8 8.4l2.8 2.8 5.6-6.4"})});function Ss({data:l}){let c=j(K),t=l,r=t.steps,n=t.layout==="focus",g=t.start??1,i=(o,e)=>o.id??`#${e}`,k=o=>o.short??U(o.title),y=(0,d.useId)(),N=o=>`${y}-step${o}`,[S,z]=(0,d.useState)(()=>Math.min(Math.max(t.initialStep??0,0),r.length-1)),a=Math.min(S,r.length-1),[x,D]=(0,d.useState)(()=>new Set),[h,L]=(0,d.useState)({}),[R,E]=(0,d.useState)(()=>Date.now()),[u,p]=(0,d.useState)(""),T=(0,d.useRef)(null);(0,d.useEffect)(()=>{if(!Object.values(h).some(e=>e.endAt))return;let o=window.setInterval(()=>{let e=Date.now();E(e);let b=Object.entries(h).filter(([,f])=>f.endAt!==null&&f.endAt<=e);if(!b.length)return;L(f=>{let $={...f};for(let[ls]of b)$[ls]={left:0,endAt:null,done:!0};return $});let m=r.findIndex((f,$)=>i(f,$)===b[0][0]);p(c("timer.timeUpStep",{number:g+m}))},250);return()=>window.clearInterval(o)},[h,r,g,c]);let C=r.filter((o,e)=>x.has(i(o,e))).length,os=o=>D(e=>{let b=new Set(e);return b.has(o)?b.delete(o):b.add(o),b}),P=(o,e)=>{let b=h[i(o,e)];return b?b.endAt?Math.max(0,b.endAt-R):b.left:(o.timer?.minutes??0)*6e4},es=(o,e)=>{let b=i(o,e),m=h[b];if(m?.done)return;let f=P(o,e),$=Date.now();E($),L({...h,[b]:m?.endAt?{left:f,endAt:null,done:!1}:{left:f,endAt:$+f,done:!1}})},cs=(o,e)=>{let b={...h};delete b[i(o,e)],L(b)},M=o=>{let e=Math.min(r.length-1,Math.max(0,o));if(z(e),n)return;let b=T.current?.querySelector(`[id="${N(e)}"]`);b?.scrollIntoView({block:"nearest",behavior:ks()?"auto":"smooth"}),b?.querySelector(".sg-num")?.focus({preventScroll:!0})},ts=o=>{if(!(!n||o.defaultPrevented||o.target.closest("[role=tablist], pre, input, textarea"))){if(o.key==="ArrowRight")M(a+1);else if(o.key==="ArrowLeft")M(a-1);else return;o.preventDefault()}},O=(o,e,b)=>o.timer?(0,s.jsx)(ds,{step:o,number:g+e,timer:h[i(o,e)],left:P(o,e),large:b,onToggle:()=>es(o,e),onReset:()=>cs(o,e),t:c}):null,W=(o,e,b="sg-num")=>{let m=g+e,f=x.has(i(o,e));return(0,s.jsx)("button",{type:"button",className:b,"aria-pressed":f,"aria-label":f?c("markUndone",{number:m}):c("markDone",{number:m}),onClick:()=>os(i(o,e)),children:f?(0,s.jsx)(ps,{}):m})},V=r.map((o,e)=>({step:o,i:e,timer:h[i(o,e)]})).filter(({i:o,timer:e})=>e&&(e.endAt||e.done)&&!(n&&o===a)),A=J(r),Y=Q(A.total),I=o=>`${o/A.total*100}%`,w=r[a];return(0,s.jsxs)("section",{ref:T,className:`sb-block sg-block ${n?"is-focus":"is-list"}`,"aria-label":Z(t.title,c("title")),onKeyDown:ts,children:[(t.title||t.description)&&(0,s.jsxs)("div",{className:"sg-head",children:[t.title&&(0,s.jsx)("h3",{className:"sg-heading",children:t.title}),t.description&&(0,s.jsx)("p",{className:"sg-sub",children:(0,s.jsx)(v,{source:t.description})})]}),r.length>1&&(0,s.jsxs)("div",{className:"sg-progress",children:[(0,s.jsx)("span",{className:"sg-count","aria-live":"polite",children:C===r.length?c("allDone"):c("progress",{done:C,total:r.length})}),(0,s.jsx)("span",{className:"sg-bar","aria-hidden":"true",children:(0,s.jsx)("i",{style:{width:`${C/r.length*100}%`}})}),C>0?(0,s.jsx)("button",{type:"button",className:"sg-clear","aria-label":c("resetProgressLabel"),onClick:()=>D(new Set),children:c("resetProgress")}):!n&&(0,s.jsx)("span",{className:"sg-tip",children:c("tickHint")})]}),A.total>0&&(0,s.jsxs)("div",{className:"sg-ribbon",role:"group","aria-label":c("ribbon.label"),children:[(0,s.jsxs)("div",{className:"sg-ribbon-sum",children:[(0,s.jsxs)("span",{className:"sg-ribbon-total",children:[(0,s.jsx)("b",{children:H(A.total,c)})," ",c("ribbon.total")]}),(0,s.jsxs)("span",{className:"sg-key is-active",children:[(0,s.jsx)("i",{"aria-hidden":"true"})," ",c("ribbon.active")," ",(0,s.jsx)("b",{children:H(A.active,c)})]}),(0,s.jsxs)("span",{className:"sg-key is-wait",children:[(0,s.jsx)("i",{"aria-hidden":"true"})," ",c("ribbon.wait")," ",(0,s.jsx)("b",{children:H(A.wait,c)})]}),(0,s.jsx)("span",{className:"sg-ribbon-hint",children:c("ribbon.hint")})]}),(0,s.jsxs)("div",{className:"sg-ribbon-rows",children:[r.map((o,e)=>o.segments?.length?(0,s.jsxs)("button",{type:"button",className:`sg-row${n&&e===a?" is-current":""}${x.has(i(o,e))?" is-done":""}`,"aria-current":n&&e===a?"step":void 0,"aria-label":c("ribbon.row",{number:g+e,label:k(o)}),onClick:()=>M(e),children:[(0,s.jsxs)("span",{className:"sg-row-label","aria-hidden":"true",children:[(0,s.jsx)("em",{children:g+e}),k(o)]}),(0,s.jsxs)("span",{className:"sg-track","aria-hidden":"true",children:[Y.map(b=>(0,s.jsx)("span",{className:"sg-grid",style:{left:I(b)}},b)),o.segments.map((b,m)=>(0,s.jsx)("span",{className:`sg-seg is-${b.kind}`,style:{left:I(b.start),width:I(b.minutes)},children:h[i(o,e)]?.endAt&&m===o.segments.length-1&&(0,s.jsx)("span",{className:"sg-live"})},m))]})]},i(o,e)):null),(0,s.jsxs)("div",{className:"sg-axis","aria-hidden":"true",children:[(0,s.jsx)("span",{}),(0,s.jsx)("span",{className:"sg-track",children:Y.map(o=>(0,s.jsx)("span",{style:{left:I(o)},children:gs(o)},o))})]})]})]}),V.length>0&&(0,s.jsx)("div",{className:"sg-tray",role:"group","aria-label":c("timer.tray"),children:V.map(({step:o,i:e,timer:b})=>{let m=b.done?c("timer.timeUp"):ss(P(o,e));return(0,s.jsxs)("button",{type:"button",className:b.done?"is-done":void 0,"aria-label":c("timer.trayItem",{number:g+e,label:k(o),time:m}),onClick:()=>M(e),children:[(0,s.jsx)("span",{"aria-hidden":"true",children:b.done?"\u23F0":"\u23F1"}),(0,s.jsx)("span",{className:"sg-tray-label",children:k(o)}),(0,s.jsx)("b",{children:m})]},i(o,e))})}),n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"sg-card",children:[(0,s.jsxs)("div",{className:"sg-card-main",children:[(0,s.jsxs)("div",{className:`sg-card-head${x.has(i(w,a))?" is-done":""}`,children:[W(w,a,"sg-num is-large"),(0,s.jsxs)("div",{className:"sg-card-titles",children:[(0,s.jsx)("small",{children:c("focus.position",{number:a+1,total:r.length})}),(0,s.jsx)("h4",{className:"sg-title","aria-live":"polite",children:(0,s.jsx)(v,{source:w.title})})]}),w.badge&&(0,s.jsx)("span",{className:"sg-badge",children:w.badge})]}),(0,s.jsx)(G,{step:w,number:g+a,t:c})]}),w.timer&&(0,s.jsx)("div",{className:"sg-card-side",children:O(w,a,!0)})]},i(w,a)),(0,s.jsxs)("nav",{className:"sg-foot","aria-label":c("focus.nav"),children:[(0,s.jsxs)("button",{type:"button",className:"sg-nav",onClick:()=>M(a-1),disabled:a===0,children:[(0,s.jsx)("span",{"aria-hidden":"true",children:"\u2190 "}),c("focus.prev")]}),(0,s.jsx)("div",{className:"sg-dots",children:r.map((o,e)=>(0,s.jsx)("button",{type:"button","aria-label":c("focus.goTo",{number:g+e,title:U(o.title)}),"aria-current":e===a?"step":void 0,className:`${e===a?"is-current":""}${x.has(i(o,e))?" is-done":""}`,onClick:()=>M(e)},i(o,e)))}),(0,s.jsxs)("button",{type:"button",className:"sg-nav is-next",onClick:()=>M(a+1),disabled:a===r.length-1,children:[c("focus.next"),(0,s.jsx)("span",{"aria-hidden":"true",children:" \u2192"})]})]}),(0,s.jsx)("ol",{className:"sg-print",start:g,children:r.map((o,e)=>(0,s.jsxs)("li",{children:[(0,s.jsxs)("h4",{className:"sg-title",children:[(0,s.jsx)(v,{source:o.title}),o.badge&&(0,s.jsx)("span",{className:"sg-badge",children:o.badge})]}),(0,s.jsx)(G,{step:o,number:g+e,t:c,timer:(0,s.jsx)(_,{step:o,t:c})})]},i(o,e)))})]}):(0,s.jsx)("ol",{className:"sg-list",children:r.map((o,e)=>{let b=x.has(i(o,e));return(0,s.jsxs)("li",{id:N(e),className:`sg-step${b?" is-done":""}`,children:[(0,s.jsxs)("div",{className:"sg-rail",children:[W(o,e),e<r.length-1&&(0,s.jsx)("span",{className:"sg-line","aria-hidden":"true"})]}),(0,s.jsxs)("div",{className:"sg-content",children:[(0,s.jsxs)("h4",{className:"sg-title",children:[(0,s.jsx)(v,{source:o.title}),o.badge&&(0,s.jsx)("span",{className:"sg-badge",children:o.badge})]}),(0,s.jsx)(G,{step:o,number:g+e,t:c,timer:o.timer&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"sg-screen",children:O(o,e,!1)}),(0,s.jsx)("div",{className:"sg-print-only",children:(0,s.jsx)(_,{step:o,t:c})})]})})]})]},i(o,e))})}),(0,s.jsx)("p",{className:"sg-announce","aria-live":"assertive",children:u})]})}export{ns as a,Ss as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as p}from"./chunk-
|
|
1
|
+
import{d as p}from"./chunk-55FJSXTX.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as sa}from"./chunk-SNEZ3O5V.js";import{Ia as aa,a as Re,c as ra,ib as na,jb as Je,mb as it}from"./chunk-HC6FTJAR.js";import{a as y0,f as ia}from"./chunk-J6IRWTF7.js";import{c as Be}from"./chunk-DCANE7XH.js";var w0=Object.freeze({pageStructureBytes:16777216,resourceBytes:67108864,pageResourceBytes:134217728,componentPropsBytes:8388608,componentSourceBytes:16777216,componentAssetBytes:134217728,componentFiles:200,compiledComponentBytes:16777216,artifactBytes:268435456,htmlBytes:268435456,authoringRequestBytes:268435456,publicationBytes:268435456,publicationTransferBytes:536870912,syncManifestBytes:16777216,syncObjectBytes:67108864,chatBytes:1e6,mcpImageBytes:8388608}),l0=r=>{let e=r.length;for(let t=0;t<r.length;t++){let a=r.charCodeAt(t);a<128||(a<2048?e+=1:a>=55296&&a<=56319&&(r.charCodeAt(t+1)&64512)===56320?(e+=2,t++):e+=2)}return e};function la(r){return`${(r/1048576).toFixed(2)} MiB (${r} bytes)`}var $t=class extends Error{constructor(e,t,a){super(`${e} is ${la(t)}; limit is ${la(a)}.`),this.name="CapacityError",this.code="CAPACITY_EXCEEDED",this.kind=e,this.actualBytes=t,this.limitBytes=a}};function k0(r,e,t){if(e>t)throw new $t(r,e,t)}function oa(r){let e=r.endsWith("==")?2:r.endsWith("=")?1:0;return!e||!("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(r.at(-e-1))&(e===2?15:3))}function Si(r){if(typeof r!="string"||r.length%4||!/^[A-Za-z0-9+/]*={0,2}$/.test(r))throw new Error("Invalid base64 resource.");let e=r.endsWith("==")?2:r.endsWith("=")?1:0;if(!oa(r))throw new Error("Non-canonical base64 resource.");return r.length/4*3-e}function zi(r){let e=0,t=0,a=0,n=0,i=new Set,l=c=>{e+=c,a+=c},o=(c,d=0)=>{if(d>64)throw new Error("Capacity input is nested too deeply.");if(typeof c=="string"){let p=/^data:([\w.+\/-]+);base64,([A-Za-z0-9+/]*={0,2})$/.exec(c);if(p&&p[2].length%4===0&&oa(p[2])){let v=Si(p[2]);k0("Single resource (decoded)",v,w0.resourceBytes),i.has(c)||(i.add(c),t+=v),e+=l0(JSON.stringify(`asset:${p[1]}:sha256`)),a+=c.length+2}else l(l0(JSON.stringify(c)))}else if(Array.isArray(c))l(2+Math.max(0,c.length-1)),c.length&&(n+=c.length*(1+2*(d+1))+1+2*d),c.forEach(p=>o(p,d+1));else if(c&&typeof c=="object"){let p=Object.entries(c);l(2+Math.max(0,p.length-1)),p.length&&(n+=p.length*(2+2*(d+1))+1+2*d);for(let[v,x]of p)l(l0(JSON.stringify(v))+1),o(x,d+1)}else l(l0(JSON.stringify(c)))};return o(r),{structureBytes:e,resourceBytes:t,resourceCount:i.size,jsonBytes:a,prettyJsonBytes:a+n}}function Uo(r,e="Page structure",t=w0.pageStructureBytes){let a=zi(r);return k0(e,a.structureBytes,t),k0("Page resources (decoded, unique URLs)",a.resourceBytes,w0.pageResourceBytes),k0("Authoring JSON (encoded resources included)",a.jsonBytes,w0.authoringRequestBytes),a}function Vo(r){k0("Compiled component HTML",l0(r.html),w0.compiledComponentBytes),r.inline&&k0("Compiled component inline code",l0(r.inline.script)+l0(r.inline.styles),w0.compiledComponentBytes)}function jt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var c0=jt();function xa(r){c0=r}var o0={exec:()=>null};function S0(r){let e=[];return t=>{let a=Math.max(0,Math.min(3,t-1)),n=e[a];return n||(n=r(a),e[a]=n),n}}function L(r,e=""){let t=typeof r=="string"?r:r.source,a={replace:(n,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(le.caret,"$1"),t=t.replace(n,l),a},getRegex:()=>new RegExp(t,e)};return a}var Ai=((r="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+r)}catch{return!1}})(),le={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:S0(r=>new RegExp(`^ {0,${r}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:S0(r=>new RegExp(`^ {0,${r}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:S0(r=>new RegExp(`^ {0,${r}}(?:\`\`\`|~~~)`)),headingBeginRegex:S0(r=>new RegExp(`^ {0,${r}}#`)),htmlBeginRegex:S0(r=>new RegExp(`^ {0,${r}}(?:</?(?:${L0})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:S0(r=>new RegExp(`^ {0,${r}}>`))},Ti=/^(?:[ \t]*(?:\n|$))+/,Mi=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ci=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,O0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Bi=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ut=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ya=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wa=L(ya).replace(/bull/g,Ut).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ri=L(ya).replace(/bull/g,Ut).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Vt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Di=/^[^\n]+/,Wt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,qi=L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Wt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ei=L(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ut).getRegex(),L0="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Zt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ii=L("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Zt).replace("tag",L0).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ka=r=>L(Vt).replace("hr",O0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",r).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L0).getRegex(),Ni=ka(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Oi=ka(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Li=L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Oi).getRegex(),Xt={blockquote:Li,code:Mi,def:qi,fences:Ci,heading:Bi,hr:O0,html:Ii,lheading:wa,list:Ei,newline:Ti,paragraph:Ni,table:o0,text:Di},ua=L("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",O0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L0).getRegex(),Fi={...Xt,lheading:Ri,table:ua,paragraph:L(Vt).replace("hr",O0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ua).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L0).getRegex()},$i={...Xt,html:L(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Zt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:o0,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:L(Vt).replace("hr",O0).replace("heading",` *#{1,6} *[^
|
|
1
|
+
import{f as sa}from"./chunk-SNEZ3O5V.js";import{Ia as aa,a as Re,c as ra,ib as na,jb as Je,mb as it}from"./chunk-6WTBCWHP.js";import{a as y0,f as ia}from"./chunk-J6IRWTF7.js";import{c as Be}from"./chunk-DCANE7XH.js";var w0=Object.freeze({pageStructureBytes:16777216,resourceBytes:67108864,pageResourceBytes:134217728,componentPropsBytes:8388608,componentSourceBytes:16777216,componentAssetBytes:134217728,componentFiles:200,compiledComponentBytes:16777216,artifactBytes:268435456,htmlBytes:268435456,authoringRequestBytes:268435456,publicationBytes:268435456,publicationTransferBytes:536870912,syncManifestBytes:16777216,syncObjectBytes:67108864,chatBytes:1e6,mcpImageBytes:8388608}),l0=r=>{let e=r.length;for(let t=0;t<r.length;t++){let a=r.charCodeAt(t);a<128||(a<2048?e+=1:a>=55296&&a<=56319&&(r.charCodeAt(t+1)&64512)===56320?(e+=2,t++):e+=2)}return e};function la(r){return`${(r/1048576).toFixed(2)} MiB (${r} bytes)`}var $t=class extends Error{constructor(e,t,a){super(`${e} is ${la(t)}; limit is ${la(a)}.`),this.name="CapacityError",this.code="CAPACITY_EXCEEDED",this.kind=e,this.actualBytes=t,this.limitBytes=a}};function k0(r,e,t){if(e>t)throw new $t(r,e,t)}function oa(r){let e=r.endsWith("==")?2:r.endsWith("=")?1:0;return!e||!("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(r.at(-e-1))&(e===2?15:3))}function Si(r){if(typeof r!="string"||r.length%4||!/^[A-Za-z0-9+/]*={0,2}$/.test(r))throw new Error("Invalid base64 resource.");let e=r.endsWith("==")?2:r.endsWith("=")?1:0;if(!oa(r))throw new Error("Non-canonical base64 resource.");return r.length/4*3-e}function zi(r){let e=0,t=0,a=0,n=0,i=new Set,l=c=>{e+=c,a+=c},o=(c,d=0)=>{if(d>64)throw new Error("Capacity input is nested too deeply.");if(typeof c=="string"){let p=/^data:([\w.+\/-]+);base64,([A-Za-z0-9+/]*={0,2})$/.exec(c);if(p&&p[2].length%4===0&&oa(p[2])){let v=Si(p[2]);k0("Single resource (decoded)",v,w0.resourceBytes),i.has(c)||(i.add(c),t+=v),e+=l0(JSON.stringify(`asset:${p[1]}:sha256`)),a+=c.length+2}else l(l0(JSON.stringify(c)))}else if(Array.isArray(c))l(2+Math.max(0,c.length-1)),c.length&&(n+=c.length*(1+2*(d+1))+1+2*d),c.forEach(p=>o(p,d+1));else if(c&&typeof c=="object"){let p=Object.entries(c);l(2+Math.max(0,p.length-1)),p.length&&(n+=p.length*(2+2*(d+1))+1+2*d);for(let[v,x]of p)l(l0(JSON.stringify(v))+1),o(x,d+1)}else l(l0(JSON.stringify(c)))};return o(r),{structureBytes:e,resourceBytes:t,resourceCount:i.size,jsonBytes:a,prettyJsonBytes:a+n}}function Uo(r,e="Page structure",t=w0.pageStructureBytes){let a=zi(r);return k0(e,a.structureBytes,t),k0("Page resources (decoded, unique URLs)",a.resourceBytes,w0.pageResourceBytes),k0("Authoring JSON (encoded resources included)",a.jsonBytes,w0.authoringRequestBytes),a}function Vo(r){k0("Compiled component HTML",l0(r.html),w0.compiledComponentBytes),r.inline&&k0("Compiled component inline code",l0(r.inline.script)+l0(r.inline.styles),w0.compiledComponentBytes)}function jt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var c0=jt();function xa(r){c0=r}var o0={exec:()=>null};function S0(r){let e=[];return t=>{let a=Math.max(0,Math.min(3,t-1)),n=e[a];return n||(n=r(a),e[a]=n),n}}function L(r,e=""){let t=typeof r=="string"?r:r.source,a={replace:(n,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(le.caret,"$1"),t=t.replace(n,l),a},getRegex:()=>new RegExp(t,e)};return a}var Ai=((r="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+r)}catch{return!1}})(),le={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:S0(r=>new RegExp(`^ {0,${r}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:S0(r=>new RegExp(`^ {0,${r}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:S0(r=>new RegExp(`^ {0,${r}}(?:\`\`\`|~~~)`)),headingBeginRegex:S0(r=>new RegExp(`^ {0,${r}}#`)),htmlBeginRegex:S0(r=>new RegExp(`^ {0,${r}}(?:</?(?:${L0})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:S0(r=>new RegExp(`^ {0,${r}}>`))},Ti=/^(?:[ \t]*(?:\n|$))+/,Mi=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ci=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,O0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Bi=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ut=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ya=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wa=L(ya).replace(/bull/g,Ut).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ri=L(ya).replace(/bull/g,Ut).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Vt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Di=/^[^\n]+/,Wt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,qi=L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Wt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ei=L(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ut).getRegex(),L0="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Zt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ii=L("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Zt).replace("tag",L0).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ka=r=>L(Vt).replace("hr",O0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",r).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L0).getRegex(),Ni=ka(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Oi=ka(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Li=L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Oi).getRegex(),Xt={blockquote:Li,code:Mi,def:qi,fences:Ci,heading:Bi,hr:O0,html:Ii,lheading:wa,list:Ei,newline:Ti,paragraph:Ni,table:o0,text:Di},ua=L("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",O0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L0).getRegex(),Fi={...Xt,lheading:Ri,table:ua,paragraph:L(Vt).replace("hr",O0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ua).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L0).getRegex()},$i={...Xt,html:L(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Zt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:o0,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:L(Vt).replace("hr",O0).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",wa).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Pi=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Hi=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Sa=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Gi=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,He=/[\p{P}\p{S}]/u,z0=/[\s\p{P}\p{S}]/u,F0=/[^\s\p{P}\p{S}]/u,ji=L(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,z0).getRegex(),Ui=/[\p{Pi}\p{Ps}"']/u,za=/(?!~)[\p{P}\p{S}]/u,Vi=/(?!~)[\s\p{P}\p{S}]/u,Wi=/(?:[^\s\p{P}\p{S}]|~)/u,Zi=L(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ai?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Aa=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Xi=L(Aa,"u").replace(/punct/g,He).getRegex(),Yi=L(Aa,"u").replace(/punct/g,za).getRegex(),Ki=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Ji=L(Ki,"u").replace(/openQuote/g,Ui).replace(/punct/g,He).getRegex(),Ta="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Qi=L(Ta,"gu").replace(/notPunctSpace/g,F0).replace(/punctSpace/g,z0).replace(/punct/g,He).getRegex(),_i=L(Ta,"gu").replace(/notPunctSpace/g,Wi).replace(/punctSpace/g,Vi).replace(/punct/g,za).getRegex(),es="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",ts=L(es,"gu").replace(/notPunctSpace/g,F0).replace(/punctSpace/g,z0).replace(/punct/g,He).getRegex(),rs=L("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,F0).replace(/punctSpace/g,z0).replace(/punct/g,He).getRegex(),as="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",ns=L(as,"gu").replace(/notPunctSpace/g,F0).replace(/punctSpace/g,z0).replace(/punct/g,He).getRegex(),is=L(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,He).getRegex(),ss="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ls=L(ss,"gu").replace(/notPunctSpace/g,F0).replace(/punctSpace/g,z0).replace(/punct/g,He).getRegex(),os=L(/\\(punct)/,"gu").replace(/punct/g,He).getRegex(),us=L(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),cs=L(Zt).replace("(?:-->|$)","-->").getRegex(),hs=L("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",cs).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ma=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,lt=L(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",Ma).getRegex(),ds=L(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",lt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ms=L(/^!?\[(label)\]\[(ref)\]/).replace("label",lt).replace("ref",Wt).getRegex(),ps=L(/^!?\[(ref)\](?:\[\])?/).replace("ref",Wt).getRegex(),ca=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,fs=L(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",Ma).getRegex(),gs=L("reflink|nolink(?!\\()","g").replace("reflink",L(/^!?\[(label)\]\[(ref)\]/).replace("label",fs).replace("ref",ca).getRegex()).replace("nolink",L(/^!?\[(ref)\](?:\[\])?/).replace("ref",ca).getRegex()).getRegex(),ha=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,vs=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,bs=L(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,vs).getRegex(),Yt={_backpedal:o0,anyPunctuation:os,autolink:us,blockSkip:Zi,br:Sa,code:Hi,del:o0,delLDelim:o0,delRDelim:o0,emStrongLDelim:Xi,emStrongRDelimAst:Qi,emStrongRDelimUnd:rs,escape:Pi,link:ds,nolink:ps,punctuation:ji,reflink:ms,reflinkSearch:gs,tag:hs,text:Gi,url:o0},xs={...Yt,emStrongLDelim:Ji,emStrongRDelimAst:ts,emStrongRDelimUnd:ns,link:L(/^!?\[(label)\]\((.*?)\)/).replace("label",lt).getRegex(),reflink:L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",lt).getRegex()},Pt={...Yt,emStrongRDelimAst:_i,emStrongLDelim:Yi,delLDelim:is,delRDelim:ls,url:L(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",bs).replace("protocol",ha).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:L(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",ha).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},ys={...Pt,br:L(Sa).replace("{2,}","*").getRegex(),text:L(Pt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},st={normal:Xt,gfm:Fi,pedantic:$i},I0={normal:Yt,gfm:Pt,breaks:ys,pedantic:xs},ws={"&":"&","<":"<",">":">",'"':""","'":"'"},da=r=>ws[r];function ve(r,e){if(e){if(le.escapeTest.test(r))return r.replace(le.escapeReplace,da)}else if(le.escapeTestNoEncode.test(r))return r.replace(le.escapeReplaceNoEncode,da);return r}function ks(r){return r.replace(le.numericCharacterReference,(e,t,a)=>{let n=t===void 0?Number.parseInt(a,16):Number.parseInt(t,10);return n===0||n>1114111||n>=55296&&n<=57343?"\uFFFD":String.fromCodePoint(n)})}function ma(r){try{r=encodeURI(r).replace(le.percentDecode,"%")}catch{return null}return r}function pa(r,e){let t=r.replace(le.findPipe,(i,l,o)=>{let c=!1,d=l;for(;--d>=0&&o[d]==="\\";)c=!c;return c?"|":" |"}),a=t.split(le.splitPipe),n=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),e)if(a.length>e)a.splice(e);else for(;a.length<e;)a.push("");for(;n<a.length;n++)a[n]=a[n].trim().replace(le.slashPipe,"|");return a}function Qe(r,e,t){let a=r.length;if(a===0)return"";let n=0;for(;n<a;){let i=r.charAt(a-n-1);if(i===e&&!t)n++;else if(i!==e&&t)n++;else break}return r.slice(0,a-n)}function fa(r){let e=r.split(`
|
|
3
3
|
`),t=e.length-1;for(;t>=0&&le.blankLine.test(e[t]);)t--;return e.length-t<=2?r:e.slice(0,t+1).join(`
|
|
4
4
|
`)}function ot(r){return r.trim().toLowerCase().toUpperCase().toLowerCase()}function Ss(r,e){if(r.indexOf(e[1])===-1)return-1;let t=0;for(let a=0;a<r.length;a++)if(r[a]==="\\")a++;else if(r[a]===e[0])t++;else if(r[a]===e[1]&&(t--,t<0))return a;return t>0?-2:-1}function ga(r,e=0){let t=e,a="";for(let n of r)if(n===" "){let i=4-t%4;a+=" ".repeat(i),t+=i}else a+=n,t++;return a}function va(r,e,t,a,n){let i=e.href,l=e.title||null,o=r[1].replace(n.other.outputLinkReplace,"$1"),c=r[0].charAt(0)==="!";a.state.inLink=!0;let d=a.state.linkEmitted,p=a.state.inRawBlock;a.state.linkEmitted=!1;let v=a.inlineTokens(o),x=a.state.linkEmitted;if(a.state.linkEmitted=d,a.state.inLink=!1,!c){if(x){a.state.inRawBlock=p;return}a.state.linkEmitted=!0}return{type:c?"image":"link",raw:t,href:i,title:l,text:o,tokens:v}}function zs(r,e,t){let a=r.match(t.other.indentCodeCompensation);if(a===null)return e;let n=a[1];return e.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,c as y,e as x}from"./chunk-
|
|
1
|
+
import{a as b,c as y,e as x}from"./chunk-55FJSXTX.js";var s=e=>{throw new Error(e)},E=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function u(e,n,o){(typeof e!="string"||!e.trim())&&s(`${n} must be non-empty text.`),e.length>o&&s(`${n} must be at most ${o} characters.`)}function f(e,n,o){e!==void 0&&u(e,n,o)}function j(e,n,o,i=1){return(!Array.isArray(e)||e.length<i||e.length>o)&&s(`${n} must be an array of ${i} to ${o} items.`),e.forEach((l,a)=>{E(l)||s(`${n}[${a}] must be an object.`)}),e}function A(e,n,o){for(let i of Object.keys(e))n.includes(i)||s(`${o}.${i} is not a supported field.`)}function d(e,n){if(e===void 0)return;let[o]=x(e);o!==void 0&&s(`${n} links to ${o}; only http(s), mailto, # anchors and relative paths are allowed.`)}var w=["dir","file","object","array","field"],I=["name","kind","type","badge","summary","detail","example","exampleLang","children","open"],p={siblings:60,nodes:400,depth:8},g=e=>e.replace(/\/+$/,"")||e,T=e=>e.split("/").filter(Boolean).join("/"),C=e=>e.kind??(e.children?.length?"dir":"file");function U(e){let n=new Map,o=[],i=(l,a,m,h)=>{for(let t of l??[]){let c=(a?`${a}/`:"")+g(t.name),r={node:t,path:c,depth:m,parent:a,kind:C(t),children:[]};n.set(c,r),h.push(c),i(t.children,c,m+1,r.children)}};return i(e,null,0,o),{items:n,roots:o}}function L(e){f(e.caption,"caption",600),d(e.caption,"caption");let n=0,o=new Set,i=(l,a,m,h)=>{h>p.depth&&s(`${a} is nested deeper than ${p.depth} levels.`),j(l,a,p.siblings),l.forEach((t,c)=>{let r=`${a}[${c}]`;n+=1,n>p.nodes&&s(`The structure has more than ${p.nodes} nodes.`),A(t,I,r),u(t.name,`${r}.name`,80),g(t.name).includes("/")&&s(`${r}.name may only end with "/"; it is one path segment.`);let $=(m?`${m}/`:"")+g(t.name);o.has($)&&s(`${r}.name repeats the path ${$}; sibling names must be unique.`),o.add($),t.kind!==void 0&&!w.includes(t.kind)&&s(`${r}.kind must be one of ${w.join(", ")}.`),f(t.type,`${r}.type`,80),f(t.badge,`${r}.badge`,16),f(t.summary,`${r}.summary`,300),f(t.detail,`${r}.detail`,3e3),f(t.example,`${r}.example`,6e3),f(t.exampleLang,`${r}.exampleLang`,24),d(t.summary,`${r}.summary`),d(t.detail,`${r}.detail`),t.exampleLang!==void 0&&t.example===void 0&&s(`${r}.exampleLang needs ${r}.example.`),t.open!==void 0&&typeof t.open!="boolean"&&s(`${r}.open must be true or false.`),t.children!==void 0&&i(t.children,`${r}.children`,$,h+1)})};if(i(e.nodes,"nodes",null,1),e.initial!==void 0){u(e.initial,"initial",400);let l=T(e.initial);o.has(l)||s(`initial ${e.initial} does not match a node path.`)}}var k=["brand","teal","warm","violet","rose","slate"],S=["tile","row"],R=["icon","title","body","href","tag","tone"];function K(e){if(e.columns)return e.columns;let n=e.cards.length;return e.variant==="row"?n>3?2:1:n===4?2:Math.max(1,Math.min(3,n))}function D(e){e.variant!==void 0&&!S.includes(e.variant)&&s(`variant must be one of ${S.join(", ")}.`),e.columns!==void 0&&(!Number.isInteger(e.columns)||e.columns<1||e.columns>4)&&s("columns must be an integer from 1 to 4."),j(e.cards,"cards",24).forEach((n,o)=>{let i=`cards[${o}]`;A(n,R,i),u(n.title,`${i}.title`,80),u(n.body,`${i}.body`,400),f(n.icon,`${i}.icon`,8),f(n.tag,`${i}.tag`,16),n.tone!==void 0&&!k.includes(n.tone)&&s(`${i}.tone must be one of ${k.join(", ")}.`),n.href!==void 0?(u(n.href,`${i}.href`,2e3),b(n.href)||s(`${i}.href must be an http(s), mailto, # anchor or relative link.`),y(n.body).some(l=>l.type==="link")&&s(`${i}.body cannot contain links when the card has an href.`)):d(n.body,`${i}.body`)})}function M(e,n){return E(n)||s("Component data must be an object."),f(n.title,"title",120),e==="structure-browser"?L(n):e==="card-grid"?D(n):s(`Unknown document browsing component ${e}.`),n}export{g as a,T as b,U as c,k as d,K as e,M as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as h,G as g,H as p,a as m}from"./chunk-5HKZMSJF.js";import{c as E}from"./chunk-
|
|
1
|
+
import{F as h,G as g,H as p,a as m}from"./chunk-5HKZMSJF.js";import{c as E}from"./chunk-6WTBCWHP.js";import{c as x}from"./chunk-DCANE7XH.js";var w=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},(o,t)=>`style-${t+1}`)});function T(o,t){if(!Object.hasOwn(w,o))throw new Error(`Unknown diagram family: ${o}.`);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(!w[o].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 S(o,t){let r="showai-frame-text-"+o,n=document.createElement("style");n.textContent=`::highlight(${r}){background:Highlight;color:HighlightText}`,document.head.append(n);let a=window,c=0,b=(e,i)=>{let s=document.caretRangeFromPoint(e,i);return s?t(document.body).offsetAt(s.startContainer,s.startOffset):null},f=()=>parent.postMessage({channel:o,type:"showai:text-selection-content",text:t(document.body).text.slice(0,256e3)},"*"),l=(e,i,s,u)=>{let d=b(i,s);d!==null&&(c=d),parent.postMessage({channel:o,type:"showai:text-selection-pointer",phase:e,x:i,y:s,width:innerWidth,height:innerHeight,buttons:u,offset:c},"*")};window.addEventListener("message",e=>{if(!(e.source!==parent||e.data?.channel!==o))if(e.data.type==="showai:text-selection-content-request")f();else if(e.data.type==="showai:text-selection-range"){let{from:i,to:s}=e.data;if(!Number.isFinite(i)||!Number.isFinite(s))return;if(s>i){let u=t(document.body);a.Highlight&&a.CSS.highlights&&a.CSS.highlights.set(r,new a.Highlight(...u.ranges(Math.max(0,i),Math.min(u.text.length,s)))),document.getSelection()?.removeAllRanges()}else a.CSS.highlights?.delete(r)}else e.data.type==="showai:text-selection-hit"&&[e.data.x,e.data.y].every(Number.isFinite)&&l("move",e.data.x,e.data.y,1)}),document.addEventListener("pointerdown",e=>{if(e.button!==0||e.pointerType!=="mouse"||e.shiftKey||e.metaKey||e.ctrlKey||!(e.target instanceof Element)||e.target.closest('button,input,textarea,select,summary,[role="button"],[role="slider"],[data-surface-ui],.react-flow,[data-surface-gesture="own"]')||getComputedStyle(e.target).userSelect==="none")return;let i=document.caretRangeFromPoint(e.clientX,e.clientY);i?.startContainer.nodeType!==Node.TEXT_NODE||!e.target.contains(i.startContainer)||(f(),l("down",e.clientX,e.clientY,e.buttons))},!0),document.addEventListener("pointermove",e=>{e.pointerType==="mouse"&&e.buttons&1&&l("move",e.clientX,e.clientY,e.buttons)},!0),document.addEventListener("pointerup",e=>l("up",e.clientX,e.clientY,e.buttons),!0),document.addEventListener("pointercancel",e=>l("cancel",e.clientX,e.clientY,e.buttons),!0)}function C(o){return`(${S.toString()})(${JSON.stringify(o)},${m.toString()});`}var y=x(E(),1);function F(o,t){(0,y.useEffect)(()=>{let r=o.current,n=h(r,t),a=c=>{c.source!==r.contentWindow||c.data?.channel!==t||(c.data.type==="showai:text-selection-pointer"&&p(r,c.data),c.data.type==="showai:text-selection-content"&&g(r,c.data.text))};return window.addEventListener("message",a),()=>{n(),window.removeEventListener("message",a)}},[t,o])}export{w as a,T as b,C as c,F as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ka as S,c as v,ib as B,jb as d,kb as T,mb as y}from"./chunk-
|
|
1
|
+
import{Ka as S,c as v,ib as B,jb as d,kb as T,mb as y}from"./chunk-6WTBCWHP.js";import{a as h}from"./chunk-J6IRWTF7.js";import{c as i}from"./chunk-DCANE7XH.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};
|
|
@@ -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-6WTBCWHP.js";import{a as d}from"./chunk-DCANE7XH.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-VUDDBRCY.js.LEGAL.txt */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g,c as C,jb as x,kb as H,mb as w}from"./chunk-
|
|
1
|
+
import{a as g,c as C,jb as x,kb as H,mb as w}from"./chunk-6WTBCWHP.js";import{a as v}from"./chunk-J6IRWTF7.js";import{c as l}from"./chunk-DCANE7XH.js";g(`.editor-tool{display:inline-flex;align-items:center;justify-content:center;width:28px;height:29px;padding:0;flex-shrink:0;color:var(--muted);border:0;border-radius:4px;background:transparent}.editor-tool svg{stroke-width:1.65}.editor-tool:hover,.editor-tool.is-active{color:var(--accent);background:var(--editor-soft)}.editor-tool:disabled{opacity:.32}.editor-bubble{--editor-line: var(--line, #e8ece5);--editor-soft: var(--accent-soft, #edf2e9);position:fixed;z-index:80;display:flex;align-items:center;gap:2px;padding:5px;border:1px solid var(--line, #e8ece5);border-radius:6px;background:var(--paper, #fff);color:var(--text, #343a35);font-family:var(--font-ui, system-ui, sans-serif);font-size:12px;font-weight:400;line-height:1.2;letter-spacing:normal;box-shadow:0 5px 20px #2434291c;animation:editor-menu-appear .13s ease;max-width:calc(100vw - 16px);overflow-x:auto}@keyframes editor-menu-appear{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.editor-bubble{animation:none!important;transition:none!important}}@media print{.editor-bubble{display:none!important}}
|
|
2
2
|
`);var i=l(C(),1),h=l(H(),1);var y=v("editor",{"zh-CN":{selectionToolbar:"\u9009\u4E2D\u6587\u5B57\u683C\u5F0F"},en:{selectionToolbar:"Selected text formatting"}});var k=l(x(),1);function O({id:M,anchor:n,anchorElement:t,children:L,onEscape:E,label:T,keyboardScope:z,viewportTop:d=8,className:b}){let R=w(y),u=(0,i.useRef)(null),[D,S]=(0,i.useState)(n);return(0,i.useLayoutEffect)(()=>{let e=u.current,r=()=>{let{width:o,height:c}=e.getBoundingClientRect(),a=t?.isConnected?t.getBoundingClientRect():null,s=a?{left:(a.left+a.right)/2,top:a.top,bottom:a.bottom}:n,m={left:Math.max(8,Math.min(s.left-o/2,window.innerWidth-o-8)),top:Math.max(d,Math.min(s.top-c-8>=d?s.top-c-8:(s.bottom??s.top)+8,window.innerHeight-c-8))};S(f=>f.left===m.left&&f.top===m.top?f:m)};r();let p=new ResizeObserver(r);if(p.observe(e),t)for(let o=t;o;o=o.parentElement)p.observe(o);return window.addEventListener("resize",r),t&&window.addEventListener("scroll",r,!0),()=>{p.disconnect(),window.removeEventListener("resize",r),t&&window.removeEventListener("scroll",r,!0)}},[n.left,n.top,n.bottom,t,d]),(0,h.createPortal)((0,k.jsx)("div",{ref:u,id:M,className:`editor-bubble${b?` ${b}`:""}`,"data-editor-menu-trigger":"selection","data-editor-keyboard-scope":z,role:"toolbar","aria-label":T??R("selectionToolbar"),style:D,onMouseDown:e=>{e.target.closest("input,select,textarea")||e.preventDefault()},onKeyDown:e=>{e.key==="Escape"&&(e.preventDefault(),E())},children:L}),document.body)}export{O as a};
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./reader-
|
|
1
|
+
export * from "./reader-PMHBVYNC.js";
|
package/manifest.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": "showai-cdn-reader",
|
|
3
3
|
"name": "showai-reader",
|
|
4
|
-
"version": "0.10.0-reader.
|
|
5
|
-
"entry": "reader-
|
|
6
|
-
"integrity": "sha256-
|
|
4
|
+
"version": "0.10.0-reader.pmhbvync",
|
|
5
|
+
"entry": "reader-PMHBVYNC.js",
|
|
6
|
+
"integrity": "sha256-wM2lr6eR7YoO2+mcsBdOtOAkNopkKhCf8WEUuG+zdSA=",
|
|
7
7
|
"files": 49,
|
|
8
|
-
"bytes":
|
|
8
|
+
"bytes": 13402674
|
|
9
9
|
}
|
package/package.json
CHANGED