dorkos 0.83.0 → 0.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +7 -0
  2. package/dist/bin/cli.js +5338 -2653
  3. package/dist/client/assets/{AboutPage-BCPZr0Kt.js → AboutPage-BSUaz4JJ.js} +1 -1
  4. package/dist/client/assets/{AppearancePage-CJfCCSBv.js → AppearancePage-CXOeapnY.js} +1 -1
  5. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-Rg6hvlIh.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-BnlmhnMf.js} +1 -1
  6. package/dist/client/assets/{BlintzCanvas-CUSuHP_Q.js → BlintzCanvas-CPvaejf6.js} +1 -1
  7. package/dist/client/assets/{CanvasCsvContent-B3gnlTxe.js → CanvasCsvContent-BQMcLeXX.js} +1 -1
  8. package/dist/client/assets/CanvasFileContent-DZAWEzyp.js +2 -0
  9. package/dist/client/assets/CanvasModel3dContent-CU-0WLIz.js +2 -0
  10. package/dist/client/assets/{CodeMirrorDiff-Dsell_F0.js → CodeMirrorDiff-B705Z174.js} +1 -1
  11. package/dist/client/assets/{CodeMirrorEditor-DW4-Dilh.js → CodeMirrorEditor-CnoVRaAX.js} +1 -1
  12. package/dist/client/assets/ConnectionAccessLists-CLulSQsd.js +1 -0
  13. package/dist/client/assets/ConnectionsPage-5Yc0-dNp.js +1 -0
  14. package/dist/client/assets/{ConventionPage-Dto1Cfs1.js → ConventionPage-CPTqeeNZ.js} +2 -2
  15. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-B8JWq1xE.js → FloatingTanStackRouterDevtools-CqogiFob-C3cf2ADt.js} +1 -1
  16. package/dist/client/assets/HandlePage-CUJPQsdv.js +1 -0
  17. package/dist/client/assets/{LexicalField-BymSjNLW.js → LexicalField-ClgIzBq7.js} +1 -1
  18. package/dist/client/assets/{ManagesPage-D0ykMsYy.js → ManagesPage-CKzcFzKR.js} +1 -1
  19. package/dist/client/assets/{Model3dViewer-DpzkRmRI.js → Model3dViewer-CVVsdftR.js} +1 -1
  20. package/dist/client/assets/NamePage-CYHYXhrs.js +1 -0
  21. package/dist/client/assets/{NotificationsPage-C4Ol8NO6.js → NotificationsPage-D3m6Jrm2.js} +1 -1
  22. package/dist/client/assets/{PermissionsPage-BEtP78wl.js → PermissionsPage-CviWqCJ3.js} +1 -1
  23. package/dist/client/assets/{PersonalityPopover-xJuTkLLJ.js → PersonalityPopover-BN1CFq8D.js} +1 -1
  24. package/dist/client/assets/PhotoPage-ytqVZP3t.js +1 -0
  25. package/dist/client/assets/{RoomsPage-CeB_8k-m.js → RoomsPage-CoZd-4Xe.js} +1 -1
  26. package/dist/client/assets/RunsOnPopover-91nKS6qj.js +1 -0
  27. package/dist/client/assets/SessionsPage-DDrQLNW-.js +6 -0
  28. package/dist/client/assets/SkillsPage-2H6QD77F.js +1 -0
  29. package/dist/client/assets/TasksPage-ocRUPiec.js +1 -0
  30. package/dist/client/assets/ToolsPage-q3wxIc3n.js +2 -0
  31. package/dist/client/assets/{TopologyGraph-3rXK5QTB.js → TopologyGraph-DeRqfLBW.js} +2 -2
  32. package/dist/client/assets/{agent-browser-DaDOSH9H.js → agent-browser-C7Q5muxI.js} +1 -1
  33. package/dist/client/assets/{highlighted-body-KPVGNVTW-CGXZGdzv.js → highlighted-body-KPVGNVTW-CYowLe07.js} +1 -1
  34. package/dist/client/assets/{index-C4yxotik.js → index-1dt_mWBC.js} +1 -1
  35. package/dist/client/assets/{index-DQdV5YDl.js → index-34_CucI4.js} +1 -1
  36. package/dist/client/assets/{index-CUXXDUxt.js → index-6F4HxV-x.js} +1 -1
  37. package/dist/client/assets/{index-MUbvQBCQ.js → index-B029XwR8.js} +1 -1
  38. package/dist/client/assets/index-B4TIVWAq.js +1668 -0
  39. package/dist/client/assets/index-BUcM96PD.css +1 -0
  40. package/dist/client/assets/{index-rJuQe7Pl.js → index-BX9en7bH.js} +1 -1
  41. package/dist/client/assets/{index-Bco5PCIk.js → index-BeqTVkgE.js} +1 -1
  42. package/dist/client/assets/{index-D9vFzXJR.js → index-BkFaL4dr.js} +1 -1
  43. package/dist/client/assets/index-Bv_P5_tJ.js +1 -0
  44. package/dist/client/assets/{index-3xtUyFwf.js → index-BwbRY8dK.js} +1 -1
  45. package/dist/client/assets/{index-oU5xA1N3.js → index-BzVyUKXW.js} +3 -3
  46. package/dist/client/assets/{index-BiKxY3b6.js → index-C0oow5Fn.js} +1 -1
  47. package/dist/client/assets/{index-B2AJ6tkg.js → index-CCLVR1so.js} +1 -1
  48. package/dist/client/assets/{index-bR1UztQC.js → index-CEw2JwVz.js} +1 -1
  49. package/dist/client/assets/{index-DdpxcyXN.js → index-CKHPMgwE.js} +1 -1
  50. package/dist/client/assets/{index-dDcguWyg.js → index-CbxbAPgT.js} +1 -1
  51. package/dist/client/assets/{index-Cc8vG2jf.js → index-Cm0G2vDh.js} +1 -1
  52. package/dist/client/assets/{index-CUDguphz.js → index-CpZi173j.js} +1 -1
  53. package/dist/client/assets/index-CqfEH_t6.js +1 -0
  54. package/dist/client/assets/index-CuEwCZKH.js +17 -0
  55. package/dist/client/assets/{index-DT376l6b.js → index-CvQeke9n.js} +9 -9
  56. package/dist/client/assets/{index-i6WvrE1p.js → index-CxZB8Cqj.js} +1 -1
  57. package/dist/client/assets/{index-DPpw-DKV.js → index-D45q57-5.js} +1 -1
  58. package/dist/client/assets/{index-zrZDQvuW.js → index-D8fmSjjO.js} +1 -1
  59. package/dist/client/assets/{index-D4OPDslu.js → index-DDagpuEn.js} +1 -1
  60. package/dist/client/assets/{index-CXeb3CZh.js → index-DT3ci-3h.js} +1 -1
  61. package/dist/client/assets/{index-Ck1VEXu0.js → index-D_Pj9S7y.js} +1 -1
  62. package/dist/client/assets/{index-pBoKYStL.js → index-Da-4WWcu.js} +1 -1
  63. package/dist/client/assets/{index-Ce4ArSsI.js → index-DsRm4kZF.js} +1 -1
  64. package/dist/client/assets/{index-Bg2WUou4.js → index-GiEn7nQQ.js} +1 -1
  65. package/dist/client/assets/{index-CemK6fUn.js → index-SGZRUhq4.js} +1 -1
  66. package/dist/client/assets/{index-Ygg0URfB.js → index-VLhj4QNP.js} +1 -1
  67. package/dist/client/assets/index-otf5JgVx.js +1 -0
  68. package/dist/client/assets/{index-FOgsYoCt.js → index-qWahGPGi.js} +1 -1
  69. package/dist/client/assets/{index-BabO0TEf.js → index-sMuUIc_W.js} +2 -2
  70. package/dist/client/assets/{index-z0vAkUHY.js → index-snpaQsNQ.js} +1 -1
  71. package/dist/client/assets/room-files-source-C3tzeG6y.js +6 -0
  72. package/dist/client/assets/{soul-file-C1wnpxhH.js → soul-file-tc6-HkDy.js} +1 -1
  73. package/dist/client/assets/{use-personality-commit-OViAsTwD.js → use-personality-commit-vpAu5T8A.js} +1 -1
  74. package/dist/client/index.html +3 -3
  75. package/dist/drizzle/0111_community_redaction_cursor.sql +11 -0
  76. package/dist/drizzle/0112_account_drop_issuer.sql +18 -0
  77. package/dist/drizzle/0113_room_departed_seats.sql +14 -0
  78. package/dist/drizzle/0114_schedule_account.sql +1 -0
  79. package/dist/drizzle/0115_furry_starjammers.sql +1 -0
  80. package/dist/drizzle/meta/0111_snapshot.json +9062 -0
  81. package/dist/drizzle/meta/0112_snapshot.json +9055 -0
  82. package/dist/drizzle/meta/0113_snapshot.json +9147 -0
  83. package/dist/drizzle/meta/0114_snapshot.json +9154 -0
  84. package/dist/drizzle/meta/0115_snapshot.json +9146 -0
  85. package/dist/drizzle/meta/_journal.json +35 -0
  86. package/dist/server/index.js +34994 -22406
  87. package/dist/server/index.js.map +2 -2
  88. package/package.json +7 -8
  89. package/dist/client/assets/CanvasFileContent-C2PyVniO.js +0 -2
  90. package/dist/client/assets/CanvasModel3dContent-BU77_Cf0.js +0 -2
  91. package/dist/client/assets/ConnectionAccessLists-C6PZsSaI.js +0 -1
  92. package/dist/client/assets/ConnectionsPage-d1mpye9j.js +0 -1
  93. package/dist/client/assets/HandlePage-D9x_OTks.js +0 -1
  94. package/dist/client/assets/NamePage-zm23PjaF.js +0 -1
  95. package/dist/client/assets/PhotoPage-DlqgNQWM.js +0 -1
  96. package/dist/client/assets/RunsOnPopover-DT6aWGUP.js +0 -1
  97. package/dist/client/assets/SessionsPage-CoZhOOr9.js +0 -6
  98. package/dist/client/assets/SkillsPage-C8bahTTW.js +0 -1
  99. package/dist/client/assets/TasksPage-CuFN--Cj.js +0 -1
  100. package/dist/client/assets/ToolsPage-C5cJiedq.js +0 -2
  101. package/dist/client/assets/index-4zzP7Qsj.js +0 -1
  102. package/dist/client/assets/index-B9qRpVKa.js +0 -7
  103. package/dist/client/assets/index-BMR65QI4.js +0 -1658
  104. package/dist/client/assets/index-C9o2w5d_.js +0 -1
  105. package/dist/client/assets/index-DZ-SO2sz.css +0 -1
  106. package/dist/client/assets/index-Rf5Yz119.js +0 -1
  107. package/dist/client/assets/room-files-source-BXF5daqI.js +0 -11
  108. package/dist/client/assets/use-mesh-update-CZIA8V07.js +0 -1
