fumapress 0.1.19 → 0.1.21

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.
Files changed (77) hide show
  1. package/dist/lib/cli/index.mjs +1 -1
  2. package/dist/waku/public/assets/Icon-C79MpmBL.js +1 -0
  3. package/dist/waku/public/assets/{Icon-COiEluKG.js → Icon-D30p-2dq.js} +1 -1
  4. package/dist/waku/public/assets/{_root-B_HBMvxm.js → _root-BWh8XBln.js} +2 -2
  5. package/dist/waku/public/assets/_root-CzUOgPm2.css +1 -0
  6. package/dist/waku/public/assets/{algolia-B3g3v3EV.js → algolia-B1uhfuD6.js} +1 -1
  7. package/dist/waku/public/assets/{chevron-right-BKmSaGje.js → chevron-right-DmP6Xa1g.js} +1 -1
  8. package/dist/waku/public/assets/client-BSFjekJY.js +3 -0
  9. package/dist/waku/public/assets/{collapsible-lnBmMjCH.js → collapsible-B2rvGry7.js} +1 -1
  10. package/dist/waku/public/assets/{core-Skfz1hTb.js → core-C4jOG9I2.js} +1 -1
  11. package/dist/waku/public/assets/{i18n-CfTR60fN.js → i18n-V4QzeUbV.js} +1 -1
  12. package/dist/waku/public/assets/{index-DQN2bJK2.js → index-2HLUYgxN.js} +4 -4
  13. package/dist/waku/public/assets/{index-BLdweJQi.js → index-B-5ouVG_.js} +1 -1
  14. package/dist/waku/public/assets/{index-Bv3Sshd_.js → index-B65N5043.js} +1 -1
  15. package/dist/waku/public/assets/index-B7lX48CB.js +1 -0
  16. package/dist/waku/public/assets/{index-CQFhgOU6.js → index-BQZmdbam.js} +1 -1
  17. package/dist/waku/public/assets/{index-C4ekDDoc.js → index-Bojr-xLv.js} +1 -1
  18. package/dist/waku/public/assets/{index-ClhcZbgA.js → index-Bonlu0LX.js} +1 -1
  19. package/dist/waku/public/assets/{index-B4yKXNqP.js → index-CBSxJfFU.js} +1 -1
  20. package/dist/waku/public/assets/{index-C4FVOzMP.js → index-CYJW3hzB.js} +1 -1
  21. package/dist/waku/public/assets/{index-CLBYRJc0.js → index-DHENdpwd.js} +1 -1
  22. package/dist/waku/public/assets/{index-qvXn3qJl.js → index-DW9Fo86a.js} +1 -1
  23. package/dist/waku/public/assets/{index-pZ5n5tBM.js → index-NB9D4S1v.js} +1 -1
  24. package/dist/waku/public/assets/{index-DAcpNNU5.js → index-OFfnl8sH.js} +2 -2
  25. package/dist/waku/public/assets/{index-DPwGee8S.js → index-xXa72sZS.js} +1 -1
  26. package/dist/waku/public/assets/link-item-BlYkot48.js +1 -0
  27. package/dist/waku/public/assets/{merge-refs-DGylEIna.js → merge-refs-BIez66Kl.js} +1 -1
  28. package/dist/waku/public/assets/{orama-cloud-BbAUhDdL.js → orama-cloud-CazpSeQ0.js} +1 -1
  29. package/dist/waku/public/assets/{orama-cloud-legacy-EAn6qWjt.js → orama-cloud-legacy-CINWERV2.js} +1 -1
  30. package/dist/waku/public/assets/{orama-static-DFFiYi8s.js → orama-static-DwfVMMmc.js} +1 -1
  31. package/dist/waku/public/assets/{page-actions-CbGyuI_l.js → page-actions--VStSULV.js} +1 -1
  32. package/dist/waku/public/assets/{proxy-BN25oqgy.js → proxy-CWSxKwWP.js} +1 -1
  33. package/dist/waku/public/assets/{search-CM3hxxjx.js → search-D1WUBd3N.js} +1 -1
  34. package/dist/waku/public/assets/{search-default-wm73Z3ib.js → search-default-B2jTK1EC.js} +3 -3
  35. package/dist/waku/public/assets/{use-copy-button-U0RnQ-Sq.js → use-copy-button-BO3GBlwZ.js} +1 -1
  36. package/dist/waku/public/assets/{x-CXuLKQxc.js → x-CB1cQ-bo.js} +1 -1
  37. package/dist/waku/server/__vite_rsc_assets_manifest.js +152 -152
  38. package/dist/waku/server/assets/{_...slugs_-FFECnkNd.js → _...slugs_-8lFegkVB.js} +15 -15
  39. package/dist/waku/server/assets/{_root-7LFxiNtQ.js → _root-B7AMftRI.js} +1 -1
  40. package/dist/waku/server/assets/_root-CzUOgPm2.css +1 -0
  41. package/dist/waku/server/assets/{ai-BlOyHJkC.js → ai-C1Bf8DXZ.js} +2 -2
  42. package/dist/waku/server/assets/{chat-B4sNpxhQ.js → chat-CN1qUeN-.js} +117 -6
  43. package/dist/waku/server/assets/{image.webp-CG_cOBoV.js → image.webp-PNGidV2r.js} +1 -1
  44. package/dist/waku/server/assets/{img-C6_iV7ll.js → img-C2Ne7ke5.js} +1 -1
  45. package/dist/waku/server/assets/{index-R-tQK0RE.js → index-6LQQnOj9.js} +1 -1
  46. package/dist/waku/server/assets/{index-iVWLhMMp.js → index-AIo6cWfN.js} +1 -1
  47. package/dist/waku/server/assets/{index-CN2o9kRC.js → index-BtnFj3IN.js} +1 -1
  48. package/dist/waku/server/assets/{index-BxaQBzTs.js → index-CtEJq0xW.js} +5 -5
  49. package/dist/waku/server/assets/{index-DIk9wD7V.js → index-D6orYQqE.js} +1 -1
  50. package/dist/waku/server/assets/{index-Dc8WLZZv.js → index-DFPuXyRR.js} +1 -1
  51. package/dist/waku/server/assets/{index-DG1vZc9k.js → index-QgPg52ej.js} +1 -1
  52. package/dist/waku/server/assets/{index-D4WDA54B.js → index-dpJ5KyUl.js} +1 -1
  53. package/dist/waku/server/assets/{search-I4q0k5Tn.js → search-BuYfcIgW.js} +2 -2
  54. package/dist/waku/server/assets/{server-entry-inner-D30Qu7bL.js → server-entry-inner-DrYrCg3c.js} +3296 -3282
  55. package/dist/waku/server/assets/{token-7prp37ID.js → token-BJQ71htz.js} +3 -3
  56. package/dist/waku/server/assets/{token-util-DkI_npK8.js → token-util-BdUbceAe.js} +1 -1
  57. package/dist/waku/server/assets/{token-util-BdED7JFc.js → token-util-WrcienE5.js} +2 -2
  58. package/dist/waku/server/build.js +1 -1
  59. package/dist/waku/server/index.js +1 -1
  60. package/dist/waku/server/ssr/__vite_rsc_assets_manifest.js +152 -152
  61. package/dist/waku/server/ssr/assets/{Icon-CuJYBNMX.js → Icon-BkWS2wcn.js} +2 -2
  62. package/dist/waku/server/ssr/assets/{client-BbeQtVWa.js → client-g1PmfWL7.js} +26 -18
  63. package/dist/waku/server/ssr/assets/{collapsible-DxfK8fMb.js → collapsible-Bn5wjTEq.js} +3 -3
  64. package/dist/waku/server/ssr/assets/{index-BuDTCd5w.js → index-BytwN1tT.js} +2 -2
  65. package/dist/waku/server/ssr/assets/{index-D0NctJh1.js → index-CQ75Yqg7.js} +3 -3
  66. package/dist/waku/server/ssr/assets/{index-B6RnbBOa.js → index-Dv24Pwdo.js} +2 -2
  67. package/dist/waku/server/ssr/assets/{index-0siDROv6.js → index-QxYTPkdt.js} +4 -4
  68. package/dist/waku/server/ssr/assets/{link-item-DrU5_9Qt.js → link-item-Biy2LJnp.js} +9 -12
  69. package/dist/waku/server/ssr/assets/{page-actions-dtHZSwdX.js → page-actions-9aIaS5BH.js} +1 -1
  70. package/dist/waku/server/ssr/index.js +9 -9
  71. package/package.json +10 -10
  72. package/dist/waku/public/assets/Icon-DEaqaWE3.js +0 -1
  73. package/dist/waku/public/assets/_root-RXKKoIMN.css +0 -1
  74. package/dist/waku/public/assets/client-C6ia0d9t.js +0 -3
  75. package/dist/waku/public/assets/index-Udz7H4td.js +0 -1
  76. package/dist/waku/public/assets/link-item-zYGCmQHf.js +0 -1
  77. package/dist/waku/server/assets/_root-RXKKoIMN.css +0 -1
