hd-garden 0.14.7 → 0.14.8

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.
@@ -530,4 +530,4 @@ caption: `+JSON.stringify(t.caption)+`
530
530
  ${n}
531
531
  \`\`\``).join(`
532
532
  `),[i,s]=(0,K1.useState)({key:"",data:{}});(0,K1.useEffect)(()=>{if(!r||!t.readFile)return;let f=!0,p=t.readFile;return Promise.all(r.split(`
533
- `).map(async h=>[h,await p(h)])).then(h=>{if(!f)return;let d={};for(let[y,S]of h)typeof S=="string"&&(d[y]=S);s({key:r,data:d})}),()=>{f=!1}},[r,t.readFile]);let o=!!(r&&t.readFile&&i.key!==r),l=L1("garden compose",n),u=t.theme??"light";if(o)return(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)("p",{className:"garden-ui-preview-note",children:"\u6B63\u5728\u8BFB\u53D6\u6570\u636E\u6587\u4EF6\u2026"})});if(!l||l.error)return l?.error?.code==="compose-uncompiled"?(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)(a7,{text:n,onCopyPrompt:t.onCopyPrompt})}):(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)(ch,{caption:"Compose",diagnostics:[{code:l?.error?.code??"compose-invalid",message:l?.error?.message??"\u65E0\u6548\u7684 Compose",line:t.fenceLine??1,severity:"error"}]})});let c={...l};if(l.mode==="play"){let{payload:f,check:p}=Ll(l.uiSource??"",{readData:h=>i.data[h],skipData:!t.readFile,resolveAsset:t.resolveAsset??null,markdownPath:null});if(!f)return(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)(ch,{caption:"Compose",diagnostics:p.diagnostics})});if(t.mode==="static")return(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)("div",{className:"markdown-body prose",dangerouslySetInnerHTML:{__html:Nc(f,"html")}})});c={...c,payload:f}}return(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)("div",{className:"markdown-body prose",children:t.renderBlock?t.renderBlock(c,t.lang):(0,vn.jsx)("div",{dangerouslySetInnerHTML:{__html:c.payload?Nc(c.payload,"html"):tr(l.props)}})})})}function o7(e,t){let n=(0,s7.createRoot)(e);return t(n),n}function l7(e,t,n={}){let a={source:t,options:n},r=n.isolateEvents?KY(e):null,i=o7(e,s=>s.render((0,vn.jsx)(Rl,{lang:a.options.lang??"zh",children:(0,vn.jsx)(i7,{source:a.source,options:a.options})})));return{update(s,o=a.options){a={source:s,options:o},i.render((0,vn.jsx)(Rl,{lang:a.options.lang??"zh",children:(0,vn.jsx)(i7,{source:a.source,options:a.options})}))},destroy(){r?.(),i.unmount()}}}function u7(e,t={}){t.theme&&e.setAttribute("data-theme",t.theme);let n=o7(e,a=>a.render((0,vn.jsx)(LN,{recipes:t.recipes??[],onStart:t.onStart,renderBlock:t.renderBlock})));return{destroy:()=>n.unmount()}}var ph=ie(Gt(),1);var c7={name:"Garden Compose",locale:"zh_CN"};var C3=c7;var Eye={absolute:C3.name};var JY=e=>/^en/i.test(e??"")?"en":"zh",wo=JY(C3.locale);var WY={homeAbout:"\u5173\u4E8E\u6211",homeRss:"RSS \u8BA2\u9605",homeLatest:"\u6700\u65B0\u6587\u7AE0",homeRecent:"\u6700\u8FD1\u66F4\u65B0",homeAllPosts:e=>`\u5168\u90E8 ${e} \u7BC7`,homePinned:"\u7F6E\u9876",homeColumns:"\u4E13\u680F",homeAllColumns:"\u5168\u90E8\u4E13\u680F",columnCount:(e,t)=>`${e} \u7BC7\uFF0C${t}`,columnDefault:"\u6301\u7EED\u66F4\u65B0",columnOngoing:"\u8FDE\u8F7D\u4E2D",columnCompleted:"\u5DF2\u5B8C\u7ED3",columnReadingList:(e,t)=>`\u9605\u8BFB\u6E05\u5355\uFF0C${e} \u7BC7\uFF0C${t}`,columnSideCount:(e,t)=>`${e} \u7BC7 \xB7 ${t}`,columnCoverAlt:e=>`${e} \u5C01\u9762`,columnFallbackDesc:"\u6309\u987A\u5E8F\u7EC4\u7EC7\u7684\u4E13\u9898\u6587\u7AE0\u7CFB\u5217\u3002",columnNewestFirst:e=>`${e}\uFF0C\u4ECE\u65B0\u5230\u65E7`,toc:"\u672C\u7BC7\u76EE\u5F55",tocShort:"\u76EE\u5F55",tocPage:"\u672C\u9875\u76EE\u5F55",open:"\u6253\u5F00",close:"\u5173\u95ED",currentSection:"\uFF0C\u5F53\u524D\u7AE0\u8282\uFF1A",prev:"\u4E0A\u4E00\u7BC7",next:"\u4E0B\u4E00\u7BC7",pagerLabel:"\u4E0A\u4E00\u7BC7\u548C\u4E0B\u4E00\u7BC7",columnPagerLabel:"\u4E13\u680F\u91CC\u7684\u4E0A\u4E00\u7BC7\u548C\u4E0B\u4E00\u7BC7",comments:"\u8BC4\u8BBA",webmentions:"\u6765\u81EA\u5F00\u653E\u7F51\u7EDC\u7684\u56DE\u5E94",webmentionsLead:"\u5F15\u7528\u3001\u559C\u6B22\u3001\u8F6C\u53D1\u548C\u7AD9\u5916\u56DE\u590D\u4F1A\u901A\u8FC7 Webmention \u56DE\u5230\u8FD9\u91CC\u3002",notFoundTitle:"\u627E\u4E0D\u5230\u8FD9\u4E00\u9875",notFoundDeck:"\u5730\u5740\u53EF\u80FD\u5199\u9519\u4E86\uFF0C\u6216\u8005\u8FD9\u7BC7\u5DF2\u7ECF\u4E0D\u5728\u4E86\u3002",backHome:"\u8FD4\u56DE\u9996\u9875",builtWith:["\u57FA\u4E8E "," \u6784\u5EFA"],search:"\u641C\u7D22",searchArticles:"\u641C\u7D22\u6587\u7AE0",toLight:"\u5207\u6362\u5230\u6D45\u8272\u6A21\u5F0F",toDark:"\u5207\u6362\u5230\u6DF1\u8272\u6A21\u5F0F",wordCount:e=>`\u7EA6 ${e.toLocaleString("en-US")} \u5B57`,dateLocale:"zh-CN",handbook:"Garden \u4F7F\u7528\u8BF4\u660E",overview:"\u603B\u89C8",langSwitch:"\u5207\u6362\u8BED\u8A00",skipToContent:"\u8DF3\u5230\u6B63\u6587",copyCode:"\u590D\u5236\u4EE3\u7801",copied:"\u5DF2\u590D\u5236",copiedLive:"\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",diffAdded:"\uFF08\u65B0\u589E\uFF09",diffRemoved:"\uFF08\u5220\u9664\uFF09",codeTabs:["\u4EE3\u7801","\u5BF9\u6BD4\u4E0A\u4E00\u7248"],codeTabsLabel:"\u4EE3\u7801",demo:"\u6F14\u793A",fullscreen:"\u5168\u5C4F",exitFullscreen:"\u9000\u51FA\u5168\u5C4F",chart:"\u56FE\u8868",relations:"\u5173\u7CFB\u56FE",relationsLegend:"\u8FDE\u7EBF\u8BF4\u660E",dataTable:"\u67E5\u770B\u6570\u636E\u8868",item:"\u9879\u76EE",value:"\u6570\u503C",pickAnswer:"\u5148\u9009\u4E00\u4E2A\u7B54\u6848\u3002",correct:"\u2713 \u7B54\u5BF9\u4E86",wrong:"\u2717 \u518D\u60F3\u60F3",bytes:"\u5B57\u8282",htmlAt:e=>`HTML \u5728 ${e}\u3002\u53D1\u5E03\u65F6\u7531\u540C\u540D\u76EE\u5F55\u8BFB\u5165\u3002`,interactive:"\u4EA4\u4E92",ideaLabel:"\u60F3\u6CD5 \xB7 \u53D1\u5E03\u524D\u7F16\u8BD1",unknownBlock:e=>`\u672A\u77E5 Garden \u5757\uFF1A${e}`,file:"\u6587\u4EF6",openInTab:"\u5728\u65B0\u6807\u7B7E\u9875\u6253\u5F00",openNamedInTab:e=>`\u5728\u65B0\u6807\u7B7E\u9875\u6253\u5F00 ${e}`,download:"\u4E0B\u8F7D",downloadNamed:e=>`\u4E0B\u8F7D ${e}`,downloadFile:"\u4E0B\u8F7D\u6587\u4EF6",closePreview:"\u5173\u95ED\u9884\u89C8",previewFailed:"\u9884\u89C8\u6CA1\u80FD\u8F7D\u5165\u3002",retry:"\u91CD\u8BD5",previewLoading:"\u6B63\u5728\u8F7D\u5165\u9884\u89C8\u2026",escClose:"Esc \u5173\u95ED",preview:"\u9884\u89C8",previewNamed:e=>`\u9884\u89C8 ${e}`,viewImage:"\u67E5\u770B\u539F\u56FE",zoomImage:e=>`\u653E\u5927\u67E5\u770B\uFF1A${e}`,closeImage:"\u5173\u95ED\u56FE\u7247\u9884\u89C8",tableScroll:"\u8868\u683C\uFF0C\u53EF\u6A2A\u5411\u6EDA\u52A8",tocToggle:(e,t)=>`${e?"\u5C55\u5F00":"\u6536\u8D77"}\u300C${t}\u300D\u7684\u5B50\u76EE\u5F55`,siteNav:"\u7AD9\u70B9\u5BFC\u822A",siteNavMobile:"\u7AD9\u70B9\u5BFC\u822A\uFF08\u79FB\u52A8\u7AEF\uFF09",openMenu:"\u6253\u5F00\u83DC\u5355",closeMenu:"\u5173\u95ED\u83DC\u5355",darkMode:"\u6DF1\u8272\u6A21\u5F0F",searchTitle:"\u641C\u7D22\u7AD9\u5185\u5185\u5BB9",searchPlaceholder:"\u641C\u7D22\u6807\u9898\u3001\u4E3B\u9898\u6216\u6B63\u6587\u2026",searchInput:"\u6A21\u7CCA\u641C\u7D22",closeSearch:"\u5173\u95ED\u641C\u7D22",searchResults:"\u641C\u7D22\u7ED3\u679C",resultCount:e=>`${e} \u7BC7\u76F8\u5173\u6587\u7AE0`,recent:"\u6700\u8FD1\u5185\u5BB9",searchFailed:"\u641C\u7D22\u6682\u65F6\u6253\u4E0D\u5F00\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",loading:"\u6B63\u5728\u8F7D\u5165\u2026",fuzzy:"\u652F\u6301\u6A21\u7CCA\u5339\u914D",escToClose:"\u5173\u95ED",noResults:e=>e?`\u6CA1\u6709\u627E\u5230\u548C\u300C${e}\u300D\u76F8\u5173\u7684\u6587\u7AE0`:"\u8FD8\u6CA1\u6709\u53EF\u4EE5\u641C\u7D22\u7684\u5185\u5BB9",navLabels:{"/blog/":"\u6587\u7AE0","/columns/":"\u4E13\u680F","/tags/":"\u6807\u7B7E","/about/":"\u5173\u4E8E"},homeLatestBadge:"\u6700\u65B0\u6587\u7AE0",homeRecentHeading:"\u6700\u8FD1\u66F4\u65B0",homeAllPostsCount:e=>`\u5168\u90E8 ${e} \u7BC7`,homePinnedHeading:"\u7F6E\u9876",homeColumnsHeading:"\u4E13\u680F",homeColumnCountStatus:(e,t)=>`${e} \u7BC7\uFF0C${t}`,columnDefaultStatus:"\u6301\u7EED\u66F4\u65B0",blogEyebrow:"BLOG / \u6587\u7AE0",blogHeading:"\u6587\u7AE0",blogDeck:e=>`\u9636\u6BB5\u6027\u7684\u5B8C\u6574\u6C89\u6DC0\uFF0C\u5173\u4E8E\u5DE5\u7A0B\u3001\u67B6\u6784\u4E0E\u6280\u672F\u601D\u8003\u3002\u5171 ${e} \u7BC7\uFF0C\u6309\u5E74\u4EFD\u5F52\u6863\u3002`,unknownYear:"\u672A\u77E5",tagFilterLabel:"\u6309\u6807\u7B7E\u7B5B\u9009",tagCollapse:"\u6536\u8D77",tagExpandAll:e=>`\u5C55\u5F00\u5168\u90E8 ${e} \u4E2A\u6807\u7B7E`,tagClear:"\u6E05\u9664",densityLabel:"\u5217\u8868\u5BC6\u5EA6",densityDetailed:"\u6458\u8981",densityCompact:"\u7D27\u51D1",yearPostCount:e=>`${e} \u7BC7`,pinnedBadge:"\u7F6E\u9876",tagEmptyMatch:"\u6CA1\u6709\u540C\u65F6\u5E26\u8FD9\u4E9B\u6807\u7B7E\u7684\u6587\u7AE0\u3002",tagDropLast:e=>`\u53BB\u6389\u300C${e}\u300D`,browseAllPosts:"\u770B\u5168\u90E8\u6587\u7AE0",railJumpByYear:"\u6309\u5E74\u4EFD\u8DF3\u8F6C",railByYear:"\u6309\u5E74\u4EFD",railColumns:"\u4E13\u680F",permalinkLabel:e=>`${e} \u6C38\u4E45\u94FE\u63A5`,updatedOn:e=>`\u66F4\u65B0\u4E8E ${e}`,originalLink:"\u539F\u6587 \u2197",coverLabel:e=>`${e} \u5C01\u9762`,referencesHeading:"\u53C2\u8003",articleTagsLabel:"\u6807\u7B7E",allColumnsBack:"\u6240\u6709\u4E13\u680F",seriesEyebrow:"\u4E3B\u9898\u4E13\u680F",seriesCountStatus:(e,t)=>`${e} \u7BC7 \xB7 ${t}`,columnsEyebrow:"COLUMNS / \u4E13\u680F",columnsFallbackTitle:"\u4E13\u680F",columnsMeta:(e,t)=>`\u9605\u8BFB\u6E05\u5355\uFF0C${e} \u7BC7\uFF0C${t}`,columnsFallbackDesc:"\u6309\u987A\u5E8F\u7EC4\u7EC7\u7684\u4E13\u9898\u6587\u7AE0\u7CFB\u5217\u3002",columnsOrderLabel:e=>`${e}\uFF0C\u4ECE\u65B0\u5230\u65E7`,tagsTitle:"\u6807\u7B7E",tagsDescription:"\u5168\u90E8\u6807\u7B7E\u3002",tagsDeck:e=>`${e} \u4E2A\u6807\u7B7E\uFF0C\u6309\u6587\u7AE0\u6570\u6392\u5E8F\u3002\u70B9\u4E00\u4E2A\u6807\u7B7E\uFF0C\u67E5\u770B\u5E26\u8FD9\u4E2A\u6807\u7B7E\u7684\u6587\u7AE0\u3002`,tagsIndexLabel:"\u5168\u90E8\u6807\u7B7E",tagsEmpty:"\u8FD8\u6CA1\u6709\u6807\u7B7E\u3002",aboutEyebrow:"ABOUT / \u5173\u4E8E",aboutFallbackHeading:"\u5173\u4E8E",aboutFallbackParagraphs:["\u4E00\u540D\u5DE5\u7A0B\u5E08\u3002\u5E73\u65F6\u5199\u4EE3\u7801\uFF0C\u4E5F\u628A\u60F3\u6E05\u695A\u7684\u95EE\u9898\u8BB0\u4E0B\u6765\u3002","\u8FD9\u91CC\u653E\u6587\u7AE0\u548C\u4E13\u680F\u3002"],aboutFocusHeading:"\u73B0\u5728\u5173\u6CE8",aboutFallbackFocus:["\u8F6F\u4EF6","\u7B14\u8BB0","\u65E5\u5E38"],aboutFallbackCta:"\u6D4F\u89C8\u535A\u6587",githubProfileAria:"GitHub \u8D44\u6599",githubAvatarAlt:e=>`${e} \u7684 GitHub \u5934\u50CF`,githubOverviewPrefix:"GitHub \u516C\u5F00\u8D44\u6599",githubSyncSynced:"\u672C\u6B21\u8BBF\u95EE\u5DF2\u540C\u6B65",githubSyncSnapshot:"\u6682\u7528\u53D1\u5E03\u65F6\u5FEB\u7167",githubSyncSyncing:"\u6B63\u5728\u540C\u6B65\u5F53\u524D\u8D44\u6599",githubViewProfile:"\u67E5\u770B GitHub",githubMetricRepos:"\u516C\u5F00\u4ED3\u5E93",githubMetricCommits:"\u8FD1 30 \u5929 commits",githubPinnedEyebrow:"PINNED / \u7F6E\u9876\u4ED3\u5E93",githubPinnedHeading:"\u6B63\u5728\u505A\u7684\u9879\u76EE",githubPinnedFallbackDesc:"\u67E5\u770B\u8FD9\u4E2A\u516C\u5F00\u4ED3\u5E93\u7684\u4EE3\u7801\u4E0E\u6700\u8FD1\u66F4\u65B0\u3002",githubPinnedEmpty:"\u914D\u7F6E GitHub Token \u6216 author.githubPinned \u540E\uFF0C\u8FD9\u91CC\u4F1A\u5C55\u793A\u7F6E\u9876\u4ED3\u5E93\u3002",githubContribEyebrow:"CONTRIBUTIONS / \u8D21\u732E",githubContribHeading:"\u8FC7\u53BB\u4E00\u5E74\u7684\u516C\u5F00\u8D21\u732E",githubContribCount:e=>`${e} \u6B21\u8D21\u732E`,githubContribNeedToken:"\u9700\u8981 GitHub Token",githubContribAria:e=>`\u8FC7\u53BB\u4E00\u5E74 ${e} \u6B21\u516C\u5F00\u8D21\u732E`,githubContribDayTitle:(e,t)=>`${e} \xB7 ${t} \u6B21\u8D21\u732E`,githubContribDayAria:(e,t)=>`${e}\uFF0C${t} \u6B21\u8D21\u732E`,githubContribEmpty:"\u6B63\u5F0F\u53D1\u5E03\u65F6\u4F1A\u4F7F\u7528\u5DE5\u4F5C\u6D41\u7684\u53EA\u8BFB\u4EE4\u724C\u751F\u6210\u8D21\u732E\u70ED\u70B9\u56FE\u3002",githubActivityEyebrow:"CONTRIBUTION ACTIVITY / \u6700\u8FD1\u6D3B\u52A8",githubActivityHeading:"\u6700\u8FD1\u5728 GitHub \u4E0A\u505A\u4E86\u4EC0\u4E48",githubActivityEmpty:"GitHub \u6682\u65F6\u6CA1\u6709\u8FD4\u56DE\u6700\u8FD1\u7684\u516C\u5F00\u8D21\u732E\u6D3B\u52A8\u3002",githubEventPush:"\u63A8\u9001\u4E86\u4EE3\u7801",githubEventPrClosed:"\u5B8C\u6210\u4E86 Pull Request",githubEventPrOpen:"\u63D0\u4EA4\u4E86 Pull Request",githubEventIssueClosed:"\u5173\u95ED\u4E86 Issue",githubEventIssueOpen:"\u53C2\u4E0E\u4E86 Issue",githubEventCreateRepo:"\u521B\u5EFA\u4E86\u4ED3\u5E93",githubEventCreateTag:"\u521B\u5EFA\u4E86\u6807\u7B7E",githubEventCreateBranch:"\u521B\u5EFA\u4E86\u5206\u652F",githubEventRelease:"\u53D1\u5E03\u4E86\u65B0\u7248\u672C",commentsSummaryReady:"\u8BC4\u8BBA\u7531 GitHub Discussions \u4FDD\u5B58\u548C\u7BA1\u7406\u3002",commentsSummaryUnconfigured:"\u8BC4\u8BBA\u8FD8\u6CA1\u5F00\u653E\u3002\u914D\u597D\u4E0B\u9762\u56DB\u9879\u540E\uFF0C\u8FD9\u91CC\u624D\u4F1A\u51FA\u73B0\u8BC4\u8BBA\u6846\u3002",commentsGiscusGuideUrl:"https://giscus.app/zh-CN",commentsSetupBefore:"\u6253\u5F00",commentsSetupMiddle:"\uFF0C\u5B89\u88C5\u5230\u4E00\u4E2A\u5DF2\u5F00\u542F Discussions \u7684\u516C\u5F00\u4ED3\u5E93\uFF0C\u628A\u4ED3\u5E93\u3001\u4ED3\u5E93 ID\u3001\u5206\u7C7B\u3001\u5206\u7C7B ID \u5199\u5165 ",commentsSetupAnd:" \u548C GitHub Actions Variables\uFF1A",commentsSetupJoin:"\u3001",commentsSetupEnd:"\u3002",giscusLang:"zh-CN",webmentionIdleNote:"\u63A5\u6536\u4E0E\u5C55\u793A\u4EE3\u7801\u5DF2\u7ECF\u5C31\u7EEA\uFF0C\u6CE8\u518C\u6B63\u5F0F\u57DF\u540D\u540E\u5373\u53EF\u5F00\u59CB\u6536\u96C6\u56DE\u5E94\u3002",webmentionLoading:"\u6B63\u5728\u8BFB\u53D6\u5F00\u653E\u7F51\u7EDC\u56DE\u5E94\u2026",webmentionUnavailable:"\u6682\u65F6\u65E0\u6CD5\u8BFB\u53D6\u56DE\u5E94\uFF0C\u7A0D\u540E\u4F1A\u81EA\u52A8\u6062\u590D\u3002",webmentionEmpty:"\u8FD8\u6CA1\u6709\u7AD9\u5916\u56DE\u5E94\u3002\u4EFB\u4F55\u94FE\u63A5\u5230\u8FD9\u7BC7\u6587\u7AE0\u7684\u7F51\u7AD9\u90FD\u53EF\u4EE5\u5411\u5B83\u53D1\u9001 Webmention\u3002",webmentionReactionCount:e=>`${e} \u4E2A\u559C\u6B22\u3001\u8F6C\u53D1\u6216\u6536\u85CF`,webmentionRespondersLabel:"\u56DE\u5E94\u8005",webmentionViewResponse:"\u67E5\u770B\u7AD9\u5916\u56DE\u5E94",webmentionAuthorFallback:"\u5F00\u653E\u7F51\u7EDC\u8BBF\u5BA2",webmentionViewOriginal:"\u67E5\u770B\u539F\u6587",emptyPostsEyebrow:"\u6682\u65E0\u535A\u6587",emptyPostsTitle:"\u6682\u65E0\u535A\u6587\u3002",emptyPostsDesc:"\u6587\u7AE0\u4F1A\u6309\u65F6\u95F4\u6392\u5728\u8FD9\u91CC\u3002",emptyPostsCta:"\u8FD4\u56DE\u9996\u9875",emptyColumnsEyebrow:"\u6682\u65E0\u4E13\u680F",emptyColumnsTitle:"\u6682\u65E0\u4E13\u680F\u3002",emptyColumnsDesc:"\u4E00\u7EC4\u6587\u7AE0\u4F1A\u6309\u987A\u5E8F\u5217\u5728\u8FD9\u91CC\u3002",emptyColumnsCta:"\u6D4F\u89C8\u5168\u90E8\u535A\u6587",embedProviderWechat:"\u5FAE\u4FE1\u516C\u4F17\u53F7",embedProviderWeb:"\u7F51\u9875\u6458\u8981",embedParseError:"\u65E0\u6CD5\u89E3\u6790\u8FD9\u4E2A\u5D4C\u5165\u5757\uFF0C\u8BF7\u68C0\u67E5 URL \u4E0E YAML \u683C\u5F0F\u3002",embedFrameTitle:e=>`${e} \u5D4C\u5165\u5185\u5BB9`,embedOpenOriginal:"\u5728\u539F\u7F51\u7AD9\u6253\u5F00",embedFallbackTitle:"\u6253\u5F00\u8FD9\u6761\u5916\u90E8\u5185\u5BB9",embedFallbackNoScript:"\u5E73\u53F0\u4E0D\u63D0\u4F9B\u7A33\u5B9A\u7684\u65E0\u811A\u672C\u5D4C\u5165\uFF0CGarden \u4F1A\u4FDD\u7559\u6E05\u6670\u3001\u53EF\u8BBF\u95EE\u7684\u539F\u6587\u5165\u53E3\u3002",embedFallbackWeb:"\u67E5\u770B\u539F\u7F51\u9875\u4E2D\u7684\u5B8C\u6574\u5185\u5BB9\u4E0E\u4E0A\u4E0B\u6587\u3002",widgetParseError:"\u65E0\u6CD5\u89E3\u6790\u8FD9\u4E2A\u5D4C\u5165\u5757\u3002\u8BF7\u5728\u4E0E Markdown \u540C\u540D\u7684\u76EE\u5F55\u91CC\u653E\u4E00\u4EFD .html \u6216 .pdf\uFF0C\u5E76\u5728\u56F4\u680F\u4E2D\u5199 src \u4E0E caption\u3002",widgetOpenPage:"\u6253\u5F00\u9875\u9762",widgetOpenPdf:"\u6253\u5F00 PDF",widgetPageKind:"\u9875\u9762",widgetCollapse:"\u6536\u8D77",widgetExpand:"\u5C55\u5F00",uiBlockCorrupt:"\u8FD9\u5757\u4EA4\u4E92\u7684\u6570\u636E\u635F\u574F\u4E86\uFF0C\u8BF7\u91CD\u65B0\u8FD0\u884C garden sync\u3002",staticAdminHeading:"\u540E\u53F0\u5728\u53E6\u4E00\u4E2A\u5730\u5740\u3002",staticAdminBody:"\u516C\u5F00\u535A\u5BA2\u4E0A\u770B\u4E0D\u5230\u8FD9\u4E00\u9875\u3002\u7BA1\u7406\u6587\u7AE0\u548C\u4EA4\u4E92\uFF0C\u53BB\u5355\u72EC\u90E8\u7F72\u7684\u540E\u53F0\u3002",staticAdminRootBody:"\u8FD9\u4E2A\u9875\u9762\u662F\u516C\u5F00\u535A\u5BA2\u3002\u7BA1\u7406\u6587\u7AE0\u548C\u8F6C\u53D1\uFF0C\u53BB\u540E\u53F0\u3002",staticAdminOpen:"\u6253\u5F00\u540E\u53F0",staticAdminNoUrl:"\u8FD8\u6CA1\u6709\u586B\u5199\u540E\u53F0\u5730\u5740\u3002",staticAdminBack:"\u8FD4\u56DE\u516C\u5F00\u535A\u5BA2",adminTitleMain:"\u5185\u5BB9\u7BA1\u7406",adminTitleUi:"\u5199\u4F5C\u53F0",adminTitleBlocks:"\u4EA4\u4E92\u5757",adminTitleCatalog:"\u7EC4\u4EF6\u6E05\u5355",adminTitleEvals:"\u6A21\u578B\u81EA\u68C0",adminTitlePreview:"\u8349\u7A3F\u9884\u89C8",a2IndexTitle:"A2 \u5BF9\u7167",a2IndexDeck:"\u5BF9\u7167\u53C2\u8003\u6587\u7AE0\u7684\u7248\u5F0F\u3002\u6B63\u6587\u6CA1\u6709\u6539\u5B57\u3002"},ZY={homeAbout:"About",homeRss:"RSS",homeLatest:"Latest",homeRecent:"Recent posts",homeAllPosts:e=>`All ${e} ${e===1?"post":"posts"}`,homePinned:"Pinned",homeColumns:"Columns",homeAllColumns:"All columns",columnCount:(e,t)=>`${e} ${e===1?"post":"posts"} \xB7 ${t}`,columnDefault:"Active",columnOngoing:"Ongoing",columnCompleted:"Completed",columnReadingList:(e,t)=>`Reading list \xB7 ${e} ${e===1?"post":"posts"} \xB7 ${t}`,columnSideCount:(e,t)=>`${e} ${e===1?"post":"posts"} \xB7 ${t}`,columnCoverAlt:e=>`${e} cover`,columnFallbackDesc:"A series of posts in reading order.",columnNewestFirst:e=>`${e}, newest first`,toc:"Contents",tocShort:"TOC",tocPage:"On this page",open:"Open ",close:"Close ",currentSection:", current section: ",prev:"Previous",next:"Next",pagerLabel:"Previous and next post",columnPagerLabel:"Previous and next in this column",comments:"Comments",webmentions:"Responses from the open web",webmentionsLead:"Mentions, likes, reposts and replies from other sites arrive here through Webmention.",notFoundTitle:"Page not found",notFoundDeck:"The address may be wrong, or the page has moved.",backHome:"Back to home",builtWith:["Built with ",""],search:"Search",searchArticles:"Search posts",toLight:"Switch to light mode",toDark:"Switch to dark mode",wordCount:e=>`${e.toLocaleString("en-US")} words`,dateLocale:"en-US",handbook:"Garden Handbook",overview:"Overview",langSwitch:"Switch language",skipToContent:"Skip to content",copyCode:"Copy code",copied:"Copied",copiedLive:"Copied to clipboard",diffAdded:" (added)",diffRemoved:" (removed)",codeTabs:["Code","Diff from previous"],codeTabsLabel:"Code",demo:"Demo",fullscreen:"Full screen",exitFullscreen:"Exit full screen",chart:"Chart",relations:"Relationship diagram",relationsLegend:"Link labels",dataTable:"Show data table",item:"Item",value:"Value",pickAnswer:"Pick an answer first.",correct:"\u2713 Correct",wrong:"\u2717 Try again",bytes:"bytes",htmlAt:e=>`HTML lives in ${e}. It is read from the folder of the same name at publish time.`,interactive:"Interactive",ideaLabel:"Idea \xB7 compiled before publishing",unknownBlock:e=>`Unknown Garden block: ${e}`,file:"File",openInTab:"Open in new tab",openNamedInTab:e=>`Open ${e} in a new tab`,download:"Download",downloadNamed:e=>`Download ${e}`,downloadFile:"Download file",closePreview:"Close preview",previewFailed:"The preview could not load.",retry:"Retry",previewLoading:"Loading preview\u2026",escClose:"Esc to close",preview:"Preview",previewNamed:e=>`Preview ${e}`,viewImage:"View full image",zoomImage:e=>`Enlarge: ${e}`,closeImage:"Close image preview",tableScroll:"Table, scrolls horizontally",tocToggle:(e,t)=>`${e?"Expand":"Collapse"} subsections of \u201C${t}\u201D`,siteNav:"Site navigation",siteNavMobile:"Site navigation (mobile)",openMenu:"Open menu",closeMenu:"Close menu",darkMode:"Dark mode",searchTitle:"Search this site",searchPlaceholder:"Search titles, topics or text\u2026",searchInput:"Fuzzy search",closeSearch:"Close search",searchResults:"Search results",resultCount:e=>`${e} matching ${e===1?"post":"posts"}`,recent:"Recent",searchFailed:"Search is unavailable right now. Please try again later.",loading:"Loading\u2026",fuzzy:"Fuzzy matching",escToClose:"to close",noResults:e=>e?`No posts match \u201C${e}\u201D`:"Nothing to search yet",navLabels:{"/blog/":"Posts","/columns/":"Columns","/tags/":"Tags","/about/":"About"},homeLatestBadge:"Latest post",homeRecentHeading:"Recent updates",homeAllPostsCount:e=>`All ${e} ${e===1?"post":"posts"}`,homePinnedHeading:"Pinned",homeColumnsHeading:"Columns",homeColumnCountStatus:(e,t)=>`${e} ${e===1?"post":"posts"}, ${t}`,columnDefaultStatus:"Ongoing",blogEyebrow:"BLOG",blogHeading:"Posts",blogDeck:e=>`Essays on engineering, architecture, and systems thinking. ${e} ${e===1?"post":"posts"}, archived by year.`,unknownYear:"Unknown",tagFilterLabel:"Filter by tag",tagCollapse:"Show less",tagExpandAll:e=>`Show all ${e} tags`,tagClear:"Clear",densityLabel:"List density",densityDetailed:"Detailed",densityCompact:"Compact",yearPostCount:e=>`${e} ${e===1?"post":"posts"}`,pinnedBadge:"Pinned",tagEmptyMatch:"No posts match all of the selected tags.",tagDropLast:e=>`Remove \u201C${e}\u201D`,browseAllPosts:"All posts",railJumpByYear:"Jump by year",railByYear:"By year",railColumns:"Columns",permalinkLabel:e=>`Permanent link to ${e}`,updatedOn:e=>`Updated ${e}`,originalLink:"Original \u2197",coverLabel:e=>`${e} cover`,referencesHeading:"References",articleTagsLabel:"Tags",allColumnsBack:"All columns",seriesEyebrow:"Column",seriesCountStatus:(e,t)=>`${e} ${e===1?"post":"posts"} \xB7 ${t}`,columnsEyebrow:"COLUMNS",columnsFallbackTitle:"Columns",columnsMeta:(e,t)=>`Reading list \xB7 ${e} ${e===1?"post":"posts"} \xB7 ${t}`,columnsFallbackDesc:"A series of posts organized in reading order.",columnsOrderLabel:e=>`${e}, newest to oldest`,tagsTitle:"Tags",tagsDescription:"All tags.",tagsDeck:e=>`${e} ${e===1?"tag":"tags"}, ordered by post count. Pick a tag to view matching posts.`,tagsIndexLabel:"All tags",tagsEmpty:"No tags yet.",aboutEyebrow:"ABOUT",aboutFallbackHeading:"About",aboutFallbackParagraphs:["An engineer who writes code and writes down problems once they are clear.","This site holds posts and columns."],aboutFocusHeading:"Current focus",aboutFallbackFocus:["Software","Notes","Daily work"],aboutFallbackCta:"Browse posts",githubProfileAria:"GitHub profile",githubAvatarAlt:e=>`${e}'s GitHub avatar`,githubOverviewPrefix:"GitHub public profile",githubSyncSynced:"Synced on this visit",githubSyncSnapshot:"Using build snapshot",githubSyncSyncing:"Syncing live profile",githubViewProfile:"View GitHub",githubMetricRepos:"Public repos",githubMetricCommits:"Commits (30d)",githubPinnedEyebrow:"PINNED",githubPinnedHeading:"Pinned repositories",githubPinnedFallbackDesc:"View code and recent updates in this public repository.",githubPinnedEmpty:"Configure a GitHub Token or author.githubPinned to show pinned repositories here.",githubContribEyebrow:"CONTRIBUTIONS",githubContribHeading:"Public contributions in the past year",githubContribCount:e=>`${e} ${e===1?"contribution":"contributions"}`,githubContribNeedToken:"GitHub Token required",githubContribAria:e=>`${e} public ${e===1?"contribution":"contributions"} in the past year`,githubContribDayTitle:(e,t)=>`${e} \xB7 ${t} ${t===1?"contribution":"contributions"}`,githubContribDayAria:(e,t)=>`${e}, ${t} ${t===1?"contribution":"contributions"}`,githubContribEmpty:"Production builds use the workflow's read-only token to generate the contribution heatmap.",githubActivityEyebrow:"CONTRIBUTION ACTIVITY",githubActivityHeading:"Recent activity on GitHub",githubActivityEmpty:"No recent public GitHub activity returned right now.",githubEventPush:"Pushed commits",githubEventPrClosed:"Completed a Pull Request",githubEventPrOpen:"Opened a Pull Request",githubEventIssueClosed:"Closed an Issue",githubEventIssueOpen:"Participated in an Issue",githubEventCreateRepo:"Created a repository",githubEventCreateTag:"Created a tag",githubEventCreateBranch:"Created a branch",githubEventRelease:"Published a release",commentsSummaryReady:"Comments are stored and managed via GitHub Discussions.",commentsSummaryUnconfigured:"Comments are not enabled yet. Configure the four variables below to show the comment box.",commentsGiscusGuideUrl:"https://giscus.app",commentsSetupBefore:"Open",commentsSetupMiddle:", install it on a public repository with Discussions enabled, and add the repository, repository ID, category, and category ID to ",commentsSetupAnd:" and GitHub Actions Variables: ",commentsSetupJoin:", ",commentsSetupEnd:".",giscusLang:"en",webmentionIdleNote:"Webmention receiving and display are ready; responses will appear once a custom domain is connected.",webmentionLoading:"Loading responses from the open web\u2026",webmentionUnavailable:"Responses are temporarily unavailable. Please try again later.",webmentionEmpty:"No external responses yet. Any site linking to this post can send a Webmention.",webmentionReactionCount:e=>`${e} ${e===1?"like, repost, or bookmark":"likes, reposts, or bookmarks"}`,webmentionRespondersLabel:"Responders",webmentionViewResponse:"View external response",webmentionAuthorFallback:"Open web reader",webmentionViewOriginal:"View original",emptyPostsEyebrow:"No posts yet",emptyPostsTitle:"No posts yet.",emptyPostsDesc:"Published posts will appear here in chronological order.",emptyPostsCta:"Back to home",emptyColumnsEyebrow:"No columns yet",emptyColumnsTitle:"No columns yet.",emptyColumnsDesc:"Curated post series will appear here in reading order.",emptyColumnsCta:"Browse all posts",embedProviderWechat:"WeChat Official Account",embedProviderWeb:"Web excerpt",embedParseError:"Could not parse this embed block. Please check the URL and YAML syntax.",embedFrameTitle:e=>`${e} embedded content`,embedOpenOriginal:"Open original",embedFallbackTitle:"Open external content",embedFallbackNoScript:"This platform does not provide a stable script-free embed; Garden keeps a clean link to the original post.",embedFallbackWeb:"Read the full page and context on the original site.",widgetParseError:"Could not parse this widget block. Place a .html or .pdf file in the folder matching the Markdown file name, and specify src and caption.",widgetOpenPage:"Open page",widgetOpenPdf:"Open PDF",widgetPageKind:"Page",widgetCollapse:"Collapse",widgetExpand:"Expand",uiBlockCorrupt:"This interactive block's payload is corrupted. Please re-run garden sync.",staticAdminHeading:"Admin lives at a separate address.",staticAdminBody:"This page is not available on the public blog. Use your separately deployed admin instance to manage articles and edit interactive blocks.",staticAdminRootBody:"This is the public blog. Use the admin site to manage articles, upload media, and share.",staticAdminOpen:"Open admin",staticAdminNoUrl:"No admin URL configured yet.",staticAdminBack:"Back to public blog",adminTitleMain:"Content Studio",adminTitleUi:"Writing Studio",adminTitleBlocks:"Interactive Blocks",adminTitleCatalog:"Component Catalog",adminTitleEvals:"Model Evals",adminTitlePreview:"Draft Preview",a2IndexTitle:"A2 Parity",a2IndexDeck:"Layout comparison against reference articles. Body text is unchanged."},eK={zh:WY,en:ZY},Pl=(e=wo)=>eK[e];var f7=ie(De(),1),A3=(0,ph.createContext)(wo);function p7({lang:e,children:t}){return(0,f7.jsx)(A3.Provider,{value:e??wo,children:t})}var Rc=()=>(0,ph.useContext)(A3),Ts=()=>Pl((0,ph.useContext)(A3));var C7=ie(I7(),1);var v3={}.hasOwnProperty,wK=new Map,kK=/[A-Z]/g,vK=new Set(["table","tbody","thead","tfoot","tr"]),MK=new Set(["td","th"]),A7="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function M3(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=BK(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=PK(n,t.jsx,t.jsxs)}let r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ta:jr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=w7(r,e,void 0);return i&&typeof i!="string"?i:r.create(e,r.Fragment,{children:i||void 0},void 0)}function w7(e,t,n){if(t.type==="element")return NK(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return LK(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return OK(e,t,n);if(t.type==="mdxjsEsm")return _K(e,t);if(t.type==="root")return RK(e,t,n);if(t.type==="text")return DK(e,t)}function NK(e,t,n){let a=e.schema,r=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(r=ta,e.schema=r),e.ancestors.push(t);let i=v7(e,t.tagName,!1),s=HK(e,t),o=L3(e,t);return vK.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!ps(l):!0})),k7(e,s,i,t),N3(s,o),e.ancestors.pop(),e.schema=a,e.create(t,i,s,n)}function LK(e,t){if(t.data&&t.data.estree&&e.evaluater){let a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}hh(e,t.position)}function _K(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);hh(e,t.position)}function OK(e,t,n){let a=e.schema,r=a;t.name==="svg"&&a.space==="html"&&(r=ta,e.schema=r),e.ancestors.push(t);let i=t.name===null?e.Fragment:v7(e,t.name,!0),s=FK(e,t),o=L3(e,t);return k7(e,s,i,t),N3(s,o),e.ancestors.pop(),e.schema=a,e.create(t,i,s,n)}function RK(e,t,n){let a={};return N3(a,L3(e,t)),e.create(t,e.Fragment,a,n)}function DK(e,t){return t.value}function k7(e,t,n,a){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=a)}function N3(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function PK(e,t,n){return a;function a(r,i,s,o){let u=Array.isArray(s.children)?n:t;return o?u(i,s,o):u(i,s)}}function BK(e,t){return n;function n(a,r,i,s){let o=Array.isArray(i.children),l=Oa(a);return t(r,i,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function HK(e,t){let n={},a,r;for(r in t.properties)if(r!=="children"&&v3.call(t.properties,r)){let i=UK(e,r,t.properties[r]);if(i){let[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&MK.has(t.tagName)?a=o:n[s]=o}}if(a){let i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return n}function FK(e,t){let n={};for(let a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){let i=a.data.estree.body[0];i.type;let s=i.expression;s.type;let o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else hh(e,t.position);else{let r=a.name,i;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){let o=a.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else hh(e,t.position);else i=a.value===null?!0:a.value;n[r]=i}return n}function L3(e,t){let n=[],a=-1,r=e.passKeys?new Map:wK;for(;++a<t.children.length;){let i=t.children[a],s;if(e.passKeys){let l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){let u=r.get(l)||0;s=l+"-"+u,r.set(l,u+1)}}let o=w7(e,i,s);o!==void 0&&n.push(o)}return n}function UK(e,t,n){let a=Gr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?Zu(n):ec(n)),a.property==="style"){let r=typeof n=="object"?n:zK(e,String(n));return e.stylePropertyNameCase==="css"&&(r=VK(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&a.space?xx[a.property]||a.property:a.attribute,n]}}function zK(e,t){try{return(0,C7.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let a=n,r=new Fe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=A7+"#cannot-parse-style-attribute",r}}function v7(e,t,n){let a;if(!n)a={type:"Literal",value:t};else if(t.includes(".")){let r=t.split("."),i=-1,s;for(;++i<r.length;){let o=v1(r[i])?{type:"Identifier",name:r[i]}:{type:"Literal",value:r[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}a=s}else a=v1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){let r=a.value;return v3.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(a);hh(e)}function hh(e,t){let n=new Fe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=A7+"#cannot-handle-mdx-estrees-without-createevaluater",n}function VK(e){let t={},n;for(n in e)v3.call(e,n)&&(t[$K(n)]=e[n]);return t}function $K(e){let t=e.replace(kK,qK);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function qK(e){return"-"+e.toLowerCase()}var mh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Dc=ie(De(),1),L7=ie(Gt(),1);var GK="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",M7=[],N7={allowDangerousHtml:!0},jK=/^(https?|ircs?|mailto|xmpp)$/i,YK=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function _3(e){let t=KK(e),n=XK(e);return QK(t.runSync(t.parse(n),n),e)}function KK(e){let t=e.rehypePlugins||M7,n=e.remarkPlugins||M7,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...N7}:N7;return cf().use(Ju).use(n).use(Wu,a).use(t)}function XK(e){let t=e.children||"",n=new nl;return typeof t=="string"?n.value=t:(""+t,void 0),n}function QK(e,t){let n=t.allowedElements,a=t.allowElement,r=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||_7;for(let c of YK)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+GK+c.id,void 0);return n&&i&&void 0,ss(e,u),M3(e,{Fragment:Dc.Fragment,components:r,ignoreInvalidStyle:!0,jsx:Dc.jsx,jsxs:Dc.jsxs,passKeys:!0,passNode:!0});function u(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return s?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let h;for(h in mh)if(Object.hasOwn(mh,h)&&Object.hasOwn(c.properties,h)){let d=c.properties[h],y=mh[h];(y===null||y.includes(c.tagName))&&(c.properties[h]=l(String(d||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):i?i.includes(c.tagName):!1;if(!h&&a&&typeof f=="number"&&(h=!a(c,f,p)),h&&p&&typeof f=="number")return o&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function _7(e){let t=e.indexOf(":"),n=e.indexOf("?"),a=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||a!==-1&&t>a||jK.test(e.slice(0,t))?e:""}function O7(e){if(!e)return null;try{return JSON.parse(decodeURIComponent(String(e)))}catch{return null}}var R7=ie(De(),1);function $e({text:e}){return(0,R7.jsx)("span",{dangerouslySetInnerHTML:{__html:nn(String(e??""),{inline:!0})??""}})}function D7(e,t){let n=0;for(;e[t+n]==="`";)n+=1;let a="`".repeat(n),r=t+n;for(;r<e.length;){let i=e.indexOf(a,r);if(i<0)return-1;let s=0;for(;e[i+s]==="`";)s+=1;if(s===n)return i+n;r=i+s}return-1}function O3(e,t,n,a){let r=0;for(let i=t;i<e.length;i+=1){let s=e[i];if(s==="\\"){i+=1;continue}if(s==="`"){let o=D7(e,i);if(o>0){i=o-1;continue}}if(s===n)r+=1;else if(s===a&&(r-=1,r===0))return i+1}return-1}function JK(e,t){let n=O3(e,t,"[","]");return n<0?-1:e[n]==="("?O3(e,n,"(",")"):e[n]==="["?O3(e,n,"[","]"):-1}function P7(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="\\"){t+=1;continue}if(n==="`"){let s=D7(e,t);if(s>0){t=s-1;continue}continue}if(n==="["){let s=JK(e,t);if(s>0){t=s-1;continue}continue}if(n==="<"){let s=e.indexOf(">",t);if(s>0&&/^<[a-z][a-z0-9+.-]*:[^\s<>]*>$/iu.test(e.slice(t,s+1))){t=s;continue}}if(!(n==="\uFF1A"||n===":"&&e[t+1]===" "))continue;let r=t;for(;r>0&&/\s/u.test(e[r-1]);)r-=1;if(r===0)continue;let i=t+1;for(;i<e.length&&/\s/u.test(e[i]);)i+=1;return i>=e.length?null:{title:e.slice(0,r),separator:e.slice(r,i),text:e.slice(i)}}return null}var ti=ie(Gt(),1);var Di=ie(De(),1);var WK=(0,Di.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,Di.jsx)("path",{d:"M2.5 6V2.5H6M10 2.5h3.5V6M13.5 10v3.5H10M6 13.5H2.5V10"})}),ZK=(0,Di.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,Di.jsx)("path",{d:"M6 2.5V6H2.5M13.5 6H10V2.5M10 13.5V10h3.5M2.5 10H6v3.5"})});function B7(){return document.fullscreenElement||document.webkitFullscreenElement||null}function H7({children:e,label:t}){let n=Ts();t=t??n.demo;let a=(0,ti.useRef)(null),r=(0,ti.useRef)(null),i=(0,ti.useRef)(null),[s,o]=(0,ti.useState)(!1),[l,u]=(0,ti.useState)(!1);(0,ti.useEffect)(()=>{let p=()=>{let h=B7()===a.current;u(h||s),!h&&!s&&i.current&&(i.current.focus(),i.current=null)};return document.addEventListener("fullscreenchange",p),document.addEventListener("webkitfullscreenchange",p),()=>{document.removeEventListener("fullscreenchange",p),document.removeEventListener("webkitfullscreenchange",p)}},[s]),(0,ti.useEffect)(()=>{if(!s)return;let p=a.current;document.documentElement.classList.add("ux-lock");let h=y=>{if(y.key==="Escape"){y.preventDefault(),o(!1),u(!1),document.documentElement.classList.remove("ux-lock"),i.current?.focus();return}if(y.key!=="Tab"||!p)return;let S=[...p.querySelectorAll("button, a[href], input, select, textarea, iframe, [tabindex]:not([tabindex='-1'])")].filter(x=>!x.hasAttribute("disabled")&&x.getClientRects().length>0);if(!S.length)return;let b=S.indexOf(document.activeElement),g=S.length-1;(b<0||y.shiftKey&&b===0||!y.shiftKey&&b===g)&&(y.preventDefault(),S[b<0?0:y.shiftKey?g:0].focus())},d=y=>{p&&!p.contains(y.target)&&r.current?.focus()};return document.addEventListener("keydown",h,!0),document.addEventListener("focusin",d),r.current?.focus(),()=>{document.documentElement.classList.remove("ux-lock"),document.removeEventListener("keydown",h,!0),document.removeEventListener("focusin",d)}},[s]);let c=()=>{let p=a.current;if(!p)return;i.current=document.activeElement instanceof HTMLElement?document.activeElement:null;let h=p.requestFullscreen||p.webkitRequestFullscreen;if(h&&(document.fullscreenEnabled||document.webkitFullscreenEnabled)){h.call(p);return}o(!0),u(!0)},f=()=>{if(B7()){document.exitFullscreen?.()||document.webkitExitFullscreen?.();return}o(!1),u(!1),i.current?.focus()};return(0,Di.jsxs)("div",{ref:a,className:`ux-fs${s?" ux-fs-on":""}`,role:s?"dialog":void 0,"aria-modal":s?!0:void 0,"aria-label":s?t:void 0,children:[(0,Di.jsx)("div",{className:"ux-fsbar",children:(0,Di.jsx)("button",{ref:r,type:"button",className:"ux-btn ux-fsb","aria-label":l?n.exitFullscreen:n.fullscreen,title:l?n.exitFullscreen:n.fullscreen,onClick:()=>l?f():c(),children:l?ZK:WK})}),e]})}var Mn=ie(Gt(),1);var eX=new Set(["co","com","net","org","gov","edu","ac","or","ne","go","gob","nic"]);function tX(e){try{return new URL(e).hostname.toLowerCase().replace(/^www\./u,"")}catch{return""}}function nX(e){let t=String(e??"").toLowerCase().replace(/^www\./u,"").split(".").filter(Boolean);if(t.length<2)return t[0]??"";if(/^\d+$/u.test(t.at(-1)))return t[0];let n=t.at(-1),a=t.at(-2);return t.length>=3&&n.length===2&&eX.has(a)?t.at(-3):a}function aX(e){let t=nX(e);return t?[...t][0].toUpperCase():"\xB7"}function F7(e,t,n){let a=tX(e),r=t?.[a],i=(typeof r=="string"?r:r?.file)||(typeof n=="string"&&n?n:"");return i?{src:i}:{letter:aX(a)}}var dh=ie(Gt(),1),gh=dh.forwardRef((e,t)=>{let{alt:n,color:a="currentColor",size:r="1em",weight:i="regular",mirrored:s=!1,children:o,weights:l,...u}=e;return dh.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:a,viewBox:"0 0 256 256",transform:s?"scale(-1, 1)":void 0,...u},!!n&&dh.createElement("title",null,n),o,l.get(i))});gh.displayName="SSRBase";var Q1=ie(Gt(),1);var fn=ie(Gt(),1),U7=new Map([["bold",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),fn.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]);var R3=Q1.forwardRef((e,t)=>Q1.createElement(gh,{ref:t,...e,weights:U7}));R3.displayName="CheckCircleIcon";var D3=R3;var J1=ie(Gt(),1);var hn=ie(Gt(),1),z7=new Map([["bold",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),hn.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]);var P3=J1.forwardRef((e,t)=>J1.createElement(gh,{ref:t,...e,weights:z7}));P3.displayName="XCircleIcon";var B3=P3;var ue=ie(De(),1);function V7({name:e,size:t=18}){return tl(String(e))?(0,ue.jsx)("span",{"aria-hidden":"true",dangerouslySetInnerHTML:{__html:Xu(String(e)).replace('class="g-compose-icon"',`class="g-compose-icon" style="width:${t}px;height:${t}px"`)}}):null}var rX=e=>e==null?[]:Array.isArray(e)?e.map(String):[String(e)],F3=e=>(Array.isArray(e.items)?e.items:[]).map(t=>typeof t=="string"?{text:t}:t??{});function $7({props:e}){let t=F3(e),n=t.some(a=>a.title);return(0,ue.jsxs)("figure",{className:`g-list ${n?"g-list-steps":"g-list-rows"}`,children:[typeof e.title=="string"?(0,ue.jsx)("p",{className:"g-list-h",children:(0,ue.jsx)($e,{text:e.title})}):null,(0,ue.jsx)("ul",{children:t.map((a,r)=>(0,ue.jsxs)("li",{children:[(0,ue.jsx)("span",{className:"g-list-ic",children:(0,ue.jsx)(V7,{name:a.icon,size:n?20:17})}),(0,ue.jsxs)("div",{className:"g-list-b",children:[a.title?(0,ue.jsx)("p",{className:"g-list-t",children:(0,ue.jsx)($e,{text:String(a.title)})}):null,rX(a.text).map((i,s)=>(0,ue.jsx)("p",{className:"g-list-x",children:(0,ue.jsx)($e,{text:i})},s))]})]},r))}),typeof e.caption=="string"?(0,ue.jsx)("figcaption",{children:(0,ue.jsx)($e,{text:e.caption})}):null]})}function q7({props:e}){let t=F3(e),[n,a]=(0,Mn.useState)(null),r=(0,Mn.useId)(),i=typeof e.title=="string"?e.title:"",s=(p,h)=>{let d=(p+h+u)%u;a(d),document.getElementById(`${r}-${d}`)?.focus()},o=e.none&&typeof e.none=="object"?e.none:null,l=o&&typeof o.label=="string"?o.label:"",u=t.length+(l?1:0),c=n===null?null:n<t.length?t[n]:o,f=c?String(c.reply??""):"";return(0,ue.jsxs)("figure",{className:"g-choice",children:[i?(0,ue.jsx)("p",{className:"g-choice-h",id:`${r}-h`,children:(0,ue.jsx)($e,{text:i})}):null,(0,ue.jsxs)("div",{className:"g-choice-group",role:"radiogroup","aria-labelledby":i?`${r}-h`:void 0,children:[(0,ue.jsx)("div",{className:"g-choice-opts","data-n":t.length,children:t.map((p,h)=>{let d=n===h;return(0,ue.jsxs)("button",{id:`${r}-${h}`,type:"button",role:"radio","aria-checked":d,tabIndex:d||n===null&&h===0?0:-1,className:"g-choice-opt",onClick:()=>a(h),onKeyDown:y=>{(y.key==="ArrowRight"||y.key==="ArrowDown")&&(y.preventDefault(),s(h,1)),(y.key==="ArrowLeft"||y.key==="ArrowUp")&&(y.preventDefault(),s(h,-1))},children:[p.icon?(0,ue.jsx)("span",{className:"g-choice-ic",children:(0,ue.jsx)(V7,{name:p.icon,size:26})}):null,p.value!=null?(0,ue.jsx)("span",{className:"g-choice-v",children:String(p.value)}):null,p.text?(0,ue.jsx)("span",{className:"g-choice-x",children:(0,ue.jsx)($e,{text:String(p.text)})}):null,p.label?(0,ue.jsxs)("span",{className:"g-choice-l",children:[(0,ue.jsx)("span",{className:"g-choice-dot","aria-hidden":"true"}),String(p.label)]}):null]},h)})}),l?(0,ue.jsx)("button",{id:`${r}-${t.length}`,type:"button",role:"radio","aria-checked":n===t.length,tabIndex:n===t.length?0:-1,className:"g-choice-none",onClick:()=>a(t.length),onKeyDown:p=>{(p.key==="ArrowRight"||p.key==="ArrowDown")&&(p.preventDefault(),s(t.length,1)),(p.key==="ArrowLeft"||p.key==="ArrowUp")&&(p.preventDefault(),s(t.length,-1))},children:l}):null]}),t.some(p=>p.reply)||o?.reply?(0,ue.jsx)("p",{className:"g-choice-reply","aria-live":"polite",hidden:!f,children:f?(0,ue.jsx)($e,{text:f}):null}):null,typeof e.caption=="string"?(0,ue.jsx)("figcaption",{children:(0,ue.jsx)($e,{text:e.caption})}):null]})}var bh=e=>({x:e.x+e.w/2,y:e.y+e.h/2});function Pc(e,t,n=6){let a=bh(e),r=t.x-a.x,i=t.y-a.y;if(!r&&!i)return a;let s=Math.min(r?(e.w/2+n)/Math.abs(r):1/0,i?(e.h/2+n)/Math.abs(i):1/0);return{x:a.x+r*s,y:a.y+i*s}}var H3=null;function iX(e,t){H3??(H3=document.createElement("canvas"));let n=H3.getContext("2d");return n?(n.font=t,n.measureText(e).width):e.length*7}function sX(e,t,n){let a=e.cloneNode(!1);a.style.cssText=`display:block;-webkit-line-clamp:none;overflow:visible;position:absolute;visibility:hidden;left:0;top:0;width:${e.clientWidth}px`,e.parentElement?.appendChild(a);let r=getComputedStyle(a),i=parseFloat(r.lineHeight)||parseFloat(r.fontSize)*1.35,s=l=>(a.textContent=l,a.scrollHeight<=i*n+1&&a.scrollWidth<=a.clientWidth+1),o=null;if(!s(t)){let l=/\s/u.test(t.trim())?t.split(/(?<=\s)/u):[...t],u=0,c=l.length-1;for(;u<c;){let f=Math.ceil((u+c)/2);s(`${l.slice(0,f).join("").trimEnd()}\u2060\u2026`)?u=f:c=f-1}if(u===0&&l.length>1){let f=[...l[0].trimEnd()],p=f.length;for(;p>1&&!s(`${f.slice(0,p).join("")}\u2060\u2026`);)p-=1;o=`${f.slice(0,p).join("")}\u2060\u2026`}else o=`${l.slice(0,Math.max(u,1)).join("").trimEnd()}\u2060\u2026`}return a.remove(),o}function G7({props:e}){let t=Ts(),n=Rc(),a=F3(e).slice(0,6),r=a.map(M=>String(M.title??"")),i=Gv(e,r),s=jv(i,r),o=a.length,l=e.center==null?-1:Sl(e.center,r),u=QS(o,l),c=(0,Mn.useRef)(null),[f,p]=(0,Mn.useState)([]),[h,d]=(0,Mn.useState)({w:0,h:0}),[y,S]=(0,Mn.useState)(!1),[b,g]=(0,Mn.useState)(null),[x,I]=(0,Mn.useState)({}),A=(0,Mn.useRef)(null),E=(0,Mn.useId)().replace(/:/gu,""),C=JSON.stringify({edges:i,centre:l,n:o});(0,Mn.useEffect)(()=>{let M=c.current;if(!M)return;let{edges:F,centre:V,n:H}=JSON.parse(C),W=-1,se=()=>{let ge=M.clientWidth;if(!ge||ge===W)return;W=ge;let R=ge<Xv,Se=M.closest("figure");R?Se?.setAttribute("data-compact","true"):Se?.removeAttribute("data-compact"),S(R);let{spots:L,outer:be}=QS(H,V,R),ye=[...M.querySelectorAll(":scope > .g-rel-node")];ye.forEach((re,z)=>{re.style.left=`${L[z].x}%`,re.style.width=`${L[z].w}%`}),(!A.current||A.current.key!==C)&&(A.current={key:C,text:ye.map(re=>[re.querySelector(".g-rel-t")?.textContent??"",re.querySelector(".g-rel-x")?.textContent??""])});let O={};ye.forEach((re,z)=>{let ne=[null,null];["g-rel-t","g-rel-x"].forEach((Z,we)=>{let Ye=re.querySelector(`.${Z}`),D=A.current?.text[z][we]??"";!Ye||!D||getComputedStyle(Ye).display==="none"||(ne[we]=sX(Ye,D,we===0||R?2:3))}),(ne[0]!==null||ne[1]!==null)&&(O[z]=ne)}),I(O);let qe=R?Math.max(90,ge*.26):Math.min(200,Math.max(120,ge*.2))*(V>=0?1.25:1),Ge=ye.map(re=>re.offsetHeight),Ft=re=>{let{ys:z,height:ne}=Yv(L,Ge,R?40:48,re);ye.forEach((Ye,D)=>{Ye.style.top=`${z[D]}px`}),M.style.height=`${Math.ceil(ne)}px`;let Z=M.getBoundingClientRect(),we=ye.map(Ye=>{let D=Ye.getBoundingClientRect();return{x:D.left-Z.left,y:D.top-Z.top,w:D.width,h:D.height}});return{frame:Z,boxes:we}},sn=R?24:48,j=re=>Math.min(1/0,...F.map(z=>{let ne=Pc(re[z.from],bh(re[z.to]),z.both?R?7:8:6),Z=Pc(re[z.to],bh(re[z.from]),R?7:8);return Math.hypot(Z.x-ne.x,Z.y-ne.y)})),Y=qe,{frame:fe,boxes:ee}=Ft(Y);for(let re=0;re<10;re+=1){let z=j(ee);if(z>=sn)break;Y+=Math.max(12,(sn-z)*1.5),{frame:fe,boxes:ee}=Ft(Y)}let ae={x:fe.width/2,y:fe.height/2},Xt=re=>re.from<re.to?`${re.from}-${re.to}`:`${re.to}-${re.from}`,te=new Map,Ae=F.map(re=>{let z=Xt(re),ne=te.get(z)??0;return te.set(z,ne+1),ne}),Ee=F.map((re,z)=>{let ne=ee[re.from],Z=ee[re.to],we=bh(ne),Ye=bh(Z),D=R?7:8,w=re.both?D:6,de=L[re.from].ring,Ie=L[re.to].ring,kt=de>=0&&Ie>=0&&be>3&&(Math.abs(de-Ie)===1||Math.abs(de-Ie)===be-1),Me=te.get(Xt(re))??1,Et={x:(we.x+Ye.x)/2,y:(we.y+Ye.y)/2},_t=Math.hypot(Ye.x-we.x,Ye.y-we.y)||1,Ca=re.from<re.to?we:Ye,Sn=re.from<re.to?Ye:we,it=-(Sn.y-Ca.y)/_t,la=(Sn.x-Ca.x)/_t,Ua=0;if(kt&&(it*(Et.x-ae.x)+la*(Et.y-ae.y)<0&&(it=-it,la=-la),Ua=Math.min(R?22:40,_t/4)),Me>1&&(Ua+=(Ae[z]-(Me-1)/2)*(R?30:40)*2),!Ua){let Yn=Pc(ne,Ye,w),Bc=Pc(Z,we,D),lL=j3=>({x:Yn.x+(Bc.x-Yn.x)*j3,y:Yn.y+(Bc.y-Yn.y)*j3});return{d:`M${Yn.x},${Yn.y} L${Bc.x},${Bc.y}`,a:Yn,b:Bc,at:lL,link:re}}let Mt={x:Et.x+it*Ua,y:Et.y+la*Ua},rr=Pc(ne,Mt,w),ua=Pc(Z,Mt,D),oL=Yn=>({x:(1-Yn)**2*rr.x+2*(1-Yn)*Yn*Mt.x+Yn**2*ua.x,y:(1-Yn)**2*rr.y+2*(1-Yn)*Yn*Mt.y+Yn**2*ua.y});return{d:`M${rr.x},${rr.y} Q${Mt.x},${Mt.y} ${ua.x},${ua.y}`,a:rr,b:ua,at:oL,link:re}}),je=`500 ${Kv+.5}px ${getComputedStyle(M).fontFamily}`,Ut=Ee.map(re=>{if(!re.link.label)return{a:re.a,b:re.b,at:re.at,w:0,h:0,badge:!1};let z={width:iX(re.link.label,je)+12,height:20};return{a:re.a,b:re.b,at:re.at,w:z.width,h:z.height,badge:!Qv(z,re.a,re.b,re.at(.5),[])}}),oa=Wv(Ut,ee,{w:fe.width,h:fe.height}),kr=0;p(Ee.map((re,z)=>{let ne=oa[z],Z=ne?.badge?kr++:-1;return{d:re.d,dashed:re.link.dashed,both:re.link.both,label:re.link.label,at:ne??re.at(.5),badge:Z}})),d({w:fe.width,h:fe.height})};if(se(),typeof ResizeObserver>"u")return;let Te=new ResizeObserver(()=>se());return Te.observe(M),()=>Te.disconnect()},[C]);let k=typeof e.title=="string"?e.title:t.relations,P=f.map((M,F)=>({line:M,edge:i[F]})).filter(({line:M})=>M.badge>=0);return(0,ue.jsxs)("figure",{className:"g-rel",role:"group","aria-label":k,"data-compact":y?"true":void 0,onKeyDown:M=>{let F=Zv(M.key,b);F.close&&(M.preventDefault(),g(null),F.focus!==null&&c.current?.querySelectorAll(":scope > .g-rel-node")[F.focus]?.focus())},children:[typeof e.title=="string"?(0,ue.jsx)("p",{className:"g-rel-h",children:(0,ue.jsx)($e,{text:e.title})}):null,(0,ue.jsxs)("div",{className:"g-rel-ring",ref:c,"data-n":o,"data-center":u.centre>=0?"true":void 0,children:[a.map((M,F)=>{let V=u.spots[F];return(0,ue.jsxs)("button",{type:"button",className:"g-rel-node","data-i":F+1,"data-center":F===u.centre?"true":void 0,"aria-expanded":b===F,"aria-controls":`${E}-d`,tabIndex:0,onClick:()=>g(b===F?null:F),style:{"--x":`${V.x}%`,"--y":`${50+V.s*38}%`,"--w":`${V.w}%`},children:[(0,ue.jsx)("span",{className:"g-rel-t",children:x[F]?.[0]??(0,ue.jsx)($e,{text:r[F]})}),M.text?(0,ue.jsx)("span",{className:"g-rel-x",children:x[F]?.[1]??(0,ue.jsx)($e,{text:String(M.text)})}):null,s[F].length?(0,ue.jsx)("span",{className:"g-rel-out",children:s[F].map((H,W)=>(0,ue.jsxs)("span",{children:[W?" \xB7 ":null,H.mark," ",H.to,H.label?` ${H.label}`:""]},W))}):null]},F)}),h.w?(0,ue.jsxs)("svg",{className:"g-rel-svg",width:h.w,height:h.h,viewBox:`0 0 ${h.w} ${h.h}`,"aria-hidden":"true",children:[(0,ue.jsx)("defs",{children:(0,ue.jsx)("marker",{id:`${E}-a`,viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:(0,ue.jsx)("path",{d:"M1,1 L9,5 L1,9 Z"})})}),f.map((M,F)=>(0,ue.jsx)("path",{d:M.d,className:M.dashed?"dash":void 0,markerEnd:`url(#${E}-a)`,markerStart:M.both?`url(#${E}-a)`:void 0},F))]}):null,f.map((M,F)=>M.label?(0,ue.jsx)("span",{className:M.badge>=0?"g-rel-label g-rel-badge":"g-rel-label","aria-hidden":"true",style:{left:`${M.at.x}px`,top:`${M.at.y}px`},children:M.badge>=0?JS(M.badge):M.label},`l${F}`):null)]}),b!==null?(0,ue.jsxs)("div",{className:"g-rel-detail",id:`${E}-d`,"aria-live":"polite",children:[(0,ue.jsx)("span",{className:"g-rel-detail-t",children:(0,ue.jsx)($e,{text:r[b]})}),a[b]?.text?(0,ue.jsx)("span",{className:"g-rel-detail-x",children:(0,ue.jsx)($e,{text:String(a[b].text)})}):null]}):null,P.length?(0,ue.jsx)("ol",{className:"g-rel-legend","aria-label":t.relationsLegend,children:P.map(({line:M,edge:F})=>(0,ue.jsx)("li",{children:Jv(M.badge,F,r,n==="en"?"en":"zh")},M.badge))}):null,typeof e.caption=="string"?(0,ue.jsx)("figcaption",{children:(0,ue.jsx)($e,{text:e.caption})}):null]})}function j7({verdict:e}){return e==="good"?(0,ue.jsx)(D3,{className:"g-ic g-verdict-ic good",size:20,"aria-hidden":"true"}):e==="bad"?(0,ue.jsx)(B3,{className:"g-ic g-verdict-ic bad",size:20,"aria-hidden":"true"}):null}var oX=(0,Mn.createContext)({});function Y7({href:e,icon:t}){let n=F7(e,(0,Mn.useContext)(oX),t);return n.src?(0,ue.jsx)("img",{className:"g-src-fav",src:n.src,alt:"",width:14,height:14,decoding:"async","aria-hidden":"true"}):(0,ue.jsx)("span",{className:"g-src-ic","aria-hidden":"true",children:n.letter})}var q=ie(De(),1),U3="".replace(/\/+$/u,"");function lX(e){return!U3||!e.startsWith("/")||e.startsWith("//")||e.startsWith(`${U3}/`)?e:`${U3}${e}`}function K7(e){try{return new URL(e).hostname.replace(/^www\./u,"")}catch{return""}}function V3({source:e}){let t=(Array.isArray(e)?e:e?[e]:[]).map(n=>{if(typeof n=="string")return{url:n,site:K7(n)};if(n&&typeof n=="object"&&"url"in n){let a=String(n.url??""),r=String(n.site??K7(a)),i=n.icon;return{url:a,site:r,icon:typeof i=="string"?i:void 0}}return null}).filter(n=>!!n?.url);return t.length?(0,q.jsxs)("span",{className:t.length>1?"g-srcs is-multi":"g-srcs",children:[(0,q.jsxs)("a",{className:"g-src ext",href:t[0].url,target:"_blank",rel:"noopener noreferrer",children:[(0,q.jsx)(Y7,{href:t[0].url,icon:t[0].icon}),(0,q.jsx)("span",{children:t[0].site})]}),t.length>1?(0,q.jsxs)("span",{className:"g-src-more",children:["+",t.length-1]}):null]}):null}function z3(e){return Array.isArray(e.items)?e.items:[]}function J7({props:e}){return Array.isArray(e.cards)?(0,q.jsx)("div",{className:"g-entities",children:e.cards.map((t,n)=>(0,q.jsx)(X7,{props:t??{},row:!0},n))}):(0,q.jsx)(X7,{props:e})}function X7({props:e,row:t=!1}){let n=typeof e.url=="string"?e.url:"",a=String(e.title??n),r=typeof e.description=="string"?e.description:typeof e.text=="string"?e.text:"",i=Array.isArray(e.points)?e.points:Array.isArray(e.items)?e.items:[];return(0,q.jsxs)("article",{className:`g-entity${t?" g-entity-row":""}`,children:[typeof e.image=="string"?(0,q.jsx)("div",{className:"g-entity-img",children:(0,q.jsx)("img",{src:lX(e.image),alt:String(e.alt??a)})}):null,(0,q.jsxs)("div",{className:"g-entity-b",children:[(0,q.jsx)("h4",{className:"g-entity-t",children:n?(0,q.jsx)("a",{className:"ext",href:n,target:"_blank",rel:"noopener noreferrer",children:(0,q.jsx)($e,{text:a})}):(0,q.jsx)($e,{text:a})}),typeof e.meta=="string"?(0,q.jsx)("p",{className:"g-entity-m",children:(0,q.jsx)($e,{text:e.meta})}):null,r?(0,q.jsxs)("p",{children:[(0,q.jsx)($e,{text:r})," ",(0,q.jsx)(V3,{source:e.source})]}):null,typeof e.takeaway=="string"?(0,q.jsx)("p",{className:"g-entity-k",children:(0,q.jsx)($e,{text:e.takeaway})}):null]}),i.length?(0,q.jsx)("ol",{className:"g-entity-list",children:i.map((s,o)=>{let l=typeof s=="string"?{title:s}:s;return(0,q.jsxs)("li",{children:[(0,q.jsx)("p",{className:"g-entity-lt",children:(0,q.jsx)($e,{text:String(l.title??"")})}),typeof l.text=="string"?(0,q.jsx)("p",{children:(0,q.jsx)($e,{text:l.text})}):null]},o)})}):null]})}function W7({props:e}){let t=z3(e).length?z3(e):[e],n=t.some(a=>a.caption||a.source||a.text);return(0,q.jsx)("div",{className:`g-stats${n?" g-stats-rich":""}`,children:t.map((a,r)=>(0,q.jsxs)("div",{className:"g-stat",children:[a.label?(0,q.jsx)("div",{className:"g-stat-l",children:(0,q.jsx)($e,{text:String(a.label)})}):null,(0,q.jsxs)("div",{className:"g-stat-n",children:[String(a.value??""),a.unit?(0,q.jsx)("small",{children:String(a.unit)}):null]}),a.caption?(0,q.jsx)("div",{className:"g-stat-c",children:(0,q.jsx)($e,{text:String(a.caption)})}):null,a.text||a.source?(0,q.jsxs)("p",{className:"g-stat-t",children:[a.text?(0,q.jsx)($e,{text:String(a.text)}):null," ",(0,q.jsx)(V3,{source:a.source})]}):null]},r))})}function uX({line:e}){let t=P7(e);return t?(0,q.jsxs)("p",{className:"g-cmp-line",children:[(0,q.jsxs)("span",{className:"g-cmp-h",children:[(0,q.jsx)("span",{className:"g-cmp-t",children:(0,q.jsx)($e,{text:t.title})}),(0,q.jsx)("span",{className:"g-cmp-sep",children:t.separator})]}),(0,q.jsx)($e,{text:t.text})]}):(0,q.jsx)("p",{children:(0,q.jsx)($e,{text:e})})}function Q7(e){if(!e||typeof e!="object")return"";let t=String(e.verdict??"").trim().toLowerCase();return t==="good"||t==="bad"?t:""}function Z7({props:e}){let t=Array.isArray(e.items)?e.items:[];return t.some(n=>Q7(n))?(0,q.jsx)("div",{className:"g-verdicts",role:"group",children:t.map((n,a)=>{let r=n&&typeof n=="object"?n:{text:String(n??"")},i=Q7(r),s=r.text==null?[]:Array.isArray(r.text)?r.text:[r.text];return(0,q.jsxs)("section",{className:`g-verdict${i?` is-${i}`:""}`,children:[(0,q.jsxs)("h4",{children:[(0,q.jsx)(j7,{verdict:i}),(0,q.jsx)($e,{text:String(r.title??"")})]}),s.map((o,l)=>(0,q.jsx)("p",{children:(0,q.jsx)($e,{text:String(o)})},l))]},a)})}):(0,q.jsx)("div",{className:"g-compare",role:"group",children:t.map((n,a)=>{if(typeof n=="string"||typeof n=="number")return(0,q.jsx)("section",{className:"g-cmp",children:(0,q.jsx)(uX,{line:String(n)})},a);if(!n||typeof n!="object")return null;let{title:r,text:i,verdict:s,...o}=n,l=i==null?[]:Array.isArray(i)?i:[i];return(0,q.jsxs)("section",{className:"g-cmp",children:[r?(0,q.jsx)("h4",{children:(0,q.jsx)($e,{text:String(r)})}):null,l.map((u,c)=>(0,q.jsx)("p",{children:(0,q.jsx)($e,{text:String(u)})},c)),Object.keys(o).length?(0,q.jsx)("dl",{children:Object.entries(o).map(([u,c])=>(0,q.jsxs)("span",{children:[(0,q.jsx)("dt",{children:(0,q.jsx)($e,{text:u})}),(0,q.jsx)("dd",{children:(0,q.jsx)($e,{text:String(c)})})]},u))}):null]},a)})})}function eL({props:e}){return(0,q.jsxs)("figure",{className:"g-timeline",children:[typeof e.title=="string"?(0,q.jsx)("p",{className:"g-timeline-h",children:(0,q.jsx)($e,{text:e.title})}):null,(0,q.jsx)("ol",{children:z3(e).map((t,n)=>(0,q.jsxs)("li",{children:[t.date?(0,q.jsx)("p",{className:"g-tl-d",children:(0,q.jsx)($e,{text:String(t.date)})}):null,(0,q.jsx)("p",{className:"g-tl-t",children:(0,q.jsx)($e,{text:String(t.title??"")})}),t.text?(0,q.jsxs)("p",{className:"g-tl-x",children:[(0,q.jsx)($e,{text:String(t.text)})," ",(0,q.jsx)(V3,{source:t.source})]}):null]},n))})]})}function cX(e){if(Array.isArray(e.data)&&e.data.every(r=>r&&typeof r=="object"&&"x"in r))return e.data.map(r=>({x:String(r.x),y:Number(r.y)||0,label:String(r.label??`${r.y}${e.unit?` ${e.unit}`:""}`)}));let t=Array.isArray(e.series)?e.series[0]:null,n=Array.isArray(t?.data)?t.data:Array.isArray(e.data)?e.data:[],a=Array.isArray(e.x)?e.x.map(String):null;return n.map((r,i)=>({x:a?.[i]??String(i+1),y:Number(r)||0,label:`${r}${e.unit?` ${e.unit}`:""}`}))}function tL({props:e}){let t=cX(e),n=Math.max(...t.map(i=>i.y),1),a=Ts(),r=String(e.title??a.chart);return(0,q.jsxs)("figure",{className:"g-chart",role:"group","aria-label":r,children:[e.title?(0,q.jsx)("p",{className:"g-chart-t",children:r}):null,(0,q.jsx)("div",{className:"g-bars","aria-hidden":"true",children:t.map(i=>(0,q.jsxs)("div",{className:"g-bar",children:[(0,q.jsx)("span",{className:"g-bar-k",children:i.x}),(0,q.jsx)("span",{className:"g-bar-track",children:(0,q.jsx)("span",{className:"g-bar-fill",style:{width:`${i.y/n*100}%`}})}),(0,q.jsx)("span",{className:"g-bar-v",children:i.label})]},i.x))}),(0,q.jsxs)("details",{className:"g-chart-data",children:[(0,q.jsx)("summary",{children:a.dataTable}),(0,q.jsxs)("table",{children:[(0,q.jsx)("thead",{children:(0,q.jsxs)("tr",{children:[(0,q.jsx)("th",{children:String(e.xLabel??(typeof e.x=="string"?e.x:a.item))}),(0,q.jsx)("th",{children:String(e.yLabel??a.value)})]})}),(0,q.jsx)("tbody",{children:t.map(i=>(0,q.jsxs)("tr",{children:[(0,q.jsx)("td",{children:i.x}),(0,q.jsx)("td",{children:i.label})]},i.x))})]})]}),typeof e.caption=="string"?(0,q.jsx)("figcaption",{children:(0,q.jsx)($e,{text:e.caption})}):null]})}function nL({block:e,renderScene:t}){let n=Ts(),a=Rc(),{payload:r,check:i}=e.payload?{payload:e.payload,check:{header:{id:e.payload.id,caption:e.payload.caption},diagnostics:[]}}:Ll(e.uiSource??""),s={id:r?.id??e.id,caption:r?.caption??e.props.caption};return r?(0,q.jsx)(Rl,{lang:a,children:(0,q.jsx)(H7,{label:String(s.caption||n.interactive),children:(0,q.jsx)("div",{className:"g-play",children:(0,q.jsx)(n7,{payload:r,host:t?{renderScene:t}:void 0})})})}):(0,q.jsx)(Rl,{lang:a,children:(0,q.jsx)(ch,{id:String(s.id),caption:String(s.caption),diagnostics:i.diagnostics??[]})})}function $3({text:e}){let t=Ts();return(0,q.jsxs)("aside",{className:"g-idea",children:[(0,q.jsx)("p",{className:"g-example-label",children:t.ideaLabel}),(0,q.jsx)("p",{children:e})]})}function W1({name:e}){let t=Ts();return(0,q.jsx)("p",{className:"g-embed-note",children:t.unknownBlock(e)})}var Es=ie(De(),1),pX="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z",fX="M14 3v5h5",hX={doc:"M9 13h6M9 17h4",code:"m10 12-2 2 2 2M14 12l2 2-2 2",archive:"M11 6h1M11 9h1M11 12h1M10.5 15h2v3h-2z",file:""},mX={download:["M12 4v11M7.5 10.5 12 15l4.5-4.5M5 19h14"],eye:["M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z"],external:["M14 4h6v6M20 4l-9 9M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4"],close:["M6 6l12 12M18 6 6 18"]},aL={className:"gf-i",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1};function Z1({kind:e}){let t=hX[e??"file"]??"";return(0,Es.jsxs)("svg",{...aL,children:[(0,Es.jsx)("path",{d:pX}),(0,Es.jsx)("path",{d:fX}),t?(0,Es.jsx)("path",{d:t}):null]})}function Is({name:e}){return(0,Es.jsxs)("svg",{...aL,children:[mX[e].map(t=>(0,Es.jsx)("path",{d:t},t)),e==="eye"?(0,Es.jsx)("circle",{cx:"12",cy:"12",r:"2.8"}):null]})}var sa=ie(Gt(),1),rL=ie(g2(),1);var We=ie(De(),1);function iL({file:e,compact:t,lang:n}){let a=Pl(n),[r,i]=(0,sa.useState)(!1),[s,o]=(0,sa.useState)({state:"idle"}),l=(0,sa.useRef)(null),u=(0,sa.useRef)(null),c=(0,sa.useRef)(null),f=(0,sa.useRef)(null),p=(0,sa.useRef)(null),h=(0,sa.useId)(),d=(0,sa.useCallback)(()=>{u.current?.abort(),i(!1),l.current?.focus()},[]),y=(0,sa.useCallback)(()=>{if(!e.src)return;u.current?.abort();let A=new AbortController;u.current=A,o({state:"loading"}),fetch(e.src,{signal:A.signal}).then(E=>{if(!E.ok)throw new Error(String(E.status));return E.text()}).then(E=>{if(u.current!==A)return;let C=Vv(E);o(C?{state:"ready",html:C}:{state:"error"})}).catch(()=>{u.current===A&&o(A.signal.aborted?{state:"idle"}:{state:"error"})})},[e.src]);(0,sa.useEffect)(()=>{if(!r)return;let A=document.documentElement;A.classList.add("ux-lock"),f.current?.focus();let E=C=>{if(C.key==="Escape"){C.preventDefault(),d();return}if(C.key!=="Tab"||!c.current)return;let k=[...c.current.querySelectorAll("a[href], button, iframe, [tabindex]:not([tabindex='-1'])")].filter(F=>!F.hasAttribute("data-gf-sentinel"));if(!k.length)return;let P=k[0],M=k[k.length-1];C.shiftKey&&document.activeElement===P?(C.preventDefault(),M.focus()):!C.shiftKey&&document.activeElement===M&&(C.preventDefault(),P.focus())};return document.addEventListener("keydown",E),()=>{A.classList.remove("ux-lock"),document.removeEventListener("keydown",E)}},[r,d]);let S=()=>{c.current?.querySelector(".gf-dh a[href], .gf-dh button")?.focus()},b=A=>{let E=A.relatedTarget;E&&c.current?.querySelector(".gf-dh")?.contains(E)?p.current?.focus():f.current?.focus()},g=A=>{A.button!==0||A.metaKey||A.ctrlKey||A.shiftKey||A.altKey||(A.preventDefault(),i(!0),e.preview==="md"&&s.state!=="ready"&&s.state!=="loading"&&y())},x=zv(e,n??wo),I=r?(0,rL.createPortal)((0,We.jsxs)("div",{className:"gf-layer",children:[(0,We.jsx)("div",{className:"gf-scrim",onClick:d,"aria-hidden":"true"}),(0,We.jsxs)("aside",{ref:c,className:"gf-drawer",role:"dialog","aria-modal":"true","aria-labelledby":h,"data-preview":e.preview,children:[(0,We.jsxs)("div",{className:"gf-dh",children:[(0,We.jsx)("span",{className:"gf-ico","aria-hidden":"true",children:(0,We.jsx)(Z1,{kind:e.icon})}),(0,We.jsxs)("div",{className:"gf-main",children:[(0,We.jsx)("div",{className:"gf-name",id:h,title:e.title,children:e.title}),e.meta?(0,We.jsx)("div",{className:"gf-meta",children:e.meta}):null]}),(0,We.jsxs)("div",{className:"gf-act",children:[(0,We.jsx)("a",{className:"gf-btn icon",href:e.url,download:e.name,"aria-label":a.downloadNamed(e.name),title:a.download,children:(0,We.jsx)(Is,{name:"download"})}),(0,We.jsx)("a",{className:"gf-btn icon",href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":a.openNamedInTab(e.name),title:a.openInTab,children:(0,We.jsx)(Is,{name:"external"})}),(0,We.jsx)("button",{ref:f,type:"button",className:"gf-btn icon",onClick:d,"aria-label":a.closePreview,title:Pl(n).close.trim(),children:(0,We.jsx)(Is,{name:"close"})})]})]}),x?(0,We.jsxs)("div",{className:"gf-db gf-db-frame",children:[(0,We.jsx)("span",{tabIndex:0,className:"gf-sentinel","data-gf-sentinel":"before",onFocus:b}),(0,We.jsx)("iframe",{ref:p,className:"gf-frame",...x}),(0,We.jsx)("span",{tabIndex:0,className:"gf-sentinel","data-gf-sentinel":"after",onFocus:S})]}):(0,We.jsx)("div",{className:"gf-db","aria-busy":s.state==="loading"?"true":void 0,children:s.state==="ready"?(0,We.jsx)("div",{className:"markdown-body prose gf-doc",dangerouslySetInnerHTML:{__html:s.html}}):s.state==="error"?(0,We.jsxs)("div",{className:"gf-state",role:"alert",children:[(0,We.jsx)("p",{children:a.previewFailed}),(0,We.jsxs)("div",{className:"gf-state-act",children:[(0,We.jsx)("button",{type:"button",className:"gf-btn",onClick:()=>y(),children:a.retry}),(0,We.jsx)("a",{className:"gf-btn",href:e.url,download:e.name,children:a.downloadFile})]})]}):(0,We.jsx)("div",{className:"gf-state",role:"status",children:a.previewLoading})}),(0,We.jsx)("p",{className:"gf-hint",children:a.escClose})]})]}),document.body):null;return(0,We.jsxs)(We.Fragment,{children:[(0,We.jsxs)("a",{ref:l,href:e.preview==="md"&&e.src?e.src:e.url,target:"_blank",rel:"noopener noreferrer",className:"gf-btn gf-preview","data-compact":t?"true":void 0,onClick:g,"aria-haspopup":"dialog","aria-label":a.previewNamed(e.name),children:[(0,We.jsx)(Is,{name:"eye"}),(0,We.jsx)("span",{className:"gf-lb",children:a.preview})]}),I]})}var yn=ie(De(),1),dX=new Set(["md","html","pdf"]);function sL({props:e,lang:t}){let n=Pl(t),a=KS(e,t??wo),r=a.files.filter(s=>zf(s.url));if(!r.length)return null;let i=a.layout==="group";return(0,yn.jsxs)("div",{className:i?"gf group":"gf single","data-garden-file":"",children:[i&&a.title?(0,yn.jsx)("div",{className:"gf-title",children:a.title}):null,r.map((s,o)=>{let l=zf(s.url),u=s.name||s.title||n.file,c=s.title||u,f=jS(s),p=s.preview==="md"?zf(s.previewSrc):"",h=!s.remote&&dX.has(s.preview??"")&&(s.preview!=="md"||p)?s.preview:null,d=h?{title:c,name:u,meta:f,icon:s.icon??"file",url:l,preview:h,...p?{src:p}:{}}:null;return(0,yn.jsxs)("div",{className:"gf-row","data-remote":s.remote?"true":void 0,children:[(0,yn.jsx)("span",{className:"gf-ico","aria-hidden":"true",children:(0,yn.jsx)(Z1,{kind:s.icon})}),(0,yn.jsxs)("div",{className:"gf-main",children:[(0,yn.jsx)("div",{className:"gf-name",title:c,children:c}),s.note?(0,yn.jsx)("div",{className:"gf-desc",children:s.note}):null,f?(0,yn.jsx)("div",{className:"gf-meta",children:f}):null]}),(0,yn.jsxs)("div",{className:"gf-act",children:[d?(0,yn.jsx)(iL,{file:d,compact:i,lang:t}):null,s.remote?(0,yn.jsx)("a",{className:"gf-btn icon",href:l,target:"_blank",rel:"noopener noreferrer","aria-label":n.openNamedInTab(u),title:n.openInTab,children:(0,yn.jsx)(Is,{name:"external"})}):null,i?(0,yn.jsx)("a",{className:"gf-btn icon",href:l,download:s.remote?void 0:u,"aria-label":n.downloadNamed(u),title:n.download,children:(0,yn.jsx)(Is,{name:"download"})}):(0,yn.jsxs)("a",{className:"gf-btn pri",href:l,download:s.remote?void 0:u,"aria-label":n.downloadNamed(u),children:[(0,yn.jsx)(Is,{name:"download"}),(0,yn.jsx)("span",{className:"gf-lb",children:n.download})]})]})]},`${l}-${o}`)})]})}var xn=ie(De(),1),gX={"garden-block":e=>(0,xn.jsx)(e2,{dataPayload:e.dataPayload??e["data-payload"]})};function e2({dataPayload:e}){let t=Rc(),n=O7(e);if(!n)return null;if(!n.name)return(0,xn.jsx)($3,{text:String(n.idea||n.children||"")});if(n.error)return(0,xn.jsx)(W1,{name:String(n.name)});let a=n.props??{};switch(n.name){case"card":return(0,xn.jsx)(J7,{props:a});case"stat":return(0,xn.jsx)(W7,{props:a});case"compare":return(0,xn.jsx)(Z7,{props:a});case"timeline":return(0,xn.jsx)(eL,{props:a});case"chart":return(0,xn.jsx)(tL,{props:a});case"compose":return n.error?.code==="compose-uncompiled"?(0,xn.jsx)($3,{text:String(n.idea||n.children||"")}):n.error?(0,xn.jsx)(W1,{name:"compose"}):n.mode==="play"?(0,xn.jsx)(nL,{renderScene:r=>{let i=ya(r);return i.ok?(0,xn.jsx)(e2,{dataPayload:encodeURIComponent(JSON.stringify({name:"compose",props:{...i.doc,frame:"none"}}))}):null},block:{id:n.id,props:a,payload:n.payload?J4(JSON.stringify(n.payload)):null,children:String(n.children??""),uiSource:typeof n.uiSource=="string"?n.uiSource:void 0}}):(0,xn.jsx)("div",{className:"g-compose-host",children:(0,xn.jsx)(_3,{rehypePlugins:[oc],components:gX,children:tr(a)})});case"file":return(0,xn.jsx)(sL,{props:a,lang:t});case"relations":return(0,xn.jsx)(G7,{props:a});case"list":return(0,xn.jsx)($7,{props:a});case"choice":return(0,xn.jsx)(q7,{props:a});default:return(0,xn.jsx)(W1,{name:String(n.name)})}}var q3=ie(De(),1);function G3(e,t){return(0,q3.jsx)(p7,{lang:t,children:(0,q3.jsx)(e2,{dataPayload:encodeURIComponent(JSON.stringify(e))})})}function MSe(e,t,n={}){let a=n,r=s=>({...s,renderBlock:G3}),i=l7(e,t,r(a));return{update(s,o=a){a=o,i.update(s,r(a))},destroy:i.destroy}}function NSe(e,t={}){return u7(e,{...t,renderBlock:G3})}export{MSe as render,NSe as renderCatalog};
533
+ `).map(async h=>[h,await p(h)])).then(h=>{if(!f)return;let d={};for(let[y,S]of h)typeof S=="string"&&(d[y]=S);s({key:r,data:d})}),()=>{f=!1}},[r,t.readFile]);let o=!!(r&&t.readFile&&i.key!==r),l=L1("garden compose",n),u=t.theme??"light";if(o)return(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)("p",{className:"garden-ui-preview-note",children:"\u6B63\u5728\u8BFB\u53D6\u6570\u636E\u6587\u4EF6\u2026"})});if(!l||l.error)return l?.error?.code==="compose-uncompiled"?(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)(a7,{text:n,onCopyPrompt:t.onCopyPrompt})}):(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)(ch,{caption:"Compose",diagnostics:[{code:l?.error?.code??"compose-invalid",message:l?.error?.message??"\u65E0\u6548\u7684 Compose",line:t.fenceLine??1,severity:"error"}]})});let c={...l};if(l.mode==="play"){let{payload:f,check:p}=Ll(l.uiSource??"",{readData:h=>i.data[h],skipData:!t.readFile,resolveAsset:t.resolveAsset??null,markdownPath:null});if(!f)return(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)(ch,{caption:"Compose",diagnostics:p.diagnostics})});if(t.mode==="static")return(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)("div",{className:"markdown-body prose",dangerouslySetInnerHTML:{__html:Nc(f,"html")}})});c={...c,payload:f}}return(0,vn.jsx)("div",{className:"garden-ui-preview","data-theme":u,children:(0,vn.jsx)("div",{className:"markdown-body prose",children:t.renderBlock?t.renderBlock(c,t.lang):(0,vn.jsx)("div",{dangerouslySetInnerHTML:{__html:c.payload?Nc(c.payload,"html"):tr(l.props)}})})})}function o7(e,t){let n=(0,s7.createRoot)(e);return t(n),n}function l7(e,t,n={}){let a={source:t,options:n},r=n.isolateEvents?KY(e):null,i=o7(e,s=>s.render((0,vn.jsx)(Rl,{lang:a.options.lang??"zh",children:(0,vn.jsx)(i7,{source:a.source,options:a.options})})));return{update(s,o=a.options){a={source:s,options:o},i.render((0,vn.jsx)(Rl,{lang:a.options.lang??"zh",children:(0,vn.jsx)(i7,{source:a.source,options:a.options})}))},destroy(){r?.(),i.unmount()}}}function u7(e,t={}){t.theme&&e.setAttribute("data-theme",t.theme);let n=o7(e,a=>a.render((0,vn.jsx)(LN,{recipes:t.recipes??[],onStart:t.onStart,renderBlock:t.renderBlock})));return{destroy:()=>n.unmount()}}var ph=ie(Gt(),1);var c7={name:"Garden Compose",locale:"zh_CN"};var C3=c7;var Eye={absolute:C3.name};var JY=e=>/^en/i.test(e??"")?"en":"zh",wo=JY(C3.locale);var WY={homeAbout:"\u5173\u4E8E\u6211",homeRss:"RSS \u8BA2\u9605",homeLatest:"\u6700\u65B0\u6587\u7AE0",homeRecent:"\u6700\u8FD1\u66F4\u65B0",homeAllPosts:e=>`\u5168\u90E8 ${e} \u7BC7`,homePinned:"\u7F6E\u9876",homeColumns:"\u4E13\u680F",homeAllColumns:"\u5168\u90E8\u4E13\u680F",columnCount:(e,t)=>`${e} \u7BC7\uFF0C${t}`,columnDefault:"\u6301\u7EED\u66F4\u65B0",columnOngoing:"\u8FDE\u8F7D\u4E2D",columnCompleted:"\u5DF2\u5B8C\u7ED3",columnReadingList:(e,t)=>`\u9605\u8BFB\u6E05\u5355\uFF0C${e} \u7BC7\uFF0C${t}`,columnSideCount:(e,t)=>`${e} \u7BC7 \xB7 ${t}`,columnCoverAlt:e=>`${e} \u5C01\u9762`,columnFallbackDesc:"\u6309\u987A\u5E8F\u7EC4\u7EC7\u7684\u4E13\u9898\u6587\u7AE0\u7CFB\u5217\u3002",columnNewestFirst:e=>`${e}\uFF0C\u4ECE\u65B0\u5230\u65E7`,toc:"\u672C\u7BC7\u76EE\u5F55",tocShort:"\u76EE\u5F55",tocDisplay:"\u76EE\u5F55\u5C55\u5F00\u65B9\u5F0F",tocFollow:"\u8DDF\u968F\u9605\u8BFB",tocExpandAll:"\u5168\u90E8\u5C55\u5F00",tocManual:"\u624B\u52A8\u8C03\u6574",tocPage:"\u672C\u9875\u76EE\u5F55",open:"\u6253\u5F00",close:"\u5173\u95ED",currentSection:"\uFF0C\u5F53\u524D\u7AE0\u8282\uFF1A",prev:"\u4E0A\u4E00\u7BC7",next:"\u4E0B\u4E00\u7BC7",pagerLabel:"\u4E0A\u4E00\u7BC7\u548C\u4E0B\u4E00\u7BC7",columnPagerLabel:"\u4E13\u680F\u91CC\u7684\u4E0A\u4E00\u7BC7\u548C\u4E0B\u4E00\u7BC7",comments:"\u8BC4\u8BBA",webmentions:"\u6765\u81EA\u5F00\u653E\u7F51\u7EDC\u7684\u56DE\u5E94",webmentionsLead:"\u5F15\u7528\u3001\u559C\u6B22\u3001\u8F6C\u53D1\u548C\u7AD9\u5916\u56DE\u590D\u4F1A\u901A\u8FC7 Webmention \u56DE\u5230\u8FD9\u91CC\u3002",notFoundTitle:"\u627E\u4E0D\u5230\u8FD9\u4E00\u9875",notFoundDeck:"\u5730\u5740\u53EF\u80FD\u5199\u9519\u4E86\uFF0C\u6216\u8005\u8FD9\u7BC7\u5DF2\u7ECF\u4E0D\u5728\u4E86\u3002",backHome:"\u8FD4\u56DE\u9996\u9875",builtWith:["\u57FA\u4E8E "," \u6784\u5EFA"],search:"\u641C\u7D22",searchArticles:"\u641C\u7D22\u6587\u7AE0",toLight:"\u5207\u6362\u5230\u6D45\u8272\u6A21\u5F0F",toDark:"\u5207\u6362\u5230\u6DF1\u8272\u6A21\u5F0F",wordCount:e=>`\u7EA6 ${e.toLocaleString("en-US")} \u5B57`,dateLocale:"zh-CN",handbook:"Garden \u4F7F\u7528\u8BF4\u660E",overview:"\u603B\u89C8",langSwitch:"\u5207\u6362\u8BED\u8A00",skipToContent:"\u8DF3\u5230\u6B63\u6587",copyCode:"\u590D\u5236\u4EE3\u7801",copied:"\u5DF2\u590D\u5236",copiedLive:"\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",diffAdded:"\uFF08\u65B0\u589E\uFF09",diffRemoved:"\uFF08\u5220\u9664\uFF09",codeTabs:["\u4EE3\u7801","\u5BF9\u6BD4\u4E0A\u4E00\u7248"],codeTabsLabel:"\u4EE3\u7801",demo:"\u6F14\u793A",fullscreen:"\u5168\u5C4F",exitFullscreen:"\u9000\u51FA\u5168\u5C4F",chart:"\u56FE\u8868",relations:"\u5173\u7CFB\u56FE",relationsLegend:"\u8FDE\u7EBF\u8BF4\u660E",dataTable:"\u67E5\u770B\u6570\u636E\u8868",item:"\u9879\u76EE",value:"\u6570\u503C",pickAnswer:"\u5148\u9009\u4E00\u4E2A\u7B54\u6848\u3002",correct:"\u2713 \u7B54\u5BF9\u4E86",wrong:"\u2717 \u518D\u60F3\u60F3",bytes:"\u5B57\u8282",htmlAt:e=>`HTML \u5728 ${e}\u3002\u53D1\u5E03\u65F6\u7531\u540C\u540D\u76EE\u5F55\u8BFB\u5165\u3002`,interactive:"\u4EA4\u4E92",ideaLabel:"\u60F3\u6CD5 \xB7 \u53D1\u5E03\u524D\u7F16\u8BD1",unknownBlock:e=>`\u672A\u77E5 Garden \u5757\uFF1A${e}`,file:"\u6587\u4EF6",openInTab:"\u5728\u65B0\u6807\u7B7E\u9875\u6253\u5F00",openNamedInTab:e=>`\u5728\u65B0\u6807\u7B7E\u9875\u6253\u5F00 ${e}`,download:"\u4E0B\u8F7D",downloadNamed:e=>`\u4E0B\u8F7D ${e}`,downloadFile:"\u4E0B\u8F7D\u6587\u4EF6",closePreview:"\u5173\u95ED\u9884\u89C8",previewFailed:"\u9884\u89C8\u6CA1\u80FD\u8F7D\u5165\u3002",retry:"\u91CD\u8BD5",previewLoading:"\u6B63\u5728\u8F7D\u5165\u9884\u89C8\u2026",escClose:"Esc \u5173\u95ED",preview:"\u9884\u89C8",previewNamed:e=>`\u9884\u89C8 ${e}`,viewImage:"\u67E5\u770B\u539F\u56FE",zoomImage:e=>`\u653E\u5927\u67E5\u770B\uFF1A${e}`,closeImage:"\u5173\u95ED\u56FE\u7247\u9884\u89C8",tableScroll:"\u8868\u683C\uFF0C\u53EF\u6A2A\u5411\u6EDA\u52A8",tocToggle:(e,t)=>`${e?"\u5C55\u5F00":"\u6536\u8D77"}\u300C${t}\u300D\u7684\u5B50\u76EE\u5F55`,siteNav:"\u7AD9\u70B9\u5BFC\u822A",siteNavMobile:"\u7AD9\u70B9\u5BFC\u822A\uFF08\u79FB\u52A8\u7AEF\uFF09",openMenu:"\u6253\u5F00\u83DC\u5355",closeMenu:"\u5173\u95ED\u83DC\u5355",darkMode:"\u6DF1\u8272\u6A21\u5F0F",searchTitle:"\u641C\u7D22\u7AD9\u5185\u5185\u5BB9",searchPlaceholder:"\u641C\u7D22\u6807\u9898\u3001\u4E3B\u9898\u6216\u6B63\u6587\u2026",searchInput:"\u6A21\u7CCA\u641C\u7D22",closeSearch:"\u5173\u95ED\u641C\u7D22",searchResults:"\u641C\u7D22\u7ED3\u679C",resultCount:e=>`${e} \u7BC7\u76F8\u5173\u6587\u7AE0`,recent:"\u6700\u8FD1\u5185\u5BB9",searchFailed:"\u641C\u7D22\u6682\u65F6\u6253\u4E0D\u5F00\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",loading:"\u6B63\u5728\u8F7D\u5165\u2026",fuzzy:"\u652F\u6301\u6A21\u7CCA\u5339\u914D",escToClose:"\u5173\u95ED",noResults:e=>e?`\u6CA1\u6709\u627E\u5230\u548C\u300C${e}\u300D\u76F8\u5173\u7684\u6587\u7AE0`:"\u8FD8\u6CA1\u6709\u53EF\u4EE5\u641C\u7D22\u7684\u5185\u5BB9",navLabels:{"/blog/":"\u6587\u7AE0","/columns/":"\u4E13\u680F","/tags/":"\u6807\u7B7E","/about/":"\u5173\u4E8E"},homeLatestBadge:"\u6700\u65B0\u6587\u7AE0",homeRecentHeading:"\u6700\u8FD1\u66F4\u65B0",homeAllPostsCount:e=>`\u5168\u90E8 ${e} \u7BC7`,homePinnedHeading:"\u7F6E\u9876",homeColumnsHeading:"\u4E13\u680F",homeColumnCountStatus:(e,t)=>`${e} \u7BC7\uFF0C${t}`,columnDefaultStatus:"\u6301\u7EED\u66F4\u65B0",blogEyebrow:"BLOG / \u6587\u7AE0",blogHeading:"\u6587\u7AE0",blogDeck:e=>`\u9636\u6BB5\u6027\u7684\u5B8C\u6574\u6C89\u6DC0\uFF0C\u5173\u4E8E\u5DE5\u7A0B\u3001\u67B6\u6784\u4E0E\u6280\u672F\u601D\u8003\u3002\u5171 ${e} \u7BC7\uFF0C\u6309\u5E74\u4EFD\u5F52\u6863\u3002`,unknownYear:"\u672A\u77E5",tagFilterLabel:"\u6309\u6807\u7B7E\u7B5B\u9009",tagCollapse:"\u6536\u8D77",tagExpandAll:e=>`\u5C55\u5F00\u5168\u90E8 ${e} \u4E2A\u6807\u7B7E`,tagClear:"\u6E05\u9664",densityLabel:"\u5217\u8868\u5BC6\u5EA6",densityDetailed:"\u6458\u8981",densityCompact:"\u7D27\u51D1",yearPostCount:e=>`${e} \u7BC7`,pinnedBadge:"\u7F6E\u9876",tagEmptyMatch:"\u6CA1\u6709\u540C\u65F6\u5E26\u8FD9\u4E9B\u6807\u7B7E\u7684\u6587\u7AE0\u3002",tagDropLast:e=>`\u53BB\u6389\u300C${e}\u300D`,browseAllPosts:"\u770B\u5168\u90E8\u6587\u7AE0",railJumpByYear:"\u6309\u5E74\u4EFD\u8DF3\u8F6C",railByYear:"\u6309\u5E74\u4EFD",railColumns:"\u4E13\u680F",permalinkLabel:e=>`${e} \u6C38\u4E45\u94FE\u63A5`,updatedOn:e=>`\u66F4\u65B0\u4E8E ${e}`,originalLink:"\u539F\u6587 \u2197",coverLabel:e=>`${e} \u5C01\u9762`,referencesHeading:"\u53C2\u8003",articleTagsLabel:"\u6807\u7B7E",allColumnsBack:"\u6240\u6709\u4E13\u680F",seriesEyebrow:"\u4E3B\u9898\u4E13\u680F",seriesCountStatus:(e,t)=>`${e} \u7BC7 \xB7 ${t}`,columnsEyebrow:"COLUMNS / \u4E13\u680F",columnsFallbackTitle:"\u4E13\u680F",columnsMeta:(e,t)=>`\u9605\u8BFB\u6E05\u5355\uFF0C${e} \u7BC7\uFF0C${t}`,columnsFallbackDesc:"\u6309\u987A\u5E8F\u7EC4\u7EC7\u7684\u4E13\u9898\u6587\u7AE0\u7CFB\u5217\u3002",columnsOrderLabel:e=>`${e}\uFF0C\u4ECE\u65B0\u5230\u65E7`,tagsTitle:"\u6807\u7B7E",tagsDescription:"\u5168\u90E8\u6807\u7B7E\u3002",tagsDeck:e=>`${e} \u4E2A\u6807\u7B7E\uFF0C\u6309\u6587\u7AE0\u6570\u6392\u5E8F\u3002\u70B9\u4E00\u4E2A\u6807\u7B7E\uFF0C\u67E5\u770B\u5E26\u8FD9\u4E2A\u6807\u7B7E\u7684\u6587\u7AE0\u3002`,tagsIndexLabel:"\u5168\u90E8\u6807\u7B7E",tagsEmpty:"\u8FD8\u6CA1\u6709\u6807\u7B7E\u3002",aboutEyebrow:"ABOUT / \u5173\u4E8E",aboutFallbackHeading:"\u5173\u4E8E",aboutFallbackParagraphs:["\u4E00\u540D\u5DE5\u7A0B\u5E08\u3002\u5E73\u65F6\u5199\u4EE3\u7801\uFF0C\u4E5F\u628A\u60F3\u6E05\u695A\u7684\u95EE\u9898\u8BB0\u4E0B\u6765\u3002","\u8FD9\u91CC\u653E\u6587\u7AE0\u548C\u4E13\u680F\u3002"],aboutFocusHeading:"\u73B0\u5728\u5173\u6CE8",aboutFallbackFocus:["\u8F6F\u4EF6","\u7B14\u8BB0","\u65E5\u5E38"],aboutFallbackCta:"\u6D4F\u89C8\u535A\u6587",githubProfileAria:"GitHub \u8D44\u6599",githubAvatarAlt:e=>`${e} \u7684 GitHub \u5934\u50CF`,githubOverviewPrefix:"GitHub \u516C\u5F00\u8D44\u6599",githubSyncSynced:"\u672C\u6B21\u8BBF\u95EE\u5DF2\u540C\u6B65",githubSyncSnapshot:"\u6682\u7528\u53D1\u5E03\u65F6\u5FEB\u7167",githubSyncSyncing:"\u6B63\u5728\u540C\u6B65\u5F53\u524D\u8D44\u6599",githubViewProfile:"\u67E5\u770B GitHub",githubMetricRepos:"\u516C\u5F00\u4ED3\u5E93",githubMetricCommits:"\u8FD1 30 \u5929 commits",githubPinnedEyebrow:"PINNED / \u7F6E\u9876\u4ED3\u5E93",githubPinnedHeading:"\u6B63\u5728\u505A\u7684\u9879\u76EE",githubPinnedFallbackDesc:"\u67E5\u770B\u8FD9\u4E2A\u516C\u5F00\u4ED3\u5E93\u7684\u4EE3\u7801\u4E0E\u6700\u8FD1\u66F4\u65B0\u3002",githubPinnedEmpty:"\u914D\u7F6E GitHub Token \u6216 author.githubPinned \u540E\uFF0C\u8FD9\u91CC\u4F1A\u5C55\u793A\u7F6E\u9876\u4ED3\u5E93\u3002",githubContribEyebrow:"CONTRIBUTIONS / \u8D21\u732E",githubContribHeading:"\u8FC7\u53BB\u4E00\u5E74\u7684\u516C\u5F00\u8D21\u732E",githubContribCount:e=>`${e} \u6B21\u8D21\u732E`,githubContribNeedToken:"\u9700\u8981 GitHub Token",githubContribAria:e=>`\u8FC7\u53BB\u4E00\u5E74 ${e} \u6B21\u516C\u5F00\u8D21\u732E`,githubContribDayTitle:(e,t)=>`${e} \xB7 ${t} \u6B21\u8D21\u732E`,githubContribDayAria:(e,t)=>`${e}\uFF0C${t} \u6B21\u8D21\u732E`,githubContribEmpty:"\u6B63\u5F0F\u53D1\u5E03\u65F6\u4F1A\u4F7F\u7528\u5DE5\u4F5C\u6D41\u7684\u53EA\u8BFB\u4EE4\u724C\u751F\u6210\u8D21\u732E\u70ED\u70B9\u56FE\u3002",githubActivityEyebrow:"CONTRIBUTION ACTIVITY / \u6700\u8FD1\u6D3B\u52A8",githubActivityHeading:"\u6700\u8FD1\u5728 GitHub \u4E0A\u505A\u4E86\u4EC0\u4E48",githubActivityEmpty:"GitHub \u6682\u65F6\u6CA1\u6709\u8FD4\u56DE\u6700\u8FD1\u7684\u516C\u5F00\u8D21\u732E\u6D3B\u52A8\u3002",githubEventPush:"\u63A8\u9001\u4E86\u4EE3\u7801",githubEventPrClosed:"\u5B8C\u6210\u4E86 Pull Request",githubEventPrOpen:"\u63D0\u4EA4\u4E86 Pull Request",githubEventIssueClosed:"\u5173\u95ED\u4E86 Issue",githubEventIssueOpen:"\u53C2\u4E0E\u4E86 Issue",githubEventCreateRepo:"\u521B\u5EFA\u4E86\u4ED3\u5E93",githubEventCreateTag:"\u521B\u5EFA\u4E86\u6807\u7B7E",githubEventCreateBranch:"\u521B\u5EFA\u4E86\u5206\u652F",githubEventRelease:"\u53D1\u5E03\u4E86\u65B0\u7248\u672C",commentsSummaryReady:"\u8BC4\u8BBA\u7531 GitHub Discussions \u4FDD\u5B58\u548C\u7BA1\u7406\u3002",commentsSummaryUnconfigured:"\u8BC4\u8BBA\u8FD8\u6CA1\u5F00\u653E\u3002\u914D\u597D\u4E0B\u9762\u56DB\u9879\u540E\uFF0C\u8FD9\u91CC\u624D\u4F1A\u51FA\u73B0\u8BC4\u8BBA\u6846\u3002",commentsGiscusGuideUrl:"https://giscus.app/zh-CN",commentsSetupBefore:"\u6253\u5F00",commentsSetupMiddle:"\uFF0C\u5B89\u88C5\u5230\u4E00\u4E2A\u5DF2\u5F00\u542F Discussions \u7684\u516C\u5F00\u4ED3\u5E93\uFF0C\u628A\u4ED3\u5E93\u3001\u4ED3\u5E93 ID\u3001\u5206\u7C7B\u3001\u5206\u7C7B ID \u5199\u5165 ",commentsSetupAnd:" \u548C GitHub Actions Variables\uFF1A",commentsSetupJoin:"\u3001",commentsSetupEnd:"\u3002",giscusLang:"zh-CN",webmentionIdleNote:"\u63A5\u6536\u4E0E\u5C55\u793A\u4EE3\u7801\u5DF2\u7ECF\u5C31\u7EEA\uFF0C\u6CE8\u518C\u6B63\u5F0F\u57DF\u540D\u540E\u5373\u53EF\u5F00\u59CB\u6536\u96C6\u56DE\u5E94\u3002",webmentionLoading:"\u6B63\u5728\u8BFB\u53D6\u5F00\u653E\u7F51\u7EDC\u56DE\u5E94\u2026",webmentionUnavailable:"\u6682\u65F6\u65E0\u6CD5\u8BFB\u53D6\u56DE\u5E94\uFF0C\u7A0D\u540E\u4F1A\u81EA\u52A8\u6062\u590D\u3002",webmentionEmpty:"\u8FD8\u6CA1\u6709\u7AD9\u5916\u56DE\u5E94\u3002\u4EFB\u4F55\u94FE\u63A5\u5230\u8FD9\u7BC7\u6587\u7AE0\u7684\u7F51\u7AD9\u90FD\u53EF\u4EE5\u5411\u5B83\u53D1\u9001 Webmention\u3002",webmentionReactionCount:e=>`${e} \u4E2A\u559C\u6B22\u3001\u8F6C\u53D1\u6216\u6536\u85CF`,webmentionRespondersLabel:"\u56DE\u5E94\u8005",webmentionViewResponse:"\u67E5\u770B\u7AD9\u5916\u56DE\u5E94",webmentionAuthorFallback:"\u5F00\u653E\u7F51\u7EDC\u8BBF\u5BA2",webmentionViewOriginal:"\u67E5\u770B\u539F\u6587",emptyPostsEyebrow:"\u6682\u65E0\u535A\u6587",emptyPostsTitle:"\u6682\u65E0\u535A\u6587\u3002",emptyPostsDesc:"\u6587\u7AE0\u4F1A\u6309\u65F6\u95F4\u6392\u5728\u8FD9\u91CC\u3002",emptyPostsCta:"\u8FD4\u56DE\u9996\u9875",emptyColumnsEyebrow:"\u6682\u65E0\u4E13\u680F",emptyColumnsTitle:"\u6682\u65E0\u4E13\u680F\u3002",emptyColumnsDesc:"\u4E00\u7EC4\u6587\u7AE0\u4F1A\u6309\u987A\u5E8F\u5217\u5728\u8FD9\u91CC\u3002",emptyColumnsCta:"\u6D4F\u89C8\u5168\u90E8\u535A\u6587",embedProviderWechat:"\u5FAE\u4FE1\u516C\u4F17\u53F7",embedProviderWeb:"\u7F51\u9875\u6458\u8981",embedParseError:"\u65E0\u6CD5\u89E3\u6790\u8FD9\u4E2A\u5D4C\u5165\u5757\uFF0C\u8BF7\u68C0\u67E5 URL \u4E0E YAML \u683C\u5F0F\u3002",embedFrameTitle:e=>`${e} \u5D4C\u5165\u5185\u5BB9`,embedOpenOriginal:"\u5728\u539F\u7F51\u7AD9\u6253\u5F00",embedFallbackTitle:"\u6253\u5F00\u8FD9\u6761\u5916\u90E8\u5185\u5BB9",embedFallbackNoScript:"\u5E73\u53F0\u4E0D\u63D0\u4F9B\u7A33\u5B9A\u7684\u65E0\u811A\u672C\u5D4C\u5165\uFF0CGarden \u4F1A\u4FDD\u7559\u6E05\u6670\u3001\u53EF\u8BBF\u95EE\u7684\u539F\u6587\u5165\u53E3\u3002",embedFallbackWeb:"\u67E5\u770B\u539F\u7F51\u9875\u4E2D\u7684\u5B8C\u6574\u5185\u5BB9\u4E0E\u4E0A\u4E0B\u6587\u3002",widgetParseError:"\u65E0\u6CD5\u89E3\u6790\u8FD9\u4E2A\u5D4C\u5165\u5757\u3002\u8BF7\u5728\u4E0E Markdown \u540C\u540D\u7684\u76EE\u5F55\u91CC\u653E\u4E00\u4EFD .html \u6216 .pdf\uFF0C\u5E76\u5728\u56F4\u680F\u4E2D\u5199 src \u4E0E caption\u3002",widgetOpenPage:"\u6253\u5F00\u9875\u9762",widgetOpenPdf:"\u6253\u5F00 PDF",widgetPageKind:"\u9875\u9762",widgetCollapse:"\u6536\u8D77",widgetExpand:"\u5C55\u5F00",uiBlockCorrupt:"\u8FD9\u5757\u4EA4\u4E92\u7684\u6570\u636E\u635F\u574F\u4E86\uFF0C\u8BF7\u91CD\u65B0\u8FD0\u884C garden sync\u3002",staticAdminHeading:"\u540E\u53F0\u5728\u53E6\u4E00\u4E2A\u5730\u5740\u3002",staticAdminBody:"\u516C\u5F00\u535A\u5BA2\u4E0A\u770B\u4E0D\u5230\u8FD9\u4E00\u9875\u3002\u7BA1\u7406\u6587\u7AE0\u548C\u4EA4\u4E92\uFF0C\u53BB\u5355\u72EC\u90E8\u7F72\u7684\u540E\u53F0\u3002",staticAdminRootBody:"\u8FD9\u4E2A\u9875\u9762\u662F\u516C\u5F00\u535A\u5BA2\u3002\u7BA1\u7406\u6587\u7AE0\u548C\u8F6C\u53D1\uFF0C\u53BB\u540E\u53F0\u3002",staticAdminOpen:"\u6253\u5F00\u540E\u53F0",staticAdminNoUrl:"\u8FD8\u6CA1\u6709\u586B\u5199\u540E\u53F0\u5730\u5740\u3002",staticAdminBack:"\u8FD4\u56DE\u516C\u5F00\u535A\u5BA2",adminTitleMain:"\u5185\u5BB9\u7BA1\u7406",adminTitleUi:"\u5199\u4F5C\u53F0",adminTitleBlocks:"\u4EA4\u4E92\u5757",adminTitleCatalog:"\u7EC4\u4EF6\u6E05\u5355",adminTitleEvals:"\u6A21\u578B\u81EA\u68C0",adminTitlePreview:"\u8349\u7A3F\u9884\u89C8",a2IndexTitle:"A2 \u5BF9\u7167",a2IndexDeck:"\u5BF9\u7167\u53C2\u8003\u6587\u7AE0\u7684\u7248\u5F0F\u3002\u6B63\u6587\u6CA1\u6709\u6539\u5B57\u3002"},ZY={homeAbout:"About",homeRss:"RSS",homeLatest:"Latest",homeRecent:"Recent posts",homeAllPosts:e=>`All ${e} ${e===1?"post":"posts"}`,homePinned:"Pinned",homeColumns:"Columns",homeAllColumns:"All columns",columnCount:(e,t)=>`${e} ${e===1?"post":"posts"} \xB7 ${t}`,columnDefault:"Active",columnOngoing:"Ongoing",columnCompleted:"Completed",columnReadingList:(e,t)=>`Reading list \xB7 ${e} ${e===1?"post":"posts"} \xB7 ${t}`,columnSideCount:(e,t)=>`${e} ${e===1?"post":"posts"} \xB7 ${t}`,columnCoverAlt:e=>`${e} cover`,columnFallbackDesc:"A series of posts in reading order.",columnNewestFirst:e=>`${e}, newest first`,toc:"Contents",tocShort:"TOC",tocDisplay:"Contents display",tocFollow:"Follow reading",tocExpandAll:"Expand all",tocManual:"Manual selection",tocPage:"On this page",open:"Open ",close:"Close ",currentSection:", current section: ",prev:"Previous",next:"Next",pagerLabel:"Previous and next post",columnPagerLabel:"Previous and next in this column",comments:"Comments",webmentions:"Responses from the open web",webmentionsLead:"Mentions, likes, reposts and replies from other sites arrive here through Webmention.",notFoundTitle:"Page not found",notFoundDeck:"The address may be wrong, or the page has moved.",backHome:"Back to home",builtWith:["Built with ",""],search:"Search",searchArticles:"Search posts",toLight:"Switch to light mode",toDark:"Switch to dark mode",wordCount:e=>`${e.toLocaleString("en-US")} words`,dateLocale:"en-US",handbook:"Garden Handbook",overview:"Overview",langSwitch:"Switch language",skipToContent:"Skip to content",copyCode:"Copy code",copied:"Copied",copiedLive:"Copied to clipboard",diffAdded:" (added)",diffRemoved:" (removed)",codeTabs:["Code","Diff from previous"],codeTabsLabel:"Code",demo:"Demo",fullscreen:"Full screen",exitFullscreen:"Exit full screen",chart:"Chart",relations:"Relationship diagram",relationsLegend:"Link labels",dataTable:"Show data table",item:"Item",value:"Value",pickAnswer:"Pick an answer first.",correct:"\u2713 Correct",wrong:"\u2717 Try again",bytes:"bytes",htmlAt:e=>`HTML lives in ${e}. It is read from the folder of the same name at publish time.`,interactive:"Interactive",ideaLabel:"Idea \xB7 compiled before publishing",unknownBlock:e=>`Unknown Garden block: ${e}`,file:"File",openInTab:"Open in new tab",openNamedInTab:e=>`Open ${e} in a new tab`,download:"Download",downloadNamed:e=>`Download ${e}`,downloadFile:"Download file",closePreview:"Close preview",previewFailed:"The preview could not load.",retry:"Retry",previewLoading:"Loading preview\u2026",escClose:"Esc to close",preview:"Preview",previewNamed:e=>`Preview ${e}`,viewImage:"View full image",zoomImage:e=>`Enlarge: ${e}`,closeImage:"Close image preview",tableScroll:"Table, scrolls horizontally",tocToggle:(e,t)=>`${e?"Expand":"Collapse"} subsections of \u201C${t}\u201D`,siteNav:"Site navigation",siteNavMobile:"Site navigation (mobile)",openMenu:"Open menu",closeMenu:"Close menu",darkMode:"Dark mode",searchTitle:"Search this site",searchPlaceholder:"Search titles, topics or text\u2026",searchInput:"Fuzzy search",closeSearch:"Close search",searchResults:"Search results",resultCount:e=>`${e} matching ${e===1?"post":"posts"}`,recent:"Recent",searchFailed:"Search is unavailable right now. Please try again later.",loading:"Loading\u2026",fuzzy:"Fuzzy matching",escToClose:"to close",noResults:e=>e?`No posts match \u201C${e}\u201D`:"Nothing to search yet",navLabels:{"/blog/":"Posts","/columns/":"Columns","/tags/":"Tags","/about/":"About"},homeLatestBadge:"Latest post",homeRecentHeading:"Recent updates",homeAllPostsCount:e=>`All ${e} ${e===1?"post":"posts"}`,homePinnedHeading:"Pinned",homeColumnsHeading:"Columns",homeColumnCountStatus:(e,t)=>`${e} ${e===1?"post":"posts"}, ${t}`,columnDefaultStatus:"Ongoing",blogEyebrow:"BLOG",blogHeading:"Posts",blogDeck:e=>`Essays on engineering, architecture, and systems thinking. ${e} ${e===1?"post":"posts"}, archived by year.`,unknownYear:"Unknown",tagFilterLabel:"Filter by tag",tagCollapse:"Show less",tagExpandAll:e=>`Show all ${e} tags`,tagClear:"Clear",densityLabel:"List density",densityDetailed:"Detailed",densityCompact:"Compact",yearPostCount:e=>`${e} ${e===1?"post":"posts"}`,pinnedBadge:"Pinned",tagEmptyMatch:"No posts match all of the selected tags.",tagDropLast:e=>`Remove \u201C${e}\u201D`,browseAllPosts:"All posts",railJumpByYear:"Jump by year",railByYear:"By year",railColumns:"Columns",permalinkLabel:e=>`Permanent link to ${e}`,updatedOn:e=>`Updated ${e}`,originalLink:"Original \u2197",coverLabel:e=>`${e} cover`,referencesHeading:"References",articleTagsLabel:"Tags",allColumnsBack:"All columns",seriesEyebrow:"Column",seriesCountStatus:(e,t)=>`${e} ${e===1?"post":"posts"} \xB7 ${t}`,columnsEyebrow:"COLUMNS",columnsFallbackTitle:"Columns",columnsMeta:(e,t)=>`Reading list \xB7 ${e} ${e===1?"post":"posts"} \xB7 ${t}`,columnsFallbackDesc:"A series of posts organized in reading order.",columnsOrderLabel:e=>`${e}, newest to oldest`,tagsTitle:"Tags",tagsDescription:"All tags.",tagsDeck:e=>`${e} ${e===1?"tag":"tags"}, ordered by post count. Pick a tag to view matching posts.`,tagsIndexLabel:"All tags",tagsEmpty:"No tags yet.",aboutEyebrow:"ABOUT",aboutFallbackHeading:"About",aboutFallbackParagraphs:["An engineer who writes code and writes down problems once they are clear.","This site holds posts and columns."],aboutFocusHeading:"Current focus",aboutFallbackFocus:["Software","Notes","Daily work"],aboutFallbackCta:"Browse posts",githubProfileAria:"GitHub profile",githubAvatarAlt:e=>`${e}'s GitHub avatar`,githubOverviewPrefix:"GitHub public profile",githubSyncSynced:"Synced on this visit",githubSyncSnapshot:"Using build snapshot",githubSyncSyncing:"Syncing live profile",githubViewProfile:"View GitHub",githubMetricRepos:"Public repos",githubMetricCommits:"Commits (30d)",githubPinnedEyebrow:"PINNED",githubPinnedHeading:"Pinned repositories",githubPinnedFallbackDesc:"View code and recent updates in this public repository.",githubPinnedEmpty:"Configure a GitHub Token or author.githubPinned to show pinned repositories here.",githubContribEyebrow:"CONTRIBUTIONS",githubContribHeading:"Public contributions in the past year",githubContribCount:e=>`${e} ${e===1?"contribution":"contributions"}`,githubContribNeedToken:"GitHub Token required",githubContribAria:e=>`${e} public ${e===1?"contribution":"contributions"} in the past year`,githubContribDayTitle:(e,t)=>`${e} \xB7 ${t} ${t===1?"contribution":"contributions"}`,githubContribDayAria:(e,t)=>`${e}, ${t} ${t===1?"contribution":"contributions"}`,githubContribEmpty:"Production builds use the workflow's read-only token to generate the contribution heatmap.",githubActivityEyebrow:"CONTRIBUTION ACTIVITY",githubActivityHeading:"Recent activity on GitHub",githubActivityEmpty:"No recent public GitHub activity returned right now.",githubEventPush:"Pushed commits",githubEventPrClosed:"Completed a Pull Request",githubEventPrOpen:"Opened a Pull Request",githubEventIssueClosed:"Closed an Issue",githubEventIssueOpen:"Participated in an Issue",githubEventCreateRepo:"Created a repository",githubEventCreateTag:"Created a tag",githubEventCreateBranch:"Created a branch",githubEventRelease:"Published a release",commentsSummaryReady:"Comments are stored and managed via GitHub Discussions.",commentsSummaryUnconfigured:"Comments are not enabled yet. Configure the four variables below to show the comment box.",commentsGiscusGuideUrl:"https://giscus.app",commentsSetupBefore:"Open",commentsSetupMiddle:", install it on a public repository with Discussions enabled, and add the repository, repository ID, category, and category ID to ",commentsSetupAnd:" and GitHub Actions Variables: ",commentsSetupJoin:", ",commentsSetupEnd:".",giscusLang:"en",webmentionIdleNote:"Webmention receiving and display are ready; responses will appear once a custom domain is connected.",webmentionLoading:"Loading responses from the open web\u2026",webmentionUnavailable:"Responses are temporarily unavailable. Please try again later.",webmentionEmpty:"No external responses yet. Any site linking to this post can send a Webmention.",webmentionReactionCount:e=>`${e} ${e===1?"like, repost, or bookmark":"likes, reposts, or bookmarks"}`,webmentionRespondersLabel:"Responders",webmentionViewResponse:"View external response",webmentionAuthorFallback:"Open web reader",webmentionViewOriginal:"View original",emptyPostsEyebrow:"No posts yet",emptyPostsTitle:"No posts yet.",emptyPostsDesc:"Published posts will appear here in chronological order.",emptyPostsCta:"Back to home",emptyColumnsEyebrow:"No columns yet",emptyColumnsTitle:"No columns yet.",emptyColumnsDesc:"Curated post series will appear here in reading order.",emptyColumnsCta:"Browse all posts",embedProviderWechat:"WeChat Official Account",embedProviderWeb:"Web excerpt",embedParseError:"Could not parse this embed block. Please check the URL and YAML syntax.",embedFrameTitle:e=>`${e} embedded content`,embedOpenOriginal:"Open original",embedFallbackTitle:"Open external content",embedFallbackNoScript:"This platform does not provide a stable script-free embed; Garden keeps a clean link to the original post.",embedFallbackWeb:"Read the full page and context on the original site.",widgetParseError:"Could not parse this widget block. Place a .html or .pdf file in the folder matching the Markdown file name, and specify src and caption.",widgetOpenPage:"Open page",widgetOpenPdf:"Open PDF",widgetPageKind:"Page",widgetCollapse:"Collapse",widgetExpand:"Expand",uiBlockCorrupt:"This interactive block's payload is corrupted. Please re-run garden sync.",staticAdminHeading:"Admin lives at a separate address.",staticAdminBody:"This page is not available on the public blog. Use your separately deployed admin instance to manage articles and edit interactive blocks.",staticAdminRootBody:"This is the public blog. Use the admin site to manage articles, upload media, and share.",staticAdminOpen:"Open admin",staticAdminNoUrl:"No admin URL configured yet.",staticAdminBack:"Back to public blog",adminTitleMain:"Content Studio",adminTitleUi:"Writing Studio",adminTitleBlocks:"Interactive Blocks",adminTitleCatalog:"Component Catalog",adminTitleEvals:"Model Evals",adminTitlePreview:"Draft Preview",a2IndexTitle:"A2 Parity",a2IndexDeck:"Layout comparison against reference articles. Body text is unchanged."},eK={zh:WY,en:ZY},Pl=(e=wo)=>eK[e];var f7=ie(De(),1),A3=(0,ph.createContext)(wo);function p7({lang:e,children:t}){return(0,f7.jsx)(A3.Provider,{value:e??wo,children:t})}var Rc=()=>(0,ph.useContext)(A3),Ts=()=>Pl((0,ph.useContext)(A3));var C7=ie(I7(),1);var v3={}.hasOwnProperty,wK=new Map,kK=/[A-Z]/g,vK=new Set(["table","tbody","thead","tfoot","tr"]),MK=new Set(["td","th"]),A7="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function M3(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=BK(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=PK(n,t.jsx,t.jsxs)}let r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ta:jr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=w7(r,e,void 0);return i&&typeof i!="string"?i:r.create(e,r.Fragment,{children:i||void 0},void 0)}function w7(e,t,n){if(t.type==="element")return NK(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return LK(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return OK(e,t,n);if(t.type==="mdxjsEsm")return _K(e,t);if(t.type==="root")return RK(e,t,n);if(t.type==="text")return DK(e,t)}function NK(e,t,n){let a=e.schema,r=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(r=ta,e.schema=r),e.ancestors.push(t);let i=v7(e,t.tagName,!1),s=HK(e,t),o=L3(e,t);return vK.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!ps(l):!0})),k7(e,s,i,t),N3(s,o),e.ancestors.pop(),e.schema=a,e.create(t,i,s,n)}function LK(e,t){if(t.data&&t.data.estree&&e.evaluater){let a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}hh(e,t.position)}function _K(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);hh(e,t.position)}function OK(e,t,n){let a=e.schema,r=a;t.name==="svg"&&a.space==="html"&&(r=ta,e.schema=r),e.ancestors.push(t);let i=t.name===null?e.Fragment:v7(e,t.name,!0),s=FK(e,t),o=L3(e,t);return k7(e,s,i,t),N3(s,o),e.ancestors.pop(),e.schema=a,e.create(t,i,s,n)}function RK(e,t,n){let a={};return N3(a,L3(e,t)),e.create(t,e.Fragment,a,n)}function DK(e,t){return t.value}function k7(e,t,n,a){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=a)}function N3(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function PK(e,t,n){return a;function a(r,i,s,o){let u=Array.isArray(s.children)?n:t;return o?u(i,s,o):u(i,s)}}function BK(e,t){return n;function n(a,r,i,s){let o=Array.isArray(i.children),l=Oa(a);return t(r,i,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function HK(e,t){let n={},a,r;for(r in t.properties)if(r!=="children"&&v3.call(t.properties,r)){let i=UK(e,r,t.properties[r]);if(i){let[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&MK.has(t.tagName)?a=o:n[s]=o}}if(a){let i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return n}function FK(e,t){let n={};for(let a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){let i=a.data.estree.body[0];i.type;let s=i.expression;s.type;let o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else hh(e,t.position);else{let r=a.name,i;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){let o=a.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else hh(e,t.position);else i=a.value===null?!0:a.value;n[r]=i}return n}function L3(e,t){let n=[],a=-1,r=e.passKeys?new Map:wK;for(;++a<t.children.length;){let i=t.children[a],s;if(e.passKeys){let l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){let u=r.get(l)||0;s=l+"-"+u,r.set(l,u+1)}}let o=w7(e,i,s);o!==void 0&&n.push(o)}return n}function UK(e,t,n){let a=Gr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?Zu(n):ec(n)),a.property==="style"){let r=typeof n=="object"?n:zK(e,String(n));return e.stylePropertyNameCase==="css"&&(r=VK(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&a.space?xx[a.property]||a.property:a.attribute,n]}}function zK(e,t){try{return(0,C7.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let a=n,r=new Fe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=A7+"#cannot-parse-style-attribute",r}}function v7(e,t,n){let a;if(!n)a={type:"Literal",value:t};else if(t.includes(".")){let r=t.split("."),i=-1,s;for(;++i<r.length;){let o=v1(r[i])?{type:"Identifier",name:r[i]}:{type:"Literal",value:r[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}a=s}else a=v1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){let r=a.value;return v3.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(a);hh(e)}function hh(e,t){let n=new Fe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=A7+"#cannot-handle-mdx-estrees-without-createevaluater",n}function VK(e){let t={},n;for(n in e)v3.call(e,n)&&(t[$K(n)]=e[n]);return t}function $K(e){let t=e.replace(kK,qK);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function qK(e){return"-"+e.toLowerCase()}var mh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Dc=ie(De(),1),L7=ie(Gt(),1);var GK="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",M7=[],N7={allowDangerousHtml:!0},jK=/^(https?|ircs?|mailto|xmpp)$/i,YK=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function _3(e){let t=KK(e),n=XK(e);return QK(t.runSync(t.parse(n),n),e)}function KK(e){let t=e.rehypePlugins||M7,n=e.remarkPlugins||M7,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...N7}:N7;return cf().use(Ju).use(n).use(Wu,a).use(t)}function XK(e){let t=e.children||"",n=new nl;return typeof t=="string"?n.value=t:(""+t,void 0),n}function QK(e,t){let n=t.allowedElements,a=t.allowElement,r=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||_7;for(let c of YK)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+GK+c.id,void 0);return n&&i&&void 0,ss(e,u),M3(e,{Fragment:Dc.Fragment,components:r,ignoreInvalidStyle:!0,jsx:Dc.jsx,jsxs:Dc.jsxs,passKeys:!0,passNode:!0});function u(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return s?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let h;for(h in mh)if(Object.hasOwn(mh,h)&&Object.hasOwn(c.properties,h)){let d=c.properties[h],y=mh[h];(y===null||y.includes(c.tagName))&&(c.properties[h]=l(String(d||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):i?i.includes(c.tagName):!1;if(!h&&a&&typeof f=="number"&&(h=!a(c,f,p)),h&&p&&typeof f=="number")return o&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function _7(e){let t=e.indexOf(":"),n=e.indexOf("?"),a=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||a!==-1&&t>a||jK.test(e.slice(0,t))?e:""}function O7(e){if(!e)return null;try{return JSON.parse(decodeURIComponent(String(e)))}catch{return null}}var R7=ie(De(),1);function $e({text:e}){return(0,R7.jsx)("span",{dangerouslySetInnerHTML:{__html:nn(String(e??""),{inline:!0})??""}})}function D7(e,t){let n=0;for(;e[t+n]==="`";)n+=1;let a="`".repeat(n),r=t+n;for(;r<e.length;){let i=e.indexOf(a,r);if(i<0)return-1;let s=0;for(;e[i+s]==="`";)s+=1;if(s===n)return i+n;r=i+s}return-1}function O3(e,t,n,a){let r=0;for(let i=t;i<e.length;i+=1){let s=e[i];if(s==="\\"){i+=1;continue}if(s==="`"){let o=D7(e,i);if(o>0){i=o-1;continue}}if(s===n)r+=1;else if(s===a&&(r-=1,r===0))return i+1}return-1}function JK(e,t){let n=O3(e,t,"[","]");return n<0?-1:e[n]==="("?O3(e,n,"(",")"):e[n]==="["?O3(e,n,"[","]"):-1}function P7(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="\\"){t+=1;continue}if(n==="`"){let s=D7(e,t);if(s>0){t=s-1;continue}continue}if(n==="["){let s=JK(e,t);if(s>0){t=s-1;continue}continue}if(n==="<"){let s=e.indexOf(">",t);if(s>0&&/^<[a-z][a-z0-9+.-]*:[^\s<>]*>$/iu.test(e.slice(t,s+1))){t=s;continue}}if(!(n==="\uFF1A"||n===":"&&e[t+1]===" "))continue;let r=t;for(;r>0&&/\s/u.test(e[r-1]);)r-=1;if(r===0)continue;let i=t+1;for(;i<e.length&&/\s/u.test(e[i]);)i+=1;return i>=e.length?null:{title:e.slice(0,r),separator:e.slice(r,i),text:e.slice(i)}}return null}var ti=ie(Gt(),1);var Di=ie(De(),1);var WK=(0,Di.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,Di.jsx)("path",{d:"M2.5 6V2.5H6M10 2.5h3.5V6M13.5 10v3.5H10M6 13.5H2.5V10"})}),ZK=(0,Di.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,Di.jsx)("path",{d:"M6 2.5V6H2.5M13.5 6H10V2.5M10 13.5V10h3.5M2.5 10H6v3.5"})});function B7(){return document.fullscreenElement||document.webkitFullscreenElement||null}function H7({children:e,label:t}){let n=Ts();t=t??n.demo;let a=(0,ti.useRef)(null),r=(0,ti.useRef)(null),i=(0,ti.useRef)(null),[s,o]=(0,ti.useState)(!1),[l,u]=(0,ti.useState)(!1);(0,ti.useEffect)(()=>{let p=()=>{let h=B7()===a.current;u(h||s),!h&&!s&&i.current&&(i.current.focus(),i.current=null)};return document.addEventListener("fullscreenchange",p),document.addEventListener("webkitfullscreenchange",p),()=>{document.removeEventListener("fullscreenchange",p),document.removeEventListener("webkitfullscreenchange",p)}},[s]),(0,ti.useEffect)(()=>{if(!s)return;let p=a.current;document.documentElement.classList.add("ux-lock");let h=y=>{if(y.key==="Escape"){y.preventDefault(),o(!1),u(!1),document.documentElement.classList.remove("ux-lock"),i.current?.focus();return}if(y.key!=="Tab"||!p)return;let S=[...p.querySelectorAll("button, a[href], input, select, textarea, iframe, [tabindex]:not([tabindex='-1'])")].filter(x=>!x.hasAttribute("disabled")&&x.getClientRects().length>0);if(!S.length)return;let b=S.indexOf(document.activeElement),g=S.length-1;(b<0||y.shiftKey&&b===0||!y.shiftKey&&b===g)&&(y.preventDefault(),S[b<0?0:y.shiftKey?g:0].focus())},d=y=>{p&&!p.contains(y.target)&&r.current?.focus()};return document.addEventListener("keydown",h,!0),document.addEventListener("focusin",d),r.current?.focus(),()=>{document.documentElement.classList.remove("ux-lock"),document.removeEventListener("keydown",h,!0),document.removeEventListener("focusin",d)}},[s]);let c=()=>{let p=a.current;if(!p)return;i.current=document.activeElement instanceof HTMLElement?document.activeElement:null;let h=p.requestFullscreen||p.webkitRequestFullscreen;if(h&&(document.fullscreenEnabled||document.webkitFullscreenEnabled)){h.call(p);return}o(!0),u(!0)},f=()=>{if(B7()){document.exitFullscreen?.()||document.webkitExitFullscreen?.();return}o(!1),u(!1),i.current?.focus()};return(0,Di.jsxs)("div",{ref:a,className:`ux-fs${s?" ux-fs-on":""}`,role:s?"dialog":void 0,"aria-modal":s?!0:void 0,"aria-label":s?t:void 0,children:[(0,Di.jsx)("div",{className:"ux-fsbar",children:(0,Di.jsx)("button",{ref:r,type:"button",className:"ux-btn ux-fsb","aria-label":l?n.exitFullscreen:n.fullscreen,title:l?n.exitFullscreen:n.fullscreen,onClick:()=>l?f():c(),children:l?ZK:WK})}),e]})}var Mn=ie(Gt(),1);var eX=new Set(["co","com","net","org","gov","edu","ac","or","ne","go","gob","nic"]);function tX(e){try{return new URL(e).hostname.toLowerCase().replace(/^www\./u,"")}catch{return""}}function nX(e){let t=String(e??"").toLowerCase().replace(/^www\./u,"").split(".").filter(Boolean);if(t.length<2)return t[0]??"";if(/^\d+$/u.test(t.at(-1)))return t[0];let n=t.at(-1),a=t.at(-2);return t.length>=3&&n.length===2&&eX.has(a)?t.at(-3):a}function aX(e){let t=nX(e);return t?[...t][0].toUpperCase():"\xB7"}function F7(e,t,n){let a=tX(e),r=t?.[a],i=(typeof r=="string"?r:r?.file)||(typeof n=="string"&&n?n:"");return i?{src:i}:{letter:aX(a)}}var dh=ie(Gt(),1),gh=dh.forwardRef((e,t)=>{let{alt:n,color:a="currentColor",size:r="1em",weight:i="regular",mirrored:s=!1,children:o,weights:l,...u}=e;return dh.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:a,viewBox:"0 0 256 256",transform:s?"scale(-1, 1)":void 0,...u},!!n&&dh.createElement("title",null,n),o,l.get(i))});gh.displayName="SSRBase";var Q1=ie(Gt(),1);var fn=ie(Gt(),1),U7=new Map([["bold",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),fn.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",fn.createElement(fn.Fragment,null,fn.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]);var R3=Q1.forwardRef((e,t)=>Q1.createElement(gh,{ref:t,...e,weights:U7}));R3.displayName="CheckCircleIcon";var D3=R3;var J1=ie(Gt(),1);var hn=ie(Gt(),1),z7=new Map([["bold",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),hn.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",hn.createElement(hn.Fragment,null,hn.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]);var P3=J1.forwardRef((e,t)=>J1.createElement(gh,{ref:t,...e,weights:z7}));P3.displayName="XCircleIcon";var B3=P3;var ue=ie(De(),1);function V7({name:e,size:t=18}){return tl(String(e))?(0,ue.jsx)("span",{"aria-hidden":"true",dangerouslySetInnerHTML:{__html:Xu(String(e)).replace('class="g-compose-icon"',`class="g-compose-icon" style="width:${t}px;height:${t}px"`)}}):null}var rX=e=>e==null?[]:Array.isArray(e)?e.map(String):[String(e)],F3=e=>(Array.isArray(e.items)?e.items:[]).map(t=>typeof t=="string"?{text:t}:t??{});function $7({props:e}){let t=F3(e),n=t.some(a=>a.title);return(0,ue.jsxs)("figure",{className:`g-list ${n?"g-list-steps":"g-list-rows"}`,children:[typeof e.title=="string"?(0,ue.jsx)("p",{className:"g-list-h",children:(0,ue.jsx)($e,{text:e.title})}):null,(0,ue.jsx)("ul",{children:t.map((a,r)=>(0,ue.jsxs)("li",{children:[(0,ue.jsx)("span",{className:"g-list-ic",children:(0,ue.jsx)(V7,{name:a.icon,size:n?20:17})}),(0,ue.jsxs)("div",{className:"g-list-b",children:[a.title?(0,ue.jsx)("p",{className:"g-list-t",children:(0,ue.jsx)($e,{text:String(a.title)})}):null,rX(a.text).map((i,s)=>(0,ue.jsx)("p",{className:"g-list-x",children:(0,ue.jsx)($e,{text:i})},s))]})]},r))}),typeof e.caption=="string"?(0,ue.jsx)("figcaption",{children:(0,ue.jsx)($e,{text:e.caption})}):null]})}function q7({props:e}){let t=F3(e),[n,a]=(0,Mn.useState)(null),r=(0,Mn.useId)(),i=typeof e.title=="string"?e.title:"",s=(p,h)=>{let d=(p+h+u)%u;a(d),document.getElementById(`${r}-${d}`)?.focus()},o=e.none&&typeof e.none=="object"?e.none:null,l=o&&typeof o.label=="string"?o.label:"",u=t.length+(l?1:0),c=n===null?null:n<t.length?t[n]:o,f=c?String(c.reply??""):"";return(0,ue.jsxs)("figure",{className:"g-choice",children:[i?(0,ue.jsx)("p",{className:"g-choice-h",id:`${r}-h`,children:(0,ue.jsx)($e,{text:i})}):null,(0,ue.jsxs)("div",{className:"g-choice-group",role:"radiogroup","aria-labelledby":i?`${r}-h`:void 0,children:[(0,ue.jsx)("div",{className:"g-choice-opts","data-n":t.length,children:t.map((p,h)=>{let d=n===h;return(0,ue.jsxs)("button",{id:`${r}-${h}`,type:"button",role:"radio","aria-checked":d,tabIndex:d||n===null&&h===0?0:-1,className:"g-choice-opt",onClick:()=>a(h),onKeyDown:y=>{(y.key==="ArrowRight"||y.key==="ArrowDown")&&(y.preventDefault(),s(h,1)),(y.key==="ArrowLeft"||y.key==="ArrowUp")&&(y.preventDefault(),s(h,-1))},children:[p.icon?(0,ue.jsx)("span",{className:"g-choice-ic",children:(0,ue.jsx)(V7,{name:p.icon,size:26})}):null,p.value!=null?(0,ue.jsx)("span",{className:"g-choice-v",children:String(p.value)}):null,p.text?(0,ue.jsx)("span",{className:"g-choice-x",children:(0,ue.jsx)($e,{text:String(p.text)})}):null,p.label?(0,ue.jsxs)("span",{className:"g-choice-l",children:[(0,ue.jsx)("span",{className:"g-choice-dot","aria-hidden":"true"}),String(p.label)]}):null]},h)})}),l?(0,ue.jsx)("button",{id:`${r}-${t.length}`,type:"button",role:"radio","aria-checked":n===t.length,tabIndex:n===t.length?0:-1,className:"g-choice-none",onClick:()=>a(t.length),onKeyDown:p=>{(p.key==="ArrowRight"||p.key==="ArrowDown")&&(p.preventDefault(),s(t.length,1)),(p.key==="ArrowLeft"||p.key==="ArrowUp")&&(p.preventDefault(),s(t.length,-1))},children:l}):null]}),t.some(p=>p.reply)||o?.reply?(0,ue.jsx)("p",{className:"g-choice-reply","aria-live":"polite",hidden:!f,children:f?(0,ue.jsx)($e,{text:f}):null}):null,typeof e.caption=="string"?(0,ue.jsx)("figcaption",{children:(0,ue.jsx)($e,{text:e.caption})}):null]})}var bh=e=>({x:e.x+e.w/2,y:e.y+e.h/2});function Pc(e,t,n=6){let a=bh(e),r=t.x-a.x,i=t.y-a.y;if(!r&&!i)return a;let s=Math.min(r?(e.w/2+n)/Math.abs(r):1/0,i?(e.h/2+n)/Math.abs(i):1/0);return{x:a.x+r*s,y:a.y+i*s}}var H3=null;function iX(e,t){H3??(H3=document.createElement("canvas"));let n=H3.getContext("2d");return n?(n.font=t,n.measureText(e).width):e.length*7}function sX(e,t,n){let a=e.cloneNode(!1);a.style.cssText=`display:block;-webkit-line-clamp:none;overflow:visible;position:absolute;visibility:hidden;left:0;top:0;width:${e.clientWidth}px`,e.parentElement?.appendChild(a);let r=getComputedStyle(a),i=parseFloat(r.lineHeight)||parseFloat(r.fontSize)*1.35,s=l=>(a.textContent=l,a.scrollHeight<=i*n+1&&a.scrollWidth<=a.clientWidth+1),o=null;if(!s(t)){let l=/\s/u.test(t.trim())?t.split(/(?<=\s)/u):[...t],u=0,c=l.length-1;for(;u<c;){let f=Math.ceil((u+c)/2);s(`${l.slice(0,f).join("").trimEnd()}\u2060\u2026`)?u=f:c=f-1}if(u===0&&l.length>1){let f=[...l[0].trimEnd()],p=f.length;for(;p>1&&!s(`${f.slice(0,p).join("")}\u2060\u2026`);)p-=1;o=`${f.slice(0,p).join("")}\u2060\u2026`}else o=`${l.slice(0,Math.max(u,1)).join("").trimEnd()}\u2060\u2026`}return a.remove(),o}function G7({props:e}){let t=Ts(),n=Rc(),a=F3(e).slice(0,6),r=a.map(M=>String(M.title??"")),i=Gv(e,r),s=jv(i,r),o=a.length,l=e.center==null?-1:Sl(e.center,r),u=QS(o,l),c=(0,Mn.useRef)(null),[f,p]=(0,Mn.useState)([]),[h,d]=(0,Mn.useState)({w:0,h:0}),[y,S]=(0,Mn.useState)(!1),[b,g]=(0,Mn.useState)(null),[x,I]=(0,Mn.useState)({}),A=(0,Mn.useRef)(null),E=(0,Mn.useId)().replace(/:/gu,""),C=JSON.stringify({edges:i,centre:l,n:o});(0,Mn.useEffect)(()=>{let M=c.current;if(!M)return;let{edges:F,centre:V,n:H}=JSON.parse(C),W=-1,se=()=>{let ge=M.clientWidth;if(!ge||ge===W)return;W=ge;let R=ge<Xv,Se=M.closest("figure");R?Se?.setAttribute("data-compact","true"):Se?.removeAttribute("data-compact"),S(R);let{spots:L,outer:be}=QS(H,V,R),ye=[...M.querySelectorAll(":scope > .g-rel-node")];ye.forEach((re,z)=>{re.style.left=`${L[z].x}%`,re.style.width=`${L[z].w}%`}),(!A.current||A.current.key!==C)&&(A.current={key:C,text:ye.map(re=>[re.querySelector(".g-rel-t")?.textContent??"",re.querySelector(".g-rel-x")?.textContent??""])});let O={};ye.forEach((re,z)=>{let ne=[null,null];["g-rel-t","g-rel-x"].forEach((Z,we)=>{let Ye=re.querySelector(`.${Z}`),D=A.current?.text[z][we]??"";!Ye||!D||getComputedStyle(Ye).display==="none"||(ne[we]=sX(Ye,D,we===0||R?2:3))}),(ne[0]!==null||ne[1]!==null)&&(O[z]=ne)}),I(O);let qe=R?Math.max(90,ge*.26):Math.min(200,Math.max(120,ge*.2))*(V>=0?1.25:1),Ge=ye.map(re=>re.offsetHeight),Ft=re=>{let{ys:z,height:ne}=Yv(L,Ge,R?40:48,re);ye.forEach((Ye,D)=>{Ye.style.top=`${z[D]}px`}),M.style.height=`${Math.ceil(ne)}px`;let Z=M.getBoundingClientRect(),we=ye.map(Ye=>{let D=Ye.getBoundingClientRect();return{x:D.left-Z.left,y:D.top-Z.top,w:D.width,h:D.height}});return{frame:Z,boxes:we}},sn=R?24:48,j=re=>Math.min(1/0,...F.map(z=>{let ne=Pc(re[z.from],bh(re[z.to]),z.both?R?7:8:6),Z=Pc(re[z.to],bh(re[z.from]),R?7:8);return Math.hypot(Z.x-ne.x,Z.y-ne.y)})),Y=qe,{frame:fe,boxes:ee}=Ft(Y);for(let re=0;re<10;re+=1){let z=j(ee);if(z>=sn)break;Y+=Math.max(12,(sn-z)*1.5),{frame:fe,boxes:ee}=Ft(Y)}let ae={x:fe.width/2,y:fe.height/2},Xt=re=>re.from<re.to?`${re.from}-${re.to}`:`${re.to}-${re.from}`,te=new Map,Ae=F.map(re=>{let z=Xt(re),ne=te.get(z)??0;return te.set(z,ne+1),ne}),Ee=F.map((re,z)=>{let ne=ee[re.from],Z=ee[re.to],we=bh(ne),Ye=bh(Z),D=R?7:8,w=re.both?D:6,de=L[re.from].ring,Ie=L[re.to].ring,kt=de>=0&&Ie>=0&&be>3&&(Math.abs(de-Ie)===1||Math.abs(de-Ie)===be-1),Me=te.get(Xt(re))??1,Et={x:(we.x+Ye.x)/2,y:(we.y+Ye.y)/2},_t=Math.hypot(Ye.x-we.x,Ye.y-we.y)||1,Ca=re.from<re.to?we:Ye,Sn=re.from<re.to?Ye:we,it=-(Sn.y-Ca.y)/_t,la=(Sn.x-Ca.x)/_t,Ua=0;if(kt&&(it*(Et.x-ae.x)+la*(Et.y-ae.y)<0&&(it=-it,la=-la),Ua=Math.min(R?22:40,_t/4)),Me>1&&(Ua+=(Ae[z]-(Me-1)/2)*(R?30:40)*2),!Ua){let Yn=Pc(ne,Ye,w),Bc=Pc(Z,we,D),lL=j3=>({x:Yn.x+(Bc.x-Yn.x)*j3,y:Yn.y+(Bc.y-Yn.y)*j3});return{d:`M${Yn.x},${Yn.y} L${Bc.x},${Bc.y}`,a:Yn,b:Bc,at:lL,link:re}}let Mt={x:Et.x+it*Ua,y:Et.y+la*Ua},rr=Pc(ne,Mt,w),ua=Pc(Z,Mt,D),oL=Yn=>({x:(1-Yn)**2*rr.x+2*(1-Yn)*Yn*Mt.x+Yn**2*ua.x,y:(1-Yn)**2*rr.y+2*(1-Yn)*Yn*Mt.y+Yn**2*ua.y});return{d:`M${rr.x},${rr.y} Q${Mt.x},${Mt.y} ${ua.x},${ua.y}`,a:rr,b:ua,at:oL,link:re}}),je=`500 ${Kv+.5}px ${getComputedStyle(M).fontFamily}`,Ut=Ee.map(re=>{if(!re.link.label)return{a:re.a,b:re.b,at:re.at,w:0,h:0,badge:!1};let z={width:iX(re.link.label,je)+12,height:20};return{a:re.a,b:re.b,at:re.at,w:z.width,h:z.height,badge:!Qv(z,re.a,re.b,re.at(.5),[])}}),oa=Wv(Ut,ee,{w:fe.width,h:fe.height}),kr=0;p(Ee.map((re,z)=>{let ne=oa[z],Z=ne?.badge?kr++:-1;return{d:re.d,dashed:re.link.dashed,both:re.link.both,label:re.link.label,at:ne??re.at(.5),badge:Z}})),d({w:fe.width,h:fe.height})};if(se(),typeof ResizeObserver>"u")return;let Te=new ResizeObserver(()=>se());return Te.observe(M),()=>Te.disconnect()},[C]);let k=typeof e.title=="string"?e.title:t.relations,P=f.map((M,F)=>({line:M,edge:i[F]})).filter(({line:M})=>M.badge>=0);return(0,ue.jsxs)("figure",{className:"g-rel",role:"group","aria-label":k,"data-compact":y?"true":void 0,onKeyDown:M=>{let F=Zv(M.key,b);F.close&&(M.preventDefault(),g(null),F.focus!==null&&c.current?.querySelectorAll(":scope > .g-rel-node")[F.focus]?.focus())},children:[typeof e.title=="string"?(0,ue.jsx)("p",{className:"g-rel-h",children:(0,ue.jsx)($e,{text:e.title})}):null,(0,ue.jsxs)("div",{className:"g-rel-ring",ref:c,"data-n":o,"data-center":u.centre>=0?"true":void 0,children:[a.map((M,F)=>{let V=u.spots[F];return(0,ue.jsxs)("button",{type:"button",className:"g-rel-node","data-i":F+1,"data-center":F===u.centre?"true":void 0,"aria-expanded":b===F,"aria-controls":`${E}-d`,tabIndex:0,onClick:()=>g(b===F?null:F),style:{"--x":`${V.x}%`,"--y":`${50+V.s*38}%`,"--w":`${V.w}%`},children:[(0,ue.jsx)("span",{className:"g-rel-t",children:x[F]?.[0]??(0,ue.jsx)($e,{text:r[F]})}),M.text?(0,ue.jsx)("span",{className:"g-rel-x",children:x[F]?.[1]??(0,ue.jsx)($e,{text:String(M.text)})}):null,s[F].length?(0,ue.jsx)("span",{className:"g-rel-out",children:s[F].map((H,W)=>(0,ue.jsxs)("span",{children:[W?" \xB7 ":null,H.mark," ",H.to,H.label?` ${H.label}`:""]},W))}):null]},F)}),h.w?(0,ue.jsxs)("svg",{className:"g-rel-svg",width:h.w,height:h.h,viewBox:`0 0 ${h.w} ${h.h}`,"aria-hidden":"true",children:[(0,ue.jsx)("defs",{children:(0,ue.jsx)("marker",{id:`${E}-a`,viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:(0,ue.jsx)("path",{d:"M1,1 L9,5 L1,9 Z"})})}),f.map((M,F)=>(0,ue.jsx)("path",{d:M.d,className:M.dashed?"dash":void 0,markerEnd:`url(#${E}-a)`,markerStart:M.both?`url(#${E}-a)`:void 0},F))]}):null,f.map((M,F)=>M.label?(0,ue.jsx)("span",{className:M.badge>=0?"g-rel-label g-rel-badge":"g-rel-label","aria-hidden":"true",style:{left:`${M.at.x}px`,top:`${M.at.y}px`},children:M.badge>=0?JS(M.badge):M.label},`l${F}`):null)]}),b!==null?(0,ue.jsxs)("div",{className:"g-rel-detail",id:`${E}-d`,"aria-live":"polite",children:[(0,ue.jsx)("span",{className:"g-rel-detail-t",children:(0,ue.jsx)($e,{text:r[b]})}),a[b]?.text?(0,ue.jsx)("span",{className:"g-rel-detail-x",children:(0,ue.jsx)($e,{text:String(a[b].text)})}):null]}):null,P.length?(0,ue.jsx)("ol",{className:"g-rel-legend","aria-label":t.relationsLegend,children:P.map(({line:M,edge:F})=>(0,ue.jsx)("li",{children:Jv(M.badge,F,r,n==="en"?"en":"zh")},M.badge))}):null,typeof e.caption=="string"?(0,ue.jsx)("figcaption",{children:(0,ue.jsx)($e,{text:e.caption})}):null]})}function j7({verdict:e}){return e==="good"?(0,ue.jsx)(D3,{className:"g-ic g-verdict-ic good",size:20,"aria-hidden":"true"}):e==="bad"?(0,ue.jsx)(B3,{className:"g-ic g-verdict-ic bad",size:20,"aria-hidden":"true"}):null}var oX=(0,Mn.createContext)({});function Y7({href:e,icon:t}){let n=F7(e,(0,Mn.useContext)(oX),t);return n.src?(0,ue.jsx)("img",{className:"g-src-fav",src:n.src,alt:"",width:14,height:14,decoding:"async","aria-hidden":"true"}):(0,ue.jsx)("span",{className:"g-src-ic","aria-hidden":"true",children:n.letter})}var q=ie(De(),1),U3="".replace(/\/+$/u,"");function lX(e){return!U3||!e.startsWith("/")||e.startsWith("//")||e.startsWith(`${U3}/`)?e:`${U3}${e}`}function K7(e){try{return new URL(e).hostname.replace(/^www\./u,"")}catch{return""}}function V3({source:e}){let t=(Array.isArray(e)?e:e?[e]:[]).map(n=>{if(typeof n=="string")return{url:n,site:K7(n)};if(n&&typeof n=="object"&&"url"in n){let a=String(n.url??""),r=String(n.site??K7(a)),i=n.icon;return{url:a,site:r,icon:typeof i=="string"?i:void 0}}return null}).filter(n=>!!n?.url);return t.length?(0,q.jsxs)("span",{className:t.length>1?"g-srcs is-multi":"g-srcs",children:[(0,q.jsxs)("a",{className:"g-src ext",href:t[0].url,target:"_blank",rel:"noopener noreferrer",children:[(0,q.jsx)(Y7,{href:t[0].url,icon:t[0].icon}),(0,q.jsx)("span",{children:t[0].site})]}),t.length>1?(0,q.jsxs)("span",{className:"g-src-more",children:["+",t.length-1]}):null]}):null}function z3(e){return Array.isArray(e.items)?e.items:[]}function J7({props:e}){return Array.isArray(e.cards)?(0,q.jsx)("div",{className:"g-entities",children:e.cards.map((t,n)=>(0,q.jsx)(X7,{props:t??{},row:!0},n))}):(0,q.jsx)(X7,{props:e})}function X7({props:e,row:t=!1}){let n=typeof e.url=="string"?e.url:"",a=String(e.title??n),r=typeof e.description=="string"?e.description:typeof e.text=="string"?e.text:"",i=Array.isArray(e.points)?e.points:Array.isArray(e.items)?e.items:[];return(0,q.jsxs)("article",{className:`g-entity${t?" g-entity-row":""}`,children:[typeof e.image=="string"?(0,q.jsx)("div",{className:"g-entity-img",children:(0,q.jsx)("img",{src:lX(e.image),alt:String(e.alt??a)})}):null,(0,q.jsxs)("div",{className:"g-entity-b",children:[(0,q.jsx)("h4",{className:"g-entity-t",children:n?(0,q.jsx)("a",{className:"ext",href:n,target:"_blank",rel:"noopener noreferrer",children:(0,q.jsx)($e,{text:a})}):(0,q.jsx)($e,{text:a})}),typeof e.meta=="string"?(0,q.jsx)("p",{className:"g-entity-m",children:(0,q.jsx)($e,{text:e.meta})}):null,r?(0,q.jsxs)("p",{children:[(0,q.jsx)($e,{text:r})," ",(0,q.jsx)(V3,{source:e.source})]}):null,typeof e.takeaway=="string"?(0,q.jsx)("p",{className:"g-entity-k",children:(0,q.jsx)($e,{text:e.takeaway})}):null]}),i.length?(0,q.jsx)("ol",{className:"g-entity-list",children:i.map((s,o)=>{let l=typeof s=="string"?{title:s}:s;return(0,q.jsxs)("li",{children:[(0,q.jsx)("p",{className:"g-entity-lt",children:(0,q.jsx)($e,{text:String(l.title??"")})}),typeof l.text=="string"?(0,q.jsx)("p",{children:(0,q.jsx)($e,{text:l.text})}):null]},o)})}):null]})}function W7({props:e}){let t=z3(e).length?z3(e):[e],n=t.some(a=>a.caption||a.source||a.text);return(0,q.jsx)("div",{className:`g-stats${n?" g-stats-rich":""}`,children:t.map((a,r)=>(0,q.jsxs)("div",{className:"g-stat",children:[a.label?(0,q.jsx)("div",{className:"g-stat-l",children:(0,q.jsx)($e,{text:String(a.label)})}):null,(0,q.jsxs)("div",{className:"g-stat-n",children:[String(a.value??""),a.unit?(0,q.jsx)("small",{children:String(a.unit)}):null]}),a.caption?(0,q.jsx)("div",{className:"g-stat-c",children:(0,q.jsx)($e,{text:String(a.caption)})}):null,a.text||a.source?(0,q.jsxs)("p",{className:"g-stat-t",children:[a.text?(0,q.jsx)($e,{text:String(a.text)}):null," ",(0,q.jsx)(V3,{source:a.source})]}):null]},r))})}function uX({line:e}){let t=P7(e);return t?(0,q.jsxs)("p",{className:"g-cmp-line",children:[(0,q.jsxs)("span",{className:"g-cmp-h",children:[(0,q.jsx)("span",{className:"g-cmp-t",children:(0,q.jsx)($e,{text:t.title})}),(0,q.jsx)("span",{className:"g-cmp-sep",children:t.separator})]}),(0,q.jsx)($e,{text:t.text})]}):(0,q.jsx)("p",{children:(0,q.jsx)($e,{text:e})})}function Q7(e){if(!e||typeof e!="object")return"";let t=String(e.verdict??"").trim().toLowerCase();return t==="good"||t==="bad"?t:""}function Z7({props:e}){let t=Array.isArray(e.items)?e.items:[];return t.some(n=>Q7(n))?(0,q.jsx)("div",{className:"g-verdicts",role:"group",children:t.map((n,a)=>{let r=n&&typeof n=="object"?n:{text:String(n??"")},i=Q7(r),s=r.text==null?[]:Array.isArray(r.text)?r.text:[r.text];return(0,q.jsxs)("section",{className:`g-verdict${i?` is-${i}`:""}`,children:[(0,q.jsxs)("h4",{children:[(0,q.jsx)(j7,{verdict:i}),(0,q.jsx)($e,{text:String(r.title??"")})]}),s.map((o,l)=>(0,q.jsx)("p",{children:(0,q.jsx)($e,{text:String(o)})},l))]},a)})}):(0,q.jsx)("div",{className:"g-compare",role:"group",children:t.map((n,a)=>{if(typeof n=="string"||typeof n=="number")return(0,q.jsx)("section",{className:"g-cmp",children:(0,q.jsx)(uX,{line:String(n)})},a);if(!n||typeof n!="object")return null;let{title:r,text:i,verdict:s,...o}=n,l=i==null?[]:Array.isArray(i)?i:[i];return(0,q.jsxs)("section",{className:"g-cmp",children:[r?(0,q.jsx)("h4",{children:(0,q.jsx)($e,{text:String(r)})}):null,l.map((u,c)=>(0,q.jsx)("p",{children:(0,q.jsx)($e,{text:String(u)})},c)),Object.keys(o).length?(0,q.jsx)("dl",{children:Object.entries(o).map(([u,c])=>(0,q.jsxs)("span",{children:[(0,q.jsx)("dt",{children:(0,q.jsx)($e,{text:u})}),(0,q.jsx)("dd",{children:(0,q.jsx)($e,{text:String(c)})})]},u))}):null]},a)})})}function eL({props:e}){return(0,q.jsxs)("figure",{className:"g-timeline",children:[typeof e.title=="string"?(0,q.jsx)("p",{className:"g-timeline-h",children:(0,q.jsx)($e,{text:e.title})}):null,(0,q.jsx)("ol",{children:z3(e).map((t,n)=>(0,q.jsxs)("li",{children:[t.date?(0,q.jsx)("p",{className:"g-tl-d",children:(0,q.jsx)($e,{text:String(t.date)})}):null,(0,q.jsx)("p",{className:"g-tl-t",children:(0,q.jsx)($e,{text:String(t.title??"")})}),t.text?(0,q.jsxs)("p",{className:"g-tl-x",children:[(0,q.jsx)($e,{text:String(t.text)})," ",(0,q.jsx)(V3,{source:t.source})]}):null]},n))})]})}function cX(e){if(Array.isArray(e.data)&&e.data.every(r=>r&&typeof r=="object"&&"x"in r))return e.data.map(r=>({x:String(r.x),y:Number(r.y)||0,label:String(r.label??`${r.y}${e.unit?` ${e.unit}`:""}`)}));let t=Array.isArray(e.series)?e.series[0]:null,n=Array.isArray(t?.data)?t.data:Array.isArray(e.data)?e.data:[],a=Array.isArray(e.x)?e.x.map(String):null;return n.map((r,i)=>({x:a?.[i]??String(i+1),y:Number(r)||0,label:`${r}${e.unit?` ${e.unit}`:""}`}))}function tL({props:e}){let t=cX(e),n=Math.max(...t.map(i=>i.y),1),a=Ts(),r=String(e.title??a.chart);return(0,q.jsxs)("figure",{className:"g-chart",role:"group","aria-label":r,children:[e.title?(0,q.jsx)("p",{className:"g-chart-t",children:r}):null,(0,q.jsx)("div",{className:"g-bars","aria-hidden":"true",children:t.map(i=>(0,q.jsxs)("div",{className:"g-bar",children:[(0,q.jsx)("span",{className:"g-bar-k",children:i.x}),(0,q.jsx)("span",{className:"g-bar-track",children:(0,q.jsx)("span",{className:"g-bar-fill",style:{width:`${i.y/n*100}%`}})}),(0,q.jsx)("span",{className:"g-bar-v",children:i.label})]},i.x))}),(0,q.jsxs)("details",{className:"g-chart-data",children:[(0,q.jsx)("summary",{children:a.dataTable}),(0,q.jsxs)("table",{children:[(0,q.jsx)("thead",{children:(0,q.jsxs)("tr",{children:[(0,q.jsx)("th",{children:String(e.xLabel??(typeof e.x=="string"?e.x:a.item))}),(0,q.jsx)("th",{children:String(e.yLabel??a.value)})]})}),(0,q.jsx)("tbody",{children:t.map(i=>(0,q.jsxs)("tr",{children:[(0,q.jsx)("td",{children:i.x}),(0,q.jsx)("td",{children:i.label})]},i.x))})]})]}),typeof e.caption=="string"?(0,q.jsx)("figcaption",{children:(0,q.jsx)($e,{text:e.caption})}):null]})}function nL({block:e,renderScene:t}){let n=Ts(),a=Rc(),{payload:r,check:i}=e.payload?{payload:e.payload,check:{header:{id:e.payload.id,caption:e.payload.caption},diagnostics:[]}}:Ll(e.uiSource??""),s={id:r?.id??e.id,caption:r?.caption??e.props.caption};return r?(0,q.jsx)(Rl,{lang:a,children:(0,q.jsx)(H7,{label:String(s.caption||n.interactive),children:(0,q.jsx)("div",{className:"g-play",children:(0,q.jsx)(n7,{payload:r,host:t?{renderScene:t}:void 0})})})}):(0,q.jsx)(Rl,{lang:a,children:(0,q.jsx)(ch,{id:String(s.id),caption:String(s.caption),diagnostics:i.diagnostics??[]})})}function $3({text:e}){let t=Ts();return(0,q.jsxs)("aside",{className:"g-idea",children:[(0,q.jsx)("p",{className:"g-example-label",children:t.ideaLabel}),(0,q.jsx)("p",{children:e})]})}function W1({name:e}){let t=Ts();return(0,q.jsx)("p",{className:"g-embed-note",children:t.unknownBlock(e)})}var Es=ie(De(),1),pX="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z",fX="M14 3v5h5",hX={doc:"M9 13h6M9 17h4",code:"m10 12-2 2 2 2M14 12l2 2-2 2",archive:"M11 6h1M11 9h1M11 12h1M10.5 15h2v3h-2z",file:""},mX={download:["M12 4v11M7.5 10.5 12 15l4.5-4.5M5 19h14"],eye:["M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z"],external:["M14 4h6v6M20 4l-9 9M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4"],close:["M6 6l12 12M18 6 6 18"]},aL={className:"gf-i",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1};function Z1({kind:e}){let t=hX[e??"file"]??"";return(0,Es.jsxs)("svg",{...aL,children:[(0,Es.jsx)("path",{d:pX}),(0,Es.jsx)("path",{d:fX}),t?(0,Es.jsx)("path",{d:t}):null]})}function Is({name:e}){return(0,Es.jsxs)("svg",{...aL,children:[mX[e].map(t=>(0,Es.jsx)("path",{d:t},t)),e==="eye"?(0,Es.jsx)("circle",{cx:"12",cy:"12",r:"2.8"}):null]})}var sa=ie(Gt(),1),rL=ie(g2(),1);var We=ie(De(),1);function iL({file:e,compact:t,lang:n}){let a=Pl(n),[r,i]=(0,sa.useState)(!1),[s,o]=(0,sa.useState)({state:"idle"}),l=(0,sa.useRef)(null),u=(0,sa.useRef)(null),c=(0,sa.useRef)(null),f=(0,sa.useRef)(null),p=(0,sa.useRef)(null),h=(0,sa.useId)(),d=(0,sa.useCallback)(()=>{u.current?.abort(),i(!1),l.current?.focus()},[]),y=(0,sa.useCallback)(()=>{if(!e.src)return;u.current?.abort();let A=new AbortController;u.current=A,o({state:"loading"}),fetch(e.src,{signal:A.signal}).then(E=>{if(!E.ok)throw new Error(String(E.status));return E.text()}).then(E=>{if(u.current!==A)return;let C=Vv(E);o(C?{state:"ready",html:C}:{state:"error"})}).catch(()=>{u.current===A&&o(A.signal.aborted?{state:"idle"}:{state:"error"})})},[e.src]);(0,sa.useEffect)(()=>{if(!r)return;let A=document.documentElement;A.classList.add("ux-lock"),f.current?.focus();let E=C=>{if(C.key==="Escape"){C.preventDefault(),d();return}if(C.key!=="Tab"||!c.current)return;let k=[...c.current.querySelectorAll("a[href], button, iframe, [tabindex]:not([tabindex='-1'])")].filter(F=>!F.hasAttribute("data-gf-sentinel"));if(!k.length)return;let P=k[0],M=k[k.length-1];C.shiftKey&&document.activeElement===P?(C.preventDefault(),M.focus()):!C.shiftKey&&document.activeElement===M&&(C.preventDefault(),P.focus())};return document.addEventListener("keydown",E),()=>{A.classList.remove("ux-lock"),document.removeEventListener("keydown",E)}},[r,d]);let S=()=>{c.current?.querySelector(".gf-dh a[href], .gf-dh button")?.focus()},b=A=>{let E=A.relatedTarget;E&&c.current?.querySelector(".gf-dh")?.contains(E)?p.current?.focus():f.current?.focus()},g=A=>{A.button!==0||A.metaKey||A.ctrlKey||A.shiftKey||A.altKey||(A.preventDefault(),i(!0),e.preview==="md"&&s.state!=="ready"&&s.state!=="loading"&&y())},x=zv(e,n??wo),I=r?(0,rL.createPortal)((0,We.jsxs)("div",{className:"gf-layer",children:[(0,We.jsx)("div",{className:"gf-scrim",onClick:d,"aria-hidden":"true"}),(0,We.jsxs)("aside",{ref:c,className:"gf-drawer",role:"dialog","aria-modal":"true","aria-labelledby":h,"data-preview":e.preview,children:[(0,We.jsxs)("div",{className:"gf-dh",children:[(0,We.jsx)("span",{className:"gf-ico","aria-hidden":"true",children:(0,We.jsx)(Z1,{kind:e.icon})}),(0,We.jsxs)("div",{className:"gf-main",children:[(0,We.jsx)("div",{className:"gf-name",id:h,title:e.title,children:e.title}),e.meta?(0,We.jsx)("div",{className:"gf-meta",children:e.meta}):null]}),(0,We.jsxs)("div",{className:"gf-act",children:[(0,We.jsx)("a",{className:"gf-btn icon",href:e.url,download:e.name,"aria-label":a.downloadNamed(e.name),title:a.download,children:(0,We.jsx)(Is,{name:"download"})}),(0,We.jsx)("a",{className:"gf-btn icon",href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":a.openNamedInTab(e.name),title:a.openInTab,children:(0,We.jsx)(Is,{name:"external"})}),(0,We.jsx)("button",{ref:f,type:"button",className:"gf-btn icon",onClick:d,"aria-label":a.closePreview,title:Pl(n).close.trim(),children:(0,We.jsx)(Is,{name:"close"})})]})]}),x?(0,We.jsxs)("div",{className:"gf-db gf-db-frame",children:[(0,We.jsx)("span",{tabIndex:0,className:"gf-sentinel","data-gf-sentinel":"before",onFocus:b}),(0,We.jsx)("iframe",{ref:p,className:"gf-frame",...x}),(0,We.jsx)("span",{tabIndex:0,className:"gf-sentinel","data-gf-sentinel":"after",onFocus:S})]}):(0,We.jsx)("div",{className:"gf-db","aria-busy":s.state==="loading"?"true":void 0,children:s.state==="ready"?(0,We.jsx)("div",{className:"markdown-body prose gf-doc",dangerouslySetInnerHTML:{__html:s.html}}):s.state==="error"?(0,We.jsxs)("div",{className:"gf-state",role:"alert",children:[(0,We.jsx)("p",{children:a.previewFailed}),(0,We.jsxs)("div",{className:"gf-state-act",children:[(0,We.jsx)("button",{type:"button",className:"gf-btn",onClick:()=>y(),children:a.retry}),(0,We.jsx)("a",{className:"gf-btn",href:e.url,download:e.name,children:a.downloadFile})]})]}):(0,We.jsx)("div",{className:"gf-state",role:"status",children:a.previewLoading})}),(0,We.jsx)("p",{className:"gf-hint",children:a.escClose})]})]}),document.body):null;return(0,We.jsxs)(We.Fragment,{children:[(0,We.jsxs)("a",{ref:l,href:e.preview==="md"&&e.src?e.src:e.url,target:"_blank",rel:"noopener noreferrer",className:"gf-btn gf-preview","data-compact":t?"true":void 0,onClick:g,"aria-haspopup":"dialog","aria-label":a.previewNamed(e.name),children:[(0,We.jsx)(Is,{name:"eye"}),(0,We.jsx)("span",{className:"gf-lb",children:a.preview})]}),I]})}var yn=ie(De(),1),dX=new Set(["md","html","pdf"]);function sL({props:e,lang:t}){let n=Pl(t),a=KS(e,t??wo),r=a.files.filter(s=>zf(s.url));if(!r.length)return null;let i=a.layout==="group";return(0,yn.jsxs)("div",{className:i?"gf group":"gf single","data-garden-file":"",children:[i&&a.title?(0,yn.jsx)("div",{className:"gf-title",children:a.title}):null,r.map((s,o)=>{let l=zf(s.url),u=s.name||s.title||n.file,c=s.title||u,f=jS(s),p=s.preview==="md"?zf(s.previewSrc):"",h=!s.remote&&dX.has(s.preview??"")&&(s.preview!=="md"||p)?s.preview:null,d=h?{title:c,name:u,meta:f,icon:s.icon??"file",url:l,preview:h,...p?{src:p}:{}}:null;return(0,yn.jsxs)("div",{className:"gf-row","data-remote":s.remote?"true":void 0,children:[(0,yn.jsx)("span",{className:"gf-ico","aria-hidden":"true",children:(0,yn.jsx)(Z1,{kind:s.icon})}),(0,yn.jsxs)("div",{className:"gf-main",children:[(0,yn.jsx)("div",{className:"gf-name",title:c,children:c}),s.note?(0,yn.jsx)("div",{className:"gf-desc",children:s.note}):null,f?(0,yn.jsx)("div",{className:"gf-meta",children:f}):null]}),(0,yn.jsxs)("div",{className:"gf-act",children:[d?(0,yn.jsx)(iL,{file:d,compact:i,lang:t}):null,s.remote?(0,yn.jsx)("a",{className:"gf-btn icon",href:l,target:"_blank",rel:"noopener noreferrer","aria-label":n.openNamedInTab(u),title:n.openInTab,children:(0,yn.jsx)(Is,{name:"external"})}):null,i?(0,yn.jsx)("a",{className:"gf-btn icon",href:l,download:s.remote?void 0:u,"aria-label":n.downloadNamed(u),title:n.download,children:(0,yn.jsx)(Is,{name:"download"})}):(0,yn.jsxs)("a",{className:"gf-btn pri",href:l,download:s.remote?void 0:u,"aria-label":n.downloadNamed(u),children:[(0,yn.jsx)(Is,{name:"download"}),(0,yn.jsx)("span",{className:"gf-lb",children:n.download})]})]})]},`${l}-${o}`)})]})}var xn=ie(De(),1),gX={"garden-block":e=>(0,xn.jsx)(e2,{dataPayload:e.dataPayload??e["data-payload"]})};function e2({dataPayload:e}){let t=Rc(),n=O7(e);if(!n)return null;if(!n.name)return(0,xn.jsx)($3,{text:String(n.idea||n.children||"")});if(n.error)return(0,xn.jsx)(W1,{name:String(n.name)});let a=n.props??{};switch(n.name){case"card":return(0,xn.jsx)(J7,{props:a});case"stat":return(0,xn.jsx)(W7,{props:a});case"compare":return(0,xn.jsx)(Z7,{props:a});case"timeline":return(0,xn.jsx)(eL,{props:a});case"chart":return(0,xn.jsx)(tL,{props:a});case"compose":return n.error?.code==="compose-uncompiled"?(0,xn.jsx)($3,{text:String(n.idea||n.children||"")}):n.error?(0,xn.jsx)(W1,{name:"compose"}):n.mode==="play"?(0,xn.jsx)(nL,{renderScene:r=>{let i=ya(r);return i.ok?(0,xn.jsx)(e2,{dataPayload:encodeURIComponent(JSON.stringify({name:"compose",props:{...i.doc,frame:"none"}}))}):null},block:{id:n.id,props:a,payload:n.payload?J4(JSON.stringify(n.payload)):null,children:String(n.children??""),uiSource:typeof n.uiSource=="string"?n.uiSource:void 0}}):(0,xn.jsx)("div",{className:"g-compose-host",children:(0,xn.jsx)(_3,{rehypePlugins:[oc],components:gX,children:tr(a)})});case"file":return(0,xn.jsx)(sL,{props:a,lang:t});case"relations":return(0,xn.jsx)(G7,{props:a});case"list":return(0,xn.jsx)($7,{props:a});case"choice":return(0,xn.jsx)(q7,{props:a});default:return(0,xn.jsx)(W1,{name:String(n.name)})}}var q3=ie(De(),1);function G3(e,t){return(0,q3.jsx)(p7,{lang:t,children:(0,q3.jsx)(e2,{dataPayload:encodeURIComponent(JSON.stringify(e))})})}function MSe(e,t,n={}){let a=n,r=s=>({...s,renderBlock:G3}),i=l7(e,t,r(a));return{update(s,o=a){a=o,i.update(s,r(a))},destroy:i.destroy}}function NSe(e,t={}){return u7(e,{...t,renderBlock:G3})}export{MSe as render,NSe as renderCatalog};