@marimo-team/frontend 0.15.5 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ConnectedDataExplorerComponent-Cn5-l2X1.js → ConnectedDataExplorerComponent-BErMbWvG.js} +1 -1
- package/dist/assets/{ImageComparisonComponent-CEXMKKA4.js → ImageComparisonComponent-fTHv1Ih0.js} +1 -1
- package/dist/assets/{VegaLite-Bt14Ds9k.js → VegaLite-Bdi-TyfY.js} +6 -6
- package/dist/assets/_baseEach-CNBxBxvS.js +1 -0
- package/dist/assets/_baseMap-D1WHjKrd.js +1 -0
- package/dist/assets/_baseUniq-CCgDNtZb.js +1 -0
- package/dist/assets/_createAggregator-DcD0kTA5.js +1 -0
- package/dist/assets/agent-panel-Crv430aI.js +268 -0
- package/dist/assets/agent-panel-D92Mfy1i.css +1 -0
- package/dist/assets/{any-language-editor-DiwNT6zp.js → any-language-editor-CQh552Wu.js} +1 -1
- package/dist/assets/architectureDiagram-W76B3OCA-BAJeBxzt.js +36 -0
- package/dist/assets/{between-horizontal-start-FyewyCGn.js → between-horizontal-start-Boxgxbt_.js} +1 -1
- package/dist/assets/{blockDiagram-QIGZ2CNN-BrOkAf_c.js → blockDiagram-QIGZ2CNN-CL-1svEK.js} +1 -1
- package/dist/assets/{c4Diagram-FPNF74CW-BHPzDxE2.js → c4Diagram-FPNF74CW-BbEqbCTl.js} +5 -5
- package/dist/assets/channel-_2eNSz0n.js +1 -0
- package/dist/assets/chat-panel-CXh5Wl6C.js +3 -0
- package/dist/assets/{chunk-4BX2VUAB-DLxaCNYh.js → chunk-4BX2VUAB-C--8TXeE.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-DdzvO3HR.js → chunk-55IACEB6-Bj00HDqq.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-R5o-nSiG.js → chunk-FMBD7UC4-C-lhB6hN.js} +1 -1
- package/dist/assets/{chunk-K7UQS3LO-DxaMrGgG.js → chunk-K7UQS3LO-B-pGTXPt.js} +1 -1
- package/dist/assets/{chunk-QN33PNHL-DqS9-FYm.js → chunk-QN33PNHL-DqUzGhvm.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-BZ-TzajS.js → chunk-QZHKN3VN-TntJHfSk.js} +1 -1
- package/dist/assets/{chunk-TVAH2DTR-BsgP2dyv.js → chunk-TVAH2DTR-HUJb1psV.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-D-h3ahXI.js → chunk-TZMSLE5B-BK3C__t3.js} +1 -1
- package/dist/assets/{circle-play-CQtRZ-rT.js → circle-play-DBLOv1Yu.js} +1 -1
- package/dist/assets/classDiagram-KNZD7YFC-BGmh9POF.js +1 -0
- package/dist/assets/classDiagram-v2-RKCZMP56-BGmh9POF.js +1 -0
- package/dist/assets/{clear-button-BY6Z_ViL.js → clear-button-BeoFbEKH.js} +1 -1
- package/dist/assets/clone-BFDSPAj3.js +1 -0
- package/dist/assets/command-palette-CXZiSv0I.js +1 -0
- package/dist/assets/common-C7oJcmCT.js +1 -0
- package/dist/assets/{compile-Ct_jzdKr.js → compile-7L0MwhyI.js} +1 -1
- package/dist/assets/cose-bilkent-S5V4N54A-BMkGLcVC.js +1 -0
- package/dist/assets/dagre-5GWH7T2D-BJtRienS.js +4 -0
- package/dist/assets/{data-grid-overlay-editor-BN_wulc3.js → data-grid-overlay-editor-DBkmGtNs.js} +1 -1
- package/dist/assets/datasources-panel-B7FbYLiy.js +1 -0
- package/dist/assets/{dependency-graph-panel-BOmSCZf7.js → dependency-graph-panel-DEdOxp2X.js} +4 -4
- package/dist/assets/diagram-N5W7TBWH-CmECY3nb.js +24 -0
- package/dist/assets/diagram-QEK2KX5R-DMOVSNKD.js +43 -0
- package/dist/assets/diagram-S2PKOQOG-BiJ96PNQ.js +24 -0
- package/dist/assets/{documentation-panel-BxjJO_Gw.js → documentation-panel-xULhaEv3.js} +1 -1
- package/dist/assets/edit-page-BrYda9VE.js +129 -0
- package/dist/assets/{ellipsis-vertical-UHbmjI2n.js → ellipsis-vertical-BBqXIlc2.js} +1 -1
- package/dist/assets/{empty-state-BIBXzY_0.js → empty-state-B3dA3G5P.js} +1 -1
- package/dist/assets/{erDiagram-AWTI2OKA-E84mAle_.js → erDiagram-AWTI2OKA-MP1DiFRo.js} +1 -1
- package/dist/assets/{error-panel-MEvQ6K7h.js → error-panel-Cc1sv-Ag.js} +1 -1
- package/dist/assets/file-explorer-panel-Bw59Kva1.js +1 -0
- package/dist/assets/{flowDiagram-PVAE7QVJ-DfbIRSAW.js → flowDiagram-PVAE7QVJ-BX7caPp7.js} +1 -1
- package/dist/assets/{ganttDiagram-OWAHRB6G-DR4HZ1z_.js → ganttDiagram-OWAHRB6G-B462g4Yf.js} +3 -3
- package/dist/assets/gitGraphDiagram-NY62KEGX-CGgvZ9-9.js +65 -0
- package/dist/assets/{glide-data-editor-nNmo1lPq.js → glide-data-editor-C0gUFZON.js} +4 -4
- package/dist/assets/graph-CHRVBzY5.js +1 -0
- package/dist/assets/{home-page-9eW6qida.js → home-page-Fb2osjys.js} +3 -3
- package/dist/assets/{index-DMomwMcN.js → index-BVgAenPd.js} +1 -1
- package/dist/assets/{index-B8llrTSo.js → index-BY93Ejhl.js} +1 -1
- package/dist/assets/{index-BFSnz7iM.js → index-C-8WADat.js} +1 -1
- package/dist/assets/{index-CPN7TRA1.js → index-C-GhZ7ti.js} +1 -1
- package/dist/assets/{index-DyLSuOH1.js → index-C1v_Z9et.js} +1 -1
- package/dist/assets/{index-VPWqq2Pg.js → index-C4Tn5NvJ.js} +1 -1
- package/dist/assets/{index-BAH034Ue.js → index-C77h_TXN.js} +1 -1
- package/dist/assets/{index-Dt9UWeWn.js → index-CQDrxQ0j.js} +1 -1
- package/dist/assets/{index-DWOaniGT.js → index-CWMgowgL.js} +1 -1
- package/dist/assets/{index-B1_GXGaP.js → index-Clbi_Yaq.js} +1 -1
- package/dist/assets/{index-B7yXbrLa.js → index-CpTPJo4k.js} +1 -1
- package/dist/assets/{index-CknhX2Vy.css → index-Cx0bsY1w.css} +1 -1
- package/dist/assets/{index-DqzMPAC8.js → index-D1vmG6DS.js} +2 -2
- package/dist/assets/{index-c6If577Q.js → index-D9UKkrr2.js} +1 -1
- package/dist/assets/{index-CB2pnVQG.js → index-DEQvTChO.js} +1 -1
- package/dist/assets/{index-OC46250R.js → index-DKEudB02.js} +205 -197
- package/dist/assets/{index-CSgxTUzD.js → index-DRMm6SNo.js} +1 -1
- package/dist/assets/{index-Bq516OmX.js → index-DoRmcrKM.js} +1 -1
- package/dist/assets/{index-DSU75csX.js → index-lYa_leQE.js} +1 -1
- package/dist/assets/{index-BLu5CX6z.js → index-vmICa5KN.js} +1 -1
- package/dist/assets/{index-uacyUula.js → index-z9bohSQJ.js} +1 -1
- package/dist/assets/infoDiagram-STP46IZ2-CVyrdLc8.js +2 -0
- package/dist/assets/isEmpty-DU_ogP_D.js +1 -0
- package/dist/assets/{journeyDiagram-BIP6EPQ6-BBiFyygf.js → journeyDiagram-BIP6EPQ6-C6EgLP_Q.js} +1 -1
- package/dist/assets/{kanban-definition-6OIFK2YF-DhgA6Nt6.js → kanban-definition-6OIFK2YF-BXzYO1yj.js} +4 -4
- package/dist/assets/layout-jihVw5-i.js +1 -0
- package/dist/assets/linear-C4blANlC.js +1 -0
- package/dist/assets/{links-CbvGxbsJ.js → links-D59GIweI.js} +3 -3
- package/dist/assets/{logs-panel-B9SmTZAW.js → logs-panel-D401qzZh.js} +1 -1
- package/dist/assets/markdown-renderer-Cd9eYyaL.js +263 -0
- package/dist/assets/{agent-panel-DpQ6muj-.css → markdown-renderer-ClyzDMmG.css} +1 -1
- package/dist/assets/mermaid-BEVuRz_O.js +1 -0
- package/dist/assets/{mermaid.core-4nVOEVX3.js → mermaid.core-CaSnaLH0.js} +41 -41
- package/dist/assets/min-DUMu_zeK.js +1 -0
- package/dist/assets/{mindmap-definition-Q6HEUPPD-CVLQNn1q.js → mindmap-definition-Q6HEUPPD-BXUM5MT2.js} +2 -2
- package/dist/assets/{number-overlay-editor-CzRzXLcd.js → number-overlay-editor-4uWXGlPG.js} +1 -1
- package/dist/assets/{outline-panel-uvsS-YEQ.js → outline-panel-DIzkvm2I.js} +1 -1
- package/dist/assets/packages-panel-CJL0MVlj.js +1 -0
- package/dist/assets/{pieDiagram-ADFJNKIX-C5IQ5DBZ.js → pieDiagram-ADFJNKIX-Dxt5PVNo.js} +3 -3
- package/dist/assets/{quadrantDiagram-LMRXKWRM-CFXFnQxx.js → quadrantDiagram-LMRXKWRM-D4pUaA31.js} +1 -1
- package/dist/assets/{react-plotly-mzdv02_Y.js → react-plotly-cJZ0VWBq.js} +1 -1
- package/dist/assets/{requirementDiagram-4UW4RH46-D9bPC89T.js → requirementDiagram-4UW4RH46-DVRTjgas.js} +1 -1
- package/dist/assets/run-page-BUEnMC9w.js +1 -0
- package/dist/assets/sankeyDiagram-GR3RE2ED-CVFnD9C-.js +10 -0
- package/dist/assets/scratchpad-panel-BIgRENkI.js +1 -0
- package/dist/assets/secrets-panel-xY5-V_BD.js +1 -0
- package/dist/assets/{sequenceDiagram-C3RYC4MD-6N7_hY4k.js → sequenceDiagram-C3RYC4MD-_lY4ZN_S.js} +4 -4
- package/dist/assets/{slides-component-EcjC8sDK.js → slides-component-Xjymwj7X.js} +1 -1
- package/dist/assets/snippets-panel-CTPYW41n.js +1 -0
- package/dist/assets/sortBy-BNZKwiq_.js +1 -0
- package/dist/assets/state-C4NiC9tO.js +1 -0
- package/dist/assets/stateDiagram-KXAO66HF-Da0JQWCn.js +1 -0
- package/dist/assets/stateDiagram-v2-UMBNRL4Z-D5lYZOOt.js +1 -0
- package/dist/assets/storage-CMdLzB_c.js +26 -0
- package/dist/assets/terminal-BPwTkXae.js +10 -0
- package/dist/assets/time-Dv5_Ouz_.js +1 -0
- package/dist/assets/{timeline-definition-XQNQX7LJ-BEaynAiY.js → timeline-definition-XQNQX7LJ-Dxh5Zu2e.js} +1 -1
- package/dist/assets/tracing-BCIurUfa.js +2 -0
- package/dist/assets/{tracing-panel-BmuHLPrY.js → tracing-panel-DAzrzNmm.js} +2 -2
- package/dist/assets/{trash-UBqfK4mR.js → trash-Dc6DSjz_.js} +1 -1
- package/dist/assets/{tree-XiEycetl.js → tree-jheoerAX.js} +1 -1
- package/dist/assets/{treemap-75Q7IDZK-CnuVFbBG.js → treemap-75Q7IDZK-IgpxeGaf.js} +21 -21
- package/dist/assets/{ts-tags-CloPe9IY.js → ts-tags-DxCDHihD.js} +1 -1
- package/dist/assets/variable-panel-DYAiLBmF.js +1 -0
- package/dist/assets/{vega-component-DsTH4tuX.js → vega-component-BpfpiPKI.js} +1 -1
- package/dist/assets/{xychartDiagram-6GGTOJPD-Dcz3O-A3.js → xychartDiagram-6GGTOJPD-CmNigJ31.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +8 -4
- package/src/__tests__/mocks.ts +43 -0
- package/src/components/app-config/user-config-form.tsx +32 -0
- package/src/components/chat/acp/__tests__/__snapshots__/prompt.test.ts.snap +55 -23
- package/src/components/chat/acp/__tests__/context-utils.test.ts +222 -0
- package/src/components/chat/acp/__tests__/prompt.test.ts +1 -1
- package/src/components/chat/acp/__tests__/state.test.ts +2 -6
- package/src/components/chat/acp/agent-docs.tsx +33 -6
- package/src/components/chat/acp/agent-panel.css +0 -18
- package/src/components/chat/acp/agent-panel.tsx +397 -72
- package/src/components/chat/acp/agent-selector.tsx +7 -1
- package/src/components/chat/acp/blocks.tsx +40 -10
- package/src/components/chat/acp/common.tsx +10 -2
- package/src/components/chat/acp/context-utils.ts +127 -0
- package/src/components/chat/acp/prompt.ts +34 -10
- package/src/components/chat/acp/state.ts +1 -1
- package/src/components/chat/acp/types.ts +8 -0
- package/src/components/chat/chat-panel.tsx +23 -88
- package/src/components/chat/chat-utils.ts +127 -1
- package/src/components/chat/markdown-renderer.css +39 -0
- package/src/components/chat/markdown-renderer.tsx +7 -38
- package/src/components/chat/tool-call-accordion.tsx +113 -23
- package/src/components/editor/Cell.tsx +6 -0
- package/src/components/editor/actions/name-cell-input.tsx +6 -1
- package/src/components/editor/actions/useCellActionButton.tsx +3 -1
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +178 -1
- package/src/components/editor/ai/add-cell-with-ai.tsx +68 -66
- package/src/components/editor/ai/ai-completion-editor.tsx +29 -26
- package/src/components/editor/ai/completion-handlers.tsx +44 -6
- package/src/components/editor/ai/completion-utils.ts +92 -0
- package/src/components/editor/ai/transport/chat-transport.tsx +36 -0
- package/src/components/editor/cell/StagedAICell.tsx +51 -0
- package/src/components/editor/cell/cell-actions.tsx +2 -1
- package/src/components/terminal/__tests__/state.test.ts +207 -0
- package/src/components/terminal/hooks.ts +41 -0
- package/src/components/terminal/state.ts +75 -0
- package/src/components/terminal/terminal.tsx +334 -13
- package/src/components/terminal/theme.tsx +56 -0
- package/src/core/ai/__tests__/staged-cells.test.ts +356 -0
- package/src/core/ai/staged-cells.ts +208 -0
- package/src/core/cells/cells.ts +1 -1
- package/src/core/codemirror/lsp/federated-lsp.ts +1 -1
- package/src/core/islands/main.ts +2 -2
- package/src/core/kernel/messages.ts +8 -12
- package/src/core/saving/__tests__/filename.test.ts +37 -0
- package/src/core/static/__tests__/download-html.test.ts +43 -1
- package/src/core/websocket/useMarimoWebSocket.tsx +2 -2
- package/src/css/app/Cell.css +11 -0
- package/src/plugins/core/RenderHTML.tsx +36 -2
- package/src/plugins/core/__test__/RenderHTML.test.ts +72 -0
- package/src/plugins/core/registerReactComponent.tsx +28 -0
- package/src/plugins/impl/FileBrowserPlugin.tsx +8 -2
- package/src/stories/cell.stories.tsx +1 -1
- package/src/stories/layout/vertical/one-column.stories.tsx +1 -1
- package/src/utils/__tests__/cell-urls.test.ts +29 -0
- package/src/utils/__tests__/filenames.test.ts +18 -0
- package/src/utils/__tests__/path.test.ts +38 -0
- package/src/utils/__tests__/urls.test.ts +56 -1
- package/src/utils/errors.ts +9 -0
- package/dist/assets/_baseEach-C1FLm7WW.js +0 -1
- package/dist/assets/_baseMap-DBVArUYD.js +0 -1
- package/dist/assets/_baseUniq-Dk7ZPJ3N.js +0 -1
- package/dist/assets/_createAggregator-Bn38fDd3.js +0 -1
- package/dist/assets/agent-panel-COUYnuIK.js +0 -475
- package/dist/assets/architectureDiagram-W76B3OCA-DBzWQKKu.js +0 -36
- package/dist/assets/channel-CjhbjOv4.js +0 -1
- package/dist/assets/chat-panel-BPXKoTnZ.js +0 -7
- package/dist/assets/chat-panel-Brrs_eeH.css +0 -1
- package/dist/assets/classDiagram-KNZD7YFC-DHs5cFzy.js +0 -1
- package/dist/assets/classDiagram-v2-RKCZMP56-DHs5cFzy.js +0 -1
- package/dist/assets/clone-DM1YNjEn.js +0 -1
- package/dist/assets/command-palette-S0bzQp7v.js +0 -1
- package/dist/assets/common-B8U9k2Ly.js +0 -1
- package/dist/assets/cose-bilkent-S5V4N54A-wz1Sfx7j.js +0 -1
- package/dist/assets/dagre-5GWH7T2D-BfpcVBgq.js +0 -4
- package/dist/assets/datasources-panel-DfuURLJw.js +0 -1
- package/dist/assets/diagram-N5W7TBWH-Bf0oqqQh.js +0 -24
- package/dist/assets/diagram-QEK2KX5R-ZTc3qikh.js +0 -43
- package/dist/assets/diagram-S2PKOQOG-tLScBy7Z.js +0 -24
- package/dist/assets/edit-page-DJ8kJZ9w.js +0 -129
- package/dist/assets/file-explorer-panel-CzNUJ63G.js +0 -1
- package/dist/assets/gitGraphDiagram-NY62KEGX-C1t6QtVa.js +0 -65
- package/dist/assets/graph-CssCVWIq.js +0 -1
- package/dist/assets/index-DcCIe7np.js +0 -28
- package/dist/assets/infoDiagram-STP46IZ2-CwiAoz9f.js +0 -2
- package/dist/assets/layout-DpQrxGW-.js +0 -1
- package/dist/assets/linear-NsreOeBF.js +0 -1
- package/dist/assets/mermaid-DSt0r6IQ.js +0 -1
- package/dist/assets/min-D259kI3t.js +0 -1
- package/dist/assets/packages-panel-xMz9W2hW.js +0 -1
- package/dist/assets/run-page-Bb68qdhQ.js +0 -1
- package/dist/assets/sankeyDiagram-GR3RE2ED-BSJOau8E.js +0 -10
- package/dist/assets/scratchpad-panel-BF4BO-U4.js +0 -1
- package/dist/assets/secrets-panel-CdIX44dQ.js +0 -1
- package/dist/assets/snippets-panel-Dco9h0rb.js +0 -1
- package/dist/assets/sortBy-aLGA-PGK.js +0 -1
- package/dist/assets/stateDiagram-KXAO66HF-Bd68WT3b.js +0 -1
- package/dist/assets/stateDiagram-v2-UMBNRL4Z-BXz_GSwb.js +0 -1
- package/dist/assets/storage-CGlP4lCF.js +0 -26
- package/dist/assets/terminal-CxkHubcu.js +0 -9
- package/dist/assets/time-D2nr1UgQ.js +0 -1
- package/dist/assets/tracing-kTqHxa7q.js +0 -2
- package/dist/assets/variable-panel-noTnH-AQ.js +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import{a9 as Qn,jM as eo}from"./index-OC46250R.js";function no(){}function to(){}function ro(e){const n=[],t=String(e||"");let r=t.indexOf(","),o=0,i=!1;for(;!i;){r===-1&&(r=t.length,i=!0);const l=t.slice(o,r).trim();!l&&i||n.push(l),o=r+1,r=t.indexOf(",",o)}return n}function Kn(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const oo=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,io=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lo={};function Xn(e,n){return(lo.jsx?io:oo).test(e)}const so=/[ \t\n\f\r]/g;function Jn(e){return typeof e=="object"?e.type==="text"&&Zn(e.value):Zn(e)}function Zn(e){return e.replace(so,"")===""}class Pe{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}function Gn(e,n){const t={},r={};for(const o of e)Object.assign(t,o.property),Object.assign(r,o.normal);return new Pe(t,r,n)}function je(e){return e.toLowerCase()}Pe.prototype.normal={},Pe.prototype.property={},Pe.prototype.space=void 0;class Z{constructor(n,t){this.attribute=t,this.property=n}}Z.prototype.attribute="",Z.prototype.booleanish=!1,Z.prototype.boolean=!1,Z.prototype.commaOrSpaceSeparated=!1,Z.prototype.commaSeparated=!1,Z.prototype.defined=!1,Z.prototype.mustUseProperty=!1,Z.prototype.number=!1,Z.prototype.overloadedBoolean=!1,Z.prototype.property="",Z.prototype.spaceSeparated=!1,Z.prototype.space=void 0;let ao=0;const M=ge(),$=ge(),Ge=ge(),w=ge(),q=ge(),ve=ge(),te=ge();function ge(){return 2**++ao}const en=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:$,commaOrSpaceSeparated:te,commaSeparated:ve,number:w,overloadedBoolean:Ge,spaceSeparated:q},Symbol.toStringTag,{value:"Module"})),nn=Object.keys(en);class tn extends Z{constructor(n,t,r,o){let i=-1;if(super(n,t),et(this,"space",o),typeof r=="number")for(;++i<nn.length;){const l=nn[i];et(this,nn[i],(r&en[l])===en[l])}}}function et(e,n,t){t&&(e[n]=t)}function be(e){const n={},t={};for(const[r,o]of Object.entries(e.properties)){const i=new tn(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),n[r]=i,t[je(r)]=r,t[je(i.attribute)]=r}return new Pe(n,t,e.space)}tn.prototype.defined=!0;const nt=be({properties:{ariaActiveDescendant:null,ariaAtomic:$,ariaAutoComplete:null,ariaBusy:$,ariaChecked:$,ariaColCount:w,ariaColIndex:w,ariaColSpan:w,ariaControls:q,ariaCurrent:null,ariaDescribedBy:q,ariaDetails:null,ariaDisabled:$,ariaDropEffect:q,ariaErrorMessage:null,ariaExpanded:$,ariaFlowTo:q,ariaGrabbed:$,ariaHasPopup:null,ariaHidden:$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:q,ariaLevel:w,ariaLive:null,ariaModal:$,ariaMultiLine:$,ariaMultiSelectable:$,ariaOrientation:null,ariaOwns:q,ariaPlaceholder:null,ariaPosInSet:w,ariaPressed:$,ariaReadOnly:$,ariaRelevant:null,ariaRequired:$,ariaRoleDescription:q,ariaRowCount:w,ariaRowIndex:w,ariaRowSpan:w,ariaSelected:$,ariaSetSize:w,ariaSort:null,ariaValueMax:w,ariaValueMin:w,ariaValueNow:w,ariaValueText:null,role:null},transform:(e,n)=>n==="role"?n:"aria-"+n.slice(4).toLowerCase()});function tt(e,n){return n in e?e[n]:n}function rt(e,n){return tt(e,n.toLowerCase())}const uo=be({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ve,acceptCharset:q,accessKey:q,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alt:null,as:null,async:M,autoCapitalize:null,autoComplete:q,autoFocus:M,autoPlay:M,blocking:q,capture:null,charSet:null,checked:M,cite:null,className:q,cols:w,colSpan:null,content:null,contentEditable:$,controls:M,controlsList:q,coords:w|ve,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M,defer:M,dir:null,dirName:null,disabled:M,download:Ge,draggable:$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M,formTarget:null,headers:q,height:w,hidden:Ge,high:w,href:null,hrefLang:null,htmlFor:q,httpEquiv:q,id:null,imageSizes:null,imageSrcSet:null,inert:M,inputMode:null,integrity:null,is:null,isMap:M,itemId:null,itemProp:q,itemRef:q,itemScope:M,itemType:q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M,low:w,manifest:null,max:null,maxLength:w,media:null,method:null,min:null,minLength:w,multiple:M,muted:M,name:null,nonce:null,noModule:M,noValidate:M,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:M,optimum:w,pattern:null,ping:q,placeholder:null,playsInline:M,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M,referrerPolicy:null,rel:q,required:M,reversed:M,rows:w,rowSpan:w,sandbox:q,scope:null,scoped:M,seamless:M,selected:M,shadowRootClonable:M,shadowRootDelegatesFocus:M,shadowRootMode:null,shape:null,size:w,sizes:null,slot:null,span:w,spellCheck:$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:w,step:null,style:null,tabIndex:w,target:null,title:null,translate:null,type:null,typeMustMatch:M,useMap:null,value:$,width:w,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:q,axis:null,background:null,bgColor:null,border:w,borderColor:null,bottomMargin:w,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M,declare:M,event:null,face:null,frame:null,frameBorder:null,hSpace:w,leftMargin:w,link:null,longDesc:null,lowSrc:null,marginHeight:w,marginWidth:w,noResize:M,noHref:M,noShade:M,noWrap:M,object:null,profile:null,prompt:null,rev:null,rightMargin:w,rules:null,scheme:null,scrolling:$,standby:null,summary:null,text:null,topMargin:w,valueType:null,version:null,vAlign:null,vLink:null,vSpace:w,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:M,disableRemotePlayback:M,prefix:null,property:null,results:w,security:null,unselectable:null},space:"html",transform:rt}),co=be({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:te,accentHeight:w,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:w,amplitude:w,arabicForm:null,ascent:w,attributeName:null,attributeType:null,azimuth:w,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:w,by:null,calcMode:null,capHeight:w,className:q,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:w,diffuseConstant:w,direction:null,display:null,dur:null,divisor:w,dominantBaseline:null,download:M,dx:null,dy:null,edgeMode:null,editable:null,elevation:w,enableBackground:null,end:null,event:null,exponent:w,externalResourcesRequired:null,fill:null,fillOpacity:w,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ve,g2:ve,glyphName:ve,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:w,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:w,horizOriginX:w,horizOriginY:w,id:null,ideographic:w,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:w,k:w,k1:w,k2:w,k3:w,k4:w,kernelMatrix:te,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:w,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:w,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:w,overlineThickness:w,paintOrder:null,panose1:null,path:null,pathLength:w,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:w,pointsAtY:w,pointsAtZ:w,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:te,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:te,rev:te,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:te,requiredFeatures:te,requiredFonts:te,requiredFormats:te,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:w,specularExponent:w,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:w,strikethroughThickness:w,string:null,stroke:null,strokeDashArray:te,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:w,strokeOpacity:w,strokeWidth:null,style:null,surfaceScale:w,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:te,tabIndex:w,tableValues:null,target:null,targetX:w,targetY:w,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:te,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:w,underlineThickness:w,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:w,values:null,vAlphabetic:w,vMathematical:w,vectorEffect:null,vHanging:w,vIdeographic:w,version:null,vertAdvY:w,vertOriginX:w,vertOriginY:w,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:w,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tt}),ot=be({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,n)=>"xlink:"+n.slice(5).toLowerCase()}),it=be({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:rt}),lt=be({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase()}),fo={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},po=/[A-Z]/g,st=/-[a-z]/g,ho=/^data[-\w.:]+$/i;function at(e,n){const t=je(n);let r=n,o=Z;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ho.test(n)){if(n.charAt(4)==="-"){const i=n.slice(5).replace(st,go);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=n.slice(4);if(!st.test(i)){let l=i.replace(po,mo);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}o=tn}return new o(r,n)}function mo(e){return"-"+e.toLowerCase()}function go(e){return e.charAt(1).toUpperCase()}const ut=Gn([nt,uo,ot,it,lt],"html"),Be=Gn([nt,co,ot,it,lt],"svg");function yo(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function ct(e){return e.join(" ").trim()}const ko=Qn(eo()),ft=pt("end"),rn=pt("start");function pt(e){return function(n){const t=n&&n.position&&n.position[e]||{};if(typeof t.line=="number"&&t.line>0&&typeof t.column=="number"&&t.column>0)return{line:t.line,column:t.column,offset:typeof t.offset=="number"&&t.offset>-1?t.offset:void 0}}}function De(e){return e&&typeof e=="object"?"position"in e||"type"in e?ht(e.position):"start"in e||"end"in e?ht(e):"line"in e||"column"in e?on(e):"":""}function on(e){return dt(e&&e.line)+":"+dt(e&&e.column)}function ht(e){return on(e&&e.start)+"-"+on(e&&e.end)}function dt(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let o="",i={},l=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),typeof n=="string"?o=n:!i.cause&&n&&(l=!0,o=n.message,i.cause=n),!i.ruleId&&!i.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?i.ruleId=r:(i.source=r.slice(0,c),i.ruleId=r.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=a?a.line:void 0,this.name=De(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}K.prototype.file="",K.prototype.name="",K.prototype.reason="",K.prototype.message="",K.prototype.stack="",K.prototype.column=void 0,K.prototype.line=void 0,K.prototype.ancestors=void 0,K.prototype.cause=void 0,K.prototype.fatal=void 0,K.prototype.place=void 0,K.prototype.ruleId=void 0,K.prototype.source=void 0;const ln={}.hasOwnProperty,xo=new Map,vo=/[A-Z]/g,bo=new Set(["table","tbody","thead","tfoot","tr"]),wo=new Set(["td","th"]),mt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function So(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=(function(l,a){return c;function c(u,s,f,p){const h=Array.isArray(f.children),g=rn(u);return a(s,f,p,h,{columnNumber:g?g.column-1:void 0,fileName:l,lineNumber:g?g.line:void 0},void 0)}})(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=(function(l,a,c){return u;function u(s,f,p,h){const g=Array.isArray(p.children)?c:a;return h?g(f,p,h):g(f,p)}})(0,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Be:ut,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},i=gt(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function gt(e,n,t){return n.type==="element"?(function(r,o,i){const l=r.schema;let a=l;o.tagName.toLowerCase()==="svg"&&l.space==="html"&&(a=Be,r.schema=a),r.ancestors.push(o);const c=kt(r,o.tagName,!1),u=(function(f,p){const h={};let g,b;for(b in p.properties)if(b!=="children"&&ln.call(p.properties,b)){const k=Co(f,b,p.properties[b]);if(k){const[S,E]=k;f.tableCellAlignToStyle&&S==="align"&&typeof E=="string"&&wo.has(p.tagName)?g=E:h[S]=E}}return g&&((h.style||(h.style={}))[f.stylePropertyNameCase==="css"?"text-align":"textAlign"]=g),h})(r,o);let s=an(r,o);return bo.has(o.tagName)&&(s=s.filter(function(f){return typeof f!="string"||!Jn(f)})),yt(r,u,c,o),sn(u,s),r.ancestors.pop(),r.schema=l,r.create(o,c,u,i)})(e,n,t):n.type==="mdxFlowExpression"||n.type==="mdxTextExpression"?(function(r,o){if(o.data&&o.data.estree&&r.evaluater){const i=o.data.estree.body[0];return i.type,r.evaluater.evaluateExpression(i.expression)}Le(r,o.position)})(e,n):n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?(function(r,o,i){const l=r.schema;let a=l;o.name==="svg"&&l.space==="html"&&(a=Be,r.schema=a),r.ancestors.push(o);const c=o.name===null?r.Fragment:kt(r,o.name,!0),u=(function(f,p){const h={};for(const g of p.attributes)if(g.type==="mdxJsxExpressionAttribute")if(g.data&&g.data.estree&&f.evaluater){const b=g.data.estree.body[0];b.type;const k=b.expression;k.type;const S=k.properties[0];S.type,Object.assign(h,f.evaluater.evaluateExpression(S.argument))}else Le(f,p.position);else{const b=g.name;let k;if(g.value&&typeof g.value=="object")if(g.value.data&&g.value.data.estree&&f.evaluater){const S=g.value.data.estree.body[0];S.type,k=f.evaluater.evaluateExpression(S.expression)}else Le(f,p.position);else k=g.value===null||g.value;h[b]=k}return h})(r,o),s=an(r,o);return yt(r,u,c,o),sn(u,s),r.ancestors.pop(),r.schema=l,r.create(o,c,u,i)})(e,n,t):n.type==="mdxjsEsm"?(function(r,o){if(o.data&&o.data.estree&&r.evaluater)return r.evaluater.evaluateProgram(o.data.estree);Le(r,o.position)})(e,n):n.type==="root"?(function(r,o,i){const l={};return sn(l,an(r,o)),r.create(o,r.Fragment,l,i)})(e,n,t):n.type==="text"?(function(r,o){return o.value})(0,n):void 0}function yt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function sn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function an(e,n){const t=[];let r=-1;const o=e.passKeys?new Map:xo;for(;++r<n.children.length;){const i=n.children[r];let l;if(e.passKeys){const c=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(c){const u=o.get(c)||0;l=c+"-"+u,o.set(c,u+1)}}const a=gt(e,i,l);a!==void 0&&t.push(a)}return t}function Co(e,n,t){const r=at(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Kn(t):ct(t)),r.property==="style"){let o=typeof t=="object"?t:(function(i,l){try{return ko(l,{reactCompat:!0})}catch(a){if(i.ignoreInvalidStyle)return{};const c=a,u=new K("Cannot parse `style` attribute",{ancestors:i.ancestors,cause:c,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=i.filePath||void 0,u.url=mt+"#cannot-parse-style-attribute",u}})(e,String(t));return e.stylePropertyNameCase==="css"&&(o=(function(i){const l={};let a;for(a in i)ln.call(i,a)&&(l[Io(a)]=i[a]);return l})(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?fo[r.property]||r.property:r.attribute,t]}}function kt(e,n,t){let r;if(t)if(n.includes(".")){const o=n.split(".");let i,l=-1;for(;++l<o.length;){const a=Xn(o[l])?{type:"Identifier",name:o[l]}:{type:"Literal",value:o[l]};i=i?{type:"MemberExpression",object:i,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=i}else r=Xn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};else r={type:"Literal",value:n};if(r.type==="Literal"){const o=r.value;return ln.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Le(e)}function Le(e,n){const t=new K("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=mt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Io(e){let n=e.replace(vo,Eo);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Eo(e){return"-"+e.toLowerCase()}const To={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"]},He={};function un(e,n){return xt(e,typeof He.includeImageAlt!="boolean"||He.includeImageAlt,typeof He.includeHtml!="boolean"||He.includeHtml)}function xt(e,n,t){if((function(r){return!!(r&&typeof r=="object")})(e)){if("value"in e)return e.type!=="html"||t?e.value:"";if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return vt(e.children,n,t)}return Array.isArray(e)?vt(e,n,t):""}function vt(e,n,t){const r=[];let o=-1;for(;++o<e.length;)r[o]=xt(e[o],n,t);return r.join("")}const bt=document.createElement("i");function cn(e){const n="&"+e+";";bt.innerHTML=n;const t=bt.textContent;return(t.charCodeAt(t.length-1)!==59||e==="semi")&&t!==n&&t}function re(e,n,t,r){const o=e.length;let i,l=0;if(n=n<0?-n>o?0:o+n:n>o?o:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),e.splice(...i);else for(t&&e.splice(n,t);l<r.length;)i=r.slice(l,l+1e4),i.unshift(n,0),e.splice(...i),l+=1e4,n+=1e4}function ie(e,n){return e.length>0?(re(e,e.length,0,n),e):n}const wt={}.hasOwnProperty;function St(e){const n={};let t=-1;for(;++t<e.length;)Ao(n,e[t]);return n}function Ao(e,n){let t;for(t in n){const r=(wt.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let i;if(o)for(i in o){wt.call(r,i)||(r[i]=[]);const l=o[i];Po(r[i],Array.isArray(l)?l:l?[l]:[])}}}function Po(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);re(e,0,0,r)}function Ct(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||!(65535&~t)||(65535&t)==65534||t>1114111?"\uFFFD":String.fromCodePoint(t)}function ae(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const J=de(/[A-Za-z]/),X=de(/[\dA-Za-z]/),Do=de(/[#-'*+\--9=?A-Z^-~]/);function Ue(e){return e!==null&&(e<32||e===127)}const fn=de(/\d/),Lo=de(/[\dA-Fa-f]/),Fo=de(/[!-/:-@[-`{-~]/);function D(e){return e!==null&&e<-2}function V(e){return e!==null&&(e<0||e===32)}function N(e){return e===-2||e===-1||e===32}const Ve=de(new RegExp("\\p{P}|\\p{S}","u")),ye=de(/\s/);function de(e){return function(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function we(e){const n=[];let t=-1,r=0,o=0;for(;++t<e.length;){const i=e.charCodeAt(t);let l="";if(i===37&&X(e.charCodeAt(t+1))&&X(e.charCodeAt(t+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const a=e.charCodeAt(t+1);i<56320&&a>56319&&a<57344?(l=String.fromCharCode(i,a),o=1):l="\uFFFD"}else l=String.fromCharCode(i);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+o+1,l=""),o&&(t+=o,o=0)}return n.join("")+e.slice(r)}function j(e,n,t,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(a){return N(a)?(e.enter(t),l(a)):n(a)};function l(a){return N(a)&&i++<o?(e.consume(a),l):(e.exit(t),n(a))}}const Oo={tokenize:function(e){const n=e.attempt(this.parser.constructs.contentInitial,function(i){return i===null?void e.consume(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),j(e,n,"linePrefix"))},function(i){return e.enter("paragraph"),r(i)});let t;return n;function r(i){const l=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=l),t=l,o(i)}function o(i){return i===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(i)):D(i)?(e.consume(i),e.exit("chunkText"),r):(e.consume(i),o)}}},zo={tokenize:function(e){const n=this,t=[];let r,o,i,l=0;return a;function a(y){if(l<t.length){const C=t[l];return n.containerState=C[1],e.attempt(C[0].continuation,c,u)(y)}return u(y)}function c(y){if(l++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,r&&E();const C=n.events.length;let T,I=C;for(;I--;)if(n.events[I][0]==="exit"&&n.events[I][1].type==="chunkFlow"){T=n.events[I][1].end;break}S(l);let F=C;for(;F<n.events.length;)n.events[F][1].end={...T},F++;return re(n.events,I+1,0,n.events.slice(C)),n.events.length=F,u(y)}return a(y)}function u(y){if(l===t.length){if(!r)return p(y);if(r.currentConstruct&&r.currentConstruct.concrete)return g(y);n.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(It,s,f)(y)}function s(y){return r&&E(),S(l),p(y)}function f(y){return n.parser.lazy[n.now().line]=l!==t.length,i=n.now().offset,g(y)}function p(y){return n.containerState={},e.attempt(It,h,g)(y)}function h(y){return l++,t.push([n.currentConstruct,n.containerState]),p(y)}function g(y){return y===null?(r&&E(),S(0),void e.consume(y)):(r=r||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),b(y))}function b(y){return y===null?(k(e.exit("chunkFlow"),!0),S(0),void e.consume(y)):D(y)?(e.consume(y),k(e.exit("chunkFlow")),l=0,n.interrupt=void 0,a):(e.consume(y),b)}function k(y,C){const T=n.sliceStream(y);if(C&&T.push(null),y.previous=o,o&&(o.next=y),o=y,r.defineSkip(y.start),r.write(T),n.parser.lazy[y.start.line]){let I=r.events.length;for(;I--;)if(r.events[I][1].start.offset<i&&(!r.events[I][1].end||r.events[I][1].end.offset>i))return;const F=n.events.length;let x,R,P=F;for(;P--;)if(n.events[P][0]==="exit"&&n.events[P][1].type==="chunkFlow"){if(x){R=n.events[P][1].end;break}x=!0}for(S(l),I=F;I<n.events.length;)n.events[I][1].end={...R},I++;re(n.events,P+1,0,n.events.slice(F)),n.events.length=I}}function S(y){let C=t.length;for(;C-- >y;){const T=t[C];n.containerState=T[1],T[0].exit.call(n,e)}t.length=y}function E(){r.write([null]),o=void 0,r=void 0,n.containerState._closeFlow=void 0}}},It={tokenize:function(e,n,t){return j(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Se(e){return e===null||V(e)||ye(e)?1:Ve(e)?2:void 0}function qe(e,n,t){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(n=i(n,t),r.push(i))}return n}const pn={name:"attention",resolveAll:function(e,n){let t,r,o,i,l,a,c,u,s=-1;for(;++s<e.length;)if(e[s][0]==="enter"&&e[s][1].type==="attentionSequence"&&e[s][1]._close){for(t=s;t--;)if(e[t][0]==="exit"&&e[t][1].type==="attentionSequence"&&e[t][1]._open&&n.sliceSerialize(e[t][1]).charCodeAt(0)===n.sliceSerialize(e[s][1]).charCodeAt(0)){if((e[t][1]._close||e[s][1]._open)&&(e[s][1].end.offset-e[s][1].start.offset)%3&&!((e[t][1].end.offset-e[t][1].start.offset+e[s][1].end.offset-e[s][1].start.offset)%3))continue;a=e[t][1].end.offset-e[t][1].start.offset>1&&e[s][1].end.offset-e[s][1].start.offset>1?2:1;const f={...e[t][1].end},p={...e[s][1].start};Et(f,-a),Et(p,a),i={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[t][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[s][1].start},end:p},o={type:a>1?"strongText":"emphasisText",start:{...e[t][1].end},end:{...e[s][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...l.end}},e[t][1].end={...i.start},e[s][1].start={...l.end},c=[],e[t][1].end.offset-e[t][1].start.offset&&(c=ie(c,[["enter",e[t][1],n],["exit",e[t][1],n]])),c=ie(c,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",o,n]]),c=ie(c,qe(n.parser.constructs.insideSpan.null,e.slice(t+1,s),n)),c=ie(c,[["exit",o,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[s][1].end.offset-e[s][1].start.offset?(u=2,c=ie(c,[["enter",e[s][1],n],["exit",e[s][1],n]])):u=0,re(e,t-1,s-t+3,c),s=t+c.length-u-2;break}}for(s=-1;++s<e.length;)e[s][1].type==="attentionSequence"&&(e[s][1].type="data");return e},tokenize:function(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Se(r);let i;return function(a){return i=a,e.enter("attentionSequence"),l(a)};function l(a){if(a===i)return e.consume(a),l;const c=e.exit("attentionSequence"),u=Se(a),s=!u||u===2&&o||t.includes(a),f=!o||o===2&&u||t.includes(r);return c._open=!!(i===42?s:s&&(o||!f)),c._close=!!(i===42?f:f&&(u||!s)),n(a)}}};function Et(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Mo={name:"autolink",tokenize:function(e,n,t){let r=0;return function(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(p){return J(p)?(e.consume(p),i):p===64?t(p):c(p)}function i(p){return p===43||p===45||p===46||X(p)?(r=1,l(p)):c(p)}function l(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||X(p))&&r++<32?(e.consume(p),l):(r=0,c(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||Ue(p)?t(p):(e.consume(p),a)}function c(p){return p===64?(e.consume(p),u):Do(p)?(e.consume(p),c):t(p)}function u(p){return X(p)?s(p):t(p)}function s(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):f(p)}function f(p){if((p===45||X(p))&&r++<63){const h=p===45?f:s;return e.consume(p),h}return t(p)}}},Fe={partial:!0,tokenize:function(e,n,t){return function(o){return N(o)?j(e,r,"linePrefix")(o):r(o)};function r(o){return o===null||D(o)?n(o):t(o)}}},Tt={continuation:{tokenize:function(e,n,t){const r=this;return function(i){return N(i)?j(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)};function o(i){return e.attempt(Tt,n,t)(i)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,n,t){const r=this;return function(i){if(i===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return t(i)};function o(i){return N(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(i))}}},At={name:"characterEscape",tokenize:function(e,n,t){return function(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r};function r(o){return Fo(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}},Pt={name:"characterReference",tokenize:function(e,n,t){const r=this;let o,i,l=0;return function(s){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),a};function a(s){return s===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(s),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,i=X,u(s))}function c(s){return s===88||s===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(s),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Lo,u):(e.enter("characterReferenceValue"),o=7,i=fn,u(s))}function u(s){if(s===59&&l){const f=e.exit("characterReferenceValue");return i!==X||cn(r.sliceSerialize(f))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):t(s)}return i(s)&&l++<o?(e.consume(s),u):t(s)}}},Dt={partial:!0,tokenize:function(e,n,t){const r=this;return function(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)};function o(i){return r.parser.lazy[r.now().line]?t(i):n(i)}}},Lt={concrete:!0,name:"codeFenced",tokenize:function(e,n,t){const r=this,o={partial:!0,tokenize:function(y,C,T){let I=0;return F;function F(A){return y.enter("lineEnding"),y.consume(A),y.exit("lineEnding"),x}function x(A){return y.enter("codeFencedFence"),N(A)?j(y,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):R(A)}function R(A){return A===i?(y.enter("codeFencedFenceSequence"),P(A)):T(A)}function P(A){return A===i?(I++,y.consume(A),P):I>=a?(y.exit("codeFencedFenceSequence"),N(A)?j(y,z,"whitespace")(A):z(A)):T(A)}function z(A){return A===null||D(A)?(y.exit("codeFencedFence"),C(A)):T(A)}}};let i,l=0,a=0;return function(y){return(function(C){const T=r.events[r.events.length-1];return l=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,i=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(C)})(y)};function c(y){return y===i?(a++,e.consume(y),c):a<3?t(y):(e.exit("codeFencedFenceSequence"),N(y)?j(e,u,"whitespace")(y):u(y))}function u(y){return y===null||D(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(Dt,h,E)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),s(y))}function s(y){return y===null||D(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(y)):N(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),j(e,f,"whitespace")(y)):y===96&&y===i?t(y):(e.consume(y),s)}function f(y){return y===null||D(y)?u(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||D(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(y)):y===96&&y===i?t(y):(e.consume(y),p)}function h(y){return e.attempt(o,E,g)(y)}function g(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b}function b(y){return l>0&&N(y)?j(e,k,"linePrefix",l+1)(y):k(y)}function k(y){return y===null||D(y)?e.check(Dt,h,E)(y):(e.enter("codeFlowValue"),S(y))}function S(y){return y===null||D(y)?(e.exit("codeFlowValue"),k(y)):(e.consume(y),S)}function E(y){return e.exit("codeFenced"),n(y)}}},hn={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(c){return e.enter("codeIndented"),j(e,o,"linePrefix",5)(c)};function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?i(c):t(c)}function i(c){return c===null?a(c):D(c)?e.attempt(Ro,i,a)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||D(c)?(e.exit("codeFlowValue"),i(c)):(e.consume(c),l)}function a(c){return e.exit("codeIndented"),n(c)}}},Ro={partial:!0,tokenize:function(e,n,t){const r=this;return o;function o(l){return r.parser.lazy[r.now().line]?t(l):D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):j(e,i,"linePrefix",5)(l)}function i(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):D(l)?o(l):t(l)}}},_o={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let n,t,r=e.length-4,o=3;if(!(e[o][1].type!=="lineEnding"&&e[o][1].type!=="space"||e[r][1].type!=="lineEnding"&&e[r][1].type!=="space")){for(n=o;++n<r;)if(e[n][1].type==="codeTextData"){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}}for(n=o-1,r++;++n<=r;)t===void 0?n!==r&&e[n][1].type!=="lineEnding"&&(t=n):n!==r&&e[n][1].type!=="lineEnding"||(e[t][1].type="codeTextData",n!==t+2&&(e[t][1].end=e[n-1][1].end,e.splice(t+2,n-t-2),r-=n-t-2,n=t+2),t=void 0);return e},tokenize:function(e,n,t){let r,o,i=0;return function(s){return e.enter("codeText"),e.enter("codeTextSequence"),l(s)};function l(s){return s===96?(e.consume(s),i++,l):(e.exit("codeTextSequence"),a(s))}function a(s){return s===null?t(s):s===32?(e.enter("space"),e.consume(s),e.exit("space"),a):s===96?(o=e.enter("codeTextSequence"),r=0,u(s)):D(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(s))}function c(s){return s===null||s===32||s===96||D(s)?(e.exit("codeTextData"),a(s)):(e.consume(s),c)}function u(s){return s===96?(e.consume(s),r++,u):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(s)):(o.type="codeTextData",c(s))}}};class No{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const o=t||0;this.setCursor(Math.trunc(n));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&Oe(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Oe(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Oe(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Oe(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Oe(this.left,t.reverse())}}}function Oe(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Ft(e){const n={};let t,r,o,i,l,a,c,u=-1;const s=new No(e);for(;++u<s.length;){for(;u in n;)u=n[u];if(t=s.get(u),u&&t[1].type==="chunkFlow"&&s.get(u-1)[1].type==="listItemPrefix"&&(a=t[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(t[0]==="enter")t[1].contentType&&(Object.assign(n,jo(s,u)),u=n[u],c=!0);else if(t[1]._container){for(o=u,r=void 0;o--;)if(i=s.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(s.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if(i[1].type!=="linePrefix"&&i[1].type!=="listItemIndent")break;r&&(t[1].end={...s.get(r)[1].start},l=s.slice(r,u),l.unshift(t),s.splice(r,u-r+1,l))}}return re(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!c}function jo(e,n){const t=e.get(n)[1],r=e.get(n)[2];let o=n-1;const i=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,c=[],u={};let s,f,p=-1,h=t,g=0,b=0;const k=[b];for(;h;){for(;e.get(++o)[1]!==h;);i.push(o),h._tokenizer||(s=r.sliceStream(h),h.next||s.push(null),f&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(s),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(b=p+1,k.push(b),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):k.pop(),p=k.length;p--;){const S=a.slice(k[p],k[p+1]),E=i.pop();c.push([E,E+S.length-1]),e.splice(E,2,S)}for(c.reverse(),p=-1;++p<c.length;)u[g+c[p][0]]=g+c[p][1],g+=c[p][1]-c[p][0]-1;return u}const Bo={resolve:function(e){return Ft(e),e},tokenize:function(e,n){let t;return function(l){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),r(l)};function r(l){return l===null?o(l):D(l)?e.check(Ho,i,o)(l):(e.consume(l),r)}function o(l){return e.exit("chunkContent"),e.exit("content"),n(l)}function i(l){return e.consume(l),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,r}}},Ho={partial:!0,tokenize:function(e,n,t){const r=this;return function(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),j(e,o,"linePrefix")};function o(i){if(i===null||D(i))return t(i);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(i):e.interrupt(r.parser.constructs.flow,t,n)(i)}}};function Ot(e,n,t,r,o,i,l,a,c){const u=c||Number.POSITIVE_INFINITY;let s=0;return function(k){return k===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(k),e.exit(i),f):k===null||k===32||k===41||Ue(k)?t(k):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(k))};function f(k){return k===62?(e.enter(i),e.consume(k),e.exit(i),e.exit(o),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(a),f(k)):k===null||k===60||D(k)?t(k):(e.consume(k),k===92?h:p)}function h(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function g(k){return s||k!==null&&k!==41&&!V(k)?s<u&&k===40?(e.consume(k),s++,g):k===41?(e.consume(k),s--,g):k===null||k===32||k===40||Ue(k)?t(k):(e.consume(k),k===92?b:g):(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(k))}function b(k){return k===40||k===41||k===92?(e.consume(k),g):g(k)}}function zt(e,n,t,r,o,i){const l=this;let a,c=0;return function(p){return e.enter(r),e.enter(o),e.consume(p),e.exit(o),e.enter(i),u};function u(p){return c>999||p===null||p===91||p===93&&!a||p===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?t(p):p===93?(e.exit(i),e.enter(o),e.consume(p),e.exit(o),e.exit(r),n):D(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),s(p))}function s(p){return p===null||p===91||p===93||D(p)||c++>999?(e.exit("chunkString"),u(p)):(e.consume(p),a||(a=!N(p)),p===92?f:s)}function f(p){return p===91||p===92||p===93?(e.consume(p),c++,s):s(p)}}function Mt(e,n,t,r,o,i){let l;return function(f){return f===34||f===39||f===40?(e.enter(r),e.enter(o),e.consume(f),e.exit(o),l=f===40?41:f,a):t(f)};function a(f){return f===l?(e.enter(o),e.consume(f),e.exit(o),e.exit(r),n):(e.enter(i),c(f))}function c(f){return f===l?(e.exit(i),a(l)):f===null?t(f):D(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),j(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===l||f===null||D(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?s:u)}function s(f){return f===l||f===92?(e.consume(f),u):u(f)}}function ze(e,n){let t;return function r(o){return D(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t=!0,r):N(o)?j(e,r,t?"linePrefix":"lineSuffix")(o):n(o)}}const Uo={name:"definition",tokenize:function(e,n,t){const r=this;let o;return function(f){return e.enter("definition"),(function(p){return zt.call(r,e,i,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)})(f)};function i(f){return o=ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):t(f)}function l(f){return V(f)?ze(e,a)(f):a(f)}function a(f){return Ot(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(Vo,u,u)(f)}function u(f){return N(f)?j(e,s,"whitespace")(f):s(f)}function s(f){return f===null||D(f)?(e.exit("definition"),r.parser.defined.push(o),n(f)):t(f)}}},Vo={partial:!0,tokenize:function(e,n,t){return function(l){return V(l)?ze(e,r)(l):t(l)};function r(l){return Mt(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return N(l)?j(e,i,"whitespace")(l):i(l)}function i(l){return l===null||D(l)?n(l):t(l)}}},qo={name:"hardBreakEscape",tokenize:function(e,n,t){return function(o){return e.enter("hardBreakEscape"),e.consume(o),r};function r(o){return D(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}},Wo={name:"headingAtx",resolve:function(e,n){let t,r,o=e.length-2,i=3;return e[i][1].type==="whitespace"&&(i+=2),o-2>i&&e[o][1].type==="whitespace"&&(o-=2),e[o][1].type==="atxHeadingSequence"&&(i===o-1||o-4>i&&e[o-2][1].type==="whitespace")&&(o-=i+1===o?2:4),o>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},re(e,i,o-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]])),e},tokenize:function(e,n,t){let r=0;return function(c){return e.enter("atxHeading"),(function(u){return e.enter("atxHeadingSequence"),o(u)})(c)};function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||V(c)?(e.exit("atxHeadingSequence"),i(c)):t(c)}function i(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||D(c)?(e.exit("atxHeading"),n(c)):N(c)?j(e,i,"whitespace")(c):(e.enter("atxHeadingText"),a(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),i(c))}function a(c){return c===null||c===35||V(c)?(e.exit("atxHeadingText"),i(c)):(e.consume(c),a)}}},$o=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Rt=["pre","script","style","textarea"],Yo={concrete:!0,name:"htmlFlow",resolveTo:function(e){let n=e.length;for(;n--&&(e[n][0]!=="enter"||e[n][1].type!=="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e},tokenize:function(e,n,t){const r=this;let o,i,l,a,c;return function(m){return(function(le){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(le),u})(m)};function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),i=!0,h):m===63?(e.consume(m),o=3,r.interrupt?n:Q):J(m)?(e.consume(m),l=String.fromCharCode(m),g):t(m)}function s(m){return m===45?(e.consume(m),o=2,f):m===91?(e.consume(m),o=5,a=0,p):J(m)?(e.consume(m),o=4,r.interrupt?n:Q):t(m)}function f(m){return m===45?(e.consume(m),r.interrupt?n:Q):t(m)}function p(m){return m==="CDATA[".charCodeAt(a++)?(e.consume(m),a===6?r.interrupt?n:P:p):t(m)}function h(m){return J(m)?(e.consume(m),l=String.fromCharCode(m),g):t(m)}function g(m){if(m===null||m===47||m===62||V(m)){const le=m===47,Ee=l.toLowerCase();return le||i||!Rt.includes(Ee)?$o.includes(l.toLowerCase())?(o=6,le?(e.consume(m),b):r.interrupt?n(m):P(m)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):i?k(m):S(m)):(o=1,r.interrupt?n(m):P(m))}return m===45||X(m)?(e.consume(m),l+=String.fromCharCode(m),g):t(m)}function b(m){return m===62?(e.consume(m),r.interrupt?n:P):t(m)}function k(m){return N(m)?(e.consume(m),k):x(m)}function S(m){return m===47?(e.consume(m),x):m===58||m===95||J(m)?(e.consume(m),E):N(m)?(e.consume(m),S):x(m)}function E(m){return m===45||m===46||m===58||m===95||X(m)?(e.consume(m),E):y(m)}function y(m){return m===61?(e.consume(m),C):N(m)?(e.consume(m),y):S(m)}function C(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),c=m,T):N(m)?(e.consume(m),C):I(m)}function T(m){return m===c?(e.consume(m),c=null,F):m===null||D(m)?t(m):(e.consume(m),T)}function I(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||V(m)?y(m):(e.consume(m),I)}function F(m){return m===47||m===62||N(m)?S(m):t(m)}function x(m){return m===62?(e.consume(m),R):t(m)}function R(m){return m===null||D(m)?P(m):N(m)?(e.consume(m),R):t(m)}function P(m){return m===45&&o===2?(e.consume(m),Y):m===60&&o===1?(e.consume(m),W):m===62&&o===4?(e.consume(m),d):m===63&&o===3?(e.consume(m),Q):m===93&&o===5?(e.consume(m),oe):!D(m)||o!==6&&o!==7?m===null||D(m)?(e.exit("htmlFlowData"),z(m)):(e.consume(m),P):(e.exit("htmlFlowData"),e.check(Qo,ee,z)(m))}function z(m){return e.check(Ko,A,ee)(m)}function A(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),B}function B(m){return m===null||D(m)?z(m):(e.enter("htmlFlowData"),P(m))}function Y(m){return m===45?(e.consume(m),Q):P(m)}function W(m){return m===47?(e.consume(m),l="",_):P(m)}function _(m){if(m===62){const le=l.toLowerCase();return Rt.includes(le)?(e.consume(m),d):P(m)}return J(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),_):P(m)}function oe(m){return m===93?(e.consume(m),Q):P(m)}function Q(m){return m===62?(e.consume(m),d):m===45&&o===2?(e.consume(m),Q):P(m)}function d(m){return m===null||D(m)?(e.exit("htmlFlowData"),ee(m)):(e.consume(m),d)}function ee(m){return e.exit("htmlFlow"),n(m)}}},Qo={partial:!0,tokenize:function(e,n,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Fe,n,t)}}},Ko={partial:!0,tokenize:function(e,n,t){const r=this;return function(i){return D(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):t(i)};function o(i){return r.parser.lazy[r.now().line]?t(i):n(i)}}},Xo={name:"htmlText",tokenize:function(e,n,t){const r=this;let o,i,l;return function(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),a};function a(d){return d===33?(e.consume(d),c):d===47?(e.consume(d),C):d===63?(e.consume(d),E):J(d)?(e.consume(d),F):t(d)}function c(d){return d===45?(e.consume(d),u):d===91?(e.consume(d),i=0,h):J(d)?(e.consume(d),S):t(d)}function u(d){return d===45?(e.consume(d),p):t(d)}function s(d){return d===null?t(d):d===45?(e.consume(d),f):D(d)?(l=s,_(d)):(e.consume(d),s)}function f(d){return d===45?(e.consume(d),p):s(d)}function p(d){return d===62?W(d):d===45?f(d):s(d)}function h(d){return d==="CDATA[".charCodeAt(i++)?(e.consume(d),i===6?g:h):t(d)}function g(d){return d===null?t(d):d===93?(e.consume(d),b):D(d)?(l=g,_(d)):(e.consume(d),g)}function b(d){return d===93?(e.consume(d),k):g(d)}function k(d){return d===62?W(d):d===93?(e.consume(d),k):g(d)}function S(d){return d===null||d===62?W(d):D(d)?(l=S,_(d)):(e.consume(d),S)}function E(d){return d===null?t(d):d===63?(e.consume(d),y):D(d)?(l=E,_(d)):(e.consume(d),E)}function y(d){return d===62?W(d):E(d)}function C(d){return J(d)?(e.consume(d),T):t(d)}function T(d){return d===45||X(d)?(e.consume(d),T):I(d)}function I(d){return D(d)?(l=I,_(d)):N(d)?(e.consume(d),I):W(d)}function F(d){return d===45||X(d)?(e.consume(d),F):d===47||d===62||V(d)?x(d):t(d)}function x(d){return d===47?(e.consume(d),W):d===58||d===95||J(d)?(e.consume(d),R):D(d)?(l=x,_(d)):N(d)?(e.consume(d),x):W(d)}function R(d){return d===45||d===46||d===58||d===95||X(d)?(e.consume(d),R):P(d)}function P(d){return d===61?(e.consume(d),z):D(d)?(l=P,_(d)):N(d)?(e.consume(d),P):x(d)}function z(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),o=d,A):D(d)?(l=z,_(d)):N(d)?(e.consume(d),z):(e.consume(d),B)}function A(d){return d===o?(e.consume(d),o=void 0,Y):d===null?t(d):D(d)?(l=A,_(d)):(e.consume(d),A)}function B(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||V(d)?x(d):(e.consume(d),B)}function Y(d){return d===47||d===62||V(d)?x(d):t(d)}function W(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function _(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),oe}function oe(d){return N(d)?j(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):Q(d)}function Q(d){return e.enter("htmlTextData"),l(d)}}},dn={name:"labelEnd",resolveAll:function(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",n+=o}}return e.length!==t.length&&re(e,0,e.length,t),e},resolveTo:function(e,n){let t,r,o,i,l=e.length,a=0;for(;l--;)if(t=e[l][1],r){if(t.type==="link"||t.type==="labelLink"&&t._inactive)break;e[l][0]==="enter"&&t.type==="labelLink"&&(t._inactive=!0)}else if(o){if(e[l][0]==="enter"&&(t.type==="labelImage"||t.type==="labelLink")&&!t._balanced&&(r=l,t.type!=="labelLink")){a=2;break}}else t.type==="labelEnd"&&(o=l);const c={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},s={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",c,n],["enter",u,n]],i=ie(i,e.slice(r+1,r+a+3)),i=ie(i,[["enter",s,n]]),i=ie(i,qe(n.parser.constructs.insideSpan.null,e.slice(r+a+4,o-3),n)),i=ie(i,[["exit",s,n],e[o-2],e[o-1],["exit",u,n]]),i=ie(i,e.slice(o+1)),i=ie(i,[["exit",c,n]]),re(e,r,e.length,i),e},tokenize:function(e,n,t){const r=this;let o,i,l=r.events.length;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){o=r.events[l][1];break}return function(f){return o?o._inactive?s(f):(i=r.parser.defined.includes(ae(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),a):t(f)};function a(f){return f===40?e.attempt(Jo,u,i?u:s)(f):f===91?e.attempt(Zo,u,i?c:s)(f):i?u(f):s(f)}function c(f){return e.attempt(Go,u,s)(f)}function u(f){return n(f)}function s(f){return o._balanced=!0,t(f)}}},Jo={tokenize:function(e,n,t){return function(s){return e.enter("resource"),e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),r};function r(s){return V(s)?ze(e,o)(s):o(s)}function o(s){return s===41?u(s):Ot(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(s)}function i(s){return V(s)?ze(e,a)(s):u(s)}function l(s){return t(s)}function a(s){return s===34||s===39||s===40?Mt(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(s):u(s)}function c(s){return V(s)?ze(e,u)(s):u(s)}function u(s){return s===41?(e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),e.exit("resource"),n):t(s)}}},Zo={tokenize:function(e,n,t){const r=this;return function(l){return zt.call(r,e,o,i,"reference","referenceMarker","referenceString")(l)};function o(l){return r.parser.defined.includes(ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(l):t(l)}function i(l){return t(l)}}},Go={tokenize:function(e,n,t){return function(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r};function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}},ei={name:"labelStartImage",resolveAll:dn.resolveAll,tokenize:function(e,n,t){const r=this;return function(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o};function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),i):t(l)}function i(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}},ni={name:"labelStartLink",resolveAll:dn.resolveAll,tokenize:function(e,n,t){const r=this;return function(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),o};function o(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(i):n(i)}}},mn={name:"lineEnding",tokenize:function(e,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j(e,n,"linePrefix")}}},We={name:"thematicBreak",tokenize:function(e,n,t){let r,o=0;return function(a){return e.enter("thematicBreak"),(function(c){return r=c,i(c)})(a)};function i(a){return a===r?(e.enter("thematicBreakSequence"),l(a)):o>=3&&(a===null||D(a))?(e.exit("thematicBreak"),n(a)):t(a)}function l(a){return a===r?(e.consume(a),o++,l):(e.exit("thematicBreakSequence"),N(a)?j(e,i,"whitespace")(a):i(a))}}},G={continuation:{tokenize:function(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Fe,o,i);function o(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,j(e,n,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!N(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ri,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,j(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,n,t){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,l=0;return function(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:fn(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(We,t,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return t(p)};function a(p){return fn(p)&&++l<10?(e.consume(p),a):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):t(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Fe,r.interrupt?t:u,e.attempt(ti,f,s))}function u(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function s(p){return N(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):t(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}},ti={partial:!0,tokenize:function(e,n,t){const r=this;return j(e,function(o){const i=r.events[r.events.length-1];return!N(o)&&i&&i[1].type==="listItemPrefixWhitespace"?n(o):t(o)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ri={partial:!0,tokenize:function(e,n,t){const r=this;return j(e,function(o){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?n(o):t(o)},"listItemIndent",r.containerState.size+1)}},_t={name:"setextUnderline",resolveTo:function(e,n){let t,r,o,i=e.length;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){t=i;break}e[i][1].type==="paragraph"&&(r=i)}else e[i][1].type==="content"&&e.splice(i,1),o||e[i][1].type!=="definition"||(o=i);const l={type:"setextHeading",start:{...e[t][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,n]),e.splice(o+1,0,["exit",e[t][1],n]),e[t][1].end={...e[o][1].end}):e[t][1]=l,e.push(["exit",l,n]),e},tokenize:function(e,n,t){const r=this;let o;return function(a){let c,u=r.events.length;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){c=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),o=a,(function(s){return e.enter("setextHeadingLineSequence"),i(s)})(a)):t(a)};function i(a){return a===o?(e.consume(a),i):(e.exit("setextHeadingLineSequence"),N(a)?j(e,l,"lineSuffix")(a):l(a))}function l(a){return a===null||D(a)?(e.exit("setextHeadingLine"),n(a)):t(a)}}},oi={tokenize:function(e){const n=this,t=e.attempt(Fe,function(o){return o===null?void e.consume(o):(e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t)},e.attempt(this.parser.constructs.flowInitial,r,j(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Bo,r)),"linePrefix")));return t;function r(o){if(o!==null)return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(o)}}},ii={resolveAll:jt()},li=Nt("string"),si=Nt("text");function Nt(e){return{resolveAll:jt(e==="text"?ai:void 0),tokenize:function(n){const t=this,r=this.parser.constructs[e],o=n.attempt(r,i,l);return i;function i(u){return c(u)?o(u):l(u)}function l(u){if(u!==null)return n.enter("data"),n.consume(u),a;n.consume(u)}function a(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),a)}function c(u){if(u===null)return!0;const s=r[u];let f=-1;if(s)for(;++f<s.length;){const p=s[f];if(!p.previous||p.previous.call(t,t.previous))return!0}return!1}}}}function jt(e){return function(n,t){let r,o=-1;for(;++o<=n.length;)r===void 0?n[o]&&n[o][1].type==="data"&&(r=o,o++):n[o]&&n[o][1].type==="data"||(o!==r+2&&(n[r][1].end=n[o-1][1].end,n.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(n,t):n}}function ai(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],o=n.sliceStream(r);let i,l=o.length,a=-1,c=0;for(;l--;){const u=o[l];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)c++,a--;if(a)break;a=-1}else if(u===-2)i=!0,c++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(c=0),c){const u={type:t===e.length||i||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:r.start._bufferIndex+a,_index:r.start._index+l,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const ui={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:Tt},ci={91:Uo},fi={[-2]:hn,[-1]:hn,32:hn},pi={35:Wo,42:We,45:[_t,We],60:Yo,61:_t,95:We,96:Lt,126:Lt},hi={38:Pt,92:At},di={[-5]:mn,[-4]:mn,[-3]:mn,33:ei,38:Pt,42:pn,60:[Mo,Xo],91:ni,92:[qo,At],93:dn,95:pn,96:_o},mi={null:[pn,ii]},gi=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ci,disable:{null:[]},document:ui,flow:pi,flowInitial:fi,insideSpan:mi,string:hi,text:di},Symbol.toStringTag,{value:"Module"}));function yi(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const o={},i=[];let l=[],a=[];const c={attempt:k(function(y,C){S(y,C.from)}),check:k(b),consume:function(y){D(y)?(r.line++,r.column=1,r.offset+=y===-3?2:1,E()):y!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=y},enter:function(y,C){const T=C||{};return T.type=y,T.start=p(),u.events.push(["enter",T,u]),a.push(T),T},exit:function(y){const C=a.pop();return C.end=p(),u.events.push(["exit",C,u]),C},interrupt:k(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(y){o[y.line]=y.column,E()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(y,C){return(function(T,I){let F=-1;const x=[];let R;for(;++F<T.length;){const P=T[F];let z;if(typeof P=="string")z=P;else switch(P){case-5:z="\r";break;case-4:z=`
|
|
2
|
-
`;break;case-3:z=`\r
|
|
3
|
-
`;break;case-2:z=I?" ":" ";break;case-1:if(!I&&R)continue;z=" ";break;default:z=String.fromCharCode(P)}R=P===-2,x.push(z)}return x.join("")})(f(y),C)},sliceStream:f,write:function(y){return l=ie(l,y),h(),l[l.length-1]!==null?[]:(S(n,0),u.events=qe(i,u.events,u),u.events)}};let s=n.tokenize.call(u,c);return n.resolveAll&&i.push(n),u;function f(y){return(function(C,T){const I=T.start._index,F=T.start._bufferIndex,x=T.end._index,R=T.end._bufferIndex;let P;if(I===x)P=[C[I].slice(F,R)];else{if(P=C.slice(I,x),F>-1){const z=P[0];typeof z=="string"?P[0]=z.slice(F):P.shift()}R>0&&P.push(C[x].slice(0,R))}return P})(l,y)}function p(){const{_bufferIndex:y,_index:C,line:T,column:I,offset:F}=r;return{_bufferIndex:y,_index:C,line:T,column:I,offset:F}}function h(){let y;for(;r._index<l.length;){const C=l[r._index];if(typeof C=="string")for(y=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===y&&r._bufferIndex<C.length;)g(C.charCodeAt(r._bufferIndex));else g(C)}}function g(y){s=s(y)}function b(y,C){C.restore()}function k(y,C){return function(T,I,F){let x,R,P,z;return Array.isArray(T)?A(T):"tokenize"in T?A([T]):(function(_){return oe;function oe(Q){const d=Q!==null&&_[Q],ee=Q!==null&&_.null;return A([...Array.isArray(d)?d:d?[d]:[],...Array.isArray(ee)?ee:ee?[ee]:[]])(Q)}})(T);function A(_){return x=_,R=0,_.length===0?F:B(_[R])}function B(_){return function(oe){return z=(function(){const Q=p(),d=u.previous,ee=u.currentConstruct,m=u.events.length,le=Array.from(a);return{from:m,restore:Ee};function Ee(){r=Q,u.previous=d,u.currentConstruct=ee,u.events.length=m,a=le,E()}})(),P=_,_.partial||(u.currentConstruct=_),_.name&&u.parser.constructs.disable.null.includes(_.name)?W():_.tokenize.call(C?Object.assign(Object.create(u),C):u,c,Y,W)(oe)}}function Y(_){return y(P,z),I}function W(_){return z.restore(),++R<x.length?B(x[R]):F}}}function S(y,C){y.resolveAll&&!i.includes(y)&&i.push(y),y.resolve&&re(u.events,C,u.events.length-C,y.resolve(u.events.slice(C),u)),y.resolveTo&&(u.events=y.resolveTo(u.events,u))}function E(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Bt=/[\0\t\n\r]/g,ki=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xi(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),o=r===120||r===88;return Ct(t.slice(o?2:1),o?16:10)}return cn(t)||e}const Ht={}.hasOwnProperty;function vi(e,n,t){return typeof n!="string"&&(t=n,n=void 0),(function(r){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Wn),autolinkProtocol:A,autolinkEmail:A,atxHeading:c(Un),blockQuote:c(qr),characterEscape:A,characterReference:A,codeFenced:c(Hn),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:c(Hn,u),codeText:c(Wr,u),codeTextData:A,data:A,codeFlowValue:A,definition:c($r),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:c(Yr),hardBreakEscape:c(Vn),hardBreakTrailing:c(Vn),htmlFlow:c(qn,u),htmlFlowData:A,htmlText:c(qn,u),htmlTextData:A,image:c(Qr),label:u,link:c(Wn),listItem:c(Kr),listItemValue:b,listOrdered:c($n,g),listUnordered:c($n),paragraph:c(Xr),reference:Nr,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:c(Un),strong:c(Jr),thematicBreak:c(Gr)},exit:{atxHeading:f(),atxHeadingSequence:x,autolink:f(),autolinkEmail:Vr,autolinkProtocol:Ur,blockQuote:f(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:Bn,characterReferenceMarkerNumeric:Bn,characterReferenceValue:Br,characterReference:Hr,codeFenced:f(y),codeFencedFence:E,codeFencedFenceInfo:k,codeFencedFenceMeta:S,codeFlowValue:B,codeIndented:f(C),codeText:f(Q),codeTextData:B,data:B,definition:f(),definitionDestinationString:F,definitionLabelString:T,definitionTitleString:I,emphasis:f(),hardBreakEscape:f(W),hardBreakTrailing:f(W),htmlFlow:f(_),htmlFlowData:B,htmlText:f(oe),htmlTextData:B,image:f(ee),label:le,labelText:m,lineEnding:Y,link:f(d),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:jr,resourceDestinationString:Ee,resourceTitleString:Rr,resource:_r,setextHeading:f(z),setextHeadingLineSequence:P,setextHeadingText:R,strong:f(),thematicBreak:f()}};Ut(o,(r||{}).mdastExtensions||[]);const i={};return l;function l(v){let L={type:"root",children:[]};const O={stack:[L],tokenStack:[],config:o,enter:s,exit:p,buffer:u,resume:h,data:i},H=[];let U=-1;for(;++U<v.length;)(v[U][1].type==="listOrdered"||v[U][1].type==="listUnordered")&&(v[U][0]==="enter"?H.push(U):U=a(v,H.pop(),U));for(U=-1;++U<v.length;){const se=o[v[U][0]];Ht.call(se,v[U][1].type)&&se[v[U][1].type].call(Object.assign({sliceSerialize:v[U][2].sliceSerialize},O),v[U][1])}if(O.tokenStack.length>0){const se=O.tokenStack[O.tokenStack.length-1];(se[1]||Vt).call(O,void 0,se[0])}for(L.position={start:me(v.length>0?v[0][1].start:{line:1,column:1,offset:0}),end:me(v.length>0?v[v.length-2][1].end:{line:1,column:1,offset:0})},U=-1;++U<o.transforms.length;)L=o.transforms[U](L)||L;return L}function a(v,L,O){let H,U,se,Te,he=L-1,Ae=-1,Yn=!1;for(;++he<=O;){const ne=v[he];switch(ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":ne[0]==="enter"?Ae++:Ae--,Te=void 0;break;case"lineEndingBlank":ne[0]==="enter"&&(!H||Te||Ae||se||(se=he),Te=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Te=void 0}if(!Ae&&ne[0]==="enter"&&ne[1].type==="listItemPrefix"||Ae===-1&&ne[0]==="exit"&&(ne[1].type==="listUnordered"||ne[1].type==="listOrdered")){if(H){let xe=he;for(U=void 0;xe--;){const fe=v[xe];if(fe[1].type==="lineEnding"||fe[1].type==="lineEndingBlank"){if(fe[0]==="exit")continue;U&&(v[U][1].type="lineEndingBlank",Yn=!0),fe[1].type="lineEnding",U=xe}else if(fe[1].type!=="linePrefix"&&fe[1].type!=="blockQuotePrefix"&&fe[1].type!=="blockQuotePrefixWhitespace"&&fe[1].type!=="blockQuoteMarker"&&fe[1].type!=="listItemIndent")break}se&&(!U||se<U)&&(H._spread=!0),H.end=Object.assign({},U?v[U][1].start:ne[1].end),v.splice(U||he,0,["exit",H,ne[2]]),he++,O++}if(ne[1].type==="listItemPrefix"){const xe={type:"listItem",_spread:!1,start:Object.assign({},ne[1].start),end:void 0};H=xe,v.splice(he,0,["enter",xe,ne[2]]),he++,O++,se=void 0,Te=!0}}}return v[L][1]._spread=Yn,O}function c(v,L){return O;function O(H){s.call(this,v(H),H),L&&L.call(this,H)}}function u(){this.stack.push({type:"fragment",children:[]})}function s(v,L,O){this.stack[this.stack.length-1].children.push(v),this.stack.push(v),this.tokenStack.push([L,O||void 0]),v.position={start:me(L.start),end:void 0}}function f(v){return L;function L(O){v&&v.call(this,O),p.call(this,O)}}function p(v,L){const O=this.stack.pop(),H=this.tokenStack.pop();if(!H)throw new Error("Cannot close `"+v.type+"` ("+De({start:v.start,end:v.end})+"): it\u2019s not open");H[0].type!==v.type&&(L?L.call(this,v,H[0]):(H[1]||Vt).call(this,v,H[0])),O.position.end=me(v.end)}function h(){return un(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(v){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(v),10),this.data.expectingFirstListItemValue=void 0)}function k(){const v=this.resume();this.stack[this.stack.length-1].lang=v}function S(){const v=this.resume();this.stack[this.stack.length-1].meta=v}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const v=this.resume();this.stack[this.stack.length-1].value=v.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const v=this.resume();this.stack[this.stack.length-1].value=v.replace(/(\r?\n|\r)$/g,"")}function T(v){const L=this.resume(),O=this.stack[this.stack.length-1];O.label=L,O.identifier=ae(this.sliceSerialize(v)).toLowerCase()}function I(){const v=this.resume();this.stack[this.stack.length-1].title=v}function F(){const v=this.resume();this.stack[this.stack.length-1].url=v}function x(v){const L=this.stack[this.stack.length-1];if(!L.depth){const O=this.sliceSerialize(v).length;L.depth=O}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function P(v){this.stack[this.stack.length-1].depth=this.sliceSerialize(v).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function A(v){const L=this.stack[this.stack.length-1].children;let O=L[L.length-1];O&&O.type==="text"||(O=Zr(),O.position={start:me(v.start),end:void 0},L.push(O)),this.stack.push(O)}function B(v){const L=this.stack.pop();L.value+=this.sliceSerialize(v),L.position.end=me(v.end)}function Y(v){const L=this.stack[this.stack.length-1];if(this.data.atHardBreak)return L.children[L.children.length-1].position.end=me(v.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(L.type)&&(A.call(this,v),B.call(this,v))}function W(){this.data.atHardBreak=!0}function _(){const v=this.resume();this.stack[this.stack.length-1].value=v}function oe(){const v=this.resume();this.stack[this.stack.length-1].value=v}function Q(){const v=this.resume();this.stack[this.stack.length-1].value=v}function d(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=L,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function ee(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=L,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function m(v){const L=this.sliceSerialize(v),O=this.stack[this.stack.length-2];O.label=(function(H){return H.replace(ki,xi)})(L),O.identifier=ae(L).toLowerCase()}function le(){const v=this.stack[this.stack.length-1],L=this.resume(),O=this.stack[this.stack.length-1];if(this.data.inReference=!0,O.type==="link"){const H=v.children;O.children=H}else O.alt=L}function Ee(){const v=this.resume();this.stack[this.stack.length-1].url=v}function Rr(){const v=this.resume();this.stack[this.stack.length-1].title=v}function _r(){this.data.inReference=void 0}function Nr(){this.data.referenceType="collapsed"}function jr(v){const L=this.resume(),O=this.stack[this.stack.length-1];O.label=L,O.identifier=ae(this.sliceSerialize(v)).toLowerCase(),this.data.referenceType="full"}function Bn(v){this.data.characterReferenceType=v.type}function Br(v){const L=this.sliceSerialize(v),O=this.data.characterReferenceType;let H;O?(H=Ct(L,O==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):H=cn(L),this.stack[this.stack.length-1].value+=H}function Hr(v){this.stack.pop().position.end=me(v.end)}function Ur(v){B.call(this,v),this.stack[this.stack.length-1].url=this.sliceSerialize(v)}function Vr(v){B.call(this,v),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(v)}function qr(){return{type:"blockquote",children:[]}}function Hn(){return{type:"code",lang:null,meta:null,value:""}}function Wr(){return{type:"inlineCode",value:""}}function $r(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Yr(){return{type:"emphasis",children:[]}}function Un(){return{type:"heading",depth:0,children:[]}}function Vn(){return{type:"break"}}function qn(){return{type:"html",value:""}}function Qr(){return{type:"image",title:null,url:"",alt:null}}function Wn(){return{type:"link",title:null,url:"",children:[]}}function $n(v){return{type:"list",ordered:v.type==="listOrdered",start:null,spread:v._spread,children:[]}}function Kr(v){return{type:"listItem",spread:v._spread,checked:null,children:[]}}function Xr(){return{type:"paragraph",children:[]}}function Jr(){return{type:"strong",children:[]}}function Zr(){return{type:"text",value:""}}function Gr(){return{type:"thematicBreak"}}})(t)((function(r){for(;!Ft(r););return r})((function(r){const o={constructs:St([gi,...(r||{}).extensions||[]]),content:i(Oo),defined:[],document:i(zo),flow:i(oi),lazy:{},string:i(li),text:i(si)};return o;function i(l){return function(a){return yi(o,l,a)}}})(t).document().write((function(){let r,o=1,i="",l=!0;return function(a,c,u){const s=[];let f,p,h,g,b;for(a=i+(typeof a=="string"?a.toString():new TextDecoder(c||void 0).decode(a)),h=0,i="",l&&(a.charCodeAt(0)===65279&&h++,l=void 0);h<a.length;){if(Bt.lastIndex=h,f=Bt.exec(a),g=f&&f.index!==void 0?f.index:a.length,b=a.charCodeAt(g),!f){i=a.slice(h);break}if(b===10&&h===g&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),h<g&&(s.push(a.slice(h,g)),o+=g-h),b){case 0:s.push(65533),o++;break;case 9:for(p=4*Math.ceil(o/4),s.push(-2);o++<p;)s.push(-1);break;case 10:s.push(-4),o=1;break;default:r=!0,o=1}h=g+1}return u&&(r&&s.push(-5),i&&s.push(i),s.push(null)),s}})()(e,n,!0))))}function me(e){return{line:e.line,column:e.column,offset:e.offset}}function Ut(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Ut(e,r):bi(e,r)}}function bi(e,n){let t;for(t in n)if(Ht.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Vt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+De({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+De({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+De({start:n.start,end:n.end})+") is still open")}function wi(e){const n=this;n.parser=function(t){return vi(t,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function qt(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const o=e.all(n),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&l.type==="text"?l.value+=r:o.push({type:"text",value:r}),o}function Wt(e){const n=e.spread;return n??e.children.length>1}function Si(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),o=0;const i=[];for(;r;)i.push($t(n.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=t.exec(n);return i.push($t(n.slice(o),o>0,!1)),i.join("")}function $t(e,n,t){let r=0,o=e.length;if(n){let i=e.codePointAt(r);for(;i===9||i===32;)r++,i=e.codePointAt(r)}if(t){let i=e.codePointAt(o-1);for(;i===9||i===32;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Ci={blockquote:function(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)},break:function(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
4
|
-
`}]},code:function(e,n){const t=n.value?n.value+`
|
|
5
|
-
`:"",r={};n.lang&&(r.className=["language-"+n.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o},delete:function(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},emphasis:function(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},footnoteReference:function(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),o=we(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+o,id:t+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,u),e.applyData(n,u)},heading:function(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},html:function(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}},imageReference:function(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return qt(e,n);const o={src:we(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,i),e.applyData(n,i)},image:function(e,n){const t={src:we(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)},inlineCode:function(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)},linkReference:function(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return qt(e,n);const o={href:we(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)},link:function(e,n){const t={href:we(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)},listItem:function(e,n,t){const r=e.all(n),o=t?(function(s){let f=!1;if(s.type==="list"){f=s.spread||!1;const p=s.children;let h=-1;for(;!f&&++h<p.length;)f=Wt(p[h])}return f})(t):Wt(n),i={},l=[];if(typeof n.checked=="boolean"){const s=r[0];let f;s&&s.type==="element"&&s.tagName==="p"?f=s:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const s=r[a];(o||a!==0||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
|
|
6
|
-
`}),s.type!=="element"||s.tagName!=="p"||o?l.push(s):l.push(...s.children)}const c=r[r.length-1];c&&(o||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
|
|
7
|
-
`});const u={type:"element",tagName:"li",properties:i,children:l};return e.patch(n,u),e.applyData(n,u)},list:function(e,n){const t={},r=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++o<r.length;){const l=r[o];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const i={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,i),e.applyData(n,i)},paragraph:function(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},root:function(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)},strong:function(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},table:function(e,n){const t=e.all(n),r=t.shift(),o=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),o.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=rn(n.children[1]),c=ft(n.children[n.children.length-1]);a&&c&&(l.position={start:a,end:c}),o.push(l)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,i),e.applyData(n,i)},tableCell:function(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},tableRow:function(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",i=t&&t.type==="table"?t.align:void 0,l=i?i.length:n.children.length;let a=-1;const c=[];for(;++a<l;){const s=n.children[a],f={},p=i?i[a]:void 0;p&&(f.align=p);let h={type:"element",tagName:o,properties:f,children:[]};s&&(h.children=e.all(s),e.patch(s,h),h=e.applyData(s,h)),c.push(h)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(n,u),e.applyData(n,u)},text:function(e,n){const t={type:"text",value:Si(String(n.value))};return e.patch(n,t),e.applyData(n,t)},thematicBreak:function(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)},toml:$e,yaml:$e,definition:$e,footnoteDefinition:$e};function $e(){}const Yt=typeof self=="object"?self:globalThis,Qt=e=>((n,t)=>{const r=(i,l)=>(n.set(l,i),i),o=i=>{if(n.has(i))return n.get(i);const[l,a]=t[i];switch(l){case 0:case-1:return r(a,i);case 1:{const c=r([],i);for(const u of a)c.push(o(u));return c}case 2:{const c=r({},i);for(const[u,s]of a)c[o(u)]=o(s);return c}case 3:return r(new Date(a),i);case 4:{const{source:c,flags:u}=a;return r(new RegExp(c,u),i)}case 5:{const c=r(new Map,i);for(const[u,s]of a)c.set(o(u),o(s));return c}case 6:{const c=r(new Set,i);for(const u of a)c.add(o(u));return c}case 7:{const{name:c,message:u}=a;return r(new Yt[c](u),i)}case 8:return r(BigInt(a),i);case"BigInt":return r(Object(BigInt(a)),i);case"ArrayBuffer":return r(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:c}=new Uint8Array(a);return r(new DataView(c),a)}}return r(new Yt[l](a),i)};return o})(new Map,e)(0),Ce="",{toString:Ii}={},{keys:Ei}=Object,Me=e=>{const n=typeof e;if(n!=="object"||!e)return[0,n];const t=Ii.call(e).slice(8,-1);switch(t){case"Array":return[1,Ce];case"Object":return[2,Ce];case"Date":return[3,Ce];case"RegExp":return[4,Ce];case"Map":return[5,Ce];case"Set":return[6,Ce];case"DataView":return[1,t]}return t.includes("Array")?[1,t]:t.includes("Error")?[7,t]:[2,t]},Ye=([e,n])=>e===0&&(n==="function"||n==="symbol"),Kt=(e,{json:n,lossy:t}={})=>{const r=[];return((o,i,l,a)=>{const c=(s,f)=>{const p=a.push(s)-1;return l.set(f,p),p},u=s=>{if(l.has(s))return l.get(s);let[f,p]=Me(s);switch(f){case 0:{let g=s;switch(p){case"bigint":f=8,g=s.toString();break;case"function":case"symbol":if(o)throw new TypeError("unable to serialize "+p);g=null;break;case"undefined":return c([-1],s)}return c([f,g],s)}case 1:{if(p){let k=s;return p==="DataView"?k=new Uint8Array(s.buffer):p==="ArrayBuffer"&&(k=new Uint8Array(s)),c([p,[...k]],s)}const g=[],b=c([f,g],s);for(const k of s)g.push(u(k));return b}case 2:{if(p)switch(p){case"BigInt":return c([p,s.toString()],s);case"Boolean":case"Number":case"String":return c([p,s.valueOf()],s)}if(i&&"toJSON"in s)return u(s.toJSON());const g=[],b=c([f,g],s);for(const k of Ei(s))!o&&Ye(Me(s[k]))||g.push([u(k),u(s[k])]);return b}case 3:return c([f,s.toISOString()],s);case 4:{const{source:g,flags:b}=s;return c([f,{source:g,flags:b}],s)}case 5:{const g=[],b=c([f,g],s);for(const[k,S]of s)(o||!Ye(Me(k))&&!Ye(Me(S)))&&g.push([u(k),u(S)]);return b}case 6:{const g=[],b=c([f,g],s);for(const k of s)!o&&Ye(Me(k))||g.push(u(k));return b}}const{message:h}=s;return c([f,{name:p,message:h}],s)};return u})(!(n||t),!!n,new Map,r)(e),r},Qe=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Qt(Kt(e,n)):structuredClone(e):(e,n)=>Qt(Kt(e,n));function Ti(e,n){const t=[{type:"text",value:"\u21A9"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Ai(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}const Re=function(e){if(e==null)return Pi;if(typeof e=="function")return Ke(e);if(typeof e=="object")return Array.isArray(e)?(function(n){const t=[];let r=-1;for(;++r<n.length;)t[r]=Re(n[r]);return Ke(o);function o(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}})(e):(function(n){const t=n;return Ke(r);function r(o){const i=o;let l;for(l in n)if(i[l]!==t[l])return!1;return!0}})(e);if(typeof e=="string")return(function(n){return Ke(t);function t(r){return r&&r.type===n}})(e);throw new Error("Expected function, string, or object as test")};function Ke(e){return function(n,t,r){return!!((function(o){return o!==null&&typeof o=="object"&&"type"in o})(n)&&e.call(this,n,typeof t=="number"?t:void 0,r||void 0))}}function Pi(){return!0}const Xt=[],Di=!0,gn=!1,Jt="skip";function yn(e,n,t,r){let o;typeof n=="function"&&typeof t!="function"?(r=t,t=n):o=n;const i=Re(o),l=r?-1:1;(function a(c,u,s){const f=c&&typeof c=="object"?c:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+c.type+(h?"<"+h+">":"")+")"})}return p;function p(){let h,g,b,k=Xt;if((!n||i(c,u,s[s.length-1]||void 0))&&(k=(function(S){return Array.isArray(S)?S:typeof S=="number"?[Di,S]:S==null?Xt:[S]})(t(c,s)),k[0]===gn))return k;if("children"in c&&c.children){const S=c;if(S.children&&k[0]!==Jt)for(g=(r?S.children.length:-1)+l,b=s.concat(S);g>-1&&g<S.children.length;){const E=S.children[g];if(h=a(E,g,b)(),h[0]===gn)return h;g=typeof h[1]=="number"?h[1]:g+l}}return k}})(e,void 0,[])()}function kn(e,n,t,r){let o,i,l;typeof n=="function"&&typeof t!="function"?(i=void 0,l=n,o=t):(i=n,l=t,o=r),yn(e,i,function(a,c){const u=c[c.length-1],s=u?u.children.indexOf(a):void 0;return l(a,s,u)},o)}const xn={}.hasOwnProperty,Li={};function Fi(e,n){e.position&&(n.position=(function(t){const r=rn(t),o=ft(t);if(r&&o)return{start:r,end:o}})(e))}function Oi(e,n){let t=n;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;typeof r=="string"&&(t.type==="element"?t.tagName=r:t={type:"element",tagName:r,properties:{},children:"children"in t?t.children:[t]}),t.type==="element"&&i&&Object.assign(t.properties,Qe(i)),"children"in t&&t.children&&o!=null&&(t.children=o)}return t}function zi(e,n){const t=n.data||{},r=!("value"in n)||xn.call(t,"hProperties")||xn.call(t,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(n)}:{type:"text",value:n.value};return e.patch(n,r),e.applyData(n,r)}function Mi(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
|
|
8
|
-
`});++r<e.length;)r&&t.push({type:"text",value:`
|
|
9
|
-
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
|
|
10
|
-
`}),t}function Zt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Gt(e,n){const t=(function(l,a){const c=a||Li,u=new Map,s=new Map,f=new Map,p={...Ci,...c.handlers},h={all:function(g){const b=[];if("children"in g){const k=g.children;let S=-1;for(;++S<k.length;){const E=h.one(k[S],g);if(E){if(S&&k[S-1].type==="break"&&(Array.isArray(E)||E.type!=="text"||(E.value=Zt(E.value)),!Array.isArray(E)&&E.type==="element")){const y=E.children[0];y&&y.type==="text"&&(y.value=Zt(y.value))}Array.isArray(E)?b.push(...E):b.push(E)}}}return b},applyData:Oi,definitionById:u,footnoteById:s,footnoteCounts:f,footnoteOrder:[],handlers:p,one:function(g,b){const k=g.type,S=h.handlers[k];if(xn.call(h.handlers,k)&&S)return S(h,g,b);if(h.options.passThrough&&h.options.passThrough.includes(k)){if("children"in g){const{children:E,...y}=g,C=Qe(y);return C.children=h.all(g),C}return Qe(g)}return(h.options.unknownHandler||zi)(h,g,b)},options:c,patch:Fi,wrap:Mi};return kn(l,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const b=g.type==="definition"?u:s,k=String(g.identifier).toUpperCase();b.has(k)||b.set(k,g)}}),h})(e,n),r=t.one(e,void 0),o=(function(l){const a=typeof l.options.clobberPrefix=="string"?l.options.clobberPrefix:"user-content-",c=l.options.footnoteBackContent||Ti,u=l.options.footnoteBackLabel||Ai,s=l.options.footnoteLabel||"Footnotes",f=l.options.footnoteLabelTagName||"h2",p=l.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let g=-1;for(;++g<l.footnoteOrder.length;){const b=l.footnoteById.get(l.footnoteOrder[g]);if(!b)continue;const k=l.all(b),S=String(b.identifier).toUpperCase(),E=we(S.toLowerCase());let y=0;const C=[],T=l.footnoteCounts.get(S);for(;T!==void 0&&++y<=T;){C.length>0&&C.push({type:"text",value:" "});let x=typeof c=="string"?c:c(g,y);typeof x=="string"&&(x={type:"text",value:x}),C.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+E+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(g,y),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const I=k[k.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const x=I.children[I.children.length-1];x&&x.type==="text"?x.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...C)}else k.push(...C);const F={type:"element",tagName:"li",properties:{id:a+"fn-"+E},children:l.wrap(k,!0)};l.patch(b,F),h.push(F)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...Qe(p),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
11
|
-
`},{type:"element",tagName:"ol",properties:{},children:l.wrap(h,!0)},{type:"text",value:`
|
|
12
|
-
`}]}})(t),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:`
|
|
13
|
-
`},o),i}function Ri(e,n){return e&&"run"in e?async function(t,r){const o=Gt(t,{file:r,...n});await e.run(o,r)}:function(t,r){return Gt(t,{file:r,...e||n})}}function er(e){if(e)throw e}var vn,nr,_i=(function(){if(nr)return vn;nr=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(c){return typeof Array.isArray=="function"?Array.isArray(c):n.call(c)==="[object Array]"},i=function(c){if(!c||n.call(c)!=="[object Object]")return!1;var u,s=e.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!s&&!f)return!1;for(u in c);return u===void 0||e.call(c,u)},l=function(c,u){t&&u.name==="__proto__"?t(c,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):c[u.name]=u.newValue},a=function(c,u){if(u==="__proto__"){if(!e.call(c,u))return;if(r)return r(c,u).value}return c[u]};return vn=function c(){var u,s,f,p,h,g,b=arguments[0],k=1,S=arguments.length,E=!1;for(typeof b=="boolean"&&(E=b,b=arguments[1]||{},k=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});k<S;++k)if((u=arguments[k])!=null)for(s in u)f=a(b,s),b!==(p=a(u,s))&&(E&&p&&(i(p)||(h=o(p)))?(h?(h=!1,g=f&&o(f)?f:[]):g=f&&i(f)?f:{},l(b,{name:s,newValue:c(E,g,p)})):p!==void 0&&l(b,{name:s,newValue:p}));return b},vn})();const bn=Qn(_i);function wn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return!(n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function Ni(){const e=[],n={run:function(...t){let r=-1;const o=t.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function i(l,...a){const c=e[++r];let u=-1;if(l)o(l);else{for(;++u<t.length;)a[u]!==null&&a[u]!==void 0||(a[u]=t[u]);t=a,c?(function(s,f){let p;return h;function h(...k){const S=s.length>k.length;let E;S&&k.push(g);try{E=s.apply(this,k)}catch(y){if(S&&p)throw y;return g(y)}S||(E&&E.then&&typeof E.then=="function"?E.then(b,g):E instanceof Error?g(E):b(E))}function g(k,...S){p||(p=!0,f(k,...S))}function b(k){g(null,k)}})(c,i)(...a):o(null,...a)}})(null,...t)},use:function(t){if(typeof t!="function")throw new TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}const ue={basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');_e(e);let t,r=0,o=-1,i=e.length;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1);return o<0?"":e.slice(r,o)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(o=i):(a=-1,o=l));return r===o?o=l:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){if(_e(e),e.length===0)return".";let n,t=-1,r=e.length;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)},extname:function(e){_e(e);let n,t=e.length,r=-1,o=0,i=-1,l=0;for(;t--;){const a=e.codePointAt(t);if(a!==47)r<0&&(n=!0,r=t+1),a===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1);else if(n){o=t+1;break}}return i<0||r<0||l===0||l===1&&i===r-1&&i===o+1?"":e.slice(i,r)},join:function(...e){let n,t=-1;for(;++t<e.length;)_e(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":(function(r){_e(r);const o=r.codePointAt(0)===47;let i=(function(l,a){let c,u,s="",f=0,p=-1,h=0,g=-1;for(;++g<=l.length;){if(g<l.length)c=l.codePointAt(g);else{if(c===47)break;c=47}if(c===47){if(!(p===g-1||h===1))if(p!==g-1&&h===2){if(s.length<2||f!==2||s.codePointAt(s.length-1)!==46||s.codePointAt(s.length-2)!==46){if(s.length>2){if(u=s.lastIndexOf("/"),u!==s.length-1){u<0?(s="",f=0):(s=s.slice(0,u),f=s.length-1-s.lastIndexOf("/")),p=g,h=0;continue}}else if(s.length>0){s="",f=0,p=g,h=0;continue}}a&&(s=s.length>0?s+"/..":"..",f=2)}else s.length>0?s+="/"+l.slice(p+1,g):s=l.slice(p+1,g),f=g-p-1;p=g,h=0}else c===46&&h>-1?h++:h=-1}return s})(r,!o);return i.length!==0||o||(i="."),i.length>0&&r.codePointAt(r.length-1)===47&&(i+="/"),o?"/"+i:i})(n)},sep:"/"};function _e(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ji={cwd:function(){return"/"}};function Sn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Bi(e){if(typeof e=="string")e=new URL(e);else if(!Sn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return(function(n){if(n.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=n.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const o=t.codePointAt(r+2);if(o===70||o===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)})(e)}const Cn=["history","path","basename","stem","extname","dirname"];class tr{constructor(n){let t;t=n?Sn(n)?{path:n}:typeof n=="string"||(function(i){return!!(i&&typeof i=="object"&&"byteLength"in i&&"byteOffset"in i)})(n)?{value:n}:n:{},this.cwd="cwd"in t?"":ji.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,o=-1;for(;++o<Cn.length;){const i=Cn[o];i in t&&t[i]!==void 0&&t[i]!==null&&(this[i]=i==="history"?[...t[i]]:t[i])}for(r in t)Cn.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path=="string"?ue.basename(this.path):void 0}set basename(n){En(n,"basename"),In(n,"basename"),this.path=ue.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ue.dirname(this.path):void 0}set dirname(n){rr(this.basename,"dirname"),this.path=ue.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ue.extname(this.path):void 0}set extname(n){if(In(n,"extname"),rr(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ue.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Sn(n)&&(n=Bi(n)),En(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ue.basename(this.path,this.extname):void 0}set stem(n){En(n,"stem"),In(n,"stem"),this.path=ue.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const o=this.message(n,t,r);throw o.fatal=!0,o}info(n,t,r){const o=this.message(n,t,r);return o.fatal=void 0,o}message(n,t,r){const o=new K(n,t,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function In(e,n){if(e&&e.includes(ue.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ue.sep+"`")}function En(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function rr(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}const Hi=function(e){const n=this.constructor.prototype,t=n[e],r=function(){return t.apply(r,arguments)};return Object.setPrototypeOf(r,n),r},Ui={}.hasOwnProperty;class jn extends Hi{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ni()}copy(){const n=new jn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(bn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Pn("data",this.frozen),this.namespace[n]=t,this):Ui.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Pn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=t.call(n,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Xe(n),r=this.parser||this.Parser;return Tn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Tn("process",this.parser||this.Parser),An("process",this.compiler||this.Compiler),t?o(void 0,t):new Promise(o);function o(i,l){const a=Xe(n),c=r.parse(a);function u(s,f){s||!f?l(s):i?i(f):t(void 0,f)}r.run(c,a,function(s,f,p){if(s||!f||!p)return u(s);const h=f,g=r.stringify(h,p);var b;typeof(b=g)=="string"||(function(k){return!!(k&&typeof k=="object"&&"byteLength"in k&&"byteOffset"in k)})(b)?p.value=g:p.result=g,u(s,p)})}}processSync(n){let t,r=!1;return this.freeze(),Tn("processSync",this.parser||this.Parser),An("processSync",this.compiler||this.Compiler),this.process(n,function(o,i){r=!0,er(o),t=i}),ir("processSync","process",r),t}run(n,t,r){or(n),this.freeze();const o=this.transformers;return r||typeof t!="function"||(r=t,t=void 0),r?i(void 0,r):new Promise(i);function i(l,a){const c=Xe(t);o.run(n,c,function(u,s,f){const p=s||n;u?a(u):l?l(p):r(void 0,p,f)})}}runSync(n,t){let r,o=!1;return this.run(n,t,function(i,l){er(i),r=l,o=!0}),ir("runSync","run",o),r}stringify(n,t){this.freeze();const r=Xe(t),o=this.compiler||this.Compiler;return An("stringify",o),or(n),o(n,r)}use(n,...t){const r=this.attachers,o=this.namespace;if(Pn("use",this.frozen),n!=null)if(typeof n=="function")c(n,t);else{if(typeof n!="object")throw new TypeError("Expected usable value, not `"+n+"`");Array.isArray(n)?a(n):l(n)}return this;function i(u){if(typeof u=="function")c(u,[]);else{if(typeof u!="object")throw new TypeError("Expected usable value, not `"+u+"`");if(Array.isArray(u)){const[s,...f]=u;c(s,f)}else l(u)}}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(o.settings=bn(!0,o.settings,u.settings))}function a(u){let s=-1;if(u!=null){if(!Array.isArray(u))throw new TypeError("Expected a list of plugins, not `"+u+"`");for(;++s<u.length;)i(u[s])}}function c(u,s){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===u){p=f;break}if(p===-1)r.push([u,...s]);else if(s.length>0){let[h,...g]=s;const b=r[p][1];wn(b)&&wn(h)&&(h=bn(!0,b,h)),r[p]=[u,h,...g]}}}}const Vi=new jn().freeze();function Tn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function An(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Pn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function or(e){if(!wn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ir(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Xe(e){return(function(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)})(e)?e:new tr(e)}function Dn(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,o=t.indexOf(n);for(;o!==-1;)r++,o=t.indexOf(n,o+n.length);return r}function qi(e,n,t){const r=Re((t||{}).ignore||[]),o=(function(a){const c=[];if(!Array.isArray(a))throw new TypeError("Expected find and replace tuple or list of tuples");const u=!a[0]||Array.isArray(a[0])?a:[a];let s=-1;for(;++s<u.length;){const f=u[s];c.push([Wi(f[0]),$i(f[1])])}return c})(n);let i=-1;for(;++i<o.length;)yn(e,"text",l);function l(a,c){let u,s=-1;for(;++s<c.length;){const f=c[s],p=u?u.children:void 0;if(r(f,p?p.indexOf(f):void 0,u))return;u=f}if(u)return(function(f,p){const h=p[p.length-1],g=o[i][0],b=o[i][1];let k=0;const S=h.children.indexOf(f);let E=!1,y=[];g.lastIndex=0;let C=g.exec(f.value);for(;C;){const T=C.index,I={index:C.index,input:C.input,stack:[...p,f]};let F=b(...C,I);if(typeof F=="string"&&(F=F.length>0?{type:"text",value:F}:void 0),F===!1?g.lastIndex=T+1:(k!==T&&y.push({type:"text",value:f.value.slice(k,T)}),Array.isArray(F)?y.push(...F):F&&y.push(F),k=T+C[0].length,E=!0),!g.global)break;C=g.exec(f.value)}return E?(k<f.value.length&&y.push({type:"text",value:f.value.slice(k)}),h.children.splice(S,1,...y)):y=[f],S+y.length})(a,c)}}function Wi(e){return typeof e=="string"?new RegExp((function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})(e),"g"):e}function $i(e){return typeof e=="function"?e:function(){return e}}const Ln="phrasing",Fn=["autolink","link","image","label"];function Yi(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function On(e){this.config.enter.autolinkProtocol.call(this,e)}function Qi(e){this.config.exit.autolinkProtocol.call(this,e)}function Ki(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function Xi(e){this.config.exit.autolinkEmail.call(this,e)}function Ji(e){this.exit(e)}function Zi(e){qi(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gi],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),el]],{ignore:["link","linkReference"]})}function Gi(e,n,t,r,o){let i="";if(!lr(o)||(/^w/i.test(n)&&(t=n+t,n="",i="http://"),!(function(c){const u=c.split(".");return!(u.length<2||u[u.length-1]&&(/_/.test(u[u.length-1])||!/[a-zA-Z\d]/.test(u[u.length-1]))||u[u.length-2]&&(/_/.test(u[u.length-2])||!/[a-zA-Z\d]/.test(u[u.length-2])))})(t)))return!1;const l=(function(c){const u=/[!"&'),.:;<>?\]}]+$/.exec(c);if(!u)return[c,void 0];c=c.slice(0,u.index);let s=u[0],f=s.indexOf(")");const p=Dn(c,"(");let h=Dn(c,")");for(;f!==-1&&p>h;)c+=s.slice(0,f+1),s=s.slice(f+1),f=s.indexOf(")"),h++;return[c,s]})(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:i+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function el(e,n,t,r){return!(!lr(r,!0)||/[-\d_]$/.test(t))&&{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function lr(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||ye(t)||Ve(t))&&(!n||t!==47)}function nl(){this.buffer()}function tl(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rl(){this.buffer()}function ol(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function il(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ae(this.sliceSerialize(e)).toLowerCase(),t.label=n}function ll(e){this.exit(e)}function sl(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ae(this.sliceSerialize(e)).toLowerCase(),t.label=n}function al(e){this.exit(e)}function sr(e,n,t,r){const o=t.createTracker(r);let i=o.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return i+=o.move(t.safe(t.associationId(e),{after:"]",before:i})),a(),l(),i+=o.move("]"),i}function ul(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:function(t,r,o,i){const l=o.createTracker(i);let a=l.move("[^");const c=o.enter("footnoteDefinition"),u=o.enter("label");return a+=l.move(o.safe(o.associationId(t),{before:a,after:"]"})),u(),a+=l.move("]:"),t.children&&t.children.length>0&&(l.shift(4),a+=l.move((n?`
|
|
14
|
-
`:" ")+o.indentLines(o.containerFlow(t,l.current()),n?ar:cl))),c(),a},footnoteReference:sr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function cl(e,n,t){return n===0?e:ar(e,n,t)}function ar(e,n,t){return(t?"":" ")+e}sr.peek=function(){return"["};const fl=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function pl(e){this.enter({type:"delete",children:[]},e)}function hl(e){this.exit(e)}function ur(e,n,t,r){const o=t.createTracker(r),i=t.enter("strikethrough");let l=o.move("~~");return l+=t.containerPhrasing(e,{...o.current(),before:l,after:"~"}),l+=o.move("~~"),i(),l}function dl(e){return e.length}function ml(e){return e==null?"":String(e)}function cr(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function gl(e,n,t){return">"+(t?"":" ")+e}function yl(e,n){return fr(e,n.inConstruct,!0)&&!fr(e,n.notInConstruct,!1)}function fr(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function pr(e,n,t,r){let o=-1;for(;++o<t.unsafe.length;)if(t.unsafe[o].character===`
|
|
15
|
-
`&&yl(t.stack,t.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
16
|
-
`}function hr(e,n){const t=String(e);let r=t.indexOf(n),o=r,i=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++i>l&&(l=i):i=1,o=r+n.length,r=t.indexOf(n,o);return l}function kl(e,n,t){return(t?"":" ")+e}function zn(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Ne(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Je(e,n,t){const r=Se(e),o=Se(n);return r===void 0?o===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function dr(e,n,t,r){const o=(function(g){const b=g.options.emphasis||"*";if(b!=="*"&&b!=="_")throw new Error("Cannot serialize emphasis with `"+b+"` for `options.emphasis`, expected `*`, or `_`");return b})(t),i=t.enter("emphasis"),l=t.createTracker(r),a=l.move(o);let c=l.move(t.containerPhrasing(e,{after:o,before:a,...l.current()}));const u=c.charCodeAt(0),s=Je(r.before.charCodeAt(r.before.length-1),u,o);s.inside&&(c=Ne(u)+c.slice(1));const f=c.charCodeAt(c.length-1),p=Je(r.after.charCodeAt(0),f,o);p.inside&&(c=c.slice(0,-1)+Ne(f));const h=l.move(o);return i(),t.attentionEncodeSurroundingInfo={after:p.outside,before:s.outside},a+c+h}function mr(e){return e.value||""}function gr(e,n,t,r){const o=zn(t),i=o==='"'?"Quote":"Apostrophe",l=t.enter("image");let a=t.enter("label");const c=t.createTracker(r);let u=c.move("![");return u+=c.move(t.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(t.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(a=t.enter("destinationRaw"),u+=c.move(t.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),a(),e.title&&(a=t.enter(`title${i}`),u+=c.move(" "+o),u+=c.move(t.safe(e.title,{before:u,after:o,...c.current()})),u+=c.move(o),a()),u+=c.move(")"),l(),u}function yr(e,n,t,r){const o=e.referenceType,i=t.enter("imageReference");let l=t.enter("label");const a=t.createTracker(r);let c=a.move("![");const u=t.safe(e.alt,{before:c,after:"]",...a.current()});c+=a.move(u+"]["),l();const s=t.stack;t.stack=[],l=t.enter("reference");const f=t.safe(t.associationId(e),{before:c,after:"]",...a.current()});return l(),t.stack=s,i(),o!=="full"&&u&&u===f?o==="shortcut"?c=c.slice(0,-1):c+=a.move("]"):c+=a.move(f+"]"),c}function kr(e,n,t){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<t.unsafe.length;){const l=t.unsafe[i],a=t.compilePattern(l);let c;if(l.atBreak)for(;c=a.exec(r);){let u=c.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(c.index+1)}}return o+r+o}function xr(e,n){const t=un(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function vr(e,n,t,r){const o=zn(t),i=o==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let a,c;if(xr(e,t)){const s=t.stack;t.stack=[],a=t.enter("autolink");let f=l.move("<");return f+=l.move(t.containerPhrasing(e,{before:f,after:">",...l.current()})),f+=l.move(">"),a(),t.stack=s,f}a=t.enter("link"),c=t.enter("label");let u=l.move("[");return u+=l.move(t.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=t.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(t.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(c=t.enter("destinationRaw"),u+=l.move(t.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),c(),e.title&&(c=t.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(t.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),c()),u+=l.move(")"),a(),u}function br(e,n,t,r){const o=e.referenceType,i=t.enter("linkReference");let l=t.enter("label");const a=t.createTracker(r);let c=a.move("[");const u=t.containerPhrasing(e,{before:c,after:"]",...a.current()});c+=a.move(u+"]["),l();const s=t.stack;t.stack=[],l=t.enter("reference");const f=t.safe(t.associationId(e),{before:c,after:"]",...a.current()});return l(),t.stack=s,i(),o!=="full"&&u&&u===f?o==="shortcut"?c=c.slice(0,-1):c+=a.move("]"):c+=a.move(f+"]"),c}function Mn(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function wr(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}ur.peek=function(){return"~"},dr.peek=function(e,n,t){return t.options.emphasis||"*"},mr.peek=function(){return"<"},gr.peek=function(){return"!"},yr.peek=function(){return"!"},kr.peek=function(){return"`"},vr.peek=function(e,n,t){return xr(e,t)?"<":"["},br.peek=function(){return"["};const xl=Re(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Sr(e,n,t,r){const o=(function(g){const b=g.options.strong||"*";if(b!=="*"&&b!=="_")throw new Error("Cannot serialize strong with `"+b+"` for `options.strong`, expected `*`, or `_`");return b})(t),i=t.enter("strong"),l=t.createTracker(r),a=l.move(o+o);let c=l.move(t.containerPhrasing(e,{after:o,before:a,...l.current()}));const u=c.charCodeAt(0),s=Je(r.before.charCodeAt(r.before.length-1),u,o);s.inside&&(c=Ne(u)+c.slice(1));const f=c.charCodeAt(c.length-1),p=Je(r.after.charCodeAt(0),f,o);p.inside&&(c=c.slice(0,-1)+Ne(f));const h=l.move(o+o);return i(),t.attentionEncodeSurroundingInfo={after:p.outside,before:s.outside},a+c+h}Sr.peek=function(e,n,t){return t.options.strong||"*"};const Cr={blockquote:function(e,n,t,r){const o=t.enter("blockquote"),i=t.createTracker(r);i.move("> "),i.shift(2);const l=t.indentLines(t.containerFlow(e,i.current()),gl);return o(),l},break:pr,code:function(e,n,t,r){const o=(function(f){const p=f.options.fence||"`";if(p!=="`"&&p!=="~")throw new Error("Cannot serialize code with `"+p+"` for `options.fence`, expected `` ` `` or `~`");return p})(t),i=e.value||"",l=o==="`"?"GraveAccent":"Tilde";if((function(f,p){return!!(p.options.fences===!1&&f.value&&!f.lang&&/[^ \r\n]/.test(f.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(f.value))})(e,t)){const f=t.enter("codeIndented"),p=t.indentLines(i,kl);return f(),p}const a=t.createTracker(r),c=o.repeat(Math.max(hr(i,o)+1,3)),u=t.enter("codeFenced");let s=a.move(c);if(e.lang){const f=t.enter(`codeFencedLang${l}`);s+=a.move(t.safe(e.lang,{before:s,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){const f=t.enter(`codeFencedMeta${l}`);s+=a.move(" "),s+=a.move(t.safe(e.meta,{before:s,after:`
|
|
17
|
-
`,encode:["`"],...a.current()})),f()}return s+=a.move(`
|
|
18
|
-
`),i&&(s+=a.move(i+`
|
|
19
|
-
`)),s+=a.move(c),u(),s},definition:function(e,n,t,r){const o=zn(t),i=o==='"'?"Quote":"Apostrophe",l=t.enter("definition");let a=t.enter("label");const c=t.createTracker(r);let u=c.move("[");return u+=c.move(t.safe(t.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(t.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(a=t.enter("destinationRaw"),u+=c.move(t.safe(e.url,{before:u,after:e.title?" ":`
|
|
20
|
-
`,...c.current()}))),a(),e.title&&(a=t.enter(`title${i}`),u+=c.move(" "+o),u+=c.move(t.safe(e.title,{before:u,after:o,...c.current()})),u+=c.move(o),a()),l(),u},emphasis:dr,hardBreak:pr,heading:function(e,n,t,r){const o=Math.max(Math.min(6,e.depth||1),1),i=t.createTracker(r);if((function(s,f){let p=!1;return kn(s,function(h){if("value"in h&&/\r?\n|\r/.test(h.value)||h.type==="break")return p=!0,gn}),!!((!s.depth||s.depth<3)&&un(s)&&(f.options.setext||p))})(e,t)){const s=t.enter("headingSetext"),f=t.enter("phrasing"),p=t.containerPhrasing(e,{...i.current(),before:`
|
|
21
|
-
`,after:`
|
|
22
|
-
`});return f(),s(),p+`
|
|
23
|
-
`+(o===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
24
|
-
`))+1))}const l="#".repeat(o),a=t.enter("headingAtx"),c=t.enter("phrasing");i.move(l+" ");let u=t.containerPhrasing(e,{before:"# ",after:`
|
|
25
|
-
`,...i.current()});return/^[\t ]/.test(u)&&(u=Ne(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,t.options.closeAtx&&(u+=" "+l),c(),a(),u},html:mr,image:gr,imageReference:yr,inlineCode:kr,link:vr,linkReference:br,list:function(e,n,t,r){const o=t.enter("list"),i=t.bulletCurrent;let l=e.ordered?(function(s){const f=s.options.bulletOrdered||".";if(f!=="."&&f!==")")throw new Error("Cannot serialize items with `"+f+"` for `options.bulletOrdered`, expected `.` or `)`");return f})(t):Mn(t);const a=e.ordered?l==="."?")":".":(function(s){const f=Mn(s),p=s.options.bulletOther;if(!p)return f==="*"?"-":"*";if(p!=="*"&&p!=="+"&&p!=="-")throw new Error("Cannot serialize items with `"+p+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(p===f)throw new Error("Expected `bullet` (`"+f+"`) and `bulletOther` (`"+p+"`) to be different");return p})(t);let c=!(!n||!t.bulletLastUsed)&&l===t.bulletLastUsed;if(!e.ordered){const s=e.children?e.children[0]:void 0;if(l!=="*"&&l!=="-"||!s||s.children&&s.children[0]||t.stack[t.stack.length-1]!=="list"||t.stack[t.stack.length-2]!=="listItem"||t.stack[t.stack.length-3]!=="list"||t.stack[t.stack.length-4]!=="listItem"||t.indexStack[t.indexStack.length-1]!==0||t.indexStack[t.indexStack.length-2]!==0||t.indexStack[t.indexStack.length-3]!==0||(c=!0),wr(t)===l&&s){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(l=a),t.bulletCurrent=l;const u=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=i,o(),u},listItem:function(e,n,t,r){const o=(function(s){const f=s.options.listItemIndent||"one";if(f!=="tab"&&f!=="one"&&f!=="mixed")throw new Error("Cannot serialize items with `"+f+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return f})(t);let i=t.bulletCurrent||Mn(t);n&&n.type==="list"&&n.ordered&&(i=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+i);let l=i.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=4*Math.ceil(l/4));const a=t.createTracker(r);a.move(i+" ".repeat(l-i.length)),a.shift(l);const c=t.enter("listItem"),u=t.indentLines(t.containerFlow(e,a.current()),function(s,f,p){return f?(p?"":" ".repeat(l))+s:(p?i:i+" ".repeat(l-i.length))+s});return c(),u},paragraph:function(e,n,t,r){const o=t.enter("paragraph"),i=t.enter("phrasing"),l=t.containerPhrasing(e,r);return i(),o(),l},root:function(e,n,t,r){return(e.children.some(function(o){return xl(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)},strong:Sr,text:function(e,n,t,r){return t.safe(e.value,r)},thematicBreak:function(e,n,t){const r=(wr(t)+(t.options.ruleSpaces?" ":"")).repeat((function(o){const i=o.options.ruleRepetition||3;if(i<3)throw new Error("Cannot serialize rules with repetition `"+i+"` for `options.ruleRepetition`, expected `3` or more");return i})(t));return t.options.ruleSpaces?r.slice(0,-1):r}};function vl(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function bl(e){this.exit(e),this.data.inTable=void 0}function wl(e){this.enter({type:"tableRow",children:[]},e)}function Rn(e){this.exit(e)}function Ir(e){this.enter({type:"tableCell",children:[]},e)}function Sl(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Cl));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Cl(e,n){return n==="|"?n:e}function Il(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,o=n.stringLength,i=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
26
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(u,s,f){let p=Cr.inlineCode(u,s,f);return f.stack.includes("tableCell")&&(p=p.replace(/\|/g,"\\$&")),p},table:function(u,s,f,p){return a((function(h,g,b){const k=h.children;let S=-1;const E=[],y=g.enter("table");for(;++S<k.length;)E[S]=c(k[S],g,b);return y(),E})(u,f,p),u.align)},tableCell:l,tableRow:function(u,s,f,p){const h=c(u,f,p),g=a([h]);return g.slice(0,g.indexOf(`
|
|
27
|
-
`))}}};function l(u,s,f,p){const h=f.enter("tableCell"),g=f.enter("phrasing"),b=f.containerPhrasing(u,{...p,before:i,after:i});return g(),h(),b}function a(u,s){return(function(f,p){const h=p||{},g=(h.align||[]).concat(),b=h.stringLength||dl,k=[],S=[],E=[],y=[];let C=0,T=-1;for(;++T<f.length;){const P=[],z=[];let A=-1;for(f[T].length>C&&(C=f[T].length);++A<f[T].length;){const B=ml(f[T][A]);if(h.alignDelimiters!==!1){const Y=b(B);z[A]=Y,(y[A]===void 0||Y>y[A])&&(y[A]=Y)}P.push(B)}S[T]=P,E[T]=z}let I=-1;if(typeof g=="object"&&"length"in g)for(;++I<C;)k[I]=cr(g[I]);else{const P=cr(g);for(;++I<C;)k[I]=P}I=-1;const F=[],x=[];for(;++I<C;){const P=k[I];let z="",A="";P===99?(z=":",A=":"):P===108?z=":":P===114&&(A=":");let B=h.alignDelimiters===!1?1:Math.max(1,y[I]-z.length-A.length);const Y=z+"-".repeat(B)+A;h.alignDelimiters!==!1&&(B=z.length+B+A.length,B>y[I]&&(y[I]=B),x[I]=B),F[I]=Y}S.splice(1,0,F),E.splice(1,0,x),T=-1;const R=[];for(;++T<S.length;){const P=S[T],z=E[T];I=-1;const A=[];for(;++I<C;){const B=P[I]||"";let Y="",W="";if(h.alignDelimiters!==!1){const _=y[I]-(z[I]||0),oe=k[I];oe===114?Y=" ".repeat(_):oe===99?_%2?(Y=" ".repeat(_/2+.5),W=" ".repeat(_/2-.5)):(Y=" ".repeat(_/2),W=Y):W=" ".repeat(_)}h.delimiterStart===!1||I||A.push("|"),h.padding===!1||h.alignDelimiters===!1&&B===""||h.delimiterStart===!1&&!I||A.push(" "),h.alignDelimiters!==!1&&A.push(Y),A.push(B),h.alignDelimiters!==!1&&A.push(W),h.padding!==!1&&A.push(" "),h.delimiterEnd===!1&&I===C-1||A.push("|")}R.push(h.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return R.join(`
|
|
28
|
-
`)})(u,{align:s,alignDelimiters:r,padding:t,stringLength:o})}function c(u,s,f){const p=u.children;let h=-1;const g=[],b=s.enter("tableRow");for(;++h<p.length;)g[h]=l(p[h],0,s,f);return b(),g}}function Er(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function El(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const o=n.children;let i,l=-1;for(;++l<o.length;){const a=o[l];if(a.type==="paragraph"){i=a;break}}i===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Tl(e,n,t,r){const o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);i&&a.move(l);let c=Cr.listItem(e,n,t,{...r,...a.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(u){return u+l})),c}const Al={tokenize:function(e,n,t){let r=0;return function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)};function o(i){return i===null?t(i):n(i)}},partial:!0},Tr={tokenize:function(e,n,t){let r,o,i;return l;function l(u){return u===46||u===95?e.check(Pr,c,a)(u):u===null||V(u)||ye(u)||u!==45&&Ve(u)?c(u):(i=!0,e.consume(u),l)}function a(u){return u===95?r=!0:(o=r,r=void 0),e.consume(u),l}function c(u){return o||r||!i?t(u):n(u)}},partial:!0},Ar={tokenize:function(e,n){let t=0,r=0;return o;function o(l){return l===40?(t++,e.consume(l),o):l===41&&r<t?i(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Pr,n,i)(l):l===null||V(l)||ye(l)?n(l):(e.consume(l),o)}function i(l){return l===41&&r++,e.consume(l),o}},partial:!0},Pr={tokenize:function(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),i):a===93?(e.consume(a),o):a===60||a===null||V(a)||ye(a)?n(a):t(a)}function o(a){return a===null||a===40||a===91||V(a)||ye(a)?n(a):r(a)}function i(a){return J(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):J(a)?(e.consume(a),l):t(a)}},partial:!0},Pl={tokenize:function(e,n,t){return function(o){return e.consume(o),r};function r(o){return X(o)?t(o):n(o)}},partial:!0},Dr={name:"wwwAutolink",tokenize:function(e,n,t){const r=this;return function(i){return i!==87&&i!==119||!Fr.call(r,r.previous)||Nn(r.events)?t(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Al,e.attempt(Tr,e.attempt(Ar,o),t),t)(i))};function o(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(i)}},previous:Fr},Lr={name:"protocolAutolink",tokenize:function(e,n,t){const r=this;let o="",i=!1;return function(s){return(s===72||s===104)&&Or.call(r,r.previous)&&!Nn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(s),e.consume(s),l):t(s)};function l(s){if(J(s)&&o.length<5)return o+=String.fromCodePoint(s),e.consume(s),l;if(s===58){const f=o.toLowerCase();if(f==="http"||f==="https")return e.consume(s),a}return t(s)}function a(s){return s===47?(e.consume(s),i?c:(i=!0,a)):t(s)}function c(s){return s===null||Ue(s)||V(s)||ye(s)||Ve(s)?t(s):e.attempt(Tr,e.attempt(Ar,u),t)(s)}function u(s){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(s)}},previous:Or},pe={name:"emailAutolink",tokenize:function(e,n,t){const r=this;let o,i;return function(s){return!_n(s)||!zr.call(r,r.previous)||Nn(r.events)?t(s):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(s))};function l(s){return _n(s)?(e.consume(s),l):s===64?(e.consume(s),a):t(s)}function a(s){return s===46?e.check(Pl,u,c)(s):s===45||s===95||X(s)?(i=!0,e.consume(s),a):u(s)}function c(s){return e.consume(s),o=!0,a}function u(s){return i&&o&&J(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(s)):t(s)}},previous:zr},ce={};let ke=48;for(;ke<123;)ce[ke]=pe,ke++,ke===58?ke=65:ke===91&&(ke=97);function Fr(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||V(e)}function Or(e){return!J(e)}function zr(e){return!(e===47||_n(e))}function _n(e){return e===43||e===45||e===46||e===95||X(e)}function Nn(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}ce[43]=pe,ce[45]=pe,ce[46]=pe,ce[95]=pe,ce[72]=[pe,Lr],ce[104]=[pe,Lr],ce[87]=[pe,Dr],ce[119]=[pe,Dr];const Dl={tokenize:function(e,n,t){const r=this;return j(e,function(o){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?n(o):t(o)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Ll(e,n,t){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;o--;){const a=r.events[o][1];if(a.type==="labelImage"){l=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return function(a){if(!l||!l._balanced)return t(a);const c=ae(r.sliceSerialize({start:l.end,end:r.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?t(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),n(a))}}function Fl(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",o,n],["exit",o,n],["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function Ol(e,n,t){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l=0;return function(s){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),a};function a(s){return s!==94?t(s):(e.enter("gfmFootnoteCallMarker"),e.consume(s),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(s){if(l>999||s===93&&!i||s===null||s===91||V(s))return t(s);if(s===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return o.includes(ae(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(s)}return V(s)||(i=!0),l++,e.consume(s),s===92?u:c}function u(s){return s===91||s===92||s===93?(e.consume(s),l++,c):c(s)}}function zl(e,n,t){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l,a=0;return function(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):t(h)}function u(h){if(a>999||h===93&&!l||h===null||h===91||V(h))return t(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return i=ae(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return V(h)||(l=!0),a++,e.consume(h),h===92?s:u}function s(h){return h===91||h===92||h===93?(e.consume(h),a++,u):u(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),o.includes(i)||o.push(i),j(e,p,"gfmFootnoteDefinitionWhitespace")):t(h)}function p(h){return n(h)}}function Ml(e,n,t){return e.check(Fe,n,e.attempt(Dl,n,t))}function Rl(e){e.exit("gfmFootnoteDefinition")}function _l(e){let n=(e||{}).singleTilde;const t={name:"strikethrough",tokenize:function(r,o,i){const l=this.previous,a=this.events;let c=0;return function(s){return l===126&&a[a.length-1][1].type!=="characterEscape"?i(s):(r.enter("strikethroughSequenceTemporary"),u(s))};function u(s){const f=Se(l);if(s===126)return c>1?i(s):(r.consume(s),c++,u);if(c<2&&!n)return i(s);const p=r.exit("strikethroughSequenceTemporary"),h=Se(s);return p._open=!h||h===2&&!!f,p._close=!f||f===2&&!!h,o(s)}},resolveAll:function(r,o){let i=-1;for(;++i<r.length;)if(r[i][0]==="enter"&&r[i][1].type==="strikethroughSequenceTemporary"&&r[i][1]._close){let l=i;for(;l--;)if(r[l][0]==="exit"&&r[l][1].type==="strikethroughSequenceTemporary"&&r[l][1]._open&&r[i][1].end.offset-r[i][1].start.offset===r[l][1].end.offset-r[l][1].start.offset){r[i][1].type="strikethroughSequence",r[l][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},r[l][1].start),end:Object.assign({},r[i][1].end)},c={type:"strikethroughText",start:Object.assign({},r[l][1].end),end:Object.assign({},r[i][1].start)},u=[["enter",a,o],["enter",r[l][1],o],["exit",r[l][1],o],["enter",c,o]],s=o.parser.constructs.insideSpan.null;s&&re(u,u.length,0,qe(s,r.slice(l+1,i),o)),re(u,u.length,0,[["exit",c,o],["enter",r[i][1],o],["exit",r[i][1],o],["exit",a,o]]),re(r,l-1,i-l+3,u),i=l+u.length-2;break}}for(i=-1;++i<r.length;)r[i][1].type==="strikethroughSequenceTemporary"&&(r[i][1].type="data");return r}};return n==null&&(n=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}}}class Nl{constructor(){this.map=[]}add(n,t,r){(function(o,i,l,a){let c=0;if(!(l===0&&a.length===0)){for(;c<o.map.length;){if(o.map[c][0]===i)return o.map[c][1]+=l,void o.map[c][2].push(...a);c+=1}o.map.push([i,l,a])}})(this,n,t,r)}consume(n){if(this.map.sort(function(i,l){return i[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let o=r.pop();for(;o;){for(const i of o)n.push(i);o=r.pop()}this.map.length=0}}function jl(e,n){let t=!1;const r=[];for(;n<e.length;){const o=e[n];if(t){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Bl(e,n,t){const r=this;let o,i=0,l=0;return function(x){let R=r.events.length-1;for(;R>-1;){const A=r.events[R][1].type;if(A!=="lineEnding"&&A!=="linePrefix")break;R--}const P=R>-1?r.events[R][1].type:null,z=P==="tableHead"||P==="tableRow"?C:a;return z===C&&r.parser.lazy[r.now().line]?t(x):z(x)};function a(x){return e.enter("tableHead"),e.enter("tableRow"),(function(R){return R===124||(o=!0,l+=1),c(R)})(x)}function c(x){return x===null?t(x):D(x)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),f):t(x):N(x)?j(e,c,"whitespace")(x):(l+=1,o&&(o=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),u(x)))}function u(x){return x===null||x===124||V(x)?(e.exit("data"),c(x)):(e.consume(x),x===92?s:u)}function s(x){return x===92||x===124?(e.consume(x),u):u(x)}function f(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(x):(e.enter("tableDelimiterRow"),o=!1,N(x)?j(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):p(x))}function p(x){return x===45||x===58?g(x):x===124?(o=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),h):y(x)}function h(x){return N(x)?j(e,g,"whitespace")(x):g(x)}function g(x){return x===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),b):x===45?(l+=1,b(x)):x===null||D(x)?E(x):y(x)}function b(x){return x===45?(e.enter("tableDelimiterFiller"),k(x)):y(x)}function k(x){return x===45?(e.consume(x),k):x===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(x))}function S(x){return N(x)?j(e,E,"whitespace")(x):E(x)}function E(x){return x===124?p(x):(x===null||D(x))&&o&&i===l?(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):y(x)}function y(x){return t(x)}function C(x){return e.enter("tableRow"),T(x)}function T(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),T):x===null||D(x)?(e.exit("tableRow"),n(x)):N(x)?j(e,T,"whitespace")(x):(e.enter("data"),I(x))}function I(x){return x===null||x===124||V(x)?(e.exit("data"),T(x)):(e.consume(x),x===92?F:I)}function F(x){return x===92||x===124?(e.consume(x),I):I(x)}}function Hl(e,n){let t,r,o,i=-1,l=!0,a=0,c=[0,0,0,0],u=[0,0,0,0],s=!1,f=0;const p=new Nl;for(;++i<e.length;){const h=e[i],g=h[1];h[0]==="enter"?g.type==="tableHead"?(s=!1,f!==0&&(Mr(p,n,f,t,r),r=void 0,f=0),t={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(i,0,[["enter",t,n]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=!0,o=void 0,c=[0,0,0,0],u=[0,i+1,0,0],s&&(s=!1,r={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(i,0,[["enter",r,n]])),a=g.type==="tableDelimiterRow"?2:r?3:1):!a||g.type!=="data"&&g.type!=="tableDelimiterMarker"&&g.type!=="tableDelimiterFiller"?g.type==="tableCellDivider"&&(l?l=!1:(c[1]!==0&&(u[0]=u[1],o=Ze(p,n,c,a,void 0,o)),c=u,u=[c[1],i,0,0])):(l=!1,u[2]===0&&(c[1]!==0&&(u[0]=u[1],o=Ze(p,n,c,a,void 0,o),c=[0,0,0,0]),u[2]=i)):g.type==="tableHead"?(s=!0,f=i):g.type==="tableRow"||g.type==="tableDelimiterRow"?(f=i,c[1]!==0?(u[0]=u[1],o=Ze(p,n,c,a,i,o)):u[1]!==0&&(o=Ze(p,n,u,a,i,o)),a=0):!a||g.type!=="data"&&g.type!=="tableDelimiterMarker"&&g.type!=="tableDelimiterFiller"||(u[3]=i)}for(f!==0&&Mr(p,n,f,t,r),p.consume(n.events),i=-1;++i<n.events.length;){const h=n.events[i];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=jl(n.events,i))}return e}function Ze(e,n,t,r,o,i){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData";t[0]!==0&&(i.end=Object.assign({},Ie(n.events,t[0])),e.add(t[0],0,[["exit",i,n]]));const a=Ie(n.events,t[1]);if(i={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(t[1],0,[["enter",i,n]]),t[2]!==0){const c=Ie(n.events,t[2]),u=Ie(n.events,t[3]),s={type:"tableContent",start:Object.assign({},c),end:Object.assign({},u)};if(e.add(t[2],0,[["enter",s,n]]),r!==2){const f=n.events[t[2]],p=n.events[t[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",t[3]>t[2]+1){const h=t[2]+1,g=t[3]-t[2]-1;e.add(h,g,[])}}e.add(t[3]+1,0,[["exit",s,n]])}return o!==void 0&&(i.end=Object.assign({},Ie(n.events,o)),e.add(o,0,[["exit",i,n]]),i=void 0),i}function Mr(e,n,t,r,o){const i=[],l=Ie(n.events,t);o&&(o.end=Object.assign({},l),i.push(["exit",o,n])),r.end=Object.assign({},l),i.push(["exit",r,n]),e.add(t+1,0,i)}function Ie(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Ul={name:"tasklistCheck",tokenize:function(e,n,t){const r=this;return function(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)};function o(a){return V(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),i):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),i):t(a)}function i(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):t(a)}function l(a){return D(a)?n(a):N(a)?e.check({tokenize:Vl},n,t)(a):t(a)}}};function Vl(e,n,t){return j(e,function(r){return r===null?t(r):n(r)},"whitespace")}const ql={};function Wl(e){const n=e||ql,t=this.data(),r=t.micromarkExtensions||(t.micromarkExtensions=[]),o=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),i=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);r.push((function(l){return St([{text:ce},{document:{91:{name:"gfmFootnoteDefinition",tokenize:zl,continuation:{tokenize:Ml},exit:Rl}},text:{91:{name:"gfmFootnoteCall",tokenize:Ol},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ll,resolveTo:Fl}}},_l(l),{flow:{null:{name:"table",tokenize:Bl,resolveAll:Hl}}},{text:{91:Ul}}])})(n)),o.push([{transforms:[Zi],enter:{literalAutolink:Yi,literalAutolinkEmail:On,literalAutolinkHttp:On,literalAutolinkWww:On},exit:{literalAutolink:Ji,literalAutolinkEmail:Xi,literalAutolinkHttp:Qi,literalAutolinkWww:Ki}},{enter:{gfmFootnoteCallString:nl,gfmFootnoteCall:tl,gfmFootnoteDefinitionLabelString:rl,gfmFootnoteDefinition:ol},exit:{gfmFootnoteCallString:il,gfmFootnoteCall:ll,gfmFootnoteDefinitionLabelString:sl,gfmFootnoteDefinition:al}},{canContainEols:["delete"],enter:{strikethrough:pl},exit:{strikethrough:hl}},{enter:{table:vl,tableData:Ir,tableHeader:Ir,tableRow:wl},exit:{codeText:Sl,table:bl,tableData:Rn,tableHeader:Rn,tableRow:Rn}},{exit:{taskListCheckValueChecked:Er,taskListCheckValueUnchecked:Er,paragraph:El}}]),i.push((function(l){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ln,notInConstruct:Fn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ln,notInConstruct:Fn},{character:":",before:"[ps]",after:"\\/",inConstruct:Ln,notInConstruct:Fn}]},ul(l),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fl}],handlers:{delete:ur}},Il(l),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Tl}}]}})(n))}export{Jt as S,tr as V,Ri as a,to as b,To as c,Wl as d,ro as e,at as f,Re as g,ut as h,yn as i,j,Kn as k,hr as l,D as m,je as n,no as o,yo as p,ct as q,wi as r,Be as s,So as t,Vi as u,kn as v,Jn as w,Dn as x};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as a,l as i,K as s,d as p,L as n}from"./mermaid.core-4nVOEVX3.js";import{p as m}from"./treemap-75Q7IDZK-CnuVFbBG.js";import"./index-OC46250R.js";import"./transform-D9VCJYws.js";import"./timer-Bqd5yn_a.js";import"./step-BwsUM5iJ.js";import"./_baseEach-C1FLm7WW.js";import"./_baseUniq-Dk7ZPJ3N.js";import"./min-D259kI3t.js";import"./_baseMap-DBVArUYD.js";import"./clone-DM1YNjEn.js";import"./_createAggregator-Bn38fDd3.js";var d={parse:a(async r=>{const t=await m("info",r);i.debug(t)},"parse")},g={version:n.version+""},v={parser:d,db:{getVersion:a(()=>g.version,"getVersion")},renderer:{draw:a((r,t,o)=>{i.debug(`rendering info diagram
|
|
2
|
-
`+r);const e=s(t);p(e,100,400,!0),e.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw")}};export{v as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{G as R}from"./graph-CssCVWIq.js";import{b as Cn,e as on,c as h,i as I,f as S,v as L,r as Y}from"./_baseUniq-Dk7ZPJ3N.js";import{b as an,a as Sn,m as k,c as G,h as un,f as J,l as q,d as Gn}from"./min-D259kI3t.js";import{eD as Fn,er as Vn,fz as Bn,cu as Yn,fA as qn,fs as zn,fB as F,fC as M,aA as Dn,aY as An,fD as z,fE as H}from"./index-OC46250R.js";import{c as dn,a as cn}from"./_baseEach-C1FLm7WW.js";import{s as V}from"./sortBy-aLGA-PGK.js";function Jn(n){return Cn(n,5)}function Hn(n,t){return n>t}function D(n,t){var r={};return t=cn(t),dn(n,function(u,a,c){Bn(r,a,t(u,a,c))}),r}function T(n){return n&&n.length?an(n,Yn,Hn):void 0}function K(n,t){return n&&n.length?an(n,cn(t),Sn):void 0}var Kn=0;function Q(n){var t=++Kn;return qn(n)+t}class Qn{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return sn(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&sn(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,u=r._prev;u!==r;)t.push(JSON.stringify(u,Un)),u=u._prev;return"["+t.join(", ")+"]"}}function sn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function Un(n,t){if(n!=="_next"&&n!=="_prev")return t}var Wn=Dn(1);function Xn(n,t){if(n.nodeCount()<=1)return[];var r=(function(a,c){var e=new R,i=0,o=0;h(a.nodes(),function(s){e.setNode(s,{v:s,in:0,out:0})}),h(a.edges(),function(s){var g=e.edge(s.v,s.w)||0,v=c(s),p=g+v;e.setEdge(s.v,s.w,p),o=Math.max(o,e.node(s.v).out+=v),i=Math.max(i,e.node(s.w).in+=v)});var d=M(o+i+3).map(function(){return new Qn}),f=i+1;return h(e.nodes(),function(s){W(d,f,e.node(s))}),{graph:e,buckets:d,zeroIdx:f}})(n,t||Wn),u=(function(a,c,e){for(var i,o=[],d=c[c.length-1],f=c[0];a.nodeCount();){for(;i=f.dequeue();)U(a,c,e,i);for(;i=d.dequeue();)U(a,c,e,i);if(a.nodeCount()){for(var s=c.length-2;s>0;--s)if(i=c[s].dequeue()){o=o.concat(U(a,c,e,i,!0));break}}}return o})(r.graph,r.buckets,r.zeroIdx);return F(k(u,function(a){return n.outEdges(a.v,a.w)}))}function U(n,t,r,u,a){var c=a?[]:void 0;return h(n.inEdges(u.v),function(e){var i=n.edge(e),o=n.node(e.v);a&&c.push({v:e.v,w:e.w}),o.out-=i,W(t,r,o)}),h(n.outEdges(u.v),function(e){var i=n.edge(e),o=e.w,d=n.node(o);d.in-=i,W(t,r,d)}),n.removeNode(u.v),c}function W(n,t,r){r.out?r.in?n[r.out-r.in+t].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function Zn(n){var t=n.graph().acyclicer==="greedy"?Xn(n,(function(r){return function(u){return r.edge(u).weight}})(n)):(function(r){var u=[],a={},c={};function e(i){Object.prototype.hasOwnProperty.call(c,i)||(c[i]=!0,a[i]=!0,h(r.outEdges(i),function(o){Object.prototype.hasOwnProperty.call(a,o.w)?u.push(o):e(o.w)}),delete a[i])}return h(r.nodes(),e),u})(n);h(t,function(r){var u=n.edge(r);n.removeEdge(r),u.forwardName=r.name,u.reversed=!0,n.setEdge(r.w,r.v,u,Q("rev"))})}function C(n,t,r,u){var a;do a=Q(u);while(n.hasNode(a));return r.dummy=t,n.setNode(a,r),a}function fn(n){var t=new R({multigraph:n.isMultigraph()}).setGraph(n.graph());return h(n.nodes(),function(r){n.children(r).length||t.setNode(r,n.node(r))}),h(n.edges(),function(r){t.setEdge(r,n.edge(r))}),t}function hn(n,t){var r,u,a=n.x,c=n.y,e=t.x-a,i=t.y-c,o=n.width/2,d=n.height/2;if(!e&&!i)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(i)*o>Math.abs(e)*d?(i<0&&(d=-d),r=d*e/i,u=d):(e<0&&(o=-o),r=o,u=o*i/e),{x:a+r,y:c+u}}function A(n){var t=k(M(vn(n)+1),function(){return[]});return h(n.nodes(),function(r){var u=n.node(r),a=u.rank;I(a)||(t[a][u.order]=r)}),t}function gn(n,t,r,u){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=u),C(n,"border",a,t)}function vn(n){return T(k(n.nodes(),function(t){var r=n.node(t).rank;if(!I(r))return r}))}function $n(n,t){return t()}function ln(n,t,r,u,a,c){var e={width:0,height:0,rank:c,borderType:t},i=a[t][c-1],o=C(n,"border",e,r);a[t][c]=o,n.setParent(o,u),i&&n.setEdge(i,o,{weight:1})}function ne(n){var t=n.graph().rankdir.toLowerCase();t!=="bt"&&t!=="rl"||(function(r){h(r.nodes(),function(u){X(r.node(u))}),h(r.edges(),function(u){var a=r.edge(u);h(a.points,X),Object.prototype.hasOwnProperty.call(a,"y")&&X(a)})})(n),t!=="lr"&&t!=="rl"||((function(r){h(r.nodes(),function(u){Z(r.node(u))}),h(r.edges(),function(u){var a=r.edge(u);h(a.points,Z),Object.prototype.hasOwnProperty.call(a,"x")&&Z(a)})})(n),pn(n))}function pn(n){h(n.nodes(),function(t){wn(n.node(t))}),h(n.edges(),function(t){wn(n.edge(t))})}function wn(n){var t=n.width;n.width=n.height,n.height=t}function X(n){n.y=-n.y}function Z(n){var t=n.x;n.x=n.y,n.y=t}function ee(n){n.graph().dummyChains=[],h(n.edges(),function(t){(function(r,u){var a=u.v,c=r.node(a).rank,e=u.w,i=r.node(e).rank,o=u.name,d=r.edge(u),f=d.labelRank;if(i!==c+1){r.removeEdge(u);var s,g,v=void 0;for(g=0,++c;c<i;++g,++c)d.points=[],s=C(r,"edge",v={width:0,height:0,edgeLabel:d,edgeObj:u,rank:c},"_d"),c===f&&(v.width=d.width,v.height=d.height,v.dummy="edge-label",v.labelpos=d.labelpos),r.setEdge(a,s,{weight:d.weight},o),g===0&&r.graph().dummyChains.push(s),a=s;r.setEdge(a,e,{weight:d.weight},o)}})(n,t)})}function $(n){var t={};h(n.sources(),function r(u){var a=n.node(u);if(Object.prototype.hasOwnProperty.call(t,u))return a.rank;t[u]=!0;var c=G(k(n.outEdges(u),function(e){return r(e.w)-n.edge(e).minlen}));return c!==Number.POSITIVE_INFINITY&&c!=null||(c=0),a.rank=c})}function B(n,t){return n.node(t.w).rank-n.node(t.v).rank-n.edge(t).minlen}function mn(n){var t,r,u=new R({directed:!1}),a=n.nodes()[0],c=n.nodeCount();for(u.setNode(a,{});re(u,n)<c;)t=te(u,n),r=u.hasNode(t.v)?B(n,t):-B(n,t),oe(u,n,r);return u}function re(n,t){return h(n.nodes(),function r(u){h(t.nodeEdges(u),function(a){var c=a.v,e=u===c?a.w:c;n.hasNode(e)||B(t,a)||(n.setNode(e,{}),n.setEdge(u,e,{}),r(e))})}),n.nodeCount()}function te(n,t){return K(t.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return B(t,r)})}function oe(n,t,r){h(n.nodes(),function(u){t.node(u).rank+=r})}function bn(n,t,r){An(t)||(t=[t]);var u=(n.isDirected()?n.successors:n.neighbors).bind(n),a=[],c={};return h(t,function(e){if(!n.hasNode(e))throw new Error("Graph does not have node: "+e);yn(n,e,r==="post",c,u,a)}),a}function yn(n,t,r,u,a,c){Object.prototype.hasOwnProperty.call(u,t)||(u[t]=!0,r||c.push(t),h(a(t),function(e){yn(n,e,r,u,a,c)}),r&&c.push(t))}function j(n){n=(function(u){var a=new R().setGraph(u.graph());return h(u.nodes(),function(c){a.setNode(c,u.node(c))}),h(u.edges(),function(c){var e=a.edge(c.v,c.w)||{weight:0,minlen:1},i=u.edge(c);a.setEdge(c.v,c.w,{weight:e.weight+i.weight,minlen:Math.max(e.minlen,i.minlen)})}),a})(n),$(n);var t,r=mn(n);for(en(r),nn(r,n);t=En(r);)On(r,n,t,Nn(r,n,t))}function nn(n,t){var r=(function(u,a){return bn(u,a,"post")})(n,n.nodes());r=r.slice(0,r.length-1),h(r,function(u){(function(a,c,e){var i=a.node(e),o=i.parent;a.edge(e,o).cutvalue=xn(a,c,e)})(n,t,u)})}function xn(n,t,r){var u=n.node(r).parent,a=!0,c=t.edge(r,u),e=0;return c||(a=!1,c=t.edge(u,r)),e=c.weight,h(t.nodeEdges(r),function(i){var o,d,f=i.v===r,s=f?i.w:i.v;if(s!==u){var g=f===a,v=t.edge(i).weight;if(e+=g?v:-v,o=r,d=s,n.hasEdge(o,d)){var p=n.edge(r,s).cutvalue;e+=g?-p:p}}}),e}function en(n,t){arguments.length<2&&(t=n.nodes()[0]),kn(n,{},1,t)}function kn(n,t,r,u,a){var c=r,e=n.node(u);return t[u]=!0,h(n.neighbors(u),function(i){Object.prototype.hasOwnProperty.call(t,i)||(r=kn(n,t,r,i,u))}),e.low=c,e.lim=r++,a?e.parent=a:delete e.parent,r}function En(n){return J(n.edges(),function(t){return n.edge(t).cutvalue<0})}function Nn(n,t,r){var u=r.v,a=r.w;t.hasEdge(u,a)||(u=r.w,a=r.v);var c=n.node(u),e=n.node(a),i=c,o=!1;c.lim>e.lim&&(i=e,o=!0);var d=S(t.edges(),function(f){return o===_n(n,n.node(f.v),i)&&o!==_n(n,n.node(f.w),i)});return K(d,function(f){return B(t,f)})}function On(n,t,r,u){var a=r.v,c=r.w;n.removeEdge(a,c),n.setEdge(u.v,u.w,{}),en(n),nn(n,t),(function(e,i){var o=J(e.nodes(),function(f){return!i.node(f).parent}),d=(function(f,s){return bn(f,s,"pre")})(e,o);d=d.slice(1),h(d,function(f){var s=e.node(f).parent,g=i.edge(f,s),v=!1;g||(g=i.edge(s,f),v=!0),i.node(f).rank=i.node(s).rank+(v?g.minlen:-g.minlen)})})(n,t)}function _n(n,t,r){return r.low<=t.lim&&t.lim<=r.lim}function ie(n){switch(n.graph().ranker){case"network-simplex":default:ue(n);break;case"tight-tree":(function(t){$(t),mn(t)})(n);break;case"longest-path":ae(n)}}new Error,j.initLowLimValues=en,j.initCutValues=nn,j.calcCutValue=xn,j.leaveEdge=En,j.enterEdge=Nn,j.exchangeEdges=On;var ae=$;function ue(n){j(n)}function de(n){var t=C(n,"root",{},"_root"),r=(function(e){var i={};function o(d,f){var s=e.children(d);s&&s.length&&h(s,function(g){o(g,f+1)}),i[d]=f}return h(e.children(),function(d){o(d,1)}),i})(n),u=T(L(r))-1,a=2*u+1;n.graph().nestingRoot=t,h(n.edges(),function(e){n.edge(e).minlen*=a});var c=(function(e){return Y(e.edges(),function(i,o){return i+e.edge(o).weight},0)})(n)+1;h(n.children(),function(e){In(n,t,a,c,u,r,e)}),n.graph().nodeRankFactor=a}function In(n,t,r,u,a,c,e){var i=n.children(e);if(i.length){var o=gn(n,"_bt"),d=gn(n,"_bb"),f=n.node(e);n.setParent(o,e),f.borderTop=o,n.setParent(d,e),f.borderBottom=d,h(i,function(s){In(n,t,r,u,a,c,s);var g=n.node(s),v=g.borderTop?g.borderTop:s,p=g.borderBottom?g.borderBottom:s,w=g.borderTop?u:2*u,l=v!==p?1:a-c[e]+1;n.setEdge(o,v,{weight:w,minlen:l,nestingEdge:!0}),n.setEdge(p,d,{weight:w,minlen:l,nestingEdge:!0})}),n.parent(e)||n.setEdge(t,o,{weight:0,minlen:a+c[e]})}else e!==t&&n.setEdge(t,e,{weight:0,minlen:r})}function ce(n,t,r){var u=(function(c){for(var e;c.hasNode(e=Q("_root")););return e})(n),a=new R({compound:!0}).setGraph({root:u}).setDefaultNodeLabel(function(c){return n.node(c)});return h(n.nodes(),function(c){var e=n.node(c),i=n.parent(c);(e.rank===t||e.minRank<=t&&t<=e.maxRank)&&(a.setNode(c),a.setParent(c,i||u),h(n[r](c),function(o){var d=o.v===c?o.w:o.v,f=a.edge(d,c),s=I(f)?0:f.weight;a.setEdge(d,c,{weight:n.edge(o).weight+s})}),Object.prototype.hasOwnProperty.call(e,"minRank")&&a.setNode(c,{borderLeft:e.borderLeft[t],borderRight:e.borderRight[t]}))}),a}function se(n,t){for(var r=0,u=1;u<t.length;++u)r+=fe(n,t[u-1],t[u]);return r}function fe(n,t,r){for(var u=(function(d,f){return(function(s,g,v){for(var p=-1,w=s.length,l=g.length,m={};++p<w;){var b=p<l?g[p]:void 0;v(m,s[p],b)}return m})(d||[],f||[],zn)})(r,k(r,function(d,f){return f})),a=F(k(t,function(d){return V(k(n.outEdges(d),function(f){return{pos:u[f.w],weight:n.edge(f).weight}}),"pos")})),c=1;c<r.length;)c<<=1;var e=2*c-1;c-=1;var i=k(new Array(e),function(){return 0}),o=0;return h(a.forEach(function(d){var f=d.pos+c;i[f]+=d.weight;for(var s=0;f>0;)f%2&&(s+=i[f+1]),i[f=f-1>>1]+=d.weight;o+=d.weight*s})),o}function he(n,t){var r={};return h(n,function(u,a){var c=r[u.v]={indegree:0,in:[],out:[],vs:[u.v],i:a};I(u.barycenter)||(c.barycenter=u.barycenter,c.weight=u.weight)}),h(t.edges(),function(u){var a=r[u.v],c=r[u.w];I(a)||I(c)||(c.indegree++,a.out.push(r[u.w]))}),(function(u){var a=[];function c(o){return function(d){d.merged||(I(d.barycenter)||I(o.barycenter)||d.barycenter>=o.barycenter)&&(function(f,s){var g=0,v=0;f.weight&&(g+=f.barycenter*f.weight,v+=f.weight),s.weight&&(g+=s.barycenter*s.weight,v+=s.weight),f.vs=s.vs.concat(f.vs),f.barycenter=g/v,f.weight=v,f.i=Math.min(s.i,f.i),s.merged=!0})(o,d)}}function e(o){return function(d){d.in.push(o),--d.indegree===0&&u.push(d)}}for(;u.length;){var i=u.pop();a.push(i),h(i.in.reverse(),c(i)),h(i.out,e(i))}return k(S(a,function(o){return!o.merged}),function(o){return z(o,["vs","i","barycenter","weight"])})})(S(r,function(u){return!u.indegree}))}function ge(n,t){var r,u=(function(s,g){var v={lhs:[],rhs:[]};return h(s,function(p){g(p)?v.lhs.push(p):v.rhs.push(p)}),v})(n,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),a=u.lhs,c=V(u.rhs,function(s){return-s.i}),e=[],i=0,o=0,d=0;a.sort((r=!!t,function(s,g){return s.barycenter<g.barycenter?-1:s.barycenter>g.barycenter?1:r?g.i-s.i:s.i-g.i})),d=Pn(e,c,d),h(a,function(s){d+=s.vs.length,e.push(s.vs),i+=s.barycenter*s.weight,o+=s.weight,d=Pn(e,c,d)});var f={vs:F(e)};return o&&(f.barycenter=i/o,f.weight=o),f}function Pn(n,t,r){for(var u;t.length&&(u=q(t)).i<=r;)t.pop(),n.push(u.vs),r++;return r}function Rn(n,t,r,u){var a=n.children(t),c=n.node(t),e=c?c.borderLeft:void 0,i=c?c.borderRight:void 0,o={};e&&(a=S(a,function(p){return p!==e&&p!==i}));var d=(function(p,w){return k(w,function(l){var m=p.inEdges(l);if(m.length){var b=Y(m,function(y,x){var O=p.edge(x),E=p.node(x.v);return{sum:y.sum+O.weight*E.order,weight:y.weight+O.weight}},{sum:0,weight:0});return{v:l,barycenter:b.sum/b.weight,weight:b.weight}}return{v:l}})})(n,a);h(d,function(p){if(n.children(p.v).length){var w=Rn(n,p.v,r,u);o[p.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&(m=w,I((l=p).barycenter)?(l.barycenter=m.barycenter,l.weight=m.weight):(l.barycenter=(l.barycenter*l.weight+m.barycenter*m.weight)/(l.weight+m.weight),l.weight+=m.weight))}var l,m});var f=he(d,r);(function(p,w){h(p,function(l){l.vs=F(l.vs.map(function(m){return w[m]?w[m].vs:m}))})})(f,o);var s=ge(f,u);if(e&&(s.vs=F([e,s.vs,i]),n.predecessors(e).length)){var g=n.node(n.predecessors(e)[0]),v=n.node(n.predecessors(i)[0]);Object.prototype.hasOwnProperty.call(s,"barycenter")||(s.barycenter=0,s.weight=0),s.barycenter=(s.barycenter*s.weight+g.order+v.order)/(s.weight+2),s.weight+=2}return s}function ve(n){var t=vn(n),r=Tn(n,M(1,t+1),"inEdges"),u=Tn(n,M(t-1,-1,-1),"outEdges"),a=(function(f){var s={},g=S(f.nodes(),function(l){return!f.children(l).length}),v=T(k(g,function(l){return f.node(l).rank})),p=k(M(v+1),function(){return[]}),w=V(g,function(l){return f.node(l).rank});return h(w,function l(m){if(!un(s,m)){s[m]=!0;var b=f.node(m);p[b.rank].push(m),h(f.successors(m),l)}}),p})(n);jn(n,a);for(var c,e=Number.POSITIVE_INFINITY,i=0,o=0;o<4;++i,++o){le(i%2?r:u,i%4>=2);var d=se(n,a=A(n));d<e&&(o=0,c=Jn(a),e=d)}jn(n,c)}function Tn(n,t,r){return k(t,function(u){return ce(n,u,r)})}function le(n,t){var r=new R;h(n,function(u){var a=u.graph().root,c=Rn(u,a,r,t);h(c.vs,function(e,i){u.node(e).order=i}),(function(e,i,o){var d,f={};h(o,function(s){for(var g,v,p=e.parent(s);p;){if((g=e.parent(p))?(v=f[g],f[g]=p):(v=d,d=p),v&&v!==p)return void i.setEdge(v,p);p=g}})})(u,r,c.vs)})}function jn(n,t){h(t,function(r){h(r,function(u,a){n.node(u).order=a})})}function pe(n){var t=(function(r){var u={},a=0;function c(e){var i=a;h(r.children(e),c),u[e]={low:i,lim:a++}}return h(r.children(),c),u})(n);h(n.graph().dummyChains,function(r){for(var u=n.node(r),a=u.edgeObj,c=(function(s,g,v,p){var w,l,m=[],b=[],y=Math.min(g[v].low,g[p].low),x=Math.max(g[v].lim,g[p].lim);w=v;do w=s.parent(w),m.push(w);while(w&&(g[w].low>y||x>g[w].lim));for(l=w,w=p;(w=s.parent(w))!==l;)b.push(w);return{path:m.concat(b.reverse()),lca:l}})(n,t,a.v,a.w),e=c.path,i=c.lca,o=0,d=e[o],f=!0;r!==a.w;){if(u=n.node(r),f){for(;(d=e[o])!==i&&n.node(d).maxRank<u.rank;)o++;d===i&&(f=!1)}if(!f){for(;o<e.length-1&&n.node(d=e[o+1]).minRank<=u.rank;)o++;d=e[o]}n.setParent(r,d),r=n.successors(r)[0]}})}function we(n,t){var r={};return Y(t,function(u,a){var c=0,e=0,i=u.length,o=q(a);return h(a,function(d,f){var s=(function(v,p){if(v.node(p).dummy)return J(v.predecessors(p),function(w){return v.node(w).dummy})})(n,d),g=s?n.node(s).order:i;(s||d===o)&&(h(a.slice(e,f+1),function(v){h(n.predecessors(v),function(p){var w=n.node(p),l=w.order;!(l<c||g<l)||w.dummy&&n.node(v).dummy||Ln(r,p,v)})}),e=f+1,c=g)}),a}),r}function Ln(n,t,r){if(t>r){var u=t;t=r,r=u}var a=n[t];a||(n[t]=a={}),a[r]=!0}function me(n,t,r){if(t>r){var u=t;t=r,r=u}return!!n[t]&&Object.prototype.hasOwnProperty.call(n[t],r)}function be(n,t,r,u,a){var c={},e=(function(d,f,s,g){var v=new R,p=d.graph(),w=(function(l,m,b){return function(y,x,O){var E,_=y.node(x),P=y.node(O),N=0;if(N+=_.width/2,Object.prototype.hasOwnProperty.call(_,"labelpos"))switch(_.labelpos.toLowerCase()){case"l":E=-_.width/2;break;case"r":E=_.width/2}if(E&&(N+=b?E:-E),E=0,N+=(_.dummy?m:l)/2,N+=(P.dummy?m:l)/2,N+=P.width/2,Object.prototype.hasOwnProperty.call(P,"labelpos"))switch(P.labelpos.toLowerCase()){case"l":E=P.width/2;break;case"r":E=-P.width/2}return E&&(N+=b?E:-E),E=0,N}})(p.nodesep,p.edgesep,g);return h(f,function(l){var m;h(l,function(b){var y=s[b];if(v.setNode(y),m){var x=s[m],O=v.edge(x,y);v.setEdge(x,y,Math.max(w(d,b,m),O||0))}m=b})}),v})(n,t,r,a),i=a?"borderLeft":"borderRight";function o(d,f){for(var s=e.nodes(),g=s.pop(),v={};g;)v[g]?d(g):(v[g]=!0,s.push(g),s=s.concat(f(g))),g=s.pop()}return o(function(d){c[d]=e.inEdges(d).reduce(function(f,s){return Math.max(f,c[s.v]+e.edge(s))},0)},e.predecessors.bind(e)),o(function(d){var f=e.outEdges(d).reduce(function(g,v){return Math.min(g,c[v.w]-e.edge(v))},Number.POSITIVE_INFINITY),s=n.node(d);f!==Number.POSITIVE_INFINITY&&s.borderType!==i&&(c[d]=Math.max(c[d],f))},e.successors.bind(e)),h(u,function(d){c[d]=c[r[d]]}),c}function ye(n,t){return K(L(t),function(r){var u,a,c=Number.NEGATIVE_INFINITY,e=Number.POSITIVE_INFINITY;return a=function(i,o){var d=(function(f,s){return f.node(s).width})(n,o)/2;c=Math.max(i+d,c),e=Math.min(i-d,e)},(u=r)==null||Fn(u,on(a),Vn),c-e})}function xe(n){var t,r=A(n),u=H(we(n,r),(function(e,i){var o={};function d(f,s,g,v,p){var w;h(M(s,g),function(l){w=f[l],e.node(w).dummy&&h(e.predecessors(w),function(m){var b=e.node(m);b.dummy&&(b.order<v||b.order>p)&&Ln(o,m,w)})})}return Y(i,function(f,s){var g,v=-1,p=0;return h(s,function(w,l){if(e.node(w).dummy==="border"){var m=e.predecessors(w);m.length&&(g=e.node(m[0]).order,d(s,p,l,v,g),p=l,v=g)}d(s,p,s.length,g,f.length)}),s}),o})(n,r)),a={};h(["u","d"],function(e){t=e==="u"?r:L(r).reverse(),h(["l","r"],function(i){i==="r"&&(t=k(t,function(s){return L(s).reverse()}));var o=(e==="u"?n.predecessors:n.successors).bind(n),d=(function(s,g,v,p){var w={},l={},m={};return h(g,function(b){h(b,function(y,x){w[y]=y,l[y]=y,m[y]=x})}),h(g,function(b){var y=-1;h(b,function(x){var O=p(x);if(O.length){O=V(O,function(Mn){return m[Mn]});for(var E=(O.length-1)/2,_=Math.floor(E),P=Math.ceil(E);_<=P;++_){var N=O[_];l[x]===x&&y<m[N]&&!me(v,x,N)&&(l[N]=x,l[x]=w[x]=w[N],y=m[N])}}})}),{root:w,align:l}})(0,t,u,o),f=be(n,t,d.root,d.align,i==="r");i==="r"&&(f=D(f,function(s){return-s})),a[e+i]=f})});var c=ye(n,a);return(function(e,i){var o=L(i),d=G(o),f=T(o);h(["u","d"],function(s){h(["l","r"],function(g){var v,p=s+g,w=e[p];if(w!==i){var l=L(w);(v=g==="l"?d-G(l):f-T(l))&&(e[p]=D(w,function(m){return m+v}))}})})})(a,c),(function(e,i){return D(e.ul,function(o,d){if(i)return e[i.toLowerCase()][d];var f=V(k(e,d));return(f[1]+f[2])/2})})(a,n.graph().align)}function ke(n){var t,r;(function(u){var a=A(u),c=u.graph().ranksep,e=0;h(a,function(i){var o=T(k(i,function(d){return u.node(d).height}));h(i,function(d){u.node(d).y=e+o/2}),e+=o+c})})(n=fn(n)),t=xe(n),r=function(u,a){n.node(a).x=u},t&&dn(t,on(r))}function Ee(n,t){var r=$n;r("layout",()=>{var u=r(" buildLayoutGraph",()=>(function(a){var c=new R({multigraph:!0,compound:!0}),e=tn(a.graph());return c.setGraph(H({},Oe,rn(e,Ne),z(e,_e))),h(a.nodes(),function(i){var o=tn(a.node(i));c.setNode(i,Gn(rn(o,Ie),Pe)),c.setParent(i,a.parent(i))}),h(a.edges(),function(i){var o=tn(a.edge(i));c.setEdge(i,H({},Te,rn(o,Re),z(o,je)))}),c})(n));r(" runLayout",()=>(function(a,c){c(" makeSpaceForEdgeLabels",()=>(function(e){var i=e.graph();i.ranksep/=2,h(e.edges(),function(o){var d=e.edge(o);d.minlen*=2,d.labelpos.toLowerCase()!=="c"&&(i.rankdir==="TB"||i.rankdir==="BT"?d.width+=d.labeloffset:d.height+=d.labeloffset)})})(a)),c(" removeSelfEdges",()=>(function(e){h(e.edges(),function(i){if(i.v===i.w){var o=e.node(i.v);o.selfEdges||(o.selfEdges=[]),o.selfEdges.push({e:i,label:e.edge(i)}),e.removeEdge(i)}})})(a)),c(" acyclic",()=>Zn(a)),c(" nestingGraph.run",()=>de(a)),c(" rank",()=>ie(fn(a))),c(" injectEdgeLabelProxies",()=>(function(e){h(e.edges(),function(i){var o=e.edge(i);if(o.width&&o.height){var d=e.node(i.v),f={rank:(e.node(i.w).rank-d.rank)/2+d.rank,e:i};C(e,"edge-proxy",f,"_ep")}})})(a)),c(" removeEmptyRanks",()=>(function(e){var i=G(k(e.nodes(),function(s){return e.node(s).rank})),o=[];h(e.nodes(),function(s){var g=e.node(s).rank-i;o[g]||(o[g]=[]),o[g].push(s)});var d=0,f=e.graph().nodeRankFactor;h(o,function(s,g){I(s)&&g%f!==0?--d:d&&h(s,function(v){e.node(v).rank+=d})})})(a)),c(" nestingGraph.cleanup",()=>(function(e){var i=e.graph();e.removeNode(i.nestingRoot),delete i.nestingRoot,h(e.edges(),function(o){e.edge(o).nestingEdge&&e.removeEdge(o)})})(a)),c(" normalizeRanks",()=>(function(e){var i=G(k(e.nodes(),function(o){return e.node(o).rank}));h(e.nodes(),function(o){var d=e.node(o);un(d,"rank")&&(d.rank-=i)})})(a)),c(" assignRankMinMax",()=>(function(e){var i=0;h(e.nodes(),function(o){var d=e.node(o);d.borderTop&&(d.minRank=e.node(d.borderTop).rank,d.maxRank=e.node(d.borderBottom).rank,i=T(i,d.maxRank))}),e.graph().maxRank=i})(a)),c(" removeEdgeLabelProxies",()=>(function(e){h(e.nodes(),function(i){var o=e.node(i);o.dummy==="edge-proxy"&&(e.edge(o.e).labelRank=o.rank,e.removeNode(i))})})(a)),c(" normalize.run",()=>ee(a)),c(" parentDummyChains",()=>pe(a)),c(" addBorderSegments",()=>(function(e){h(e.children(),function i(o){var d=e.children(o),f=e.node(o);if(d.length&&h(d,i),Object.prototype.hasOwnProperty.call(f,"minRank")){f.borderLeft=[],f.borderRight=[];for(var s=f.minRank,g=f.maxRank+1;s<g;++s)ln(e,"borderLeft","_bl",o,f,s),ln(e,"borderRight","_br",o,f,s)}})})(a)),c(" order",()=>ve(a)),c(" insertSelfEdges",()=>(function(e){var i=A(e);h(i,function(o){var d=0;h(o,function(f,s){var g=e.node(f);g.order=s+d,h(g.selfEdges,function(v){C(e,"selfedge",{width:v.label.width,height:v.label.height,rank:g.rank,order:s+ ++d,e:v.e,label:v.label},"_se")}),delete g.selfEdges})})})(a)),c(" adjustCoordinateSystem",()=>(function(e){var i=e.graph().rankdir.toLowerCase();i!=="lr"&&i!=="rl"||pn(e)})(a)),c(" position",()=>ke(a)),c(" positionSelfEdges",()=>(function(e){h(e.nodes(),function(i){var o=e.node(i);if(o.dummy==="selfedge"){var d=e.node(o.e.v),f=d.x+d.width/2,s=d.y,g=o.x-f,v=d.height/2;e.setEdge(o.e,o.label),e.removeNode(i),o.label.points=[{x:f+2*g/3,y:s-v},{x:f+5*g/6,y:s-v},{x:f+g,y:s},{x:f+5*g/6,y:s+v},{x:f+2*g/3,y:s+v}],o.label.x=o.x,o.label.y=o.y}})})(a)),c(" removeBorderNodes",()=>(function(e){h(e.nodes(),function(i){if(e.children(i).length){var o=e.node(i),d=e.node(o.borderTop),f=e.node(o.borderBottom),s=e.node(q(o.borderLeft)),g=e.node(q(o.borderRight));o.width=Math.abs(g.x-s.x),o.height=Math.abs(f.y-d.y),o.x=s.x+o.width/2,o.y=d.y+o.height/2}}),h(e.nodes(),function(i){e.node(i).dummy==="border"&&e.removeNode(i)})})(a)),c(" normalize.undo",()=>(function(e){h(e.graph().dummyChains,function(i){var o,d=e.node(i),f=d.edgeLabel;for(e.setEdge(d.edgeObj,f);d.dummy;)o=e.successors(i)[0],e.removeNode(i),f.points.push({x:d.x,y:d.y}),d.dummy==="edge-label"&&(f.x=d.x,f.y=d.y,f.width=d.width,f.height=d.height),i=o,d=e.node(i)})})(a)),c(" fixupEdgeLabelCoords",()=>(function(e){h(e.edges(),function(i){var o=e.edge(i);if(Object.prototype.hasOwnProperty.call(o,"x"))switch(o.labelpos!=="l"&&o.labelpos!=="r"||(o.width-=o.labeloffset),o.labelpos){case"l":o.x-=o.width/2+o.labeloffset;break;case"r":o.x+=o.width/2+o.labeloffset}})})(a)),c(" undoCoordinateSystem",()=>ne(a)),c(" translateGraph",()=>(function(e){var i=Number.POSITIVE_INFINITY,o=0,d=Number.POSITIVE_INFINITY,f=0,s=e.graph(),g=s.marginx||0,v=s.marginy||0;function p(w){var l=w.x,m=w.y,b=w.width,y=w.height;i=Math.min(i,l-b/2),o=Math.max(o,l+b/2),d=Math.min(d,m-y/2),f=Math.max(f,m+y/2)}h(e.nodes(),function(w){p(e.node(w))}),h(e.edges(),function(w){var l=e.edge(w);Object.prototype.hasOwnProperty.call(l,"x")&&p(l)}),i-=g,d-=v,h(e.nodes(),function(w){var l=e.node(w);l.x-=i,l.y-=d}),h(e.edges(),function(w){var l=e.edge(w);h(l.points,function(m){m.x-=i,m.y-=d}),Object.prototype.hasOwnProperty.call(l,"x")&&(l.x-=i),Object.prototype.hasOwnProperty.call(l,"y")&&(l.y-=d)}),s.width=o-i+g,s.height=f-d+v})(a)),c(" assignNodeIntersects",()=>(function(e){h(e.edges(),function(i){var o,d,f=e.edge(i),s=e.node(i.v),g=e.node(i.w);f.points?(o=f.points[0],d=f.points[f.points.length-1]):(f.points=[],o=g,d=s),f.points.unshift(hn(s,o)),f.points.push(hn(g,d))})})(a)),c(" reversePoints",()=>(function(e){h(e.edges(),function(i){var o=e.edge(i);o.reversed&&o.points.reverse()})})(a)),c(" acyclic.undo",()=>(function(e){h(e.edges(),function(i){var o=e.edge(i);if(o.reversed){e.removeEdge(i);var d=o.forwardName;delete o.reversed,delete o.forwardName,e.setEdge(i.w,i.v,o,d)}})})(a))})(u,r)),r(" updateInputGraph",()=>(function(a,c){h(a.nodes(),function(e){var i=a.node(e),o=c.node(e);i&&(i.x=o.x,i.y=o.y,c.children(e).length&&(i.width=o.width,i.height=o.height))}),h(a.edges(),function(e){var i=a.edge(e),o=c.edge(e);i.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(i.x=o.x,i.y=o.y)}),a.graph().width=c.graph().width,a.graph().height=c.graph().height})(n,u))})}var Ne=["nodesep","edgesep","ranksep","marginx","marginy"],Oe={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_e=["acyclicer","ranker","rankdir","align"],Ie=["width","height"],Pe={width:0,height:0},Re=["minlen","weight","width","height","labeloffset"],Te={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},je=["labelpos"];function rn(n,t){return D(z(n,t),Number)}function tn(n){var t={};return h(n,function(r,u){t[u.toLowerCase()]=r}),t}export{Ee as l};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as P,i as v,a as d,b as I,f as w}from"./timer-Bqd5yn_a.js";import{dh as A,f3 as J,dr as K,f4 as L,f5 as Q,f6 as U,f7 as W,f8 as X,a1 as Y,f9 as Z,fa as _}from"./index-OC46250R.js";import{i as $}from"./init-DLRA0X12.js";function k(n){return n===null?NaN:+n}function*nn(n,r){if(r===void 0)for(let t of n)t!=null&&(t=+t)>=t&&(yield t);else{let t=-1;for(let a of n)(a=r(a,++t,n))!=null&&(a=+a)>=a&&(yield a)}}const x=A(J),j=x.right,tn=x.left;function y(n,r){r||(r=[]);var t,a=n?Math.min(r.length,n.length):0,e=r.slice();return function(i){for(t=0;t<a;++t)e[t]=n[t]*(1-i)+r[t]*i;return e}}function D(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function rn(n,r){return(D(r)?y:V)(n,r)}function V(n,r){var t,a=r?r.length:0,e=n?Math.min(a,n.length):0,i=new Array(e),u=new Array(a);for(t=0;t<e;++t)i[t]=p(n[t],r[t]);for(;t<a;++t)u[t]=r[t];return function(f){for(t=0;t<e;++t)u[t]=i[t](f);return u}}function q(n,r){var t=new Date;return n=+n,r=+r,function(a){return t.setTime(n*(1-a)+r*a),t}}function B(n,r){var t,a={},e={};for(t in n!==null&&typeof n=="object"||(n={}),r!==null&&typeof r=="object"||(r={}),r)t in n?a[t]=p(n[t],r[t]):e[t]=r[t];return function(i){for(t in a)e[t]=a[t](i);return e}}function p(n,r){var t,a=typeof r;return r==null||a==="boolean"?P(r):(a==="number"?v:a==="string"?(t=w(r))?(r=t,d):I:r instanceof w?d:r instanceof Date?q:D(r)?y:Array.isArray(r)?V:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?B:v)(n,r)}function F(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function O(n){return+n}A(k).center;var R=[0,1];function g(n){return n}function M(n,r){return(r-=n=+n)?function(a){return(a-n)/r}:(t=isNaN(r)?NaN:.5,function(){return t});var t}function an(n,r,t){var a=n[0],e=n[1],i=r[0],u=r[1];return e<a?(a=M(e,a),i=t(u,i)):(a=M(a,e),i=t(i,u)),function(f){return i(a(f))}}function en(n,r,t){var a=Math.min(n.length,r.length)-1,e=new Array(a),i=new Array(a),u=-1;for(n[a]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++u<a;)e[u]=M(n[u],n[u+1]),i[u]=t(r[u],r[u+1]);return function(f){var c=j(n,f,1,a)-1;return i[c](e[c](f))}}function S(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function T(){var n,r,t,a,e,i,u=R,f=R,c=p,s=g;function h(){var o,m,N,b=Math.min(u.length,f.length);return s!==g&&(o=u[0],m=u[b-1],o>m&&(N=o,o=m,m=N),s=function(H){return Math.max(o,Math.min(m,H))}),a=b>2?en:an,e=i=null,l}function l(o){return o==null||isNaN(o=+o)?t:(e||(e=a(u.map(n),f,c)))(n(s(o)))}return l.invert=function(o){return s(r((i||(i=a(f,u.map(n),v)))(o)))},l.domain=function(o){return arguments.length?(u=Array.from(o,O),h()):u.slice()},l.range=function(o){return arguments.length?(f=Array.from(o),h()):f.slice()},l.rangeRound=function(o){return f=Array.from(o),c=F,h()},l.clamp=function(o){return arguments.length?(s=!!o||g,h()):s!==g},l.interpolate=function(o){return arguments.length?(c=o,h()):c},l.unknown=function(o){return arguments.length?(t=o,l):t},function(o,m){return n=o,r=m,h()}}function z(){return T()(g,g)}function C(n,r,t,a){var e,i=K(n,r,t);switch((a=L(a??",f")).type){case"s":var u=Math.max(Math.abs(n),Math.abs(r));return a.precision!=null||isNaN(e=W(i,u))||(a.precision=e),X(a,u);case"":case"e":case"g":case"p":case"r":a.precision!=null||isNaN(e=U(i,Math.max(Math.abs(n),Math.abs(r))))||(a.precision=e-(a.type==="e"));break;case"f":case"%":a.precision!=null||isNaN(e=Q(i))||(a.precision=e-2*(a.type==="%"))}return Y(a)}function E(n){var r=n.domain;return n.ticks=function(t){var a=r();return Z(a[0],a[a.length-1],t??10)},n.tickFormat=function(t,a){var e=r();return C(e[0],e[e.length-1],t??10,a)},n.nice=function(t){t==null&&(t=10);var a,e,i=r(),u=0,f=i.length-1,c=i[u],s=i[f],h=10;for(s<c&&(e=c,c=s,s=e,e=u,u=f,f=e);h-- >0;){if((e=_(c,s,t))===a)return i[u]=c,i[f]=s,r(i);if(e>0)c=Math.floor(c/e)*e,s=Math.ceil(s/e)*e;else{if(!(e<0))break;c=Math.ceil(c*e)/e,s=Math.floor(s*e)/e}a=e}return n},n}function G(){var n=z();return n.copy=function(){return S(n,G())},$.apply(n,arguments),E(n)}export{S as a,k as b,z as c,rn as d,q as e,y as f,F as g,O as h,p as i,E as j,g as k,G as l,j as m,nn as n,B as o,C as p,tn as q,T as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c,r as u,u as h,b as f,L as M,j as b}from"./index-OC46250R.js";import{m as l}from"./mermaid.core-4nVOEVX3.js";import"./transform-D9VCJYws.js";import"./timer-Bqd5yn_a.js";import"./step-BwsUM5iJ.js";const p={startOnLoad:!0,theme:"forest",logLevel:"fatal",securityLevel:"strict",fontFamily:"var(--text-font)",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!0,curve:"linear"},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d"}},v=d=>{const t=c.c(9),{diagram:a}=d,[r]=u.useState(x),e=h().theme==="dark";let n,i;l.initialize({...p,theme:e?"dark":"forest",darkMode:e}),t[0]!==a||t[1]!==r?(n=async()=>(await l.render(r,a,void 0).catch(m=>{var g;throw(g=document.getElementById(r))==null||g.remove(),M.warn("Failed to render mermaid diagram",m),m})).svg,t[0]=a,t[1]=r,t[2]=n):n=t[2],t[3]!==e||t[4]!==a||t[5]!==r?(i=[a,r,e],t[3]=e,t[4]=a,t[5]=r,t[6]=i):i=t[6];const{data:o}=f(n,i);if(!o)return null;let s;return t[7]!==o?(s=b.jsx("div",{dangerouslySetInnerHTML:{__html:o}}),t[7]=o,t[8]=s):s=t[8],s};function x(){return(function(){const d="abcdefghijklmnopqrstuvwxyz";return Array.from({length:6},()=>d[Math.floor(26*Math.random())]).join("")})()}export{v as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ax as d,cw as b,er as g,es as O,A as j,aC as y,et as w,cs as x,aY as P,eu as A,cr as M,cu as q}from"./index-OC46250R.js";import{a as f}from"./_baseEach-C1FLm7WW.js";import{d as C}from"./_baseUniq-Dk7ZPJ3N.js";import{b as Y}from"./_baseMap-DBVArUYD.js";var v=Object.prototype,_=v.hasOwnProperty,k=d(function(a,n){a=Object(a);var u=-1,t=n.length,r=t>2?n[2]:void 0;for(r&&b(n[0],n[1],r)&&(t=1);++u<t;)for(var e=n[u],o=g(e),i=-1,c=o.length;++i<c;){var l=o[i],s=a[l];(s===void 0||O(s,v[l])&&!_.call(a,l))&&(a[l]=e[l])}return a});function z(a){var n=a==null?0:a.length;return n?a[n-1]:void 0}var B=Math.max,h,D=(h=function(a,n,u){var t=a==null?0:a.length;if(!t)return-1;var r=u==null?0:w(u);return r<0&&(r=B(t+r,0)),C(a,f(n),r)},function(a,n,u){var t=Object(a);if(!j(a)){var r=f(n);a=y(a),n=function(o){return r(t[o],o,t)}}var e=h(a,n,u);return e>-1?t[r?a[e]:e]:void 0});function E(a,n){return(P(a)?x:Y)(a,f(n))}var F=Object.prototype.hasOwnProperty;function G(a,n){return a!=null&&F.call(a,n)}function H(a,n){return a!=null&&A(a,n,G)}function m(a,n){return a<n}function p(a,n,u){for(var t=-1,r=a.length;++t<r;){var e=a[t],o=n(e);if(o!=null&&(i===void 0?o==o&&!M(o):u(o,i)))var i=o,c=e}return c}function I(a){return a&&a.length?p(a,q,m):void 0}export{m as a,p as b,I as c,k as d,D as f,H as h,z as l,E as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aj as me,a as U,ak as de,al as W,d as D,b as pe,j as r,I as q,U as K,E as te,B as xe,am as ue,an as fe,W as ge,T as re,X,O as Y,Q as he,S as je,Y as ve,Z as be,ao as ke,ap as oe,aq as ye,ar as Ne,as as se,at as ne,au as _e,av as we,aw as Se,__tla as Ce}from"./index-OC46250R.js";import{u as Pe,B as H}from"./links-CbvGxbsJ.js";import{P as $e,__tla as Ee}from"./edit-page-DJ8kJZ9w.js";import{P as ie}from"./empty-state-BIBXzY_0.js";import{__tla as Te}from"./storage-CGlP4lCF.js";import"./index-Dt9UWeWn.js";import"./index-BAH034Ue.js";import"./index-DqzMPAC8.js";import"./index-DSU75csX.js";import"./index-CSgxTUzD.js";import"./index-BLu5CX6z.js";import"./index-B8llrTSo.js";import"./index-CPN7TRA1.js";import"./index-BFSnz7iM.js";import"./index-Bq516OmX.js";import"./index-CB2pnVQG.js";import"./index-DWOaniGT.js";import"./index-c6If577Q.js";import"./apl-CXdQSnD-.js";import"./asciiarmor-D5V0T9Cu.js";import"./asn1-DWPaVWf6.js";import"./brainfuck-CtZaYBKt.js";import"./cobol-stawOqaz.js";import"./clike-BgBwzOhw.js";import"./clojure-DiuoqK-z.js";import"./css-ZjFoif2m.js";import"./cmake-DXn5xaP-.js";import"./coffeescript-BTDxI-eT.js";import"./commonlisp-vq6DHwts.js";import"./cypher-gJDei3ni.js";import"./python-DD-Q2bae.js";import"./crystal-CRzZ78HM.js";import"./d-BShv7fp-.js";import"./diff-UJJ5BM9S.js";import"./dtd-DI9Herc-.js";import"./dylan-DkEP81N9.js";import"./ecl-DPFc0Uaf.js";import"./eiffel-DR5c0IrL.js";import"./elm-DompmV0j.js";import"./erlang-BuqgqA5h.js";import"./factor-CFXhaUWb.js";import"./simple-mode-C3vEBAcb.js";import"./forth-POgR1ypr.js";import"./fortran-DL7KluxX.js";import"./mllike-3c2dg9RT.js";import"./gas-bV0CklSb.js";import"./gherkin-B6X1vGSW.js";import"./groovy-DnIzCrpZ.js";import"./haskell-CLQs6EAM.js";import"./haxe-D25e-2l-.js";import"./idl-pcmmZuaN.js";import"./javascript-BpzJj0-u.js";import"./jinja2-DhgKlfW7.js";import"./julia-DjdwvFuI.js";import"./livescript-HO6ttBFx.js";import"./lua-8DXOpKDz.js";import"./mirc-DkvFAiy5.js";import"./mathematica-IIbmv7SK.js";import"./modelica-DSrSSXCg.js";import"./mumps-zvxmGV4l.js";import"./mbox-z_N2Mo3d.js";import"./nsis-BvKfQ9lQ.js";import"./ntriples-BSwWqoLa.js";import"./octave-C4hdQ5Hf.js";import"./oz-qQq7irPq.js";import"./pascal-CafrKXZF.js";import"./perl-tdMlh9QA.js";import"./pig-CwGJVRC4.js";import"./powershell-D1ly3AHC.js";import"./properties-_nPj978X.js";import"./protobuf-B4y9do6W.js";import"./pug-BTvK5tSS.js";import"./puppet-Bc-yJKzi.js";import"./q-B0kTJ4cI.js";import"./r-BA4EbLKE.js";import"./rpm-DI_rRufH.js";import"./ruby-CR-u2WLS.js";import"./sas-Bqaci40L.js";import"./scheme-qjP0V5Ag.js";import"./shell-BLav31RL.js";import"./sieve-r025o_jW.js";import"./smalltalk-C7J3IyEP.js";import"./sparql-BRLJFz69.js";import"./stylus-Bdo_Aemu.js";import"./swift-B_XXVlXX.js";import"./verilog-B4LBqg_1.js";import"./tcl-B2fODqDH.js";import"./textile-BuVhTOzU.js";import"./toml-wcPdHu67.js";import"./troff-Ce85hlLp.js";import"./ttcn-BxnYHtq8.js";import"./ttcn-cfg-CKJxb-l2.js";import"./turtle-BkSuIpt-.js";import"./webidl-CGwyPRYs.js";import"./vb-BHgjm0DN.js";import"./vbscript-Dawdd5GZ.js";import"./velocity-BdD_26Jv.js";import"./vhdl-CWWH2SUo.js";import"./xquery-CVDBqZPY.js";import"./yacas-I8QjZlxf.js";import"./z80-D8p3gKXp.js";import"./mscgen-B2igx18G.js";import"./index-DMomwMcN.js";import"./trash-UBqfK4mR.js";import"./_createAggregator-Bn38fDd3.js";import"./_baseEach-C1FLm7WW.js";import{__tla as Ie}from"./loro_wasm_bg-C1ks32Vm.js";let ae,Le=Promise.all([(()=>{try{return Ce}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Ie}catch{}})()]).then(async()=>{let R,F,J,Z,O,Q,ee,V;R=me(null),F=t=>{const e=U.c(9),{onClick:o,loading:s,children:a,className:m}=t;if(s){let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(K,{size:"small",className:"h-4 w-4 shrink-0 opacity-50"}),e[0]=l):l=e[0],l}let p,n,c;return e[1]!==m?(p=q("px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible",m),e[1]=m,e[2]=p):p=e[2],e[3]!==o?(n=Se.stopPropagation(o),e[3]=o,e[4]=n):n=e[4],e[5]!==a||e[6]!==p||e[7]!==n?(c=r.jsx("button",{type:"button",className:p,onClick:n,children:a}),e[5]=a,e[6]=p,e[7]=n,e[8]=c):c=e[8],c},ae=()=>{var w,S;const t=U.c(30),[e]=de(),o=e.package_management.manager,{getDependencyTree:s,getPackageList:a}=W(),[m,p]=D.useState(null);let n,c;t[0]!==s||t[1]!==a?(n=async()=>{const[x,N]=await Promise.all([a(),s()]);return{list:x.packages,tree:N.tree}},t[0]=s,t[1]=a,t[2]=n):n=t[2],t[3]!==o?(c=[o],t[3]=o,t[4]=c):c=t[4];const{data:l,error:d,refetch:v,isPending:g}=pe(n,c);if(g){let x;return t[5]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(K,{size:"medium",centered:!0}),t[5]=x):x=t[5],x}if(d){let x;return t[6]!==d?(x=r.jsx(te,{error:d}),t[6]=d,t[7]=x):x=t[7],x}const h=l.tree!=null;let i;t[8]!==h||t[9]!==m?(i=(function(x,N){return x==="list"?"list":N?x||"tree":"list"})(m,h),t[8]=h,t[9]=m,t[10]=i):i=t[10];const f=i,u=(w=l.tree)==null?void 0:w.name,P=(S=l==null?void 0:l.tree)==null?void 0:S.version,y=u==="<root>";let k,b,j,C;return t[11]!==o||t[12]!==v?(k=r.jsx(J,{packageManager:o,onSuccess:v}),t[11]=o,t[12]=v,t[13]=k):k=t[13],t[14]!==y||t[15]!==h||t[16]!==u||t[17]!==P||t[18]!==f?(b=h&&r.jsxs("div",{className:"flex items-center justify-between px-2 py-1 border-b",children:[r.jsxs("div",{className:"flex gap-1",children:[r.jsx("button",{type:"button",className:q("px-2 py-1 text-xs rounded",f==="list"?"bg-accent text-accent-foreground":"text-muted-foreground hover:text-foreground"),onClick:()=>p("list"),children:"List"}),r.jsx("button",{type:"button",className:q("px-2 py-1 text-xs rounded",f==="tree"?"bg-accent text-accent-foreground":"text-muted-foreground hover:text-foreground"),onClick:()=>p("tree"),children:"Tree"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium",title:y?"sandbox":"project",children:y?"sandbox":"project"}),u&&!y&&r.jsxs("span",{className:"text-xs text-muted-foreground",children:[u,P&&` v${P}`]})]})]}),t[14]=y,t[15]=h,t[16]=u,t[17]=P,t[18]=f,t[19]=b):b=t[19],t[20]!==l.list||t[21]!==l.tree||t[22]!==d||t[23]!==v||t[24]!==f?(j=f==="list"?r.jsx(Z,{packages:l.list,onSuccess:v}):r.jsx(ee,{tree:l.tree,error:d,onSuccess:v}),t[20]=l.list,t[21]=l.tree,t[22]=d,t[23]=v,t[24]=f,t[25]=j):j=t[25],t[26]!==k||t[27]!==b||t[28]!==j?(C=r.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[k,b,j]}),t[26]=k,t[27]=b,t[28]=j,t[29]=C):C=t[29],C},J=t=>{const e=U.c(40),{onSuccess:o,packageManager:s}=t,[a,m]=D.useState(""),{handleClick:p}=Pe(),n=xe(R),c=ue(R);let l,d;e[0]!==n||e[1]!==c?(l=()=>{n&&(m(n),c(null))},d=[n,c],e[0]=n,e[1]=c,e[2]=l,e[3]=d):(l=e[2],d=e[3]),D.useEffect(l,d);const{loading:v,handleInstallPackages:g}=fe();let h;e[4]!==o?(h=()=>{o(),m("")},e[4]=o,e[5]=h):h=e[5];const i=h;let f;e[6]!==g||e[7]!==a||e[8]!==i?(f=()=>{g(a.split(",").map(ce),i)},e[6]=g,e[7]=a,e[8]=i,e[9]=f):f=e[9];const u=f,P=`Install packages with ${s}...`;let y,k,b,j,C,w,S,x,N,$,E,T,I,L;e[10]!==v||e[11]!==p?(y=v?r.jsx(K,{size:"small",className:"mr-2 h-4 w-4 shrink-0 opacity-50"}):r.jsx(oe,{content:"Change package manager",children:r.jsx(H,{onClick:()=>p("packageManagement"),className:"mr-2 h-4 w-4 shrink-0 opacity-50 hover:opacity-80 cursor-pointer"})}),e[10]=v,e[11]=p,e[12]=y):y=e[12],e[13]!==u?(k=G=>{G.key==="Enter"&&(G.preventDefault(),u())},e[13]=u,e[14]=k):k=e[14],e[15]===Symbol.for("react.memo_cache_sentinel")?(b=G=>m(G.target.value),e[15]=b):b=e[15],e[16]!==a||e[17]!==P||e[18]!==y||e[19]!==k?(j=r.jsx(ye,{placeholder:P,id:$e,icon:y,rootClassName:"flex-1 border-none",value:a,onKeyDown:k,onChange:b}),e[16]=a,e[17]=P,e[18]=y,e[19]=k,e[20]=j):j=e[20],e[21]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx("span",{className:"font-bold tracking-wide",children:"Package name:"}),e[21]=C):C=e[21],e[22]===Symbol.for("react.memo_cache_sentinel")?(w=r.jsxs("div",{children:[C," A package name; this will install the latest version.",r.jsx("div",{className:"text-muted-foreground",children:"Example: httpx"})]}),S=r.jsx("span",{className:"font-bold tracking-wide",children:"Package and version:"}),e[22]=w,e[23]=S):(w=e[22],S=e[23]),e[24]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsxs("div",{children:[S," ","A package with a specific version or version range.",r.jsx("div",{className:"text-muted-foreground",children:"Examples: httpx==0.27.0, httpx>=0.27.0"})]}),N=r.jsx("span",{className:"font-bold tracking-wide",children:"Git:"}),e[24]=x,e[25]=N):(x=e[24],N=e[25]),e[26]===Symbol.for("react.memo_cache_sentinel")?($=r.jsxs("div",{children:[N," A Git repository",r.jsx("div",{className:"text-muted-foreground",children:"Example: git+https://github.com/encode/httpx"})]}),E=r.jsx("span",{className:"font-bold tracking-wide",children:"URL:"}),e[26]=$,e[27]=E):($=e[26],E=e[27]),e[28]===Symbol.for("react.memo_cache_sentinel")?(T=r.jsxs("div",{children:[E," A remote wheel or source distribution.",r.jsx("div",{className:"text-muted-foreground",children:"Example: https://example.com/httpx-0.27.0.tar.gz"})]}),I=r.jsx("span",{className:"font-bold tracking-wide",children:"Path:"}),e[28]=T,e[29]=I):(T=e[28],I=e[29]),e[30]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(oe,{delayDuration:300,side:"left",align:"start",content:r.jsxs("div",{className:"text-sm flex flex-col w-full max-w-[360px]",children:["Packages are installed using the package manager specified in your user configuration. Depending on your package manager, you can install packages with various formats:",r.jsxs("div",{className:"flex flex-col gap-2 mt-2",children:[w,x,$,T,r.jsxs("div",{children:[I," A local wheel, source distribution, or project directory.",r.jsx("div",{className:"text-muted-foreground",children:"Example: /example/foo-0.1.0-py3-none-any.whl"})]})]})]}),children:r.jsx(Ne,{className:"h-4 w-4 cursor-help text-muted-foreground hover:text-foreground bg-transparent"})}),e[30]=L):L=e[30];const A=a&&"bg-accent text-accent-foreground";let _;e[31]!==A?(_=q("float-right px-2 m-0 h-full text-sm text-secondary-foreground ml-2",A,"disabled:cursor-not-allowed disabled:opacity-50"),e[31]=A,e[32]=_):_=e[32];const z=!a;let M,B;return e[33]!==u||e[34]!==_||e[35]!==z?(M=r.jsx("button",{type:"button",className:_,onClick:u,disabled:z,children:"Add"}),e[33]=u,e[34]=_,e[35]=z,e[36]=M):M=e[36],e[37]!==M||e[38]!==j?(B=r.jsxs("div",{className:"flex items-center w-full border-b",children:[j,L,M]}),e[37]=M,e[38]=j,e[39]=B):B=e[39],B},Z=t=>{const e=U.c(9),{onSuccess:o,packages:s}=t;if(s.length===0){let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsx(ie,{title:"No packages",description:"No packages are installed in this environment.",icon:r.jsx(H,{})}),e[0]=n):n=e[0],n}let a,m,p;if(e[1]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(ge,{children:r.jsxs(re,{children:[r.jsx(X,{children:"Name"}),r.jsx(X,{children:"Version"}),r.jsx(X,{})]})}),e[1]=a):a=e[1],e[2]!==o||e[3]!==s){let n;e[5]!==o?(n=c=>r.jsxs(re,{className:"group",onClick:async()=>{await he(`${c.name}==${c.version}`),je({title:"Copied to clipboard"})},children:[r.jsx(Y,{children:c.name}),r.jsx(Y,{children:c.version}),r.jsxs(Y,{className:"flex justify-end",children:[r.jsx(O,{packageName:c.name,onSuccess:o}),r.jsx(Q,{packageName:c.name,onSuccess:o})]})]},c.name),e[5]=o,e[6]=n):n=e[6],m=s.map(n),e[2]=o,e[3]=s,e[4]=m}else m=e[4];return e[7]!==m?(p=r.jsxs(ve,{className:"overflow-auto flex-1",children:[a,r.jsx(be,{children:m})]}),e[7]=m,e[8]=p):p=e[8],p},O=({packageName:t,onSuccess:e})=>{const[o,s]=D.useState(!1),{addPackage:a}=W();return ke()?null:r.jsx(F,{onClick:async()=>{try{s(!0);const m=await a({package:t,upgrade:!0});m.success?(e(),se(t)):se(t,m.error)}finally{s(!1)}},loading:o,children:"Upgrade"})},Q=({packageName:t,onSuccess:e})=>{const[o,s]=D.useState(!1),{removePackage:a}=W();return r.jsx(F,{onClick:async()=>{try{s(!0);const m=await a({package:t});m.success?(e(),ne(t)):ne(t,m.error)}finally{s(!1)}},loading:o,children:"Remove"})},ee=t=>{const e=U.c(18),{tree:o,error:s,onSuccess:a}=t;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=new Set,e[0]=m):m=e[0];const[p,n]=D.useState(m);let c,l,d;if(e[1]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{n(new Set)},e[1]=c):c=e[1],e[2]!==o?(l=[o],e[2]=o,e[3]=l):l=e[3],D.useEffect(c,l),s){let i;return e[4]!==s?(i=r.jsx(te,{error:s}),e[4]=s,e[5]=i):i=e[5],i}if(!o){let i;return e[6]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(K,{size:"medium",centered:!0}),e[6]=i):i=e[6],i}if(o.dependencies.length===0){let i;return e[7]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(ie,{title:"No dependencies",description:"No package dependencies found in this environment.",icon:r.jsx(H,{})}),e[7]=i):i=e[7],i}e[8]===Symbol.for("react.memo_cache_sentinel")?(d=i=>{n(f=>{const u=new Set(f);return u.has(i)?u.delete(i):u.add(i),u})},e[8]=d):d=e[8];const v=d;let g,h;if(e[9]!==p||e[10]!==a||e[11]!==o.dependencies){let i;e[13]!==p||e[14]!==a?(i=(f,u)=>r.jsx("div",{className:"border-b",children:r.jsx(V,{nodeId:`root-${u}`,node:f,level:0,isTopLevel:!0,expandedNodes:p,onToggle:v,onSuccess:a})},`${f.name}-${u}`),e[13]=p,e[14]=a,e[15]=i):i=e[15],g=o.dependencies.map(i),e[9]=p,e[10]=a,e[11]=o.dependencies,e[12]=g}else g=e[12];return e[16]!==g?(h=r.jsx("div",{className:"flex-1 overflow-auto",children:r.jsx("div",{children:g})}),e[16]=g,e[17]=h):h=e[17],h},V=t=>{const e=U.c(57),{nodeId:o,node:s,level:a,isTopLevel:m,expandedNodes:p,onToggle:n,onSuccess:c}=t,l=m!==void 0&&m,d=s.dependencies.length>0;let v;e[0]!==p||e[1]!==o?(v=p.has(o),e[0]=p,e[1]=o,e[2]=v):v=e[2];const g=v,h=l?0:16+16*a;let i;e[3]!==d||e[4]!==o||e[5]!==n?(i=_=>{_.key!=="Enter"&&_.key!==" "||(_.preventDefault(),d&&n(o))},e[3]=d,e[4]=o,e[5]=n,e[6]=i):i=e[6];const f=i;let u;e[7]!==d||e[8]!==o||e[9]!==n?(u=_=>{_.stopPropagation(),d&&n(o)},e[7]=d,e[8]=o,e[9]=n,e[10]=u):u=e[10];const P=u,y=d&&"select-none",k=l?"px-2 py-0.5":"";let b,j;e[11]!==y||e[12]!==k?(b=q("flex items-center group cursor-pointer text-sm whitespace-nowrap","hover:bg-(--slate-2) focus:bg-(--slate-2) focus:outline-hidden",y,k),e[11]=y,e[12]=k,e[13]=b):b=e[13],e[14]!==h||e[15]!==l?(j=l?{}:{paddingLeft:`${h}px`},e[14]=h,e[15]=l,e[16]=j):j=e[16];const C=d?g:void 0;let w,S,x,N,$,E,T,I,L,A;return e[17]!==d||e[18]!==g?(w=d?g?r.jsx(_e,{className:"w-4 h-4 mr-2 shrink-0"}):r.jsx(we,{className:"w-4 h-4 mr-2 shrink-0"}):r.jsx("div",{className:"w-4 mr-2 shrink-0"}),e[17]=d,e[18]=g,e[19]=w):w=e[19],e[20]!==s.name?(S=r.jsx("span",{className:"font-medium truncate",children:s.name}),e[20]=s.name,e[21]=S):S=e[21],e[22]!==s.version?(x=s.version&&r.jsxs("span",{className:"text-muted-foreground text-xs",children:["v",s.version]}),e[22]=s.version,e[23]=x):x=e[23],e[24]!==S||e[25]!==x?(N=r.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0 py-1.5",children:[S,x]}),e[24]=S,e[25]=x,e[26]=N):N=e[26],e[27]!==s.tags?($=s.tags.map(le),e[27]=s.tags,e[28]=$):$=e[28],e[29]!==$?(E=r.jsx("div",{className:"flex items-center gap-1 ml-2",children:$}),e[29]=$,e[30]=E):E=e[30],e[31]!==l||e[32]!==s.name||e[33]!==c?(T=l&&r.jsxs("div",{className:"flex gap-1 invisible group-hover:visible",children:[r.jsx(O,{packageName:s.name,onSuccess:c}),r.jsx(Q,{packageName:s.name,onSuccess:c})]}),e[31]=l,e[32]=s.name,e[33]=c,e[34]=T):T=e[34],e[35]!==P||e[36]!==f||e[37]!==w||e[38]!==N||e[39]!==E||e[40]!==T||e[41]!==b||e[42]!==j||e[43]!==C?(I=r.jsxs("div",{className:b,style:j,onClick:P,onKeyDown:f,tabIndex:0,role:"treeitem","aria-selected":!1,"aria-expanded":C,children:[w,N,E,T]}),e[35]=P,e[36]=f,e[37]=w,e[38]=N,e[39]=E,e[40]=T,e[41]=b,e[42]=j,e[43]=C,e[44]=I):I=e[44],e[45]!==p||e[46]!==d||e[47]!==g||e[48]!==a||e[49]!==s.dependencies||e[50]!==o||e[51]!==c||e[52]!==n?(L=d&&g&&r.jsx("div",{role:"group",children:s.dependencies.map((_,z)=>r.jsx(V,{nodeId:`${o}-${z}`,node:_,level:a+1,isTopLevel:!1,expandedNodes:p,onToggle:n,onSuccess:c},`${_.name}-${z}`))}),e[45]=p,e[46]=d,e[47]=g,e[48]=a,e[49]=s.dependencies,e[50]=o,e[51]=c,e[52]=n,e[53]=L):L=e[53],e[54]!==I||e[55]!==L?(A=r.jsxs("div",{children:[I,L]}),e[54]=I,e[55]=L,e[56]=A):A=e[56],A};function ce(t){return t.trim()}function le(t,e){return t.kind==="cycle"?r.jsx("div",{className:"items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-orange-300 dark:border-orange-700 text-orange-700 dark:text-orange-300",title:"cycle",children:"cycle"},e):t.kind==="extra"?r.jsx("div",{className:"items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-blue-300 dark:border-blue-700 text-blue-700 dark:text-blue-300",title:t.value,children:t.value},e):t.kind==="group"?r.jsx("div",{className:"items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-green-300 dark:border-green-700 text-green-700 dark:text-green-300",title:t.value,children:t.value},e):null}});export{Le as __tla,ae as default};
|