@@ -1,4 +1,4 @@
1
- import{g as Dt}from"./index-DAcpNNU5.js";const Mr={};function vn(e,n){const t=Mr,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Ot(e,r,i)}function Ot(e,n,t){if(Nr(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Gn(e.children,n,t)}return Array.isArray(e)?Gn(e,n,t):""}function Gn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ot(e[i],n,t);return r.join("")}function Nr(e){return!!(e&&typeof e=="object")}const Jn=document.createElement("i");function Tn(e){const n="&"+e+";";Jn.innerHTML=n;const t=Jn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function se(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function te(e,n){return e.length>0?(se(e,e.length,0,n),e):n}const Kn={}.hasOwnProperty;function jr(e){const n={};let t=-1;for(;++t<e.length;)Hr(n,e[t]);return n}function Hr(e,n){let t;for(t in n){const i=(Kn.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){Kn.call(i,o)||(i[o]=[]);const a=l[o];Ur(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Ur(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);se(e,0,0,r)}function Bt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ve(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ue=ye(/[A-Za-z]/),ne=ye(/[\dA-Za-z]/),$r=ye(/[#-'*+\--9=?A-Z^-~]/);function mn(e){return e!==null&&(e<32||e===127)}const gn=ye(/\d/),qr=ye(/[\dA-Fa-f]/),Vr=ye(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function D(e){return e===-2||e===-1||e===32}const Wr=ye(new RegExp("\\p{P}|\\p{S}","u")),Yr=ye(/\s/);function ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Pe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&ne(e.charCodeAt(t+1))&&ne(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function V(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return D(s)?(e.enter(t),a(s)):n(s)}function a(s){return D(s)&&l++<i?(e.consume(s),a):(e.exit(t),n(s))}}const Qr={tokenize:Xr};function Xr(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),V(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return P(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Gr={tokenize:Jr},Zn={tokenize:Kr};function Jr(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const N=t[r];return n.containerState=N[1],e.attempt(N[0].continuation,s,u)(E)}return u(E)}function s(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&L();const N=n.events.length;let H=N,y;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){y=n.events[H][1].end;break}x(r);let R=N;for(;R<n.events.length;)n.events[R][1].end={...y},R++;return se(n.events,H+1,0,n.events.slice(N)),n.events.length=R,u(E)}return a(E)}function u(E){if(r===t.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return b(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Zn,c,f)(E)}function c(E){return i&&L(),x(r),p(E)}function f(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(E)}function p(E){return n.containerState={},e.attempt(Zn,h,b)(E)}function h(E){return r++,t.push([n.currentConstruct,n.containerState]),p(E)}function b(E){if(E===null){i&&L(),x(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),S(E)}function S(E){if(E===null){I(e.exit("chunkFlow"),!0),x(0),e.consume(E);return}return P(E)?(e.consume(E),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),S)}function I(E,N){const H=n.sliceStream(E);if(N&&H.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(H),n.parser.lazy[E.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const R=n.events.length;let U=R,O,B;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(O){B=n.events[U][1].end;break}O=!0}for(x(r),y=R;y<n.events.length;)n.events[y][1].end={...B},y++;se(n.events,U+1,0,n.events.slice(R)),n.events.length=y}}function x(E){let N=t.length;for(;N-- >E;){const H=t[N];n.containerState=H[1],H[0].exit.call(n,e)}t.length=E}function L(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Kr(e,n,t){return V(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xe(e){if(e===null||J(e)||Yr(e))return 1;if(Wr(e))return 2}function Pn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const yn={name:"attention",resolveAll:Zr,tokenize:ei};function Zr(e,n){let t=-1,r,i,l,o,a,s,u,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[t][1].start};et(f,-s),et(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=te(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=te(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=te(u,Pn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=te(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,u=te(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,se(e,r-1,t-r+3,u),t=r+u.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ei(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Xe(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),c=Xe(s),f=!c||c===2&&i||t.includes(s),p=!i||i===2&&c||t.includes(r);return u._open=!!(l===42?f:f&&(i||!p)),u._close=!!(l===42?p:p&&(c||!f)),n(s)}}function et(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const ni={name:"autolink",tokenize:ti};function ti(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return ue(h)?(e.consume(h),o):h===64?t(h):u(h)}function o(h){return h===43||h===45||h===46||ne(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||ne(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||mn(h)?t(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),c):$r(h)?(e.consume(h),u):t(h)}function c(h){return ne(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||ne(h))&&r++<63){const b=h===45?p:f;return e.consume(h),b}return t(h)}}const Ze={partial:!0,tokenize:ri};function ri(e,n,t){return r;function r(l){return D(l)?V(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||P(l)?n(l):t(l)}}const Mt={continuation:{tokenize:li},exit:oi,name:"blockQuote",tokenize:ii};function ii(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return D(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function li(e,n,t){const r=this;return i;function i(o){return D(o)?V(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Mt,n,t)(o)}}function oi(e){e.exit("blockQuote")}const Nt={name:"characterEscape",tokenize:ai};function ai(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Vr(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const jt={name:"characterReference",tokenize:ui};function ui(e,n,t){const r=this;let i=0,l,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=ne,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=qr,c):(e.enter("characterReferenceValue"),l=7,o=gn,c(f))}function c(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return o===ne&&!Tn(r.sliceSerialize(p))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&i++<l?(e.consume(f),c):t(f)}}const nt={partial:!0,tokenize:ci},tt={concrete:!0,name:"codeFenced",tokenize:si};function si(e,n,t){const r=this,i={partial:!0,tokenize:H};let l=0,o=0,a;return s;function s(y){return u(y)}function u(y){const R=r.events[r.events.length-1];return l=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===a?(o++,e.consume(y),c):o<3?t(y):(e.exit("codeFencedFenceSequence"),D(y)?V(e,f,"whitespace")(y):f(y))}function f(y){return y===null||P(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(nt,S,N)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||P(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):D(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),V(e,h,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),p)}function h(y){return y===null||P(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(y))}function b(y){return y===null||P(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===a?t(y):(e.consume(y),b)}function S(y){return e.attempt(i,N,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x}function x(y){return l>0&&D(y)?V(e,L,"linePrefix",l+1)(y):L(y)}function L(y){return y===null||P(y)?e.check(nt,S,N)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||P(y)?(e.exit("codeFlowValue"),L(y)):(e.consume(y),E)}function N(y){return e.exit("codeFenced"),n(y)}function H(y,R,U){let O=0;return B;function B(C){return y.enter("lineEnding"),y.consume(C),y.exit("lineEnding"),v}function v(C){return y.enter("codeFencedFence"),D(C)?V(y,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):A(C)}function A(C){return C===a?(y.enter("codeFencedFenceSequence"),$(C)):U(C)}function $(C){return C===a?(O++,y.consume(C),$):O>=o?(y.exit("codeFencedFenceSequence"),D(C)?V(y,T,"whitespace")(C):T(C)):U(C)}function T(C){return C===null||P(C)?(y.exit("codeFencedFence"),R(C)):U(C)}}}function ci(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const tn={name:"codeIndented",tokenize:hi},fi={partial:!0,tokenize:pi};function hi(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),V(e,l,"linePrefix",5)(u)}function l(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?s(u):P(u)?e.attempt(fi,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||P(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function pi(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):V(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):P(o)?i(o):t(o)}}const di={name:"codeText",previous:gi,resolve:mi,tokenize:yi};function mi(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function gi(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yi(e,n,t){let r=0,i,l;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(l=e.enter("codeTextSequence"),i=0,c(f)):P(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||P(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",u(f))}}class xi{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Re(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Re(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Re(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Re(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Re(this.left,t.reverse())}}}function Re(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Ht(e){const n={};let t=-1,r,i,l,o,a,s,u;const c=new xi(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type==="chunkFlow"&&c.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,ki(c,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=c.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,t),a.unshift(r),c.splice(i,t-i+1,a))}}return se(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function ki(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let c,f,p=-1,h=t,b=0,S=0;const I=[S];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(S=p+1,I.push(S),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):I.pop(),p=I.length;p--;){const x=a.slice(I[p],I[p+1]),L=l.pop();s.push([L,L+x.length-1]),e.splice(L,2,x)}for(s.reverse(),p=-1;++p<s.length;)u[b+s[p][0]]=b+s[p][1],b+=s[p][1]-s[p][0]-1;return u}const bi={resolve:Si,tokenize:Ci},wi={partial:!0,tokenize:Ei};function Si(e){return Ht(e),e}function Ci(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):P(a)?e.check(wi,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Ei(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),V(e,l,"linePrefix")}function l(o){if(o===null||P(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Ut(e,n,t,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),p):x===null||x===32||x===41||mn(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(x))}function p(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||P(x)?t(x):(e.consume(x),x===92?b:h)}function b(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function S(x){return!c&&(x===null||x===41||J(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):c<u&&x===40?(e.consume(x),c++,S):x===41?(e.consume(x),c--,S):x===null||x===32||x===40||mn(x)?t(x):(e.consume(x),x===92?I:S)}function I(x){return x===40||x===41||x===92?(e.consume(x),S):S(x)}}function $t(e,n,t,r,i,l){const o=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),c}function c(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||P(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),s||(s=!D(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function qt(e,n,t,r,i,l){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):t(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(l),u(p))}function u(p){return p===o?(e.exit(l),s(o)):p===null?t(p):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),V(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===o||p===null||P(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===o||p===92?(e.consume(p),c):c(p)}}function Me(e,n){let t;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):D(i)?V(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ii={name:"definition",tokenize:vi},Ai={partial:!0,tokenize:Ti};function vi(e,n,t){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return $t.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return J(h)?Me(e,u)(h):u(h)}function u(h){return Ut(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Ai,f,f)(h)}function f(h){return D(h)?V(e,p,"whitespace")(h):p(h)}function p(h){return h===null||P(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function Ti(e,n,t){return r;function r(a){return J(a)?Me(e,i)(a):t(a)}function i(a){return qt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return D(a)?V(e,o,"whitespace")(a):o(a)}function o(a){return a===null||P(a)?n(a):t(a)}}const Pi={name:"hardBreakEscape",tokenize:Li};function Li(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return P(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const zi={name:"headingAtx",resolve:_i,tokenize:Fi};function _i(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},se(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Fi(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||J(c)?(e.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||P(c)?(e.exit("atxHeading"),n(c)):D(c)?V(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||J(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Ri=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rt=["pre","script","style","textarea"],Di={concrete:!0,name:"htmlFlow",resolveTo:Mi,tokenize:Ni},Oi={partial:!0,tokenize:Hi},Bi={partial:!0,tokenize:ji};function Mi(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Ni(e,n,t){const r=this;let i,l,o,a,s;return u;function u(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),p):m===47?(e.consume(m),l=!0,S):m===63?(e.consume(m),i=3,r.interrupt?n:d):ue(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function p(m){return m===45?(e.consume(m),i=2,h):m===91?(e.consume(m),i=5,a=0,b):ue(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function h(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function b(m){const le="CDATA[";return m===le.charCodeAt(a++)?(e.consume(m),a===le.length?r.interrupt?n:A:b):t(m)}function S(m){return ue(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const le=m===47,xe=o.toLowerCase();return!le&&!l&&rt.includes(xe)?(i=1,r.interrupt?n(m):A(m)):Ri.includes(o.toLowerCase())?(i=6,le?(e.consume(m),x):r.interrupt?n(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?L(m):E(m))}return m===45||ne(m)?(e.consume(m),o+=String.fromCharCode(m),I):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:A):t(m)}function L(m){return D(m)?(e.consume(m),L):B(m)}function E(m){return m===47?(e.consume(m),B):m===58||m===95||ue(m)?(e.consume(m),N):D(m)?(e.consume(m),E):B(m)}function N(m){return m===45||m===46||m===58||m===95||ne(m)?(e.consume(m),N):H(m)}function H(m){return m===61?(e.consume(m),y):D(m)?(e.consume(m),H):E(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,R):D(m)?(e.consume(m),y):U(m)}function R(m){return m===s?(e.consume(m),s=null,O):m===null||P(m)?t(m):(e.consume(m),R)}function U(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?H(m):(e.consume(m),U)}function O(m){return m===47||m===62||D(m)?E(m):t(m)}function B(m){return m===62?(e.consume(m),v):t(m)}function v(m){return m===null||P(m)?A(m):D(m)?(e.consume(m),v):t(m)}function A(m){return m===45&&i===2?(e.consume(m),M):m===60&&i===1?(e.consume(m),Y):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),ce):P(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Oi,fe,$)(m)):m===null||P(m)?(e.exit("htmlFlowData"),$(m)):(e.consume(m),A)}function $(m){return e.check(Bi,T,fe)(m)}function T(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),C}function C(m){return m===null||P(m)?$(m):(e.enter("htmlFlowData"),A(m))}function M(m){return m===45?(e.consume(m),d):A(m)}function Y(m){return m===47?(e.consume(m),o="",re):A(m)}function re(m){if(m===62){const le=o.toLowerCase();return rt.includes(le)?(e.consume(m),ie):A(m)}return ue(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),re):A(m)}function ce(m){return m===93?(e.consume(m),d):A(m)}function d(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),d):A(m)}function ie(m){return m===null||P(m)?(e.exit("htmlFlowData"),fe(m)):(e.consume(m),ie)}function fe(m){return e.exit("htmlFlow"),n(m)}}function ji(e,n,t){const r=this;return i;function i(o){return P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Hi(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ze,n,t)}}const Ui={name:"htmlText",tokenize:$i};function $i(e,n,t){const r=this;let i,l,o;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),H):d===63?(e.consume(d),E):ue(d)?(e.consume(d),U):t(d)}function u(d){return d===45?(e.consume(d),c):d===91?(e.consume(d),l=0,b):ue(d)?(e.consume(d),L):t(d)}function c(d){return d===45?(e.consume(d),h):t(d)}function f(d){return d===null?t(d):d===45?(e.consume(d),p):P(d)?(o=f,Y(d)):(e.consume(d),f)}function p(d){return d===45?(e.consume(d),h):f(d)}function h(d){return d===62?M(d):d===45?p(d):f(d)}function b(d){const ie="CDATA[";return d===ie.charCodeAt(l++)?(e.consume(d),l===ie.length?S:b):t(d)}function S(d){return d===null?t(d):d===93?(e.consume(d),I):P(d)?(o=S,Y(d)):(e.consume(d),S)}function I(d){return d===93?(e.consume(d),x):S(d)}function x(d){return d===62?M(d):d===93?(e.consume(d),x):S(d)}function L(d){return d===null||d===62?M(d):P(d)?(o=L,Y(d)):(e.consume(d),L)}function E(d){return d===null?t(d):d===63?(e.consume(d),N):P(d)?(o=E,Y(d)):(e.consume(d),E)}function N(d){return d===62?M(d):E(d)}function H(d){return ue(d)?(e.consume(d),y):t(d)}function y(d){return d===45||ne(d)?(e.consume(d),y):R(d)}function R(d){return P(d)?(o=R,Y(d)):D(d)?(e.consume(d),R):M(d)}function U(d){return d===45||ne(d)?(e.consume(d),U):d===47||d===62||J(d)?O(d):t(d)}function O(d){return d===47?(e.consume(d),M):d===58||d===95||ue(d)?(e.consume(d),B):P(d)?(o=O,Y(d)):D(d)?(e.consume(d),O):M(d)}function B(d){return d===45||d===46||d===58||d===95||ne(d)?(e.consume(d),B):v(d)}function v(d){return d===61?(e.consume(d),A):P(d)?(o=v,Y(d)):D(d)?(e.consume(d),v):O(d)}function A(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,$):P(d)?(o=A,Y(d)):D(d)?(e.consume(d),A):(e.consume(d),T)}function $(d){return d===i?(e.consume(d),i=void 0,C):d===null?t(d):P(d)?(o=$,Y(d)):(e.consume(d),$)}function T(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||J(d)?O(d):(e.consume(d),T)}function C(d){return d===47||d===62||J(d)?O(d):t(d)}function M(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function Y(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),re}function re(d){return D(d)?V(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):ce(d)}function ce(d){return e.enter("htmlTextData"),o(d)}}const Ln={name:"labelEnd",resolveAll:Yi,resolveTo:Qi,tokenize:Xi},qi={tokenize:Gi},Vi={tokenize:Ji},Wi={tokenize:Ki};function Yi(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&se(e,0,e.length,t),e}function Qi(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=te(a,e.slice(l+1,l+r+3)),a=te(a,[["enter",c,n]]),a=te(a,Pn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=te(a,[["exit",c,n],e[o-2],e[o-1],["exit",u,n]]),a=te(a,e.slice(o+1)),a=te(a,[["exit",s,n]]),se(e,l,e.length,a),e}function Xi(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(p){return l?l._inactive?f(p):(o=r.parser.defined.includes(ve(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):t(p)}function s(p){return p===40?e.attempt(qi,c,o?c:f)(p):p===91?e.attempt(Vi,c,o?u:f)(p):o?c(p):f(p)}function u(p){return e.attempt(Wi,c,f)(p)}function c(p){return n(p)}function f(p){return l._balanced=!0,t(p)}}function Gi(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return J(f)?Me(e,l)(f):l(f)}function l(f){return f===41?c(f):Ut(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return J(f)?Me(e,s)(f):c(f)}function a(f){return t(f)}function s(f){return f===34||f===39||f===40?qt(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return J(f)?Me(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function Ji(e,n,t){const r=this;return i;function i(a){return $t.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Ki(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Zi={name:"labelStartImage",resolveAll:Ln.resolveAll,tokenize:el};function el(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const nl={name:"labelStartLink",resolveAll:Ln.resolveAll,tokenize:tl};function tl(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const rn={name:"lineEnding",tokenize:rl};function rl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),V(e,n,"linePrefix")}}const Qe={name:"thematicBreak",tokenize:il};function il(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||P(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),D(u)?V(e,a,"whitespace")(u):a(u))}}const G={continuation:{tokenize:ul},exit:cl,name:"list",tokenize:al},ll={partial:!0,tokenize:fl},ol={partial:!0,tokenize:sl};function al(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(h){const b=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:gn(h)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Qe,t,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return gn(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):t(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ze,r.interrupt?t:c,e.attempt(ll,p,f))}function c(h){return r.containerState.initialBlankLine=!0,l++,p(h)}function f(h){return D(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function ul(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ze,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,V(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!D(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ol,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,V(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function sl(e,n,t){const r=this;return V(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function cl(e){e.exit(this.containerState.type)}function fl(e,n,t){const r=this;return V(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!D(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const it={name:"setextUnderline",resolveTo:hl,tokenize:pl};function hl(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function pl(e,n,t){const r=this;let i;return l;function l(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),D(u)?V(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||P(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const dl={tokenize:ml};function ml(e){const n=this,t=e.attempt(Ze,r,e.attempt(this.parser.constructs.flowInitial,i,V(e,e.attempt(this.parser.constructs.flow,i,e.attempt(bi,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const gl={resolveAll:Wt()},yl=Vt("string"),xl=Vt("text");function Vt(e){return{resolveAll:Wt(e==="text"?kl:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(c){return u(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),s}function s(c){return u(c)?(t.exit("data"),l(c)):(t.consume(c),s)}function u(c){if(c===null)return!0;const f=i[c];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Wt(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function kl(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const bl={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:Mt},wl={91:Ii},Sl={[-2]:tn,[-1]:tn,32:tn},Cl={35:zi,42:Qe,45:[it,Qe],60:Di,61:it,95:Qe,96:tt,126:tt},El={38:jt,92:Nt},Il={[-5]:rn,[-4]:rn,[-3]:rn,33:Zi,38:jt,42:yn,60:[ni,Ui],91:nl,92:[Pi,Nt],93:Ln,95:yn,96:di},Al={null:[yn,gl]},vl={null:[42,95]},Tl={null:[]},Pl=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:vl,contentInitial:wl,disable:Tl,document:bl,flow:Cl,flowInitial:Sl,insideSpan:Al,string:El,text:Il},Symbol.toStringTag,{value:"Module"}));function Ll(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const s={attempt:R(H),check:R(y),consume:L,enter:E,exit:N,interrupt:R(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:b,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let c=n.tokenize.call(u,s);return n.resolveAll&&l.push(n),u;function f(v){return o=te(o,v),I(),o[o.length-1]!==null?[]:(U(n,0),u.events=Pn(l,u.events,u),u.events)}function p(v,A){return _l(h(v),A)}function h(v){return zl(o,v)}function b(){const{_bufferIndex:v,_index:A,line:$,column:T,offset:C}=r;return{_bufferIndex:v,_index:A,line:$,column:T,offset:C}}function S(v){i[v.line]=v.column,B()}function I(){let v;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(v=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===v&&r._bufferIndex<A.length;)x(A.charCodeAt(r._bufferIndex));else x(A)}}function x(v){c=c(v)}function L(v){P(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,B()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=v}function E(v,A){const $=A||{};return $.type=v,$.start=b(),u.events.push(["enter",$,u]),a.push($),$}function N(v){const A=a.pop();return A.end=b(),u.events.push(["exit",A,u]),A}function H(v,A){U(v,A.from)}function y(v,A){A.restore()}function R(v,A){return $;function $(T,C,M){let Y,re,ce,d;return Array.isArray(T)?fe(T):"tokenize"in T?fe([T]):ie(T);function ie(Q){return ze;function ze(de){const Se=de!==null&&Q[de],Ce=de!==null&&Q.null,qe=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return fe(qe)(de)}}function fe(Q){return Y=Q,re=0,Q.length===0?M:m(Q[re])}function m(Q){return ze;function ze(de){return d=O(),ce=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?xe():Q.tokenize.call(A?Object.assign(Object.create(u),A):u,s,le,xe)(de)}}function le(Q){return v(ce,d),C}function xe(Q){return d.restore(),++re<Y.length?m(Y[re]):M}}}function U(v,A){v.resolveAll&&!l.includes(v)&&l.push(v),v.resolve&&se(u.events,A,u.events.length-A,v.resolve(u.events.slice(A),u)),v.resolveTo&&(u.events=v.resolveTo(u.events,u))}function O(){const v=b(),A=u.previous,$=u.currentConstruct,T=u.events.length,C=Array.from(a);return{from:T,restore:M};function M(){r=v,u.previous=A,u.currentConstruct=$,u.events.length=T,a=C,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function zl(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function _l(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
1
+ import{g as Dt}from"./index-OFfnl8sH.js";const Mr={};function vn(e,n){const t=Mr,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Ot(e,r,i)}function Ot(e,n,t){if(Nr(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Gn(e.children,n,t)}return Array.isArray(e)?Gn(e,n,t):""}function Gn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ot(e[i],n,t);return r.join("")}function Nr(e){return!!(e&&typeof e=="object")}const Jn=document.createElement("i");function Tn(e){const n="&"+e+";";Jn.innerHTML=n;const t=Jn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function se(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function te(e,n){return e.length>0?(se(e,e.length,0,n),e):n}const Kn={}.hasOwnProperty;function jr(e){const n={};let t=-1;for(;++t<e.length;)Hr(n,e[t]);return n}function Hr(e,n){let t;for(t in n){const i=(Kn.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){Kn.call(i,o)||(i[o]=[]);const a=l[o];Ur(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Ur(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);se(e,0,0,r)}function Bt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ve(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ue=ye(/[A-Za-z]/),ne=ye(/[\dA-Za-z]/),$r=ye(/[#-'*+\--9=?A-Z^-~]/);function mn(e){return e!==null&&(e<32||e===127)}const gn=ye(/\d/),qr=ye(/[\dA-Fa-f]/),Vr=ye(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function D(e){return e===-2||e===-1||e===32}const Wr=ye(new RegExp("\\p{P}|\\p{S}","u")),Yr=ye(/\s/);function ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Pe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&ne(e.charCodeAt(t+1))&&ne(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function V(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return D(s)?(e.enter(t),a(s)):n(s)}function a(s){return D(s)&&l++<i?(e.consume(s),a):(e.exit(t),n(s))}}const Qr={tokenize:Xr};function Xr(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),V(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return P(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Gr={tokenize:Jr},Zn={tokenize:Kr};function Jr(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const N=t[r];return n.containerState=N[1],e.attempt(N[0].continuation,s,u)(E)}return u(E)}function s(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&L();const N=n.events.length;let H=N,y;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){y=n.events[H][1].end;break}x(r);let R=N;for(;R<n.events.length;)n.events[R][1].end={...y},R++;return se(n.events,H+1,0,n.events.slice(N)),n.events.length=R,u(E)}return a(E)}function u(E){if(r===t.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return b(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Zn,c,f)(E)}function c(E){return i&&L(),x(r),p(E)}function f(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(E)}function p(E){return n.containerState={},e.attempt(Zn,h,b)(E)}function h(E){return r++,t.push([n.currentConstruct,n.containerState]),p(E)}function b(E){if(E===null){i&&L(),x(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),S(E)}function S(E){if(E===null){I(e.exit("chunkFlow"),!0),x(0),e.consume(E);return}return P(E)?(e.consume(E),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),S)}function I(E,N){const H=n.sliceStream(E);if(N&&H.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(H),n.parser.lazy[E.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const R=n.events.length;let U=R,O,B;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(O){B=n.events[U][1].end;break}O=!0}for(x(r),y=R;y<n.events.length;)n.events[y][1].end={...B},y++;se(n.events,U+1,0,n.events.slice(R)),n.events.length=y}}function x(E){let N=t.length;for(;N-- >E;){const H=t[N];n.containerState=H[1],H[0].exit.call(n,e)}t.length=E}function L(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Kr(e,n,t){return V(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xe(e){if(e===null||J(e)||Yr(e))return 1;if(Wr(e))return 2}function Pn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const yn={name:"attention",resolveAll:Zr,tokenize:ei};function Zr(e,n){let t=-1,r,i,l,o,a,s,u,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[t][1].start};et(f,-s),et(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=te(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=te(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=te(u,Pn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=te(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,u=te(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,se(e,r-1,t-r+3,u),t=r+u.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ei(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Xe(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),c=Xe(s),f=!c||c===2&&i||t.includes(s),p=!i||i===2&&c||t.includes(r);return u._open=!!(l===42?f:f&&(i||!p)),u._close=!!(l===42?p:p&&(c||!f)),n(s)}}function et(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const ni={name:"autolink",tokenize:ti};function ti(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return ue(h)?(e.consume(h),o):h===64?t(h):u(h)}function o(h){return h===43||h===45||h===46||ne(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||ne(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||mn(h)?t(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),c):$r(h)?(e.consume(h),u):t(h)}function c(h){return ne(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||ne(h))&&r++<63){const b=h===45?p:f;return e.consume(h),b}return t(h)}}const Ze={partial:!0,tokenize:ri};function ri(e,n,t){return r;function r(l){return D(l)?V(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||P(l)?n(l):t(l)}}const Mt={continuation:{tokenize:li},exit:oi,name:"blockQuote",tokenize:ii};function ii(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return D(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function li(e,n,t){const r=this;return i;function i(o){return D(o)?V(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Mt,n,t)(o)}}function oi(e){e.exit("blockQuote")}const Nt={name:"characterEscape",tokenize:ai};function ai(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Vr(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const jt={name:"characterReference",tokenize:ui};function ui(e,n,t){const r=this;let i=0,l,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=ne,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=qr,c):(e.enter("characterReferenceValue"),l=7,o=gn,c(f))}function c(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return o===ne&&!Tn(r.sliceSerialize(p))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&i++<l?(e.consume(f),c):t(f)}}const nt={partial:!0,tokenize:ci},tt={concrete:!0,name:"codeFenced",tokenize:si};function si(e,n,t){const r=this,i={partial:!0,tokenize:H};let l=0,o=0,a;return s;function s(y){return u(y)}function u(y){const R=r.events[r.events.length-1];return l=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===a?(o++,e.consume(y),c):o<3?t(y):(e.exit("codeFencedFenceSequence"),D(y)?V(e,f,"whitespace")(y):f(y))}function f(y){return y===null||P(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(nt,S,N)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||P(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):D(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),V(e,h,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),p)}function h(y){return y===null||P(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(y))}function b(y){return y===null||P(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===a?t(y):(e.consume(y),b)}function S(y){return e.attempt(i,N,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x}function x(y){return l>0&&D(y)?V(e,L,"linePrefix",l+1)(y):L(y)}function L(y){return y===null||P(y)?e.check(nt,S,N)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||P(y)?(e.exit("codeFlowValue"),L(y)):(e.consume(y),E)}function N(y){return e.exit("codeFenced"),n(y)}function H(y,R,U){let O=0;return B;function B(C){return y.enter("lineEnding"),y.consume(C),y.exit("lineEnding"),v}function v(C){return y.enter("codeFencedFence"),D(C)?V(y,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):A(C)}function A(C){return C===a?(y.enter("codeFencedFenceSequence"),$(C)):U(C)}function $(C){return C===a?(O++,y.consume(C),$):O>=o?(y.exit("codeFencedFenceSequence"),D(C)?V(y,T,"whitespace")(C):T(C)):U(C)}function T(C){return C===null||P(C)?(y.exit("codeFencedFence"),R(C)):U(C)}}}function ci(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const tn={name:"codeIndented",tokenize:hi},fi={partial:!0,tokenize:pi};function hi(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),V(e,l,"linePrefix",5)(u)}function l(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?s(u):P(u)?e.attempt(fi,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||P(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function pi(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):V(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):P(o)?i(o):t(o)}}const di={name:"codeText",previous:gi,resolve:mi,tokenize:yi};function mi(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function gi(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yi(e,n,t){let r=0,i,l;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(l=e.enter("codeTextSequence"),i=0,c(f)):P(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||P(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",u(f))}}class xi{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Re(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Re(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Re(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Re(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Re(this.left,t.reverse())}}}function Re(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Ht(e){const n={};let t=-1,r,i,l,o,a,s,u;const c=new xi(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type==="chunkFlow"&&c.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,ki(c,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=c.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,t),a.unshift(r),c.splice(i,t-i+1,a))}}return se(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function ki(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let c,f,p=-1,h=t,b=0,S=0;const I=[S];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(S=p+1,I.push(S),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):I.pop(),p=I.length;p--;){const x=a.slice(I[p],I[p+1]),L=l.pop();s.push([L,L+x.length-1]),e.splice(L,2,x)}for(s.reverse(),p=-1;++p<s.length;)u[b+s[p][0]]=b+s[p][1],b+=s[p][1]-s[p][0]-1;return u}const bi={resolve:Si,tokenize:Ci},wi={partial:!0,tokenize:Ei};function Si(e){return Ht(e),e}function Ci(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):P(a)?e.check(wi,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Ei(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),V(e,l,"linePrefix")}function l(o){if(o===null||P(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Ut(e,n,t,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),p):x===null||x===32||x===41||mn(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(x))}function p(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||P(x)?t(x):(e.consume(x),x===92?b:h)}function b(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function S(x){return!c&&(x===null||x===41||J(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):c<u&&x===40?(e.consume(x),c++,S):x===41?(e.consume(x),c--,S):x===null||x===32||x===40||mn(x)?t(x):(e.consume(x),x===92?I:S)}function I(x){return x===40||x===41||x===92?(e.consume(x),S):S(x)}}function $t(e,n,t,r,i,l){const o=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),c}function c(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||P(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),s||(s=!D(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function qt(e,n,t,r,i,l){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):t(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(l),u(p))}function u(p){return p===o?(e.exit(l),s(o)):p===null?t(p):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),V(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===o||p===null||P(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===o||p===92?(e.consume(p),c):c(p)}}function Me(e,n){let t;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):D(i)?V(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ii={name:"definition",tokenize:vi},Ai={partial:!0,tokenize:Ti};function vi(e,n,t){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return $t.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return J(h)?Me(e,u)(h):u(h)}function u(h){return Ut(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Ai,f,f)(h)}function f(h){return D(h)?V(e,p,"whitespace")(h):p(h)}function p(h){return h===null||P(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function Ti(e,n,t){return r;function r(a){return J(a)?Me(e,i)(a):t(a)}function i(a){return qt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return D(a)?V(e,o,"whitespace")(a):o(a)}function o(a){return a===null||P(a)?n(a):t(a)}}const Pi={name:"hardBreakEscape",tokenize:Li};function Li(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return P(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const zi={name:"headingAtx",resolve:_i,tokenize:Fi};function _i(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},se(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Fi(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||J(c)?(e.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||P(c)?(e.exit("atxHeading"),n(c)):D(c)?V(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||J(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Ri=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rt=["pre","script","style","textarea"],Di={concrete:!0,name:"htmlFlow",resolveTo:Mi,tokenize:Ni},Oi={partial:!0,tokenize:Hi},Bi={partial:!0,tokenize:ji};function Mi(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Ni(e,n,t){const r=this;let i,l,o,a,s;return u;function u(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),p):m===47?(e.consume(m),l=!0,S):m===63?(e.consume(m),i=3,r.interrupt?n:d):ue(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function p(m){return m===45?(e.consume(m),i=2,h):m===91?(e.consume(m),i=5,a=0,b):ue(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function h(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function b(m){const le="CDATA[";return m===le.charCodeAt(a++)?(e.consume(m),a===le.length?r.interrupt?n:A:b):t(m)}function S(m){return ue(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const le=m===47,xe=o.toLowerCase();return!le&&!l&&rt.includes(xe)?(i=1,r.interrupt?n(m):A(m)):Ri.includes(o.toLowerCase())?(i=6,le?(e.consume(m),x):r.interrupt?n(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?L(m):E(m))}return m===45||ne(m)?(e.consume(m),o+=String.fromCharCode(m),I):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:A):t(m)}function L(m){return D(m)?(e.consume(m),L):B(m)}function E(m){return m===47?(e.consume(m),B):m===58||m===95||ue(m)?(e.consume(m),N):D(m)?(e.consume(m),E):B(m)}function N(m){return m===45||m===46||m===58||m===95||ne(m)?(e.consume(m),N):H(m)}function H(m){return m===61?(e.consume(m),y):D(m)?(e.consume(m),H):E(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,R):D(m)?(e.consume(m),y):U(m)}function R(m){return m===s?(e.consume(m),s=null,O):m===null||P(m)?t(m):(e.consume(m),R)}function U(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?H(m):(e.consume(m),U)}function O(m){return m===47||m===62||D(m)?E(m):t(m)}function B(m){return m===62?(e.consume(m),v):t(m)}function v(m){return m===null||P(m)?A(m):D(m)?(e.consume(m),v):t(m)}function A(m){return m===45&&i===2?(e.consume(m),M):m===60&&i===1?(e.consume(m),Y):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),ce):P(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Oi,fe,$)(m)):m===null||P(m)?(e.exit("htmlFlowData"),$(m)):(e.consume(m),A)}function $(m){return e.check(Bi,T,fe)(m)}function T(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),C}function C(m){return m===null||P(m)?$(m):(e.enter("htmlFlowData"),A(m))}function M(m){return m===45?(e.consume(m),d):A(m)}function Y(m){return m===47?(e.consume(m),o="",re):A(m)}function re(m){if(m===62){const le=o.toLowerCase();return rt.includes(le)?(e.consume(m),ie):A(m)}return ue(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),re):A(m)}function ce(m){return m===93?(e.consume(m),d):A(m)}function d(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),d):A(m)}function ie(m){return m===null||P(m)?(e.exit("htmlFlowData"),fe(m)):(e.consume(m),ie)}function fe(m){return e.exit("htmlFlow"),n(m)}}function ji(e,n,t){const r=this;return i;function i(o){return P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Hi(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ze,n,t)}}const Ui={name:"htmlText",tokenize:$i};function $i(e,n,t){const r=this;let i,l,o;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),H):d===63?(e.consume(d),E):ue(d)?(e.consume(d),U):t(d)}function u(d){return d===45?(e.consume(d),c):d===91?(e.consume(d),l=0,b):ue(d)?(e.consume(d),L):t(d)}function c(d){return d===45?(e.consume(d),h):t(d)}function f(d){return d===null?t(d):d===45?(e.consume(d),p):P(d)?(o=f,Y(d)):(e.consume(d),f)}function p(d){return d===45?(e.consume(d),h):f(d)}function h(d){return d===62?M(d):d===45?p(d):f(d)}function b(d){const ie="CDATA[";return d===ie.charCodeAt(l++)?(e.consume(d),l===ie.length?S:b):t(d)}function S(d){return d===null?t(d):d===93?(e.consume(d),I):P(d)?(o=S,Y(d)):(e.consume(d),S)}function I(d){return d===93?(e.consume(d),x):S(d)}function x(d){return d===62?M(d):d===93?(e.consume(d),x):S(d)}function L(d){return d===null||d===62?M(d):P(d)?(o=L,Y(d)):(e.consume(d),L)}function E(d){return d===null?t(d):d===63?(e.consume(d),N):P(d)?(o=E,Y(d)):(e.consume(d),E)}function N(d){return d===62?M(d):E(d)}function H(d){return ue(d)?(e.consume(d),y):t(d)}function y(d){return d===45||ne(d)?(e.consume(d),y):R(d)}function R(d){return P(d)?(o=R,Y(d)):D(d)?(e.consume(d),R):M(d)}function U(d){return d===45||ne(d)?(e.consume(d),U):d===47||d===62||J(d)?O(d):t(d)}function O(d){return d===47?(e.consume(d),M):d===58||d===95||ue(d)?(e.consume(d),B):P(d)?(o=O,Y(d)):D(d)?(e.consume(d),O):M(d)}function B(d){return d===45||d===46||d===58||d===95||ne(d)?(e.consume(d),B):v(d)}function v(d){return d===61?(e.consume(d),A):P(d)?(o=v,Y(d)):D(d)?(e.consume(d),v):O(d)}function A(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,$):P(d)?(o=A,Y(d)):D(d)?(e.consume(d),A):(e.consume(d),T)}function $(d){return d===i?(e.consume(d),i=void 0,C):d===null?t(d):P(d)?(o=$,Y(d)):(e.consume(d),$)}function T(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||J(d)?O(d):(e.consume(d),T)}function C(d){return d===47||d===62||J(d)?O(d):t(d)}function M(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function Y(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),re}function re(d){return D(d)?V(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):ce(d)}function ce(d){return e.enter("htmlTextData"),o(d)}}const Ln={name:"labelEnd",resolveAll:Yi,resolveTo:Qi,tokenize:Xi},qi={tokenize:Gi},Vi={tokenize:Ji},Wi={tokenize:Ki};function Yi(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&se(e,0,e.length,t),e}function Qi(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=te(a,e.slice(l+1,l+r+3)),a=te(a,[["enter",c,n]]),a=te(a,Pn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=te(a,[["exit",c,n],e[o-2],e[o-1],["exit",u,n]]),a=te(a,e.slice(o+1)),a=te(a,[["exit",s,n]]),se(e,l,e.length,a),e}function Xi(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(p){return l?l._inactive?f(p):(o=r.parser.defined.includes(ve(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):t(p)}function s(p){return p===40?e.attempt(qi,c,o?c:f)(p):p===91?e.attempt(Vi,c,o?u:f)(p):o?c(p):f(p)}function u(p){return e.attempt(Wi,c,f)(p)}function c(p){return n(p)}function f(p){return l._balanced=!0,t(p)}}function Gi(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return J(f)?Me(e,l)(f):l(f)}function l(f){return f===41?c(f):Ut(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return J(f)?Me(e,s)(f):c(f)}function a(f){return t(f)}function s(f){return f===34||f===39||f===40?qt(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return J(f)?Me(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function Ji(e,n,t){const r=this;return i;function i(a){return $t.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Ki(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Zi={name:"labelStartImage",resolveAll:Ln.resolveAll,tokenize:el};function el(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const nl={name:"labelStartLink",resolveAll:Ln.resolveAll,tokenize:tl};function tl(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const rn={name:"lineEnding",tokenize:rl};function rl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),V(e,n,"linePrefix")}}const Qe={name:"thematicBreak",tokenize:il};function il(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||P(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),D(u)?V(e,a,"whitespace")(u):a(u))}}const G={continuation:{tokenize:ul},exit:cl,name:"list",tokenize:al},ll={partial:!0,tokenize:fl},ol={partial:!0,tokenize:sl};function al(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(h){const b=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:gn(h)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Qe,t,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return gn(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):t(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ze,r.interrupt?t:c,e.attempt(ll,p,f))}function c(h){return r.containerState.initialBlankLine=!0,l++,p(h)}function f(h){return D(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function ul(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ze,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,V(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!D(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ol,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,V(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function sl(e,n,t){const r=this;return V(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function cl(e){e.exit(this.containerState.type)}function fl(e,n,t){const r=this;return V(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!D(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const it={name:"setextUnderline",resolveTo:hl,tokenize:pl};function hl(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function pl(e,n,t){const r=this;let i;return l;function l(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),D(u)?V(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||P(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const dl={tokenize:ml};function ml(e){const n=this,t=e.attempt(Ze,r,e.attempt(this.parser.constructs.flowInitial,i,V(e,e.attempt(this.parser.constructs.flow,i,e.attempt(bi,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const gl={resolveAll:Wt()},yl=Vt("string"),xl=Vt("text");function Vt(e){return{resolveAll:Wt(e==="text"?kl:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(c){return u(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),s}function s(c){return u(c)?(t.exit("data"),l(c)):(t.consume(c),s)}function u(c){if(c===null)return!0;const f=i[c];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Wt(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function kl(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const bl={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:Mt},wl={91:Ii},Sl={[-2]:tn,[-1]:tn,32:tn},Cl={35:zi,42:Qe,45:[it,Qe],60:Di,61:it,95:Qe,96:tt,126:tt},El={38:jt,92:Nt},Il={[-5]:rn,[-4]:rn,[-3]:rn,33:Zi,38:jt,42:yn,60:[ni,Ui],91:nl,92:[Pi,Nt],93:Ln,95:yn,96:di},Al={null:[yn,gl]},vl={null:[42,95]},Tl={null:[]},Pl=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:vl,contentInitial:wl,disable:Tl,document:bl,flow:Cl,flowInitial:Sl,insideSpan:Al,string:El,text:Il},Symbol.toStringTag,{value:"Module"}));function Ll(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const s={attempt:R(H),check:R(y),consume:L,enter:E,exit:N,interrupt:R(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:b,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let c=n.tokenize.call(u,s);return n.resolveAll&&l.push(n),u;function f(v){return o=te(o,v),I(),o[o.length-1]!==null?[]:(U(n,0),u.events=Pn(l,u.events,u),u.events)}function p(v,A){return _l(h(v),A)}function h(v){return zl(o,v)}function b(){const{_bufferIndex:v,_index:A,line:$,column:T,offset:C}=r;return{_bufferIndex:v,_index:A,line:$,column:T,offset:C}}function S(v){i[v.line]=v.column,B()}function I(){let v;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(v=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===v&&r._bufferIndex<A.length;)x(A.charCodeAt(r._bufferIndex));else x(A)}}function x(v){c=c(v)}function L(v){P(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,B()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=v}function E(v,A){const $=A||{};return $.type=v,$.start=b(),u.events.push(["enter",$,u]),a.push($),$}function N(v){const A=a.pop();return A.end=b(),u.events.push(["exit",A,u]),A}function H(v,A){U(v,A.from)}function y(v,A){A.restore()}function R(v,A){return $;function $(T,C,M){let Y,re,ce,d;return Array.isArray(T)?fe(T):"tokenize"in T?fe([T]):ie(T);function ie(Q){return ze;function ze(de){const Se=de!==null&&Q[de],Ce=de!==null&&Q.null,qe=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return fe(qe)(de)}}function fe(Q){return Y=Q,re=0,Q.length===0?M:m(Q[re])}function m(Q){return ze;function ze(de){return d=O(),ce=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?xe():Q.tokenize.call(A?Object.assign(Object.create(u),A):u,s,le,xe)(de)}}function le(Q){return v(ce,d),C}function xe(Q){return d.restore(),++re<Y.length?m(Y[re]):M}}}function U(v,A){v.resolveAll&&!l.includes(v)&&l.push(v),v.resolve&&se(u.events,A,u.events.length-A,v.resolve(u.events.slice(A),u)),v.resolveTo&&(u.events=v.resolveTo(u.events,u))}function O(){const v=b(),A=u.previous,$=u.currentConstruct,T=u.events.length,C=Array.from(a);return{from:T,restore:M};function M(){r=v,u.previous=A,u.currentConstruct=$,u.events.length=T,a=C,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function zl(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function _l(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
2
2
  `;break}case-3:{o=`\r
3
3
  `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Fl(e){const r={constructs:jr([Pl,...(e||{}).extensions||[]]),content:i(Qr),defined:[],document:i(Gr),flow:i(dl),lazy:{},string:i(yl),text:i(xl)};return r;function i(l){return o;function o(a){return Ll(r,l,a)}}}function Rl(e){for(;!Ht(e););return e}const lt=/[\0\t\n\r]/g;function Dl(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const s=[];let u,c,f,p,h;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(lt.lastIndex=f,u=lt.exec(l),p=u&&u.index!==void 0?u.index:l.length,h=l.charCodeAt(p),!u){n=l.slice(f);break}if(h===10&&f===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),f<p&&(s.push(l.slice(f,p)),e+=p-f),h){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const Ol=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Yt(e){return e.replace(Ol,Bl)}function Bl(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Bt(t.slice(l?2:1),l?16:10)}return Tn(t)||e}function Ne(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ot(e.position):"start"in e||"end"in e?ot(e):"line"in e||"column"in e?xn(e):""}function xn(e){return at(e&&e.line)+":"+at(e&&e.column)}function ot(e){return xn(e&&e.start)+"-"+xn(e&&e.end)}function at(e){return e&&typeof e=="number"?e:1}const Qt={}.hasOwnProperty;function Ml(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Nl(t)(Rl(Fl(t).document().write(Dl()(e,n,!0))))}function Nl(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Qn),autolinkProtocol:O,autolinkEmail:O,atxHeading:l(Vn),blockQuote:l(Ce),characterEscape:O,characterReference:O,codeFenced:l(qe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(qe,o),codeText:l(Pr,o),codeTextData:O,data:O,codeFlowValue:O,definition:l(Lr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(zr),hardBreakEscape:l(Wn),hardBreakTrailing:l(Wn),htmlFlow:l(Yn,o),htmlFlowData:O,htmlText:l(Yn,o),htmlTextData:O,image:l(_r),label:o,link:l(Qn),listItem:l(Fr),listItemValue:p,listOrdered:l(Xn,f),listUnordered:l(Xn),paragraph:l(Rr),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Vn),strong:l(Dr),thematicBreak:l(Br)},exit:{atxHeading:s(),atxHeadingSequence:H,autolink:s(),autolinkEmail:Se,autolinkProtocol:de,blockQuote:s(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:Q,characterReference:ze,codeFenced:s(I),codeFencedFence:S,codeFencedFenceInfo:h,codeFencedFenceMeta:b,codeFlowValue:B,codeIndented:s(x),codeText:s(C),codeTextData:B,data:B,definition:s(),definitionDestinationString:N,definitionLabelString:L,definitionTitleString:E,emphasis:s(),hardBreakEscape:s(A),hardBreakTrailing:s(A),htmlFlow:s($),htmlFlowData:B,htmlText:s(T),htmlTextData:B,image:s(Y),label:ce,labelText:re,lineEnding:v,link:s(M),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:le,resourceDestinationString:d,resourceTitleString:ie,resource:fe,setextHeading:s(U),setextHeadingLineSequence:R,setextHeadingText:y,strong:s(),thematicBreak:s()}};Xt(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let w={type:"root",children:[]};const z={stack:[w],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:c,data:t},F=[];let j=-1;for(;++j<g.length;)if(g[j][1].type==="listOrdered"||g[j][1].type==="listUnordered")if(g[j][0]==="enter")F.push(j);else{const oe=F.pop();j=i(g,oe,j)}for(j=-1;++j<g.length;){const oe=n[g[j][0]];Qt.call(oe,g[j][1].type)&&oe[g[j][1].type].call(Object.assign({sliceSerialize:g[j][2].sliceSerialize},z),g[j][1])}if(z.tokenStack.length>0){const oe=z.tokenStack[z.tokenStack.length-1];(oe[1]||ut).call(z,void 0,oe[0])}for(w.position={start:me(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:me(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},j=-1;++j<n.transforms.length;)w=n.transforms[j](w)||w;return w}function i(g,w,z){let F=w-1,j=-1,oe=!1,ke,he,_e,Fe;for(;++F<=z;){const Z=g[F];switch(Z[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Z[0]==="enter"?j++:j--,Fe=void 0;break}case"lineEndingBlank":{Z[0]==="enter"&&(ke&&!Fe&&!j&&!_e&&(_e=F),Fe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fe=void 0}if(!j&&Z[0]==="enter"&&Z[1].type==="listItemPrefix"||j===-1&&Z[0]==="exit"&&(Z[1].type==="listUnordered"||Z[1].type==="listOrdered")){if(ke){let Ee=F;for(he=void 0;Ee--;){const pe=g[Ee];if(pe[1].type==="lineEnding"||pe[1].type==="lineEndingBlank"){if(pe[0]==="exit")continue;he&&(g[he][1].type="lineEndingBlank",oe=!0),pe[1].type="lineEnding",he=Ee}else if(!(pe[1].type==="linePrefix"||pe[1].type==="blockQuotePrefix"||pe[1].type==="blockQuotePrefixWhitespace"||pe[1].type==="blockQuoteMarker"||pe[1].type==="listItemIndent"))break}_e&&(!he||_e<he)&&(ke._spread=!0),ke.end=Object.assign({},he?g[he][1].start:Z[1].end),g.splice(he||F,0,["exit",ke,Z[2]]),F++,z++}if(Z[1].type==="listItemPrefix"){const Ee={type:"listItem",_spread:!1,start:Object.assign({},Z[1].start),end:void 0};ke=Ee,g.splice(F,0,["enter",Ee,Z[2]]),F++,z++,_e=void 0,Fe=!0}}}return g[w][1]._spread=oe,z}function l(g,w){return z;function z(F){a.call(this,g(F),F),w&&w.call(this,F)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,w,z){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([w,z||void 0]),g.position={start:me(w.start),end:void 0}}function s(g){return w;function w(z){g&&g.call(this,z),u.call(this,z)}}function u(g,w){const z=this.stack.pop(),F=this.tokenStack.pop();if(F)F[0].type!==g.type&&(w?w.call(this,g,F[0]):(F[1]||ut).call(this,g,F[0]));else throw new Error("Cannot close `"+g.type+"` ("+Ne({start:g.start,end:g.end})+"): it’s not open");z.position.end=me(g.end)}function c(){return vn(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(g){if(this.data.expectingFirstListItemValue){const w=this.stack[this.stack.length-2];w.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function h(){const g=this.resume(),w=this.stack[this.stack.length-1];w.lang=g}function b(){const g=this.resume(),w=this.stack[this.stack.length-1];w.meta=g}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/(\r?\n|\r)$/g,"")}function L(g){const w=this.resume(),z=this.stack[this.stack.length-1];z.label=w,z.identifier=ve(this.sliceSerialize(g)).toLowerCase()}function E(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function N(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function H(g){const w=this.stack[this.stack.length-1];if(!w.depth){const z=this.sliceSerialize(g).length;w.depth=z}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function R(g){const w=this.stack[this.stack.length-1];w.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function O(g){const z=this.stack[this.stack.length-1].children;let F=z[z.length-1];(!F||F.type!=="text")&&(F=Or(),F.position={start:me(g.start),end:void 0},z.push(F)),this.stack.push(F)}function B(g){const w=this.stack.pop();w.value+=this.sliceSerialize(g),w.position.end=me(g.end)}function v(g){const w=this.stack[this.stack.length-1];if(this.data.atHardBreak){const z=w.children[w.children.length-1];z.position.end=me(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(w.type)&&(O.call(this,g),B.call(this,g))}function A(){this.data.atHardBreak=!0}function $(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function T(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function C(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function M(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function Y(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function re(g){const w=this.sliceSerialize(g),z=this.stack[this.stack.length-2];z.label=Yt(w),z.identifier=ve(w).toLowerCase()}function ce(){const g=this.stack[this.stack.length-1],w=this.resume(),z=this.stack[this.stack.length-1];if(this.data.inReference=!0,z.type==="link"){const F=g.children;z.children=F}else z.alt=w}function d(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function ie(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function fe(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function le(g){const w=this.resume(),z=this.stack[this.stack.length-1];z.label=w,z.identifier=ve(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function xe(g){this.data.characterReferenceType=g.type}function Q(g){const w=this.sliceSerialize(g),z=this.data.characterReferenceType;let F;z?(F=Bt(w,z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):F=Tn(w);const j=this.stack[this.stack.length-1];j.value+=F}function ze(g){const w=this.stack.pop();w.position.end=me(g.end)}function de(g){B.call(this,g);const w=this.stack[this.stack.length-1];w.url=this.sliceSerialize(g)}function Se(g){B.call(this,g);const w=this.stack[this.stack.length-1];w.url="mailto:"+this.sliceSerialize(g)}function Ce(){return{type:"blockquote",children:[]}}function qe(){return{type:"code",lang:null,meta:null,value:""}}function Pr(){return{type:"inlineCode",value:""}}function Lr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function zr(){return{type:"emphasis",children:[]}}function Vn(){return{type:"heading",depth:0,children:[]}}function Wn(){return{type:"break"}}function Yn(){return{type:"html",value:""}}function _r(){return{type:"image",title:null,url:"",alt:null}}function Qn(){return{type:"link",title:null,url:"",children:[]}}function Xn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function Fr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Rr(){return{type:"paragraph",children:[]}}function Dr(){return{type:"strong",children:[]}}function Or(){return{type:"text",value:""}}function Br(){return{type:"thematicBreak"}}}function me(e){return{line:e.line,column:e.column,offset:e.offset}}function Xt(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Xt(e,r):jl(e,r)}}function jl(e,n){let t;for(t in n)if(Qt.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function ut(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ne({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ne({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ne({start:n.start,end:n.end})+") is still open")}function Hl(e){const n=this;n.parser=t;function t(r){return Ml(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}const st={}.hasOwnProperty;function Ul(e,n){const t=n||{};function r(i,...l){let o=r.invalid;const a=r.handlers;if(i&&st.call(i,e)){const s=String(i[e]);o=st.call(a,s)?a[s]:r.unknown}if(o)return o.call(this,i,...l)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const $l={}.hasOwnProperty;function Gt(e,n){let t=-1,r;if(n.extensions)for(;++t<n.extensions.length;)Gt(e,n.extensions[t]);for(r in n)if($l.call(n,r))switch(r){case"extensions":break;case"unsafe":{ct(e[r],n[r]);break}case"join":{ct(e[r],n[r]);break}case"handlers":{ql(e[r],n[r]);break}default:e.options[r]=n[r]}return e}function ct(e,n){n&&e.push(...n)}function ql(e,n){n&&Object.assign(e,n)}function Vl(e,n,t,r){const i=t.enter("blockquote"),l=t.createTracker(r);l.move("> "),l.shift(2);const o=t.indentLines(t.containerFlow(e,l.current()),Wl);return i(),o}function Wl(e,n,t){return">"+(t?"":" ")+e}function Jt(e,n){return ft(e,n.inConstruct,!0)&&!ft(e,n.notInConstruct,!1)}function ft(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function ht(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
4
4
  `&&Jt(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
@@ -0,0 +1 @@
1
+ import{u as o,L as t}from"./client-BSFjekJY.js";import"./index-Bojr-xLv.js";import"./index-OFfnl8sH.js";import"./Icon-D30p-2dq.js";import"./collapsible-B2rvGry7.js";import"./index-B-5ouVG_.js";import"./index-xXa72sZS.js";import"./link-item-BlYkot48.js";import"./i18n-V4QzeUbV.js";import"./index-Bonlu0LX.js";import"./search-D1WUBd3N.js";import"./merge-refs-BIez66Kl.js";import"./index-DHENdpwd.js";const B={LayoutBody:t,useDocsLayout:o};export{B as export_430db65dc2ed};
@@ -1 +1 @@
1
- import{u as g,I as O}from"./i18n-CfTR60fN.js";import{t as u,b as T}from"./index-C4ekDDoc.js";import{j as e,r as d,a as k}from"./index-DAcpNNU5.js";import{a as I}from"./index-BLdweJQi.js";import{t as E,u as L,c as B,d as M,T as F,e as _,f as V,C as $,S as A,V as G,M as S}from"./page-actions-CbGyuI_l.js";import{e as U,u as j,c as H,d as R,C as q,i as z,f as J,g as K}from"./collapsible-lnBmMjCH.js";import{A as Q,m as p}from"./proxy-BN25oqgy.js";import{L as v}from"./merge-refs-DGylEIna.js";import{C as b}from"./chevron-right-BKmSaGje.js";import"./Icon-COiEluKG.js";import"./index-DPwGee8S.js";import"./use-copy-button-U0RnQ-Sq.js";const C=d.createContext(null),{TOCProvider:X}=E;function Y({container:t,trigger:s,content:r,header:o,footer:n,style:c="normal"}){const a=L(),{TOCItems:i,TOCEmpty:l,TOCItem:m}=c==="clerk"?B:M;return e.jsxs(Z,{...t,children:[e.jsxs(se,{...r,children:[o,e.jsx(F,{children:e.jsxs(i,{children:[a.length===0&&e.jsx(l,{}),a.map(x=>e.jsx(m,{item:x},x.url))]})}),n]}),e.jsx(ee,{...s})]})}function Z(t){const[s,r]=d.useState(null);if(d.useEffect(()=>{const o=document.getElementById("flux-layout-slot");o&&r(o)},[]),!!s)return k.createPortal(e.jsx(W,{...t}),s)}function W({className:t,children:s,...r}){const o=d.useRef(null),[n,c]=d.useState(!1),a=d.useEffectEvent(i=>{n&&o.current&&!o.current.contains(i.target)&&c(!1)});return d.useEffect(()=>(window.addEventListener("click",a),()=>{window.removeEventListener("click",a)}),[]),e.jsx(C,{value:d.useMemo(()=>({open:n,setOpen:c}),[c,n]),children:e.jsx(q,{open:n,onOpenChange:c,"data-toc-popover":"",className:u("relative h-9 animate-fd-fade-in",t),...r,children:e.jsx("header",{ref:o,className:u("absolute w-full bottom-0 border rounded-xl transition-colors bg-fd-secondary text-fd-secondary-foreground backdrop-blur-sm",n&&"shadow-lg bg-fd-popover/80 text-fd-popover-foreground"),children:s})})})}function ee({className:t,...s}){const{text:r}=g(),{open:o}=d.use(C),n=_(),c=n.findIndex(l=>l.active),a=j().at(-1),i={transition:{duration:.1},initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:u(o&&"text-fd-popover-foreground")};return e.jsxs(H,{className:u("flex w-full h-8.5 items-center text-sm text-fd-muted-foreground gap-2.5 px-2 text-start focus-visible:outline-none [&_svg]:size-4",t),"data-toc-popover-trigger":"",...s,children:[e.jsx(re,{value:(c+1)/Math.max(1,n.length),max:1,className:u("shrink-0",o&&"text-fd-primary")}),e.jsx(Q,{mode:"wait",children:n[c]&&!o?e.jsx(p.span,{...i,children:n[c].original.title},c):a?e.jsx(p.span,{...i,children:a.name},a.$id??":pathId"):e.jsx(p.span,{...i,children:r.toc},":toc")}),e.jsx(R,{className:u("ms-auto shrink-0 transition-transform",o&&"rotate-180")})]})}function te(t,s,r){return t<s?s:t>r?r:t}function re({value:t,strokeWidth:s=2,size:r=24,min:o=0,max:n=100,...c}){const a=te(t,o,n),i=(r-s)/2,l=2*Math.PI*i,m=a/n*l,x={cx:r/2,cy:r/2,r:i,fill:"none",strokeWidth:s};return e.jsxs("svg",{role:"progressbar",viewBox:`0 0 ${r} ${r}`,"aria-valuenow":a,"aria-valuemin":o,"aria-valuemax":n,...c,children:[e.jsx("circle",{...x,className:"stroke-current/25"}),e.jsx("circle",{...x,stroke:"currentColor",strokeDasharray:l,strokeDashoffset:l-m,strokeLinecap:"round",transform:`rotate(-90 ${r/2} ${r/2})`,className:"transition-all"})]})}function se(t){return e.jsx(U,{"data-toc-popover-content":"",...t,children:e.jsx("div",{className:"flex flex-col px-2 max-h-[50vh]",children:t.children})})}function P({items:t,children:s,className:r,...o}){const n=V(),c=I(),{previous:a,next:i}=d.useMemo(()=>{if(t)return t;const l=n.findIndex(m=>z(m.url,c));return l===-1?{}:{previous:n[l-1],next:n[l+1]}},[n,t,c]);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:u("@container grid gap-4",a&&i?"grid-cols-2":"grid-cols-1",r),...o,children:[a&&e.jsx(h,{item:a,index:0}),i&&e.jsx(h,{item:i,index:1})]}),s]})}function h({item:t,index:s}){const{text:r}=g(),o=s===0?$:b;return e.jsxs(v,{href:t.url,className:u("flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full",s===1&&"text-end"),children:[e.jsxs("div",{className:u("inline-flex items-center gap-1.5 font-medium",s===1&&"flex-row-reverse"),children:[e.jsx(o,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),e.jsx("p",{children:t.name})]}),e.jsx("p",{className:"text-fd-muted-foreground truncate",children:t.description??(s===0?r.previousPage:r.nextPage)})]})}function N({includeRoot:t,includeSeparator:s,includePage:r,...o}){const n=j(),{root:c}=J(),a=d.useMemo(()=>K(c,n,{includePage:r,includeSeparator:s,includeRoot:t}),[r,t,s,n,c]);return a.length===0?null:e.jsx("div",{...o,className:u("flex items-center gap-1.5 text-sm text-fd-muted-foreground",o.className),children:a.map((i,l)=>{const m=u("truncate",l===a.length-1&&"text-fd-primary font-medium");return e.jsxs(d.Fragment,{children:[l!==0&&e.jsx(b,{className:"size-3.5 shrink-0"}),i.url?e.jsx(v,{href:i.url,className:u(m,"transition-opacity hover:opacity-80"),children:i.name}):e.jsx("span",{className:m,children:i.name})]},l)})})}function ne(t){const{props:{full:s}}=w();return e.jsx("article",{id:"nd-page","data-full":s,...t,className:u("flex flex-col w-full max-w-[900px] mx-auto [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14",s?"max-w-[1200px]":"xl:layout:[--fd-toc-width:268px]",t.className),children:t.children})}const y=d.createContext(null);function w(){const t=d.use(y);if(!t)throw new Error("Please use page components under <DocsPage /> (`fumadocs-ui/layouts/flux/page`).");return t}function oe({tableOfContent:{enabled:t,single:s,...r}={},breadcrumb:{enabled:o=!0,...n}={},footer:{enabled:c=!0,...a}={},full:i=!1,toc:l=[],slots:m={},children:x,...D}){t??=!!(l.length>0||r.header||r.footer);const f={breadcrumb:m.breadcrumb??N,footer:m.footer??P,container:m.container??ne,toc:m.toc??{provider:X,main:Y}};return e.jsx(y,{value:{props:{full:i},slots:f},children:e.jsxs(f.toc.provider,{single:s,toc:t?l:[],children:[t&&(r.component??e.jsx(f.toc.main,{...r})),e.jsxs(f.container,{...D,children:[o&&(n.component??e.jsx(f.breadcrumb,{...n})),x,c&&(a.component??e.jsx(f.footer,{...a}))]})]})})}function ae(t){return e.jsx("a",{target:"_blank",rel:"noreferrer noopener",...t,className:u(T({color:"secondary",size:"sm"}),"gap-1.5 not-prose",t.className),children:t.children??e.jsxs(e.Fragment,{children:[e.jsx(A,{className:"size-3.5"}),e.jsx(O,{label:"editOnGithub"})]})})}function ce({children:t,className:s,...r}){return e.jsx("div",{...r,className:u("prose flex-1",s),children:t})}function ie({children:t,className:s,...r}){return t===void 0?null:e.jsx("p",{...r,className:u("mb-8 text-lg text-fd-muted-foreground",s),children:t})}function le({children:t,className:s,...r}){return e.jsx("h1",{...r,className:u("text-[1.75em] font-semibold",s),children:t})}function ue({date:t,...s}){const{text:r}=g(),[o,n]=d.useState("");return d.useEffect(()=>{n(t.toLocaleDateString())},[t]),e.jsxs("p",{...s,className:u("text-sm text-fd-muted-foreground",s.className),children:[r.lastUpdate," ",o]})}const Ne={DocsBody:ce,DocsDescription:ie,DocsPage:oe,DocsTitle:le,EditOnGitHub:ae,MarkdownCopyButton:S,PageBreadcrumb:N,PageFooter:P,PageLastUpdate:ue,ViewOptionsPopover:G,useDocsPage:w};export{Ne as export_581e97026e7b};
1
+ import{u as g,I as O}from"./i18n-V4QzeUbV.js";import{t as u,b as T}from"./index-Bojr-xLv.js";import{j as e,r as d,a as k}from"./index-OFfnl8sH.js";import{a as I}from"./index-B-5ouVG_.js";import{t as E,u as L,c as B,d as M,T as F,e as _,f as V,C as $,S as A,V as G,M as S}from"./page-actions--VStSULV.js";import{e as U,u as j,d as H,C as R,c as q,i as z,f as J,g as K}from"./collapsible-B2rvGry7.js";import{A as Q,m as p}from"./proxy-CWSxKwWP.js";import{L as v}from"./merge-refs-BIez66Kl.js";import{C as b}from"./chevron-right-DmP6Xa1g.js";import"./Icon-D30p-2dq.js";import"./index-xXa72sZS.js";import"./use-copy-button-BO3GBlwZ.js";const C=d.createContext(null),{TOCProvider:X}=E;function Y({container:t,trigger:s,content:r,header:o,footer:n,style:c="normal"}){const a=L(),{TOCItems:i,TOCEmpty:l,TOCItem:m}=c==="clerk"?B:M;return e.jsxs(Z,{...t,children:[e.jsxs(se,{...r,children:[o,e.jsx(F,{children:e.jsxs(i,{children:[a.length===0&&e.jsx(l,{}),a.map(x=>e.jsx(m,{item:x},x.url))]})}),n]}),e.jsx(ee,{...s})]})}function Z(t){const[s,r]=d.useState(null);if(d.useEffect(()=>{const o=document.getElementById("flux-layout-slot");o&&r(o)},[]),!!s)return k.createPortal(e.jsx(W,{...t}),s)}function W({className:t,children:s,...r}){const o=d.useRef(null),[n,c]=d.useState(!1),a=d.useEffectEvent(i=>{n&&o.current&&!o.current.contains(i.target)&&c(!1)});return d.useEffect(()=>(window.addEventListener("click",a),()=>{window.removeEventListener("click",a)}),[]),e.jsx(C,{value:d.useMemo(()=>({open:n,setOpen:c}),[c,n]),children:e.jsx(q,{open:n,onOpenChange:c,"data-toc-popover":"",className:u("relative h-9 animate-fd-fade-in",t),...r,children:e.jsx("header",{ref:o,className:u("absolute w-full bottom-0 border rounded-xl transition-colors bg-fd-secondary text-fd-secondary-foreground backdrop-blur-sm",n&&"shadow-lg bg-fd-popover/80 text-fd-popover-foreground"),children:s})})})}function ee({className:t,...s}){const{text:r}=g(),{open:o}=d.use(C),n=_(),c=n.findIndex(l=>l.active),a=j().at(-1),i={transition:{duration:.1},initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:u(o&&"text-fd-popover-foreground")};return e.jsxs(H,{className:u("flex w-full h-8.5 items-center text-sm text-fd-muted-foreground gap-2.5 px-2 text-start focus-visible:outline-none [&_svg]:size-4",t),"data-toc-popover-trigger":"",...s,children:[e.jsx(re,{value:(c+1)/Math.max(1,n.length),max:1,className:u("shrink-0",o&&"text-fd-primary")}),e.jsx(Q,{mode:"wait",children:n[c]&&!o?e.jsx(p.span,{...i,children:n[c].original.title},c):a?e.jsx(p.span,{...i,children:a.name},a.$id??":pathId"):e.jsx(p.span,{...i,children:r.toc},":toc")}),e.jsx(R,{className:u("ms-auto shrink-0 transition-transform",o&&"rotate-180")})]})}function te(t,s,r){return t<s?s:t>r?r:t}function re({value:t,strokeWidth:s=2,size:r=24,min:o=0,max:n=100,...c}){const a=te(t,o,n),i=(r-s)/2,l=2*Math.PI*i,m=a/n*l,x={cx:r/2,cy:r/2,r:i,fill:"none",strokeWidth:s};return e.jsxs("svg",{role:"progressbar",viewBox:`0 0 ${r} ${r}`,"aria-valuenow":a,"aria-valuemin":o,"aria-valuemax":n,...c,children:[e.jsx("circle",{...x,className:"stroke-current/25"}),e.jsx("circle",{...x,stroke:"currentColor",strokeDasharray:l,strokeDashoffset:l-m,strokeLinecap:"round",transform:`rotate(-90 ${r/2} ${r/2})`,className:"transition-all"})]})}function se(t){return e.jsx(U,{"data-toc-popover-content":"",...t,children:e.jsx("div",{className:"flex flex-col px-2 max-h-[50vh]",children:t.children})})}function P({items:t,children:s,className:r,...o}){const n=V(),c=I(),{previous:a,next:i}=d.useMemo(()=>{if(t)return t;const l=n.findIndex(m=>z(m.url,c));return l===-1?{}:{previous:n[l-1],next:n[l+1]}},[n,t,c]);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:u("@container grid gap-4",a&&i?"grid-cols-2":"grid-cols-1",r),...o,children:[a&&e.jsx(h,{item:a,index:0}),i&&e.jsx(h,{item:i,index:1})]}),s]})}function h({item:t,index:s}){const{text:r}=g(),o=s===0?$:b;return e.jsxs(v,{href:t.url,className:u("flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full",s===1&&"text-end"),children:[e.jsxs("div",{className:u("inline-flex items-center gap-1.5 font-medium",s===1&&"flex-row-reverse"),children:[e.jsx(o,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),e.jsx("p",{children:t.name})]}),e.jsx("p",{className:"text-fd-muted-foreground truncate",children:t.description??(s===0?r.previousPage:r.nextPage)})]})}function N({includeRoot:t,includeSeparator:s,includePage:r,...o}){const n=j(),{root:c}=J(),a=d.useMemo(()=>K(c,n,{includePage:r,includeSeparator:s,includeRoot:t}),[r,t,s,n,c]);return a.length===0?null:e.jsx("div",{...o,className:u("flex items-center gap-1.5 text-sm text-fd-muted-foreground",o.className),children:a.map((i,l)=>{const m=u("truncate",l===a.length-1&&"text-fd-primary font-medium");return e.jsxs(d.Fragment,{children:[l!==0&&e.jsx(b,{className:"size-3.5 shrink-0"}),i.url?e.jsx(v,{href:i.url,className:u(m,"transition-opacity hover:opacity-80"),children:i.name}):e.jsx("span",{className:m,children:i.name})]},l)})})}function ne(t){const{props:{full:s}}=w();return e.jsx("article",{id:"nd-page","data-full":s,...t,className:u("flex flex-col w-full max-w-[900px] mx-auto [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14",s?"max-w-[1200px]":"xl:layout:[--fd-toc-width:268px]",t.className),children:t.children})}const y=d.createContext(null);function w(){const t=d.use(y);if(!t)throw new Error("Please use page components under <DocsPage /> (`fumadocs-ui/layouts/flux/page`).");return t}function oe({tableOfContent:{enabled:t,single:s,...r}={},breadcrumb:{enabled:o=!0,...n}={},footer:{enabled:c=!0,...a}={},full:i=!1,toc:l=[],slots:m={},children:x,...D}){t??=!!(l.length>0||r.header||r.footer);const f={breadcrumb:m.breadcrumb??N,footer:m.footer??P,container:m.container??ne,toc:m.toc??{provider:X,main:Y}};return e.jsx(y,{value:{props:{full:i},slots:f},children:e.jsxs(f.toc.provider,{single:s,toc:t?l:[],children:[t&&(r.component??e.jsx(f.toc.main,{...r})),e.jsxs(f.container,{...D,children:[o&&(n.component??e.jsx(f.breadcrumb,{...n})),x,c&&(a.component??e.jsx(f.footer,{...a}))]})]})})}function ae(t){return e.jsx("a",{target:"_blank",rel:"noreferrer noopener",...t,className:u(T({color:"secondary",size:"sm"}),"gap-1.5 not-prose",t.className),children:t.children??e.jsxs(e.Fragment,{children:[e.jsx(A,{className:"size-3.5"}),e.jsx(O,{label:"editOnGithub"})]})})}function ce({children:t,className:s,...r}){return e.jsx("div",{...r,className:u("prose flex-1",s),children:t})}function ie({children:t,className:s,...r}){return t===void 0?null:e.jsx("p",{...r,className:u("mb-8 text-lg text-fd-muted-foreground",s),children:t})}function le({children:t,className:s,...r}){return e.jsx("h1",{...r,className:u("text-[1.75em] font-semibold",s),children:t})}function ue({date:t,...s}){const{text:r}=g(),[o,n]=d.useState("");return d.useEffect(()=>{n(t.toLocaleDateString())},[t]),e.jsxs("p",{...s,className:u("text-sm text-fd-muted-foreground",s.className),children:[r.lastUpdate," ",o]})}const Ne={DocsBody:ce,DocsDescription:ie,DocsPage:oe,DocsTitle:le,EditOnGitHub:ae,MarkdownCopyButton:S,PageBreadcrumb:N,PageFooter:P,PageLastUpdate:ue,ViewOptionsPopover:G,useDocsPage:w};export{Ne as export_581e97026e7b};
@@ -1 +1 @@
1
- import{r as p,j as D,R as Ee,a as Ye}from"./index-DAcpNNU5.js";import{I as Ze,m as qe}from"./Icon-COiEluKG.js";const Ke=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Xe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,r)=>r?r.toUpperCase():o.toLowerCase());const ve=e=>{const t=Xe(e);return t.charAt(0).toUpperCase()+t.slice(1)};const lo=(e,t)=>{const o=p.forwardRef(({className:r,...n},s)=>p.createElement(Ze,{ref:s,iconNode:t,className:qe(`lucide-${Ke(ve(e))}`,`lucide-${e}`,r),...n}));return o.displayName=ve(e),o},Je=(e,t)=>{const o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},Qe=(e,t)=>({classGroupId:e,validator:t}),Ie=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),ee="-",xe=[],et="arbitrary..",tt=e=>{const t=rt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ot(i);const l=i.split(ee),a=l[0]===""&&l.length>1?1:0;return Me(l,a,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const a=r[i],u=o[i];return a?u?Je(u,a):a:u||xe}return o[i]||xe}}},Me=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const n=e[t],s=o.nextPart.get(n);if(s){const u=Me(e,t+1,s);if(u)return u}const i=o.validators;if(i===null)return;const l=t===0?e.join(ee):e.slice(t).join(ee),a=i.length;for(let u=0;u<a;u++){const b=i[u];if(b.validator(l))return b.classGroupId}},ot=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?et+r:void 0})(),rt=e=>{const{theme:t,classGroups:o}=e;return nt(o,t)},nt=(e,t)=>{const o=Ie();for(const r in e){const n=e[r];ce(n,o,r,t)}return o},ce=(e,t,o,r)=>{const n=e.length;for(let s=0;s<n;s++){const i=e[s];st(i,t,o,r)}},st=(e,t,o,r)=>{if(typeof e=="string"){it(e,t,o);return}if(typeof e=="function"){at(e,t,o,r);return}lt(e,t,o,r)},it=(e,t,o)=>{const r=e===""?t:Oe(t,e);r.classGroupId=o},at=(e,t,o,r)=>{if(ct(e)){ce(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Qe(o,e))},lt=(e,t,o,r)=>{const n=Object.entries(e),s=n.length;for(let i=0;i<s;i++){const[l,a]=n[i];ce(a,Oe(t,l),o,r)}},Oe=(e,t)=>{let o=e;const r=t.split(ee),n=r.length;for(let s=0;s<n;s++){const i=r[s];let l=o.nextPart.get(i);l||(l=Ie(),o.nextPart.set(i,l)),o=l}return o},ct=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,dt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null);const n=(s,i)=>{o[s]=i,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(s){let i=o[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return n(s,i),i},set(s,i){s in o?o[s]=i:n(s,i)}}},le="!",we=":",ut=[],ke=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),mt=e=>{const{prefix:t,experimentalParseClassName:o}=e;let r=n=>{const s=[];let i=0,l=0,a=0,u;const b=n.length;for(let k=0;k<b;k++){const x=n[k];if(i===0&&l===0){if(x===we){s.push(n.slice(a,k)),a=k+1;continue}if(x==="/"){u=k;continue}}x==="["?i++:x==="]"?i--:x==="("?l++:x===")"&&l--}const h=s.length===0?n:n.slice(a);let y=h,v=!1;h.endsWith(le)?(y=h.slice(0,-1),v=!0):h.startsWith(le)&&(y=h.slice(1),v=!0);const S=u&&u>a?u-a:void 0;return ke(s,v,y,S)};if(t){const n=t+we,s=r;r=i=>i.startsWith(n)?s(i.slice(n.length)):ke(ut,!1,i,void 0,!0)}if(o){const n=r;r=s=>o({className:s,parseClassName:n})}return r},ft=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{const r=[];let n=[];for(let s=0;s<o.length;s++){const i=o[s],l=i[0]==="[",a=t.has(i);l||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},pt=e=>({cache:dt(e.cacheSize),parseClassName:mt(e),sortModifiers:ft(e),...tt(e)}),bt=/\s+/,gt=(e,t)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=t,i=[],l=e.trim().split(bt);let a="";for(let u=l.length-1;u>=0;u-=1){const b=l[u],{isExternal:h,modifiers:y,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:k}=o(b);if(h){a=b+(a.length>0?" "+a:a);continue}let x=!!k,O=r(x?S.substring(0,k):S);if(!O){if(!x){a=b+(a.length>0?" "+a:a);continue}if(O=r(S),!O){a=b+(a.length>0?" "+a:a);continue}x=!1}const B=y.length===0?"":y.length===1?y[0]:s(y).join(":"),W=v?B+le:B,V=W+O;if(i.indexOf(V)>-1)continue;i.push(V);const G=n(O,x);for(let T=0;T<G.length;++T){const F=G[T];i.push(W+F)}a=b+(a.length>0?" "+a:a)}return a},ht=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=Te(o))&&(n&&(n+=" "),n+=r);return n},Te=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Te(e[r]))&&(o&&(o+=" "),o+=t);return o},yt=(e,...t)=>{let o,r,n,s;const i=a=>{const u=t.reduce((b,h)=>h(b),e());return o=pt(u),r=o.cache.get,n=o.cache.set,s=l,l(a)},l=a=>{const u=r(a);if(u)return u;const b=gt(a,o);return n(a,b),b};return s=i,(...a)=>s(ht(...a))},vt=[],w=e=>{const t=o=>o[e]||vt;return t.isThemeGetter=!0,t},je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ct=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,St=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,At=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>xt.test(e),g=e=>!!e&&!Number.isNaN(Number(e)),I=e=>!!e&&Number.isInteger(Number(e)),ae=e=>e.endsWith("%")&&g(e.slice(0,-1)),P=e=>wt.test(e),Le=()=>!0,Rt=e=>kt.test(e)&&!Ct.test(e),de=()=>!1,zt=e=>St.test(e),Nt=e=>At.test(e),Pt=e=>!c(e)&&!d(e),Et=e=>M(e,$e,de),c=e=>je.test(e),_=e=>M(e,We,Rt),Ce=e=>M(e,Vt,g),It=e=>M(e,Ue,Le),Mt=e=>M(e,Fe,de),Se=e=>M(e,Ve,de),Ot=e=>M(e,Ge,Nt),X=e=>M(e,De,zt),d=e=>_e.test(e),U=e=>L(e,We),Tt=e=>L(e,Fe),Ae=e=>L(e,Ve),jt=e=>L(e,$e),_t=e=>L(e,Ge),J=e=>L(e,De,!0),Lt=e=>L(e,Ue,!0),M=(e,t,o)=>{const r=je.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},L=(e,t,o=!1)=>{const r=_e.exec(e);return r?r[1]?t(r[1]):o:!1},Ve=e=>e==="position"||e==="percentage",Ge=e=>e==="image"||e==="url",$e=e=>e==="length"||e==="size"||e==="bg-size",We=e=>e==="length",Vt=e=>e==="number",Fe=e=>e==="family-name",Ue=e=>e==="number"||e==="weight",De=e=>e==="shadow",Gt=()=>{const e=w("color"),t=w("font"),o=w("text"),r=w("font-weight"),n=w("tracking"),s=w("leading"),i=w("breakpoint"),l=w("container"),a=w("spacing"),u=w("radius"),b=w("shadow"),h=w("inset-shadow"),y=w("text-shadow"),v=w("drop-shadow"),S=w("blur"),k=w("perspective"),x=w("aspect"),O=w("ease"),B=w("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...V(),d,c],T=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],m=()=>[d,c,a],z=()=>[E,"full","auto",...m()],ue=()=>[I,"none","subgrid",d,c],me=()=>["auto",{span:["full",I,d,c]},I,d,c],H=()=>[I,"auto",d,c],fe=()=>["auto","min","max","fr",d,c],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...m()],j=()=>[E,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],re=()=>[E,"screen","full","dvw","lvw","svw","min","max","fit",...m()],ne=()=>[E,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],f=()=>[e,d,c],pe=()=>[...V(),Ae,Se,{position:[d,c]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",jt,Et,{size:[d,c]}],se=()=>[ae,U,_],A=()=>["","none","full",u,d,c],R=()=>["",g,U,_],Y=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[g,ae,Ae,Se],ye=()=>["","none",S,d,c],Z=()=>["none",g,d,c],q=()=>["none",g,d,c],ie=()=>[g,d,c],K=()=>[E,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[Le],container:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[Pt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",g],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",E,c,d,x]}],container:["container"],columns:[{columns:[g,c,d,l]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[I,"auto",d,c]}],basis:[{basis:[E,"full","auto",l,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[g,E,"auto","initial","none",c]}],grow:[{grow:["",g,d,c]}],shrink:[{shrink:["",g,d,c]}],order:[{order:[I,"first","last","none",d,c]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...ne()]}],"min-block-size":[{"min-block":["auto",...ne()]}],"max-block-size":[{"max-block":["none",...ne()]}],w:[{w:[l,"screen",...j()]}],"min-w":[{"min-w":[l,"screen","none",...j()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",o,U,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Lt,It]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ae,c]}],"font-family":[{font:[Tt,Mt,t]}],"font-features":[{"font-features":[c]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,d,c]}],"line-clamp":[{"line-clamp":[g,"none",d,Ce]}],leading:[{leading:[s,...m()]}],"list-image":[{"list-image":["none",d,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:f()}],"text-color":[{text:f()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[g,"from-font","auto",d,_]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[g,"auto",d,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},I,d,c],radial:["",d,c],conic:[I,d,c]},_t,Ot]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:f()}],"border-color-x":[{"border-x":f()}],"border-color-y":[{"border-y":f()}],"border-color-s":[{"border-s":f()}],"border-color-e":[{"border-e":f()}],"border-color-bs":[{"border-bs":f()}],"border-color-be":[{"border-be":f()}],"border-color-t":[{"border-t":f()}],"border-color-r":[{"border-r":f()}],"border-color-b":[{"border-b":f()}],"border-color-l":[{"border-l":f()}],"divide-color":[{divide:f()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[g,d,c]}],"outline-w":[{outline:["",g,U,_]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",b,J,X]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",h,J,X]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[g,_]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",y,J,X]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[g,d,c]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[g]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":f()}],"mask-image-linear-to-color":[{"mask-linear-to":f()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":f()}],"mask-image-t-to-color":[{"mask-t-to":f()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":f()}],"mask-image-r-to-color":[{"mask-r-to":f()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":f()}],"mask-image-b-to-color":[{"mask-b-to":f()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":f()}],"mask-image-l-to-color":[{"mask-l-to":f()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":f()}],"mask-image-x-to-color":[{"mask-x-to":f()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[d,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":f()}],"mask-image-radial-to-color":[{"mask-radial-to":f()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[g]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":f()}],"mask-image-conic-to-color":[{"mask-conic-to":f()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,c]}],filter:[{filter:["","none",d,c]}],blur:[{blur:ye()}],brightness:[{brightness:[g,d,c]}],contrast:[{contrast:[g,d,c]}],"drop-shadow":[{"drop-shadow":["","none",v,J,X]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",g,d,c]}],"hue-rotate":[{"hue-rotate":[g,d,c]}],invert:[{invert:["",g,d,c]}],saturate:[{saturate:[g,d,c]}],sepia:[{sepia:["",g,d,c]}],"backdrop-filter":[{"backdrop-filter":["","none",d,c]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[g,d,c]}],"backdrop-contrast":[{"backdrop-contrast":[g,d,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",g,d,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g,d,c]}],"backdrop-invert":[{"backdrop-invert":["",g,d,c]}],"backdrop-opacity":[{"backdrop-opacity":[g,d,c]}],"backdrop-saturate":[{"backdrop-saturate":[g,d,c]}],"backdrop-sepia":[{"backdrop-sepia":["",g,d,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[g,"initial",d,c]}],ease:[{ease:["linear","initial",O,d,c]}],delay:[{delay:[g,d,c]}],animate:[{animate:["none",B,d,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,d,c]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[d,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:f()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:f()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d,c]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[g,U,_,Ce]}],stroke:[{stroke:["none",...f()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},co=yt(Gt);function Be(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Be(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function $t(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Be(e))&&(r&&(r+=" "),r+=t);return r}const Re=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ze=$t,Wt=(e,t)=>o=>{var r;if(t?.variants==null)return ze(e,o?.class,o?.className);const{variants:n,defaultVariants:s}=t,i=Object.keys(n).map(u=>{const b=o?.[u],h=s?.[u];if(b===null)return null;const y=Re(b)||Re(h);return n[u][y]}),l=o&&Object.entries(o).reduce((u,b)=>{let[h,y]=b;return y===void 0||(u[h]=y),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,b)=>{let{class:h,className:y,...v}=b;return Object.entries(v).every(S=>{let[k,x]=S;return Array.isArray(x)?x.includes({...s,...l}[k]):{...s,...l}[k]===x})?[...u,h,y]:u},[]);return ze(e,i,a,o?.class,o?.className)},Ne={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground",outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},uo=Wt("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring",{variants:{variant:Ne,color:Ne,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}});function mo(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}function fo(e,t){const o=p.createContext(t),r=s=>{const{children:i,...l}=s,a=p.useMemo(()=>l,Object.values(l));return D.jsx(o.Provider,{value:a,children:i})};r.displayName=e+"Provider";function n(s){const i=p.useContext(o);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,n]}function po(e,t=[]){let o=[];function r(s,i){const l=p.createContext(i),a=o.length;o=[...o,i];const u=h=>{const{scope:y,children:v,...S}=h,k=y?.[e]?.[a]||l,x=p.useMemo(()=>S,Object.values(S));return D.jsx(k.Provider,{value:x,children:v})};u.displayName=s+"Provider";function b(h,y){const v=y?.[e]?.[a]||l,S=p.useContext(v);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,b]}const n=()=>{const s=o.map(i=>p.createContext(i));return function(l){const a=l?.[e]||s;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return n.scopeName=e,[r,Ft(n,...t)]}function Ft(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const h=a(s)[`__scope${u}`];return{...l,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}function Pe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function He(...e){return t=>{let o=!1;const r=e.map(n=>{const s=Pe(n,t);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let n=0;n<r.length;n++){const s=r[n];typeof s=="function"?s():Pe(e[n],null)}}}}function Ut(...e){return p.useCallback(He(...e),e)}function Dt(e){const t=Bt(e),o=p.forwardRef((r,n)=>{const{children:s,...i}=r,l=p.Children.toArray(s),a=l.find(Yt);if(a){const u=a.props.children,b=l.map(h=>h===a?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:h);return D.jsx(t,{...i,ref:n,children:p.isValidElement(u)?p.cloneElement(u,void 0,b):null})}return D.jsx(t,{...i,ref:n,children:s})});return o.displayName=`${e}.Slot`,o}function Bt(e){const t=p.forwardRef((o,r)=>{const{children:n,...s}=o;if(p.isValidElement(n)){const i=qt(n),l=Zt(s,n.props);return n.type!==p.Fragment&&(l.ref=r?He(r,i):i),p.cloneElement(n,l)}return p.Children.count(n)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ht=Symbol("radix.slottable");function Yt(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ht}function Zt(e,t){const o={...t};for(const r in t){const n=e[r],s=t[r];/^on[A-Z]/.test(r)?n&&s?o[r]=(...l)=>{const a=s(...l);return n(...l),a}:n&&(o[r]=n):r==="style"?o[r]={...n,...s}:r==="className"&&(o[r]=[n,s].filter(Boolean).join(" "))}return{...e,...o}}function qt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var te=globalThis?.document?p.useLayoutEffect:()=>{},Kt=Ee[" useId ".trim().toString()]||(()=>{}),Xt=0;function bo(e){const[t,o]=p.useState(Kt());return te(()=>{o(r=>r??String(Xt++))},[e]),e||(t?`radix-${t}`:"")}var Jt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],go=Jt.reduce((e,t)=>{const o=Dt(`Primitive.${t}`),r=p.forwardRef((n,s)=>{const{asChild:i,...l}=n,a=i?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ho(e,t){e&&Ye.flushSync(()=>e.dispatchEvent(t))}function yo(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...o)=>t.current?.(...o),[])}var Qt=Ee[" useInsertionEffect ".trim().toString()]||te;function vo({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){const[n,s,i]=eo({defaultProp:t,onChange:o}),l=e!==void 0,a=l?e:n;{const b=p.useRef(e!==void 0);p.useEffect(()=>{const h=b.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=l},[l,r])}const u=p.useCallback(b=>{if(l){const h=to(b)?b(e):b;h!==e&&i.current?.(h)}else s(b)},[l,e,s,i]);return[a,u]}function eo({defaultProp:e,onChange:t}){const[o,r]=p.useState(e),n=p.useRef(o),s=p.useRef(t);return Qt(()=>{s.current=t},[t]),p.useEffect(()=>{n.current!==o&&(s.current?.(o),n.current=o)},[o,n]),[o,r,s]}function to(e){return typeof e=="function"}function oo(e,t){return p.useReducer((o,r)=>t[o][r]??o,e)}var ro=e=>{const{present:t,children:o}=e,r=no(t),n=typeof o=="function"?o({present:r.isPresent}):p.Children.only(o),s=Ut(r.ref,so(n));return typeof o=="function"||r.isPresent?p.cloneElement(n,{ref:s}):null};ro.displayName="Presence";function no(e){const[t,o]=p.useState(),r=p.useRef(null),n=p.useRef(e),s=p.useRef("none"),i=e?"mounted":"unmounted",[l,a]=oo(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=Q(r.current);s.current=l==="mounted"?u:"none"},[l]),te(()=>{const u=r.current,b=n.current;if(b!==e){const y=s.current,v=Q(u);e?a("MOUNT"):v==="none"||u?.display==="none"?a("UNMOUNT"):a(b&&y!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,a]),te(()=>{if(t){let u;const b=t.ownerDocument.defaultView??window,h=v=>{const k=Q(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&k&&(a("ANIMATION_END"),!n.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=b.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},y=v=>{v.target===t&&(s.current=Q(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{b.clearTimeout(u),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,o(u)},[])}}function Q(e){return e?.animationName||"none"}function so(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}export{go as P,Wt as a,uo as b,lo as c,ro as d,po as e,yo as f,te as g,mo as h,vo as i,bo as j,Dt as k,ho as l,fo as m,co as t,Ut as u};
1
+ import{r as p,j as D,R as Ee,a as Ye}from"./index-OFfnl8sH.js";import{I as Ze,m as qe}from"./Icon-D30p-2dq.js";const Ke=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Xe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,r)=>r?r.toUpperCase():o.toLowerCase());const ve=e=>{const t=Xe(e);return t.charAt(0).toUpperCase()+t.slice(1)};const lo=(e,t)=>{const o=p.forwardRef(({className:r,...n},s)=>p.createElement(Ze,{ref:s,iconNode:t,className:qe(`lucide-${Ke(ve(e))}`,`lucide-${e}`,r),...n}));return o.displayName=ve(e),o},Je=(e,t)=>{const o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},Qe=(e,t)=>({classGroupId:e,validator:t}),Ie=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),ee="-",xe=[],et="arbitrary..",tt=e=>{const t=rt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ot(i);const l=i.split(ee),a=l[0]===""&&l.length>1?1:0;return Me(l,a,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const a=r[i],u=o[i];return a?u?Je(u,a):a:u||xe}return o[i]||xe}}},Me=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const n=e[t],s=o.nextPart.get(n);if(s){const u=Me(e,t+1,s);if(u)return u}const i=o.validators;if(i===null)return;const l=t===0?e.join(ee):e.slice(t).join(ee),a=i.length;for(let u=0;u<a;u++){const b=i[u];if(b.validator(l))return b.classGroupId}},ot=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?et+r:void 0})(),rt=e=>{const{theme:t,classGroups:o}=e;return nt(o,t)},nt=(e,t)=>{const o=Ie();for(const r in e){const n=e[r];ce(n,o,r,t)}return o},ce=(e,t,o,r)=>{const n=e.length;for(let s=0;s<n;s++){const i=e[s];st(i,t,o,r)}},st=(e,t,o,r)=>{if(typeof e=="string"){it(e,t,o);return}if(typeof e=="function"){at(e,t,o,r);return}lt(e,t,o,r)},it=(e,t,o)=>{const r=e===""?t:Oe(t,e);r.classGroupId=o},at=(e,t,o,r)=>{if(ct(e)){ce(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Qe(o,e))},lt=(e,t,o,r)=>{const n=Object.entries(e),s=n.length;for(let i=0;i<s;i++){const[l,a]=n[i];ce(a,Oe(t,l),o,r)}},Oe=(e,t)=>{let o=e;const r=t.split(ee),n=r.length;for(let s=0;s<n;s++){const i=r[s];let l=o.nextPart.get(i);l||(l=Ie(),o.nextPart.set(i,l)),o=l}return o},ct=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,dt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null);const n=(s,i)=>{o[s]=i,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(s){let i=o[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return n(s,i),i},set(s,i){s in o?o[s]=i:n(s,i)}}},le="!",we=":",ut=[],ke=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),mt=e=>{const{prefix:t,experimentalParseClassName:o}=e;let r=n=>{const s=[];let i=0,l=0,a=0,u;const b=n.length;for(let k=0;k<b;k++){const x=n[k];if(i===0&&l===0){if(x===we){s.push(n.slice(a,k)),a=k+1;continue}if(x==="/"){u=k;continue}}x==="["?i++:x==="]"?i--:x==="("?l++:x===")"&&l--}const h=s.length===0?n:n.slice(a);let y=h,v=!1;h.endsWith(le)?(y=h.slice(0,-1),v=!0):h.startsWith(le)&&(y=h.slice(1),v=!0);const S=u&&u>a?u-a:void 0;return ke(s,v,y,S)};if(t){const n=t+we,s=r;r=i=>i.startsWith(n)?s(i.slice(n.length)):ke(ut,!1,i,void 0,!0)}if(o){const n=r;r=s=>o({className:s,parseClassName:n})}return r},ft=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{const r=[];let n=[];for(let s=0;s<o.length;s++){const i=o[s],l=i[0]==="[",a=t.has(i);l||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},pt=e=>({cache:dt(e.cacheSize),parseClassName:mt(e),sortModifiers:ft(e),...tt(e)}),bt=/\s+/,gt=(e,t)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=t,i=[],l=e.trim().split(bt);let a="";for(let u=l.length-1;u>=0;u-=1){const b=l[u],{isExternal:h,modifiers:y,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:k}=o(b);if(h){a=b+(a.length>0?" "+a:a);continue}let x=!!k,O=r(x?S.substring(0,k):S);if(!O){if(!x){a=b+(a.length>0?" "+a:a);continue}if(O=r(S),!O){a=b+(a.length>0?" "+a:a);continue}x=!1}const B=y.length===0?"":y.length===1?y[0]:s(y).join(":"),W=v?B+le:B,V=W+O;if(i.indexOf(V)>-1)continue;i.push(V);const G=n(O,x);for(let T=0;T<G.length;++T){const F=G[T];i.push(W+F)}a=b+(a.length>0?" "+a:a)}return a},ht=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=Te(o))&&(n&&(n+=" "),n+=r);return n},Te=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Te(e[r]))&&(o&&(o+=" "),o+=t);return o},yt=(e,...t)=>{let o,r,n,s;const i=a=>{const u=t.reduce((b,h)=>h(b),e());return o=pt(u),r=o.cache.get,n=o.cache.set,s=l,l(a)},l=a=>{const u=r(a);if(u)return u;const b=gt(a,o);return n(a,b),b};return s=i,(...a)=>s(ht(...a))},vt=[],w=e=>{const t=o=>o[e]||vt;return t.isThemeGetter=!0,t},je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ct=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,St=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,At=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>xt.test(e),g=e=>!!e&&!Number.isNaN(Number(e)),I=e=>!!e&&Number.isInteger(Number(e)),ae=e=>e.endsWith("%")&&g(e.slice(0,-1)),P=e=>wt.test(e),Le=()=>!0,Rt=e=>kt.test(e)&&!Ct.test(e),de=()=>!1,zt=e=>St.test(e),Nt=e=>At.test(e),Pt=e=>!c(e)&&!d(e),Et=e=>M(e,$e,de),c=e=>je.test(e),_=e=>M(e,We,Rt),Ce=e=>M(e,Vt,g),It=e=>M(e,Ue,Le),Mt=e=>M(e,Fe,de),Se=e=>M(e,Ve,de),Ot=e=>M(e,Ge,Nt),X=e=>M(e,De,zt),d=e=>_e.test(e),U=e=>L(e,We),Tt=e=>L(e,Fe),Ae=e=>L(e,Ve),jt=e=>L(e,$e),_t=e=>L(e,Ge),J=e=>L(e,De,!0),Lt=e=>L(e,Ue,!0),M=(e,t,o)=>{const r=je.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},L=(e,t,o=!1)=>{const r=_e.exec(e);return r?r[1]?t(r[1]):o:!1},Ve=e=>e==="position"||e==="percentage",Ge=e=>e==="image"||e==="url",$e=e=>e==="length"||e==="size"||e==="bg-size",We=e=>e==="length",Vt=e=>e==="number",Fe=e=>e==="family-name",Ue=e=>e==="number"||e==="weight",De=e=>e==="shadow",Gt=()=>{const e=w("color"),t=w("font"),o=w("text"),r=w("font-weight"),n=w("tracking"),s=w("leading"),i=w("breakpoint"),l=w("container"),a=w("spacing"),u=w("radius"),b=w("shadow"),h=w("inset-shadow"),y=w("text-shadow"),v=w("drop-shadow"),S=w("blur"),k=w("perspective"),x=w("aspect"),O=w("ease"),B=w("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...V(),d,c],T=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],m=()=>[d,c,a],z=()=>[E,"full","auto",...m()],ue=()=>[I,"none","subgrid",d,c],me=()=>["auto",{span:["full",I,d,c]},I,d,c],H=()=>[I,"auto",d,c],fe=()=>["auto","min","max","fr",d,c],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...m()],j=()=>[E,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],re=()=>[E,"screen","full","dvw","lvw","svw","min","max","fit",...m()],ne=()=>[E,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],f=()=>[e,d,c],pe=()=>[...V(),Ae,Se,{position:[d,c]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",jt,Et,{size:[d,c]}],se=()=>[ae,U,_],A=()=>["","none","full",u,d,c],R=()=>["",g,U,_],Y=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[g,ae,Ae,Se],ye=()=>["","none",S,d,c],Z=()=>["none",g,d,c],q=()=>["none",g,d,c],ie=()=>[g,d,c],K=()=>[E,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[Le],container:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[Pt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",g],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",E,c,d,x]}],container:["container"],columns:[{columns:[g,c,d,l]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[I,"auto",d,c]}],basis:[{basis:[E,"full","auto",l,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[g,E,"auto","initial","none",c]}],grow:[{grow:["",g,d,c]}],shrink:[{shrink:["",g,d,c]}],order:[{order:[I,"first","last","none",d,c]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...ne()]}],"min-block-size":[{"min-block":["auto",...ne()]}],"max-block-size":[{"max-block":["none",...ne()]}],w:[{w:[l,"screen",...j()]}],"min-w":[{"min-w":[l,"screen","none",...j()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",o,U,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Lt,It]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ae,c]}],"font-family":[{font:[Tt,Mt,t]}],"font-features":[{"font-features":[c]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,d,c]}],"line-clamp":[{"line-clamp":[g,"none",d,Ce]}],leading:[{leading:[s,...m()]}],"list-image":[{"list-image":["none",d,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:f()}],"text-color":[{text:f()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[g,"from-font","auto",d,_]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[g,"auto",d,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},I,d,c],radial:["",d,c],conic:[I,d,c]},_t,Ot]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:f()}],"border-color-x":[{"border-x":f()}],"border-color-y":[{"border-y":f()}],"border-color-s":[{"border-s":f()}],"border-color-e":[{"border-e":f()}],"border-color-bs":[{"border-bs":f()}],"border-color-be":[{"border-be":f()}],"border-color-t":[{"border-t":f()}],"border-color-r":[{"border-r":f()}],"border-color-b":[{"border-b":f()}],"border-color-l":[{"border-l":f()}],"divide-color":[{divide:f()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[g,d,c]}],"outline-w":[{outline:["",g,U,_]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",b,J,X]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",h,J,X]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[g,_]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",y,J,X]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[g,d,c]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[g]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":f()}],"mask-image-linear-to-color":[{"mask-linear-to":f()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":f()}],"mask-image-t-to-color":[{"mask-t-to":f()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":f()}],"mask-image-r-to-color":[{"mask-r-to":f()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":f()}],"mask-image-b-to-color":[{"mask-b-to":f()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":f()}],"mask-image-l-to-color":[{"mask-l-to":f()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":f()}],"mask-image-x-to-color":[{"mask-x-to":f()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[d,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":f()}],"mask-image-radial-to-color":[{"mask-radial-to":f()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[g]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":f()}],"mask-image-conic-to-color":[{"mask-conic-to":f()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,c]}],filter:[{filter:["","none",d,c]}],blur:[{blur:ye()}],brightness:[{brightness:[g,d,c]}],contrast:[{contrast:[g,d,c]}],"drop-shadow":[{"drop-shadow":["","none",v,J,X]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",g,d,c]}],"hue-rotate":[{"hue-rotate":[g,d,c]}],invert:[{invert:["",g,d,c]}],saturate:[{saturate:[g,d,c]}],sepia:[{sepia:["",g,d,c]}],"backdrop-filter":[{"backdrop-filter":["","none",d,c]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[g,d,c]}],"backdrop-contrast":[{"backdrop-contrast":[g,d,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",g,d,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g,d,c]}],"backdrop-invert":[{"backdrop-invert":["",g,d,c]}],"backdrop-opacity":[{"backdrop-opacity":[g,d,c]}],"backdrop-saturate":[{"backdrop-saturate":[g,d,c]}],"backdrop-sepia":[{"backdrop-sepia":["",g,d,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[g,"initial",d,c]}],ease:[{ease:["linear","initial",O,d,c]}],delay:[{delay:[g,d,c]}],animate:[{animate:["none",B,d,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,d,c]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[d,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:f()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:f()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d,c]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[g,U,_,Ce]}],stroke:[{stroke:["none",...f()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},co=yt(Gt);function Be(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Be(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function $t(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Be(e))&&(r&&(r+=" "),r+=t);return r}const Re=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ze=$t,Wt=(e,t)=>o=>{var r;if(t?.variants==null)return ze(e,o?.class,o?.className);const{variants:n,defaultVariants:s}=t,i=Object.keys(n).map(u=>{const b=o?.[u],h=s?.[u];if(b===null)return null;const y=Re(b)||Re(h);return n[u][y]}),l=o&&Object.entries(o).reduce((u,b)=>{let[h,y]=b;return y===void 0||(u[h]=y),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,b)=>{let{class:h,className:y,...v}=b;return Object.entries(v).every(S=>{let[k,x]=S;return Array.isArray(x)?x.includes({...s,...l}[k]):{...s,...l}[k]===x})?[...u,h,y]:u},[]);return ze(e,i,a,o?.class,o?.className)},Ne={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground",outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},uo=Wt("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring",{variants:{variant:Ne,color:Ne,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}});function mo(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}function fo(e,t){const o=p.createContext(t),r=s=>{const{children:i,...l}=s,a=p.useMemo(()=>l,Object.values(l));return D.jsx(o.Provider,{value:a,children:i})};r.displayName=e+"Provider";function n(s){const i=p.useContext(o);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,n]}function po(e,t=[]){let o=[];function r(s,i){const l=p.createContext(i),a=o.length;o=[...o,i];const u=h=>{const{scope:y,children:v,...S}=h,k=y?.[e]?.[a]||l,x=p.useMemo(()=>S,Object.values(S));return D.jsx(k.Provider,{value:x,children:v})};u.displayName=s+"Provider";function b(h,y){const v=y?.[e]?.[a]||l,S=p.useContext(v);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,b]}const n=()=>{const s=o.map(i=>p.createContext(i));return function(l){const a=l?.[e]||s;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return n.scopeName=e,[r,Ft(n,...t)]}function Ft(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const h=a(s)[`__scope${u}`];return{...l,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}function Pe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function He(...e){return t=>{let o=!1;const r=e.map(n=>{const s=Pe(n,t);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let n=0;n<r.length;n++){const s=r[n];typeof s=="function"?s():Pe(e[n],null)}}}}function Ut(...e){return p.useCallback(He(...e),e)}function Dt(e){const t=Bt(e),o=p.forwardRef((r,n)=>{const{children:s,...i}=r,l=p.Children.toArray(s),a=l.find(Yt);if(a){const u=a.props.children,b=l.map(h=>h===a?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:h);return D.jsx(t,{...i,ref:n,children:p.isValidElement(u)?p.cloneElement(u,void 0,b):null})}return D.jsx(t,{...i,ref:n,children:s})});return o.displayName=`${e}.Slot`,o}function Bt(e){const t=p.forwardRef((o,r)=>{const{children:n,...s}=o;if(p.isValidElement(n)){const i=qt(n),l=Zt(s,n.props);return n.type!==p.Fragment&&(l.ref=r?He(r,i):i),p.cloneElement(n,l)}return p.Children.count(n)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ht=Symbol("radix.slottable");function Yt(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ht}function Zt(e,t){const o={...t};for(const r in t){const n=e[r],s=t[r];/^on[A-Z]/.test(r)?n&&s?o[r]=(...l)=>{const a=s(...l);return n(...l),a}:n&&(o[r]=n):r==="style"?o[r]={...n,...s}:r==="className"&&(o[r]=[n,s].filter(Boolean).join(" "))}return{...e,...o}}function qt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var te=globalThis?.document?p.useLayoutEffect:()=>{},Kt=Ee[" useId ".trim().toString()]||(()=>{}),Xt=0;function bo(e){const[t,o]=p.useState(Kt());return te(()=>{o(r=>r??String(Xt++))},[e]),e||(t?`radix-${t}`:"")}var Jt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],go=Jt.reduce((e,t)=>{const o=Dt(`Primitive.${t}`),r=p.forwardRef((n,s)=>{const{asChild:i,...l}=n,a=i?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ho(e,t){e&&Ye.flushSync(()=>e.dispatchEvent(t))}function yo(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...o)=>t.current?.(...o),[])}var Qt=Ee[" useInsertionEffect ".trim().toString()]||te;function vo({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){const[n,s,i]=eo({defaultProp:t,onChange:o}),l=e!==void 0,a=l?e:n;{const b=p.useRef(e!==void 0);p.useEffect(()=>{const h=b.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=l},[l,r])}const u=p.useCallback(b=>{if(l){const h=to(b)?b(e):b;h!==e&&i.current?.(h)}else s(b)},[l,e,s,i]);return[a,u]}function eo({defaultProp:e,onChange:t}){const[o,r]=p.useState(e),n=p.useRef(o),s=p.useRef(t);return Qt(()=>{s.current=t},[t]),p.useEffect(()=>{n.current!==o&&(s.current?.(o),n.current=o)},[o,n]),[o,r,s]}function to(e){return typeof e=="function"}function oo(e,t){return p.useReducer((o,r)=>t[o][r]??o,e)}var ro=e=>{const{present:t,children:o}=e,r=no(t),n=typeof o=="function"?o({present:r.isPresent}):p.Children.only(o),s=Ut(r.ref,so(n));return typeof o=="function"||r.isPresent?p.cloneElement(n,{ref:s}):null};ro.displayName="Presence";function no(e){const[t,o]=p.useState(),r=p.useRef(null),n=p.useRef(e),s=p.useRef("none"),i=e?"mounted":"unmounted",[l,a]=oo(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=Q(r.current);s.current=l==="mounted"?u:"none"},[l]),te(()=>{const u=r.current,b=n.current;if(b!==e){const y=s.current,v=Q(u);e?a("MOUNT"):v==="none"||u?.display==="none"?a("UNMOUNT"):a(b&&y!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,a]),te(()=>{if(t){let u;const b=t.ownerDocument.defaultView??window,h=v=>{const k=Q(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&k&&(a("ANIMATION_END"),!n.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=b.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},y=v=>{v.target===t&&(s.current=Q(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{b.clearTimeout(u),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,o(u)},[])}}function Q(e){return e?.animationName||"none"}function so(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}export{go as P,Wt as a,uo as b,lo as c,ro as d,po as e,yo as f,te as g,mo as h,vo as i,bo as j,Dt as k,ho as l,fo as m,co as t,Ut as u};
@@ -1 +1 @@
1
- import{r as t,j as C}from"./index-DAcpNNU5.js";const I=t.createContext({enabled:!1,open:!1,hotKey:[],setOpenSearch:()=>{}});function Q(){return t.use(I)}function D(){const[e,r]=t.useState("⌘");return t.useEffect(()=>{window.navigator.userAgent.includes("Windows")&&r("Ctrl")},[]),e}function U({SearchDialog:e,children:r,preload:s=!0,options:f,hotKey:u=[{key:n=>n.metaKey||n.ctrlKey,display:C.jsx(D,{})},{key:"k",display:"K"}],links:o}){const[n,h]=t.useState(s?!1:void 0),a=t.useEffectEvent(y=>{u.every(d=>typeof d.key=="string"?y.key===d.key:d.key(y))&&(h(d=>!d),y.preventDefault())});return t.useEffect(()=>(window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}),[u]),C.jsxs(I,{value:t.useMemo(()=>({enabled:!0,open:n??!1,hotKey:u,setOpenSearch:h}),[n,u]),children:[n!==void 0&&C.jsx(t.Suspense,{fallback:null,children:C.jsx(e,{open:n,onOpenChange:h,links:o,...f})}),r]})}var H=(e,r,s,f,u,o,n,h)=>{let a=document.documentElement,y=["light","dark"];function d(l){(Array.isArray(e)?e:[e]).forEach(p=>{let g=p==="class",T=g&&o?u.map(w=>o[w]||w):u;g?(a.classList.remove(...T),a.classList.add(o&&o[l]?o[l]:l)):a.setAttribute(p,l)}),x(l)}function x(l){h&&y.includes(l)&&(a.style.colorScheme=l)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(f)d(f);else try{let l=localStorage.getItem(r)||s,p=n&&l==="system"?m():l;d(p)}catch{}},j=["light","dark"],K="(prefers-color-scheme: dark)",N=typeof window>"u",A=t.createContext(void 0),V={setTheme:e=>{},themes:[]},q=()=>{var e;return(e=t.useContext(A))!=null?e:V},B=e=>t.useContext(A)?t.createElement(t.Fragment,null,e.children):t.createElement(z,{...e}),_=["light","dark"],z=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:s=!0,enableColorScheme:f=!0,storageKey:u="theme",themes:o=_,defaultTheme:n=s?"system":"light",attribute:h="data-theme",value:a,children:y,nonce:d,scriptProps:x})=>{let[m,l]=t.useState(()=>R(u,n)),[p,g]=t.useState(()=>m==="system"?L():m),T=a?Object.values(a):o,w=t.useCallback(i=>{let c=i;if(!c)return;i==="system"&&s&&(c=L());let S=a?a[c]:c,O=r?$(d):null,b=document.documentElement,M=v=>{v==="class"?(b.classList.remove(...T),S&&b.classList.add(S)):v.startsWith("data-")&&(S?b.setAttribute(v,S):b.removeAttribute(v))};if(Array.isArray(h)?h.forEach(M):M(h),f){let v=j.includes(n)?n:null,W=j.includes(c)?c:v;b.style.colorScheme=W}O?.()},[d]),k=t.useCallback(i=>{let c=typeof i=="function"?i(m):i;l(c);try{localStorage.setItem(u,c)}catch{}},[m]),E=t.useCallback(i=>{let c=L(i);g(c),m==="system"&&s&&!e&&w("system")},[m,e]);t.useEffect(()=>{let i=window.matchMedia(K);return i.addListener(E),E(i),()=>i.removeListener(E)},[E]),t.useEffect(()=>{let i=c=>{c.key===u&&(c.newValue?l(c.newValue):k(n))};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[k]),t.useEffect(()=>{w(e??m)},[e,m]);let P=t.useMemo(()=>({theme:m,setTheme:k,forcedTheme:e,resolvedTheme:m==="system"?p:m,themes:s?[...o,"system"]:o,systemTheme:s?p:void 0}),[m,k,e,p,s,o]);return t.createElement(A.Provider,{value:P},t.createElement(J,{forcedTheme:e,storageKey:u,attribute:h,enableSystem:s,enableColorScheme:f,defaultTheme:n,value:a,themes:o,nonce:d,scriptProps:x}),y)},J=t.memo(({forcedTheme:e,storageKey:r,attribute:s,enableSystem:f,enableColorScheme:u,defaultTheme:o,value:n,themes:h,nonce:a,scriptProps:y})=>{let d=JSON.stringify([s,r,o,e,h,n,f,u]).slice(1,-1);return t.createElement("script",{...y,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${H.toString()})(${d})`}})}),R=(e,r)=>{if(N)return;let s;try{s=localStorage.getItem(e)||void 0}catch{}return s||r},$=e=>{let r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(r)},1)}},L=e=>(e||(e=window.matchMedia(K)),e.matches?"dark":"light");export{B as J,U as S,Q as u,q as z};
1
+ import{r as t,j as C}from"./index-OFfnl8sH.js";const I=t.createContext({enabled:!1,open:!1,hotKey:[],setOpenSearch:()=>{}});function Q(){return t.use(I)}function D(){const[e,r]=t.useState("⌘");return t.useEffect(()=>{window.navigator.userAgent.includes("Windows")&&r("Ctrl")},[]),e}function U({SearchDialog:e,children:r,preload:s=!0,options:f,hotKey:u=[{key:n=>n.metaKey||n.ctrlKey,display:C.jsx(D,{})},{key:"k",display:"K"}],links:o}){const[n,h]=t.useState(s?!1:void 0),a=t.useEffectEvent(y=>{u.every(d=>typeof d.key=="string"?y.key===d.key:d.key(y))&&(h(d=>!d),y.preventDefault())});return t.useEffect(()=>(window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}),[u]),C.jsxs(I,{value:t.useMemo(()=>({enabled:!0,open:n??!1,hotKey:u,setOpenSearch:h}),[n,u]),children:[n!==void 0&&C.jsx(t.Suspense,{fallback:null,children:C.jsx(e,{open:n,onOpenChange:h,links:o,...f})}),r]})}var H=(e,r,s,f,u,o,n,h)=>{let a=document.documentElement,y=["light","dark"];function d(l){(Array.isArray(e)?e:[e]).forEach(p=>{let g=p==="class",T=g&&o?u.map(w=>o[w]||w):u;g?(a.classList.remove(...T),a.classList.add(o&&o[l]?o[l]:l)):a.setAttribute(p,l)}),x(l)}function x(l){h&&y.includes(l)&&(a.style.colorScheme=l)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(f)d(f);else try{let l=localStorage.getItem(r)||s,p=n&&l==="system"?m():l;d(p)}catch{}},j=["light","dark"],K="(prefers-color-scheme: dark)",N=typeof window>"u",A=t.createContext(void 0),V={setTheme:e=>{},themes:[]},q=()=>{var e;return(e=t.useContext(A))!=null?e:V},B=e=>t.useContext(A)?t.createElement(t.Fragment,null,e.children):t.createElement(z,{...e}),_=["light","dark"],z=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:s=!0,enableColorScheme:f=!0,storageKey:u="theme",themes:o=_,defaultTheme:n=s?"system":"light",attribute:h="data-theme",value:a,children:y,nonce:d,scriptProps:x})=>{let[m,l]=t.useState(()=>R(u,n)),[p,g]=t.useState(()=>m==="system"?L():m),T=a?Object.values(a):o,w=t.useCallback(i=>{let c=i;if(!c)return;i==="system"&&s&&(c=L());let S=a?a[c]:c,O=r?$(d):null,b=document.documentElement,M=v=>{v==="class"?(b.classList.remove(...T),S&&b.classList.add(S)):v.startsWith("data-")&&(S?b.setAttribute(v,S):b.removeAttribute(v))};if(Array.isArray(h)?h.forEach(M):M(h),f){let v=j.includes(n)?n:null,W=j.includes(c)?c:v;b.style.colorScheme=W}O?.()},[d]),k=t.useCallback(i=>{let c=typeof i=="function"?i(m):i;l(c);try{localStorage.setItem(u,c)}catch{}},[m]),E=t.useCallback(i=>{let c=L(i);g(c),m==="system"&&s&&!e&&w("system")},[m,e]);t.useEffect(()=>{let i=window.matchMedia(K);return i.addListener(E),E(i),()=>i.removeListener(E)},[E]),t.useEffect(()=>{let i=c=>{c.key===u&&(c.newValue?l(c.newValue):k(n))};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[k]),t.useEffect(()=>{w(e??m)},[e,m]);let P=t.useMemo(()=>({theme:m,setTheme:k,forcedTheme:e,resolvedTheme:m==="system"?p:m,themes:s?[...o,"system"]:o,systemTheme:s?p:void 0}),[m,k,e,p,s,o]);return t.createElement(A.Provider,{value:P},t.createElement(J,{forcedTheme:e,storageKey:u,attribute:h,enableSystem:s,enableColorScheme:f,defaultTheme:n,value:a,themes:o,nonce:d,scriptProps:x}),y)},J=t.memo(({forcedTheme:e,storageKey:r,attribute:s,enableSystem:f,enableColorScheme:u,defaultTheme:o,value:n,themes:h,nonce:a,scriptProps:y})=>{let d=JSON.stringify([s,r,o,e,h,n,f,u]).slice(1,-1);return t.createElement("script",{...y,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${H.toString()})(${d})`}})}),R=(e,r)=>{if(N)return;let s;try{s=localStorage.getItem(e)||void 0}catch{}return s||r},$=e=>{let r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(r)},1)}},L=e=>(e||(e=window.matchMedia(K)),e.matches?"dark":"light");export{B as J,U as S,Q as u,q as z};