@@ -1,4 +1,4 @@
1
- import{P as st,g as Z,h as v,X as it,N as Ee,s as Ie,T as H,p as ot,t as m,e as F,j as P,Y as z,a as fe,o as at,Z as lt,E as ht,_ as ft,$ as ut,a0 as dt,U as pt,a1 as ct,q as mt,f as Me,i as gt,a2 as kt,m as ue,a3 as Lt}from"./index-oU5xA1N3.js";import{html as bt,htmlCompletionSource as wt}from"./index-rJuQe7Pl.js";import"./index-BMR65QI4.js";import"./index-Ck1VEXu0.js";import"./index-D4OPDslu.js";import"./index-z0vAkUHY.js";class _{static create(e,r,n,s,i){let o=s+(s<<8)+e+(r<<4)|0;return new _(e,r,n,o,i,[],[])}constructor(e,r,n,s,i,o,a){this.type=e,this.value=r,this.from=n,this.hash=s,this.end=i,this.children=o,this.positions=a,this.hashProp=[[v.contextHash,s]]}addChild(e,r){e.prop(v.contextHash)!=this.hash&&(e=new H(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(r)}toTree(e,r=this.end){let n=this.children.length-1;return n>=0&&(r=Math.max(r,this.positions[n]+this.children[n].length+this.from)),new H(e.types[this.type],this.children,this.positions,r-this.from).balance({makeTree:(s,i,o)=>new H(Z.none,s,i,o,this.hashProp)})}}var u;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(u||(u={}));class St{constructor(e,r){this.start=e,this.content=r,this.marks=[],this.parsers=[]}}class Ct{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return O(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,r=0,n=0){for(let s=r;s<e;s++)n+=this.text.charCodeAt(s)==9?4-n%4:1;return n}findColumn(e){let r=0;for(let n=0;r<this.text.length&&n<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return r}scrub(){if(!this.baseIndent)return this.text;let e="";for(let r=0;r<this.basePos;r++)e+=" ";return e+this.text.slice(this.basePos)}}function de(t,e,r){if(r.pos==r.text.length||t!=e.block&&r.indent>=e.stack[r.depth+1].value+r.baseIndent)return!0;if(r.indent>=r.baseIndent+4)return!1;let n=(t.type==u.OrderedList?oe:ie)(r,e,!1);return n>0&&(t.type!=u.BulletList||se(r,e,!1)<0)&&r.text.charCodeAt(r.pos+n-1)==t.value}const He={[u.Blockquote](t,e,r){return r.next!=62?!1:(r.markers.push(k(u.QuoteMark,e.lineStart+r.pos,e.lineStart+r.pos+1)),r.moveBase(r.pos+(A(r.text.charCodeAt(r.pos+1))?2:1)),t.end=e.lineStart+r.text.length,!0)},[u.ListItem](t,e,r){return r.indent<r.baseIndent+t.value&&r.next>-1?!1:(r.moveBaseColumn(r.baseIndent+t.value),!0)},[u.OrderedList]:de,[u.BulletList]:de,[u.Document](){return!0}};function A(t){return t==32||t==9||t==10||t==13}function O(t,e=0){for(;e<t.length&&A(t.charCodeAt(e));)e++;return e}function pe(t,e,r){for(;e>r&&A(t.charCodeAt(e-1));)e--;return e}function Pe(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;if(e<t.pos+3)return-1;if(t.next==96){for(let r=e;r<t.text.length;r++)if(t.text.charCodeAt(r)==96)return-1}return e}function ve(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function se(t,e,r){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let n=1;for(let s=t.pos+1;s<t.text.length;s++){let i=t.text.charCodeAt(s);if(i==t.next)n++;else if(!A(i))return-1}return r&&t.next==45&&Re(t)>-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(De.SetextHeading)>-1||n<3?-1:1}function Ne(t,e){for(let r=t.stack.length-1;r>=0;r--)if(t.stack[r].type==e)return!0;return!1}function ie(t,e,r){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||A(t.text.charCodeAt(t.pos+1)))&&(!r||Ne(e,u.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function oe(t,e,r){let n=t.pos,s=t.next;for(;s>=48&&s<=57;){n++;if(n==t.text.length)return-1;s=t.text.charCodeAt(n)}return n==t.pos||n>t.pos+9||s!=46&&s!=41||n<t.text.length-1&&!A(t.text.charCodeAt(n+1))||r&&!Ne(e,u.OrderedList)&&(t.skipSpace(n+1)==t.text.length||n>t.pos+1||t.next!=49)?-1:n+1-t.pos}function ye(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==35;)e++;if(e<t.text.length&&t.text.charCodeAt(e)!=32)return-1;let r=e-t.pos;return r>6?-1:r}function Re(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;let r=e;for(;e<t.text.length&&A(t.text.charCodeAt(e));)e++;return e==t.text.length?r:-1}const W=/^[ \t]*$/,Oe=/-->/,Te=/\?>/,ee=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Oe],[/^\s*<\?/,Te],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?: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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,W],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,W]];function ze(t,e,r){if(t.next!=60)return-1;let n=t.text.slice(t.pos);for(let s=0,i=ee.length-(r?1:0);s<i;s++)if(ee[s][0].test(n))return s;return-1}function ce(t,e){let r=t.countIndent(e,t.pos,t.indent),n=t.countIndent(t.skipSpace(e),e,r);return n>=r+5?r+1:n}function x(t,e,r){let n=t.length-1;n>=0&&t[n].to==e&&t[n].type==u.CodeText?t[n].to=r:t.push(k(u.CodeText,e,r))}const $={LinkReference:void 0,IndentedCode(t,e){let r=e.baseIndent+4;if(e.indent<r)return!1;let n=e.findColumn(r),s=t.lineStart+n,i=t.lineStart+e.text.length,o=[],a=[];for(x(o,s,i);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length){x(a,t.lineStart-1,t.lineStart);for(let l of e.markers)a.push(l)}else{if(e.indent<r)break;{if(a.length){for(let h of a)h.type==u.CodeText?x(o,h.from,h.to):o.push(h);a=[]}x(o,t.lineStart-1,t.lineStart);for(let h of e.markers)o.push(h);i=t.lineStart+e.text.length;let l=t.lineStart+e.findColumn(e.baseIndent+4);l<i&&x(o,l,i)}}return a.length&&(a=a.filter(l=>l.type!=u.CodeText),a.length&&(e.markers=a.concat(e.markers))),t.addNode(t.buffer.writeElements(o,-s).finish(u.CodeBlock,i-s),s),!0},FencedCode(t,e){let r=Pe(e);if(r<0)return!1;let n=t.lineStart+e.pos,s=e.next,i=r-e.pos,o=e.skipSpace(r),a=pe(e.text,e.text.length,o),l=[k(u.CodeMark,n,n+i)];o<a&&l.push(k(u.CodeInfo,t.lineStart+o,t.lineStart+a));for(let h=!0,f=!0,p=!1;t.nextLine()&&e.depth>=t.stack.length;h=!1){let d=e.pos;if(e.indent-e.baseIndent<4)for(;d<e.text.length&&e.text.charCodeAt(d)==s;)d++;if(d-e.pos>=i&&e.skipSpace(d)==e.text.length){for(let c of e.markers)l.push(c);f&&p&&x(l,t.lineStart-1,t.lineStart),l.push(k(u.CodeMark,t.lineStart+e.pos,t.lineStart+d)),t.nextLine();break}else{p=!0,h||(x(l,t.lineStart-1,t.lineStart),f=!1);for(let g of e.markers)l.push(g);let c=t.lineStart+e.basePos,L=t.lineStart+e.text.length;c<L&&(x(l,c,L),f=!1)}}return t.addNode(t.buffer.writeElements(l,-n).finish(u.FencedCode,t.prevLineEnd()-n),n),!0},Blockquote(t,e){let r=ve(e);return r<0?!1:(t.startContext(u.Blockquote,e.pos),t.addNode(u.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+r),null)},HorizontalRule(t,e){if(se(e,t,!1)<0)return!1;let r=t.lineStart+e.pos;return t.nextLine(),t.addNode(u.HorizontalRule,r),!0},BulletList(t,e){let r=ie(e,t,!1);if(r<0)return!1;t.block.type!=u.BulletList&&t.startContext(u.BulletList,e.basePos,e.next);let n=ce(e,e.pos+1);return t.startContext(u.ListItem,e.basePos,n-e.baseIndent),t.addNode(u.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+r),e.moveBaseColumn(n),null},OrderedList(t,e){let r=oe(e,t,!1);if(r<0)return!1;t.block.type!=u.OrderedList&&t.startContext(u.OrderedList,e.basePos,e.text.charCodeAt(e.pos+r-1));let n=ce(e,e.pos+r);return t.startContext(u.ListItem,e.basePos,n-e.baseIndent),t.addNode(u.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+r),e.moveBaseColumn(n),null},ATXHeading(t,e){let r=ye(e);if(r<0)return!1;let n=e.pos,s=t.lineStart+n,i=pe(e.text,e.text.length,n),o=i;for(;o>n&&e.text.charCodeAt(o-1)==e.next;)o--;(o==i||o==n||!A(e.text.charCodeAt(o-1)))&&(o=e.text.length);let a=t.buffer.write(u.HeaderMark,0,r).writeElements(t.parser.parseInline(e.text.slice(n+r+1,o),s+r+1),-s);o<e.text.length&&a.write(u.HeaderMark,o-n,i-n);let l=a.finish(u.ATXHeading1-1+r,e.text.length-n);return t.nextLine(),t.addNode(l,s),!0},HTMLBlock(t,e){let r=ze(e,t,!1);if(r<0)return!1;let n=t.lineStart+e.pos,s=ee[r][1],i=[],o=s!=W;for(;!s.test(e.text)&&t.nextLine();){if(e.depth<t.stack.length){o=!1;break}for(let h of e.markers)i.push(h)}o&&t.nextLine();let a=s==Oe?u.CommentBlock:s==Te?u.ProcessingInstructionBlock:u.HTMLBlock,l=t.prevLineEnd();return t.addNode(t.buffer.writeElements(i,-n).finish(a,l-n),n),!0},SetextHeading:void 0};class At{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,r,n){if(this.stage==-1)return!1;let s=n.content+`
1
+ import{P as st,g as Z,h as v,X as it,N as Ee,s as Ie,T as H,p as ot,t as m,e as F,j as P,Y as z,a as fe,o as at,Z as lt,E as ht,_ as ft,$ as ut,a0 as dt,U as pt,a1 as ct,q as mt,f as Me,i as gt,a2 as kt,m as ue,a3 as Lt}from"./index-BzVyUKXW.js";import{html as bt,htmlCompletionSource as wt}from"./index-BX9en7bH.js";import"./index-B4TIVWAq.js";import"./index-D_Pj9S7y.js";import"./index-DDagpuEn.js";import"./index-snpaQsNQ.js";class _{static create(e,r,n,s,i){let o=s+(s<<8)+e+(r<<4)|0;return new _(e,r,n,o,i,[],[])}constructor(e,r,n,s,i,o,a){this.type=e,this.value=r,this.from=n,this.hash=s,this.end=i,this.children=o,this.positions=a,this.hashProp=[[v.contextHash,s]]}addChild(e,r){e.prop(v.contextHash)!=this.hash&&(e=new H(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(r)}toTree(e,r=this.end){let n=this.children.length-1;return n>=0&&(r=Math.max(r,this.positions[n]+this.children[n].length+this.from)),new H(e.types[this.type],this.children,this.positions,r-this.from).balance({makeTree:(s,i,o)=>new H(Z.none,s,i,o,this.hashProp)})}}var u;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(u||(u={}));class St{constructor(e,r){this.start=e,this.content=r,this.marks=[],this.parsers=[]}}class Ct{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return O(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,r=0,n=0){for(let s=r;s<e;s++)n+=this.text.charCodeAt(s)==9?4-n%4:1;return n}findColumn(e){let r=0;for(let n=0;r<this.text.length&&n<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return r}scrub(){if(!this.baseIndent)return this.text;let e="";for(let r=0;r<this.basePos;r++)e+=" ";return e+this.text.slice(this.basePos)}}function de(t,e,r){if(r.pos==r.text.length||t!=e.block&&r.indent>=e.stack[r.depth+1].value+r.baseIndent)return!0;if(r.indent>=r.baseIndent+4)return!1;let n=(t.type==u.OrderedList?oe:ie)(r,e,!1);return n>0&&(t.type!=u.BulletList||se(r,e,!1)<0)&&r.text.charCodeAt(r.pos+n-1)==t.value}const He={[u.Blockquote](t,e,r){return r.next!=62?!1:(r.markers.push(k(u.QuoteMark,e.lineStart+r.pos,e.lineStart+r.pos+1)),r.moveBase(r.pos+(A(r.text.charCodeAt(r.pos+1))?2:1)),t.end=e.lineStart+r.text.length,!0)},[u.ListItem](t,e,r){return r.indent<r.baseIndent+t.value&&r.next>-1?!1:(r.moveBaseColumn(r.baseIndent+t.value),!0)},[u.OrderedList]:de,[u.BulletList]:de,[u.Document](){return!0}};function A(t){return t==32||t==9||t==10||t==13}function O(t,e=0){for(;e<t.length&&A(t.charCodeAt(e));)e++;return e}function pe(t,e,r){for(;e>r&&A(t.charCodeAt(e-1));)e--;return e}function Pe(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;if(e<t.pos+3)return-1;if(t.next==96){for(let r=e;r<t.text.length;r++)if(t.text.charCodeAt(r)==96)return-1}return e}function ve(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function se(t,e,r){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let n=1;for(let s=t.pos+1;s<t.text.length;s++){let i=t.text.charCodeAt(s);if(i==t.next)n++;else if(!A(i))return-1}return r&&t.next==45&&Re(t)>-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(De.SetextHeading)>-1||n<3?-1:1}function Ne(t,e){for(let r=t.stack.length-1;r>=0;r--)if(t.stack[r].type==e)return!0;return!1}function ie(t,e,r){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||A(t.text.charCodeAt(t.pos+1)))&&(!r||Ne(e,u.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function oe(t,e,r){let n=t.pos,s=t.next;for(;s>=48&&s<=57;){n++;if(n==t.text.length)return-1;s=t.text.charCodeAt(n)}return n==t.pos||n>t.pos+9||s!=46&&s!=41||n<t.text.length-1&&!A(t.text.charCodeAt(n+1))||r&&!Ne(e,u.OrderedList)&&(t.skipSpace(n+1)==t.text.length||n>t.pos+1||t.next!=49)?-1:n+1-t.pos}function ye(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==35;)e++;if(e<t.text.length&&t.text.charCodeAt(e)!=32)return-1;let r=e-t.pos;return r>6?-1:r}function Re(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;let r=e;for(;e<t.text.length&&A(t.text.charCodeAt(e));)e++;return e==t.text.length?r:-1}const W=/^[ \t]*$/,Oe=/-->/,Te=/\?>/,ee=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Oe],[/^\s*<\?/,Te],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?: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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,W],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,W]];function ze(t,e,r){if(t.next!=60)return-1;let n=t.text.slice(t.pos);for(let s=0,i=ee.length-(r?1:0);s<i;s++)if(ee[s][0].test(n))return s;return-1}function ce(t,e){let r=t.countIndent(e,t.pos,t.indent),n=t.countIndent(t.skipSpace(e),e,r);return n>=r+5?r+1:n}function x(t,e,r){let n=t.length-1;n>=0&&t[n].to==e&&t[n].type==u.CodeText?t[n].to=r:t.push(k(u.CodeText,e,r))}const $={LinkReference:void 0,IndentedCode(t,e){let r=e.baseIndent+4;if(e.indent<r)return!1;let n=e.findColumn(r),s=t.lineStart+n,i=t.lineStart+e.text.length,o=[],a=[];for(x(o,s,i);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length){x(a,t.lineStart-1,t.lineStart);for(let l of e.markers)a.push(l)}else{if(e.indent<r)break;{if(a.length){for(let h of a)h.type==u.CodeText?x(o,h.from,h.to):o.push(h);a=[]}x(o,t.lineStart-1,t.lineStart);for(let h of e.markers)o.push(h);i=t.lineStart+e.text.length;let l=t.lineStart+e.findColumn(e.baseIndent+4);l<i&&x(o,l,i)}}return a.length&&(a=a.filter(l=>l.type!=u.CodeText),a.length&&(e.markers=a.concat(e.markers))),t.addNode(t.buffer.writeElements(o,-s).finish(u.CodeBlock,i-s),s),!0},FencedCode(t,e){let r=Pe(e);if(r<0)return!1;let n=t.lineStart+e.pos,s=e.next,i=r-e.pos,o=e.skipSpace(r),a=pe(e.text,e.text.length,o),l=[k(u.CodeMark,n,n+i)];o<a&&l.push(k(u.CodeInfo,t.lineStart+o,t.lineStart+a));for(let h=!0,f=!0,p=!1;t.nextLine()&&e.depth>=t.stack.length;h=!1){let d=e.pos;if(e.indent-e.baseIndent<4)for(;d<e.text.length&&e.text.charCodeAt(d)==s;)d++;if(d-e.pos>=i&&e.skipSpace(d)==e.text.length){for(let c of e.markers)l.push(c);f&&p&&x(l,t.lineStart-1,t.lineStart),l.push(k(u.CodeMark,t.lineStart+e.pos,t.lineStart+d)),t.nextLine();break}else{p=!0,h||(x(l,t.lineStart-1,t.lineStart),f=!1);for(let g of e.markers)l.push(g);let c=t.lineStart+e.basePos,L=t.lineStart+e.text.length;c<L&&(x(l,c,L),f=!1)}}return t.addNode(t.buffer.writeElements(l,-n).finish(u.FencedCode,t.prevLineEnd()-n),n),!0},Blockquote(t,e){let r=ve(e);return r<0?!1:(t.startContext(u.Blockquote,e.pos),t.addNode(u.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+r),null)},HorizontalRule(t,e){if(se(e,t,!1)<0)return!1;let r=t.lineStart+e.pos;return t.nextLine(),t.addNode(u.HorizontalRule,r),!0},BulletList(t,e){let r=ie(e,t,!1);if(r<0)return!1;t.block.type!=u.BulletList&&t.startContext(u.BulletList,e.basePos,e.next);let n=ce(e,e.pos+1);return t.startContext(u.ListItem,e.basePos,n-e.baseIndent),t.addNode(u.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+r),e.moveBaseColumn(n),null},OrderedList(t,e){let r=oe(e,t,!1);if(r<0)return!1;t.block.type!=u.OrderedList&&t.startContext(u.OrderedList,e.basePos,e.text.charCodeAt(e.pos+r-1));let n=ce(e,e.pos+r);return t.startContext(u.ListItem,e.basePos,n-e.baseIndent),t.addNode(u.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+r),e.moveBaseColumn(n),null},ATXHeading(t,e){let r=ye(e);if(r<0)return!1;let n=e.pos,s=t.lineStart+n,i=pe(e.text,e.text.length,n),o=i;for(;o>n&&e.text.charCodeAt(o-1)==e.next;)o--;(o==i||o==n||!A(e.text.charCodeAt(o-1)))&&(o=e.text.length);let a=t.buffer.write(u.HeaderMark,0,r).writeElements(t.parser.parseInline(e.text.slice(n+r+1,o),s+r+1),-s);o<e.text.length&&a.write(u.HeaderMark,o-n,i-n);let l=a.finish(u.ATXHeading1-1+r,e.text.length-n);return t.nextLine(),t.addNode(l,s),!0},HTMLBlock(t,e){let r=ze(e,t,!1);if(r<0)return!1;let n=t.lineStart+e.pos,s=ee[r][1],i=[],o=s!=W;for(;!s.test(e.text)&&t.nextLine();){if(e.depth<t.stack.length){o=!1;break}for(let h of e.markers)i.push(h)}o&&t.nextLine();let a=s==Oe?u.CommentBlock:s==Te?u.ProcessingInstructionBlock:u.HTMLBlock,l=t.prevLineEnd();return t.addNode(t.buffer.writeElements(i,-n).finish(a,l-n),n),!0},SetextHeading:void 0};class At{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,r,n){if(this.stage==-1)return!1;let s=n.content+`
2
2
  `+r.scrub(),i=this.advance(s);return i>-1&&i<s.length?this.complete(e,n,i):!1}finish(e,r){return(this.stage==2||this.stage==3)&&O(r.content,this.pos)==r.content.length?this.complete(e,r,r.content.length):!1}complete(e,r,n){return e.addLeafElement(r,k(u.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(Qe(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(k(u.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(qe(e,O(e,this.pos),this.start)))return-1}else if(this.stage==2){let r=O(e,this.pos),n=0;if(r>this.pos){let s=Ze(e,r,this.start);if(s){let i=V(e,s.to-this.start);i>0&&(this.nextStage(s),n=i)}}return n||(n=V(e,this.pos)),n>0&&n<e.length?n:-1}else return V(e,this.pos)}}}function V(t,e){for(;e<t.length;e++){let r=t.charCodeAt(e);if(r==10)break;if(!A(r))return-1}return e}class xt{nextLine(e,r,n){let s=r.depth<e.stack.length?-1:Re(r),i=r.next;if(s<0)return!1;let o=k(u.HeaderMark,e.lineStart+r.pos,e.lineStart+s);return e.nextLine(),e.addLeafElement(n,k(i==61?u.SetextHeading1:u.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),o])),!0}finish(){return!1}}const De={LinkReference(t,e){return e.content.charCodeAt(0)==91?new At(e):null},SetextHeading(){return new xt}},Bt=[(t,e)=>ye(e)>=0,(t,e)=>Pe(e)>=0,(t,e)=>ve(e)>=0,(t,e)=>ie(e,t,!0)>=0,(t,e)=>oe(e,t,!0)>=0,(t,e)=>se(e,t,!0)>=0,(t,e)=>ze(e,t,!0)>=0],Et={text:"",end:0};class It{constructor(e,r,n,s){this.parser=e,this.input=r,this.ranges=s,this.line=new Ct,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=s[s.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=s[0].from,this.block=_.create(u.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new Pt(n,r):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let n=0;;){let s=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;n<e.markers.length&&(!s||e.markers[n].from<s.end);){let i=e.markers[n++];this.addNode(i.type,i.from,i.to)}if(!s)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let n of this.parser.blockParsers)if(n){let s=n(this,e);if(s!=!1){if(s==!0)return null;e.forward();continue e}}break}let r=new St(this.lineStart+e.pos,e.text.slice(e.pos));for(let n of this.parser.leafBlockParsers)if(n){let s=n(this,r);s&&r.parsers.push(s)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,r))break e}for(let n of r.parsers)if(n.nextLine(this,e,r))return null;r.content+=`
3
3
  `+e.scrub();for(let n of e.markers)r.marks.push(n)}return this.finishLeaf(r),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let r=this.fragments.takeNodes(this);return r?(this.absoluteLineStart+=r,this.lineStart=Ve(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let r=Et;if(r.end=e,e>=this.to)r.text="";else if(r.text=this.lineChunkAt(e),r.end+=r.text.length,this.ranges.length>1){let n=this.absoluteLineStart,s=this.rangeI;for(;this.ranges[s].to<r.end;){s++;let i=this.ranges[s].from,o=this.lineChunkAt(i);r.end=i+o.length,r.text=r.text.slice(0,this.ranges[s-1].to-n)+o,n=r.end-r.text.length}}return r}readLine(){let{line:e}=this,{text:r,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(r);e.depth<this.stack.length;e.depth++){let s=this.stack[e.depth],i=this.parser.skipContextMarkup[s.type];if(!i)throw new Error("Unhandled block context "+u[s.type]);let o=this.line.markers.length;if(!i(s,this,e)){this.line.markers.length>o&&(s.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let r=this.input.chunk(e),n;if(this.input.lineChunks)n=r==`
4
4
  `?"":r;else{let s=r.indexOf(`
@@ -1 +1 @@
1
- import{r as c,j as Ce}from"./index-BMR65QI4.js";import{a4 as xe,a5 as Ee,a6 as _e,a7 as Te,a8 as Oe,a9 as $e,aa as Le,ab as Me,ac as We,ad as Be,ae as Ne,af as Ke,ag as we,ah as De,q as Y,ai as He,aj as Se,ak as Ie,al as je,am as Ae,an as Ue,ao as ze,ap as Ge,aq as Re,$ as Fe,Z as pe,ar as Pe,E as g,as as Ve,t as a,at as qe,au as Je,S as Ye,av as Ze}from"./index-oU5xA1N3.js";function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ie.apply(null,arguments)}function Qe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ce=function(t){t===void 0&&(t={});var r=t,n=r.crosshairCursor,h=n===void 0?!1:n,o=[];t.closeBracketsKeymap!==!1&&(o=o.concat(xe)),t.defaultKeymap!==!1&&(o=o.concat(Ee)),t.searchKeymap!==!1&&(o=o.concat(_e)),t.historyKeymap!==!1&&(o=o.concat(Te)),t.foldKeymap!==!1&&(o=o.concat(Oe)),t.completionKeymap!==!1&&(o=o.concat($e)),t.lintKeymap!==!1&&(o=o.concat(Le));var i=[];return t.lineNumbers!==!1&&i.push(Me()),t.highlightActiveLineGutter!==!1&&i.push(We()),t.highlightSpecialChars!==!1&&i.push(Be()),t.history!==!1&&i.push(Ne()),t.foldGutter!==!1&&i.push(Ke()),t.drawSelection!==!1&&i.push(we()),t.dropCursor!==!1&&i.push(De()),t.allowMultipleSelections!==!1&&i.push(Y.allowMultipleSelections.of(!0)),t.indentOnInput!==!1&&i.push(He()),t.syntaxHighlighting!==!1&&i.push(Se(Pe,{fallback:!0})),t.bracketMatching!==!1&&i.push(Ie()),t.closeBrackets!==!1&&i.push(je()),t.autocompletion!==!1&&i.push(Ae()),t.rectangularSelection!==!1&&i.push(Ue()),h!==!1&&i.push(ze()),t.highlightActiveLine!==!1&&i.push(Ge()),t.highlightSelectionMatches!==!1&&i.push(Re()),t.tabSize&&typeof t.tabSize=="number"&&i.push(Fe.of(" ".repeat(t.tabSize))),i.concat([pe.of(o.flat())]).filter(Boolean)};const Xe="#e5c07b",he="#e06c75",et="#56b6c2",tt="#ffffff",J="#abb2bf",re="#7d8799",at="#61afef",it="#98c379",ue="#d19a66",rt="#c678dd",nt="#21252b",de="#2c313a",fe="#282c34",ee="#353a42",ot="#3E4451",me="#528bff",st=g.theme({"&":{color:J,backgroundColor:fe},".cm-content":{caretColor:me},".cm-cursor, .cm-dropCursor":{borderLeftColor:me},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:ot},".cm-panels":{backgroundColor:nt,color:J},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:fe,color:re,border:"none"},".cm-activeLineGutter":{backgroundColor:de},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:ee},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:ee,borderBottomColor:ee},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:de,color:J}}},{dark:!0}),lt=Ve.define([{tag:a.keyword,color:rt},{tag:[a.name,a.deleted,a.character,a.propertyName,a.macroName],color:he},{tag:[a.function(a.variableName),a.labelName],color:at},{tag:[a.color,a.constant(a.name),a.standard(a.name)],color:ue},{tag:[a.definition(a.name),a.separator],color:J},{tag:[a.typeName,a.className,a.number,a.changed,a.annotation,a.modifier,a.self,a.namespace],color:Xe},{tag:[a.operator,a.operatorKeyword,a.url,a.escape,a.regexp,a.link,a.special(a.string)],color:et},{tag:[a.meta,a.comment],color:re},{tag:a.strong,fontWeight:"bold"},{tag:a.emphasis,fontStyle:"italic"},{tag:a.strikethrough,textDecoration:"line-through"},{tag:a.link,color:re,textDecoration:"underline"},{tag:a.heading,fontWeight:"bold",color:he},{tag:[a.atom,a.bool,a.special(a.variableName)],color:ue},{tag:[a.processingInstruction,a.string,a.inserted],color:it},{tag:a.invalid,color:tt}]),ct=[st,Se(lt)];var ht=g.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),ut=function(t){t===void 0&&(t={});var r=t,n=r.indentWithTab,h=n===void 0?!0:n,o=r.editable,i=o===void 0?!0:o,b=r.readOnly,_=b===void 0?!1:b,v=r.theme,S=v===void 0?"light":v,p=r.placeholder,y=p===void 0?"":p,m=r.basicSetup,u=m===void 0?!0:m,l=[];switch(h&&l.unshift(pe.of([qe])),u&&(typeof u=="boolean"?l.unshift(ce()):l.unshift(ce(u))),y&&l.unshift(Je(y)),S){case"light":l.push(ht);break;case"dark":l.push(ct);break;case"none":break;default:l.push(S);break}return i===!1&&l.push(g.editable.of(!1)),_&&l.push(Y.readOnly.of(!0)),[...l]},dt=e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(t=>!t.empty)});class ft{constructor(t,r){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=r,this.timeoutMS=r,this.callbacks.push(t)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var t=this.callbacks.slice();this.callbacks.length=0,t.forEach(r=>{try{r()}catch(n){console.error("TimeoutLatch callback error:",n)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}}class ge{constructor(){this.interval=null,this.latches=new Set}add(t){this.latches.add(t),this.start()}remove(t){this.latches.delete(t),this.latches.size===0&&this.stop()}start(){this.interval===null&&(this.interval=setInterval(()=>{this.latches.forEach(t=>{t.tick(),t.isDone&&this.remove(t)})},1))}stop(){this.interval!==null&&(clearInterval(this.interval),this.interval=null)}}var te=null,mt=()=>typeof window>"u"?new ge:(te||(te=new ge),te),gt=g.theme({"& .cm-scroller":{height:"100% !important"}}),be=null,ae=null;function bt(e,t,r,n,h,o){if(!e&&!t&&!r&&!n&&!h&&!o)return null;var i=JSON.stringify({height:e,minHeight:t,maxHeight:r,width:n,minWidth:h,maxWidth:o});return i===be||(be=i,ae=g.theme({"&":{height:e,minHeight:t,maxHeight:r,width:n,minWidth:h,maxWidth:o}})),ae}var ve=Ze.define(),vt=200,St=[];function pt(e){var t=e.value,r=e.selection,n=e.onChange,h=e.onStatistics,o=e.onCreateEditor,i=e.onUpdate,b=e.extensions,_=b===void 0?St:b,v=e.autoFocus,S=e.theme,p=S===void 0?"light":S,y=e.height,m=y===void 0?null:y,u=e.minHeight,l=u===void 0?null:u,W=e.maxHeight,B=W===void 0?null:W,N=e.width,K=N===void 0?null:N,w=e.minWidth,D=w===void 0?null:w,H=e.maxWidth,I=H===void 0?null:H,j=e.placeholder,A=j===void 0?"":j,U=e.editable,z=U===void 0?!0:U,G=e.readOnly,T=G===void 0?!1:G,k=e.indentWithTab,O=k===void 0?!0:k,$=e.basicSetup,R=$===void 0?!0:$,F=e.root,L=e.initialState,P=c.useState(),C=P[0],ne=P[1],oe=c.useState(),s=oe[0],V=oe[1],se=c.useState(),Z=se[0],Q=se[1],d=c.useState(()=>({current:null}))[0],q=c.useState(()=>({current:null}))[0],le=bt(m,l,B,K,D,I),ye=g.updateListener.of(f=>{if(f.docChanged&&typeof n=="function"&&!f.transactions.some(X=>X.annotation(ve))){d.current?d.current.reset():(d.current=new ft(()=>{if(q.current){var X=q.current;q.current=null,X()}d.current=null},vt),mt().add(d.current));var x=f.state.doc,E=x.toString();n(E,f)}h&&h(dt(f))}),ke=ut({theme:p,editable:z,readOnly:T,placeholder:A,indentWithTab:O,basicSetup:R}),M=[ye,...le?[le]:[],gt,...ke];return i&&typeof i=="function"&&M.push(g.updateListener.of(i)),M=M.concat(_),c.useLayoutEffect(()=>{if(C&&!Z){var f={doc:t,selection:r,extensions:M},x=L?Y.fromJSON(L.json,f,L.fields):Y.create(f);if(Q(x),!s){var E=new g({state:x,parent:C,root:F});V(E),o&&o(E,x)}}return()=>{s&&(Q(void 0),V(void 0))}},[C,Z]),c.useEffect(()=>{e.container&&ne(e.container)},[e.container]),c.useEffect(()=>()=>{s&&(s.destroy(),V(void 0)),d.current&&(d.current.cancel(),d.current=null)},[s]),c.useEffect(()=>{v&&s&&s.focus()},[v,s]),c.useEffect(()=>{s&&s.dispatch({effects:Ye.reconfigure.of(M)})},[p,_,m,l,B,K,D,I,A,z,T,O,R,n,i]),c.useEffect(()=>{if(t!==void 0){var f=s?s.state.doc.toString():"";if(s&&t!==f){var x=d.current&&!d.current.isDone,E=()=>{s&&t!==s.state.doc.toString()&&s.dispatch({changes:{from:0,to:s.state.doc.toString().length,insert:t||""},annotations:[ve.of(!0)]})};x?q.current=E:E()}}},[t,s]),{state:Z,setState:Q,view:s,setView:V,container:C,setContainer:ne}}var yt=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],kt=c.forwardRef((e,t)=>{var r=e.className,n=e.value,h=n===void 0?"":n,o=e.selection,i=e.extensions,b=i===void 0?[]:i,_=e.onChange,v=e.onStatistics,S=e.onCreateEditor,p=e.onUpdate,y=e.autoFocus,m=e.theme,u=m===void 0?"light":m,l=e.height,W=e.minHeight,B=e.maxHeight,N=e.width,K=e.minWidth,w=e.maxWidth,D=e.basicSetup,H=e.placeholder,I=e.indentWithTab,j=e.editable,A=e.readOnly,U=e.root,z=e.initialState,G=Qe(e,yt),T=c.useRef(null),k=pt({root:U,value:h,autoFocus:y,theme:u,height:l,minHeight:W,maxHeight:B,width:N,minWidth:K,maxWidth:w,basicSetup:D,placeholder:H,indentWithTab:I,editable:j,readOnly:A,selection:o,onChange:_,onStatistics:v,onCreateEditor:S,onUpdate:p,extensions:b,initialState:z}),O=k.state,$=k.view,R=k.container,F=k.setContainer;c.useImperativeHandle(t,()=>({editor:T.current,state:O,view:$}),[T,R,O,$]);var L=c.useCallback(C=>{T.current=C,F(C)},[F]);if(typeof h!="string")throw new Error("value must be typeof string but got "+typeof h);var P=typeof u=="string"?"cm-theme-"+u:"cm-theme";return Ce.jsx("div",ie({ref:L,className:""+P+(r?" "+r:"")},G))});kt.displayName="CodeMirror";export{kt as R};
1
+ import{r as c,j as Ce}from"./index-B4TIVWAq.js";import{a4 as xe,a5 as Ee,a6 as _e,a7 as Te,a8 as Oe,a9 as $e,aa as Le,ab as Me,ac as We,ad as Be,ae as Ne,af as Ke,ag as we,ah as De,q as Y,ai as He,aj as Se,ak as Ie,al as je,am as Ae,an as Ue,ao as ze,ap as Ge,aq as Re,$ as Fe,Z as pe,ar as Pe,E as g,as as Ve,t as a,at as qe,au as Je,S as Ye,av as Ze}from"./index-BzVyUKXW.js";function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ie.apply(null,arguments)}function Qe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ce=function(t){t===void 0&&(t={});var r=t,n=r.crosshairCursor,h=n===void 0?!1:n,o=[];t.closeBracketsKeymap!==!1&&(o=o.concat(xe)),t.defaultKeymap!==!1&&(o=o.concat(Ee)),t.searchKeymap!==!1&&(o=o.concat(_e)),t.historyKeymap!==!1&&(o=o.concat(Te)),t.foldKeymap!==!1&&(o=o.concat(Oe)),t.completionKeymap!==!1&&(o=o.concat($e)),t.lintKeymap!==!1&&(o=o.concat(Le));var i=[];return t.lineNumbers!==!1&&i.push(Me()),t.highlightActiveLineGutter!==!1&&i.push(We()),t.highlightSpecialChars!==!1&&i.push(Be()),t.history!==!1&&i.push(Ne()),t.foldGutter!==!1&&i.push(Ke()),t.drawSelection!==!1&&i.push(we()),t.dropCursor!==!1&&i.push(De()),t.allowMultipleSelections!==!1&&i.push(Y.allowMultipleSelections.of(!0)),t.indentOnInput!==!1&&i.push(He()),t.syntaxHighlighting!==!1&&i.push(Se(Pe,{fallback:!0})),t.bracketMatching!==!1&&i.push(Ie()),t.closeBrackets!==!1&&i.push(je()),t.autocompletion!==!1&&i.push(Ae()),t.rectangularSelection!==!1&&i.push(Ue()),h!==!1&&i.push(ze()),t.highlightActiveLine!==!1&&i.push(Ge()),t.highlightSelectionMatches!==!1&&i.push(Re()),t.tabSize&&typeof t.tabSize=="number"&&i.push(Fe.of(" ".repeat(t.tabSize))),i.concat([pe.of(o.flat())]).filter(Boolean)};const Xe="#e5c07b",he="#e06c75",et="#56b6c2",tt="#ffffff",J="#abb2bf",re="#7d8799",at="#61afef",it="#98c379",ue="#d19a66",rt="#c678dd",nt="#21252b",de="#2c313a",fe="#282c34",ee="#353a42",ot="#3E4451",me="#528bff",st=g.theme({"&":{color:J,backgroundColor:fe},".cm-content":{caretColor:me},".cm-cursor, .cm-dropCursor":{borderLeftColor:me},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:ot},".cm-panels":{backgroundColor:nt,color:J},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:fe,color:re,border:"none"},".cm-activeLineGutter":{backgroundColor:de},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:ee},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:ee,borderBottomColor:ee},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:de,color:J}}},{dark:!0}),lt=Ve.define([{tag:a.keyword,color:rt},{tag:[a.name,a.deleted,a.character,a.propertyName,a.macroName],color:he},{tag:[a.function(a.variableName),a.labelName],color:at},{tag:[a.color,a.constant(a.name),a.standard(a.name)],color:ue},{tag:[a.definition(a.name),a.separator],color:J},{tag:[a.typeName,a.className,a.number,a.changed,a.annotation,a.modifier,a.self,a.namespace],color:Xe},{tag:[a.operator,a.operatorKeyword,a.url,a.escape,a.regexp,a.link,a.special(a.string)],color:et},{tag:[a.meta,a.comment],color:re},{tag:a.strong,fontWeight:"bold"},{tag:a.emphasis,fontStyle:"italic"},{tag:a.strikethrough,textDecoration:"line-through"},{tag:a.link,color:re,textDecoration:"underline"},{tag:a.heading,fontWeight:"bold",color:he},{tag:[a.atom,a.bool,a.special(a.variableName)],color:ue},{tag:[a.processingInstruction,a.string,a.inserted],color:it},{tag:a.invalid,color:tt}]),ct=[st,Se(lt)];var ht=g.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),ut=function(t){t===void 0&&(t={});var r=t,n=r.indentWithTab,h=n===void 0?!0:n,o=r.editable,i=o===void 0?!0:o,b=r.readOnly,_=b===void 0?!1:b,v=r.theme,S=v===void 0?"light":v,p=r.placeholder,y=p===void 0?"":p,m=r.basicSetup,u=m===void 0?!0:m,l=[];switch(h&&l.unshift(pe.of([qe])),u&&(typeof u=="boolean"?l.unshift(ce()):l.unshift(ce(u))),y&&l.unshift(Je(y)),S){case"light":l.push(ht);break;case"dark":l.push(ct);break;case"none":break;default:l.push(S);break}return i===!1&&l.push(g.editable.of(!1)),_&&l.push(Y.readOnly.of(!0)),[...l]},dt=e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(t=>!t.empty)});class ft{constructor(t,r){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=r,this.timeoutMS=r,this.callbacks.push(t)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var t=this.callbacks.slice();this.callbacks.length=0,t.forEach(r=>{try{r()}catch(n){console.error("TimeoutLatch callback error:",n)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}}class ge{constructor(){this.interval=null,this.latches=new Set}add(t){this.latches.add(t),this.start()}remove(t){this.latches.delete(t),this.latches.size===0&&this.stop()}start(){this.interval===null&&(this.interval=setInterval(()=>{this.latches.forEach(t=>{t.tick(),t.isDone&&this.remove(t)})},1))}stop(){this.interval!==null&&(clearInterval(this.interval),this.interval=null)}}var te=null,mt=()=>typeof window>"u"?new ge:(te||(te=new ge),te),gt=g.theme({"& .cm-scroller":{height:"100% !important"}}),be=null,ae=null;function bt(e,t,r,n,h,o){if(!e&&!t&&!r&&!n&&!h&&!o)return null;var i=JSON.stringify({height:e,minHeight:t,maxHeight:r,width:n,minWidth:h,maxWidth:o});return i===be||(be=i,ae=g.theme({"&":{height:e,minHeight:t,maxHeight:r,width:n,minWidth:h,maxWidth:o}})),ae}var ve=Ze.define(),vt=200,St=[];function pt(e){var t=e.value,r=e.selection,n=e.onChange,h=e.onStatistics,o=e.onCreateEditor,i=e.onUpdate,b=e.extensions,_=b===void 0?St:b,v=e.autoFocus,S=e.theme,p=S===void 0?"light":S,y=e.height,m=y===void 0?null:y,u=e.minHeight,l=u===void 0?null:u,W=e.maxHeight,B=W===void 0?null:W,N=e.width,K=N===void 0?null:N,w=e.minWidth,D=w===void 0?null:w,H=e.maxWidth,I=H===void 0?null:H,j=e.placeholder,A=j===void 0?"":j,U=e.editable,z=U===void 0?!0:U,G=e.readOnly,T=G===void 0?!1:G,k=e.indentWithTab,O=k===void 0?!0:k,$=e.basicSetup,R=$===void 0?!0:$,F=e.root,L=e.initialState,P=c.useState(),C=P[0],ne=P[1],oe=c.useState(),s=oe[0],V=oe[1],se=c.useState(),Z=se[0],Q=se[1],d=c.useState(()=>({current:null}))[0],q=c.useState(()=>({current:null}))[0],le=bt(m,l,B,K,D,I),ye=g.updateListener.of(f=>{if(f.docChanged&&typeof n=="function"&&!f.transactions.some(X=>X.annotation(ve))){d.current?d.current.reset():(d.current=new ft(()=>{if(q.current){var X=q.current;q.current=null,X()}d.current=null},vt),mt().add(d.current));var x=f.state.doc,E=x.toString();n(E,f)}h&&h(dt(f))}),ke=ut({theme:p,editable:z,readOnly:T,placeholder:A,indentWithTab:O,basicSetup:R}),M=[ye,...le?[le]:[],gt,...ke];return i&&typeof i=="function"&&M.push(g.updateListener.of(i)),M=M.concat(_),c.useLayoutEffect(()=>{if(C&&!Z){var f={doc:t,selection:r,extensions:M},x=L?Y.fromJSON(L.json,f,L.fields):Y.create(f);if(Q(x),!s){var E=new g({state:x,parent:C,root:F});V(E),o&&o(E,x)}}return()=>{s&&(Q(void 0),V(void 0))}},[C,Z]),c.useEffect(()=>{e.container&&ne(e.container)},[e.container]),c.useEffect(()=>()=>{s&&(s.destroy(),V(void 0)),d.current&&(d.current.cancel(),d.current=null)},[s]),c.useEffect(()=>{v&&s&&s.focus()},[v,s]),c.useEffect(()=>{s&&s.dispatch({effects:Ye.reconfigure.of(M)})},[p,_,m,l,B,K,D,I,A,z,T,O,R,n,i]),c.useEffect(()=>{if(t!==void 0){var f=s?s.state.doc.toString():"";if(s&&t!==f){var x=d.current&&!d.current.isDone,E=()=>{s&&t!==s.state.doc.toString()&&s.dispatch({changes:{from:0,to:s.state.doc.toString().length,insert:t||""},annotations:[ve.of(!0)]})};x?q.current=E:E()}}},[t,s]),{state:Z,setState:Q,view:s,setView:V,container:C,setContainer:ne}}var yt=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],kt=c.forwardRef((e,t)=>{var r=e.className,n=e.value,h=n===void 0?"":n,o=e.selection,i=e.extensions,b=i===void 0?[]:i,_=e.onChange,v=e.onStatistics,S=e.onCreateEditor,p=e.onUpdate,y=e.autoFocus,m=e.theme,u=m===void 0?"light":m,l=e.height,W=e.minHeight,B=e.maxHeight,N=e.width,K=e.minWidth,w=e.maxWidth,D=e.basicSetup,H=e.placeholder,I=e.indentWithTab,j=e.editable,A=e.readOnly,U=e.root,z=e.initialState,G=Qe(e,yt),T=c.useRef(null),k=pt({root:U,value:h,autoFocus:y,theme:u,height:l,minHeight:W,maxHeight:B,width:N,minWidth:K,maxWidth:w,basicSetup:D,placeholder:H,indentWithTab:I,editable:j,readOnly:A,selection:o,onChange:_,onStatistics:v,onCreateEditor:S,onUpdate:p,extensions:b,initialState:z}),O=k.state,$=k.view,R=k.container,F=k.setContainer;c.useImperativeHandle(t,()=>({editor:T.current,state:O,view:$}),[T,R,O,$]);var L=c.useCallback(C=>{T.current=C,F(C)},[F]);if(typeof h!="string")throw new Error("value must be typeof string but got "+typeof h);var P=typeof u=="string"?"cm-theme-"+u:"cm-theme";return Ce.jsx("div",ie({ref:L,className:""+P+(r?" "+r:"")},G))});kt.displayName="CodeMirror";export{kt as R};
@@ -1 +1 @@
1
- import{L as t,j as e,N as l,O as i,B as r}from"./index-BMR65QI4.js";import{T as x,Q as p,R as u}from"./index-BMR65QI4.js";function d(){const{pendingOffer:s,pendingOfferId:a,acceptOffer:n,declineOffer:o}=t();return!s||a===null||!s.offerLine?null:e.jsxs(l.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},role:"group","aria-label":"DorkBot suggestion",className:"bg-secondary/60 mt-1.5 flex flex-col gap-2 rounded-lg border p-3",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("span",{className:"mt-0.5 shrink-0",children:[e.jsx(i,{size:18,className:"dark:hidden"}),e.jsx(i,{variant:"white",size:18,className:"hidden dark:block"})]}),e.jsx("p",{className:"text-sm leading-relaxed",children:s.offerLine})]}),e.jsxs("div",{className:"flex items-center gap-2 pl-6",children:[e.jsx(r,{size:"sm",onClick:()=>n(a),children:"Show me"}),e.jsx(r,{size:"sm",variant:"ghost",onClick:()=>o(a),children:"Later"})]})]})}export{x as TOUR_DEFINITIONS,p as TourHost,d as TourOfferChips,u as useTourOccasions,t as useTours};
1
+ import{G as t,j as e,J as l,K as i,B as r}from"./index-B4TIVWAq.js";import{T as x,L as p,N as u}from"./index-B4TIVWAq.js";function d(){const{pendingOffer:s,pendingOfferId:a,acceptOffer:n,declineOffer:o}=t();return!s||a===null||!s.offerLine?null:e.jsxs(l.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},role:"group","aria-label":"DorkBot suggestion",className:"bg-secondary/60 mt-1.5 flex flex-col gap-2 rounded-lg border p-3",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("span",{className:"mt-0.5 shrink-0",children:[e.jsx(i,{size:18,className:"dark:hidden"}),e.jsx(i,{variant:"white",size:18,className:"hidden dark:block"})]}),e.jsx("p",{className:"text-sm leading-relaxed",children:s.offerLine})]}),e.jsxs("div",{className:"flex items-center gap-2 pl-6",children:[e.jsx(r,{size:"sm",onClick:()=>n(a),children:"Show me"}),e.jsx(r,{size:"sm",variant:"ghost",onClick:()=>o(a),children:"Later"})]})]})}export{x as TOUR_DEFINITIONS,p as TourHost,d as TourOfferChips,u as useTourOccasions,t as useTours};