vibelet 1.2.248 → 1.2.250
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/index.cjs +1 -1
- package/dist/inventory-scan-worker.cjs +1 -1
- package/dist/remoteDirect/manifest.json +12 -12
- package/dist/runtime-version.cjs +1 -1
- package/dist/web/assets/App-CqANyaMK.css +97 -0
- package/dist/web/assets/App-nYpLxr2P.js +2 -0
- package/dist/web/assets/BrowserControlPanel-BuNWFba-.js +1 -0
- package/dist/web/assets/{ChatPane-CzxrCqL_.css → ChatPane-CWKGXZWT.css} +1 -1
- package/dist/web/assets/ChatPane-FOqiEb_l.js +1 -0
- package/dist/web/assets/{ChipGroup-7CAhvUt1.js → ChipGroup-JUUZjxeF.js} +1 -1
- package/dist/web/assets/ComposerMenus-Cmy67eKP.js +1 -0
- package/dist/web/assets/DiffDrawer-BOo0z8j9.js +1 -0
- package/dist/web/assets/FilesControlPanel-DdgfLvcS.js +1 -0
- package/dist/web/assets/FilesControlPanel-JMh8U1IC.css +1 -0
- package/dist/web/assets/{GlobalPendingDialog--lYE48cR.js → GlobalPendingDialog-BHvNAgCA.js} +1 -1
- package/dist/web/assets/ImageViewer-B3zT7wZQ.js +1 -0
- package/dist/web/assets/{LanguageSettingsPanel-EPESHevZ.js → LanguageSettingsPanel-BZOXQSpl.js} +1 -1
- package/dist/web/assets/{MarkdownModePanel-CGJDuUhg.js → MarkdownModePanel-DMtxlov8.js} +1 -1
- package/dist/web/assets/NewSessionDialog-Cca7q4mL.js +1 -0
- package/dist/web/assets/{NotificationSettingsPanel-CYmXEnsF.js → NotificationSettingsPanel-DNnl9a9p.js} +1 -1
- package/dist/web/assets/{PanelFind-CQnWpcIB.js → PanelFind-D3fC27md.js} +1 -1
- package/dist/web/assets/RemoteLifeOSBlock-B31t36fb.js +2 -0
- package/dist/web/assets/{RemoteWorkspaceSettings-DzHtw75P.js → RemoteWorkspaceSettings-tLFMGBTO.js} +1 -1
- package/dist/web/assets/{SessionTerminalPanel-i2N28V0A.js → SessionTerminalPanel-nTZ0CuII.js} +2 -2
- package/dist/web/assets/{SpeechInputSettingsPanel-Ig45GnlA.js → SpeechInputSettingsPanel-Dbtr1xpS.js} +1 -1
- package/dist/web/assets/{ThemeSettingsPanel-C02iFM8b.js → ThemeSettingsPanel-BKow3xYE.js} +1 -1
- package/dist/web/assets/{__vite-browser-external-2447137e-D97de6th.js → __vite-browser-external-2447137e-CaO64LnT.js} +1 -1
- package/dist/web/assets/_baseMerge-YHvLFG89.js +1 -0
- package/dist/web/assets/{_initCloneObject-BR1zWEqJ.js → _initCloneObject-CgHgrY9n.js} +1 -1
- package/dist/web/assets/abnfDiagram-VRR7QNED-g0J0uJH0.js +1 -0
- package/dist/web/assets/arc-CSmO3u1k.js +1 -0
- package/dist/web/assets/architectureDiagram-ZJ3FMSHR-P688vuM0.js +1 -0
- package/dist/web/assets/{arrow-left-BL56KTLD.js → arrow-left-BKWZB-GS.js} +1 -1
- package/dist/web/assets/{arrow-right-BV-uA_nA.js → arrow-right-D37ZKCxV.js} +1 -1
- package/dist/web/assets/blockDiagram-677ZJIJ3-DVQABFjb.js +1 -0
- package/dist/web/assets/c4Diagram-LMCZKHZV-XVayABM3.js +1 -0
- package/dist/web/assets/channel-CfHLFf-p.js +1 -0
- package/dist/web/assets/chevron-up--OL3xO3m.js +1 -0
- package/dist/web/assets/{chunk-2Q5K7J3B-C8JBUKrX.js → chunk-2Q5K7J3B-8qckFKlv.js} +1 -1
- package/dist/web/assets/{chunk-32BRIVSS-DCe9Y9ii.js → chunk-32BRIVSS-ZfILJ0hp.js} +1 -1
- package/dist/web/assets/{chunk-5VM5RSS4-CJ5XB5TH.js → chunk-5VM5RSS4-BkUINLoD.js} +1 -1
- package/dist/web/assets/{chunk-EX3LRPZG-DbBMJLot.js → chunk-EX3LRPZG-lcNciUr3.js} +1 -1
- package/dist/web/assets/{chunk-JWPE2WC7-BHVdLkDM.js → chunk-JWPE2WC7-D5YKZJ83.js} +1 -1
- package/dist/web/assets/{chunk-MOJQB5TN-uHzAp-k5.js → chunk-MOJQB5TN--5_60IeM.js} +1 -1
- package/dist/web/assets/{chunk-RYQCIY6F-Cn6aFViK.js → chunk-RYQCIY6F-BnJepqNX.js} +1 -1
- package/dist/web/assets/{chunk-V7JOEXUC-DxPwkXTU.js → chunk-V7JOEXUC-C4JsJhyH.js} +1 -1
- package/dist/web/assets/{chunk-VR4S4FIN-O5Mrjsjy.js → chunk-VR4S4FIN-D5FvSfaQ.js} +1 -1
- package/dist/web/assets/{chunk-XXDRQBXY-0mC3mDJF.js → chunk-XXDRQBXY-C5OUOhJR.js} +1 -1
- package/dist/web/assets/classDiagram-OUVF2IWQ-CU3UoiIZ.js +1 -0
- package/dist/web/assets/classDiagram-v2-EOCWNBFH-CU3UoiIZ.js +1 -0
- package/dist/web/assets/clsx-DoZLeicy.js +1 -0
- package/dist/web/assets/collectMessageImages-CLhjY1R-.js +1 -0
- package/dist/web/assets/cose-bilkent-JH36ORCC-Ddb7CSGw.js +1 -0
- package/dist/web/assets/{cynefin-VYW2F7L2-CO9lWPZn.js → cynefin-VYW2F7L2-CEDiFzaT.js} +1 -1
- package/dist/web/assets/cynefinDiagram-TSTJHNR4-C6u3xLGy.js +1 -0
- package/dist/web/assets/dagre-VKFMJZFB-DtCUfTd8.js +1 -0
- package/dist/web/assets/diagram-FQU43EPY-C0_HvALH.js +1 -0
- package/dist/web/assets/diagram-G47NLZAW-Bsyy_urB.js +1 -0
- package/dist/web/assets/diagram-NH7WQ7WH-CdJtYqSJ.js +1 -0
- package/dist/web/assets/diagram-OA4YK3LP-BvOArA9-.js +1 -0
- package/dist/web/assets/diagram-WEI45ONY-DCZyDgVZ.js +1 -0
- package/dist/web/assets/ebnfDiagram-CCIWWBDH-BUD-Vp1u.js +1 -0
- package/dist/web/assets/erDiagram-Q63AITRT-D80Jrt7q.js +1 -0
- package/dist/web/assets/{file-editor-FileCodeEditor-CkMO-zP9.js → file-editor-FileCodeEditor-C1eB-N6w.js} +1 -1
- package/dist/web/assets/{file-editor-ObsidianCodeEditor-Ct5ku7x2.js → file-editor-ObsidianCodeEditor-CbYkHjhQ.js} +6 -6
- package/dist/web/assets/file-editor-ObsidianFileEditor-BcW1PoxX.js +2 -0
- package/dist/web/assets/{flowDiagram-23GEKE2U-DfTXu8Tf.js → flowDiagram-23GEKE2U-Bp-296xB.js} +1 -1
- package/dist/web/assets/{folder-plus-DeXueDPL.js → folder-plus-mFYdi3vx.js} +1 -1
- package/dist/web/assets/ganttDiagram-NO4QXBWP-yp0x7W6c.js +1 -0
- package/dist/web/assets/gitGraphDiagram-IHSO6WYX-AZjosTB3.js +1 -0
- package/dist/web/assets/highlighted-body-TPN3WLV5-Ras4GZ3t.js +1 -0
- package/dist/web/assets/index-1M7_HtDu.js +1 -0
- package/dist/web/assets/index-76-ZfKAK.css +1 -0
- package/dist/web/assets/index-8TM1eFHE.js +1 -0
- package/dist/web/assets/index-D7ToIS_p.js +2 -0
- package/dist/web/assets/index-S4bzeLfy.js +1 -0
- package/dist/web/assets/infoDiagram-FWYZ7A6U-F_UnDtTr.js +1 -0
- package/dist/web/assets/ishikawaDiagram-FXEZZL3T-BUluH5mf.js +1 -0
- package/dist/web/assets/journeyDiagram-5HDEW3XC-DQCNFXSj.js +1 -0
- package/dist/web/assets/kanban-definition-HUTT4EX6-BiCguUtw.js +1 -0
- package/dist/web/assets/{key-round-DRT2ZbDR.js → key-round-dym69oi9.js} +1 -1
- package/dist/web/assets/{layout-CmMX872C.js → layout-CAp4KseL.js} +1 -1
- package/dist/web/assets/{linear-Bv80xPYH.js → linear-CZqAZmMb.js} +1 -1
- package/dist/web/assets/logo-iv8HSlJj.webp +0 -0
- package/dist/web/assets/{map-Dwt0FgOz.js → map-XtUTTYLw.js} +1 -1
- package/dist/web/assets/mermaid-O7DHMXV3-DcfB_Nfq.js +2 -0
- package/dist/web/assets/{mermaid-O7DHMXV3-DHmcgJGk.css → mermaid-O7DHMXV3-rMhXRrUE.css} +1 -1
- package/dist/web/assets/{mermaid.core-CzqhAinL.js → mermaid.core-B-9Lh0Bf.js} +2 -2
- package/dist/web/assets/{mic-DhJeizK9.js → mic-Bs_YstUD.js} +1 -1
- package/dist/web/assets/mindmap-definition-LN4V7U3C-0wq70AWv.js +1 -0
- package/dist/web/assets/pegDiagram-2B236MQR-DMaSxFNx.js +1 -0
- package/dist/web/assets/pieDiagram-ENE6RG2P-DzMu5QtI.js +1 -0
- package/dist/web/assets/quadrantDiagram-ABIIQ3AL-CzeKWuoN.js +1 -0
- package/dist/web/assets/railroadDiagram-RFXS5EU6-Bk1xGINt.js +1 -0
- package/dist/web/assets/requirementDiagram-TGXJPOKE-CUXgKiw9.js +1 -0
- package/dist/web/assets/sankeyDiagram-HTMAVEWB-Cz4U7qMk.js +1 -0
- package/dist/web/assets/sequenceDiagram-DBY2YBRQ-B-bhALmV.js +1 -0
- package/dist/web/assets/{shield-check-CwbnsnOe.js → shield-check-DHU4OMNx.js} +1 -1
- package/dist/web/assets/sizeCapture-X5ZJPWSS-BV7vYGtd.js +1 -0
- package/dist/web/assets/square-CnIgvIvG.js +1 -0
- package/dist/web/assets/stateDiagram-2N3HPSRC-D_OfgMzy.js +1 -0
- package/dist/web/assets/stateDiagram-v2-6OUMAXLB-BtN1UWrw.js +1 -0
- package/dist/web/assets/swimlanes-5IMT3BWC-CR_34bdL.js +2 -0
- package/dist/web/assets/swimlanesDiagram-G3AALYLV-Bk0M29A8.js +1 -0
- package/dist/web/assets/timeline-definition-FHXFAJF6-B0RjwjZL.js +1 -0
- package/dist/web/assets/useComposerCompletion-C35JoOnf.js +1 -0
- package/dist/web/assets/vennDiagram-L72KCM5P-B9onja4E.js +1 -0
- package/dist/web/assets/wardleyDiagram-EHGQE667-DQNpXRcp.js +1 -0
- package/dist/web/assets/xychartDiagram-FW5EYKEG-Dlw9N9fP.js +1 -0
- package/dist/web/assets/{zap-CJH1FjCl.js → zap-CVmMJ_Jz.js} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/obsidian-editor-assets.json +1 -1
- package/package.json +7 -7
- package/dist/web/assets/App-BvW36-4M.js +0 -2
- package/dist/web/assets/App-DAtZu22A.css +0 -97
- package/dist/web/assets/BrowserControlPanel-DmDwrRxu.js +0 -1
- package/dist/web/assets/ChatPane-RyWUI1bq.js +0 -2
- package/dist/web/assets/ComposerMenus-D1uWPFXr.js +0 -1
- package/dist/web/assets/DiffDrawer-BEGVqU1n.js +0 -1
- package/dist/web/assets/FilesControlPanel-BXXKMrYD.js +0 -1
- package/dist/web/assets/FilesControlPanel-DeLKfCiq.css +0 -1
- package/dist/web/assets/ImageViewer-dOitFny1.js +0 -1
- package/dist/web/assets/MessageImage-BtpNPUOG.js +0 -1
- package/dist/web/assets/MessageImage-XcPrPLDn.css +0 -1
- package/dist/web/assets/NewSessionDialog-DgmnoXsk.js +0 -1
- package/dist/web/assets/RemoteLifeOSBlock-gBVCJ1KA.js +0 -2
- package/dist/web/assets/_baseMerge-DBQbsGvS.js +0 -1
- package/dist/web/assets/abnfDiagram-VRR7QNED-DmwaYNlH.js +0 -1
- package/dist/web/assets/arc-j_Wwjf6k.js +0 -1
- package/dist/web/assets/architectureDiagram-ZJ3FMSHR-glqGay8y.js +0 -1
- package/dist/web/assets/blockDiagram-677ZJIJ3-B8c7J04C.js +0 -1
- package/dist/web/assets/c4Diagram-LMCZKHZV-CG3zztsH.js +0 -1
- package/dist/web/assets/channel-DgblqPfw.js +0 -1
- package/dist/web/assets/chevron-up-CvywgAdp.js +0 -1
- package/dist/web/assets/classDiagram-OUVF2IWQ-bsBy4PcE.js +0 -1
- package/dist/web/assets/classDiagram-v2-EOCWNBFH-bsBy4PcE.js +0 -1
- package/dist/web/assets/collectMessageImages-BjN-Gevg.js +0 -1
- package/dist/web/assets/cose-bilkent-JH36ORCC-BgHa3fCS.js +0 -1
- package/dist/web/assets/cynefinDiagram-TSTJHNR4-0Z9seUPF.js +0 -1
- package/dist/web/assets/dagre-VKFMJZFB-BTOqPL06.js +0 -1
- package/dist/web/assets/diagram-FQU43EPY-BPXD1X4G.js +0 -1
- package/dist/web/assets/diagram-G47NLZAW-DKhfIaJX.js +0 -1
- package/dist/web/assets/diagram-NH7WQ7WH-TJq_qxyk.js +0 -1
- package/dist/web/assets/diagram-OA4YK3LP-DTkDt5xm.js +0 -1
- package/dist/web/assets/diagram-WEI45ONY-CPTKbbj_.js +0 -1
- package/dist/web/assets/ebnfDiagram-CCIWWBDH-6j_AlAL7.js +0 -1
- package/dist/web/assets/erDiagram-Q63AITRT-CF7E_ZqO.js +0 -1
- package/dist/web/assets/file-editor-ObsidianFileEditor-aYLrufoa.js +0 -2
- package/dist/web/assets/ganttDiagram-NO4QXBWP-CrYbCAop.js +0 -1
- package/dist/web/assets/gitGraphDiagram-IHSO6WYX-DckwoanW.js +0 -1
- package/dist/web/assets/highlighted-body-TPN3WLV5-CxmpyVYz.js +0 -1
- package/dist/web/assets/imageViewerCopy-S5HtozB3.js +0 -1
- package/dist/web/assets/index-BNl2LlC5.js +0 -1
- package/dist/web/assets/index-BaK7b1aP.js +0 -2
- package/dist/web/assets/index-C_vQZvvM.js +0 -1
- package/dist/web/assets/index-CjLh4QgJ.js +0 -1
- package/dist/web/assets/index-FQXZYOsr.js +0 -1
- package/dist/web/assets/index-xAMW1ul2.css +0 -1
- package/dist/web/assets/infoDiagram-FWYZ7A6U-DFF0Gmic.js +0 -1
- package/dist/web/assets/ishikawaDiagram-FXEZZL3T-Cv-VE1wB.js +0 -1
- package/dist/web/assets/journeyDiagram-5HDEW3XC-ByLfT2Us.js +0 -1
- package/dist/web/assets/kanban-definition-HUTT4EX6-DHBZws3R.js +0 -1
- package/dist/web/assets/logo-Caf1Fn81.webp +0 -0
- package/dist/web/assets/mermaid-O7DHMXV3-B4_lK8p1.js +0 -2
- package/dist/web/assets/mindmap-definition-LN4V7U3C-Bnyri0I2.js +0 -1
- package/dist/web/assets/pegDiagram-2B236MQR-6X6OAtrD.js +0 -1
- package/dist/web/assets/pieDiagram-ENE6RG2P-DdtY7NGx.js +0 -1
- package/dist/web/assets/quadrantDiagram-ABIIQ3AL-BDqHj-TT.js +0 -1
- package/dist/web/assets/railroadDiagram-RFXS5EU6-B5lI016a.js +0 -1
- package/dist/web/assets/requirementDiagram-TGXJPOKE-DsEgsQJj.js +0 -1
- package/dist/web/assets/sankeyDiagram-HTMAVEWB-C0ypjxpz.js +0 -1
- package/dist/web/assets/sequenceDiagram-DBY2YBRQ-CMshcz69.js +0 -1
- package/dist/web/assets/sizeCapture-X5ZJPWSS-Db9dkTnd.js +0 -1
- package/dist/web/assets/stateDiagram-2N3HPSRC-C6srGQcS.js +0 -1
- package/dist/web/assets/stateDiagram-v2-6OUMAXLB-BubiXOGD.js +0 -1
- package/dist/web/assets/swimlanes-5IMT3BWC-B1YoJvr3.js +0 -2
- package/dist/web/assets/swimlanesDiagram-G3AALYLV-B02Fdgr_.js +0 -1
- package/dist/web/assets/timeline-definition-FHXFAJF6-CRG13zHS.js +0 -1
- package/dist/web/assets/useComposerCompletion-DmtYYaK9.js +0 -1
- package/dist/web/assets/useMessageImage-D-dQN21J.js +0 -1
- package/dist/web/assets/vennDiagram-L72KCM5P-BN5Bx-tU.js +0 -1
- package/dist/web/assets/wardleyDiagram-EHGQE667-C2kiCoYR.js +0 -1
- package/dist/web/assets/xychartDiagram-FW5EYKEG-CVzHNjnj.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e,h as t,t as n,l as r}from"./index-FQXZYOsr.js";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(t){const n=this;n.parser=function(r){return e(r,{...n.data("settings"),...t,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}const s={}.hasOwnProperty;function c(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&s.call(t,e)){const n=String(t[e]);o=s.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function a(e,t,n){return">"+(n?"":" ")+e}function u(e,t){return f(e,t.inConstruct,!0)&&!f(e,t.notInConstruct,!1)}function f(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function l(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&u(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function h(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>s&&(s=i):i=1,o=r+t.length,r=n.indexOf(t,o);return s}function p(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function d(e,t,n){return(n?"":" ")+e}function m(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function g(e){return"&#x"+e.toString(16).toUpperCase()+";"}function y(e,n,r){const o=t(e),i=t(n);return void 0===o?void 0===i?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===o?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function v(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),s=n.createTracker(r),c=s.move(o);let a=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const u=a.charCodeAt(0),f=y(r.before.charCodeAt(r.before.length-1),u,o);f.inside&&(a=g(u)+a.slice(1));const l=a.charCodeAt(a.length-1),h=y(r.after.charCodeAt(0),l,o);h.inside&&(a=a.slice(0,-1)+g(l));const p=s.move(o);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},c+a+p}v.peek=function(e,t,n){return n.options.emphasis||"*"};const b=function(e){if(null==e)return x;if("function"==typeof e)return w(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=b(e[n]);return w(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return w(function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0})}(e);if("string"==typeof e)return function(e){return w(function(t){return t&&t.type===e})}(e);throw new Error("Expected function, string, or object as test")};function w(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function x(){return!0}const k=[],E=!0,A=!1,P="skip";function I(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=b(o),s=r?-1:1;!function e(o,c,a){const u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return f;function f(){let u,f,l,h=k;if((!t||i(o,c,a[a.length-1]||void 0))&&(h=function(e){return Array.isArray(e)?e:"number"==typeof e?[E,e]:null==e?k:[e]}(n(o,a)),h[0]===A))return h;if("children"in o&&o.children){const t=o;if(t.children&&h[0]!==P)for(f=(r?t.children.length:-1)+s,l=a.concat(t);f>-1&&f<t.children.length;){const n=t.children[f];if(u=e(n,f,l)(),u[0]===A)return u;f="number"==typeof u[1]?u[1]:f+s}}return h}}(e,void 0,[])()}function T(e,t,n,r){let o,i,s;"function"==typeof t&&"function"!=typeof n?(i=void 0,s=t,o=n):(i=t,s=n,o=r),I(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},o)}function C(e,t){let r=!1;return T(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,A}),Boolean((!e.depth||e.depth<3)&&n(e)&&(t.options.setext||r))}function O(e){return e.value||""}function S(e,t,n,r){const o=m(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("image");let c=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),u+=a.move(")"),s(),u}function R(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const c=n.createTracker(r);let a=c.move("![");const u=n.safe(e.alt,{before:a,after:"]",...c.current()});a+=c.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const l=n.safe(n.associationId(e),{before:a,after:"]",...c.current()});return s(),n.stack=f,i(),"full"!==o&&u&&u===l?"shortcut"===o?a=a.slice(0,-1):a+=c.move("]"):a+=c.move(l+"]"),a}function z(e,t,n){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<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function _(e,t){const r=n(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function L(e,t,n,r){const o=m(n),i='"'===o?"Quote":"Apostrophe",s=n.createTracker(r);let c,a;if(_(e,n)){const t=n.stack;n.stack=[],c=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),c(),n.stack=t,r}c=n.enter("link"),a=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=s.move(" "+o),u+=s.move(n.safe(e.title,{before:u,after:o,...s.current()})),u+=s.move(o),a()),u+=s.move(")"),c(),u}function j(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const c=n.createTracker(r);let a=c.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...c.current()});a+=c.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const l=n.safe(n.associationId(e),{before:a,after:"]",...c.current()});return s(),n.stack=f,i(),"full"!==o&&u&&u===l?"shortcut"===o?a=a.slice(0,-1):a+=c.move("]"):a+=c.move(l+"]"),a}function F(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function U(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}O.peek=function(){return"<"},S.peek=function(){return"!"},R.peek=function(){return"!"},z.peek=function(){return"`"},L.peek=function(e,t,n){return _(e,n)?"<":"["},j.peek=function(){return"["};const B=b(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function M(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),s=n.createTracker(r),c=s.move(o+o);let a=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const u=a.charCodeAt(0),f=y(r.before.charCodeAt(r.before.length-1),u,o);f.inside&&(a=g(u)+a.slice(1));const l=a.charCodeAt(a.length-1),h=y(r.after.charCodeAt(0),l,o);h.inside&&(a=a.slice(0,-1)+g(l));const p=s.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},c+a+p}M.peek=function(e,t,n){return n.options.strong||"*"};const N={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),a);return o(),s},break:l,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",s="`"===o?"GraveAccent":"Tilde";if(p(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,d);return e(),t}const c=n.createTracker(r),a=o.repeat(Math.max(h(i,o)+1,3)),u=n.enter("codeFenced");let f=c.move(a);if(e.lang){const t=n.enter(`codeFencedLang${s}`);f+=c.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...c.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);f+=c.move(" "),f+=c.move(n.safe(e.meta,{before:f,after:"\n",encode:["`"],...c.current()})),t()}return f+=c.move("\n"),i&&(f+=c.move(i+"\n")),f+=c.move(a),u(),f},definition:function(e,t,n,r){const o=m(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("definition");let c=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),s(),u},emphasis:v,hardBreak:l,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(C(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===o?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(o),c=n.enter("headingAtx"),a=n.enter("phrasing");i.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(u)&&(u=g(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),a(),c(),u},html:O,image:S,imageReference:R,inlineCode:z,link:L,linkReference:j,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):F(n);const c=e.ordered?"."===s?")":".":function(e){const t=F(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let a=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(a=!0),U(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){a=!0;break}}}}a&&(s=c),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,o(),u},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||F(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let s=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const c=n.createTracker(r);c.move(i+" ".repeat(s-i.length)),c.shift(s);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,c.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?i:i+" ".repeat(s-i.length))+e});return a(),u},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),o(),s},root:function(e,t,n,r){return(e.children.some(function(e){return B(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:M,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(U(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function V(e){if(e)throw e}var $,q;const D=o(function(){if(q)return $;q=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return $=function e(){var t,n,r,a,u,f,l=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},h=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)r=c(l,n),l!==(a=c(t,n))&&(d&&a&&(i(a)||(u=o(a)))?(u?(u=!1,f=r&&o(r)?r:[]):f=r&&i(r)?r:{},s(l,{name:n,newValue:e(d,f,a)})):void 0!==a&&s(l,{name:n,newValue:a}));return l}}());function G(){}function H(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}class Q extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let o="",i={},s=!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}),"string"==typeof e?o=e:!i.cause&&e&&(s=!0,o=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const c=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=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=c?c.line:void 0,this.name=r(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=s&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Q.prototype.file="",Q.prototype.name="",Q.prototype.reason="",Q.prototype.message="",Q.prototype.stack="",Q.prototype.column=void 0,Q.prototype.line=void 0,Q.prototype.ancestors=void 0,Q.prototype.cause=void 0,Q.prototype.fatal=void 0,Q.prototype.place=void 0,Q.prototype.ruleId=void 0,Q.prototype.source=void 0;const J=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');W(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let s=-1,c=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),c>-1&&(e.codePointAt(i)===t.codePointAt(c--)?c<0&&(o=i):(c=-1,o=s));return r===o?o=s:o<0&&(o=e.length),e.slice(r,o)},Y=function(...e){let t,n=-1;for(;++n<e.length;)W(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){W(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,s=-1,c=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.codePointAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===c);else if(s!==a-1&&2===c){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),s=a,c=0;continue}}else if(o.length>0){o="",i=0,s=a,c=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(s+1,a):o=e.slice(s+1,a),i=a-s-1;s=a,c=0}else 46===n&&c>-1?c++:c=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)};function W(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function K(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const X=["history","path","basename","stem","extname","dirname"];class Z{constructor(e){let t;t=e?K(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<X.length;){const e=X[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)X.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?J(this.path):void 0}set basename(e){te(e,"basename"),ee(e,"basename"),this.path=Y(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?function(e){if(W(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)}(this.path):void 0}set dirname(e){ne(this.basename,"dirname"),this.path=Y(e||"",this.basename)}get extname(){return"string"==typeof this.path?function(e){W(e);let t,n=e.length,r=-1,o=0,i=-1,s=0;for(;n--;){const c=e.codePointAt(n);if(47!==c)r<0&&(t=!0,r=n+1),46===c?i<0?i=n:1!==s&&(s=1):i>-1&&(s=-1);else if(t){o=n+1;break}}return i<0||r<0||0===s||1===s&&i===r-1&&i===o+1?"":e.slice(i,r)}(this.path):void 0}set extname(e){if(ee(e,"extname"),ne(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Y(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){K(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!K(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),te(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?J(this.path,this.extname):void 0}set stem(e){te(e,"stem"),ee(e,"stem"),this.path=Y(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Q(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function ee(e,t){if(e&&e.includes("/"))throw new Error("`"+t+"` cannot be a path: did not expect `/`")}function te(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ne(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const re=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},oe={}.hasOwnProperty;class ie extends re{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=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...s){const c=e[++n];let a=-1;if(i)r(i);else{for(;++a<t.length;)null!==s[a]&&void 0!==s[a]||(s[a]=t[a]);t=s,c?function(e,t){let n;return function(...t){const s=e.length>t.length;let c;s&&t.push(r);try{c=e.apply(this,t)}catch(i){if(s&&n)throw i;return r(i)}s||(c&&c.then&&"function"==typeof c.then?c.then(o,r):c instanceof Error?r(c):o(c))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(c,o)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new ie;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(D(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(ue("data",this.frozen),this.namespace[e]=t,this):oe.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ue("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=he(e),n=this.parser||this.Parser;return ce("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),ce("process",this.parser||this.Parser),ae("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=he(e),s=n.parse(i);function c(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(s,i,function(e,t,r){if(e||!t||!r)return c(e);const o=t,i=n.stringify(o,r);!function(e){return"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(i)?r.result=i:r.value=i,c(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),ce("processSync",this.parser||this.Parser),ae("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,V(e),t=r}),le("processSync","process",n),t}run(e,t,n){fe(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const s=he(t);r.run(e,s,function(t,r,s){const c=r||e;t?i(t):o?o(c):n(void 0,c,s)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){V(e),n=t,r=!0}),le("runSync","run",r),n}stringify(e,t){this.freeze();const n=he(t),r=this.compiler||this.Compiler;return ae("stringify",r),fe(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(ue("use",this.frozen),null==e);else if("function"==typeof e)c(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):i(e)}return this;function o(e){if("function"==typeof e)c(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))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");s(e.plugins),e.settings&&(r.settings=D(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)o(e[t])}}function c(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const s=n[o][1];H(s)&&H(r)&&(r=D(!0,s,r)),n[o]=[e,r,...i]}}}}const se=(new ie).freeze();function ce(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function ae(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function ue(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fe(e){if(!H(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function le(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function he(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Z(e)}const pe={characterGroupPunctuation:2,characterGroupWhitespace:1,tabSize:4},de={linePrefix:"linePrefix",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"};function me(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}export{E as C,P as S,Q as V,me as a,T as b,b as c,C as d,g as e,p as f,o as g,N as h,pe as i,h as l,G as o,u as p,i as r,de as t,se as u,I as v,c as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e,a as t,n,b as i,c as r,m as o,d as l,e as a,g as s,s as c,r as u,h as f,i as h,j as p,k as g}from"./index-FQXZYOsr.js";import{c as d,v as m,o as k,a as b,h as x}from"./index-C_vQZvvM.js";function y(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=y(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function v(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=y(e))&&(i&&(i+=" "),i+=t);return i}function C(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function w(e){return"function"==typeof e?e:function(){return e}}const D="phrasing",F=["autolink","link","image","label"];function L(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function A(e){this.config.enter.autolinkProtocol.call(this,e)}function M(e){this.config.exit.autolinkProtocol.call(this,e)}function S(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];k("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function j(e){this.config.exit.autolinkEmail.call(this,e)}function O(e){this.exit(e)}function z(e){!function(e,t){const n=d(({ignore:["link","linkReference"]}||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const e=n[i];t.push([C(e[0]),w(e[1])])}return t}(t);let r=-1;for(;++r<i.length;)m(e,"text",o);function o(e,t){let o,l=-1;for(;++l<t.length;){const e=t[l],i=o?o.children:void 0;if(n(e,i?i.indexOf(e):void 0,o))return;o=e}if(o)return function(e,t){const n=t[t.length-1],o=i[r][0],l=i[r][1];let a=0;const s=n.children.indexOf(e);let c=!1,u=[];o.lastIndex=0;let f=o.exec(e.value);for(;f;){const n=f.index,i={index:f.index,input:f.input,stack:[...t,e]};let r=l(...f,i);if("string"==typeof r&&(r=r.length>0?{type:"text",value:r}:void 0),!1===r?o.lastIndex=n+1:(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(r)?u.push(...r):r&&u.push(r),a=n+f[0].length,c=!0),!o.global)break;f=o.exec(e.value)}return c?(a<e.value.length&&u.push({type:"text",value:e.value.slice(a)}),n.children.splice(s,1,...u)):u=[e],s+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,R],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),E]])}function R(e,t,n,i,r){let o="";if(!T(r))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const l=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=b(e,"(");let o=b(e,")");for(;-1!==i&&r>o;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),o++;return[e,n]}(n+i);if(!l[0])return!1;const a={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function E(e,t,n,i){return!(!T(i,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function T(n,i){const r=n.input.charCodeAt(n.index-1);return(0===n.index||e(r)||t(r))&&(!i||47!==r)}function I(){this.buffer()}function _(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function P(){this.buffer()}function H(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function B(e){const t=this.resume(),i=this.stack[this.stack.length-1];k("footnoteReference"===i.type),i.identifier=n(this.sliceSerialize(e)).toLowerCase(),i.label=t}function W(e){this.exit(e)}function q(e){const t=this.resume(),i=this.stack[this.stack.length-1];k("footnoteDefinition"===i.type),i.identifier=n(this.sliceSerialize(e)).toLowerCase(),i.label=t}function V(e){this.exit(e)}function $(e,t,n,i){const r=n.createTracker(i);let o=r.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return o+=r.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),l(),o+=r.move("]"),o}function U(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,i,r){const o=i.createTracker(r);let l=o.move("[^");const a=i.enter("footnoteDefinition"),s=i.enter("label");return l+=o.move(i.safe(i.associationId(e),{before:l,after:"]"})),s(),l+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),l+=o.move((t?"\n":" ")+i.indentLines(i.containerFlow(e,o.current()),t?K:Z))),a(),l},footnoteReference:$},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Z(e,t,n){return 0===t?e:K(e,0,n)}function K(e,t,n){return(n?"":" ")+e}$.peek=function(){return"["};const Q=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function G(e){this.enter({type:"delete",children:[]},e)}function J(e){this.exit(e)}function N(e,t,n,i){const r=n.createTracker(i),o=n.enter("strikethrough");let l=r.move("~~");return l+=n.containerPhrasing(e,{...r.current(),before:l,after:"~"}),l+=r.move("~~"),o(),l}function X(e){return e.length}function Y(e){return null==e?"":String(e)}function ee(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function te(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function ne(e){this.exit(e),this.data.inTable=void 0}function ie(e){this.enter({type:"tableRow",children:[]},e)}function re(e){this.exit(e)}function oe(e){this.enter({type:"tableCell",children:[]},e)}function le(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ae));const n=this.stack[this.stack.length-1];k("inlineCode"===n.type),n.value=t,this.exit(e)}function ae(e,t){return"|"===t?t:e}function se(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let i=x.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(i=i.replace(/\|/g,"\\$&")),i},table:function(e,t,n,i){return a(function(e,t,n){const i=e.children;let r=-1;const o=[],l=t.enter("table");for(;++r<i.length;)o[r]=s(i[r],t,n);return l(),o}(e,n,i),e.align)},tableCell:l,tableRow:function(e,t,n,i){const r=a([s(e,n,i)]);return r.slice(0,r.indexOf("\n"))}}};function l(e,t,n,i){const r=n.enter("tableCell"),l=n.enter("phrasing"),a=n.containerPhrasing(e,{...i,before:o,after:o});return l(),r(),a}function a(e,t){return function(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||X,o=[],l=[],a=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],i=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const l=Y(e[u][o]);if(!1!==n.alignDelimiters){const e=r(l);i[o]=e,(void 0===s[o]||e>s[o])&&(s[o]=e)}t.push(l)}l[u]=t,a[u]=i}let f=-1;if("object"==typeof i&&"length"in i)for(;++f<c;)o[f]=ee(i[f]);else{const e=ee(i);for(;++f<c;)o[f]=e}f=-1;const h=[],p=[];for(;++f<c;){const e=o[f];let t="",i="";99===e?(t=":",i=":"):108===e?t=":":114===e&&(i=":");let r=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-i.length);const l=t+"-".repeat(r)+i;!1!==n.alignDelimiters&&(r=t.length+r+i.length,r>s[f]&&(s[f]=r),p[f]=r),h[f]=l}l.splice(1,0,h),a.splice(1,0,p),u=-1;const g=[];for(;++u<l.length;){const e=l[u],t=a[u];f=-1;const i=[];for(;++f<c;){const r=e[f]||"";let l="",a="";if(!1!==n.alignDelimiters){const e=s[f]-(t[f]||0),n=o[f];114===n?l=" ".repeat(e):99===n?e%2?(l=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):(l=" ".repeat(e/2),a=l):a=" ".repeat(e)}!1===n.delimiterStart||f||i.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===r||!1===n.delimiterStart&&!f||i.push(" "),!1!==n.alignDelimiters&&i.push(l),i.push(r),!1!==n.alignDelimiters&&i.push(a),!1!==n.padding&&i.push(" "),!1===n.delimiterEnd&&f===c-1||i.push("|")}g.push(!1===n.delimiterEnd?i.join("").replace(/ +$/,""):i.join(""))}return g.join("\n")}(e,{align:t,alignDelimiters:i,padding:n,stringLength:r})}function s(e,t,n){const i=e.children;let r=-1;const o=[],a=t.enter("tableRow");for(;++r<i.length;)o[r]=l(i[r],0,t,n);return a(),o}}function ce(e){const t=this.stack[this.stack.length-2];k("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function ue(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];k("paragraph"===e.type);const n=e.children[0];if(n&&"text"===n.type){const i=t.children;let r,o=-1;for(;++o<i.length;){const e=i[o];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function fe(e,t,n,i){const r=e.children[0],o="boolean"==typeof e.checked&&r&&"paragraph"===r.type,l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(i);o&&a.move(l);let s=x.listItem(e,t,n,{...i,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+l})),s}N.peek=function(){return"~"};const he={tokenize:function(e,t,n){let i=0;return function t(o){return(87===o||119===o)&&i<3?(i++,e.consume(o),t):46===o&&3===i?(e.consume(o),r):n(o)};function r(e){return null===e?n(e):t(e)}},partial:!0},pe={tokenize:function(n,i,r){let l,a,s;return c;function c(i){return 46===i||95===i?n.check(de,f,u)(i):null===i||o(i)||e(i)||45!==i&&t(i)?f(i):(s=!0,n.consume(i),c)}function u(e){return 95===e?l=!0:(a=l,l=void 0),n.consume(e),c}function f(e){return a||l||!s?r(e):i(e)}},partial:!0},ge={tokenize:function(t,n){let i=0,r=0;return l;function l(s){return 40===s?(i++,t.consume(s),l):41===s&&r<i?a(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?t.check(de,n,a)(s):null===s||o(s)||e(s)?n(s):(t.consume(s),l)}function a(e){return 41===e&&r++,t.consume(e),l}},partial:!0},de={tokenize:function(t,n,i){return l;function l(r){return 33===r||34===r||39===r||41===r||42===r||44===r||46===r||58===r||59===r||63===r||95===r||126===r?(t.consume(r),l):38===r?(t.consume(r),s):93===r?(t.consume(r),a):60===r||null===r||o(r)||e(r)?n(r):i(r)}function a(t){return null===t||40===t||91===t||o(t)||e(t)?n(t):l(t)}function s(e){return r(e)?c(e):i(e)}function c(e){return 59===e?(t.consume(e),l):r(e)?(t.consume(e),c):i(e)}},partial:!0},me={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return i(e)?n(e):t(e)}},partial:!0},ke={name:"wwwAutolink",tokenize:function(e,t,n){const i=this;return function(t){return 87!==t&&119!==t||!Ce.call(i,i.previous)||Le(i.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(he,e.attempt(pe,e.attempt(ge,r),n),n)(t))};function r(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Ce},be={name:"protocolAutolink",tokenize:function(n,i,a){const s=this;let c="",u=!1;return function(e){return 72!==e&&104!==e||!we.call(s,s.previous)||Le(s.events)?a(e):(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),c+=String.fromCodePoint(e),n.consume(e),f)};function f(e){if(r(e)&&c.length<5)return c+=String.fromCodePoint(e),n.consume(e),f;if(58===e){const t=c.toLowerCase();if("http"===t||"https"===t)return n.consume(e),h}return a(e)}function h(e){return 47===e?(n.consume(e),u?p:(u=!0,h)):a(e)}function p(i){return null===i||l(i)||o(i)||e(i)||t(i)?a(i):n.attempt(pe,n.attempt(ge,g),a)(i)}function g(e){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),i(e)}},previous:we},xe={name:"emailAutolink",tokenize:function(e,t,n){const o=this;let l,a;return function(t){return Fe(t)&&De.call(o,o.previous)&&!Le(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)):n(t)};function s(t){return Fe(t)?(e.consume(t),s):64===t?(e.consume(t),c):n(t)}function c(t){return 46===t?e.check(me,f,u)(t):45===t||95===t||i(t)?(a=!0,e.consume(t),c):f(t)}function u(t){return e.consume(t),l=!0,c}function f(i){return a&&l&&r(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:De},ye={};let ve=48;for(;ve<123;)ye[ve]=xe,ve++,58===ve?ve=65:91===ve&&(ve=97);function Ce(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||o(e)}function we(e){return!r(e)}function De(e){return!(47===e||Fe(e))}function Fe(e){return 43===e||45===e||46===e||95===e||i(e)}function Le(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if(("labelLink"===i.type||"labelImage"===i.type)&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}ye[43]=xe,ye[45]=xe,ye[46]=xe,ye[95]=xe,ye[72]=[xe,be],ye[104]=[xe,be],ye[87]=[xe,ke],ye[119]=[xe,ke];const Ae={tokenize:function(e,t,n){const i=this;return s(e,function(e){const r=i.events[i.events.length-1];return r&&"gfmFootnoteDefinitionIndent"===r[1].type&&4===r[2].sliceSerialize(r[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Me(e,t,i){const r=this;let o=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return i(o);const s=n(r.sliceSerialize({start:a.end,end:r.now()}));return 94===s.codePointAt(0)&&l.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):i(o)}}function Se(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...a),e}function je(e,t,i){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),c};function c(t){return 94!==t?i(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(s>999||93===c&&!a||null===c||91===c||o(c))return i(c);if(93===c){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return l.includes(n(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):i(c)}return o(c)||(a=!0),s++,e.consume(c),92===c?f:u}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Oe(e,t,i){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,c,u=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),f};function f(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):i(t)}function h(t){if(u>999||93===t&&!c||null===t||91===t||o(t))return i(t);if(93===t){e.exit("chunkString");const i=e.exit("gfmFootnoteDefinitionLabelString");return a=n(r.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return o(t)||(c=!0),u++,e.consume(t),92===t?p:h}function p(t){return 91===t||92===t||93===t?(e.consume(t),u++,h):h(t)}function g(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l.includes(a)||l.push(a),s(e,d,"gfmFootnoteDefinitionWhitespace")):i(t)}function d(e){return t(e)}}function ze(e,t,n){return e.check(a,t,e.attempt(Ae,t,n))}function Re(e){e.exit("gfmFootnoteDefinition")}function Ee(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,i){const r=this.previous,o=this.events;let l=0;return function(t){return 126===r&&"characterEscape"!==o[o.length-1][1].type?i(t):(e.enter("strikethroughSequenceTemporary"),a(t))};function a(o){const s=f(r);if(126===o)return l>1?i(o):(e.consume(o),l++,a);if(l<2&&!t)return i(o);const c=e.exit("strikethroughSequenceTemporary"),u=f(o);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let i=n;for(;i--;)if("exit"===e[i][0]&&"strikethroughSequenceTemporary"===e[i][1].type&&e[i][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[i][1].end.offset-e[i][1].start.offset){e[n][1].type="strikethroughSequence",e[i][1].type="strikethroughSequence";const r={type:"strikethrough",start:Object.assign({},e[i][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[n][1].start)},l=[["enter",r,t],["enter",e[i][1],t],["exit",e[i][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&c(l,l.length,0,u(a,e.slice(i+1,n),t)),c(l,l.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",r,t]]),c(e,i-1,n-i+3,l),n=i+l.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Te{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,i){let r=0;if(0!==n||0!==i.length){for(;r<e.map.length;){if(e.map[r][0]===t)return e.map[r][1]+=n,void e.map[r][2].push(...i);r+=1}e.map.push([t,n,i])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let i=n.pop();for(;i;){for(const t of i)e.push(t);i=n.pop()}this.map.length=0}}function Ie(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if("enter"===r[0])"tableContent"===r[1].type&&i.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===r[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=i.length-1;i[e]="left"===i[e]?"center":"right"}}else if("tableDelimiterRow"===r[1].type)break}else"enter"===r[0]&&"tableDelimiterRow"===r[1].type&&(n=!0);t+=1}return i}function _e(e,t,n){const i=this;let r,l=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){const e=i.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const r=t>-1?i.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?D:c;return o===D&&i.parser.lazy[i.now().line]?n(e):o(e)};function c(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(r=!0,a+=1),u(e)}(t)}function u(t){return null===t?n(t):h(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):p(t)?s(e,u,"whitespace")(t):(a+=1,r&&(r=!1,l+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),f(t)))}function f(t){return null===t||124===t||o(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?g:f)}function g(t){return 92===t||124===t?(e.consume(t),f):f(t)}function d(t){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(t):(e.enter("tableDelimiterRow"),r=!1,p(t)?s(e,m,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):m(t))}function m(t){return 45===t||58===t?b(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),k):w(t)}function k(t){return p(t)?s(e,b,"whitespace")(t):b(t)}function b(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),x):45===t?(a+=1,x(t)):null===t||h(t)?C(t):w(t)}function x(t){return 45===t?(e.enter("tableDelimiterFiller"),y(t)):w(t)}function y(t){return 45===t?(e.consume(t),y):58===t?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return p(t)?s(e,C,"whitespace")(t):C(t)}function C(n){return 124===n?m(n):(null===n||h(n))&&r&&l===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):w(n)}function w(e){return n(e)}function D(t){return e.enter("tableRow"),F(t)}function F(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),F):null===n||h(n)?(e.exit("tableRow"),t(n)):p(n)?s(e,F,"whitespace")(n):(e.enter("data"),L(n))}function L(t){return null===t||124===t||o(t)?(e.exit("data"),F(t)):(e.consume(t),92===t?A:L)}function A(t){return 92===t||124===t?(e.consume(t),L):L(t)}}function Pe(e,t){let n,i,r,o=-1,l=!0,a=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,f=0;const h=new Te;for(;++o<e.length;){const p=e[o],g=p[1];"enter"===p[0]?"tableHead"===g.type?(u=!1,0!==f&&(Be(h,t,f,n,i),i=void 0,f=0),n={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(o,0,[["enter",n,t]])):"tableRow"===g.type||"tableDelimiterRow"===g.type?(l=!0,r=void 0,s=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,i={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(o,0,[["enter",i,t]])),a="tableDelimiterRow"===g.type?2:i?3:1):!a||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type?"tableCellDivider"===g.type&&(l?l=!1:(0!==s[1]&&(c[0]=c[1],r=He(h,t,s,a,void 0,r)),s=c,c=[s[1],o,0,0])):(l=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],r=He(h,t,s,a,void 0,r),s=[0,0,0,0]),c[2]=o)):"tableHead"===g.type?(u=!0,f=o):"tableRow"===g.type||"tableDelimiterRow"===g.type?(f=o,0!==s[1]?(c[0]=c[1],r=He(h,t,s,a,o,r)):0!==c[1]&&(r=He(h,t,c,a,o,r)),a=0):!a||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type||(c[3]=o)}for(0!==f&&Be(h,t,f,n,i),h.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Ie(t.events,o))}return e}function He(e,t,n,i,r,o){const l=1===i?"tableHeader":2===i?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},We(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=We(t.events,n[1]);if(o={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const r=We(t.events,n[2]),o=We(t.events,n[3]),l={type:"tableContent",start:Object.assign({},r),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",l,t]]),2!==i){const i=t.events[n[2]],r=t.events[n[3]];if(i[1].end=Object.assign({},r[1].end),i[1].type="chunkText",i[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,i=n[3]-n[2]-1;e.add(t,i,[])}}e.add(n[3]+1,0,[["exit",l,t]])}return void 0!==r&&(o.end=Object.assign({},We(t.events,r)),e.add(r,0,[["exit",o,t]]),o=void 0),o}function Be(e,t,n,i,r){const o=[],l=We(t.events,n);r&&(r.end=Object.assign({},l),o.push(["exit",r,t])),i.end=Object.assign({},l),o.push(["exit",i,t]),e.add(n+1,0,o)}function We(e,t){const n=e[t],i="enter"===n[0]?"start":"end";return n[1][i]}const qe={name:"tasklistCheck",tokenize:function(e,t,n){const i=this;return function(t){return null===i.previous&&i._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),r):n(t)};function r(t){return o(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(i){return h(i)?t(i):p(i)?e.check({tokenize:Ve},t,n)(i):n(i)}}};function Ve(e,t,n){return s(e,function(e){return null===e?n(e):t(e)},"whitespace")}const $e={};function Ue(e){const t=e||$e,n=this.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),r=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(function(e){return g([{text:ye},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Oe,continuation:{tokenize:ze},exit:Re}},text:{91:{name:"gfmFootnoteCall",tokenize:je},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Me,resolveTo:Se}}},Ee(e),{flow:{null:{name:"table",tokenize:_e,resolveAll:Pe}}},{text:{91:qe}}])}(t)),r.push([{transforms:[z],enter:{literalAutolink:L,literalAutolinkEmail:A,literalAutolinkHttp:A,literalAutolinkWww:A},exit:{literalAutolink:O,literalAutolinkEmail:j,literalAutolinkHttp:M,literalAutolinkWww:S}},{enter:{gfmFootnoteCallString:I,gfmFootnoteCall:_,gfmFootnoteDefinitionLabelString:P,gfmFootnoteDefinition:H},exit:{gfmFootnoteCallString:B,gfmFootnoteCall:W,gfmFootnoteDefinitionLabelString:q,gfmFootnoteDefinition:V}},{canContainEols:["delete"],enter:{strikethrough:G},exit:{strikethrough:J}},{enter:{table:te,tableData:oe,tableHeader:oe,tableRow:ie},exit:{codeText:le,table:ne,tableData:re,tableHeader:re,tableRow:re}},{exit:{taskListCheckValueChecked:ce,taskListCheckValueUnchecked:ce,paragraph:ue}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:D,notInConstruct:F},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:D,notInConstruct:F},{character:":",before:"[ps]",after:"\\/",inConstruct:D,notInConstruct:F}]},U(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Q}],handlers:{delete:N}},se(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:fe}}]}}(t))}export{v as c,Ue as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e}from"./index-BaK7b1aP.js";const t=e("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),n={};function r(e,t){return i(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function i(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return o(e.children,t,n)}return Array.isArray(e)?o(e,t,n):""}function o(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=i(e[o],t,n);return r.join("")}const c=document.createElement("i");function u(e){const t="&"+e+";";c.innerHTML=t;const n=c.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function s(e,t,n,r){const i=e.length;let o,c=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);c<r.length;)o=r.slice(c,c+1e4),o.unshift(t,0),e.splice(...o),c+=1e4,t+=1e4}function l(e,t){return e.length>0?(s(e,e.length,0,t),e):t}const a={}.hasOwnProperty;function f(e){const t={};let n=-1;for(;++n<e.length;)h(t,e[n]);return t}function h(e,t){let n;for(n in t){const r=(a.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){a.call(r,o)||(r[o]=[]);const e=i[o];d(r[o],Array.isArray(e)?e:e?[e]:[])}}}function d(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);s(e,0,0,r)}function p(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function m(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const g=w(/[A-Za-z]/),k=w(/[\dA-Za-z]/),x=w(/[#-'*+\--9=?A-Z^-~]/);function y(e){return null!==e&&(e<32||127===e)}const v=w(/\d/),S=w(/[\dA-Fa-f]/),b=w(/[!-/:-@[-`{-~]/);function I(e){return null!==e&&e<-2}function T(e){return null!==e&&(e<0||32===e)}function E(e){return-2===e||-1===e||32===e}const z=w(new RegExp("\\p{P}|\\p{S}","u")),F=w(/\s/);function w(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function _(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return E(r)?(e.enter(n),c(r)):t(r)};function c(r){return E(r)&&o++<i?(e.consume(r),c):(e.exit(n),t(r))}}const C={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),_(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):I(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},P={tokenize:function(e){const t=this,n=[];let r,i,o,c=0;return u;function u(r){if(c<n.length){const i=n[c];return t.containerState=i[1],e.attempt(i[0].continuation,l,a)(r)}return a(r)}function l(e){if(c++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}x(c);let u=n;for(;u<t.events.length;)t.events[u][1].end={...i},u++;return s(t.events,o+1,0,t.events.slice(n)),t.events.length=u,a(e)}return u(e)}function a(i){if(c===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return m(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(M,f,h)(i)}function f(e){return r&&y(),x(c),d(e)}function h(e){return t.parser.lazy[t.now().line]=c!==n.length,o=t.now().offset,m(e)}function d(n){return t.containerState={},e.attempt(M,p,m)(n)}function p(e){return c++,n.push([t.currentConstruct,t.containerState]),d(e)}function m(n){return null===n?(r&&y(),x(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),g(n))}function g(n){return null===n?(k(e.exit("chunkFlow"),!0),x(0),void e.consume(n)):I(n)?(e.consume(n),k(e.exit("chunkFlow")),c=0,t.interrupt=void 0,u):(e.consume(n),g)}function k(e,n){const u=t.sliceStream(e);if(n&&u.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(u),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,u,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){u=t.events[l][1].end;break}i=!0}for(x(c),e=n;e<t.events.length;)t.events[e][1].end={...u},e++;s(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function x(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},M={tokenize:function(e,t,n){return _(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function L(e){return null===e||T(e)||F(e)?1:z(e)?2:void 0}function A(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const B={name:"attention",resolveAll:function(e,t){let n,r,i,o,c,u,a,f,h=-1;for(;++h<e.length;)if("enter"===e[h][0]&&"attentionSequence"===e[h][1].type&&e[h][1]._close)for(n=h;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[n][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[h][1].start};D(d,-u),D(p,u),o={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},c={type:u>1?"strongSequence":"emphasisSequence",start:{...e[h][1].start},end:p},i={type:u>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[h][1].start}},r={type:u>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},e[n][1].end={...o.start},e[h][1].start={...c.end},a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=l(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=l(a,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),a=l(a,A(t.parser.constructs.insideSpan.null,e.slice(n+1,h),t)),a=l(a,[["exit",i,t],["enter",c,t],["exit",c,t],["exit",r,t]]),e[h][1].end.offset-e[h][1].start.offset?(f=2,a=l(a,[["enter",e[h][1],t],["exit",e[h][1],t]])):f=0,s(e,n-1,h-n+3,a),h=n+a.length-f-2;break}for(h=-1;++h<e.length;)"attentionSequence"===e[h][1].type&&(e[h][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=L(r);let o;return function(t){return o=t,e.enter("attentionSequence"),c(t)};function c(u){if(u===o)return e.consume(u),c;const s=e.exit("attentionSequence"),l=L(u),a=!l||2===l&&i||n.includes(u),f=!i||2===i&&l||n.includes(r);return s._open=Boolean(42===o?a:a&&(i||!f)),s._close=Boolean(42===o?f:f&&(l||!a)),t(u)}}};function D(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const H={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return g(t)?(e.consume(t),o):64===t?n(t):s(t)}function o(e){return 43===e||45===e||46===e||k(e)?(r=1,c(e)):s(e)}function c(t){return 58===t?(e.consume(t),r=0,u):(43===t||45===t||46===t||k(t))&&r++<32?(e.consume(t),c):(r=0,s(t))}function u(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||y(r)?n(r):(e.consume(r),u)}function s(t){return 64===t?(e.consume(t),l):x(t)?(e.consume(t),s):n(t)}function l(e){return k(e)?a(e):n(e)}function a(n){return 46===n?(e.consume(n),r=0,l):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||k(t))&&r++<63){const n=45===t?f:a;return e.consume(t),n}return n(t)}}},N={partial:!0,tokenize:function(e,t,n){return function(t){return E(t)?_(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||I(e)?t(e):n(e)}}},O={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return E(t)?_(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(O,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return E(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},R={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return b(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},q={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,c=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=k,a(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=S,a):(e.enter("characterReferenceValue"),i=7,o=v,a(t))}function a(s){if(59===s&&c){const i=e.exit("characterReferenceValue");return o!==k||u(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&c++<i?(e.consume(s),a):n(s)}}},V={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},j={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c};function c(t){return e.enter("codeFencedFence"),E(t)?_(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===o?(e.enter("codeFencedFenceSequence"),l(t)):n(t)}function l(t){return t===o?(i++,e.consume(t),l):i>=u?(e.exit("codeFencedFenceSequence"),E(t)?_(e,a,"whitespace")(t):a(t)):n(t)}function a(r){return null===r||I(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,c=0,u=0;return function(t){return function(t){const n=r.events[r.events.length-1];return c=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===o?(u++,e.consume(t),s):u<3?n(t):(e.exit("codeFencedFenceSequence"),E(t)?_(e,l,"whitespace")(t):l(t))}function l(n){return null===n||I(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(V,d,x)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),a(n))}function a(t){return null===t||I(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(t)):E(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_(e,f,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),a)}function f(t){return null===t||I(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||I(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(t)):96===t&&t===o?n(t):(e.consume(t),h)}function d(t){return e.attempt(i,x,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return c>0&&E(t)?_(e,g,"linePrefix",c+1)(t):g(t)}function g(t){return null===t||I(t)?e.check(V,d,x)(t):(e.enter("codeFlowValue"),k(t))}function k(t){return null===t||I(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),k)}function x(n){return e.exit("codeFenced"),t(n)}}},Q={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),_(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?u(t):I(t)?e.attempt(U,o,u)(t):(e.enter("codeFlowValue"),c(t))}function c(t){return null===t||I(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),c)}function u(n){return e.exit("codeIndented"),t(n)}}},U={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):I(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):_(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):I(e)?i(e):n(e)}}},Y={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),c(t)};function c(t){return 96===t?(e.consume(t),o++,c):(e.exit("codeTextSequence"),u(t))}function u(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),u):96===t?(i=e.enter("codeTextSequence"),r=0,l(t)):I(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||I(t)?(e.exit("codeTextData"),u(t)):(e.consume(t),s)}function l(n){return 96===n?(e.consume(n),r++,l):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",s(n))}}};class W{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=t??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Z(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Z(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Z(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Z(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Z(this.left,t.reverse())}}}function Z(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function $(e){const t={};let n,r,i,o,c,u,l,a=-1;const f=new W(e);for(;++a<f.length;){for(;a in t;)a=t[a];if(n=f.get(a),a&&"chunkFlow"===n[1].type&&"listItemPrefix"===f.get(a-1)[1].type&&(u=n[1]._tokenizer.events,i=0,i<u.length&&"lineEndingBlank"===u[i][1].type&&(i+=2),i<u.length&&"content"===u[i][1].type))for(;++i<u.length&&"content"!==u[i][1].type;)"chunkText"===u[i][1].type&&(u[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,G(f,a)),a=t[a],l=!0);else if(n[1]._container){for(i=a,r=void 0;i--;)if(o=f.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(f.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...f.get(r)[1].start},c=f.slice(r,a),c.unshift(n),f.splice(r,a-r+1,c))}}return s(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!l}function G(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let c=n._tokenizer;c||(c=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const u=c.events,s=[],l={};let a,f,h=-1,d=n,p=0,m=0;const g=[m];for(;d;){for(;e.get(++i)[1]!==d;);o.push(i),d._tokenizer||(a=r.sliceStream(d),d.next||a.push(null),f&&c.defineSkip(d.start),d._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(a),d._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++h<u.length;)"exit"===u[h][0]&&"enter"===u[h-1][0]&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(m=h+1,g.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(c.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),h=g.length;h--;){const t=u.slice(g[h],g[h+1]),n=o.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),h=-1;++h<s.length;)l[p+s[h][0]]=p+s[h][1],p+=s[h][1]-s[h][0]-1;return l}const J={resolve:function(e){return $(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):I(t)?e.check(K,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},K={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),_(e,i,"linePrefix")};function i(i){if(null===i||I(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function X(e,t,n,r,i,o,c,u,s){const l=s||Number.POSITIVE_INFINITY;let a=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||y(t)?n(t):(e.enter(r),e.enter(c),e.enter(u),e.enter("chunkString",{contentType:"string"}),p(t))};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(u),f(t)):null===t||60===t||I(t)?n(t):(e.consume(t),92===t?d:h)}function d(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function p(i){return a||null!==i&&41!==i&&!T(i)?a<l&&40===i?(e.consume(i),a++,p):41===i?(e.consume(i),a--,p):null===i||32===i||40===i||y(i)?n(i):(e.consume(i),92===i?m:p):(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function ee(e,t,n,r,i,o){const c=this;let u,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),l};function l(f){return s>999||null===f||91===f||93===f&&!u||94===f&&!s&&"_hiddenFootnoteSupport"in c.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):I(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),a(f))}function a(t){return null===t||91===t||93===t||I(t)||s++>999?(e.exit("chunkString"),l(t)):(e.consume(t),u||(u=!E(t)),92===t?f:a)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,a):a(t)}}function te(e,t,n,r,i,o){let c;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),c=40===t?41:t,u):n(t)};function u(n){return n===c?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===c?(e.exit(o),u(c)):null===t?n(t):I(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),_(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===c||null===t||I(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?a:l)}function a(t){return t===c||92===t?(e.consume(t),l):l(t)}}function ne(e,t){let n;return function r(i){return I(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):E(i)?_(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const re={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return ee.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=m(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c):n(t)}function c(t){return T(t)?ne(e,u)(t):u(t)}function u(t){return X(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(ie,l,l)(t)}function l(t){return E(t)?_(e,a,"whitespace")(t):a(t)}function a(o){return null===o||I(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},ie={partial:!0,tokenize:function(e,t,n){return function(t){return T(t)?ne(e,r)(t):n(t)};function r(t){return te(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return E(t)?_(e,o,"whitespace")(t):o(t)}function o(e){return null===e||I(e)?t(e):n(e)}}},oe={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return I(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},ce={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},s(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||T(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),c(n)):null===n||I(n)?(e.exit("atxHeading"),t(n)):E(n)?_(e,o,"whitespace")(n):(e.enter("atxHeadingText"),u(n))}function c(t){return 35===t?(e.consume(t),c):(e.exit("atxHeadingSequence"),o(t))}function u(t){return null===t||35===t||T(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),u)}}},ue=["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"],se=["pre","script","style","textarea"],le={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let i,o,c,u,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l}(t)};function l(u){return 33===u?(e.consume(u),a):47===u?(e.consume(u),o=!0,d):63===u?(e.consume(u),i=3,r.interrupt?t:O):g(u)?(e.consume(u),c=String.fromCharCode(u),p):n(u)}function a(o){return 45===o?(e.consume(o),i=2,f):91===o?(e.consume(o),i=5,u=0,h):g(o)?(e.consume(o),i=4,r.interrupt?t:O):n(o)}function f(i){return 45===i?(e.consume(i),r.interrupt?t:O):n(i)}function h(i){return i==="CDATA[".charCodeAt(u++)?(e.consume(i),6===u?r.interrupt?t:P:h):n(i)}function d(t){return g(t)?(e.consume(t),c=String.fromCharCode(t),p):n(t)}function p(u){if(null===u||47===u||62===u||T(u)){const s=47===u,l=c.toLowerCase();return s||o||!se.includes(l)?ue.includes(c.toLowerCase())?(i=6,s?(e.consume(u),m):r.interrupt?t(u):P(u)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(u):o?x(u):y(u)):(i=1,r.interrupt?t(u):P(u))}return 45===u||k(u)?(e.consume(u),c+=String.fromCharCode(u),p):n(u)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:P):n(i)}function x(t){return E(t)?(e.consume(t),x):_(t)}function y(t){return 47===t?(e.consume(t),_):58===t||95===t||g(t)?(e.consume(t),v):E(t)?(e.consume(t),y):_(t)}function v(t){return 45===t||46===t||58===t||95===t||k(t)?(e.consume(t),v):S(t)}function S(t){return 61===t?(e.consume(t),b):E(t)?(e.consume(t),S):y(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,z):E(t)?(e.consume(t),b):F(t)}function z(t){return t===s?(e.consume(t),s=null,w):null===t||I(t)?n(t):(e.consume(t),z)}function F(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||T(t)?S(t):(e.consume(t),F)}function w(e){return 47===e||62===e||E(e)?y(e):n(e)}function _(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||I(t)?P(t):E(t)?(e.consume(t),C):n(t)}function P(t){return 45===t&&2===i?(e.consume(t),B):60===t&&1===i?(e.consume(t),D):62===t&&4===i?(e.consume(t),R):63===t&&3===i?(e.consume(t),O):93===t&&5===i?(e.consume(t),N):!I(t)||6!==i&&7!==i?null===t||I(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),P):(e.exit("htmlFlowData"),e.check(ae,q,M)(t))}function M(t){return e.check(fe,L,q)(t)}function L(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||I(t)?M(t):(e.enter("htmlFlowData"),P(t))}function B(t){return 45===t?(e.consume(t),O):P(t)}function D(t){return 47===t?(e.consume(t),c="",H):P(t)}function H(t){if(62===t){const n=c.toLowerCase();return se.includes(n)?(e.consume(t),R):P(t)}return g(t)&&c.length<8?(e.consume(t),c+=String.fromCharCode(t),H):P(t)}function N(t){return 93===t?(e.consume(t),O):P(t)}function O(t){return 62===t?(e.consume(t),R):45===t&&2===i?(e.consume(t),O):P(t)}function R(t){return null===t||I(t)?(e.exit("htmlFlowData"),q(t)):(e.consume(t),R)}function q(n){return e.exit("htmlFlow"),t(n)}}},ae={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(N,t,n)}}},fe={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return I(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},he={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,c;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),u};function u(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),b):63===t?(e.consume(t),v):g(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),o=0,d):g(t)?(e.consume(t),y):n(t)}function l(t){return 45===t?(e.consume(t),h):n(t)}function a(t){return null===t?n(t):45===t?(e.consume(t),f):I(t)?(c=a,N(t)):(e.consume(t),a)}function f(t){return 45===t?(e.consume(t),h):a(t)}function h(e){return 62===e?H(e):45===e?f(e):a(e)}function d(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?p:d):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):I(t)?(c=p,N(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),x):p(t)}function x(t){return 62===t?H(t):93===t?(e.consume(t),x):p(t)}function y(t){return null===t||62===t?H(t):I(t)?(c=y,N(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),S):I(t)?(c=v,N(t)):(e.consume(t),v)}function S(e){return 62===e?H(e):v(e)}function b(t){return g(t)?(e.consume(t),z):n(t)}function z(t){return 45===t||k(t)?(e.consume(t),z):F(t)}function F(t){return I(t)?(c=F,N(t)):E(t)?(e.consume(t),F):H(t)}function w(t){return 45===t||k(t)?(e.consume(t),w):47===t||62===t||T(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),H):58===t||95===t||g(t)?(e.consume(t),P):I(t)?(c=C,N(t)):E(t)?(e.consume(t),C):H(t)}function P(t){return 45===t||46===t||58===t||95===t||k(t)?(e.consume(t),P):M(t)}function M(t){return 61===t?(e.consume(t),L):I(t)?(c=M,N(t)):E(t)?(e.consume(t),M):C(t)}function L(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,A):I(t)?(c=L,N(t)):E(t)?(e.consume(t),L):(e.consume(t),B)}function A(t){return t===i?(e.consume(t),i=void 0,D):null===t?n(t):I(t)?(c=A,N(t)):(e.consume(t),A)}function B(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||T(t)?C(t):(e.consume(t),B)}function D(e){return 47===e||62===e||T(e)?C(e):n(e)}function H(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return E(t)?_(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),c(t)}}},de={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&s(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,c=e.length,u=0;for(;c--;)if(n=e[c][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[c][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[c][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=c,"labelLink"!==n.type)){u=2;break}}else"labelEnd"===n.type&&(i=c);const a={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},h={type:"labelText",start:{...e[r+u+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",a,t],["enter",f,t]],o=l(o,e.slice(r+1,r+u+3)),o=l(o,[["enter",h,t]]),o=l(o,A(t.parser.constructs.insideSpan.null,e.slice(r+u+4,i-3),t)),o=l(o,[["exit",h,t],e[i-2],e[i-1],["exit",f,t]]),o=l(o,e.slice(i+1)),o=l(o,[["exit",a,t]]),s(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,c=r.events.length;for(;c--;)if(("labelImage"===r.events[c][1].type||"labelLink"===r.events[c][1].type)&&!r.events[c][1]._balanced){i=r.events[c][1];break}return function(t){return i?i._inactive?a(t):(o=r.parser.defined.includes(m(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),u):n(t)};function u(t){return 40===t?e.attempt(pe,l,o?l:a)(t):91===t?e.attempt(me,l,o?s:a)(t):o?l(t):a(t)}function s(t){return e.attempt(ge,l,a)(t)}function l(e){return t(e)}function a(e){return i._balanced=!0,n(e)}}},pe={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return T(t)?ne(e,i)(t):i(t)}function i(t){return 41===t?l(t):X(e,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return T(t)?ne(e,u)(t):l(t)}function c(e){return n(e)}function u(t){return 34===t||39===t||40===t?te(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function s(t){return T(t)?ne(e,l)(t):l(t)}function l(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},me={tokenize:function(e,t,n){const r=this;return function(t){return ee.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(m(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},ge={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},ke={name:"labelStartImage",resolveAll:de.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},xe={name:"labelStartLink",resolveAll:de.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},ye={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),_(e,t,"linePrefix")}}},ve={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),c(o)):i>=3&&(null===o||I(o))?(e.exit("thematicBreak"),t(o)):n(o)}function c(t){return t===r?(e.consume(t),i++,c):(e.exit("thematicBreakSequence"),E(t)?_(e,o,"whitespace")(t):o(t))}}},Se={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(N,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!E(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ie,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,_(e,e.attempt(Se,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,c=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:v(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ve,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(t)}return n(t)};function u(t){return v(t)&&++c<10?(e.consume(t),u):(!r.interrupt||c<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(N,r.interrupt?n:l,e.attempt(be,f,a))}function l(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function a(t){return E(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},be={partial:!0,tokenize:function(e,t,n){const r=this;return _(e,function(e){const i=r.events[r.events.length-1];return!E(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Ie={partial:!0,tokenize:function(e,t,n){const r=this;return _(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},Te={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const c={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",c,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=c,e.push(["exit",c,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let c,u=r.events.length;for(;u--;)if("lineEnding"!==r.events[u][1].type&&"linePrefix"!==r.events[u][1].type&&"content"!==r.events[u][1].type){c="paragraph"===r.events[u][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!c?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),E(t)?_(e,c,"lineSuffix")(t):c(t))}function c(r){return null===r||I(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},Ee={tokenize:function(e){const t=this,n=e.attempt(N,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,_(e,e.attempt(this.parser.constructs.flow,r,e.attempt(J,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},ze={resolveAll:Ce()},Fe=_e("string"),we=_e("text");function _e(e){return{resolveAll:Ce("text"===e?Pe:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,c);return o;function o(e){return s(e)?i(e):c(e)}function c(e){if(null!==e)return t.enter("data"),t.consume(e),u;t.consume(e)}function u(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),u)}function s(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Ce(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function Pe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,c=i.length,u=-1,s=0;for(;c--;){const e=i[c];if("string"==typeof e){for(u=e.length;32===e.charCodeAt(u-1);)s++,u--;if(u)break;u=-1}else if(-2===e)o=!0,s++;else if(-1!==e){c++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const i={type:n===e.length||o||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?u:r.start._bufferIndex+u,_index:r.start._index+c,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const Me={42:Se,43:Se,45:Se,48:Se,49:Se,50:Se,51:Se,52:Se,53:Se,54:Se,55:Se,56:Se,57:Se,62:O},Le={91:re},Ae={[-2]:Q,[-1]:Q,32:Q},Be={35:ce,42:ve,45:[Te,ve],60:le,61:Te,95:ve,96:j,126:j},De={38:q,92:R},He={[-5]:ye,[-4]:ye,[-3]:ye,33:ke,38:q,42:B,60:[H,he],91:xe,92:[oe,R],93:de,95:B,96:Y},Ne={null:[B,ze]},Oe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Le,disable:{null:[]},document:Me,flow:Be,flowInitial:Ae,insideSpan:Ne,string:De,text:He},Symbol.toStringTag,{value:"Module"})),Re=/[\0\t\n\r]/g,qe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ve(e){return e.replace(qe,je)}function je(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return p(n.slice(t?2:1),t?16:10)}return u(n)||e}function Qe(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ye(e.position):"start"in e||"end"in e?Ye(e):"line"in e||"column"in e?Ue(e):"":""}function Ue(e){return We(e&&e.line)+":"+We(e&&e.column)}function Ye(e){return Ue(e&&e.start)+"-"+Ue(e&&e.end)}function We(e){return e&&"number"==typeof e?e:1}const Ze={}.hasOwnProperty;function $e(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(b),autolinkProtocol:h,autolinkEmail:h,atxHeading:o(y),blockQuote:o(function(){return{type:"blockquote",children:[]}}),characterEscape:h,characterReference:h,codeFenced:o(x),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(x,c),codeText:o(function(){return{type:"inlineCode",value:""}},c),codeTextData:h,data:h,codeFlowValue:h,definition:o(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:o(v),hardBreakTrailing:o(v),htmlFlow:o(S,c),htmlFlowData:h,htmlText:o(S,c),htmlTextData:h,image:o(function(){return{type:"image",title:null,url:"",alt:null}}),label:c,link:o(b),listItem:o(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:o(I,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:o(I),paragraph:o(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(y),strong:o(function(){return{type:"strong",children:[]}}),thematicBreak:o(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:l(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:k,characterReferenceMarkerNumeric:k,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=p(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=u(t),this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=Ge(e.end)},codeFenced:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:l(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=m(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(g),hardBreakTrailing:l(g),htmlFlow:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:l(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Ve(t),n.identifier=m(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Ge(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(h.call(this,e),d.call(this,e))},link:l(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=m(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};Je(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:a,buffer:c,resume:f,data:n},u=[];let l=-1;for(;++l<e.length;)"listOrdered"!==e[l][1].type&&"listUnordered"!==e[l][1].type||("enter"===e[l][0]?u.push(l):l=i(e,u.pop(),l));for(l=-1;++l<e.length;){const n=t[e[l][0]];Ze.call(n,e[l][1].type)&&n[e[l][1].type].call(Object.assign({sliceSerialize:e[l][2].sliceSerialize},o),e[l][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||Xe).call(o,void 0,e[0])}for(r.position={start:Ge(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ge(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},l=-1;++l<t.transforms.length;)r=t.transforms[l](r)||r;return r};function i(e,t,n){let r,i,o,c,u=t-1,s=-1,l=!1;for(;++u<=n;){const t=e[u];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,c=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||c||s||o||(o=u),c=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:c=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let c=u;for(i=void 0;c--;){const t=e[c];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",l=!0),t[1].type="lineEnding",i=c}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||u,0,["exit",r,t[2]]),u++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(u,0,["enter",i,t[2]]),u++,n++,o=void 0,c=!0}}}return e[t][1]._spread=l,n}function o(e,t){return function(n){s.call(this,e(n),n),t&&t.call(this,n)}}function c(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Ge(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Qe({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Xe).call(this,e,r[0])),n.position.end=Ge(e.end)}function f(){return r(this.stack.pop())}function h(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Ge(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ge(e.end)}function g(){this.data.atHardBreak=!0}function k(e){this.data.characterReferenceType=e.type}function x(){return{type:"code",lang:null,meta:null,value:""}}function y(){return{type:"heading",depth:0,children:[]}}function v(){return{type:"break"}}function S(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function I(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!$(e););return e}(function(e){const t={constructs:f([Oe,...(e||{}).extensions||[]]),content:n(C),defined:[],document:n(P),flow:n(Ee),lazy:{},string:n(Fe),text:n(we)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let c=[],u=[];const a={attempt:k(function(e,t){x(e,t.from)}),check:k(g),consume:function(e){I(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),f.events.push(["enter",n,f]),u.push(n),n},exit:function(e){const t=u.pop();return t.end=p(),f.events.push(["exit",t,f]),t},interrupt:k(g,{interrupt:!0})},f={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,y()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let c;if("string"==typeof o)c=o;else switch(o){case-5:c="\r";break;case-4:c="\n";break;case-3:c="\r\n";break;case-2:c=t?" ":"\t";break;case-1:if(!t&&i)continue;c=" ";break;default:c=String.fromCharCode(o)}i=-2===o,r.push(c)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){return c=l(c,e),function(){let e;for(;r._index<c.length;){const t=c[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}(),null!==c[c.length-1]?[]:(x(t,0),f.events=A(o,f.events,f),f.events)}};let h=t.tokenize.call(f,a);return t.resolveAll&&o.push(t),f;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let c;if(n===i)c=[e[n].slice(r,o)];else{if(c=e.slice(n,i),r>-1){const e=c[0];"string"==typeof e?c[0]=e.slice(r):c.shift()}o>0&&c.push(e[i].slice(0,o))}return c}(c,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function m(e){h=h(e)}function g(e,t){t.restore()}function k(e,t){return function(n,i,o){let c,s,l,h;return Array.isArray(n)?d(n):"tokenize"in n?d([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return d([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function d(e){return c=e,s=0,0===e.length?o:m(e[s])}function m(e){return function(n){return h=function(){const e=p(),t=f.previous,n=f.currentConstruct,i=f.events.length,o=Array.from(u);return{from:i,restore:function(){r=e,f.previous=t,f.currentConstruct=n,f.events.length=i,u=o,y()}}}(),l=e,e.partial||(f.currentConstruct=e),e.name&&f.parser.constructs.disable.null.includes(e.name)?k():e.tokenize.call(t?Object.assign(Object.create(f),t):f,a,g,k)(n)}}function g(t){return e(l,h),i}function k(e){return h.restore(),++s<c.length?m(c[s]):o}}}function x(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&s(f.events,t,f.events.length-t,e.resolve(f.events.slice(t),f)),e.resolveTo&&(f.events=e.resolveTo(f.events,f))}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,c){const u=[];let s,l,a,f,h;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),a=0,n="",r&&(65279===i.charCodeAt(0)&&a++,r=void 0);a<i.length;){if(Re.lastIndex=a,s=Re.exec(i),f=s&&void 0!==s.index?s.index:i.length,h=i.charCodeAt(f),!s){n=i.slice(a);break}if(10===h&&a===f&&e)u.push(-3),e=void 0;else switch(e&&(u.push(-5),e=void 0),a<f&&(u.push(i.slice(a,f)),t+=f-a),h){case 0:u.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),u.push(-2);t++<l;)u.push(-1);break;case 10:u.push(-4),t=1;break;default:e=!0,t=1}a=f+1}return c&&(e&&u.push(-5),n&&u.push(n),u.push(null)),u}}()(e,t,!0))))}function Ge(e){return{line:e.line,column:e.column,offset:e.offset}}function Je(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Je(e,r):Ke(e,r)}}function Ke(e,t){let n;for(n in t)if(Ze.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Xe(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Qe({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Qe({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Qe({start:t.start,end:t.end})+") is still open")}export{t as S,z as a,k as b,g as c,y as d,N as e,$e as f,_ as g,L as h,I as i,E as j,f as k,Qe as l,T as m,m as n,Ve as o,l as p,A as r,s,r as t,F as u};
|