pi-roundtable-web 0.28.0 → 0.29.1

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 (236) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +4 -4
  3. package/dist/chunk-account-66e6ezdq.js +1 -0
  4. package/dist/{chunk-action-menu-qpp9bdxh.js → chunk-action-menu-ap5xn7bf.js} +1 -1
  5. package/dist/chunk-agent-sapt5qhn.js +1 -0
  6. package/dist/chunk-arranged-rooms-n6bk696f.js +1 -0
  7. package/dist/chunk-attachments-p5v9gqyt.js +102 -0
  8. package/dist/chunk-bulk-actions-aze4ewc4.js +1 -0
  9. package/dist/chunk-character-creator-m7tw20ef.js +225 -0
  10. package/dist/{chunk-codeeditor-jgj32247.js → chunk-codeeditor-yy6pq8mv.js} +2 -2
  11. package/dist/chunk-confirm-0cajsfhk.js +1 -0
  12. package/dist/chunk-connectors-tw0tbm21.js +37 -0
  13. package/dist/chunk-conversations-wkm23m5r.js +1 -0
  14. package/dist/chunk-council-sheet-mz7s23nq.js +2 -0
  15. package/dist/chunk-council-view-zgvzxtgn.js +1 -0
  16. package/dist/{chunk-drag-04qfef58.js → chunk-drag-d1bpy8w6.js} +1 -1
  17. package/dist/{chunk-entry-mws704mc.js → chunk-entry-7zr5b1fp.js} +1 -1
  18. package/dist/chunk-folder-list-bs4eh3g9.js +1 -0
  19. package/dist/chunk-folds-eez1q41c.js +1 -0
  20. package/dist/{chunk-gate-vxetvn8t.js → chunk-gate-dt91egcd.js} +1 -1
  21. package/dist/chunk-host-icons-nfe2t8tk.js +1 -0
  22. package/dist/chunk-host-picture-4rtswxwa.js +1 -0
  23. package/dist/chunk-host-state-1vxzmmq6.js +1 -0
  24. package/dist/chunk-host-ui-x38bf0et.js +1 -0
  25. package/dist/{chunk-index-zj0gjcvr.js → chunk-index-0h99xcs3.js} +2 -2
  26. package/dist/{chunk-index-e2gy763y.js → chunk-index-1kb8tv4v.js} +2 -2
  27. package/dist/chunk-index-24cggw6k.js +50 -0
  28. package/dist/chunk-index-2g8xtwqg.js +2 -0
  29. package/dist/chunk-index-3n38xe7m.js +2 -0
  30. package/dist/{chunk-index-n0cmnwd2.js → chunk-index-3tksdmx7.js} +2 -2
  31. package/dist/{chunk-index-2822z600.js → chunk-index-4a1tdadd.js} +3 -3
  32. package/dist/{chunk-index-2syyyjnq.js → chunk-index-53fwc7sc.js} +2 -2
  33. package/dist/chunk-index-55ps4x5n.js +2 -0
  34. package/dist/{chunk-index-q5fyrtx4.js → chunk-index-5j1v2q7w.js} +1 -1
  35. package/dist/chunk-index-5w6tb7p0.js +2 -0
  36. package/dist/chunk-index-6btdp13p.js +2 -0
  37. package/dist/chunk-index-6m7dwsmv.js +1 -0
  38. package/dist/{chunk-index-20xgx0k2.js → chunk-index-6rdywten.js} +2 -2
  39. package/dist/{chunk-index-3gfbhmpb.js → chunk-index-6s2pqwna.js} +2 -2
  40. package/dist/{chunk-index-fepsbhr6.js → chunk-index-7mrkq793.js} +2 -2
  41. package/dist/chunk-index-7xcbpeqz.js +2 -0
  42. package/dist/chunk-index-88wh5eyj.js +2 -0
  43. package/dist/{chunk-index-6cg8xp1c.js → chunk-index-8pbwr3rs.js} +1 -1
  44. package/dist/{chunk-index-jc3r4qam.js → chunk-index-8wpvj7k5.js} +2 -2
  45. package/dist/chunk-index-97dcp1vh.js +1 -0
  46. package/dist/chunk-index-a7e6rhxy.js +2 -0
  47. package/dist/{chunk-index-2tr41qht.js → chunk-index-bxf8eq1s.js} +2 -2
  48. package/dist/chunk-index-c8gm1crh.js +120 -0
  49. package/dist/{chunk-index-2y8r4s4f.js → chunk-index-ce7hsda9.js} +2 -2
  50. package/dist/chunk-index-cfesmk1f.js +2 -0
  51. package/dist/{chunk-index-m81362sc.js → chunk-index-cmzvq3nf.js} +1 -1
  52. package/dist/{chunk-index-7qd604rq.js → chunk-index-d4mx2vvf.js} +1 -1
  53. package/dist/chunk-index-d74tpnkd.js +2 -0
  54. package/dist/chunk-index-d941ae7c.js +2 -0
  55. package/dist/{chunk-index-e35v554x.js → chunk-index-dr0jr7d3.js} +3 -3
  56. package/dist/chunk-index-en728705.js +2 -0
  57. package/dist/chunk-index-fb3kzyyp.js +2 -0
  58. package/dist/{chunk-index-3yy10a5h.js → chunk-index-ffnd0jcj.js} +2 -2
  59. package/dist/chunk-index-fn6305vn.js +3 -0
  60. package/dist/{chunk-index-zcfr8jdv.js → chunk-index-gdh7wsd5.js} +12 -12
  61. package/dist/{chunk-index-2hvn2kte.js → chunk-index-m76gdwnk.js} +2 -2
  62. package/dist/chunk-index-mr391t49.js +2 -0
  63. package/dist/chunk-index-n3khm9fq.js +2 -0
  64. package/dist/{chunk-index-sm7kfb07.js → chunk-index-nn4w6a04.js} +2 -2
  65. package/dist/{chunk-index-gwkhs8s3.js → chunk-index-nr275sa7.js} +2 -2
  66. package/dist/{chunk-index-x60n1me6.js → chunk-index-pgxgq61x.js} +2 -2
  67. package/dist/chunk-index-prq011b6.js +2 -0
  68. package/dist/{chunk-index-v9gbt5tz.js → chunk-index-q4k9vk04.js} +19 -3
  69. package/dist/chunk-index-rgdaec7y.js +2 -0
  70. package/dist/chunk-index-rjs1can6.js +2 -0
  71. package/dist/chunk-index-s4a8e4qm.js +2 -0
  72. package/dist/{chunk-index-s9p27f9b.js → chunk-index-sz381vda.js} +3 -3
  73. package/dist/{chunk-index-5hbq6g2e.css → chunk-index-t7csmbpy.css} +1 -1
  74. package/dist/{chunk-index-rgf4rvns.js → chunk-index-v9jqyr1f.js} +3 -3
  75. package/dist/{chunk-index-rsd8rftk.js → chunk-index-vpq2cj14.js} +2 -2
  76. package/dist/chunk-index-vsaggfns.js +2 -0
  77. package/dist/{chunk-index-p7jkr7gv.js → chunk-index-w17wgjby.js} +5 -5
  78. package/dist/{chunk-index-c7dbvkrq.js → chunk-index-wgrx2ybn.js} +2 -2
  79. package/dist/chunk-index-wsv46y9p.js +2 -0
  80. package/dist/{chunk-index-4t6vnwap.js → chunk-index-xbj816p0.js} +2 -2
  81. package/dist/{chunk-index-s53bxwkk.js → chunk-index-yr758n6t.js} +2 -2
  82. package/dist/{chunk-index-5t2jkecy.js → chunk-index-ysv36nbk.js} +2 -2
  83. package/dist/{chunk-index-zt19fdmc.js → chunk-index-ze9p4npm.js} +2 -2
  84. package/dist/chunk-index-zfdvyrjt.js +2 -0
  85. package/dist/chunk-lang-css-3h22se37.js +1 -0
  86. package/dist/{chunk-lang-dockerfile-n4bt8jbt.js → chunk-lang-dockerfile-y24eejnh.js} +1 -1
  87. package/dist/{chunk-lang-go-9k4y107e.js → chunk-lang-go-qzgv1161.js} +3 -3
  88. package/dist/chunk-lang-html-9rvrmmpg.js +1 -0
  89. package/dist/chunk-lang-javascript-4kv8s3tk.js +1 -0
  90. package/dist/{chunk-lang-json-hr12bzs1.js → chunk-lang-json-99v80v88.js} +1 -1
  91. package/dist/{chunk-lang-markdown-ttzcpgkg.js → chunk-lang-markdown-gn8he877.js} +4 -4
  92. package/dist/{chunk-lang-python-ntj8maem.js → chunk-lang-python-prsw4p4k.js} +2 -2
  93. package/dist/{chunk-lang-rust-gv8y859d.js → chunk-lang-rust-g6xqta16.js} +1 -1
  94. package/dist/{chunk-lang-shell-5zzs09b7.js → chunk-lang-shell-dmpnzc6w.js} +1 -1
  95. package/dist/{chunk-lang-sql-6vmze4pg.js → chunk-lang-sql-wz7ca27b.js} +2 -2
  96. package/dist/{chunk-lang-toml-tt0d4rw9.js → chunk-lang-toml-160prtq4.js} +1 -1
  97. package/dist/chunk-lang-typescript-mp0yw903.js +1 -0
  98. package/dist/{chunk-lang-xml-r2sbqnjv.js → chunk-lang-xml-9htkz2dd.js} +1 -1
  99. package/dist/{chunk-lang-yaml-ex31qbph.js → chunk-lang-yaml-08749wd5.js} +1 -1
  100. package/dist/chunk-layout-actions-tdx896xf.js +1 -0
  101. package/dist/chunk-menu-items-trhybv1g.js +1 -0
  102. package/dist/chunk-mode-toggle-4dtfphq4.js +1 -0
  103. package/dist/{chunk-note-row-40ypghn9.js → chunk-note-row-28e5x7n8.js} +33 -4
  104. package/dist/chunk-notes-5nkayhw8.js +1 -0
  105. package/dist/chunk-notice-bell-xz8a04am.js +1 -0
  106. package/dist/{chunk-notices-tefx93s6.js → chunk-notices-d0cwvk27.js} +1 -1
  107. package/dist/chunk-onboarding-zs4rtea9.js +1 -0
  108. package/dist/{chunk-overview-zrx3bpwf.js → chunk-overview-9sb3ywa8.js} +1 -1
  109. package/dist/chunk-palette-5sfhrv4x.js +1 -0
  110. package/dist/chunk-placement-items-e2neja55.js +1 -0
  111. package/dist/{chunk-profile-tyb48b79.js → chunk-profile-jffhtpqf.js} +1 -1
  112. package/dist/chunk-prompt-history-1jz2gk3v.js +1 -0
  113. package/dist/chunk-prompts-0t30ttd0.js +1 -0
  114. package/dist/chunk-room-confirms-6595921h.js +1 -0
  115. package/dist/{chunk-room-menu-ha1evv71.js → chunk-room-menu-hwkjyxwe.js} +1 -1
  116. package/dist/chunk-rooms-menu-button-k0eq1tcr.js +1 -0
  117. package/dist/{chunk-schedules-a5pewkhd.js → chunk-schedules-e12y8fw2.js} +1 -1
  118. package/dist/{chunk-seat-menu-eh3ymmks.js → chunk-seat-menu-n2bcw0mf.js} +1 -1
  119. package/dist/chunk-sheet-hosts-myvm2vhd.js +29 -0
  120. package/dist/chunk-shortcut-help-434sqnxc.js +26 -0
  121. package/dist/chunk-shortcuts-mjxph0g7.js +1 -0
  122. package/dist/chunk-skill-editor-98492yrt.js +8 -0
  123. package/dist/chunk-skills-mfv8ppfh.js +1 -0
  124. package/dist/chunk-start-over-line-m526193z.js +16 -0
  125. package/dist/{chunk-switcher-list-dtfh87zy.js → chunk-switcher-list-5ngjar24.js} +1 -1
  126. package/dist/{chunk-tab-dot-qd640mjr.js → chunk-tab-dot-tzjkahj5.js} +1 -1
  127. package/dist/chunk-table-xbtbex2z.js +1 -0
  128. package/dist/{chunk-table2d-5nrhfwft.js → chunk-table2d-61bvrykm.js} +1 -1
  129. package/dist/{chunk-table3d-5cb66d99.js → chunk-table3d-5a7vbgyj.js} +172 -172
  130. package/dist/chunk-thread-actions-bf6vf2mt.js +1 -0
  131. package/dist/{chunk-thread-cards-kgt22sbp.js → chunk-thread-cards-n0n603vf.js} +1 -1
  132. package/dist/chunk-thread-list-7bkdn51x.js +227 -0
  133. package/dist/{chunk-transcript-a0p3vwh6.js → chunk-transcript-8ztrkt6g.js} +1 -1
  134. package/dist/chunk-waiting-chip-y83c90v3.js +32 -0
  135. package/dist/chunk-waiting-s273kcgz.js +1 -0
  136. package/dist/chunk-where-jr791gzj.js +1 -0
  137. package/dist/chunk-workspace-dw71mshw.js +586 -0
  138. package/dist/chunk-zh-tw-vm5d0w6j.js +1 -0
  139. package/dist/index.html +1 -1
  140. package/dist/sw.js +1 -1
  141. package/package.json +3 -3
  142. package/src/api-types.ts +51 -0
  143. package/src/app/app.ts +7 -0
  144. package/src/app/card-log.ts +10 -2
  145. package/src/app/protocol.ts +18 -0
  146. package/src/app/queued-delivery.ts +107 -0
  147. package/src/app/queued-frames.ts +115 -0
  148. package/src/app/room-log.ts +39 -7
  149. package/src/app/rooms.ts +30 -2
  150. package/src/app/routes.ts +123 -7
  151. package/src/app/skill-group-routes.ts +126 -0
  152. package/src/app/socket.ts +12 -2
  153. package/src/app/surface.ts +37 -6
  154. package/src/app/zip.ts +124 -0
  155. package/src/auth/sessions.ts +9 -1
  156. package/src/authz.ts +1 -0
  157. package/src/host/cards.ts +10 -3
  158. package/src/host/stored-json.ts +23 -0
  159. package/src/i18n/zh-tw.ts +45 -2
  160. package/src/notices/mount.ts +1 -0
  161. package/src/notices/store.ts +9 -1
  162. package/src/push/channel.ts +1 -0
  163. package/src/web-plugin.ts +5 -1
  164. package/dist/chunk-account-678dgbww.js +0 -1
  165. package/dist/chunk-agent-x0yvvdq2.js +0 -1
  166. package/dist/chunk-arranged-rooms-6rdkk8t1.js +0 -1
  167. package/dist/chunk-bulk-actions-zbwdaxtc.js +0 -1
  168. package/dist/chunk-character-creator-215psy17.js +0 -1
  169. package/dist/chunk-confirm-2pzrt272.js +0 -1
  170. package/dist/chunk-connectors-zha2d834.js +0 -37
  171. package/dist/chunk-conversations-fb071rez.js +0 -1
  172. package/dist/chunk-council-sheet-k5fycefd.js +0 -2
  173. package/dist/chunk-folder-list-qxhmczwv.js +0 -1
  174. package/dist/chunk-folds-b7asegfs.js +0 -1
  175. package/dist/chunk-group-scene-63yhh1mh.js +0 -1
  176. package/dist/chunk-group-table-zy4hmgk3.js +0 -1
  177. package/dist/chunk-host-icons-tyktazzz.js +0 -1
  178. package/dist/chunk-host-picture-ebhejn2k.js +0 -1
  179. package/dist/chunk-host-state-wajep0yr.js +0 -1
  180. package/dist/chunk-host-ui-pc9r24e3.js +0 -1
  181. package/dist/chunk-index-1af8vsyb.js +0 -2
  182. package/dist/chunk-index-254701sm.js +0 -3
  183. package/dist/chunk-index-31m1b2f5.js +0 -2
  184. package/dist/chunk-index-5vatmakn.js +0 -2
  185. package/dist/chunk-index-6yra9kdq.js +0 -2
  186. package/dist/chunk-index-9bdstf8t.js +0 -2
  187. package/dist/chunk-index-acj4xxgq.js +0 -100
  188. package/dist/chunk-index-aexy023z.js +0 -2
  189. package/dist/chunk-index-amxa2bn3.js +0 -2
  190. package/dist/chunk-index-bef0fc2m.js +0 -2
  191. package/dist/chunk-index-c6tphrjr.js +0 -1
  192. package/dist/chunk-index-cn49mawx.js +0 -50
  193. package/dist/chunk-index-gcmmwh8t.js +0 -2
  194. package/dist/chunk-index-h2vhv4kh.js +0 -2
  195. package/dist/chunk-index-h9ccz1r3.js +0 -2
  196. package/dist/chunk-index-n0ejy0wd.js +0 -2
  197. package/dist/chunk-index-nkdg1dfz.js +0 -7
  198. package/dist/chunk-index-qxynr1hf.js +0 -2
  199. package/dist/chunk-index-r7fdgzy1.js +0 -2
  200. package/dist/chunk-index-sdcpf5dp.js +0 -2
  201. package/dist/chunk-index-sw9r4aa4.js +0 -2
  202. package/dist/chunk-index-t5bmsqqd.js +0 -1
  203. package/dist/chunk-index-v8mma5np.js +0 -2
  204. package/dist/chunk-index-vsfsv8hd.js +0 -2
  205. package/dist/chunk-index-wxft0aqb.js +0 -2
  206. package/dist/chunk-index-zvvwxkev.js +0 -2
  207. package/dist/chunk-lang-css-7q1dtpgm.js +0 -1
  208. package/dist/chunk-lang-html-xgvba8rn.js +0 -1
  209. package/dist/chunk-lang-javascript-vgxmgd0a.js +0 -1
  210. package/dist/chunk-lang-typescript-2v652sh5.js +0 -1
  211. package/dist/chunk-layout-actions-bfqtg71d.js +0 -1
  212. package/dist/chunk-menu-items-rztgekfj.js +0 -1
  213. package/dist/chunk-mode-toggle-m5kgb7c7.js +0 -1
  214. package/dist/chunk-notes-a8nqffbf.js +0 -1
  215. package/dist/chunk-notice-bell-rdnfmtf2.js +0 -1
  216. package/dist/chunk-onboarding-wvh0s3vg.js +0 -1
  217. package/dist/chunk-palette-5xtdvy9a.js +0 -1
  218. package/dist/chunk-placement-items-rgyrktvy.js +0 -1
  219. package/dist/chunk-prompt-history-wv0vdsjv.js +0 -1
  220. package/dist/chunk-prompts-75hgb0t0.js +0 -1
  221. package/dist/chunk-room-confirms-bcvhpcry.js +0 -1
  222. package/dist/chunk-rooms-menu-button-ej3a2hyc.js +0 -1
  223. package/dist/chunk-sheet-hosts-d5zbwbbr.js +0 -29
  224. package/dist/chunk-shortcut-help-bh9ntk9s.js +0 -26
  225. package/dist/chunk-shortcuts-6em0atk9.js +0 -1
  226. package/dist/chunk-skill-editor-e43mwz01.js +0 -8
  227. package/dist/chunk-skills-vp107wrp.js +0 -1
  228. package/dist/chunk-start-over-line-xd1v2p0g.js +0 -16
  229. package/dist/chunk-table-svb2xhfd.js +0 -1
  230. package/dist/chunk-thread-actions-926eab0w.js +0 -1
  231. package/dist/chunk-thread-list-j2v1pqkz.js +0 -217
  232. package/dist/chunk-waiting-cdyz7r1g.js +0 -1
  233. package/dist/chunk-waiting-chip-58ttx9av.js +0 -28
  234. package/dist/chunk-where-9jp6g029.js +0 -1
  235. package/dist/chunk-workspace-d34njy4p.js +0 -578
  236. package/dist/chunk-zh-tw-y3jb20wc.js +0 -1
@@ -1,50 +0,0 @@
1
- var aT=Object.create;var{getPrototypeOf:iT,defineProperty:Gu,getOwnPropertyNames:oT}=Object;var by=Object.prototype.hasOwnProperty;function lT(i){return this[i]}var sT,uT,xy=(i,c,b)=>{var w=i!=null&&typeof i==="object";if(w){var E=c?sT??=new WeakMap:uT??=new WeakMap,N=E.get(i);if(N)return N}b=i!=null?aT(iT(i)):{};let R=c||!i||!i.__esModule||!by.call(i,"default")?Gu(b,"default",{value:i,enumerable:!0}):b;if(i&&typeof i==="object"||typeof i==="function"){for(let D of oT(i))if(!by.call(R,D))Gu(R,D,{get:lT.bind(i,D),enumerable:!0})}if(w)E.set(i,R);return R};var Xl=(i,c)=>()=>(c||i((c={exports:{}}).exports,c),c.exports);var cT=(i)=>i;function fT(i,c){this[i]=cT.bind(null,c)}var wy=(i,c)=>{for(var b in c)Gu(i,b,{get:c[b],enumerable:!0,configurable:!0,set:fT.bind(c,b)})};var dT=(i,c,b)=>{for(var w in c)Gu(i,w,{get:c[w],set:b[w],enumerable:!0,configurable:!0})};var ky,jd,ju,p=(i,c)=>{for(var[b,w,E]of ky||[])for(var N=[i],R=globalThis,D=R.document,L,H,U,B,V;H=N.pop();)if(!jd[H]&&(U=w[H])){jd[H]=1;for(B=1;B<U.length;B++)N.push(E[U[B]]);if(!c&&H!==i&&(L=D&&D.head)){if(ju===void 0)ju=(B=D.querySelector("meta[property=csp-nonce]"))&&(B.nonce||B.getAttribute("nonce"))||"";if(V=D.createElement("link"),V.rel="modulepreload",V.crossOrigin="",ju)V.nonce=ju;V.href=new R.URL(U[0],b),L.appendChild(V)}}},mT=(i,c,b,w)=>{for(var E={},N=0;N<c.length;N++)E[c[N]]=b[N];(ky||=[]).push([i,E,c]),jd||={},p(c[w],1)};mT(import.meta.url,["cn49mawx","svb2xhfd","tyktazzz","qd640mjr","6em0atk9","9jp6g029","d34njy4p","zrx3bpwf","fb071rez","a0p3vwh6","a8nqffbf","vp107wrp","zha2d834","d5zbwbbr","bcvhpcry","rdnfmtf2","vxetvn8t","x0yvvdq2","a5pewkhd","75hgb0t0","6rdkk8t1","qpp9bdxh","5xtdvy9a","zy4hmgk3","63yhh1mh","m5kgb7c7","ha1evv71","j2v1pqkz","ej3a2hyc","678dgbww","dtfh87zy","xd1v2p0g","ebhejn2k","58ttx9av","pc9r24e3","cdyz7r1g","y3jb20wc","wajep0yr","c6tphrjr","rztgekfj","40ypghn9","k5fycefd","acj4xxgq","nkdg1dfz","zt19fdmc","2y8r4s4f","gwkhs8s3","r7fdgzy1","m81362sc","9bdstf8t","6cg8xp1c","7qd604rq","rsd8rftk","t5bmsqqd","5vatmakn","20xgx0k2","jgj32247","qxynr1hf","e35v554x","sw9r4aa4","amxa2bn3","gcmmwh8t","e43mwz01","zvvwxkev","wv0vdsjv","215psy17","bh9ntk9s","wxft0aqb","6yra9kdq","n0ejy0wd","q5fyrtx4","v8mma5np","sm7kfb07","254701sm","fepsbhr6","h2vhv4kh","n0cmnwd2","rgf4rvns","2hvn2kte","aexy023z","c7dbvkrq","vsfsv8hd","s53bxwkk","bef0fc2m","0q15ysrb","jc3r4qam","2pzrt272","qxhmczwv","sdcpf5dp","31m1b2f5","s9p27f9b","2tr41qht","3gfbhmpb","2822z600","bfqtg71d","kgt22sbp","926eab0w","tyb48b79","tefx93s6","wvh0s3vg","v9gbt5tz","zbwdaxtc","mws704mc","gv8y859d","6vmze4pg","r2sbqnjv","5zzs09b7","tt0d4rw9","n4bt8jbt","vgxmgd0a","hr12bzs1","ttzcpgkg","7q1dtpgm","xgvba8rn","ntj8maem","ex31qbph","9k4y107e","2v652sh5","zcfr8jdv","h9ccz1r3","1af8vsyb","rgyrktvy","b7asegfs","04qfef58","5t2jkecy","5nrhfwft","5cb66d99","eh3ymmks","x60n1me6","e2gy763y","4t6vnwap","p7jkr7gv","3yy10a5h","2syyyjnq","zj0gjcvr"],[["./chunk-index-cn49mawx.js"],["./chunk-table-svb2xhfd.js",0,42,43,44,45,46,47,48,49],["./chunk-host-icons-tyktazzz.js",50],["./chunk-tab-dot-qd640mjr.js",0,46,51,52],["./chunk-shortcuts-6em0atk9.js",0,53,46,54,55],["./chunk-where-9jp6g029.js",44],["./chunk-workspace-d34njy4p.js",0,57,58,59,60,48],["./chunk-overview-zrx3bpwf.js",0,61,59,48],["./chunk-conversations-fb071rez.js",0,61],["./chunk-transcript-a0p3vwh6.js",0,61,58],["./chunk-notes-a8nqffbf.js",0,61,58,59,48],["./chunk-skills-vp107wrp.js",0,57,61,63,59,48],["./chunk-connectors-zha2d834.js",0,57,61,58,59,60,48],["./chunk-sheet-hosts-d5zbwbbr.js",0,54,67,57,68,69,70,71,46,47,72,73,74,75,76,63,77,78,58,59,60,48,49,79,80,81,82,83,55],["./chunk-room-confirms-bcvhpcry.js",71,59,57,48,69,68,80,70,83,55],["./chunk-notice-bell-rdnfmtf2.js",84,0,51,52],["./chunk-gate-vxetvn8t.js",0,85],["./chunk-agent-x0yvvdq2.js",0],["./chunk-schedules-a5pewkhd.js",0,57,61,48],["./chunk-prompts-75hgb0t0.js",0,63,77,48],["./chunk-arranged-rooms-6rdkk8t1.js",0,68,88,70,46,89,90,91,81,82,55],["./chunk-action-menu-qpp9bdxh.js",0,48],["./chunk-palette-5xtdvy9a.js",0,92,48],["./chunk-group-table-zy4hmgk3.js",0,44,45,46,43,47],["./chunk-group-scene-63yhh1mh.js",42,43,45,44,48,47,46],["./chunk-mode-toggle-m5kgb7c7.js",93],["./chunk-room-menu-ha1evv71.js",0,68,70,78,48,79],["./chunk-thread-list-j2v1pqkz.js",0],["./chunk-rooms-menu-button-ej3a2hyc.js",0,70,46,68,89,81,82],["./chunk-account-678dgbww.js",0],["./chunk-switcher-list-dtfh87zy.js",0,88,90,92,91,55],["./chunk-start-over-line-xd1v2p0g.js",0,67,60],["./chunk-host-picture-ebhejn2k.js",100],["./chunk-waiting-chip-58ttx9av.js",0,75,60],["./chunk-host-ui-pc9r24e3.js",0,44,45,57,46,100,93,50,58,59,48],["./chunk-waiting-cdyz7r1g.js",75],["./chunk-zh-tw-y3jb20wc.js"],["./chunk-host-state-wajep0yr.js",46],["./chunk-index-c6tphrjr.js",74],["./chunk-menu-items-rztgekfj.js",73,49,72,79,68,47,67,80,81,70,82,46,83,55],["./chunk-note-row-40ypghn9.js",0,100],["./chunk-council-sheet-k5fycefd.js",0,47,44,45,46,43,76,48,49,80],["./chunk-index-acj4xxgq.js",0,43,60,48],["./chunk-index-nkdg1dfz.js",0,45,46,47],["./chunk-index-zt19fdmc.js",0],["./chunk-index-2y8r4s4f.js",0,44],["./chunk-index-gwkhs8s3.js",0],["./chunk-index-r7fdgzy1.js"],["./chunk-index-m81362sc.js",0],["./chunk-index-9bdstf8t.js",0,47],["./chunk-index-6cg8xp1c.js",0],["./chunk-index-7qd604rq.js",0,52],["./chunk-index-rsd8rftk.js",0],["./chunk-index-t5bmsqqd.js",0],["./chunk-index-5vatmakn.js",0],["./chunk-index-20xgx0k2.js",0],["./chunk-codeeditor-jgj32247.js",118,0],["./chunk-index-qxynr1hf.js",0,48],["./chunk-index-e35v554x.js",60,0],["./chunk-index-sw9r4aa4.js",0,48],["./chunk-index-amxa2bn3.js"],["./chunk-index-gcmmwh8t.js",0],["./chunk-skill-editor-e43mwz01.js",0,63,77,48],["./chunk-index-zvvwxkev.js",0],["./chunk-prompt-history-wv0vdsjv.js",0,77,48],["./chunk-character-creator-215psy17.js",74,0,57,48],["./chunk-shortcut-help-bh9ntk9s.js",0,54,60,48],["./chunk-index-wxft0aqb.js",0],["./chunk-index-6yra9kdq.js",0],["./chunk-index-n0ejy0wd.js",0,119,83,120,55],["./chunk-index-q5fyrtx4.js",0],["./chunk-index-v8mma5np.js",0,57,68,69,59,80,120,55],["./chunk-index-sm7kfb07.js",0,68,81,83,120,55],["./chunk-index-254701sm.js",0,67,72,49,79,80,81],["./chunk-index-fepsbhr6.js"],["./chunk-index-h2vhv4kh.js",0],["./chunk-index-n0cmnwd2.js",0],["./chunk-index-rgf4rvns.js",0],["./chunk-index-2hvn2kte.js",0],["./chunk-index-aexy023z.js",0],["./chunk-index-c7dbvkrq.js",0],["./chunk-index-vsfsv8hd.js",0,46,82],["./chunk-index-s53bxwkk.js",0],["./chunk-index-bef0fc2m.js",0,55],["./chunk-index-0q15ysrb.js"],["./chunk-index-jc3r4qam.js",0],["./chunk-confirm-2pzrt272.js",57,48],["./chunk-folder-list-qxhmczwv.js",0,53,70,91,55],["./chunk-index-sdcpf5dp.js",0],["./chunk-index-31m1b2f5.js",0,68,81],["./chunk-index-s9p27f9b.js",0],["./chunk-index-2tr41qht.js",0],["./chunk-index-3gfbhmpb.js"],["./chunk-index-2822z600.js",0],["./chunk-layout-actions-bfqtg71d.js",69,83,55],["./chunk-thread-cards-kgt22sbp.js",0,124,91,82],["./chunk-thread-actions-926eab0w.js",124,82],["./chunk-profile-tyb48b79.js",0,57,84,48,52],["./chunk-notices-tefx93s6.js",0,84,51,52],["./chunk-onboarding-wvh0s3vg.js",0,57,84,85,48,52],["./chunk-index-v9gbt5tz.js",0],["./chunk-bulk-actions-zbwdaxtc.js",0,46,70,124,80,81,82],["./chunk-entry-mws704mc.js",128,0],["./chunk-lang-rust-gv8y859d.js",118,129],["./chunk-lang-sql-6vmze4pg.js",118,129,130],["./chunk-lang-xml-r2sbqnjv.js",118,129],["./chunk-lang-shell-5zzs09b7.js",118],["./chunk-lang-toml-tt0d4rw9.js",118],["./chunk-lang-dockerfile-n4bt8jbt.js",118],["./chunk-lang-javascript-vgxmgd0a.js",118,129,131,130],["./chunk-lang-json-hr12bzs1.js",118,129],["./chunk-lang-markdown-ttzcpgkg.js",118,129,132,133,131,130],["./chunk-lang-css-7q1dtpgm.js",118,129,133],["./chunk-lang-html-xgvba8rn.js",118,129,132,133,131,130],["./chunk-lang-python-ntj8maem.js",118,129,130],["./chunk-lang-yaml-ex31qbph.js",118,129],["./chunk-lang-go-9k4y107e.js",118,129,130],["./chunk-lang-typescript-2v652sh5.js",118,129,131,130],["./chunk-index-zcfr8jdv.js"],["./chunk-index-h9ccz1r3.js",120],["./chunk-index-1af8vsyb.js"],["./chunk-placement-items-rgyrktvy.js",72,68,81,70,82,46,83,55],["./chunk-folds-b7asegfs.js",53],["./chunk-drag-04qfef58.js",0,88,119],["./chunk-index-5t2jkecy.js",0,82],["./chunk-table2d-5nrhfwft.js",134,47,128],["./chunk-table3d-5cb66d99.js",0,47,134,128],["./chunk-seat-menu-eh3ymmks.js",0],["./chunk-index-x60n1me6.js"],["./chunk-index-e2gy763y.js",118],["./chunk-index-4t6vnwap.js",118],["./chunk-index-p7jkr7gv.js",118,129,130],["./chunk-index-3yy10a5h.js",118,129,133,131],["./chunk-index-2syyyjnq.js",118,129],["./chunk-index-zj0gjcvr.js",47]],0);
2
- var tS=Xl(function(a8,eS){var Kk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r4=/\n/g,a4=/^\s*/,i4=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o4=/^:\s*/,l4=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s4=/^[;\s]*/,u4=/^\s+|\s+$/g,c4=`
3
- `,Jk="/",Wk="*",ko="",f4="comment",d4="declaration";function m4(i,c){if(typeof i!=="string")throw TypeError("First argument must be a string");if(!i)return[];c=c||{};var b=1,w=1;function E(Y){var Z=Y.match(r4);if(Z)b+=Z.length;var ee=Y.lastIndexOf(c4);w=~ee?Y.length-ee:w+Y.length}function N(){var Y={line:b,column:w};return function(Z){return Z.position=new R(Y),H(),Z}}function R(Y){this.start=Y,this.end={line:b,column:w},this.source=c.source}R.prototype.content=i;function D(Y){var Z=Error(c.source+":"+b+":"+w+": "+Y);if(Z.reason=Y,Z.filename=c.source,Z.line=b,Z.column=w,Z.source=i,c.silent);else throw Z}function L(Y){var Z=Y.exec(i);if(!Z)return;var ee=Z[0];return E(ee),i=i.slice(ee.length),Z}function H(){L(a4)}function U(Y){var Z;Y=Y||[];while(Z=B())if(Z!==!1)Y.push(Z);return Y}function B(){var Y=N();if(Jk!=i.charAt(0)||Wk!=i.charAt(1))return;var Z=2;while(ko!=i.charAt(Z)&&(Wk!=i.charAt(Z)||Jk!=i.charAt(Z+1)))++Z;if(Z+=2,ko===i.charAt(Z-1))return D("End of comment missing");var ee=i.slice(2,Z-2);return w+=2,E(ee),i=i.slice(Z),w+=2,Y({type:f4,comment:ee})}function V(){var Y=N(),Z=L(i4);if(!Z)return;if(B(),!L(o4))return D("property missing ':'");var ee=L(l4),P=Y({type:d4,property:$k(Z[0].replace(Kk,ko)),value:ee?$k(ee[0].replace(Kk,ko)):ko});return L(s4),P}function q(){var Y=[];U(Y);var Z;while(Z=V())if(Z!==!1)Y.push(Z),U(Y);return Y}return H(),q()}function $k(i){return i?i.replace(u4,ko):ko}eS.exports=m4});var nS=Xl(function(ku){var p4=ku&&ku.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ku,"__esModule",{value:!0});ku.default=g4;var h4=p4(tS());function g4(i,c){let b=null;if(!i||typeof i!=="string")return b;let w=(0,h4.default)(i),E=typeof c==="function";return w.forEach((N)=>{if(N.type!=="declaration")return;let{property:R,value:D}=N;if(E)c(R,D,N);else if(D)b=b||{},b[R]=D}),b}});var oS=Xl(function(aS){Object.defineProperty(aS,"__esModule",{value:!0});aS.camelCase=void 0;var v4=/^--[a-zA-Z0-9_-]+$/,y4=/-([a-z])/g,b4=/^[^-]+$/,x4=/^-(webkit|moz|ms|o|khtml)-/,w4=/^-(ms)-/,k4=function(i){return!i||b4.test(i)||v4.test(i)},S4=function(i,c){return c.toUpperCase()},rS=function(i,c){return"".concat(c,"-")},E4=function(i,c){if(c===void 0)c={};if(k4(i))return i;if(i=i.toLowerCase(),c.reactCompat)i=i.replace(w4,rS);else i=i.replace(x4,rS);return i.replace(y4,S4)};aS.camelCase=E4});var sS=Xl(function(Ug,lS){var T4=Ug&&Ug.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},C4=T4(nS()),A4=oS();function Hg(i,c){var b={};if(!i||typeof i!=="string")return b;return(0,C4.default)(i,function(w,E){if(w&&E)b[(0,A4.camelCase)(w,c)]=E}),b}Hg.default=Hg;lS.exports=Hg});var M2=Xl(function(tV,R2){var Nd=Object.prototype.hasOwnProperty,N2=Object.prototype.toString,{defineProperty:k2,getOwnPropertyDescriptor:S2}=Object,E2=function(c){if(typeof Array.isArray==="function")return Array.isArray(c);return N2.call(c)==="[object Array]"},T2=function(c){if(!c||N2.call(c)!=="[object Object]")return!1;var b=Nd.call(c,"constructor"),w=c.constructor&&c.constructor.prototype&&Nd.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!b&&!w)return!1;var E;for(E in c);return typeof E>"u"||Nd.call(c,E)},C2=function(c,b){if(k2&&b.name==="__proto__")k2(c,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0});else c[b.name]=b.newValue},A2=function(c,b){if(b==="__proto__"){if(!Nd.call(c,b))return;else if(S2)return S2(c,b).value}return c[b]};R2.exports=function i(){var c,b,w,E,N,R,D=arguments[0],L=1,H=arguments.length,U=!1;if(typeof D==="boolean")U=D,D=arguments[1]||{},L=2;if(D==null||typeof D!=="object"&&typeof D!=="function")D={};for(;L<H;++L)if(c=arguments[L],c!=null){for(b in c)if(w=A2(D,b),E=A2(c,b),D!==E){if(U&&E&&(T2(E)||(N=E2(E)))){if(N)N=!1,R=w&&E2(w)?w:[];else R=w&&T2(w)?w:{};C2(D,{name:b,newValue:i(U,R,E)})}else if(typeof E<"u")C2(D,{name:b,newValue:E})}}return D}});var Di={};dT(Di,{unstable_now:()=>_r,unstable_IdlePriority:()=>Ku,unstable_ImmediatePriority:()=>Ju,unstable_LowPriority:()=>Wu,unstable_NormalPriority:()=>Li,unstable_Profiling:()=>Dy,unstable_UserBlockingPriority:()=>$u,unstable_cancelCallback:()=>ec,unstable_forceFrameRate:()=>Ly,unstable_getCurrentPriorityLevel:()=>tc,unstable_next:()=>Hy,unstable_requestPaint:()=>nc,unstable_runWithPriority:()=>Uy,unstable_scheduleCallback:()=>Ui,unstable_shouldYield:()=>rc,unstable_wrapCallback:()=>By},{unstable_now:(i_)=>_r=i_,unstable_IdlePriority:(i_)=>Ku=i_,unstable_ImmediatePriority:(i_)=>Ju=i_,unstable_LowPriority:(i_)=>Wu=i_,unstable_NormalPriority:(i_)=>Li=i_,unstable_Profiling:(i_)=>Dy=i_,unstable_UserBlockingPriority:(i_)=>$u=i_,unstable_cancelCallback:(i_)=>ec=i_,unstable_forceFrameRate:(i_)=>Ly=i_,unstable_getCurrentPriorityLevel:(i_)=>tc=i_,unstable_next:(i_)=>Hy=i_,unstable_requestPaint:(i_)=>nc=i_,unstable_runWithPriority:(i_)=>Uy=i_,unstable_scheduleCallback:(i_)=>Ui=i_,unstable_shouldYield:(i_)=>rc=i_,unstable_wrapCallback:(i_)=>By=i_});var wu={};wy(wu,{boolean:()=>Te,booleanish:()=>Ot,commaOrSpaceSeparated:()=>Fn,commaSeparated:()=>La,number:()=>pe,overloadedBoolean:()=>ed,spaceSeparated:()=>ut});var rv={};wy(rv,{attentionMarkers:()=>cM,contentInitial:()=>aM,disable:()=>fM,document:()=>rM,flow:()=>oM,flowInitial:()=>iM,insideSpan:()=>uM,string:()=>lM,text:()=>sM});var pT=Symbol.for("react.fragment"),hT=Symbol.for("react.strict_mode");var gT=Symbol.for("react.consumer"),vT=Symbol.for("react.context");var yT=Symbol.for("react.suspense"),bT=Symbol.for("react.memo"),xT=Symbol.for("react.lazy");var Sy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wT=Object.assign,Ey={};function Ho(i,c,b){this.props=i,this.context=c,this.refs=Ey,this.updater=b||Sy}Ho.prototype.isReactComponent={};Ho.prototype.setState=function(i,c){if(typeof i!=="object"&&typeof i!=="function"&&i!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,i,c,"setState")};Ho.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function Ty(){}Ty.prototype=Ho.prototype;function Cy(i,c,b){this.props=i,this.context=c,this.refs=Ey,this.updater=b||Sy}var Gd=Cy.prototype=new Ty;Gd.constructor=Cy;wT(Gd,Ho.prototype);Gd.isPureReactComponent=!0;var pr={H:null,A:null,T:null,S:null};function kT(i){if(i._status===-1){var c=i._result,b=c();b.then(function(w){if(i._status===0||i._status===-1)i._status=1,i._result=w,b.status===void 0&&(b.status="fulfilled",b.value=w)},function(w){if(i._status===0||i._status===-1)i._status=2,i._result=w,b.status===void 0&&(b.status="rejected",b.reason=w)}),i._status===-1&&(i._status=0,i._result=b)}if(i._status===1)return i._result.default;throw i._result}var Yd=Ho,Ar=pT;var Fd=hT,Q=yT;var Zl=pr;var dn=function(i){return i={$$typeof:vT,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null},i.Provider=i,i.Consumer={$$typeof:gT,_context:i},i};var S=function(i){return{$$typeof:xT,_payload:{_status:-1,_result:i},_init:kT}},j=function(i,c){return{$$typeof:bT,type:i,compare:c===void 0?null:c}};var A=function(i,c){return pr.H.useCallback(i,c)},Se=function(i){return pr.H.useContext(i)};var $r=function(i,c){return pr.H.useDeferredValue(i,c)},o=function(i,c){return pr.H.useEffect(i,c)};var z=function(){return pr.H.useId()};var $e=function(i,c){return pr.H.useLayoutEffect(i,c)},C=function(i,c){return pr.H.useMemo(i,c)};var pi=function(i,c,b){return pr.H.useReducer(i,c,b)},a=function(i){return pr.H.useRef(i)},r=function(i){return pr.H.useState(i)},We=function(i,c,b){return pr.H.useSyncExternalStore(i,c,b)};var Qd="19.3.0";function bw(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bw)}catch(i){console.error(i)}}function Zd(i,c){var b=i.length;i.push(c);e:for(;0<b;){var w=b-1>>>1,E=i[w];if(0<Yu(E,c))i[w]=c,i[b]=E,b=w;else break e}}function Kr(i){return i.length===0?null:i[0]}function Zu(i){if(i.length===0)return null;var c=i[0],b=i.pop();if(b!==c){i[0]=b;e:for(var w=0,E=i.length,N=E>>>1;w<N;){var R=2*(w+1)-1,D=i[R],L=R+1,H=i[L];if(0>Yu(D,b))L<E&&0>Yu(H,D)?(i[w]=H,i[L]=b,w=L):(i[w]=D,i[R]=b,w=R);else if(L<E&&0>Yu(H,b))i[w]=H,i[L]=b,w=L;else break e}}return c}function Yu(i,c){var b=i.sortIndex-c.sortIndex;return b!==0?b:i.id-c.id}var _r=void 0;if(typeof performance==="object"&&typeof performance.now==="function")Kd=performance,_r=function(){return Kd.now()};else Fu=Date,Jd=Fu.now(),_r=function(){return Fu.now()-Jd};var Kd,Fu,Jd,va=[],Ba=[],ST=1,hr=null,cn=3,Wd=!1,Kl=!1,Jl=!1,em=!1,Ry=typeof setTimeout==="function"?setTimeout:null,My=typeof clearTimeout==="function"?clearTimeout:null,Ny=typeof setImmediate<"u"?setImmediate:null;function Qu(i){for(var c=Kr(Ba);c!==null;){if(c.callback===null)Zu(Ba);else if(c.startTime<=i)Zu(Ba),c.sortIndex=c.expirationTime,Zd(va,c);else break;c=Kr(Ba)}}function tm(i){if(Jl=!1,Qu(i),!Kl)if(Kr(va)!==null)Kl=!0,Bo||(Bo=!0,Uo());else{var c=Kr(Ba);c!==null&&nm(tm,c.startTime-i)}}var Bo=!1,Wl=-1,zy=5,Oy=-1;function _y(){return em?!0:Di.unstable_now()-Oy<zy?!1:!0}function Xd(){if(em=!1,Bo){var i=Di.unstable_now();Oy=i;var c=!0;try{e:{Kl=!1,Jl&&(Jl=!1,My(Wl),Wl=-1),Wd=!0;var b=cn;try{t:{Qu(i);for(hr=Kr(va);hr!==null&&!(hr.expirationTime>i&&_y());){var w=hr.callback;if(typeof w==="function"){hr.callback=null,cn=hr.priorityLevel;var E=w(hr.expirationTime<=i);if(i=Di.unstable_now(),typeof E==="function"){hr.callback=E,Qu(i),c=!0;break t}hr===Kr(va)&&Zu(va),Qu(i)}else Zu(va);hr=Kr(va)}if(hr!==null)c=!0;else{var N=Kr(Ba);N!==null&&nm(tm,N.startTime-i),c=!1}}break e}finally{hr=null,cn=b,Wd=!1}c=void 0}}finally{c?Uo():Bo=!1}}}var Uo;if(typeof Ny==="function")Uo=function(){Ny(Xd)};else if(typeof MessageChannel<"u")Xu=new MessageChannel,$d=Xu.port2,Xu.port1.onmessage=Xd,Uo=function(){$d.postMessage(null)};else Uo=function(){Ry(Xd,0)};var Xu,$d;function nm(i,c){Wl=Ry(function(){i(Di.unstable_now())},c)}var Ku=5,Ju=1,Wu=4,Li=3,Dy=null,$u=2,ec=function(i){i.callback=null},Ly=function(i){0>i||125<i?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):zy=0<i?Math.floor(1000/i):5},tc=function(){return cn},Hy=function(i){switch(cn){case 1:case 2:case 3:var c=3;break;default:c=cn}var b=cn;cn=c;try{return i()}finally{cn=b}},nc=function(){em=!0},Uy=function(i,c){switch(i){case 1:case 2:case 3:case 4:case 5:break;default:i=3}var b=cn;cn=i;try{return c()}finally{cn=b}},Ui=function(i,c,b){var w=Di.unstable_now();switch(typeof b==="object"&&b!==null?(b=b.delay,b=typeof b==="number"&&0<b?w+b:w):b=w,i){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5000}return E=b+E,i={id:ST++,callback:c,priorityLevel:i,startTime:b,expirationTime:E,sortIndex:-1},b>w?(i.sortIndex=b,Zd(Ba,i),Kr(va)===null&&i===Kr(Ba)&&(Jl?(My(Wl),Wl=-1):Jl=!0,nm(tm,b-w))):(i.sortIndex=E,Zd(va,i),Kl||Wd||(Kl=!0,Bo||(Bo=!0,Uo()))),i},rc=_y,By=function(i){var c=cn;return function(){var b=cn;cn=c;try{return i.apply(this,arguments)}finally{cn=b}}};function Py(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Py)}catch(i){console.error(i)}}function qy(i){var c="https://react.dev/errors/"+i;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)c+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+i+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Va(){}var $l={d:{f:Va,r:function(){throw Error(qy(522))},D:Va,C:Va,L:Va,m:Va,X:Va,S:Va,M:Va},p:0,findDOMNode:null},ET=Symbol.for("react.portal");var Vy=Symbol.for("react.optimistic_key");function TT(i,c,b){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ET,key:w==null?null:w===Vy?Vy:""+w,children:i,containerInfo:c,implementation:b}}var rm=Zl;var am=$l;var Nr=function(i,c){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(qy(299));return TT(i,c,null,b)},im=function(i){var c=rm.T,b=$l.p;try{if(rm.T=null,$l.p=2,i)return i()}finally{rm.T=c,$l.p=b,$l.d.f()}};Py();function le(i){var c="https://react.dev/errors/"+i;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)c+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+i+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function AT(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function tu(i){for(var c=i,b=c;b&&!b.alternate;)c=b,(c.flags&4098)!==0&&(i=c.return),b=c.return;for(;c.return;)c=c.return;return c.tag===3?i:null}function E0(i){if(i.tag===13){var c=i.memoizedState;if(c===null&&(i=i.alternate,i!==null&&(c=i.memoizedState)),c!==null)return c.dehydrated}return null}function T0(i){if(i.tag===31){var c=i.memoizedState;if(c===null&&(i=i.alternate,i!==null&&(c=i.memoizedState)),c!==null)return c.dehydrated}return null}function Iy(i){if(tu(i)!==i)throw Error(le(188))}function NT(i){var c=i.alternate;if(!c){if(c=tu(i),c===null)throw Error(le(188));return c!==i?null:i}for(var b=i,w=c;;){var E=b.return;if(E===null)break;var N=E.alternate;if(N===null){if(w=E.return,w!==null){b=w;continue}break}if(E.child===N.child){for(N=E.child;N;){if(N===b)return Iy(E),i;if(N===w)return Iy(E),c;N=N.sibling}throw Error(le(188))}if(b.return!==w.return)b=E,w=N;else{for(var R=!1,D=E.child;D;){if(D===b){R=!0,b=E,w=N;break}if(D===w){R=!0,w=E,b=N;break}D=D.sibling}if(!R){for(D=N.child;D;){if(D===b){R=!0,b=N,w=E;break}if(D===w){R=!0,w=N,b=E;break}D=D.sibling}if(!R)throw Error(le(189))}}if(b.alternate!==w)throw Error(le(190))}if(b.tag!==3)throw Error(le(188));return b.stateNode.current===b?i:c}function C0(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i;for(i=i.child;i!==null;){if(c=C0(i),c!==null)return c;i=i.sibling}return null}function jn(i,c,b,w,E,N){for(;i!==null;){if((i.tag===5||i.tag===27||i.tag===6)&&b(i,w,E,N)||(i.tag!==22||i.memoizedState===null)&&(c||i.tag!==5&&i.tag!==27)&&jn(i.child,c,b,w,E,N))return!0;i=i.sibling}return!1}function po(i){for(i=i.return;i!==null;){if(i.tag===3||i.tag===5||i.tag===27)return i;i=i.return}return null}function jy(i){var c=!1;for(i=i.return;i!==null;){if(i.tag===4&&(c=!0),i.tag===3||i.tag===5||i.tag===27)break;i=i.return}return c}function A0(i){var c=[null,null],b=po(i);if(b===null)return c;return N0(c,i,b.child,{foundSelf:!1}),c}function N0(i,c,b,w){for(;b!==null;){if(b===c)w.foundSelf=!0;else if(b.tag===5||b.tag===27||b.tag===6){if(w.foundSelf)return i[1]=b,!0;i[0]=b}else if((b.tag!==22||b.memoizedState===null)&&N0(i,c,b.child,w))return!0;b=b.sibling}return!1}function Ft(i){switch(i.tag){case 5:case 27:case 6:return i.stateNode;case 3:return i.stateNode.containerInfo;default:throw Error(le(559))}}var Yo=null,Hm=null;function RT(i,c,b){return i===b?!0:i===c?(Yo=i,!0):!1}function MT(i,c,b){return i===b?(Hm=i,!1):i===c?(Hm!==null&&(Yo=i),!0):!1}function Gy(i){if(i===null)return null;do i=i===null?null:i.return;while(i&&i.tag!==5&&i.tag!==27&&i.tag!==3);return i?i:null}function Um(i,c,b){for(var w=0,E=i;E;E=b(E))w++;E=0;for(var N=c;N;N=b(N))E++;for(;0<w-E;)i=b(i),w--;for(;0<E-w;)c=b(c),E--;for(;w--;){if(i===c||c!==null&&i===c.alternate)return i;i=b(i),c=b(c)}return null}var gt=Object.assign,zT=Symbol.for("react.element"),ac=Symbol.for("react.transitional.element"),vs=Symbol.for("react.portal"),Fo=Symbol.for("react.fragment"),R0=Symbol.for("react.strict_mode"),Bm=Symbol.for("react.profiler"),M0=Symbol.for("react.consumer"),ra=Symbol.for("react.context"),Zp=Symbol.for("react.forward_ref"),Vm=Symbol.for("react.suspense"),qm=Symbol.for("react.suspense_list"),Kp=Symbol.for("react.memo"),ja=Symbol.for("react.lazy"),Pm=Symbol.for("react.activity"),OT=Symbol.for("react.legacy_hidden"),_T=Symbol.for("react.memo_cache_sentinel"),Im=Symbol.for("react.view_transition"),DT=Symbol.for("react.recoverable"),Yy=Symbol.iterator;function fs(i){if(i===null||typeof i!=="object")return null;return i=Yy&&i[Yy]||i["@@iterator"],typeof i==="function"?i:null}var LT=Symbol.for("react.client.reference");function jm(i){if(i==null)return null;if(typeof i==="function")return i.$$typeof===LT?null:i.displayName||i.name||null;if(typeof i==="string")return i;switch(i){case Fo:return"Fragment";case Bm:return"Profiler";case R0:return"StrictMode";case Vm:return"Suspense";case qm:return"SuspenseList";case Pm:return"Activity";case Im:return"ViewTransition"}if(typeof i==="object")switch(i.$$typeof){case vs:return"Portal";case ra:return i.displayName||"Context";case M0:return(i._context.displayName||"Context")+".Consumer";case Zp:var c=i.render;return i=i.displayName,i||(i=c.displayName||c.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Kp:return c=i.displayName||null,c!==null?c:jm(i.type)||"Memo";case ja:c=i._payload,i=i._init;try{return jm(i(c))}catch(b){}}return null}var ys=Array.isArray,Ee=Zl,it=am,Xi={pending:!1,data:null,method:null,action:null},Gm=[],Qo=-1;function ca(i){return{current:i}}function an(i){0>Qo||(i.current=Gm[Qo],Gm[Qo]=null,Qo--)}function bt(i,c){Qo++,Gm[Qo]=i.current,i.current=c}var la=ca(null),Vs=ca(null),Wa=ca(null),Pc=ca(null);function Ic(i,c){switch(bt(Wa,c),bt(Vs,i),bt(la,null),c.nodeType){case 9:case 11:i=(i=c.documentElement)?(i=i.namespaceURI)?r0(i):0:0;break;default:if(i=c.tagName,c=c.namespaceURI)c=r0(c),i=J1(c,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}an(la),bt(la,i)}function ml(){an(la),an(Vs),an(Wa)}function Ym(i){var c=i.memoizedState;c!==null&&(Sl._currentValue=c.memoizedState,bt(Pc,i)),c=la.current;var b=J1(c,i.type);c!==b&&(bt(Vs,i),bt(la,b))}function jc(i){Vs.current===i&&(an(la),an(Vs)),Pc.current===i&&(an(Pc),Sl._currentValue=Xi)}var om,Fy;function Pa(i){if(om===void 0)try{throw Error()}catch(b){var c=b.stack.trim().match(/\n( *(at )?)/);om=c&&c[1]||"",Fy=-1<b.stack.indexOf(`
4
- at`)?" (<anonymous>)":-1<b.stack.indexOf("@")?"@unknown:0:0":""}return`
5
- `+om+i+Fy}var lm=!1;function sm(i,c){if(!i||lm)return"";lm=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var w={DetermineComponentFrameRoot:function(){try{if(c){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(Y){var V=Y}Reflect.construct(i,[],B)}else{try{B.call()}catch(Y){V=Y}B=!1;try{var q=Object.getOwnPropertyDescriptor(i.prototype,"props");Object.defineProperty(i.prototype,"props",{configurable:!0,set:function(){throw Error()}}),B=!0,new i}finally{B&&(q!==void 0?Object.defineProperty(i.prototype,"props",q):delete i.prototype.props)}}}else{try{throw Error()}catch(Y){V=Y}(B=i())&&typeof B.catch==="function"&&B.catch(function(){})}}catch(Y){if(Y&&V&&typeof Y.stack==="string")return[Y.stack,V.stack]}return[null,null]}};w.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(w.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(w.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var N=w.DetermineComponentFrameRoot(),R=N[0],D=N[1];if(R&&D){var L=R.split(`
6
- `),H=D.split(`
7
- `);for(E=w=0;w<L.length&&!L[w].includes("DetermineComponentFrameRoot");)w++;for(;E<H.length&&!H[E].includes("DetermineComponentFrameRoot");)E++;if(w===L.length||E===H.length)for(w=L.length-1,E=H.length-1;1<=w&&0<=E&&L[w]!==H[E];)E--;for(;1<=w&&0<=E;w--,E--)if(L[w]!==H[E]){if(w!==1||E!==1)do if(w--,E--,0>E||L[w]!==H[E]){var U=`
8
- `+L[w].replace(" at new "," at ");return i.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",i.displayName)),U}while(1<=w&&0<=E);break}}}finally{lm=!1,Error.prepareStackTrace=b}return(b=i?i.displayName||i.name:"")?Pa(b):""}function HT(i,c){switch(i.tag){case 26:case 27:case 5:return Pa(i.type);case 16:return Pa("Lazy");case 13:return i.child!==c&&c!==null?Pa("Suspense Fallback"):Pa("Suspense");case 19:return Pa("SuspenseList");case 0:case 15:return sm(i.type,!1);case 11:return sm(i.type.render,!1);case 1:return sm(i.type,!0);case 31:return Pa("Activity");case 30:return Pa("ViewTransition");default:return""}}function Qy(i){try{var c="",b=null;do c+=HT(i,b),b=i,i=i.return;while(i);return c}catch(w){return`
9
- Error generating stack: `+w.message+`
10
- `+w.stack}}var Fm=Object.prototype.hasOwnProperty,Jp=Ui,um=ec,UT=rc,BT=nc,ur=_r,VT=tc,z0=Ju,O0=$u,Gc=Li,qT=Wu,_0=Ku,PT=void 0,IT=void 0,nu=null,cr=null;function Fa(i){if(typeof PT==="function"&&IT(i),cr&&typeof cr.setStrictMode==="function")try{cr.setStrictMode(nu,i)}catch(c){}}var fr=Math.clz32?Math.clz32:YT,{log:jT,LN2:GT}=Math;function YT(i){return i>>>=0,i===0?32:31-(jT(i)/GT|0)|0}var ic=256,oc=262144,lc=4194304;function qi(i){var c=i&42;if(c!==0)return c;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&-i;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function vf(i,c,b){var w=i.pendingLanes;if(w===0)return 0;var E=0,N=i.suspendedLanes,R=i.pingedLanes;i=i.warmLanes;var D=w&134217727;return D!==0?(w=D&~N,w!==0?E=qi(w):(R&=D,R!==0?E=qi(R):b||(b=D&~i,b!==0&&(E=qi(b))))):(D=w&~N,D!==0?E=qi(D):R!==0?E=qi(R):b||(b=w&~i,b!==0&&(E=qi(b)))),E===0?0:c!==0&&c!==E&&(c&N)===0&&(N=E&-E,b=c&-c,N>=b||N===32&&(b&4194048)!==0)?c:E}function ru(i,c){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&c)===0}function D0(i,c){(c&8)!==0&&(c|=c&32);var b=i.entangledLanes;if(b!==0)for(i=i.entanglements,b&=c;0<b;){var w=31-fr(b),E=1<<w;c|=i[w],b&=~E}return c}function FT(i,c){switch(i){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function L0(){var i=lc;return lc<<=1,(lc&62914560)===0&&(lc=4194304),i}function cm(i){for(var c=[],b=0;31>b;b++)c.push(i);return c}function yf(i,c){i.pendingLanes|=c,c!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function QT(i,c,b,w,E,N){var R=i.pendingLanes;i.pendingLanes=b,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=b,i.entangledLanes&=b,i.errorRecoveryDisabledLanes&=b,i.shellSuspendCounter=0;var{entanglements:D,expirationTimes:L,hiddenUpdates:H}=i;for(b=R&~b;0<b;){var U=31-fr(b),B=1<<U;D[U]=0,L[U]=-1;var V=H[U];if(V!==null)for(H[U]=null,U=0;U<V.length;U++){var q=V[U];q!==null&&(q.lane&=-536870913)}b&=~B}w!==0&&H0(i,w,0),N!==0&&E===0&&i.tag!==0&&(i.suspendedLanes|=N&~(R&~c))}function H0(i,c,b){i.pendingLanes|=c,i.suspendedLanes&=~c;var w=31-fr(c);i.entangledLanes|=c,i.entanglements[w]=i.entanglements[w]|1073741824|b&261930}function U0(i,c){var b=i.entangledLanes|=c;for(i=i.entanglements;b;){var w=31-fr(b),E=1<<w;E&c|i[w]&c&&(i[w]|=c),b&=~E}}function B0(i,c){var b=c&-c;return b=(b&42)!==0?1:V0(b),(b&(i.suspendedLanes|c))!==0?0:b}function V0(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Wp(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function q0(){var i=it.p;if(i!==0)return i;return i=window.event,i===void 0?32:vw(i.type)}function Xy(i,c){var b=it.p;try{return it.p=i,c()}finally{it.p=b}}var Ma=Math.random().toString(36).slice(2),nn="__reactFiber$"+Ma,Gn="__reactProps$"+Ma,au="__reactContainer$"+Ma,Zy="__reactEvents$"+Ma,XT="__reactListeners$"+Ma,ZT="__reactHandles$"+Ma,Ky="__reactResources$"+Ma,iu="__reactMarker$"+Ma,Yc="__reactLoad$"+Ma;function bf(i){delete i[nn],delete i[Gn],delete i[XT],delete i[ZT]}function Fi(i){var c;if(c=i[nn])return c;for(var b=i.parentNode;b;){if(c=b[au]||b[nn]){if(b=c.alternate,c.child!==null||b!==null&&b.child!==null)for(i=f0(i);i!==null;){if(b=i[nn])return b;i=f0(i)}return c}i=b,b=i.parentNode}return null}function Cl(i){if(i=i[nn]||i[au]){var c=i.tag;if(c===5||c===6||c===13||c===31||c===26||c===27||c===3)return i}return null}function bs(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i.stateNode;throw Error(le(33))}function rl(i){var c=i[Ky];return c||(c=i[Ky]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Kt(i){i[iu]=!0}function P0(i){i[Yc]=void 0}var I0=new Set,j0={};function ho(i,c){pl(i,c),pl(i+"Capture",c)}function pl(i,c){j0[i]=c;for(i=0;i<c.length;i++)I0.add(c[i])}var KT=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Jy={},Wy={};function JT(i){if(Fm.call(Wy,i))return!0;if(Fm.call(Jy,i))return!1;if(KT.test(i))return Wy[i]=!0;return Jy[i]=!0,!1}var nt=!1;function $y(){var i=nt;return nt=!1,i}function wc(i,c,b){if(JT(c))if(b===null)i.removeAttribute(c);else{switch(typeof b){case"undefined":case"function":case"symbol":i.removeAttribute(c);return;case"boolean":var w=c.toLowerCase().slice(0,5);if(w!=="data-"&&w!=="aria-"){i.removeAttribute(c);return}}i.setAttribute(c,b)}}function sc(i,c,b){if(b===null)i.removeAttribute(c);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttribute(c,b)}}function ya(i,c,b,w){if(w===null)i.removeAttribute(b);else{switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(b);return}i.setAttributeNS(c,b,w)}}function Jn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function G0(i){var c=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function WT(i,c,b){var w=Object.getOwnPropertyDescriptor(i.constructor.prototype,c);if(!i.hasOwnProperty(c)&&typeof w<"u"&&typeof w.get==="function"&&typeof w.set==="function"){var{get:E,set:N}=w;return Object.defineProperty(i,c,{configurable:!0,get:function(){return E.call(this)},set:function(R){b=""+R,N.call(this,R)}}),Object.defineProperty(i,c,{enumerable:w.enumerable}),{getValue:function(){return b},setValue:function(R){b=""+R},stopTracking:function(){i._valueTracker=null,delete i[c]}}}}function Qm(i){if(!i._valueTracker){var c=G0(i)?"checked":"value";i._valueTracker=WT(i,c,""+i[c])}}function Y0(i){if(!i)return!1;var c=i._valueTracker;if(!c)return!0;var b=c.getValue(),w="";return i&&(w=G0(i)?i.checked?"true":"false":i.value),i=w,i!==b?(c.setValue(i),!0):!1}var $T=/[\n"\\]/g;function xr(i){return i.replace($T,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function Xm(i,c,b,w,E,N,R,D){if(i.name="",R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"?i.type=R:i.removeAttribute("type"),c!=null)if(R==="number"){if(c===0&&i.value===""||i.value!=c)i.value=""+Jn(c)}else i.value!==""+Jn(c)&&(i.value=""+Jn(c));else R!=="submit"&&R!=="reset"||i.removeAttribute("value");c!=null?R==="number"&&i.value==c?fm(i,Jn(i.value)):fm(i,Jn(c)):b!=null?fm(i,Jn(b)):w!=null&&i.removeAttribute("value"),E==null&&N!=null&&(i.defaultChecked=!!N),E!=null&&(i.checked=E&&typeof E!=="function"&&typeof E!=="symbol"),D!=null&&typeof D!=="function"&&typeof D!=="symbol"&&typeof D!=="boolean"?i.name=""+Jn(D):i.removeAttribute("name")}function F0(i,c,b,w,E,N,R,D){if(N!=null&&typeof N!=="function"&&typeof N!=="symbol"&&typeof N!=="boolean"&&(i.type=N),c!=null||b!=null){if(!(N!=="submit"&&N!=="reset"||c!==void 0&&c!==null)){Qm(i);return}b=b!=null?""+Jn(b):"",c=c!=null?""+Jn(c):b,D||c===i.value||(i.value=c),i.defaultValue=c}w=w!=null?w:E,w=typeof w!=="function"&&typeof w!=="symbol"&&!!w,i.checked=D?i.checked:!!w,i.defaultChecked=!!w,R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"&&(i.name=R),Qm(i)}function fm(i,c){i.defaultValue!==""+c&&(i.defaultValue=""+c)}function al(i,c,b,w){if(i=i.options,c){c={};for(var E=0;E<b.length;E++)c["$"+b[E]]=!0;for(b=0;b<i.length;b++)E=c.hasOwnProperty("$"+i[b].value),i[b].selected!==E&&(i[b].selected=E),E&&w&&(i[b].defaultSelected=!0)}else{b=""+Jn(b),c=null;for(E=0;E<i.length;E++){if(i[E].value===b){i[E].selected=!0,w&&(i[E].defaultSelected=!0);return}c!==null||i[E].disabled||(c=i[E])}c!==null&&(c.selected=!0)}}function Q0(i,c,b){if(c!=null&&(c=""+Jn(c),c!==i.value&&(i.value=c),b==null)){i.defaultValue!==c&&(i.defaultValue=c);return}i.defaultValue=b!=null?""+Jn(b):""}function X0(i,c,b,w){if(c==null){if(w!=null){if(b!=null)throw Error(le(92));if(ys(w)){if(1<w.length)throw Error(le(93));w=w[0]}b=w}b==null&&(b=""),c=b}b=Jn(c),i.defaultValue=b,w=i.textContent,w===b&&w!==""&&w!==null&&(i.value=w),Qm(i)}function hl(i,c){if(c){var b=i.firstChild;if(b&&b===i.lastChild&&b.nodeType===3){b.nodeValue=c;return}}i.textContent=c}var eC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function eb(i,c,b){var w=c.indexOf("--")===0;b==null||typeof b==="boolean"||b===""?w?i.setProperty(c,""):c==="float"?i.cssFloat="":i[c]="":w?i.setProperty(c,b):typeof b!=="number"||b===0||eC.has(c)?c==="float"?i.cssFloat=b:i[c]=(""+b).trim():i[c]=b+"px"}function Z0(i,c,b){if(c!=null&&typeof c!=="object")throw Error(le(62));if(i=i.style,b!=null){for(var w in b)!b.hasOwnProperty(w)||c!=null&&c.hasOwnProperty(w)||(w.indexOf("--")===0?i.setProperty(w,""):w==="float"?i.cssFloat="":i[w]="",nt=!0);for(var E in c)w=c[E],c.hasOwnProperty(E)&&b[E]!==w&&(eb(i,E,w),nt=!0)}else for(var N in c)c.hasOwnProperty(N)&&eb(i,N,c[N])}function $p(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),nC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function kc(i){return nC.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function aa(){}var Zm=null;function eh(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Xo=null,il=null;function tb(i){var c=Cl(i);if(c&&(i=c.stateNode)){var b=i[Gn]||null;e:switch(i=c.stateNode,c.type){case"input":if(Xm(i,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name),c=b.name,b.type==="radio"&&c!=null){for(b=i;b.parentNode;)b=b.parentNode;b=b.querySelectorAll('input[name="'+xr(""+c)+'"][type="radio"]');for(c=0;c<b.length;c++){var w=b[c];if(w!==i&&w.form===i.form){var E=w[Gn]||null;if(!E)throw Error(le(90));Xm(w,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(c=0;c<b.length;c++)w=b[c],w.form===i.form&&Y0(w)}break e;case"textarea":Q0(i,b.value,b.defaultValue);break e;case"select":c=b.value,c!=null&&al(i,!!b.multiple,c,!1)}}}var dm=!1;function K0(i,c,b){if(dm)return i(c,b);dm=!0;try{var w=i(c);return w}finally{if(dm=!1,Xo!==null||il!==null){if(_f(),Xo&&(c=Xo,i=il,il=Xo=null,tb(c),i))for(c=0;c<i.length;c++)tb(i[c])}}}function qs(i,c){var b=i.stateNode;if(b===null)return null;var w=b[Gn]||null;if(w===null)return null;b=w[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(i=i.type,w=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!w;break e;default:i=!1}if(i)return null;if(b&&typeof b!=="function")throw Error(le(231,c,typeof b));return b}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Km=!1;if(Ea)try{Pi={},Object.defineProperty(Pi,"passive",{get:function(){Km=!0}}),window.addEventListener("test",Pi,Pi),window.removeEventListener("test",Pi,Pi)}catch(i){Km=!1}var Pi,Qa=null,th=null,Sc=null;function J0(){if(Sc)return Sc;var i,c=th,b=c.length,w,E="value"in Qa?Qa.value:Qa.textContent,N=E.length;for(i=0;i<b&&c[i]===E[i];i++);var R=b-i;for(w=1;w<=R&&c[b-w]===E[N-w];w++);return Sc=E.slice(i,1<w?1-w:void 0)}function Ec(i){var c=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&c===13&&(i=13)):i=c,i===10&&(i=13),32<=i||i===13?i:0}function uc(){return!0}function nb(){return!1}function Nn(i){function c(b,w,E,N,R){this._reactName=b,this._targetInst=E,this.type=w,this.nativeEvent=N,this.target=R,this.currentTarget=null;for(var D in i)i.hasOwnProperty(D)&&(b=i[D],this[D]=b?b(N):N[D]);return this.isDefaultPrevented=(N.defaultPrevented!=null?N.defaultPrevented:N.returnValue===!1)?uc:nb,this.isPropagationStopped=nb,this}return gt(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var b=this.nativeEvent;b&&(b.preventDefault?b.preventDefault():typeof b.returnValue!=="unknown"&&(b.returnValue=!1),this.isDefaultPrevented=uc)},stopPropagation:function(){var b=this.nativeEvent;b&&(b.stopPropagation?b.stopPropagation():typeof b.cancelBubble!=="unknown"&&(b.cancelBubble=!0),this.isPropagationStopped=uc)},persist:function(){},isPersistent:uc}),c}var fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xf=Nn(fi),ou=gt({},fi,{view:0,detail:0}),rC=Nn(ou),mm,pm,ms,wf=gt({},ou,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nh,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){if("movementX"in i)return i.movementX;return i!==ms&&(ms&&i.type==="mousemove"?(mm=i.screenX-ms.screenX,pm=i.screenY-ms.screenY):pm=mm=0,ms=i),mm},movementY:function(i){return"movementY"in i?i.movementY:pm}}),rb=Nn(wf),aC=gt({},wf,{dataTransfer:0}),iC=Nn(aC),oC=gt({},ou,{relatedTarget:0}),hm=Nn(oC),lC=gt({},fi,{animationName:0,elapsedTime:0,pseudoElement:0}),sC=Nn(lC),uC=gt({},fi,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),cC=Nn(uC),fC=gt({},fi,{data:0}),ab=Nn(fC),dC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},pC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hC(i){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(i):(i=pC[i])?!!c[i]:!1}function nh(){return hC}var gC=gt({},ou,{key:function(i){if(i.key){var c=dC[i.key]||i.key;if(c!=="Unidentified")return c}return i.type==="keypress"?(i=Ec(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?mC[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nh,charCode:function(i){return i.type==="keypress"?Ec(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Ec(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),vC=Nn(gC),yC=gt({},wf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ib=Nn(yC),bC=gt({},fi,{submitter:0}),xC=Nn(bC),wC=gt({},ou,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nh}),kC=Nn(wC),SC=gt({},fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),EC=Nn(SC),TC=gt({},wf,{deltaX:function(i){return"deltaX"in i?i.deltaX:("wheelDeltaX"in i)?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:("wheelDeltaY"in i)?-i.wheelDeltaY:("wheelDelta"in i)?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),CC=Nn(TC),AC=gt({},fi,{newState:0,oldState:0,source:0}),NC=Nn(AC),RC=[9,13,27,32],rh=Ea&&"CompositionEvent"in window,Cs=null;Ea&&"documentMode"in document&&(Cs=document.documentMode);var MC=Ea&&"TextEvent"in window&&!Cs,W0=Ea&&(!rh||Cs&&8<Cs&&11>=Cs),ob=String.fromCharCode(32),lb=!1;function $0(i,c){switch(i){case"keyup":return RC.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ex(i){return i=i.detail,typeof i==="object"&&"data"in i?i.data:null}var Zo=!1;function zC(i,c){switch(i){case"compositionend":return ex(c);case"keypress":if(c.which!==32)return null;return lb=!0,ob;case"textInput":return i=c.data,i===ob&&lb?null:i;default:return null}}function OC(i,c){if(Zo)return i==="compositionend"||!rh&&$0(i,c)?(i=J0(),Sc=th=Qa=null,Zo=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return W0&&c.locale!=="ko"?null:c.data;default:return null}}var _C={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sb(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c==="input"?!!_C[i.type]:c==="textarea"?!0:!1}function tx(i,c,b,w){Xo?il?il.push(w):il=[w]:Xo=w,c=pf(c,"onChange"),0<c.length&&(b=new xf("onChange","change",null,b,w),i.push({event:b,listeners:c}))}var As=null,Ps=null;function DC(i){Q1(i,0)}function kf(i){var c=bs(i);if(Y0(c))return i}function ub(i,c){if(i==="change")return c}var nx=!1;if(Ea){if(Ea){if(ws="oninput"in document,!ws)Tc=document.createElement("div"),Tc.setAttribute("oninput","return;"),ws=typeof Tc.oninput==="function";xs=ws}else xs=!1;nx=xs&&(!document.documentMode||9<document.documentMode)}var xs,ws,Tc;function cb(){As&&(As.detachEvent("onpropertychange",rx),Ps=As=null)}function rx(i){if(i.propertyName==="value"&&kf(Ps)){var c=[];tx(c,Ps,i,eh(i)),K0(DC,c)}}function LC(i,c,b){i==="focusin"?(cb(),As=c,Ps=b,As.attachEvent("onpropertychange",rx)):i==="focusout"&&cb()}function HC(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return kf(Ps)}function UC(i,c){if(i==="click")return kf(c)}function BC(i,c){if(i==="input"||i==="change")return kf(c)}function VC(i,c){return i===c&&(i!==0||1/i===1/c)||i!==i&&c!==c}var dr=typeof Object.is==="function"?Object.is:VC;function Is(i,c){if(dr(i,c))return!0;if(typeof i!=="object"||i===null||typeof c!=="object"||c===null)return!1;var b=Object.keys(i),w=Object.keys(c);if(b.length!==w.length)return!1;for(w=0;w<b.length;w++){var E=b[w];if(!Fm.call(c,E)||!dr(i[E],c[E]))return!1}return!0}function Jm(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch(c){return i.body}}function fb(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function db(i,c){var b=fb(i);i=0;for(var w;b;){if(b.nodeType===3){if(w=i+b.textContent.length,i<=c&&w>=c)return{node:b,offset:c-i};i=w}e:{for(;b;){if(b.nextSibling){b=b.nextSibling;break e}b=b.parentNode}b=void 0}b=fb(b)}}function ax(i,c){return i&&c?i===c?!0:i&&i.nodeType===3?!1:c&&c.nodeType===3?ax(i,c.parentNode):("contains"in i)?i.contains(c):i.compareDocumentPosition?!!(i.compareDocumentPosition(c)&16):!1:!1}function ix(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var c=Jm(i.document);c instanceof i.HTMLIFrameElement;){try{var b=typeof c.contentWindow.location.href==="string"}catch(w){b=!1}if(b)i=c.contentWindow;else break;c=Jm(i.document)}return c}function ah(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c&&(c==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||c==="textarea"||i.contentEditable==="true")}var qC=Ea&&"documentMode"in document&&11>=document.documentMode,Ko=null,Wm=null,Ns=null,$m=!1;function mb(i,c,b){var w=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;$m||Ko==null||Ko!==Jm(w)||(w=Ko,("selectionStart"in w)&&ah(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),Ns&&Is(Ns,w)||(Ns=w,w=pf(Wm,"onSelect"),0<w.length&&(c=new xf("onSelect","select",null,c,b),i.push({event:c,listeners:w}),c.target=Ko)))}function Bi(i,c){var b={};return b[i.toLowerCase()]=c.toLowerCase(),b["Webkit"+i]="webkit"+c,b["Moz"+i]="moz"+c,b}var Jo={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionrun:Bi("Transition","TransitionRun"),transitionstart:Bi("Transition","TransitionStart"),transitioncancel:Bi("Transition","TransitionCancel"),transitionend:Bi("Transition","TransitionEnd")},gm={},ox={};Ea&&(ox=document.createElement("div").style,("AnimationEvent"in window)||(delete Jo.animationend.animation,delete Jo.animationiteration.animation,delete Jo.animationstart.animation),("TransitionEvent"in window)||delete Jo.transitionend.transition);function go(i){if(gm[i])return gm[i];if(!Jo[i])return i;var c=Jo[i],b;for(b in c)if(c.hasOwnProperty(b)&&b in ox)return gm[i]=c[b];return i}var lx=go("animationend"),sx=go("animationiteration"),ux=go("animationstart"),PC=go("transitionrun"),IC=go("transitionstart"),jC=go("transitioncancel"),cx=go("transitionend"),fx=new Map,ep="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ep.push("scrollEnd");function Fr(i,c){fx.set(i,c),ho(c,[i])}var GC=0;function Ta(i,c){if(i.name!=null&&i.name!=="auto")return i.name;if(c.autoName!==null)return c.autoName;i=Yr.identifierPrefix;var b=GC++;return i="_"+i+"t_"+b.toString(32)+"_",c.autoName=i}function pb(i){if(i==null||typeof i==="string")return i;var c=null,b=dl;if(b!==null)for(var w=0;w<b.length;w++){var E=i[b[w]];if(E!=null){if(E==="none")return"none";c=c==null?E:c+(" "+E)}}return c==null?i.default:c}function za(i,c){return i=pb(i),c=pb(c),c==null?i==="auto"?null:i:c==="auto"?null:c}var Fc=typeof reportError==="function"?reportError:function(i){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i==="object"&&i!==null&&typeof i.message==="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(c))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",i);return}console.error(i)},vr=[],Wo=0,ih=0;function Sf(){for(var i=Wo,c=ih=Wo=0;c<i;){var b=vr[c];vr[c++]=null;var w=vr[c];vr[c++]=null;var E=vr[c];vr[c++]=null;var N=vr[c];if(vr[c++]=null,w!==null&&E!==null){var R=w.pending;R===null?E.next=E:(E.next=R.next,R.next=E),w.pending=E}N!==0&&dx(b,E,N)}}function Ef(i,c,b,w){vr[Wo++]=i,vr[Wo++]=c,vr[Wo++]=b,vr[Wo++]=w,ih|=w,i.lanes|=w,i=i.alternate,i!==null&&(i.lanes|=w)}function oh(i,c,b,w){return Ef(i,c,b,w),Qc(i)}function vo(i,c){return Ef(i,null,null,c),Qc(i)}function dx(i,c,b){i.lanes|=b;var w=i.alternate;w!==null&&(w.lanes|=b);for(var E=!1,N=i.return;N!==null;)N.childLanes|=b,w=N.alternate,w!==null&&(w.childLanes|=b),N.tag===22&&(i=N.stateNode,i===null||i._visibility&1||(E=!0)),i=N,N=N.return;return i.tag===3?(N=i.stateNode,E&&c!==null&&(E=31-fr(b),i=N.hiddenUpdates,w=i[E],w===null?i[E]=[c]:w.push(c),c.lane=b|536870912),N):null}function Qc(i){if(50<Bs)throw Bs=0,Lc=null,Error(le(185));for(var c=i.return;c!==null;)i=c,c=i.return;return i.tag===3?i.stateNode:null}var $o={};function YC(i,c,b,w){this.tag=i,this.key=b,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bn(i,c,b,w){return new YC(i,c,b,w)}function lh(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ka(i,c){var b=i.alternate;return b===null?(b=Bn(i.tag,c,i.key,i.mode),b.elementType=i.elementType,b.type=i.type,b.stateNode=i.stateNode,b.alternate=i,i.alternate=b):(b.pendingProps=c,b.type=i.type,b.flags=0,b.subtreeFlags=0,b.deletions=null),b.flags=i.flags&1206910976,b.childLanes=i.childLanes,b.lanes=i.lanes,b.child=i.child,b.memoizedProps=i.memoizedProps,b.memoizedState=i.memoizedState,b.updateQueue=i.updateQueue,c=i.dependencies,b.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},b.sibling=i.sibling,b.index=i.index,b.ref=i.ref,b.refCleanup=i.refCleanup,b}function mx(i,c){i.flags&=1206910978;var b=i.alternate;return b===null?(i.childLanes=0,i.lanes=c,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=b.childLanes,i.lanes=b.lanes,i.child=b.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=b.memoizedProps,i.memoizedState=b.memoizedState,i.updateQueue=b.updateQueue,i.type=b.type,c=b.dependencies,i.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),i}function Cc(i,c,b,w,E,N){var R=0;if(w=i,typeof w==="function")lh(w)&&(R=1);else if(typeof w==="string")R=x3(i,b,la.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(w){case Pm:return i=Bn(31,b,c,E),i.elementType=Pm,i.lanes=N,i;case Fo:return $i(b.children,E,N,c);case R0:R=8,E|=24;break;case Bm:return i=Bn(12,b,c,E|2),i.elementType=Bm,i.lanes=N,i;case Vm:return i=Bn(13,b,c,E),i.elementType=Vm,i.lanes=N,i;case qm:return i=Bn(19,b,c,E),i.elementType=qm,i.lanes=N,i;case OT:case Im:return i=E|32,i=Bn(30,b,c,i),i.elementType=Im,i.lanes=N,i.stateNode={autoName:null,paired:null,clones:null,ref:null},i;default:if(typeof w==="object"&&w!==null)switch(w.$$typeof){case ra:R=10;break e;case M0:R=9;break e;case Zp:R=11;break e;case Kp:R=14;break e;case ja:R=16,w=null;break e}R=29,b=Error(le(130,i===null?"null":typeof i,"")),w=null}return c=Bn(R,b,c,E),c.elementType=i,c.type=w,c.lanes=N,c}function $i(i,c,b,w){return i=Bn(7,i,w,c),i.lanes=b,i}function vm(i,c,b){return i=Bn(6,i,null,c),i.lanes=b,i}function px(i){var c=Bn(18,null,null,0);return c.stateNode=i,c}function ym(i,c,b){return c=Bn(4,i.children!==null?i.children:[],i.key,c),c.lanes=b,c.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},c}var hb=new WeakMap;function wr(i,c){if(typeof i==="object"&&i!==null){var b=hb.get(i);if(b!==void 0)return b;return c={value:i,source:c,stack:Qy(c)},hb.set(i,c),c}return{value:i,source:c,stack:Qy(c)}}var el=[],tl=0,Xc=null,js=0,yr=[],br=0,oi=null,ia=1,oa="";function xa(i,c){el[tl++]=js,el[tl++]=Xc,Xc=i,js=c}function hx(i,c,b){yr[br++]=ia,yr[br++]=oa,yr[br++]=oi,oi=i;var w=ia;i=oa;var E=32-fr(w)-1;w&=~(1<<E),b+=1;var N=32-fr(c)+E;if(30<N){var R=E-E%5;N=(w&(1<<R)-1).toString(32),w>>=R,E-=R,ia=1<<32-fr(c)+E|b<<E|w,oa=N+i}else ia=1<<N|b<<E|w,oa=i}function Tf(i){i.return!==null&&(xa(i,1),hx(i,1,0))}function sh(i){for(;i===Xc;)Xc=el[--tl],el[tl]=null,js=el[--tl],el[tl]=null;for(;i===oi;)oi=yr[--br],yr[br]=null,oa=yr[--br],yr[br]=null,ia=yr[--br],yr[br]=null}function gx(i,c){yr[br++]=ia,yr[br++]=oa,yr[br++]=oi,ia=c.id,oa=c.overflow,oi=i}var Jt=null,yt=null,qe=!1,$a=null,kr=!1,tp=Error(le(519));function li(i){var c=Error(le(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gs(wr(c,i)),tp}function gb(i){var{stateNode:c,type:b,memoizedProps:w}=i;switch(c[nn]=i,c[Gn]=w,b){case"dialog":Ge("cancel",c),Ge("close",c);break;case"iframe":case"object":case"embed":Ge("load",c);break;case"video":case"audio":for(b=0;b<Xs.length;b++)Ge(Xs[b],c);break;case"source":Ge("error",c);break;case"img":case"image":case"link":Ge("error",c),Ge("load",c);break;case"details":Ge("toggle",c);break;case"input":Ge("invalid",c),F0(c,w.value,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name,!0);break;case"select":Ge("invalid",c);break;case"textarea":Ge("invalid",c),X0(c,w.value,w.defaultValue,w.children)}b=w.children,typeof b!=="string"&&typeof b!=="number"&&typeof b!=="bigint"||c.textContent===""+b||w.suppressHydrationWarning===!0||K1(c.textContent,b)?(w.popover!=null&&(Ge("beforetoggle",c),Ge("toggle",c)),w.onScroll!=null&&Ge("scroll",c),w.onScrollEnd!=null&&Ge("scrollend",c),w.onClick!=null&&(c.onclick=aa),c=!0):c=!1,c||li(i,!0)}function Zc(i){for(Jt=i.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:kr=!1;return;case 27:case 3:kr=!0;return;default:Jt=Jt.return}}function Vo(i){if(i!==Jt)return!1;if(!qe)return Zc(i),qe=!0,!1;var c=i.tag,b;if(b=c!==3&&c!==27){if(b=c===5)b=i.type,b=!(b!=="form"&&b!=="button")||Pp(i.type,i.memoizedProps);b=!b}if(b&&yt&&li(i),Zc(i),c===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(le(317));yt=c0(i)}else if(c===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(le(317));yt=c0(i)}else c===27?(c=yt,di(i.type)?(i=Yp,Yp=null,yt=i):yt=c):yt=Jt?Er(i.stateNode.nextSibling):null;return!0}function io(){yt=Jt=null,qe=!1}function bm(){var i=$a;return i!==null&&(_n===null?_n=i:_n.push.apply(_n,i),$a=null),i}function Gs(i){$a===null?$a=[i]:$a.push(i)}var np=ca(null),yo=null,wa=null;function Xa(i,c,b){bt(np,c._currentValue),c._currentValue=b}function Sa(i){i._currentValue=np.current,an(np)}function Ac(i,c,b){for(;i!==null;){var w=i.alternate;if((i.childLanes&c)!==c?(i.childLanes|=c,w!==null&&(w.childLanes|=c)):w!==null&&(w.childLanes&c)!==c&&(w.childLanes|=c),i===b)break;i=i.return}}function rp(i,c,b,w){var E=i.child;E!==null&&(E.return=i);for(;E!==null;){var N=E.dependencies;if(N!==null){var R=E.child;N=N.firstContext;e:for(;N!==null;){var D=N;N=E;for(var L=0;L<c.length;L++)if(D.context===c[L]){N.lanes|=b,D=N.alternate,D!==null&&(D.lanes|=b),Ac(N.return,b,i),w||(R=null);break e}N=D.next}}else if(E.tag===18){if(R=E.return,R===null)throw Error(le(341));R.lanes|=b,N=R.alternate,N!==null&&(N.lanes|=b),Ac(R,b,i),R=null}else E.tag===13&&E.memoizedState!==null&&E.memoizedState.dehydrated===null?(E.lanes|=b,R=E.alternate,R!==null&&(R.lanes|=b),Ac(E.return,b,i),R=E.child,R=R!==null?R.sibling:null):R=E.child;if(R!==null)R.return=E;else for(R=E;R!==null;){if(R===i){R=null;break}if(E=R.sibling,E!==null){E.return=R.return,R=E;break}R=R.return}E=R}}function oo(i,c,b,w){i=null;for(var E=c,N=!1;E!==null;){if(!N){if((E.flags&524288)!==0)N=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var R=E.alternate;if(R===null)throw Error(le(387));if(R=R.memoizedProps,R!==null){var D=E.type;dr(E.pendingProps.value,R.value)||(i!==null?i.push(D):i=[D])}}else if(E===Pc.current){if(R=E.alternate,R===null)throw Error(le(387));R.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(i!==null?i.push(Sl):i=[Sl])}E=E.return}return i!==null&&rp(c,i,b,w),c.flags|=262144,i!==null}function Kc(i){for(i=i.firstContext;i!==null;){if(!dr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function lo(i){yo=i,wa=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function rn(i){return vx(yo,i)}function cc(i,c){return yo===null&&lo(i),vx(i,c)}function vx(i,c){var b=c._currentValue;if(c={context:c,memoizedValue:b,next:null},wa===null){if(i===null)throw Error(le(308));wa=c,i.dependencies={lanes:0,firstContext:c},i.flags|=524288}else wa=wa.next=c;return b}var FC=typeof AbortController<"u"?AbortController:function(){var i=[],c=this.signal={aborted:!1,addEventListener:function(b,w){i.push(w)}};this.abort=function(){c.aborted=!0,i.forEach(function(b){return b()})}},QC=Ui,XC=Li,Vt={$$typeof:ra,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uh(){return{controller:new FC,data:new Map,refCount:0}}function lu(i){i.refCount--,i.refCount===0&&QC(XC,function(){i.controller.abort()})}function vb(i,c){if((i.pendingLanes&4194048)!==0){var b=i.transitionTypes;b===null&&(b=i.transitionTypes=[]);for(i=0;i<c.length;i++){var w=c[i];b.indexOf(w)===-1&&b.push(w)}}}var ks=null;function ZC(i){var c=i.transitionTypes;return i.transitionTypes=null,c}var Rs=null,ap=0,so=0,ol=null;function KC(i,c){if(Rs===null){var b=Rs=[];ap=0,so=Uh(),ol={status:"pending",value:void 0,then:function(w){b.push(w)}}}return ap++,c.then(yb,yb),c}function yb(){if(--ap===0&&(ks=null,Rs!==null)){ol!==null&&(ol.status="fulfilled");var i=Rs;Rs=null,so=0,ol=null;for(var c=0;c<i.length;c++)(0,i[c])()}}function JC(i,c){var b=[],w={status:"pending",value:null,reason:null,then:function(E){b.push(E)}};return i.then(function(){w.status="fulfilled",w.value=c;for(var E=0;E<b.length;E++)(0,b[E])(c)},function(E){w.status="rejected",w.reason=E;for(E=0;E<b.length;E++)(0,b[E])(void 0)}),w}var bb=Ee.S;Ee.S=function(i,c){if(O1=ur(),typeof c==="object"&&c!==null&&typeof c.then==="function"&&KC(i,c),ks!==null)for(var b=xl;b!==null;)vb(b,ks),b=b.next;if(b=i.types,b!==null){for(var w=xl;w!==null;)vb(w,b),w=w.next;if(so!==0){w=ks,w===null&&(w=ks=[]);for(var E=0;E<b.length;E++){var N=b[E];w.indexOf(N)===-1&&w.push(N)}}}bb!==null&&bb(i,c)};var eo=ca(null);function ch(){var i=eo.current;return i!==null?i:ht.pooledCache}function Nc(i,c){c===null?bt(eo,eo.current):bt(eo,c.pool)}function yx(){var i=ch();return i===null?null:{parent:Vt._currentValue,pool:i}}var Al=Error(le(460)),fh=Error(le(474)),Cf=Error(le(542)),Jc={then:function(){}};function xb(i){return i=i.status,i==="fulfilled"||i==="rejected"}function bx(i,c,b){switch(b=i[b],b===void 0?i.push(c):b!==c&&(c.then(aa,aa),c=b),c.status){case"fulfilled":return c.value;case"rejected":if(i=c.reason,kb(i),i===void 0&&!("reason"in c))throw Error(le(600));throw i;default:if(typeof c.status==="string")c.then(aa,aa);else{if(i=ht,i!==null&&100<i.shellSuspendCounter)throw Error(le(482));i=c,i.status="pending",i.then(function(w){if(c.status==="pending"){var E=c;E.status="fulfilled",E.value=w}},function(w){if(c.status==="pending"){var E=c;E.status="rejected",E.reason=w}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw i=c.reason,kb(i),i}throw to=c,Al}}function Ii(i){try{var c=i._init;return c(i._payload)}catch(b){if(b!==null&&typeof b==="object"&&typeof b.then==="function")throw to=b,Al;throw b}}var to=null;function wb(){if(to===null)throw Error(le(459));var i=to;return to=null,i}function kb(i){if(i===Al||i===Cf)throw Error(le(483))}var ll=null,Ys=0;function fc(i){var c=Ys;return Ys+=1,ll===null&&(ll=[]),bx(ll,i,c)}function qa(i,c){c=c.props.ref,i.ref=c!==void 0?c:null}function dc(i,c){if(c.$$typeof===zT)throw Error(le(525));throw i=Object.prototype.toString.call(c),Error(le(31,i==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":i))}function xx(i){function c(P,G){if(i){var F=P.deletions;F===null?(P.deletions=[G],P.flags|=16):F.push(G)}}function b(P,G){if(!i)return null;for(;G!==null;)c(P,G),G=G.sibling;return null}function w(P){for(var G=new Map;P!==null;)P.key===null?G.set(P.index,P):G.set(P.key,P),P=P.sibling;return G}function E(P,G){return P=ka(P,G),P.index=0,P.sibling=null,P}function N(P,G,F){if(P.index=F,!i)return P.flags|=1048576,G;if(F=P.alternate,F!==null)return F=F.index,F<G?(P.flags|=2,G):F;return P.flags|=134217730,G}function R(P){return i&&P.alternate===null&&(P.flags|=134217730),P}function D(P,G,F,te){if(G===null||G.tag!==6)return G=vm(F,P.mode,te),G.return=P,G;return G=E(G,F),G.return=P,G}function L(P,G,F,te){var oe=F.type;if(oe===Fo)return P=U(P,G,F.props.children,te,F.key),qa(P,F),P;if(G!==null&&(G.elementType===oe||typeof oe==="object"&&oe!==null&&oe.$$typeof===ja&&Ii(oe)===G.type))return G=E(G,F.props),qa(G,F),G.return=P,G;return G=Cc(F.type,F.key,F.props,null,P.mode,te),qa(G,F),G.return=P,G}function H(P,G,F,te){if(G===null||G.tag!==4||G.stateNode.containerInfo!==F.containerInfo||G.stateNode.implementation!==F.implementation)return G=ym(F,P.mode,te),G.return=P,G;return G=E(G,F.children||[]),G.return=P,G}function U(P,G,F,te,oe){if(G===null||G.tag!==7)return G=$i(F,P.mode,te,oe),G.return=P,G;return G=E(G,F),G.return=P,G}function B(P,G,F){if(typeof G==="string"&&G!==""||typeof G==="number"||typeof G==="bigint")return G=vm(""+G,P.mode,F),G.return=P,G;if(typeof G==="object"&&G!==null){switch(G.$$typeof){case ac:return F=Cc(G.type,G.key,G.props,null,P.mode,F),qa(F,G),F.return=P,F;case vs:return G=ym(G,P.mode,F),G.return=P,G;case ja:return G=Ii(G),B(P,G,F)}if(ys(G)||fs(G))return G=$i(G,P.mode,F,null),G.return=P,G;if(typeof G.then==="function")return B(P,fc(G),F);if(G.$$typeof===ra)return B(P,cc(P,G),F);dc(P,G)}return null}function V(P,G,F,te){var oe=G!==null?G.key:null;if(typeof F==="string"&&F!==""||typeof F==="number"||typeof F==="bigint")return oe!==null?null:D(P,G,""+F,te);if(typeof F==="object"&&F!==null){switch(F.$$typeof){case ac:return F.key===oe?L(P,G,F,te):null;case vs:return F.key===oe?H(P,G,F,te):null;case ja:return F=Ii(F),V(P,G,F,te)}if(ys(F)||fs(F))return oe!==null?null:U(P,G,F,te,null);if(typeof F.then==="function")return V(P,G,fc(F),te);if(F.$$typeof===ra)return V(P,G,cc(P,F),te);dc(P,F)}return null}function q(P,G,F,te,oe){if(typeof te==="string"&&te!==""||typeof te==="number"||typeof te==="bigint")return P=P.get(F)||null,D(G,P,""+te,oe);if(typeof te==="object"&&te!==null){switch(te.$$typeof){case ac:return P=P.get(te.key===null?F:te.key)||null,L(G,P,te,oe);case vs:return P=P.get(te.key===null?F:te.key)||null,H(G,P,te,oe);case ja:return te=Ii(te),q(P,G,F,te,oe)}if(ys(te)||fs(te))return P=P.get(F)||null,U(G,P,te,oe,null);if(typeof te.then==="function")return q(P,G,F,fc(te),oe);if(te.$$typeof===ra)return q(P,G,F,cc(G,te),oe);dc(G,te)}return null}function Y(P,G,F,te){for(var oe=null,ae=null,ce=G,ue=G=0,ye=null;ce!==null&&ue<F.length;ue++){ce.index>ue?(ye=ce,ce=null):ye=ce.sibling;var ne=V(P,ce,F[ue],te);if(ne===null){ce===null&&(ce=ye);break}i&&ce&&ne.alternate===null&&c(P,ce),G=N(ne,G,ue),ae===null?oe=ne:ae.sibling=ne,ae=ne,ce=ye}if(ue===F.length)return b(P,ce),qe&&xa(P,ue),oe;if(ce===null){for(;ue<F.length;ue++)ce=B(P,F[ue],te),ce!==null&&(G=N(ce,G,ue),ae===null?oe=ce:ae.sibling=ce,ae=ce);return qe&&xa(P,ue),oe}for(ce=w(ce);ue<F.length;ue++)ye=q(ce,P,ue,F[ue],te),ye!==null&&(i&&(ne=ye.alternate,ne!==null&&ce.delete(ne.key===null?ue:ne.key)),G=N(ye,G,ue),ae===null?oe=ye:ae.sibling=ye,ae=ye);return i&&ce.forEach(function(Ve){return c(P,Ve)}),qe&&xa(P,ue),oe}function Z(P,G,F,te){if(F==null)throw Error(le(151));for(var oe=null,ae=null,ce=G,ue=G=0,ye=null,ne=F.next();ce!==null&&!ne.done;ue++,ne=F.next()){ce.index>ue?(ye=ce,ce=null):ye=ce.sibling;var Ve=V(P,ce,ne.value,te);if(Ve===null){ce===null&&(ce=ye);break}i&&ce&&Ve.alternate===null&&c(P,ce),G=N(Ve,G,ue),ae===null?oe=Ve:ae.sibling=Ve,ae=Ve,ce=ye}if(ne.done)return b(P,ce),qe&&xa(P,ue),oe;if(ce===null){for(;!ne.done;ue++,ne=F.next())ne=B(P,ne.value,te),ne!==null&&(G=N(ne,G,ue),ae===null?oe=ne:ae.sibling=ne,ae=ne);return qe&&xa(P,ue),oe}for(ce=w(ce);!ne.done;ue++,ne=F.next())ne=q(ce,P,ue,ne.value,te),ne!==null&&(i&&(ye=ne.alternate,ye!==null&&ce.delete(ye.key===null?ue:ye.key)),G=N(ne,G,ue),ae===null?oe=ne:ae.sibling=ne,ae=ne);return i&&ce.forEach(function(ze){return c(P,ze)}),qe&&xa(P,ue),oe}function ee(P,G,F,te){if(typeof F==="object"&&F!==null&&F.type===Fo&&F.key===null&&F.props.ref===void 0&&(F=F.props.children),typeof F==="object"&&F!==null){switch(F.$$typeof){case ac:e:{for(var oe=F.key;G!==null;){if(G.key===oe){if(oe=F.type,oe===Fo){if(G.tag===7){b(P,G.sibling),te=E(G,F.props.children),qa(te,F),te.return=P,P=te;break e}}else if(G.elementType===oe||typeof oe==="object"&&oe!==null&&oe.$$typeof===ja&&Ii(oe)===G.type){b(P,G.sibling),te=E(G,F.props),qa(te,F),te.return=P,P=te;break e}b(P,G);break}else c(P,G);G=G.sibling}F.type===Fo?(te=$i(F.props.children,P.mode,te,F.key),qa(te,F),te.return=P,P=te):(te=Cc(F.type,F.key,F.props,null,P.mode,te),qa(te,F),te.return=P,P=te)}return R(P);case vs:e:{for(oe=F.key;G!==null;){if(G.key===oe)if(G.tag===4&&G.stateNode.containerInfo===F.containerInfo&&G.stateNode.implementation===F.implementation){b(P,G.sibling),te=E(G,F.children||[]),te.return=P,P=te;break e}else{b(P,G);break}else c(P,G);G=G.sibling}te=ym(F,P.mode,te),te.return=P,P=te}return R(P);case ja:return F=Ii(F),ee(P,G,F,te)}if(ys(F))return Y(P,G,F,te);if(fs(F)){if(oe=fs(F),typeof oe!=="function")throw Error(le(150));return F=oe.call(F),Z(P,G,F,te)}if(typeof F.then==="function")return ee(P,G,fc(F),te);if(F.$$typeof===ra)return ee(P,G,cc(P,F),te);dc(P,F)}return typeof F==="string"&&F!==""||typeof F==="number"||typeof F==="bigint"?(F=""+F,G!==null&&G.tag===6?(b(P,G.sibling),te=E(G,F),te.return=P,P=te):(b(P,G),te=vm(F,P.mode,te),te.return=P,P=te),R(P)):b(P,G)}return function(P,G,F,te){try{Ys=0;var oe=ee(P,G,F,te);return ll=null,oe}catch(ce){if(ce===Al||ce===Cf)throw ce;var ae=Bn(29,ce,null,P.mode);return ae.lanes=te,ae.return=P,ae}finally{}}}var uo=xx(!0),wx=xx(!1),Ga=!1;function dh(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ip(i,c){i=i.updateQueue,c.updateQueue===i&&(c.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function no(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function ro(i,c,b){var w=i.updateQueue;if(w===null)return null;if(w=w.shared,(at&2)!==0){var E=w.pending;return E===null?c.next=c:(c.next=E.next,E.next=c),w.pending=c,c=Qc(i),dx(i,null,b),c}return Ef(i,w,c,b),Qc(i)}function Ms(i,c,b){if(c=c.updateQueue,c!==null&&(c=c.shared,(b&4194048)!==0)){var w=c.lanes;w&=i.pendingLanes,b|=w,c.lanes=b,U0(i,b)}}function xm(i,c){var b=i.updateQueue,w=i.alternate;if(w!==null&&(w=w.updateQueue,b===w)){var E=null,N=null;if(b=b.firstBaseUpdate,b!==null){do{var R={lane:b.lane,tag:b.tag,payload:b.payload,callback:null,next:null};N===null?E=N=R:N=N.next=R,b=b.next}while(b!==null);N===null?E=N=c:N=N.next=c}else E=N=c;b={baseState:w.baseState,firstBaseUpdate:E,lastBaseUpdate:N,shared:w.shared,callbacks:w.callbacks},i.updateQueue=b;return}i=b.lastBaseUpdate,i===null?b.firstBaseUpdate=c:i.next=c,b.lastBaseUpdate=c}var op=!1;function zs(){if(op){var i=ol;if(i!==null)throw i}}function Os(i,c,b,w){op=!1;var E=i.updateQueue;Ga=!1;var{firstBaseUpdate:N,lastBaseUpdate:R}=E,D=E.shared.pending;if(D!==null){E.shared.pending=null;var L=D,H=L.next;L.next=null,R===null?N=H:R.next=H,R=L;var U=i.alternate;U!==null&&(U=U.updateQueue,D=U.lastBaseUpdate,D!==R&&(D===null?U.firstBaseUpdate=H:D.next=H,U.lastBaseUpdate=L))}if(N!==null){var B=E.baseState;R=0,U=H=L=null,D=N;do{var V=D.lane&-536870913,q=V!==D.lane;if(q?(Qe&V)===V:(w&V)===V){V!==0&&V===so&&(op=!0),U!==null&&(U=U.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var Y=i,Z=D;V=c;var ee=b;switch(Z.tag){case 1:if(Y=Z.payload,typeof Y==="function"){B=Y.call(ee,B,V);break e}B=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=Z.payload,V=typeof Y==="function"?Y.call(ee,B,V):Y,V===null||V===void 0)break e;B=gt({},B,V);break e;case 2:Ga=!0}}V=D.callback,V!==null&&(i.flags|=64,q&&(i.flags|=8192),q=E.callbacks,q===null?E.callbacks=[V]:q.push(V))}else q={lane:V,tag:D.tag,payload:D.payload,callback:D.callback,next:null},U===null?(H=U=q,L=B):U=U.next=q,R|=V;if(D=D.next,D===null)if(D=E.shared.pending,D===null)break;else q=D,D=q.next,q.next=null,E.lastBaseUpdate=q,E.shared.pending=null}while(1);U===null&&(L=B),E.baseState=L,E.firstBaseUpdate=H,E.lastBaseUpdate=U,N===null&&(E.shared.lanes=0),ci|=R,i.lanes=R,i.memoizedState=B}}function kx(i,c){if(typeof i!=="function")throw Error(le(191,i));i.call(c)}function Sx(i,c){var b=i.callbacks;if(b!==null)for(i.callbacks=null,i=0;i<b.length;i++)kx(b[i],c)}var si=ca(null),Wc=ca(0);function Sb(i,c){i=Ra,bt(Wc,i),bt(si,c),Ra=i|c.baseLanes}function lp(){bt(Wc,Ra),bt(si,si.current)}function mh(){Ra=Wc.current,an(si),an(Wc)}var sn=ca(null),wn=null;function ei(i){var c=i.alternate;bt(on,on.current&1),bt(sn,i),wn===null&&(c===null||si.current!==null?wn=i:c.memoizedState!==null&&(wn=i))}function sp(i){bt(on,on.current),bt(sn,i),wn===null&&(wn=i)}function Ex(i){i.tag===22?(bt(on,on.current),bt(sn,i),wn===null&&(wn=i)):ti()}function ti(){bt(on,on.current),bt(sn,sn.current)}function Wn(i){an(sn),wn===i&&(wn=null),an(on)}var on=ca(0);function Fs(i,c){bt(sn,sn.current),bt(on,c)}function ph(i){an(on),an(sn),wn===i&&(wn=null)}function $c(i){for(var c=i;c!==null;){if(c.tag===13){var b=c.memoizedState;if(b!==null&&(b=b.dehydrated,b===null||Gp(b)||qh(b)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!=="independent"){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var Ca=0,_e=null,mt=null,Bt=null,ef=!1,sl=!1,co=!1,tf=0,Qs=0,ul=null,WC=0;function Mt(){throw Error(le(321))}function hh(i,c){if(c===null)return!1;for(var b=0;b<c.length&&b<i.length;b++)if(!dr(i[b],c[b]))return!1;return!0}function gh(i,c,b,w,E,N){return Ca=N,_e=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,Ee.H=i===null||i.memoizedState===null?t1:n1,co=!1,N=b(w,E),co=!1,sl&&(N=Cx(c,b,w,E)),Tx(i),N}function Tx(i){Ee.H=nf;var c=mt!==null&&mt.next!==null;if(Ca=0,Bt=mt=_e=null,ef=!1,Qs=0,ul=null,c)throw Error(le(300));i===null||qt||(i=i.dependencies,i!==null&&Kc(i)&&(qt=!0))}function Cx(i,c,b,w){_e=i;var E=0;do{if(sl&&(ul=null),Qs=0,sl=!1,25<=E)throw Error(le(301));if(E+=1,Bt=mt=null,i.updateQueue!=null){var N=i.updateQueue;N.lastEffect=null,N.events=null,N.stores=null,N.memoCache!=null&&(N.memoCache.index=0)}Ee.H=oA,N=c(b,w)}while(sl);return N}function $C(){var i=Ee.H,c=i.useState()[0];return c=typeof c.then==="function"?su(c):c,i=i.useState()[0],(mt!==null?mt.memoizedState:null)!==i&&(_e.flags|=1024),c}function vh(){var i=tf!==0;return tf=0,i}function yh(i,c,b){c.updateQueue=i.updateQueue,c.flags&=-2053,i.lanes&=~b}function bh(i){if(ef){for(i=i.memoizedState;i!==null;){var c=i.queue;c!==null&&(c.pending=null),i=i.next}ef=!1}Ca=0,Bt=mt=_e=null,sl=!1,Qs=tf=0,ul=null}function An(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?_e.memoizedState=Bt=i:Bt=Bt.next=i,Bt}function Ut(){if(mt===null){var i=_e.alternate;i=i!==null?i.memoizedState:null}else i=mt.next;var c=Bt===null?_e.memoizedState:Bt.next;if(c!==null)Bt=c,mt=i;else{if(i===null){if(_e.alternate===null)throw Error(le(467));throw Error(le(310))}mt=i,i={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Bt===null?_e.memoizedState=Bt=i:Bt=Bt.next=i}return Bt}function Af(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function su(i){var c=Qs;return Qs+=1,ul===null&&(ul=[]),i=bx(ul,i,c),c=_e,(Bt===null?c.memoizedState:Bt.next)===null&&(c=c.alternate,Ee.H=c===null||c.memoizedState===null?t1:n1),i}function Nf(i){if(i!==null&&typeof i==="object"){if(typeof i.then==="function")return su(i);if(i.$$typeof===DT)return;if(i.$$typeof===ra)return rn(i)}throw Error(le(438,String(i)))}function xh(i){var c=null,b=_e.updateQueue;if(b!==null&&(c=b.memoCache),c==null){var w=_e.alternate;w!==null&&(w=w.updateQueue,w!==null&&(w=w.memoCache,w!=null&&(c={data:w.data.map(function(E){return E.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),b===null&&(b=Af(),_e.updateQueue=b),b.memoCache=c,b=c.data[c.index],b===void 0)for(b=c.data[c.index]=Array(i),w=0;w<i;w++)b[w]=_T;return c.index++,b}function Aa(i,c){return typeof c==="function"?c(i):c}function Rc(i){var c=Ut();return wh(c,mt,i)}function wh(i,c,b){var w=i.queue;if(w===null)throw Error(le(311));w.lastRenderedReducer=b;var E=i.baseQueue,N=w.pending;if(N!==null){if(E!==null){var R=E.next;E.next=N.next,N.next=R}c.baseQueue=E=N,w.pending=null}if(N=i.baseState,E===null)i.memoizedState=N;else{c=E.next;var D=R=null,L=null,H=c,U=!1;do{var B=H.lane&-536870913;if(B!==H.lane?(Qe&B)===B:(Ca&B)===B){var V=H.revertLane;if(V===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),B===so&&(U=!0);else if((Ca&V)===V){H=H.next,V===so&&(U=!0);continue}else B={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},L===null?(D=L=B,R=N):L=L.next=B,_e.lanes|=V,ci|=V;B=H.action,co&&b(N,B),N=H.hasEagerState?H.eagerState:b(N,B)}else V={lane:B,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},L===null?(D=L=V,R=N):L=L.next=V,_e.lanes|=B,ci|=B;H=H.next}while(H!==null&&H!==c);if(L===null?R=N:L.next=D,!dr(N,i.memoizedState)&&(qt=!0,U&&(b=ol,b!==null)))throw b;i.memoizedState=N,i.baseState=R,i.baseQueue=L,w.lastRenderedState=N}return E===null&&(w.lanes=0),[i.memoizedState,w.dispatch]}function wm(i){var c=Ut(),b=c.queue;if(b===null)throw Error(le(311));b.lastRenderedReducer=i;var{dispatch:w,pending:E}=b,N=c.memoizedState;if(E!==null){b.pending=null;var R=E=E.next;do N=i(N,R.action),R=R.next;while(R!==E);dr(N,c.memoizedState)||(qt=!0),c.memoizedState=N,c.baseQueue===null&&(c.baseState=N),b.lastRenderedState=N}return[N,w]}function Ax(i,c,b){var w=_e,E=Ut(),N=qe;if(N){if(b===void 0)throw Error(le(407));b=b()}else b=c();var R=!dr((mt||E).memoizedState,b);if(R&&(E.memoizedState=b,qt=!0),E=E.queue,kh(Mx.bind(null,w,E,i),[i]),i=E.getSnapshot!==c||R||Bt!==null&&(Bt.memoizedState.tag&1)!==0,gl(i?9:8,{destroy:void 0},Rx.bind(null,w,E,b,c),null),i){if(w.flags|=2048,ht===null)throw Error(le(349));N||(Ca&127)!==0||Nx(w,c,b)}return b}function Nx(i,c,b){i.flags|=16384,i={getSnapshot:c,value:b},c=_e.updateQueue,c===null?(c=Af(),_e.updateQueue=c,c.stores=[i]):(b=c.stores,b===null?c.stores=[i]:b.push(i))}function Rx(i,c,b,w){c.value=b,c.getSnapshot=w,zx(c)&&Ox(i)}function Mx(i,c,b){return b(function(){zx(c)&&Ox(i)})}function zx(i){var c=i.getSnapshot;i=i.value;try{var b=c();return!dr(i,b)}catch(w){return!0}}function Ox(i){var c=vo(i,2);c!==null&&Pn(c,i,2)}function up(i){var c=An();if(typeof i==="function"){var b=i;if(i=b(),co){Fa(!0);try{b()}finally{Fa(!1)}}}return c.memoizedState=c.baseState=i,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:i},c}function _x(i,c,b,w){return i.baseState=b,wh(i,mt,typeof w==="function"?w:Aa)}function eA(i,c,b,w,E){if(Mf(i))throw Error(le(485));if(i=c.action,i!==null){var N={payload:E,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){N.listeners.push(R)}};Ee.T!==null?b(!0):N.isTransition=!1,w(N),b=c.pending,b===null?(N.next=c.pending=N,Dx(c,N)):(N.next=b.next,c.pending=b.next=N)}}function Dx(i,c){var{action:b,payload:w}=c,E=i.state;if(c.isTransition){var N=Ee.T,R={};R.types=N!==null?N.types:null,Ee.T=R;try{var D=b(E,w),L=Ee.S;L!==null&&L(R,D),Eb(i,c,D)}catch(H){cp(i,c,H)}finally{N!==null&&R.types!==null&&(N.types=R.types),Ee.T=N}}else try{N=b(E,w),Eb(i,c,N)}catch(H){cp(i,c,H)}}function Eb(i,c,b){b!==null&&typeof b==="object"&&typeof b.then==="function"?b.then(function(w){Tb(i,c,w)},function(w){return cp(i,c,w)}):Tb(i,c,b)}function Tb(i,c,b){c.status="fulfilled",c.value=b,Lx(c),i.state=b,c=i.pending,c!==null&&(b=c.next,b===c?i.pending=null:(b=b.next,c.next=b,Dx(i,b)))}function cp(i,c,b){var w=i.pending;if(i.pending=null,w!==null){w=w.next;do c.status="rejected",c.reason=b,Lx(c),c=c.next;while(c!==w)}i.action=null}function Lx(i){i=i.listeners;for(var c=0;c<i.length;c++)(0,i[c])()}function Hx(i,c){return c}function Cb(i,c){if(qe){var b=ht.formState;if(b!==null){e:{var w=_e;if(qe){if(yt){t:{var E=yt;for(var N=kr;E.nodeType!==8;){if(!N){E=null;break t}if(E=Er(E.nextSibling),E===null){E=null;break t}}N=E.data,E=N==="F!"||N==="F"?E:null}if(E){yt=Er(E.nextSibling),w=E.data==="F!";break e}}li(w)}w=!1}w&&(c=b[0])}}return b=An(),b.memoizedState=b.baseState=c,w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hx,lastRenderedState:c},b.queue=w,b=Wx.bind(null,_e,w),w.dispatch=b,w=up(!1),N=Ch.bind(null,_e,!1,w.queue),w=An(),E={state:c,dispatch:null,action:i,pending:null},w.queue=E,b=eA.bind(null,_e,E,N,b),E.dispatch=b,w.memoizedState=i,[c,b,!1]}function Ab(i){var c=Ut();return Ux(c,mt,i)}function Ux(i,c,b){if(c=wh(i,c,Hx)[0],i=Rc(Aa)[0],typeof c==="object"&&c!==null&&typeof c.then==="function")try{var w=su(c)}catch(R){if(R===Al)throw Cf;throw R}else w=c;c=Ut();var E=c.queue,N=E.dispatch;return b!==c.memoizedState&&(_e.flags|=2048,gl(9,{destroy:void 0},tA.bind(null,E,b),null)),[w,N,i]}function tA(i,c){i.action=c}function Nb(i){var c=Ut(),b=mt;if(b!==null)return Ux(c,b,i);Ut(),c=c.memoizedState,b=Ut();var w=b.queue.dispatch;return b.memoizedState=i,[c,w,!1]}function gl(i,c,b,w){return i={tag:i,create:b,deps:w,inst:c,next:null},c=_e.updateQueue,c===null&&(c=Af(),_e.updateQueue=c),b=c.lastEffect,b===null?c.lastEffect=i.next=i:(w=b.next,b.next=i,i.next=w,c.lastEffect=i),i}function Bx(){return Ut().memoizedState}function Mc(i,c,b,w){var E=An();_e.flags|=i,E.memoizedState=gl(1|c,{destroy:void 0},b,w===void 0?null:w)}function Rf(i,c,b,w){var E=Ut();w=w===void 0?null:w;var N=E.memoizedState.inst;mt!==null&&w!==null&&hh(w,mt.memoizedState.deps)?E.memoizedState=gl(c,N,b,w):(_e.flags|=i,E.memoizedState=gl(1|c,N,b,w))}function Rb(i,c){Mc(8390656,8,i,c)}function kh(i,c){Rf(2048,8,i,c)}function nA(i){_e.flags|=4;var c=_e.updateQueue;if(c===null)c=Af(),_e.updateQueue=c,c.events=[i];else{var b=c.events;b===null?c.events=[i]:b.push(i)}}function Vx(i){var c=Ut().memoizedState;return nA({ref:c,nextImpl:i}),function(){if((at&2)!==0)throw Error(le(440));return c.impl.apply(void 0,arguments)}}function qx(i,c){return Rf(4,2,i,c)}function Px(i,c){return Rf(4,4,i,c)}function Ix(i,c){if(typeof c==="function"){i=i();var b=c(i);return function(){typeof b==="function"?b():c(null)}}if(c!==null&&c!==void 0)return i=i(),c.current=i,function(){c.current=null}}function jx(i,c,b){b=b!==null&&b!==void 0?b.concat([i]):null,Rf(4,4,Ix.bind(null,c,i),b)}function Sh(){}function Gx(i,c){var b=Ut();c=c===void 0?null:c;var w=b.memoizedState;if(c!==null&&hh(c,w[1]))return w[0];return b.memoizedState=[i,c],i}function Yx(i,c){var b=Ut();c=c===void 0?null:c;var w=b.memoizedState;if(c!==null&&hh(c,w[1]))return w[0];if(w=i(),co){Fa(!0);try{i()}finally{Fa(!1)}}return b.memoizedState=[w,c],w}function Eh(i,c,b){if(b===void 0||(Ca&1073741824)!==0&&(Qe&261930)===0)return i.memoizedState=c;return i.memoizedState=b,i=D1(),_e.lanes|=i,ci|=i,b}function Fx(i,c,b,w){if(dr(b,c))return b;if(si.current!==null)return i=Eh(i,b,w),dr(i,c)||(qt=!0),i;if((Ca&106)===0||(Ca&1073741824)!==0&&(Qe&261930)===0)return qt=!0,i.memoizedState=b;return i=D1(),_e.lanes|=i,ci|=i,c}function Qx(i,c,b,w,E){var N=it.p;it.p=N!==0&&8>N?N:8;var R=Ee.T,D={};D.types=R!==null?R.types:null,Ee.T=D,Ch(i,!1,c,b);try{var L=E(),H=Ee.S;if(H!==null&&H(D,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){var U=JC(L,w);_s(i,c,U,Sr(i))}else _s(i,c,w,Sr(i))}catch(B){_s(i,c,{then:function(){},status:"rejected",reason:B},Sr())}finally{it.p=N,R!==null&&D.types!==null&&(R.types=D.types),Ee.T=R}}function rA(){}function fp(i,c,b,w){if(i.tag!==5)throw Error(le(476));var E=Xx(i).queue;Qx(i,E,c,Xi,b===null?rA:function(){return Zx(i),b(w)})}function Xx(i){var c=i.memoizedState;if(c!==null)return c;c={memoizedState:Xi,baseState:Xi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:Xi},next:null};var b={};return c.next={memoizedState:b,baseState:b,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:b},next:null},i.memoizedState=c,i=i.alternate,i!==null&&(i.memoizedState=c),c}function Zx(i){var c=Xx(i);c.next===null&&(c=i.alternate.memoizedState),_s(i,c.next.queue,{},Sr())}function Th(){return rn(Sl)}function Kx(){return Ut().memoizedState}function Jx(){return Ut().memoizedState}function aA(i){for(var c=i.return;c!==null;){switch(c.tag){case 24:case 3:var b=Sr();i=no(b);var w=ro(c,i,b);w!==null&&(Pn(w,c,b),Ms(w,c,b)),c={cache:uh()},i.payload=c;return}c=c.return}}function iA(i,c,b){var w=Sr();b={lane:w,revertLane:0,gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},Mf(i)?$x(c,b):(b=oh(i,c,b,w),b!==null&&(Pn(b,i,w),e1(b,c,w)))}function Wx(i,c,b){var w=Sr();_s(i,c,b,w)}function _s(i,c,b,w){var E={lane:w,revertLane:0,gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null};if(Mf(i))$x(c,E);else{var N=i.alternate;if(i.lanes===0&&(N===null||N.lanes===0)&&(N=c.lastRenderedReducer,N!==null))try{var R=c.lastRenderedState,D=N(R,b);if(E.hasEagerState=!0,E.eagerState=D,dr(D,R))return Ef(i,c,E,0),ht===null&&Sf(),!1}catch(L){}finally{}if(b=oh(i,c,E,w),b!==null)return Pn(b,i,w),e1(b,c,w),!0}return!1}function Ch(i,c,b,w){if(w={lane:2,revertLane:Uh(),gesture:null,action:w,hasEagerState:!1,eagerState:null,next:null},Mf(i)){if(c)throw Error(le(479))}else c=oh(i,b,w,2),c!==null&&Pn(c,i,2)}function Mf(i){var c=i.alternate;return i===_e||c!==null&&c===_e}function $x(i,c){sl=ef=!0;var b=i.pending;b===null?c.next=c:(c.next=b.next,b.next=c),i.pending=c}function e1(i,c,b){if((b&4194048)!==0){var w=c.lanes;w&=i.pendingLanes,b|=w,c.lanes=b,U0(i,b)}}var nf={readContext:rn,use:Nf,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useLayoutEffect:Mt,useInsertionEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useSyncExternalStore:Mt,useId:Mt,useHostTransitionStatus:Mt,useFormState:Mt,useActionState:Mt,useOptimistic:Mt,useMemoCache:Mt,useCacheRefresh:Mt,useEffectEvent:Mt},t1={readContext:rn,use:Nf,useCallback:function(i,c){return An().memoizedState=[i,c===void 0?null:c],i},useContext:rn,useEffect:Rb,useImperativeHandle:function(i,c,b){b=b!==null&&b!==void 0?b.concat([i]):null,Mc(4194308,4,Ix.bind(null,c,i),b)},useLayoutEffect:function(i,c){return Mc(4194308,4,i,c)},useInsertionEffect:function(i,c){Mc(4,2,i,c)},useMemo:function(i,c){var b=An();c=c===void 0?null:c;var w=i();if(co){Fa(!0);try{i()}finally{Fa(!1)}}return b.memoizedState=[w,c],w},useReducer:function(i,c,b){var w=An();if(b!==void 0){var E=b(c);if(co){Fa(!0);try{b(c)}finally{Fa(!1)}}}else E=c;return w.memoizedState=w.baseState=E,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:E},w.queue=i,i=i.dispatch=iA.bind(null,_e,i),[w.memoizedState,i]},useRef:function(i){var c=An();return i={current:i},c.memoizedState=i},useState:function(i){i=up(i);var c=i.queue,b=Wx.bind(null,_e,c);return c.dispatch=b,[i.memoizedState,b]},useDebugValue:Sh,useDeferredValue:function(i,c){var b=An();return Eh(b,i,c)},useTransition:function(){var i=up(!1);return i=Qx.bind(null,_e,i.queue,!0,!1),An().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,c,b){var w=_e,E=An();if(qe){if(b===void 0)throw Error(le(407));b=b()}else{if(b=c(),ht===null)throw Error(le(349));(Qe&127)!==0||Nx(w,c,b)}E.memoizedState=b;var N={value:b,getSnapshot:c};return E.queue=N,Rb(Mx.bind(null,w,N,i),[i]),w.flags|=2048,gl(9,{destroy:void 0},Rx.bind(null,w,N,b,c),null),b},useId:function(){var i=An(),c=ht.identifierPrefix;if(qe){var b=oa,w=ia;b=(w&~(1<<32-fr(w)-1)).toString(32)+b,c="_"+c+"R_"+b,b=tf++,0<b&&(c+="H"+b.toString(32)),c+="_"}else b=WC++,c="_"+c+"r_"+b.toString(32)+"_";return i.memoizedState=c},useHostTransitionStatus:Th,useFormState:Cb,useActionState:Cb,useOptimistic:function(i){var c=An();c.memoizedState=c.baseState=i;var b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=b,c=Ch.bind(null,_e,!0,b),b.dispatch=c,[i,c]},useMemoCache:xh,useCacheRefresh:function(){return An().memoizedState=aA.bind(null,_e)},useEffectEvent:function(i){var c=An(),b={impl:i};return c.memoizedState=b,function(){if((at&2)!==0)throw Error(le(440));return b.impl.apply(void 0,arguments)}}},n1={readContext:rn,use:Nf,useCallback:Gx,useContext:rn,useEffect:kh,useImperativeHandle:jx,useInsertionEffect:qx,useLayoutEffect:Px,useMemo:Yx,useReducer:Rc,useRef:Bx,useState:function(){return Rc(Aa)},useDebugValue:Sh,useDeferredValue:function(i,c){var b=Ut();return Fx(b,mt.memoizedState,i,c)},useTransition:function(){var i=Rc(Aa)[0],c=Ut().memoizedState;return[typeof i==="boolean"?i:su(i),c]},useSyncExternalStore:Ax,useId:Kx,useHostTransitionStatus:Th,useFormState:Ab,useActionState:Ab,useOptimistic:function(i,c){var b=Ut();return _x(b,mt,i,c)},useMemoCache:xh,useCacheRefresh:Jx,useEffectEvent:Vx},oA={readContext:rn,use:Nf,useCallback:Gx,useContext:rn,useEffect:kh,useImperativeHandle:jx,useInsertionEffect:qx,useLayoutEffect:Px,useMemo:Yx,useReducer:wm,useRef:Bx,useState:function(){return wm(Aa)},useDebugValue:Sh,useDeferredValue:function(i,c){var b=Ut();return mt===null?Eh(b,i,c):Fx(b,mt.memoizedState,i,c)},useTransition:function(){var i=wm(Aa)[0],c=Ut().memoizedState;return[typeof i==="boolean"?i:su(i),c]},useSyncExternalStore:Ax,useId:Kx,useHostTransitionStatus:Th,useFormState:Nb,useActionState:Nb,useOptimistic:function(i,c){var b=Ut();if(mt!==null)return _x(b,mt,i,c);return b.baseState=i,[i,b.queue.dispatch]},useMemoCache:xh,useCacheRefresh:Jx,useEffectEvent:Vx};function km(i,c,b,w){c=i.memoizedState,b=b(w,c),b=b===null||b===void 0?c:gt({},c,b),i.memoizedState=b,i.lanes===0&&(i.updateQueue.baseState=b)}var dp={enqueueSetState:function(i,c,b){i=i._reactInternals;var w=Sr(),E=no(w);E.payload=c,b!==void 0&&b!==null&&(E.callback=b),c=ro(i,E,w),c!==null&&(Pn(c,i,w),Ms(c,i,w))},enqueueReplaceState:function(i,c,b){i=i._reactInternals;var w=Sr(),E=no(w);E.tag=1,E.payload=c,b!==void 0&&b!==null&&(E.callback=b),c=ro(i,E,w),c!==null&&(Pn(c,i,w),Ms(c,i,w))},enqueueForceUpdate:function(i,c){i=i._reactInternals;var b=Sr(),w=no(b);w.tag=2,c!==void 0&&c!==null&&(w.callback=c),c=ro(i,w,b),c!==null&&(Pn(c,i,b),Ms(c,i,b))}};function Mb(i,c,b,w,E,N,R){return i=i.stateNode,typeof i.shouldComponentUpdate==="function"?i.shouldComponentUpdate(w,N,R):c.prototype&&c.prototype.isPureReactComponent?!Is(b,w)||!Is(E,N):!0}function zb(i,c,b,w){i=c.state,typeof c.componentWillReceiveProps==="function"&&c.componentWillReceiveProps(b,w),typeof c.UNSAFE_componentWillReceiveProps==="function"&&c.UNSAFE_componentWillReceiveProps(b,w),c.state!==i&&dp.enqueueReplaceState(c,c.state,null)}function fo(i,c){var b=c;if("ref"in c){b={};for(var w in c)w!=="ref"&&(b[w]=c[w])}if(i=i.defaultProps){b===c&&(b=gt({},b));for(var E in i)b[E]===void 0&&(b[E]=i[E])}return b}function lA(i){Fc(i)}function sA(i){console.error(i)}function uA(i){Fc(i)}function rf(i,c){try{var b=i.onUncaughtError;b(c.value,{componentStack:c.stack})}catch(w){setTimeout(function(){throw w})}}function Ob(i,c,b){try{var w=i.onCaughtError;w(b.value,{componentStack:b.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function mp(i,c,b){return b=no(b),b.tag=3,b.payload={element:null},b.callback=function(){rf(i,c)},b}function r1(i){return i=no(i),i.tag=3,i}function a1(i,c,b,w){var E=b.type.getDerivedStateFromError;if(typeof E==="function"){var N=w.value;i.payload=function(){return E(N)},i.callback=function(){Ob(c,b,w)}}var R=b.stateNode;R!==null&&typeof R.componentDidCatch==="function"&&(i.callback=function(){Ob(c,b,w),typeof E!=="function"&&(ni===null?ni=new Set([this]):ni.add(this));var D=w.stack;this.componentDidCatch(w.value,{componentStack:D!==null?D:""})})}function cA(i,c,b,w,E){if(b.flags|=32768,w!==null&&typeof w==="object"&&typeof w.then==="function"){if(c=b.alternate,c!==null&&oo(c,b,E,!0),b=sn.current,b!==null){switch(b.tag){case 31:case 13:case 19:return wn===null?df():b.alternate===null&&zt===0&&(zt=3),b.flags&=-257,b.flags|=65536,b.lanes=E,w===Jc?b.flags|=16384:(c=b.updateQueue,c===null?b.updateQueue=new Set([w]):c.add(w),Rm(i,w,E)),!1;case 22:return b.flags|=65536,w===Jc?b.flags|=16384:(c=b.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([w])},b.updateQueue=c):(b=c.retryQueue,b===null?c.retryQueue=new Set([w]):b.add(w)),Rm(i,w,E)),!1}throw Error(le(435,b.tag))}return Rm(i,w,E),df(),!1}if(qe)return c=sn.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=E,w!==tp&&(i=Error(le(422),{cause:w}),Gs(wr(i,b)))):(w!==tp&&(c=Error(le(423),{cause:w}),Gs(wr(c,b))),i=i.current.alternate,i.flags|=65536,E&=-E,i.lanes|=E,w=wr(w,b),E=mp(i.stateNode,w,E),xm(i,E),zt!==4&&(zt=2)),!1;var N=Error(le(520),{cause:w});if(N=wr(N,b),Us===null?Us=[N]:Us.push(N),zt!==4&&(zt=2),c===null)return!0;w=wr(w,b),b=c;do{switch(b.tag){case 3:return b.flags|=65536,i=E&-E,b.lanes|=i,i=mp(b.stateNode,w,i),xm(b,i),!1;case 1:if(c=b.type,N=b.stateNode,(b.flags&128)===0&&(typeof c.getDerivedStateFromError==="function"||N!==null&&typeof N.componentDidCatch==="function"&&(ni===null||!ni.has(N))))return b.flags|=65536,E&=-E,b.lanes|=E,E=r1(E),a1(E,i,b,w),xm(b,E),!1;break;case 22:if(b.memoizedState!==null)return b.flags|=65536,!1}b=b.return}while(b!==null);return!1}var Ah=Error(le(461)),qt=!1;function Gt(i,c,b,w){c.child=i===null?wx(c,null,b,w):uo(c,i.child,b,w)}function _b(i,c,b,w,E){b=b.render;var N=c.ref;if("ref"in w){var R={};for(var D in w)D!=="ref"&&(R[D]=w[D])}else R=w;if(lo(c),w=gh(i,c,b,R,N,E),D=vh(),i!==null&&!qt)return yh(i,c,E),Na(i,c,E);return qe&&D&&Tf(c),c.flags|=1,Gt(i,c,w,E),c.child}function Db(i,c,b,w,E){if(i===null){var N=b.type;if(typeof N==="function"&&!lh(N)&&N.defaultProps===void 0&&b.compare===null)return c.tag=15,c.type=N,i1(i,c,N,w,E);return i=Cc(b.type,null,w,c,c.mode,E),i.ref=c.ref,i.return=c,c.child=i}if(N=i.child,!Rh(i,E)){var R=N.memoizedProps;if(b=b.compare,b=b!==null?b:Is,b(R,w)&&i.ref===c.ref)return Na(i,c,E)}return c.flags|=1,i=ka(N,w),i.ref=c.ref,i.return=c,c.child=i}function i1(i,c,b,w,E){if(i!==null){var N=i.memoizedProps;if(Is(N,w)&&i.ref===c.ref)if(qt=!1,c.pendingProps=w=N,Rh(i,E))(i.flags&131072)!==0&&(qt=!0);else return c.lanes=i.lanes,Na(i,c,E)}return pp(i,c,b,w,E)}function o1(i,c,b,w){var E=w.children,N=i!==null?i.memoizedState:null;if(i===null&&c.stateNode===null&&(c.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),w.mode==="hidden"){if((c.flags&128)!==0){if(N=N!==null?N.baseLanes|b:b,i!==null){w=c.child=i.child;for(E=0;w!==null;)E=E|w.lanes|w.childLanes,w=w.sibling;w=E&~N}else w=0,c.child=null;return Lb(i,c,N,b,w)}if((b&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},i!==null&&Nc(c,N!==null?N.cachePool:null),N!==null?Sb(c,N):lp(),Ex(c);else return w=c.lanes=536870912,Lb(i,c,N!==null?N.baseLanes|b:b,b,w)}else N!==null?(Nc(c,N.cachePool),Sb(c,N),ti(),c.memoizedState=null):(i!==null&&Nc(c,null),lp(),ti());return Gt(i,c,E,b),c.child}function Ds(i,c){return i!==null&&i.tag===22||c.stateNode!==null||(c.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.sibling}function Lb(i,c,b,w,E){var N=ch();return N=N===null?null:{parent:Vt._currentValue,pool:N},c.memoizedState={baseLanes:b,cachePool:N},i!==null&&Nc(c,null),lp(),Ex(c),i!==null&&oo(i,c,w,!0),c.childLanes=E,null}function zc(i,c){return c=zf({mode:c.mode,children:c.children},i.mode),c.ref=i.ref,i.child=c,c.return=i,c}function Hb(i,c,b){return uo(c,i.child,null,b),i=zc(c,c.pendingProps),i.flags|=2,Wn(c),c.memoizedState=null,i}function fA(i,c,b){var w=c.pendingProps,E=(c.flags&128)!==0;if(c.flags&=-129,i===null){if(qe){if(w.mode==="hidden")return i=zc(c,w),c.lanes=536870912,i.memoizedState={baseLanes:0,cachePool:null},Ds(null,i);if(sp(c),(i=yt)?(i=lw(i,kr),i=i!==null&&i.data==="&"?i:null,i!==null&&(c.memoizedState={dehydrated:i,treeContext:oi!==null?{id:ia,overflow:oa}:null,retryLane:536870912,hydrationErrors:null},b=px(i),b.return=c,c.child=b,Jt=c,yt=null)):i=null,i===null)throw li(c);return c.lanes=536870912,null}return zc(c,w)}var N=i.memoizedState;if(N!==null){var R=N.dehydrated;if(sp(c),E)if(c.flags&256)c.flags&=-257,c=Hb(i,c,b);else if(c.memoizedState!==null)c.child=i.child,c.flags|=128,c=null;else throw Error(le(558));else if(qt||oo(i,c,b,!1),E=(b&i.childLanes)!==0,qt||E){if(si.current===null){if(w=ht,w!==null&&(R=B0(w,b),R!==0&&R!==N.retryLane))throw N.retryLane=R,vo(i,R),Pn(w,i,R),Ah;df()}c=Hb(i,c,b)}else i=N.treeContext,yt=Er(R.nextSibling),Jt=c,qe=!0,$a=null,kr=!1,i!==null&&gx(c,i),c=zc(c,w),c.flags|=134221824;return c}return i=ka(i.child,{mode:w.mode,children:w.children}),i.ref=c.ref,c.child=i,i.return=c,i}function Po(i,c){var b=c.ref;if(b===null)i!==null&&i.ref!==null&&(c.flags|=4194816);else{if(typeof b!=="function"&&typeof b!=="object")throw Error(le(284));if(i===null||i.ref!==b)c.flags|=4194816}}function pp(i,c,b,w,E){if(lo(c),b=gh(i,c,b,w,void 0,E),w=vh(),i!==null&&!qt)return yh(i,c,E),Na(i,c,E);return qe&&w&&Tf(c),c.flags|=1,Gt(i,c,b,E),c.child}function Ub(i,c,b,w,E,N){if(lo(c),c.updateQueue=null,b=Cx(c,w,b,E),Tx(i),w=vh(),i!==null&&!qt)return yh(i,c,N),Na(i,c,N);return qe&&w&&Tf(c),c.flags|=1,Gt(i,c,b,N),c.child}function Bb(i,c,b,w,E){if(lo(c),c.stateNode===null){var N=$o,R=b.contextType;typeof R==="object"&&R!==null&&(N=rn(R)),N=new b(w,N),c.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,N.updater=dp,c.stateNode=N,N._reactInternals=c,N=c.stateNode,N.props=w,N.state=c.memoizedState,N.refs={},dh(c),R=b.contextType,N.context=typeof R==="object"&&R!==null?rn(R):$o,N.state=c.memoizedState,R=b.getDerivedStateFromProps,typeof R==="function"&&(km(c,b,R,w),N.state=c.memoizedState),typeof b.getDerivedStateFromProps==="function"||typeof N.getSnapshotBeforeUpdate==="function"||typeof N.UNSAFE_componentWillMount!=="function"&&typeof N.componentWillMount!=="function"||(R=N.state,typeof N.componentWillMount==="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount==="function"&&N.UNSAFE_componentWillMount(),R!==N.state&&dp.enqueueReplaceState(N,N.state,null),Os(c,w,N,E),zs(),N.state=c.memoizedState),typeof N.componentDidMount==="function"&&(c.flags|=4194308),w=!0}else if(i===null){N=c.stateNode;var D=c.memoizedProps,L=fo(b,D);N.props=L;var H=N.context,U=b.contextType;R=$o,typeof U==="object"&&U!==null&&(R=rn(U));var B=b.getDerivedStateFromProps;U=typeof B==="function"||typeof N.getSnapshotBeforeUpdate==="function",D=c.pendingProps!==D,U||typeof N.UNSAFE_componentWillReceiveProps!=="function"&&typeof N.componentWillReceiveProps!=="function"||(D||H!==R)&&zb(c,N,w,R),Ga=!1;var V=c.memoizedState;N.state=V,Os(c,w,N,E),zs(),H=c.memoizedState,D||V!==H||Ga?(typeof B==="function"&&(km(c,b,B,w),H=c.memoizedState),(L=Ga||Mb(c,b,L,w,V,H,R))?(U||typeof N.UNSAFE_componentWillMount!=="function"&&typeof N.componentWillMount!=="function"||(typeof N.componentWillMount==="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount==="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount==="function"&&(c.flags|=4194308)):(typeof N.componentDidMount==="function"&&(c.flags|=4194308),c.memoizedProps=w,c.memoizedState=H),N.props=w,N.state=H,N.context=R,w=L):(typeof N.componentDidMount==="function"&&(c.flags|=4194308),w=!1)}else{N=c.stateNode,ip(i,c),R=c.memoizedProps,U=fo(b,R),N.props=U,B=c.pendingProps,V=N.context,H=b.contextType,L=$o,typeof H==="object"&&H!==null&&(L=rn(H)),D=b.getDerivedStateFromProps,(H=typeof D==="function"||typeof N.getSnapshotBeforeUpdate==="function")||typeof N.UNSAFE_componentWillReceiveProps!=="function"&&typeof N.componentWillReceiveProps!=="function"||(R!==B||V!==L)&&zb(c,N,w,L),Ga=!1,V=c.memoizedState,N.state=V,Os(c,w,N,E),zs();var q=c.memoizedState;R!==B||V!==q||Ga||i!==null&&i.dependencies!==null&&Kc(i.dependencies)?(typeof D==="function"&&(km(c,b,D,w),q=c.memoizedState),(U=Ga||Mb(c,b,U,w,V,q,L)||i!==null&&i.dependencies!==null&&Kc(i.dependencies))?(H||typeof N.UNSAFE_componentWillUpdate!=="function"&&typeof N.componentWillUpdate!=="function"||(typeof N.componentWillUpdate==="function"&&N.componentWillUpdate(w,q,L),typeof N.UNSAFE_componentWillUpdate==="function"&&N.UNSAFE_componentWillUpdate(w,q,L)),typeof N.componentDidUpdate==="function"&&(c.flags|=4),typeof N.getSnapshotBeforeUpdate==="function"&&(c.flags|=1024)):(typeof N.componentDidUpdate!=="function"||R===i.memoizedProps&&V===i.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!=="function"||R===i.memoizedProps&&V===i.memoizedState||(c.flags|=1024),c.memoizedProps=w,c.memoizedState=q),N.props=w,N.state=q,N.context=L,w=U):(typeof N.componentDidUpdate!=="function"||R===i.memoizedProps&&V===i.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!=="function"||R===i.memoizedProps&&V===i.memoizedState||(c.flags|=1024),w=!1)}return N=w,Po(i,c),w=(c.flags&128)!==0,N||w?(N=c.stateNode,b=w&&typeof b.getDerivedStateFromError!=="function"?null:N.render(),c.flags|=1,i!==null&&w?(c.child=uo(c,i.child,null,E),c.child=uo(c,null,b,E)):Gt(i,c,b,E),c.memoizedState=N.state,i=c.child):i=Na(i,c,E),i}function Vb(i,c,b,w){return io(),c.flags|=256,Gt(i,c,b,w),c.child}var hp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gp(i){return{baseLanes:i,cachePool:yx()}}function vp(i,c,b){return i=i!==null?i.childLanes&~b:0,c&&(i|=lr),i}function l1(i,c,b){var w=c.pendingProps,E=!1,N=(c.flags&128)!==0,R;if((R=N)||(R=i!==null&&i.memoizedState===null?!1:(on.current&2)!==0),R&&(E=!0,c.flags&=-129),R=(c.flags&32)!==0,c.flags&=-33,i===null){if(qe){if(E?ei(c):ti(),(i=yt)?(i=lw(i,kr),i=i!==null&&i.data!=="&"?i:null,i!==null&&(c.memoizedState={dehydrated:i,treeContext:oi!==null?{id:ia,overflow:oa}:null,retryLane:536870912,hydrationErrors:null},b=px(i),b.return=c,c.child=b,Jt=c,yt=null)):i=null,i===null)throw li(c);return qh(i)?c.lanes=32:c.lanes=536870912,null}if(N=w.children,w=w.fallback,E)return ti(),E=c.mode,N=zf({mode:"hidden",children:N},E),w=$i(w,E,b,null),N.return=c,w.return=c,N.sibling=w,c.child=N,w=c.child,w.memoizedState=gp(b),w.childLanes=vp(i,R,b),c.memoizedState=hp,Ds(null,w);return ei(c),Nh(c,N)}var D=i.memoizedState;if(D!==null){var L=D.dehydrated;if(L!==null)return dA(i,c,N,R,w,L,D,b)}if(E)return ti(),E=w.fallback,N=c.mode,D=i.child,L=D.sibling,w=ka(D,{mode:"hidden",children:w.children}),w.subtreeFlags=D.subtreeFlags&1206910976,L!==null?E=ka(L,E):(E=$i(E,N,b,null),E.flags|=2),E.return=c,w.return=c,w.sibling=E,c.child=w,Ds(null,w),w=c.child,E=i.child.memoizedState,E===null?E=gp(b):(N=E.cachePool,N!==null?(D=Vt._currentValue,N=N.parent!==D?{parent:D,pool:D}:N):N=yx(),E={baseLanes:E.baseLanes|b,cachePool:N}),w.memoizedState=E,w.childLanes=vp(i,R,b),c.memoizedState=hp,Ds(i.child,w);return ei(c),b=i.child,i=b.sibling,b=ka(b,{mode:"visible",children:w.children}),b.return=c,b.sibling=null,i!==null&&(R=c.deletions,R===null?(c.deletions=[i],c.flags|=16):R.push(i)),c.child=b,c.memoizedState=null,b}function Nh(i,c){return c=zf({mode:"visible",children:c},i.mode),c.return=i,i.child=c}function zf(i,c){return i=Bn(22,i,null,c),i.lanes=0,i}function mc(i,c,b){return uo(c,i.child,null,b),i=Nh(c,c.pendingProps.children),i.flags|=2,c.memoizedState=null,i}function dA(i,c,b,w,E,N,R,D){if(b){if(c.flags&256)return ei(c),c.flags&=-257,mc(i,c,D);if(c.memoizedState!==null)return ti(),c.child=i.child,c.flags|=128,null;return ti(),N=E.fallback,R=c.mode,E=zf({mode:"visible",children:E.children},R),N=$i(N,R,D,null),N.flags|=2,E.return=c,N.return=c,E.sibling=N,c.child=E,uo(c,i.child,null,D),E=c.child,E.memoizedState=gp(D),E.childLanes=vp(i,w,D),c.memoizedState=hp,Ds(null,E)}if(ei(c),qh(N)){if(w=N.nextSibling&&N.nextSibling.dataset,w)var L=w.dgst;return w=L,w!==""&&(E=Error(le(419)),E.stack="",E.digest=w,Gs({value:E,source:null,stack:null})),mc(i,c,D)}if(qt||oo(i,c,D,!1),w=(D&i.childLanes)!==0,qt||w){if(si.current!==null)return mc(i,c,D);if(w=ht,w!==null&&(E=B0(w,D),E!==0&&E!==R.retryLane))throw R.retryLane=E,vo(i,E),Pn(w,i,E),Ah;return Gp(N)||df(),mc(i,c,D)}if(Gp(N))return c.flags|=192,c.child=i.child,null;return i=R.treeContext,yt=Er(N.nextSibling),Jt=c,qe=!0,$a=null,kr=!1,i!==null&&gx(c,i),c=Nh(c,E.children),c.flags|=134221824,c}function qb(i,c,b){i.lanes|=c;var w=i.alternate;w!==null&&(w.lanes|=c),Ac(i.return,c,b)}function Pb(i){for(var c=null;i!==null;){var b=i.alternate;b!==null&&$c(b)===null&&(c=i),i=i.sibling}return c}function pc(i,c,b,w,E,N){var R=i.memoizedState;R===null?i.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:w,tail:b,tailMode:E,treeForkCount:N}:(R.isBackwards=c,R.rendering=null,R.renderingStartTime=0,R.last=w,R.tail=b,R.tailMode=E,R.treeForkCount=N)}function Sm(i){var c=i.child;for(i.child=null;c!==null;){var b=c.sibling;c.sibling=i.child,i.child=c,c=b}}function yp(i,c,b){var w=c.pendingProps,E=w.revealOrder,N=w.tail;w=w.children;var R=on.current;if(c.flags&128)return Fs(c,R),null;var D=(R&2)!==0;if(D?(R=R&1|2,c.flags|=128):R&=1,Fs(c,R),E==="backwards"&&i!==null?(Sm(i),Gt(i,c,w,b),Sm(i)):Gt(i,c,w,b),w=qe?js:0,!D&&i!==null&&(i.flags&128)!==0)e:for(i=c.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&qb(i,b,c);else if(i.tag===19)qb(i,b,c);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===c)break e;for(;i.sibling===null;){if(i.return===null||i.return===c)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(E){case"backwards":b=Pb(c.child),b===null?(E=c.child,c.child=null):(E=b.sibling,b.sibling=null,Sm(c)),pc(c,!0,E,null,N,w);break;case"unstable_legacy-backwards":b=null,E=c.child;for(c.child=null;E!==null;){if(i=E.alternate,i!==null&&$c(i)===null){c.child=E;break}i=E.sibling,E.sibling=b,b=E,E=i}pc(c,!0,b,null,N,w);break;case"together":pc(c,!1,null,null,void 0,w);break;case"independent":c.memoizedState=null;break;default:b=Pb(c.child),b===null?(E=c.child,c.child=null):(E=b.sibling,b.sibling=null),pc(c,!1,E,b,N,w)}return c.child}function Ib(i,c,b){var w=c.pendingProps;return Xa(c,c.type,w.value),Gt(i,c,w.children,b),c.child}function Na(i,c,b){if(i!==null&&(c.dependencies=i.dependencies),ci|=c.lanes,(b&c.childLanes)===0)if(i!==null){if(oo(i,c,b,!1),(b&c.childLanes)===0)return null}else return null;if(i!==null&&c.child!==i.child)throw Error(le(153));if(c.child!==null){i=c.child,b=ka(i,i.pendingProps),c.child=b;for(b.return=c;i.sibling!==null;)i=i.sibling,b=b.sibling=ka(i,i.pendingProps),b.return=c;b.sibling=null}return c.child}function Rh(i,c){if((i.lanes&c)!==0)return!0;return i=i.dependencies,i!==null&&Kc(i)?!0:!1}function mA(i,c,b){switch(c.tag){case 3:Ic(c,c.stateNode.containerInfo),Xa(c,Vt,i.memoizedState.cache),io();break;case 27:case 5:Ym(c);break;case 4:Ic(c,c.stateNode.containerInfo);break;case 10:Xa(c,c.type,c.memoizedProps.value);break;case 31:if(c.memoizedState!==null)return c.flags|=128,sp(c),null;break;case 13:var w=c.memoizedState;if(w!==null){if(w.dehydrated!==null)return ei(c),c.flags|=128,null;w=oo(i,c,b,!1);var E=c.child.childLanes;if(w||(b&E)!==0)return l1(i,c,b);return ei(c),i=Na(i,c,b),i!==null?i.sibling:null}ei(c);break;case 19:if(c.flags&128)return yp(i,c,b);if(E=(i.flags&128)!==0,w=(b&c.childLanes)!==0,w||(oo(i,c,b,!1),w=(b&c.childLanes)!==0),E){if(w)return yp(i,c,b);c.flags|=128}if(E=c.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),Fs(c,on.current),w)break;else return null;case 22:return c.lanes=0,o1(i,c,b,c.pendingProps);case 24:Xa(c,Vt,i.memoizedState.cache)}return Na(i,c,b)}function s1(i,c,b){if(i!==null)if(i.memoizedProps!==c.pendingProps)qt=!0;else{if(!Rh(i,b)&&(c.flags&128)===0)return qt=!1,mA(i,c,b);qt=(i.flags&131072)!==0?!0:!1}else qt=!1,qe&&(c.flags&1048576)!==0&&hx(c,js,c.index);switch(c.lanes=0,c.tag){case 16:e:{var w=c.pendingProps;if(i=Ii(c.elementType),c.type=i,typeof i==="function")lh(i)?(w=fo(i,w),c.tag=1,c=Bb(null,c,i,w,b)):(c.tag=0,c=pp(null,c,i,w,b));else{if(i!==void 0&&i!==null){var E=i.$$typeof;if(E===Zp){c.tag=11,c=_b(null,c,i,w,b);break e}else if(E===Kp){c.tag=14,c=Db(null,c,i,w,b);break e}else if(E===ra){c.tag=10,c.type=i,c=Ib(null,c,b);break e}}throw c=jm(i)||i,Error(le(306,c,""))}}return c;case 0:return pp(i,c,c.type,c.pendingProps,b);case 1:return w=c.type,E=fo(w,c.pendingProps),Bb(i,c,w,E,b);case 3:e:{if(Ic(c,c.stateNode.containerInfo),i===null)throw Error(le(387));w=c.pendingProps;var N=c.memoizedState;E=N.element,ip(i,c),Os(c,w,null,b);var R=c.memoizedState;if(w=R.cache,Xa(c,Vt,w),w!==N.cache&&rp(c,[Vt],b,!0),zs(),w=R.element,N.isDehydrated)if(N={element:w,isDehydrated:!1,cache:R.cache},c.updateQueue.baseState=N,c.memoizedState=N,c.flags&256){c=Vb(i,c,w,b);break e}else if(w!==E){E=wr(Error(le(424)),c),Gs(E),c=Vb(i,c,w,b);break e}else{switch(i=c.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}yt=Er(i.firstChild),Jt=c,qe=!0,$a=null,kr=!0,b=wx(c,null,w,b);for(c.child=b;b;)b.flags=b.flags&-3|134221824,b=b.sibling}else{if(io(),w===E){c=Na(i,c,b);break e}Gt(i,c,w,b)}c=c.child}return c;case 26:return Po(i,c),i===null?(b=m0(c.type,null,c.pendingProps,null))?c.memoizedState=b:qe||(c.stateNode=W1(c.type,c.pendingProps,Wa.current,c)):c.memoizedState=m0(c.type,i.memoizedProps,c.pendingProps,i.memoizedState),null;case 27:return Ym(c),i===null&&qe&&(w=c.stateNode=sw(c.type,c.pendingProps,Wa.current),Jt=c,kr=!0,E=yt,di(c.type)?(Yp=E,yt=Er(w.firstChild)):yt=E),Gt(i,c,c.pendingProps.children,b),Po(i,c),i===null&&(c.flags|=4194304),c.child;case 5:if(i===null&&qe){if(E=w=yt)w=i3(w,c.type,c.pendingProps,kr),w!==null?(c.stateNode=w,Jt=c,yt=Er(w.firstChild),kr=!1,E=!0):E=!1;E||li(c)}return Ym(c),E=c.type,N=c.pendingProps,R=i!==null?i.memoizedProps:null,w=N.children,Pp(E,N)?w=null:R!==null&&Pp(E,R)&&(c.flags|=32),c.memoizedState!==null&&(E=gh(i,c,$C,null,null,b),Sl._currentValue=E),Po(i,c),Gt(i,c,w,b),c.child;case 6:if(i===null&&qe){if(i=b=yt)b=o3(b,c.pendingProps,kr),b!==null?(c.stateNode=b,Jt=c,yt=null,i=!0):i=!1;i||li(c)}return null;case 13:return l1(i,c,b);case 4:return Ic(c,c.stateNode.containerInfo),w=c.pendingProps,i===null?c.child=uo(c,null,w,b):Gt(i,c,w,b),c.child;case 11:return _b(i,c,c.type,c.pendingProps,b);case 7:return w=c.pendingProps,Po(i,c),Gt(i,c,w,b),c.child;case 8:return Gt(i,c,c.pendingProps.children,b),c.child;case 12:return Gt(i,c,c.pendingProps.children,b),c.child;case 10:return Ib(i,c,b);case 9:return E=c.type._context,w=c.pendingProps.children,lo(c),E=rn(E),w=w(E),c.flags|=1,Gt(i,c,w,b),c.child;case 14:return Db(i,c,c.type,c.pendingProps,b);case 15:return i1(i,c,c.type,c.pendingProps,b);case 19:return yp(i,c,b);case 31:return fA(i,c,b);case 22:return o1(i,c,b,c.pendingProps);case 24:return lo(c),w=rn(Vt),i===null?(E=ch(),E===null&&(E=ht,N=uh(),E.pooledCache=N,N.refCount++,N!==null&&(E.pooledCacheLanes|=b),E=N),c.memoizedState={parent:w,cache:E},dh(c),Xa(c,Vt,E)):((i.lanes&b)!==0&&(ip(i,c),Os(c,null,null,b),zs()),E=i.memoizedState,N=c.memoizedState,E.parent!==w?(E={parent:w,cache:w},c.memoizedState=E,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=E),Xa(c,Vt,w)):(w=N.cache,Xa(c,Vt,w),w!==E.cache&&rp(c,[Vt],b,!0))),Gt(i,c,c.pendingProps.children,b),c.child;case 30:return c.stateNode===null&&(c.stateNode={autoName:null,paired:null,clones:null,ref:null}),w=c.pendingProps,w.name!=null&&w.name!=="auto"?c.flags|=i===null?18882560:18874368:qe&&Tf(c),i!==null&&i.memoizedProps.name!==w.name?c.flags|=4194816:Po(i,c),Gt(i,c,w.children,b),c.child;case 29:throw c.pendingProps}throw Error(le(156,c.tag))}function ba(i){i.flags|=4}function Em(i,c,b,w,E){var N;if(N=(i.mode&32)!==0)N=b===null?g0(c,w):g0(c,w)&&(w.src!==b.src||w.srcSet!==b.srcSet);if(N){if(i.flags|=16777216,(E&335544128)===E)if(i.stateNode.complete)i.flags|=8192;else if(U1())i.flags|=8192;else throw to=Jc,fh}else i.flags&=-16777217}function jb(i,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!dw(c))if(U1())i.flags|=8192;else throw to=Jc,fh}function hc(i,c){c!==null&&(i.flags|=4),i.flags&16384&&(c=i.tag!==22?L0():536870912,i.lanes|=c,vl|=c)}function ps(i,c){if(!qe)switch(i.tailMode){case"visible":break;case"collapsed":for(var b=i.tail,w=null;b!==null;)b.alternate!==null&&(w=b),b=b.sibling;w===null?c||i.tail===null?i.tail=null:i.tail.sibling=null:w.sibling=null;break;default:c=i.tail;for(b=null;c!==null;)c.alternate!==null&&(b=c),c=c.sibling;b===null?i.tail=null:b.sibling=null}}function vt(i){var c=i.alternate!==null&&i.alternate.child===i.child,b=0,w=0;if(c)for(var E=i.child;E!==null;)b|=E.lanes|E.childLanes,w|=E.subtreeFlags&1206910976,w|=E.flags&1206910976,E.return=i,E=E.sibling;else for(E=i.child;E!==null;)b|=E.lanes|E.childLanes,w|=E.subtreeFlags,w|=E.flags,E.return=i,E=E.sibling;return i.subtreeFlags|=w,i.childLanes=b,c}function pA(i,c,b){var w=c.pendingProps;switch(sh(c),c.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(c),null;case 1:return vt(c),null;case 3:if(b=c.stateNode,w=null,i!==null&&(w=i.memoizedState.cache),c.memoizedState.cache!==w&&(c.flags|=2048),Sa(Vt),ml(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),i===null||i.child===null)Vo(c)?ba(c):i===null||i.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,bm());return vt(c),null;case 26:var{type:E,memoizedState:N}=c;return i===null?(ba(c),N!==null?(vt(c),jb(c,N)):(vt(c),Em(c,E,null,w,b))):N?N!==i.memoizedState?(ba(c),vt(c),jb(c,N)):(vt(c),c.flags&=-16777217):(i=i.memoizedProps,i!==w&&ba(c),vt(c),Em(c,E,i,w,b)),null;case 27:if(jc(c),b=Wa.current,E=c.type,i!==null&&c.stateNode!=null)i.memoizedProps!==w&&ba(c);else{if(!w){if(c.stateNode===null)throw Error(le(166));return vt(c),c.subtreeFlags&=-33554433,null}i=la.current,Vo(c)?gb(c,i):(i=sw(E,w,b),c.stateNode=i,ba(c))}return vt(c),c.subtreeFlags&=-33554433,null;case 5:if(jc(c),E=c.type,i!==null&&c.stateNode!=null)i.memoizedProps!==w&&ba(c);else{if(!w){if(c.stateNode===null)throw Error(le(166));return vt(c),c.subtreeFlags&=-33554433,null}if(N=la.current,Vo(c))gb(c,N);else{var R=Ks(Wa.current);switch(N){case 1:N=R.createElementNS("http://www.w3.org/2000/svg",E);break;case 2:N=R.createElementNS("http://www.w3.org/1998/Math/MathML",E);break;default:switch(E){case"svg":N=R.createElementNS("http://www.w3.org/2000/svg",E);break;case"math":N=R.createElementNS("http://www.w3.org/1998/Math/MathML",E);break;case"script":N=R.createElement("div"),N.innerHTML="<script></script>",N=N.removeChild(N.firstChild);break;case"select":N=typeof w.is==="string"?R.createElement("select",{is:w.is}):R.createElement("select"),w.multiple?N.multiple=!0:w.size&&(N.size=w.size);break;default:N=typeof w.is==="string"?R.createElement(E,{is:w.is}):R.createElement(E)}}N[nn]=c,N[Gn]=w;e:for(R=c.child;R!==null;){if(R.tag===5||R.tag===6)N.appendChild(R.stateNode);else if(R.tag!==4&&R.tag!==27&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===c)break e;for(;R.sibling===null;){if(R.return===null||R.return===c)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}c.stateNode=N;e:switch(ln(N,E,w),E){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}w&&ba(c)}}return vt(c),c.subtreeFlags&=-33554433,Em(c,c.type,i===null?null:i.memoizedProps,c.pendingProps,b),null;case 6:if(i&&c.stateNode!=null)i.memoizedProps!==w&&ba(c);else{if(typeof w!=="string"&&c.stateNode===null)throw Error(le(166));if(i=Wa.current,Vo(c)){if(i=c.stateNode,b=c.memoizedProps,w=null,E=Jt,E!==null)switch(E.tag){case 27:case 5:w=E.memoizedProps}i[nn]=c,i=i.nodeValue===b||w!==null&&w.suppressHydrationWarning===!0||K1(i.nodeValue,b)?!0:!1,i||li(c,!0)}else i=Ks(i).createTextNode(w),i[nn]=c,c.stateNode=i}return vt(c),null;case 31:if(b=c.memoizedState,i===null||i.memoizedState!==null){if(w=Vo(c),b!==null){if(i===null){if(!w)throw Error(le(318));if(i=c.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(le(557));i[nn]=c}else io(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;vt(c),i=!1}else b=bm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=b),i=!0;if(!i){if(c.flags&256)return Wn(c),c;return Wn(c),null}if((c.flags&128)!==0)throw Error(le(558))}return vt(c),null;case 13:if(w=c.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(E=Vo(c),w!==null&&w.dehydrated!==null){if(i===null){if(!E)throw Error(le(318));if(E=c.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(le(317));E[nn]=c}else io(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;vt(c),E=!1}else E=bm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=E),E=!0;if(!E){if(c.flags&256)return Wn(c),c;return Wn(c),null}}if(Wn(c),(c.flags&128)!==0)return c.lanes=b,c;return b=w!==null,i=i!==null&&i.memoizedState!==null,b&&(w=c.child,E=null,w.alternate!==null&&w.alternate.memoizedState!==null&&w.alternate.memoizedState.cachePool!==null&&(E=w.alternate.memoizedState.cachePool.pool),N=null,w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(N=w.memoizedState.cachePool.pool),N!==E&&(w.flags|=2048)),b!==i&&b&&(c.child.flags|=8192),hc(c,c.updateQueue),vt(c),null;case 4:return ml(),i===null&&X1(c.stateNode.containerInfo),c.flags|=67108864,vt(c),null;case 10:return Sa(c.type),vt(c),null;case 19:if(ph(c),w=c.memoizedState,w===null)return vt(c),null;if(E=(c.flags&128)!==0,N=w.rendering,N===null)if(E)ps(w,!1);else{if(zt!==0||i!==null&&(i.flags&128)!==0)for(i=c.child;i!==null;){if(N=$c(i),N!==null){c.flags|=128,ps(w,!1),i=N.updateQueue,c.updateQueue=i,hc(c,i),c.subtreeFlags=0,i=b;for(b=c.child;b!==null;)mx(b,i),b=b.sibling;return Fs(c,on.current&1|2),qe&&xa(c,w.treeForkCount),c.child}i=i.sibling}w.tail!==null&&ur()>cf&&(c.flags|=128,E=!0,ps(w,!1),c.lanes=4194304)}else{if(!E)if(i=$c(N),i!==null){if(c.flags|=128,E=!0,i=i.updateQueue,c.updateQueue=i,hc(c,i),ps(w,!0),w.tail===null&&w.tailMode!=="collapsed"&&w.tailMode!=="visible"&&!N.alternate&&!qe)return vt(c),null}else 2*ur()-w.renderingStartTime>cf&&b!==536870912&&(c.flags|=128,E=!0,ps(w,!1),c.lanes=4194304);w.isBackwards?(N.sibling=c.child,c.child=N):(i=w.last,i!==null?i.sibling=N:c.child=N,w.last=N)}if(w.tail!==null){i=w.tail;e:{for(b=i;b!==null;){if(b.alternate!==null){b=!1;break e}b=b.sibling}b=!0}return w.rendering=i,w.tail=i.sibling,w.renderingStartTime=ur(),i.sibling=null,N=on.current,N=E?N&1|2:N&1,w.tailMode==="visible"||w.tailMode==="collapsed"||!b||qe?Fs(c,N):(b=N,bt(sn,c),bt(on,b),wn===null&&(wn=c)),qe&&xa(c,w.treeForkCount),i}return vt(c),null;case 22:case 23:return Wn(c),mh(),w=c.memoizedState!==null,i!==null?i.memoizedState!==null!==w&&(c.flags|=8192):w&&(c.flags|=8192),w?(b&536870912)!==0&&(c.flags&128)===0&&(vt(c),c.subtreeFlags&6&&(c.flags|=8192)):vt(c),b=c.updateQueue,b!==null&&hc(c,b.retryQueue),b=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(b=i.memoizedState.cachePool.pool),w=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(w=c.memoizedState.cachePool.pool),w!==b&&(c.flags|=2048),i!==null&&an(eo),null;case 24:return b=null,i!==null&&(b=i.memoizedState.cache),c.memoizedState.cache!==b&&(c.flags|=2048),Sa(Vt),vt(c),null;case 25:return null;case 30:return c.flags|=33554432,vt(c),null}throw Error(le(156,c.tag))}function hA(i,c){switch(sh(c),c.tag){case 1:return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 3:return Sa(Vt),ml(),i=c.flags,(i&65536)!==0&&(i&128)===0?(c.flags=i&-65537|128,c):null;case 26:case 27:case 5:return jc(c),null;case 31:if(c.memoizedState!==null){if(Wn(c),c.alternate===null)throw Error(le(340));io()}return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 13:if(Wn(c),i=c.memoizedState,i!==null&&i.dehydrated!==null){if(c.alternate===null)throw Error(le(340));io()}return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 19:return ph(c),i=c.flags,i&65536?(c.flags=i&-65537|128,i=c.memoizedState,i!==null&&(i.rendering=null,i.tail=null),c.flags|=4,c):null;case 4:return ml(),null;case 10:return Sa(c.type),null;case 22:case 23:return Wn(c),mh(),i!==null&&an(eo),i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 24:return Sa(Vt),null;case 25:return null;default:return null}}function u1(i,c){switch(sh(c),c.tag){case 3:Sa(Vt),ml();break;case 26:case 27:case 5:jc(c);break;case 4:ml();break;case 31:c.memoizedState!==null&&Wn(c);break;case 13:Wn(c);break;case 19:ph(c);break;case 10:Sa(c.type);break;case 22:case 23:Wn(c),mh(),i!==null&&an(eo);break;case 24:Sa(Vt)}}function uu(i,c){try{var b=c.updateQueue,w=b!==null?b.lastEffect:null;if(w!==null){var E=w.next;b=E;do{if((b.tag&i)===i){w=void 0;var N=b.create,R=b.inst;w=N(),R.destroy=w}b=b.next}while(b!==E)}}catch(D){dt(c,c.return,D)}}function ui(i,c,b){try{var w=c.updateQueue,E=w!==null?w.lastEffect:null;if(E!==null){var N=E.next;w=N;do{if((w.tag&i)===i){var R=w.inst,D=R.destroy;if(D!==void 0){R.destroy=void 0,E=c;var L=b,H=D;try{H()}catch(U){dt(E,L,U)}}}w=w.next}while(w!==N)}}catch(U){dt(c,c.return,U)}}function c1(i){var c=i.updateQueue;if(c!==null){var b=i.stateNode;try{Sx(c,b)}catch(w){dt(i,i.return,w)}}}function f1(i,c,b){b.props=fo(i.type,i.memoizedProps),b.state=i.memoizedState;try{b.componentWillUnmount()}catch(w){dt(i,c,w)}}function ta(i,c){try{var b=i.ref;if(b!==null){switch(i.tag){case 26:case 27:case 5:var w=i.stateNode;break;case 30:var E=i.stateNode,N=Ta(i.memoizedProps,E);if(E.ref===null||E.ref.name!==N)E.ref=nw(N);w=E.ref;break;case 7:if(i.stateNode===null){var R=new mr(i);jn(i.child,!1,r3,R,void 0,void 0),i.stateNode=R}w=i.stateNode;break;default:w=i.stateNode}typeof b==="function"?i.refCleanup=b(w):b.current=w}}catch(D){dt(i,c,D)}}function tn(i,c){var b=i.ref,w=i.refCleanup;if(b!==null)if(typeof w==="function")try{w()}catch(E){dt(i,c,E)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof b==="function")try{b(null)}catch(E){dt(i,c,E)}else b.current=null}function af(i,c){if((i.tag===5||i.tag===27||i.tag===6)&&i.alternate===null&&c!==null)for(var b=0;b<c.length;b++)ow(i.stateNode,c[b])}function Gb(i){for(var c=i.return;c!==null;){if(zh(c)&&ow(i.stateNode,c.stateNode),Mh(c))break;c=c.return}}function Ls(i){for(var c=i.return;c!==null;){if(zh(c)&&a3(i.stateNode,c.stateNode),Mh(c))break;c=c.return}}function Mh(i){return i.tag===5||i.tag===3||i.tag===27}function zh(i){return i&&i.tag===7&&i.stateNode!==null}function bp(i){var{type:c,memoizedProps:b,stateNode:w}=i;try{e:switch(c){case"button":case"input":case"select":case"textarea":b.autoFocus&&w.focus();break e;case"img":b.src?w.src=b.src:b.srcSet&&(w.srcset=b.srcSet)}}catch(E){dt(i,i.return,E)}}function Tm(i,c,b){try{var w=i.stateNode;VA(w,i.type,b,c),w[Gn]=c}catch(E){dt(i,i.return,E)}}function d1(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&di(i.type)||i.tag===4}function Cm(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||d1(i.return))return null;i=i.return}i.sibling.return=i.return;for(i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&di(i.type))continue e;if(i.flags&2)continue e;if(i.child===null||i.tag===4)continue e;else i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function xp(i,c,b,w){var E=i.tag;if(E===5||E===6)E=i.stateNode,c?(b.nodeType===9?b.body:b.nodeName==="HTML"?b.ownerDocument.body:b).insertBefore(E,c):(c=b.nodeType===9?b.body:b.nodeName==="HTML"?b.ownerDocument.body:b,c.appendChild(E),b=b._reactRootContainer,b!==null&&b!==void 0||c.onclick!==null||(c.onclick=aa)),af(i,w),nt=!0;else if(E!==4&&(E===27&&(af(i,w),w=null,di(i.type)&&(b=i.stateNode,c=null)),i=i.child,i!==null))for(xp(i,c,b,w),i=i.sibling;i!==null;)xp(i,c,b,w),i=i.sibling}function of(i,c,b,w){var E=i.tag;if(E===5||E===6)E=i.stateNode,c?b.insertBefore(E,c):b.appendChild(E),af(i,w),nt=!0;else if(E!==4&&(E===27&&(af(i,w),w=null,di(i.type)&&(b=i.stateNode)),i=i.child,i!==null))for(of(i,c,b,w),i=i.sibling;i!==null;)of(i,c,b,w),i=i.sibling}function m1(i){var{stateNode:c,memoizedProps:b}=i;try{for(var w=i.type,E=c.attributes;E.length;)c.removeAttributeNode(E[0]);ln(c,w,b),c[nn]=i,c[Gn]=b}catch(N){dt(i,i.return,N)}}var lf=!1,$n=null;function Yb(i){if(i.tag===30||(i.subtreeFlags&33554432)!==0)lf=!0}var na=null;function Fb(){var i=na;return na=null,i}var Hn=0;function Nl(i,c,b,w,E){return Hn=0,p1(i.child,c,b,w,E)}function p1(i,c,b,w,E){for(var N=!1;i!==null;){if(i.tag===5){var R=i.stateNode;if(w!==null){var D=Ip(R);w.push(D),D.view&&(N=!0)}else N||Ip(R).view&&(N=!0);lf=!0,$1(R,Hn===0?c:c+"_"+Hn,b),Hn++}else if(i.tag!==22||i.memoizedState===null)i.tag===30&&E||p1(i.child,c,b,w,E)&&(N=!0);i=i.sibling}return N}function ua(i,c){for(;i!==null;){if(i.tag===5)ew(i.stateNode,i.memoizedProps);else if(i.tag!==22||i.memoizedState===null)i.tag===30&&c||ua(i.child,c);i=i.sibling}}function Oc(i){if((i.subtreeFlags&18874368)!==0)for(i=i.child;i!==null;){if(i.tag!==22||i.memoizedState===null){if(Oc(i),i.tag===30&&(i.flags&18874368)!==0&&i.stateNode.paired){var c=i.memoizedProps;if(c.name==null||c.name==="auto")throw Error(le(544));var b=c.name;c=za(c.default,c.share),c!=="none"&&(Nl(i,b,c,null,!1)||ua(i.child,!1))}}i=i.sibling}}function wp(i,c){if(i.tag===30){var b=i.stateNode,w=i.memoizedProps,E=Ta(w,b),N=za(w.default,b.paired?w.share:w.enter);N!=="none"?Nl(i,E,N,null,!1)?(Oc(i),b.paired||c||yl(i,w.onEnter)):ua(i.child,!1):Oc(i)}else if((i.subtreeFlags&33554432)!==0)for(i=i.child;i!==null;)wp(i,c),i=i.sibling;else Oc(i)}function kp(i){if($n!==null&&$n.size!==0){var c=$n;if((i.subtreeFlags&18874368)!==0)for(i=i.child;i!==null;){if(i.tag!==22||i.memoizedState===null){if(i.tag===30&&(i.flags&18874368)!==0){var b=i.memoizedProps,w=b.name;if(w!=null&&w!=="auto"){var E=c.get(w);if(E!==void 0){var N=za(b.default,b.share);if(N!=="none"&&(Nl(i,w,N,null,!1)?(N=i.stateNode,E.paired=N,N.paired=E,yl(i,b.onShare)):ua(i.child,!1)),c.delete(w),c.size===0)break}}}kp(i)}i=i.sibling}}}function Sp(i){if(i.tag===30){var c=i.memoizedProps,b=Ta(c,i.stateNode),w=$n!==null?$n.get(b):void 0,E=za(c.default,w!==void 0?c.share:c.exit);E!=="none"&&(Nl(i,b,E,null,!1)?w!==void 0?(E=i.stateNode,w.paired=E,E.paired=w,$n.delete(b),yl(i,c.onShare)):yl(i,c.onExit):ua(i.child,!1)),$n!==null&&kp(i)}else if((i.subtreeFlags&33554432)!==0)for(i=i.child;i!==null;)Sp(i),i=i.sibling;else $n!==null&&kp(i)}function h1(i){for(i=i.child;i!==null;){if(i.tag===30){var c=i.memoizedProps,b=Ta(c,i.stateNode);c=za(c.default,c.update),i.flags&=-5,c!=="none"&&Nl(i,b,c,i.memoizedState=[],!1)}else(i.subtreeFlags&33554432)!==0&&h1(i);i=i.sibling}}function Ep(i){if((i.subtreeFlags&18874368)!==0)for(i=i.child;i!==null;){if(i.tag!==22||i.memoizedState===null){if(i.tag===30&&(i.flags&18874368)!==0){var c=i.stateNode;c.paired!==null&&(c.paired=null,ua(i.child,!1))}Ep(i)}i=i.sibling}}function _c(i){if(i.tag===30)i.stateNode.paired=null,ua(i.child,!1),Ep(i);else if((i.subtreeFlags&33554432)!==0)for(i=i.child;i!==null;)_c(i),i=i.sibling;else Ep(i)}function g1(i){for(i=i.child;i!==null;)i.tag===30?ua(i.child,!1):(i.subtreeFlags&33554432)!==0&&g1(i),i=i.sibling}function Oh(i,c,b,w,E,N,R){for(var D=!1;c!==null;){if(c.tag===5){var L=c.stateNode;if(N!==null&&Hn<N.length){var H=N[Hn],U=Ip(L);if(H.view||U.view)D=!0;var B;if(B=(i.flags&4)===0)if(U.clip)B=!0;else{B=H.rect;var V=U.rect;B=B.y!==V.y||B.x!==V.x||B.height!==V.height||B.width!==V.width}B&&(i.flags|=4),U.abs?U=!H.abs:(H=H.rect,U=U.rect,U=H.height!==U.height||H.width!==U.width),U&&(i.flags|=32)}else i.flags|=32;(i.flags&4)!==0&&$1(L,Hn===0?b:b+"_"+Hn,E),D&&(i.flags&4)!==0||(na===null&&(na=[]),na.push(L,Hn===0?w:w+"_"+Hn,c.memoizedProps)),Hn++}else if(c.tag!==22||c.memoizedState===null)c.tag===30&&R?i.flags|=c.flags&32:Oh(i,c.child,b,w,E,N,R)&&(D=!0);c=c.sibling}return D}function v1(i,c){for(i=i.child;i!==null;){if(i.tag===30){var b=i.memoizedProps,w=i.stateNode,E=Ta(b,w),N=za(b.default,b.update);if(c){w=w.clones;var R=w===null?null:w.map(YA)}else R=i.memoizedState,i.memoizedState=null;w=i;var D=i.child;Hn=0,E=Oh(w,D,E,E,N,R,!1),(i.flags&4)!==0&&E&&(c||yl(i,b.onUpdate))}else(i.subtreeFlags&33554432)!==0&&v1(i,c);i=i.sibling}}var Xt=!1,lt=!1,Jr=!1,Am=!1,Qb=typeof WeakSet==="function"?WeakSet:Set,Zt=null,Wr=!1,Ss=!1,sf=!1,Tp=!1;function gA(i,c,b){if(i=i.containerInfo,Vp=El,i=ix(i),ah(i)){if("selectionStart"in i)var w={start:i.selectionStart,end:i.selectionEnd};else e:{w=(w=i.ownerDocument)&&w.defaultView||window;var E=w.getSelection&&w.getSelection();if(E&&E.rangeCount!==0){w=E.anchorNode;var N=E.anchorOffset,R=E.focusNode;E=E.focusOffset;try{w.nodeType,R.nodeType}catch(Z){w=null;break e}var D=0,L=-1,H=-1,U=0,B=0,V=i,q=null;t:for(;;){for(var Y;;){if(V!==w||N!==0&&V.nodeType!==3||(L=D+N),V!==R||E!==0&&V.nodeType!==3||(H=D+E),V.nodeType===3&&(D+=V.nodeValue.length),(Y=V.firstChild)===null)break;q=V,V=Y}for(;;){if(V===i)break t;if(q===w&&++U===N&&(L=D),q===R&&++B===E&&(H=D),(Y=V.nextSibling)!==null)break;V=q,q=V.parentNode}V=Y}w=L===-1||H===-1?null:{start:L,end:H}}else w=null}w=w||{start:0,end:0}}else w=null;qp={focusedElem:i,selectionRange:w},El=!1,b=(b&335544064)===b,Zt=c;for(c=b?9270:1024;Zt!==null;){if(i=Zt,b&&(w=i.deletions,w!==null))for(N=0;N<w.length;N++)b&&Sp(w[N]);if(i.alternate===null&&(i.flags&2)!==0)b&&Yb(i),gc(b);else{if(i.tag===22){if(w=i.alternate,i.memoizedState!==null){w!==null&&w.memoizedState===null&&b&&Sp(w),gc(b);continue}else if(w!==null&&w.memoizedState!==null){b&&Yb(i),gc(b);continue}}w=i.child,(i.subtreeFlags&c)!==0&&w!==null?(w.return=i,Zt=w):(b&&h1(i),gc(b))}}$n=null}function gc(i){for(;Zt!==null;){var c=Zt,b=i,{alternate:w,flags:E}=c;switch(c.tag){case 0:case 11:case 15:break;case 1:if((E&1024)!==0&&w!==null){b=void 0,E=w.memoizedProps,w=w.memoizedState;var N=c.stateNode;try{var R=fo(c.type,E);b=N.getSnapshotBeforeUpdate(R,w),N.__reactInternalSnapshotBeforeUpdate=b}catch(D){dt(c,c.return,D)}}break;case 3:if((E&1024)!==0){if(w=c.stateNode.containerInfo,b=w.nodeType,b===9)jp(w);else if(b===1)switch(w.nodeName){case"HEAD":case"HTML":case"BODY":jp(w);break;default:w.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:b&&w!==null&&(b=Ta(w.memoizedProps,w.stateNode),E=c.memoizedProps,E=za(E.default,E.update),E!=="none"&&Nl(w,b,E,w.memoizedState=[],!0));break;default:if((E&1024)!==0)throw Error(le(163))}if(w=c.sibling,w!==null){w.return=c.return,Zt=w;break}Zt=c.return}}function y1(i,c,b){var w=b.flags;switch(b.tag){case 0:case 11:case 15:ea(i,b),w&4&&uu(5,b);break;case 1:if(ea(i,b),w&4)if(i=b.stateNode,c===null)try{i.componentDidMount()}catch(R){dt(b,b.return,R)}else{var E=fo(b.type,c.memoizedProps);c=c.memoizedState;try{i.componentDidUpdate(E,c,i.__reactInternalSnapshotBeforeUpdate)}catch(R){dt(b,b.return,R)}}w&64&&c1(b),w&512&&ta(b,b.return);break;case 3:if(ea(i,b),w&64&&(i=b.updateQueue,i!==null)){if(c=null,b.child!==null)switch(b.child.tag){case 27:case 5:c=b.child.stateNode;break;case 1:c=b.child.stateNode}try{Sx(i,c)}catch(R){dt(b,b.return,R)}}break;case 27:c===null&&w&4&&m1(b);case 26:case 5:ea(i,b),c===null&&w&4&&bp(b),w&512&&ta(b,b.return);break;case 12:ea(i,b);break;case 31:ea(i,b),w&4&&k1(i,b);break;case 13:ea(i,b),w&4&&S1(i,b),w&64&&(i=b.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(b=NA.bind(null,b),l3(i,b))));break;case 22:if(w=b.memoizedState!==null||Xt,!w){var N=c!==null&&c.memoizedState!==null||lt;c=Xt,E=lt,Xt=w,(lt=N)&&!E?(w=2,(b.subtreeFlags&8772)!==0&&(w|=1),Pr(i,b,w)):ea(i,b),Xt=c,lt=E}break;case 30:ea(i,b),w&512&&ta(b,b.return);break;case 7:w&512&&ta(b,b.return);default:ea(i,b)}}function Cp(i,c){for(i=i.child;i!==null;)b1(i,c),i=i.sibling}function b1(i,c){switch(i.tag){case 5:case 26:try{var b=i.stateNode;if(c){var w=b.style;typeof w.setProperty==="function"?w.setProperty("display","none","important"):w.display="none"}else{var E=i.stateNode,N=i.memoizedProps.style,R=N!==void 0&&N!==null&&N.hasOwnProperty("display")?N.display:null;E.style.display=R==null||typeof R==="boolean"?"":(""+R).trim()}}catch(L){dt(i,i.return,L)}Ap(i,c);break;case 6:try{i.stateNode.nodeValue=c?"":i.memoizedProps,nt=!0}catch(L){dt(i,i.return,L)}break;case 18:try{var D=i.stateNode;c?l0(D,!0):l0(i.stateNode,!1)}catch(L){dt(i,i.return,L)}break;case 22:case 23:i.memoizedState===null&&Cp(i,c);break;default:Cp(i,c)}}function Ap(i,c){if(i.subtreeFlags&67108864)for(i=i.child;i!==null;){e:{var b=i,w=c;switch(b.tag){case 4:b1(b,w);break e;case 22:b.memoizedState===null&&Ap(b,w);break e;default:Ap(b,w)}}i=i.sibling}}function x1(i){var c=i.alternate;c!==null&&(i.alternate=null,x1(c)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(c=i.stateNode,c!==null&&bf(c)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var St=null,Mn=!1;function Hr(i,c,b){for(b=b.child;b!==null;)w1(i,c,b),b=b.sibling}function w1(i,c,b){if(cr&&typeof cr.onCommitFiberUnmount==="function")try{cr.onCommitFiberUnmount(nu,b)}catch(N){}switch(b.tag){case 26:lt||tn(b,c),Hr(i,c,b),b.memoizedState?b.memoizedState.count--:b.stateNode&&!lt&&(b=b.stateNode,b.parentNode.removeChild(b));break;case 27:lt||tn(b,c),Ls(b);var w=St,E=Mn;di(b.type)&&(St=b.stateNode,Mn=!1),Hr(i,c,b),uw(b.stateNode,b.type,b.memoizedProps),St=w,Mn=E;break;case 5:lt||tn(b,c),Ls(b);case 6:if(b.tag===6&&Ls(b),w=St,E=Mn,St=null,Hr(i,c,b),St=w,Mn=E,St!==null)if(Mn)try{(St.nodeType===9?St.body:St.nodeName==="HTML"?St.ownerDocument.body:St).removeChild(b.stateNode),nt=!0}catch(N){dt(b,c,N)}else try{St.removeChild(b.stateNode),nt=!0}catch(N){dt(b,c,N)}break;case 18:St!==null&&(Mn?(i=St,o0(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,b.stateNode),Tl(i)):o0(St,b.stateNode));break;case 4:w=St,E=Mn,St=b.stateNode.containerInfo,Mn=!0,Hr(i,c,b),St=w,Mn=E;break;case 0:case 11:case 14:case 15:ui(2,b,c),lt||ui(4,b,c),Hr(i,c,b);break;case 1:lt||(tn(b,c),w=b.stateNode,typeof w.componentWillUnmount==="function"&&f1(b,c,w)),Hr(i,c,b);break;case 21:Hr(i,c,b);break;case 22:lt=(w=lt)||b.memoizedState!==null,Hr(i,c,b),lt=w;break;case 30:tn(b,c),Hr(i,c,b);break;case 7:lt||tn(b,c),Hr(i,c,b);break;default:Hr(i,c,b)}}function k1(i,c){if(c.memoizedState===null&&(i=c.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{Tl(i)}catch(b){dt(c,c.return,b)}}}function S1(i,c){if(c.memoizedState===null&&(i=c.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Tl(i)}catch(b){dt(c,c.return,b)}}function vA(i){switch(i.tag){case 31:case 13:case 19:var c=i.stateNode;return c===null&&(c=i.stateNode=new Qb),c;case 22:return i=i.stateNode,c=i._retryCache,c===null&&(c=i._retryCache=new Qb),c;default:throw Error(le(435,i.tag))}}function vc(i,c){var b=vA(i);c.forEach(function(w){if(!b.has(w)){b.add(w);var E=RA.bind(null,i,w);w.then(E,E)}})}function Tn(i,c,b){var w=c.deletions;if(w!==null)for(var E=0;E<w.length;E++){var N=w[E],R=i,D=c,L=D;e:for(;L!==null;){switch(L.tag){case 27:if(di(L.type)){St=L.stateNode,Mn=!1;break e}break;case 5:St=L.stateNode,Mn=!1;break e;case 3:case 4:St=L.stateNode.containerInfo,Mn=!0;break e}L=L.return}if(St===null)throw Error(le(160));w1(R,D,N),St=null,Mn=!1,R=N.alternate,R!==null&&(R.return=null),N.return=null}if(c.subtreeFlags&13886)for(c=c.child;c!==null;)E1(c,i,b),c=c.sibling}var jr=null;function E1(i,c,b){var w=i.alternate,E=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(E&4&&(w=i.updateQueue,w=w!==null?w.events:null,w!==null))for(var N=0;N<w.length;N++){var R=w[N];R.ref.impl=R.nextImpl}Tn(c,i,b),Cn(i),E&4&&(ui(3,i,i.return),uu(3,i),ui(5,i,i.return));break;case 1:Tn(c,i,b),Cn(i),E&512&&(lt||w===null||tn(w,w.return)),E&64&&Xt&&(i=i.updateQueue,i!==null&&(c=i.callbacks,c!==null&&(b=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=b===null?c:b.concat(c))));break;case 26:if(N=jr,Tn(c,i,b),Cn(i),E&512&&(lt||w===null||tn(w,w.return)),E&4)if(E=w!==null?w.memoizedState:null,b=i.memoizedState,w===null)if(b===null)if(i.stateNode===null)if(Xt)i.stateNode=W1(i.type,i.memoizedProps,c.containerInfo,i);else{e:{c=i.type,b=i.memoizedProps,E=N.ownerDocument||N;t:switch(c){case"title":if(w=E.getElementsByTagName("title")[0],!w||w[iu]||w[nn]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))w=E.createElement(c),E.head.insertBefore(w,E.querySelector("head > title"));ln(w,c,b),w[nn]=i,Kt(w),c=w;break e;case"link":if(N=h0("link","href",E).get(c+(b.href||""))){for(R=0;R<N.length;R++)if(w=N[R],w.getAttribute("href")===(b.href==null||b.href===""?null:b.href)&&w.getAttribute("rel")===(b.rel==null?null:b.rel)&&w.getAttribute("title")===(b.title==null?null:b.title)&&w.getAttribute("crossorigin")===(b.crossOrigin==null?null:b.crossOrigin)){N.splice(R,1);break t}}w=E.createElement(c),ln(w,c,b),E.head.appendChild(w);break;case"meta":if(N=h0("meta","content",E).get(c+(b.content||""))){for(R=0;R<N.length;R++)if(w=N[R],w.getAttribute("content")===(b.content==null?null:""+b.content)&&w.getAttribute("name")===(b.name==null?null:b.name)&&w.getAttribute("property")===(b.property==null?null:b.property)&&w.getAttribute("http-equiv")===(b.httpEquiv==null?null:b.httpEquiv)&&w.getAttribute("charset")===(b.charSet==null?null:b.charSet)){N.splice(R,1);break t}}w=E.createElement(c),ln(w,c,b),E.head.appendChild(w);break;default:throw Error(le(468,c))}w[nn]=i,Kt(w),c=w}i.stateNode=c}else Xt||Fp(N,i.type,i.stateNode);else i.stateNode=p0(N,b,i.memoizedProps);else E!==b?(E===null?(c=w.stateNode,c===null||lt||c.parentNode.removeChild(c)):E.count--,b===null?Xt||Fp(N,i.type,i.stateNode):p0(N,b,i.memoizedProps)):b===null&&i.stateNode!==null&&Tm(i,i.memoizedProps,w.memoizedProps);break;case 27:Tn(c,i,b),Cn(i),E&512&&(lt||w===null||tn(w,w.return)),w!==null&&E&4&&Tm(i,i.memoizedProps,w.memoizedProps);break;case 5:if(N=Jr,Jr=!1,Tn(c,i,b),Jr=N,Cn(i),E&512&&(lt||w===null||tn(w,w.return)),i.flags&32){c=i.stateNode;try{hl(c,""),nt=!0}catch(U){dt(i,i.return,U)}}E&4&&i.stateNode!=null&&(c=i.memoizedProps,Tm(i,c,w!==null?w.memoizedProps:c)),E&1024&&(Am=!0);break;case 6:if(Tn(c,i,b),Cn(i),E&4){if(i.stateNode===null)throw Error(le(162));c=i.memoizedProps,b=i.stateNode;try{b.nodeValue=c,nt=!0}catch(U){dt(i,i.return,U)}}break;case 3:if(nt=!1,Uc=null,N=jr,jr=Js(c.containerInfo),Tn(c,i,b),jr=N,Cn(i),E&4&&w!==null&&w.memoizedState.isDehydrated)try{Tl(c.containerInfo)}catch(U){dt(i,i.return,U)}Am&&(Am=!1,T1(i)),nt=!1;break;case 4:E=Jr,Jr=Xt,w=$y(),N=jr,jr=Js(i.stateNode.containerInfo),Tn(c,i,b),Cn(i),jr=N,nt&&Ss&&(sf=!0),nt=w,Jr=E;break;case 12:Tn(c,i,b),Cn(i);break;case 31:Tn(c,i,b),Cn(i),E&4&&(c=i.updateQueue,c!==null&&(i.updateQueue=null,vc(i,c)));break;case 13:Tn(c,i,b),Cn(i),i.child.flags&8192&&i.memoizedState!==null!==(w!==null&&w.memoizedState!==null)&&(Of=ur()),E&4&&(c=i.updateQueue,c!==null&&(i.updateQueue=null,vc(i,c)));break;case 22:N=i.memoizedState!==null,R=w!==null&&w.memoizedState!==null;var D=Xt,L=lt,H=Jr;Xt=D||N,Jr=H||N,lt=L||R,Tn(c,i,b),lt=L,Jr=H,Xt=D,Cn(i),E&8192&&(c=i.stateNode,c._visibility=N?c._visibility&-2:c._visibility|1,!N||w===null||R||Xt||lt||(c=R||lt,b=Xt,w=lt,Xt=N||Xt,lt=c,Ia(i,2),Xt=b,lt=w),!N&&Jr||Cp(i,N)),E&4&&(c=i.updateQueue,c!==null&&(b=c.retryQueue,b!==null&&(c.retryQueue=null,vc(i,b))));break;case 19:Tn(c,i,b),Cn(i),E&4&&(c=i.updateQueue,c!==null&&(i.updateQueue=null,vc(i,c)));break;case 30:E&512&&(lt||w===null||tn(w,w.return)),E=$y(),N=Ss,R=(b&335544064)===b,D=i.memoizedProps,Ss=R&&za(D.default,D.update)!=="none",Tn(c,i,b),Cn(i),R&&w!==null&&nt&&(i.flags|=4),Ss=N,nt=E;break;case 21:break;case 7:E&512&&(lt||w===null||tn(w,w.return)),w&&w.stateNode!==null&&(w.stateNode._fragmentFiber=i);default:Tn(c,i,b),Cn(i)}}function Cn(i){var c=i.flags;if(c&2){try{for(var b,w=i.return;w!==null;){if(d1(w)){b=w;break}w=w.return}w=null;for(var E=i.return;E!==null;){if(zh(E)){var N=E.stateNode;w===null?w=[N]:w.push(N)}if(Mh(E))break;E=E.return}var R=w;if(b==null)throw Error(le(160));switch(b.tag){case 27:var D=b.stateNode,L=Cm(i);of(i,L,D,R);break;case 5:var H=b.stateNode;b.flags&32&&(hl(H,""),b.flags&=-33);var U=Cm(i);of(i,U,H,R);break;case 3:case 4:var B=b.stateNode.containerInfo,V=Cm(i);xp(i,V,B,R);break;default:throw Error(le(161))}}catch(q){dt(i,i.return,q)}i.flags&=-3}c&4096&&(i.flags&=-4097)}function T1(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var c=i;T1(c),c.tag===5&&c.flags&1024&&(c=c.stateNode,El=!0,c.reset(),El=!1),i=i.sibling}}function qo(i,c){if(c.subtreeFlags&9270)for(c=c.child;c!==null;)C1(c,i),c=c.sibling;else v1(c,!1)}function C1(i,c){var b=i.alternate;if(b===null)wp(i,!1);else switch(i.tag){case 3:if(Tp=Wr=!1,Fb(),qo(c,i),!Wr&&!sf){if(i=na,i!==null)for(var w=0;w<i.length;w+=3){b=i[w];var E=i[w+1];ew(b,i[w+2]),b=b.ownerDocument.documentElement,b!==null&&b.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+E+")"})}i=c.containerInfo,i=i.nodeType===9?i.documentElement:i.ownerDocument.documentElement,i!==null&&i.style.viewTransitionName===""&&(i.style.viewTransitionName="none",i.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),i.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Tp=!0}na=null;break;case 5:qo(c,i);break;case 4:w=Wr,Wr=!1,qo(c,i),Wr&&(sf=!0),Wr=w;break;case 22:i.memoizedState===null&&(b.memoizedState!==null?wp(i,!1):qo(c,i));break;case 30:w=Wr,E=Fb(),Wr=!1,qo(c,i),Wr&&(i.flags|=4);var N=i.memoizedProps,R=i.stateNode;c=Ta(N,R),R=Ta(b.memoizedProps,R);var D=za(N.default,N.update);D==="none"?c=!1:(N=b.memoizedState,b.memoizedState=null,b=i.child,Hn=0,c=Oh(i,b,c,R,D,N,!0),Hn!==(N===null?0:N.length)&&(i.flags|=32)),(i.flags&4)!==0&&c?(yl(i,i.memoizedProps.onUpdate),na=E):E!==null&&(E.push.apply(E,na),na=E),Wr=(i.flags&32)!==0?!0:w;break;default:qo(c,i)}}function ea(i,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)y1(i,c.alternate,c),c=c.sibling}function Ia(i,c){for(i=i.child;i!==null;){var b=i,w=c;switch(b.tag){case 0:case 11:case 14:case 15:ui(4,b,b.return),Ia(b,w);break;case 1:tn(b,b.return);var E=b.stateNode;typeof E.componentWillUnmount==="function"&&f1(b,b.return,E),Ia(b,w);break;case 27:(w&2)!==0&&uw(b.stateNode,b.type,b.memoizedProps);case 5:tn(b,b.return),b.tag!==5&&b.tag!==27||Ls(b),Ia(b,w);break;case 6:Ls(b);break;case 26:tn(b,b.return),E=b.stateNode,b.memoizedState!==null||E===null||lt||E.parentNode.removeChild(E),Ia(b,w);break;case 22:b.memoizedState===null&&Ia(b,w);break;case 30:tn(b,b.return),Ia(b,w);break;case 7:tn(b,b.return);default:Ia(b,w)}i=i.sibling}}function Pr(i,c,b){b=(c.subtreeFlags&8772)!==0?b:b&-2;for(c=c.child;c!==null;){var w=c.alternate,E=i,N=c,R=N.flags,D=(b&1)!==0;switch(N.tag){case 0:case 11:case 15:Pr(E,N,b),uu(4,N);break;case 1:if(Pr(E,N,b),w=N,E=w.stateNode,typeof E.componentDidMount==="function")try{E.componentDidMount()}catch(U){dt(w,w.return,U)}if(w=N,E=w.updateQueue,E!==null){var L=w.stateNode;try{var H=E.shared.hiddenCallbacks;if(H!==null)for(E.shared.hiddenCallbacks=null,E=0;E<H.length;E++)kx(H[E],L)}catch(U){dt(w,w.return,U)}}D&&R&64&&c1(N),ta(N,N.return);break;case 27:(b&2)!==0&&m1(N);case 5:N.tag!==5&&N.tag!==27||Gb(N),Pr(E,N,b),D&&w===null&&R&4&&bp(N),ta(N,N.return);break;case 6:Gb(N);break;case 26:L=N.stateNode,N.memoizedState!==null||L===null||Xt||Fp(Js(L.ownerDocument),N.type,L),Pr(E,N,b),D&&w===null&&R&4&&bp(N),ta(N,N.return);break;case 12:Pr(E,N,b);break;case 31:Pr(E,N,b),D&&R&4&&k1(E,N);break;case 13:Pr(E,N,b),D&&R&4&&S1(E,N);break;case 22:N.memoizedState===null&&Pr(E,N,b),ta(N,N.return);break;case 30:Pr(E,N,b),ta(N,N.return);break;case 7:ta(N,N.return);default:Pr(E,N,b)}c=c.sibling}}function _h(i,c){var b=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(b=i.memoizedState.cachePool.pool),i=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(i=c.memoizedState.cachePool.pool),i!==b&&(i!=null&&i.refCount++,b!=null&&lu(b))}function Dh(i,c){i=null,c.alternate!==null&&(i=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==i&&(c.refCount++,i!=null&&lu(i))}function gr(i,c,b,w){var E=(b&335544064)===b;if(c.subtreeFlags&(E?10262:10256))for(c=c.child;c!==null;)A1(i,c,b,w),c=c.sibling;else E&&g1(c)}function A1(i,c,b,w){var E=(b&335544064)===b;E&&c.alternate===null&&c.return!==null&&c.return.alternate!==null&&_c(c);var N=c.flags;switch(c.tag){case 0:case 11:case 15:gr(i,c,b,w),N&2048&&uu(9,c);break;case 1:gr(i,c,b,w);break;case 3:gr(i,c,b,w),E&&Tp&&(i=i.containerInfo,i=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,i.style.viewTransitionName==="root"&&(i.style.viewTransitionName=""),i=i.ownerDocument.documentElement,i!==null&&i.style.viewTransitionName==="none"&&(i.style.viewTransitionName="")),N&2048&&(N=null,c.alternate!==null&&(N=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==N&&(c.refCount++,N!=null&&lu(N)));break;case 12:if(N&2048){gr(i,c,b,w),N=c.stateNode;try{var R=c.memoizedProps,D=R.id,L=R.onPostCommit;typeof L==="function"&&L(D,c.alternate===null?"mount":"update",N.passiveEffectDuration,-0)}catch(H){dt(c,c.return,H)}}else gr(i,c,b,w);break;case 31:gr(i,c,b,w);break;case 13:gr(i,c,b,w);break;case 23:break;case 22:R=c.stateNode,D=c.alternate,c.memoizedState!==null?(E&&D!==null&&D.memoizedState===null&&_c(D),R._visibility&2?gr(i,c,b,w):Hs(i,c)):(E&&D!==null&&D.memoizedState!==null&&_c(c),R._visibility&2?gr(i,c,b,w):(R._visibility|=2,Io(i,c,b,w,(c.subtreeFlags&10256)!==0||!1))),N&2048&&_h(D,c);break;case 24:gr(i,c,b,w),N&2048&&Dh(c.alternate,c);break;case 30:E&&(N=c.alternate,N!==null&&(ua(N.child,!0),ua(c.child,!0))),gr(i,c,b,w);break;default:gr(i,c,b,w)}}function Io(i,c,b,w,E){E=E&&((c.subtreeFlags&10256)!==0||!1);for(c=c.child;c!==null;){var N=i,R=c,D=b,L=w,H=R.flags;switch(R.tag){case 0:case 11:case 15:Io(N,R,D,L,E),uu(8,R);break;case 23:break;case 22:var U=R.stateNode;R.memoizedState!==null?U._visibility&2?Io(N,R,D,L,E):Hs(N,R):(U._visibility|=2,Io(N,R,D,L,E)),E&&H&2048&&_h(R.alternate,R);break;case 24:Io(N,R,D,L,E),E&&H&2048&&Dh(R.alternate,R);break;default:Io(N,R,D,L,E)}c=c.sibling}}function Hs(i,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var b=i,w=c,E=w.flags;switch(w.tag){case 22:Hs(b,w),E&2048&&_h(w.alternate,w);break;case 24:Hs(b,w),E&2048&&Dh(w.alternate,w);break;default:Hs(b,w)}c=c.sibling}}var Gi=8192;function Vi(i,c,b){if(i.subtreeFlags&Gi)for(i=i.child;i!==null;)N1(i,c,b),i=i.sibling}function N1(i,c,b){switch(i.tag){case 26:Vi(i,c,b),i.flags&Gi&&(i.memoizedState!==null?w3(b,jr,i.memoizedState,i.memoizedProps):(i=i.stateNode,(c&335544128)===c&&v0(b,i)));break;case 5:Vi(i,c,b),i.flags&Gi&&(i=i.stateNode,(c&335544128)===c&&v0(b,i));break;case 3:case 4:var w=jr;jr=Js(i.stateNode.containerInfo),Vi(i,c,b),jr=w;break;case 22:i.memoizedState===null&&(w=i.alternate,w!==null&&w.memoizedState!==null?(w=Gi,Gi=16777216,Vi(i,c,b),Gi=w):Vi(i,c,b));break;case 30:if((i.flags&Gi)!==0&&(w=i.memoizedProps.name,w!=null&&w!=="auto")){var E=i.stateNode;E.paired=null,$n===null&&($n=new Map),$n.set(w,E)}Vi(i,c,b);break;default:Vi(i,c,b)}}function R1(i){var c=i.alternate;if(c!==null&&(i=c.child,i!==null)){c.child=null;do c=i.sibling,i.sibling=null,i=c;while(i!==null)}}function hs(i){var c=i.deletions;if((i.flags&16)!==0){if(c!==null)for(var b=0;b<c.length;b++){var w=c[b];Zt=w,z1(w,i)}R1(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)M1(i),i=i.sibling}function M1(i){switch(i.tag){case 0:case 11:case 15:hs(i),i.flags&2048&&ui(9,i,i.return);break;case 3:hs(i);break;case 12:hs(i);break;case 22:var c=i.stateNode;i.memoizedState!==null&&c._visibility&2&&(i.return===null||i.return.tag!==13)?(c._visibility&=-3,Dc(i)):hs(i);break;default:hs(i)}}function Dc(i){var c=i.deletions;if((i.flags&16)!==0){if(c!==null)for(var b=0;b<c.length;b++){var w=c[b];Zt=w,z1(w,i)}R1(i)}for(i=i.child;i!==null;){switch(c=i,c.tag){case 0:case 11:case 15:ui(8,c,c.return),Dc(c);break;case 22:b=c.stateNode,b._visibility&2&&(b._visibility&=-3,Dc(c));break;default:Dc(c)}i=i.sibling}}function z1(i,c){for(;Zt!==null;){var b=Zt;switch(b.tag){case 0:case 11:case 15:ui(8,b,c);break;case 23:case 22:if(b.memoizedState!==null&&b.memoizedState.cachePool!==null){var w=b.memoizedState.cachePool.pool;w!=null&&w.refCount++}break;case 24:lu(b.memoizedState.cache)}if(w=b.child,w!==null)w.return=b,Zt=w;else e:for(b=i;Zt!==null;){w=Zt;var E=w.sibling,N=w.return;if(x1(w),w===b){Zt=null;break e}if(E!==null){E.return=N,Zt=E;break e}Zt=N}}}var yA={getCacheForType:function(i){var c=rn(Vt),b=c.data.get(i);return b===void 0&&(b=i(),c.data.set(i,b)),b},cacheSignal:function(){return rn(Vt).controller.signal}},bA=typeof WeakMap==="function"?WeakMap:Map,at=0,ht=null,Fe=null,Qe=0,ct=0,Kn=null,Za=!1,Rl=!1,Lh=!1,Ra=0,zt=0,ci=0,ao=0,uf=0,lr=0,vl=0,Us=null,_n=null,Np=!1,Of=0,O1=0,cf=1/0,ff=null,ni=null,Ct=0,Yr=null,mo=null,sa=0,Rp=0,Mp=null,_1=null,cl=null,fl=null,dl=null,Bs=0,Lc=null;function Sr(){return(at&2)!==0&&Qe!==0?Qe&-Qe:Ee.T!==null?Uh():q0()}function D1(){if(lr===0)if((Qe&536870912)===0||qe){var i=oc;oc<<=1,(oc&3932160)===0&&(oc=262144),lr=i}else lr=536870912;return i=sn.current,i!==null&&(i.flags|=32),lr}function yl(i,c){if(c!=null){var b=i.stateNode,w=b.ref;w===null&&(w=b.ref=nw(Ta(i.memoizedProps,b))),fl===null&&(fl=[]),fl.push(c.bind(null,w))}}function Pn(i,c,b){if(i===ht&&(ct===2||ct===9)||i.cancelPendingCommit!==null)bl(i,0),Ka(i,Qe,lr,!1);if(yf(i,b),(at&2)===0||i!==ht)i===ht&&((at&2)===0&&(ao|=b),zt===4&&Ka(i,Qe,lr,!1)),Oa(i)}function L1(i,c,b){if((at&6)!==0)throw Error(le(327));var w=!b&&(c&127)===0&&(c&i.expiredLanes)===0||ru(i,c),E=w?kA(i,c):Nm(i,c,!0),N=w;do{if(E===0){Rl&&!w&&Ka(i,c,0,!1);break}else{if(b=i.current.alternate,N&&!xA(b)){E=Nm(i,c,!1),N=!1;continue}if(E===2){if(N=c,i.errorRecoveryDisabledLanes&N)var R=0;else R=i.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){c=R;e:{var D=i;E=Us;var L=D.current.memoizedState.isDehydrated;if(L&&(bl(D,R).flags|=256),R=Nm(D,R,!1),R!==2&&R!==6){if(Lh&&!L){D.errorRecoveryDisabledLanes|=N,ao|=N,E=4;break e}N=_n,_n=E,N!==null&&(_n===null?_n=N:_n.push.apply(_n,N))}E=R}if(N=!1,E!==2)continue}}if(E===1){bl(i,0),Ka(i,c,0,!0);break}e:{switch(w=i,N=E,N){case 0:case 1:throw Error(le(345));case 4:if((c&4194048)!==c&&(c&62914560)!==c)break;case 6:Ka(w,c,lr,!Za);break e;case 2:_n=null;break;case 3:case 5:break;default:throw Error(le(329))}if((c&62914560)===c&&(E=Of+300-ur(),10<E)){if(Ka(w,c,lr,!Za),vf(w,0,!0)!==0)break e;sa=c,w.timeoutHandle=Bh(Xb.bind(null,w,b,_n,ff,Np,c,lr,ao,vl,Za,N,"Throttled",-0,0),E);break e}Xb(w,b,_n,ff,Np,c,lr,ao,vl,Za,N,null,-0,0)}}break}while(1);Oa(i)}function Xb(i,c,b,w,E,N,R,D,L,H,U,B,V,q){i.timeoutHandle=-1;var Y=c.subtreeFlags,Z=(N&335544064)===N;if(B=null,Z||Y&8192||(Y&16785408)===16785408){if(B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:aa},$n=null,N1(c,N,B),Z&&(Y=B,Z=i.containerInfo,Z=(Z.nodeType===9?Z:Z.ownerDocument).__reactViewTransition,Z!=null&&(Y.count++,Y.waitingForViewTransition=!0,Y=Ws.bind(Y),Z.finished.then(Y,Y))),Y=(N&62914560)===N?Of-ur():(N&4194048)===N?O1-ur():0,Y=k3(B,Y),Y!==null){sa=N,i.cancelPendingCommit=Y(Kb.bind(null,i,c,N,b,w,E,R,D,L,H,U,B,null,V,q)),Ka(i,N,R,!H);return}}Kb(i,c,N,b,w,E,R,D,L,H,U,B)}function xA(i){for(var c=i;;){var b=c.tag;if((b===0||b===11||b===15)&&c.flags&16384&&(b=c.updateQueue,b!==null&&(b=b.stores,b!==null)))for(var w=0;w<b.length;w++){var E=b[w],N=E.getSnapshot;E=E.value;try{if(!dr(N(),E))return!1}catch(R){return!1}}if(b=c.child,c.subtreeFlags&16384&&b!==null)b.return=c,c=b;else{if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Ka(i,c,b,w){c=D0(i,c),c&=~uf,c&=~ao,i.suspendedLanes|=c,i.pingedLanes&=~c,w&&(i.warmLanes|=c),w=i.expirationTimes;for(var E=c;0<E;){var N=31-fr(E),R=1<<N;w[N]=-1,E&=~R}b!==0&&H0(i,b,c)}function _f(){return(at&6)===0?(cu(0,!1),!1):!0}function Hh(){if(Fe!==null){if(ct===0)var i=Fe.return;else i=Fe,wa=yo=null,bh(i),ll=null,Ys=0,i=Fe;for(;i!==null;)u1(i.alternate,i),i=i.return;Fe=null}}function bl(i,c){var b=i.timeoutHandle;return b!==-1&&(i.timeoutHandle=-1,IA(b)),b=i.cancelPendingCommit,b!==null&&(i.cancelPendingCommit=null,b()),sa=0,Hh(),ht=i,Fe=b=ka(i.current,null),Qe=c,ct=0,Kn=null,Za=!1,Rl=ru(i,c),Lh=!1,vl=lr=uf=ao=ci=zt=0,_n=Us=null,Np=!1,Ra=D0(i,c),Sf(),b}function H1(i,c){_e=null,Ee.H=nf,c===Al||c===Cf?(c=wb(),ct=3):c===fh?(c=wb(),ct=4):ct=c===Ah?8:c!==null&&typeof c==="object"&&typeof c.then==="function"?6:1,Kn=c,Fe===null&&(zt=1,rf(i,wr(c,i.current)))}function U1(){var i=sn.current;return i===null?!0:(Qe&4194048)===Qe?wn===null?!0:!1:(Qe&62914560)===Qe||(Qe&536870912)!==0?i===wn:!1}function B1(){var i=Ee.H;return Ee.H=nf,i===null?nf:i}function V1(){var i=Ee.A;return Ee.A=yA,i}function df(){zt=4,Za||(Qe&4194048)!==Qe&&sn.current!==null||(Rl=!0),(ci&134217727)===0&&(ao&134217727)===0||ht===null||Ka(ht,Qe,lr,!1)}function Nm(i,c,b){var w=at;at|=2;var E=B1(),N=V1();if(ht!==i||Qe!==c)ff=null,bl(i,c);c=!1;var R=zt;e:do try{if(ct!==0&&Fe!==null){var D=Fe,L=Kn;switch(ct){case 8:Hh(),R=6;break e;case 3:case 2:case 9:case 6:sn.current===null&&(c=!0);var H=ct;if(ct=0,Kn=null,nl(i,D,L,H),b&&Rl){R=0;break e}break;default:H=ct,ct=0,Kn=null,nl(i,D,L,H)}}wA(),R=zt;break}catch(U){H1(i,U)}while(1);return c&&i.shellSuspendCounter++,wa=yo=null,at=w,Ee.H=E,Ee.A=N,Fe===null&&(ht=null,Qe=0,Sf()),R}function wA(){for(;Fe!==null;)q1(Fe)}function kA(i,c){var b=at;at|=2;var w=B1(),E=V1();ht!==i||Qe!==c?(ff=null,cf=ur()+500,bl(i,c)):Rl=ru(i,c);e:do try{if(ct!==0&&Fe!==null){c=Fe;var N=Kn;t:switch(ct){case 1:ct=0,Kn=null,nl(i,c,N,1);break;case 2:case 9:if(xb(N)){ct=0,Kn=null,Zb(c);break}c=function(){ct!==2&&ct!==9||ht!==i||(ct=7),Oa(i)},N.then(c,c);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:xb(N)?(ct=0,Kn=null,Zb(c)):(ct=0,Kn=null,nl(i,c,N,7));break;case 5:var R=null;switch(Fe.tag){case 26:R=Fe.memoizedState;case 5:case 27:var D=Fe;if(R?dw(R):D.stateNode.complete){ct=0,Kn=null;var L=D.sibling;if(L!==null)Fe=L;else{var H=D.return;H!==null?(Fe=H,Df(H)):Fe=null}break t}}ct=0,Kn=null,nl(i,c,N,5);break;case 6:ct=0,Kn=null,nl(i,c,N,6);break;case 8:Hh(),zt=6;break e;default:throw Error(le(462))}}SA();break}catch(U){H1(i,U)}while(1);if(wa=yo=null,Ee.H=w,Ee.A=E,at=b,Fe!==null)return 0;return ht=null,Qe=0,Sf(),zt}function SA(){for(;Fe!==null&&!UT();)q1(Fe)}function q1(i){var c=s1(i.alternate,i,Ra);i.memoizedProps=i.pendingProps,c===null?Df(i):Fe=c}function Zb(i){var c=i,b=c.alternate;switch(c.tag){case 15:case 0:c=Ub(b,c,c.pendingProps,c.type,void 0,Qe);break;case 11:c=Ub(b,c,c.pendingProps,c.type.render,c.ref,Qe);break;case 5:bh(c);var w=c;w===Jt&&(qe?(Zc(w),w.tag===5&&w.stateNode!=null&&(yt=w.stateNode)):(Zc(w),qe=!0));default:u1(b,c),c=Fe=mx(c,Ra),c=s1(b,c,Ra)}i.memoizedProps=i.pendingProps,c===null?Df(i):Fe=c}function nl(i,c,b,w){wa=yo=null,bh(c),ll=null,Ys=0;var E=c.return;try{if(cA(i,E,c,b,Qe)){zt=1,rf(i,wr(b,i.current)),Fe=null;return}}catch(N){if(E!==null)throw Fe=E,N;zt=1,rf(i,wr(b,i.current)),Fe=null;return}if(c.flags&32768){if(qe||w===1)i=!0;else if(Rl||(Qe&536870912)!==0)i=!1;else if(Za=i=!0,w===2||w===9||w===3||w===6)w=sn.current,w!==null&&w.tag===13&&(w.flags|=16384);P1(c,i)}else Df(c)}function Df(i){var c=i;do{if((c.flags&32768)!==0){P1(c,Za);return}i=c.return;var b=pA(c.alternate,c,Ra);if(b!==null){Fe=b;return}if(c=c.sibling,c!==null){Fe=c;return}Fe=c=i}while(c!==null);zt===0&&(zt=5)}function P1(i,c){do{var b=hA(i.alternate,i);if(b!==null){b.flags&=32767,Fe=b;return}if(b=i.return,b!==null&&(b.flags|=32768,b.subtreeFlags=0,b.deletions=null),!c&&(i=i.sibling,i!==null)){Fe=i;return}Fe=i=b}while(i!==null);zt=6,Fe=null}function Kb(i,c,b,w,E,N,R,D,L,H,U,B){i.cancelPendingCommit=null;do Lf();while(Ct!==0);if((at&6)!==0)throw Error(le(327));if(c!==null){if(c===i.current)throw Error(le(177));i===ht&&(Fe=ht=null,Qe=0),mo=c,Yr=i,sa=b,Mp=E,_1=w,EA(i,c,b,R,D,L,B)}}function EA(i,c,b,w,E,N,R){var D=c.lanes|c.childLanes;if(Rp=D,D|=ih,QT(i,b,D,w,E,N),fl=null,(b&335544064)===b?(dl=ZC(i),w=10262):(dl=null,w=10256),(c.subtreeFlags&w)!==0||(c.flags&w)!==0?(i.callbackNode=null,i.callbackPriority=0,MA(Gc,function(){return Dp(),null})):(i.callbackNode=null,i.callbackPriority=0),lf=!1,w=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||w){w=Ee.T,Ee.T=null,E=it.p,it.p=2,N=at,at|=4;try{gA(i,c,b)}finally{at=N,it.p=E,Ee.T=w}}Ct=1,lf?cl=XA(R,i.containerInfo,dl,zp,Op,CA,_p,Dp,TA,null,null):(zp(),Op(),_p())}function TA(i){if(Ct!==0){var c=Yr.onRecoverableError;c(i,{componentStack:null})}}function CA(){Ct===3&&(Ct=0,C1(mo,Yr),Ct=4)}function zp(){if(Ct===1){Ct=0;var i=Yr,c=mo,b=sa,w=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||w){w=Ee.T,Ee.T=null;var E=it.p;it.p=2;var N=at;at|=4;try{Ss=sf=!1,E1(c,i,b),b=qp;var R=ix(i.containerInfo),D=b.focusedElem,L=b.selectionRange;if(R!==D&&D&&D.ownerDocument&&ax(D.ownerDocument.documentElement,D)){if(L!==null&&ah(D)){var{start:H,end:U}=L;if(U===void 0&&(U=H),"selectionStart"in D)D.selectionStart=H,D.selectionEnd=Math.min(U,D.value.length);else{var B=D.ownerDocument||document,V=B&&B.defaultView||window;if(V.getSelection){var q=V.getSelection(),Y=D.textContent.length,Z=Math.min(L.start,Y),ee=L.end===void 0?Z:Math.min(L.end,Y);!q.extend&&Z>ee&&(R=ee,ee=Z,Z=R);var P=db(D,Z),G=db(D,ee);if(P&&G&&(q.rangeCount!==1||q.anchorNode!==P.node||q.anchorOffset!==P.offset||q.focusNode!==G.node||q.focusOffset!==G.offset)){var F=B.createRange();F.setStart(P.node,P.offset),q.removeAllRanges(),Z>ee?(q.addRange(F),q.extend(G.node,G.offset)):(F.setEnd(G.node,G.offset),q.addRange(F))}}}}B=[];for(q=D;q=q.parentNode;)q.nodeType===1&&B.push({element:q,left:q.scrollLeft,top:q.scrollTop});typeof D.focus==="function"&&D.focus();for(D=0;D<B.length;D++){var te=B[D];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}El=!!Vp,qp=Vp=null}finally{at=N,it.p=E,Ee.T=w}}i.current=c,Ct=2}}function Op(){if(Ct===2){Ct=0;var i=Yr,c=mo,b=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||b){b=Ee.T,Ee.T=null;var w=it.p;it.p=2;var E=at;at|=4;try{y1(i,c.alternate,c)}finally{at=E,it.p=w,Ee.T=b}}Ct=3}}function _p(){if(Ct===4||Ct===3){Ct=0;var i=cl;cl=null,BT();var c=Yr,b=mo,w=sa,E=_1,N=(w&335544064)===w?10262:10256;if((b.subtreeFlags&N)!==0||(b.flags&N)!==0?Ct=5:(Ct=0,mo=Yr=null,I1(c,c.pendingLanes)),N=c.pendingLanes,N===0&&(ni=null),Wp(w),b=b.stateNode,cr&&typeof cr.onCommitFiberRoot==="function")try{cr.onCommitFiberRoot(nu,b,void 0,(b.current.flags&128)===128)}catch(H){}if(E!==null){b=Ee.T,N=it.p,it.p=2,Ee.T=null;try{for(var R=c.onRecoverableError,D=0;D<E.length;D++){var L=E[D];R(L.value,{componentStack:L.stack})}}finally{Ee.T=b,it.p=N}}if(E=fl,R=dl,dl=null,E!==null&&(fl=null,R===null&&(R=[]),i!==null))for(L=0;L<E.length;L++)b=(0,E[L])(R),b!==void 0&&i.finished.finally(b);(sa&3)!==0&&Lf(),Oa(c),N=c.pendingLanes,(w&261930)!==0&&(N&42)!==0?c===Lc?Bs++:(Bs=0,Lc=c):(Bs=0,Lc=null),cu(0,!1)}}function I1(i,c){(i.pooledCacheLanes&=c)===0&&(c=i.pooledCache,c!=null&&(i.pooledCache=null,lu(c)))}function Lf(){return cl!==null&&(cl.skipTransition(),cl=null),zp(),Op(),_p(),Dp()}function Dp(){if(Ct!==5)return!1;var i=Yr,c=Rp;Rp=0;var b=Wp(sa),w=Ee.T,E=it.p;try{it.p=32>b?32:b,Ee.T=null,b=Mp,Mp=null;var N=Yr,R=sa;if(Ct=0,mo=Yr=null,sa=0,(at&6)!==0)throw Error(le(331));var D=at;if(at|=4,M1(N.current),A1(N,N.current,R,b),at=D,cu(0,!1),cr&&typeof cr.onPostCommitFiberRoot==="function")try{cr.onPostCommitFiberRoot(nu,N)}catch(L){}return!0}finally{it.p=E,Ee.T=w,I1(i,c)}}function Jb(i,c,b){c=wr(b,c),c=mp(i.stateNode,c,2),i=ro(i,c,2),i!==null&&(yf(i,2),Oa(i))}function dt(i,c,b){if(i.tag===3)Jb(i,i,b);else for(;c!==null;){if(c.tag===3){Jb(c,i,b);break}else if(c.tag===1){var w=c.stateNode;if(typeof c.type.getDerivedStateFromError==="function"||typeof w.componentDidCatch==="function"&&(ni===null||!ni.has(w))){i=wr(b,i),b=r1(2),w=ro(c,b,2),w!==null&&(a1(b,w,c,i),yf(w,2),Oa(w));break}}c=c.return}}function Rm(i,c,b){var w=i.pingCache;if(w===null){w=i.pingCache=new bA;var E=new Set;w.set(c,E)}else E=w.get(c),E===void 0&&(E=new Set,w.set(c,E));E.has(b)||(Lh=!0,E.add(b),i=AA.bind(null,i,c,b),c.then(i,i))}function AA(i,c,b){var w=i.pingCache;w!==null&&w.delete(c),i.pingedLanes|=i.suspendedLanes&b,i.warmLanes&=~b,ht===i&&(Qe&b)===b&&(zt===4||zt===3&&(Qe&62914560)===Qe&&300>ur()-Of?(at&2)===0?bl(i,0):uf|=b:uf|=b,vl===Qe&&(vl=0)),Oa(i)}function j1(i,c){c===0&&(c=L0()),i=vo(i,c),i!==null&&(yf(i,c),Oa(i))}function NA(i){var c=i.memoizedState,b=0;c!==null&&(b=c.retryLane),j1(i,b)}function RA(i,c){var b=0;switch(i.tag){case 31:case 13:var{stateNode:w,memoizedState:E}=i;E!==null&&(b=E.retryLane);break;case 19:w=i.stateNode;break;case 22:w=i.stateNode._retryCache;break;default:throw Error(le(314))}w!==null&&w.delete(c),j1(i,b)}function MA(i,c){return Jp(i,c)}var xl=null,jo=null,Lp=!1,mf=!1,Mm=!1,Ja=0;function Oa(i){i!==jo&&i.next===null&&(jo===null?xl=jo=i:jo=jo.next=i),mf=!0,Lp||(Lp=!0,OA())}function cu(i,c){if(!Mm&&mf){Mm=!0;do{var b=!1;for(var w=xl;w!==null;){if(!c)if(i!==0){var E=w.pendingLanes;if(E===0)var N=0;else{var R=w.suspendedLanes,D=w.pingedLanes;N=(1<<31-fr(42|i)+1)-1,N&=E&~(R&~D),N=N&201326741?N&201326741|1:N?N|2:0}N!==0&&(b=!0,Wb(w,N))}else N=Qe,N=vf(w,w===ht?N:0,w.cancelPendingCommit!==null||w.timeoutHandle!==-1),(N&3)===0||ru(w,N)||(b=!0,Wb(w,N));w=w.next}}while(b);Mm=!1}}function zA(){G1()}function G1(){mf=Lp=!1;var i=0;Ja!==0&&PA()&&(i=Ja);for(var c=ur(),b=null,w=xl;w!==null;){var E=w.next,N=Y1(w,c);if(N===0)w.next=null,b===null?xl=E:b.next=E,E===null&&(jo=b);else if(b=w,i!==0||(N&3)!==0)mf=!0;w=E}Ct!==0&&Ct!==5||cu(i,!1),Ja!==0&&(Ja=0)}function Y1(i,c){for(var{suspendedLanes:b,pingedLanes:w,expirationTimes:E}=i,N=i.pendingLanes&-62914561;0<N;){var R=31-fr(N),D=1<<R,L=E[R];if(L===-1){if((D&b)===0||(D&w)!==0)E[R]=FT(D,c)}else L<=c&&(i.expiredLanes|=D);N&=~D}if(c=ht,b=Qe,b=vf(i,i===c?b:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),w=i.callbackNode,b===0||i===c&&(ct===2||ct===9)||i.cancelPendingCommit!==null)return w!==null&&w!==null&&um(w),i.callbackNode=null,i.callbackPriority=0;if((b&3)===0||ru(i,b)){if(c=b&-b,c===i.callbackPriority)return c;switch(w!==null&&um(w),Wp(b)){case 2:case 8:b=O0;break;case 32:b=Gc;break;case 268435456:b=_0;break;default:b=Gc}return w=F1.bind(null,i),b=Jp(b,w),i.callbackPriority=c,i.callbackNode=b,c}return w!==null&&w!==null&&um(w),i.callbackPriority=2,i.callbackNode=null,2}function F1(i,c){if(Ct!==0&&Ct!==5)return i.callbackNode=null,i.callbackPriority=0,null;var b=i.callbackNode;if(Lf()&&i.callbackNode!==b)return null;var w=Qe;if(w=vf(i,i===ht?w:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),w===0)return null;return L1(i,w,c),Y1(i,ur()),i.callbackNode!=null&&i.callbackNode===b?F1.bind(null,i):null}function Wb(i,c){if(Lf())return null;L1(i,c,!0)}function OA(){jA(function(){(at&6)!==0?Jp(z0,zA):G1()})}function Uh(){if(Ja===0){var i=so;i===0&&(i=ic,ic<<=1,(ic&261888)===0&&(ic=256)),Ja=i}return Ja}function $b(i){return i==null||typeof i==="symbol"||typeof i==="boolean"?null:typeof i==="function"?i:kc(i)}function _A(i,c,b,w,E){if(c==="submit"&&b&&b.stateNode===E){var N=$b((E[Gn]||null).action),R=w.submitter;R&&(c=(c=R[Gn]||null)?$b(c.formAction):R.getAttribute("formAction"),c!==null&&(N=c,R=null));var D=new xf("action","action",null,w,E);i.push({event:D,listeners:[{instance:null,listener:function(){if(w.defaultPrevented){if(Ja!==0){var L=new FormData(E,R);fp(b,{pending:!0,data:L,method:E.method,action:N},null,L)}}else typeof N==="function"&&(D.preventDefault(),L=new FormData(E,R),fp(b,{pending:!0,data:L,method:E.method,action:N},N,L))},currentTarget:E}]})}}for(Es=0;Es<ep.length;Es++)Ts=ep[Es],Hp=Ts.toLowerCase(),Up=Ts[0].toUpperCase()+Ts.slice(1),Fr(Hp,"on"+Up);var Ts,Hp,Up,Es;Fr(lx,"onAnimationEnd");Fr(sx,"onAnimationIteration");Fr(ux,"onAnimationStart");Fr("dblclick","onDoubleClick");Fr("focusin","onFocus");Fr("focusout","onBlur");Fr(PC,"onTransitionRun");Fr(IC,"onTransitionStart");Fr(jC,"onTransitionCancel");Fr(cx,"onTransitionEnd");pl("onMouseEnter",["mouseout","mouseover"]);pl("onMouseLeave",["mouseout","mouseover"]);pl("onPointerEnter",["pointerout","pointerover"]);pl("onPointerLeave",["pointerout","pointerover"]);ho("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ho("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ho("onBeforeInput",["compositionend","keypress","textInput","paste"]);ho("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ho("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ho("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),DA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xs));function Q1(i,c){c=(c&4)!==0;for(var b=0;b<i.length;b++){var w=i[b],E=w.event;w=w.listeners;e:{var N=void 0;if(c)for(var R=w.length-1;0<=R;R--){var D=w[R],L=D.instance,H=D.currentTarget;if(D=D.listener,L!==N&&E.isPropagationStopped())break e;N=D,E.currentTarget=H;try{N(E)}catch(U){Fc(U)}E.currentTarget=null,N=L}else for(R=0;R<w.length;R++){if(D=w[R],L=D.instance,H=D.currentTarget,D=D.listener,L!==N&&E.isPropagationStopped())break e;N=D,E.currentTarget=H;try{N(E)}catch(U){Fc(U)}E.currentTarget=null,N=L}}}}function Ge(i,c){var b=c[Zy];b===void 0&&(b=c[Zy]=new Set);var w=i+"__bubble";b.has(w)||(Z1(c,i,2,!1),b.add(w))}function zm(i,c,b){var w=0;c&&(w|=4),Z1(b,i,w,c)}var yc="_reactListening"+Math.random().toString(36).slice(2);function X1(i){if(!i[yc]){i[yc]=!0,I0.forEach(function(b){b!=="selectionchange"&&(DA.has(b)||zm(b,!1,i),zm(b,!0,i))});var c=i.nodeType===9?i:i.ownerDocument;c===null||c[yc]||(c[yc]=!0,zm("selectionchange",!1,c))}}function Z1(i,c,b,w){switch(vw(c)){case 2:var E=N3;break;case 8:E=R3;break;default:E=Gh}b=E.bind(null,c,b,i),E=void 0,!Km||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(E=!0),w?E!==void 0?i.addEventListener(c,b,{capture:!0,passive:E}):i.addEventListener(c,b,!0):E!==void 0?i.addEventListener(c,b,{passive:E}):i.addEventListener(c,b,!1)}function Om(i,c,b,w,E){var N=w;if((c&1)===0&&(c&2)===0&&w!==null)e:for(;;){if(w===null)return;var R=w.tag;if(R===3||R===4){var D=w.stateNode.containerInfo;if(D===E)break;if(R===4)for(R=w.return;R!==null;){var L=R.tag;if((L===3||L===4)&&R.stateNode.containerInfo===E)return;R=R.return}for(;D!==null;){if(R=Fi(D),R===null)return;if(L=R.tag,L===5||L===6||L===26||L===27){w=N=R;continue e}D=D.parentNode}}w=w.return}K0(function(){var H=N,U=eh(b),B=[];e:{var V=fx.get(i);if(V!==void 0){var q=xf,Y=i;switch(i){case"keypress":if(Ec(b)===0)break e;case"keydown":case"keyup":q=vC;break;case"focusin":Y="focus",q=hm;break;case"focusout":Y="blur",q=hm;break;case"beforeblur":case"afterblur":q=hm;break;case"click":if(b.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=rb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=iC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=kC;break;case lx:case sx:case ux:q=sC;break;case cx:q=EC;break;case"scroll":case"scrollend":q=rC;break;case"wheel":q=CC;break;case"copy":case"cut":case"paste":q=cC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=ib;break;case"submit":q=xC;break;case"toggle":case"beforetoggle":q=NC}var Z=(c&4)!==0,ee=!Z&&(i==="scroll"||i==="scrollend"),P=Z?V!==null?V+"Capture":null:V;Z=[];for(var G=H,F;G!==null;){var te=G;if(F=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||F===null||P===null||(te=qs(G,P),te!=null&&Z.push(Zs(G,te,F))),ee)break;G=G.return}0<Z.length&&(V=new q(V,Y,null,b,U),B.push({event:V,listeners:Z}))}}if((c&7)===0){e:{if(q=i==="mouseover"||i==="pointerover",V=i==="mouseout"||i==="pointerout",q&&b!==Zm&&(Y=b.relatedTarget||b.fromElement)&&(Fi(Y)||Y[au]))break e;if(V||q){if(Y=U.window===U?U:(q=U.ownerDocument)?q.defaultView||q.parentWindow:window,V){if(q=b.relatedTarget||b.toElement,V=H,q=q?Fi(q):null,q!==null&&(ee=tu(q),Z=q.tag,q!==ee||Z!==5&&Z!==27&&Z!==6))q=null}else V=null,q=H;if(V!==q){if(Z=rb,te="onMouseLeave",P="onMouseEnter",G="mouse",i==="pointerout"||i==="pointerover")Z=ib,te="onPointerLeave",P="onPointerEnter",G="pointer";ee=V==null?Y:bs(V),F=q==null?Y:bs(q),Y=new Z(te,G+"leave",V,b,U),Y.target=ee,Y.relatedTarget=F,te=null,Fi(U)===H&&(Z=new Z(P,G+"enter",q,b,U),Z.target=F,Z.relatedTarget=ee,te=Z),ee=te,Z=V&&q?Um(V,q,LA):null,V!==null&&e0(B,Y,V,Z,!1),q!==null&&ee!==null&&e0(B,ee,q,Z,!0)}}}e:{if(V=H?bs(H):window,q=V.nodeName&&V.nodeName.toLowerCase(),q==="select"||q==="input"&&V.type==="file")var oe=ub;else if(sb(V))if(nx)oe=BC;else{oe=HC;var ae=LC}else q=V.nodeName,!q||q.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?H&&$p(H.elementType)&&(oe=ub):oe=UC;if(oe&&(oe=oe(i,H))){tx(B,oe,b,U);break e}ae&&ae(i,V,H)}switch(ae=H?bs(H):window,i){case"focusin":if(sb(ae)||ae.contentEditable==="true")Ko=ae,Wm=H,Ns=null;break;case"focusout":Ns=Wm=Ko=null;break;case"mousedown":$m=!0;break;case"contextmenu":case"mouseup":case"dragend":$m=!1,mb(B,b,U);break;case"selectionchange":if(qC)break;case"keydown":case"keyup":mb(B,b,U)}var ce;if(rh)e:{switch(i){case"compositionstart":var ue="onCompositionStart";break e;case"compositionend":ue="onCompositionEnd";break e;case"compositionupdate":ue="onCompositionUpdate";break e}ue=void 0}else Zo?$0(i,b)&&(ue="onCompositionEnd"):i==="keydown"&&b.keyCode===229&&(ue="onCompositionStart");if(ue&&(W0&&b.locale!=="ko"&&(Zo||ue!=="onCompositionStart"?ue==="onCompositionEnd"&&Zo&&(ce=J0()):(Qa=U,th=("value"in Qa)?Qa.value:Qa.textContent,Zo=!0)),ae=pf(H,ue),0<ae.length&&(ue=new ab(ue,i,null,b,U),B.push({event:ue,listeners:ae}),ce?ue.data=ce:(ce=ex(b),ce!==null&&(ue.data=ce)))),ce=MC?zC(i,b):OC(i,b))ue=pf(H,"onBeforeInput"),0<ue.length&&(ae=new ab("onBeforeInput","beforeinput",null,b,U),B.push({event:ae,listeners:ue}),ae.data=ce);_A(B,i,H,b,U)}Q1(B,c)})}function Zs(i,c,b){return{instance:i,listener:c,currentTarget:b}}function pf(i,c){for(var b=c+"Capture",w=[];i!==null;){var E=i,N=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||N===null||(E=qs(i,b),E!=null&&w.unshift(Zs(i,E,N)),E=qs(i,c),E!=null&&w.push(Zs(i,E,N))),i.tag===3)return w;i=i.return}return[]}function LA(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i?i:null}function e0(i,c,b,w,E){for(var N=c._reactName,R=[];b!==null&&b!==w;){var D=b,L=D.alternate,H=D.stateNode;if(D=D.tag,L!==null&&L===w)break;D!==5&&D!==26&&D!==27||H===null||(L=H,E?(H=qs(b,N),H!=null&&R.unshift(Zs(b,H,L))):E||(H=qs(b,N),H!=null&&R.push(Zs(b,H,L)))),b=b.return}R.length!==0&&i.push({event:c,listeners:R})}var HA=/\r\n?/g,UA=/\u0000|\uFFFD/g;function t0(i){return(typeof i==="string"?i:""+i).replace(HA,`
11
- `).replace(UA,"")}function K1(i,c){return c=t0(c),t0(i)===c?!0:!1}function ft(i,c,b,w,E,N){switch(b){case"children":if(typeof w==="string")c==="body"||c==="textarea"&&w===""||hl(i,w);else if(typeof w==="number"||typeof w==="bigint")c!=="body"&&hl(i,""+w);else return;break;case"className":sc(i,"class",w);break;case"tabIndex":sc(i,"tabindex",w);break;case"dir":case"role":case"viewBox":case"width":case"height":sc(i,b,w);break;case"style":Z0(i,w,N);return;case"data":if(c!=="object"){sc(i,"data",w);break}case"src":case"href":if(w===""&&(c!=="a"||b!=="href")){i.removeAttribute(b);break}if(w==null||typeof w==="function"||typeof w==="symbol"||typeof w==="boolean"){i.removeAttribute(b);break}w=kc(w),i.setAttribute(b,w);break;case"action":case"formAction":if(typeof w==="function"){i.setAttribute(b,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof N==="function"&&(b==="formAction"?(c!=="input"&&ft(i,c,"name",E.name,E,null),ft(i,c,"formEncType",E.formEncType,E,null),ft(i,c,"formMethod",E.formMethod,E,null),ft(i,c,"formTarget",E.formTarget,E,null)):(ft(i,c,"encType",E.encType,E,null),ft(i,c,"method",E.method,E,null),ft(i,c,"target",E.target,E,null)));if(w==null||typeof w==="symbol"||typeof w==="boolean"){i.removeAttribute(b);break}w=kc(w),i.setAttribute(b,w);break;case"onClick":w!=null&&(i.onclick=aa);return;case"onScroll":w!=null&&Ge("scroll",i);return;case"onScrollEnd":w!=null&&Ge("scrollend",i);return;case"dangerouslySetInnerHTML":if(w!=null){if(typeof w!=="object"||!("__html"in w))throw Error(le(61));if(b=w.__html,b!=null){if(E.children!=null)throw Error(le(60));(N!=null?N.__html:void 0)!==b&&(i.innerHTML=b)}}break;case"multiple":i.multiple=w&&typeof w!=="function"&&typeof w!=="symbol";break;case"muted":i.muted=w&&typeof w!=="function"&&typeof w!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(w==null||typeof w==="function"||typeof w==="boolean"||typeof w==="symbol"){i.removeAttribute("xlink:href");break}b=kc(w),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",b);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":w!=null&&typeof w!=="function"&&typeof w!=="symbol"?i.setAttribute(b,w):i.removeAttribute(b);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":w&&typeof w!=="function"&&typeof w!=="symbol"?i.setAttribute(b,""):i.removeAttribute(b);break;case"capture":case"download":w===!0?i.setAttribute(b,""):w!==!1&&w!=null&&typeof w!=="function"&&typeof w!=="symbol"?i.setAttribute(b,w):i.removeAttribute(b);break;case"cols":case"rows":case"size":case"span":w!=null&&typeof w!=="function"&&typeof w!=="symbol"&&!isNaN(w)&&1<=w?i.setAttribute(b,w):i.removeAttribute(b);break;case"rowSpan":case"start":w==null||typeof w==="function"||typeof w==="symbol"||isNaN(w)?i.removeAttribute(b):i.setAttribute(b,w);break;case"popover":Ge("beforetoggle",i),Ge("toggle",i),wc(i,"popover",w);break;case"xlinkActuate":ya(i,"http://www.w3.org/1999/xlink","xlink:actuate",w);break;case"xlinkArcrole":ya(i,"http://www.w3.org/1999/xlink","xlink:arcrole",w);break;case"xlinkRole":ya(i,"http://www.w3.org/1999/xlink","xlink:role",w);break;case"xlinkShow":ya(i,"http://www.w3.org/1999/xlink","xlink:show",w);break;case"xlinkTitle":ya(i,"http://www.w3.org/1999/xlink","xlink:title",w);break;case"xlinkType":ya(i,"http://www.w3.org/1999/xlink","xlink:type",w);break;case"xmlBase":ya(i,"http://www.w3.org/XML/1998/namespace","xml:base",w);break;case"xmlLang":ya(i,"http://www.w3.org/XML/1998/namespace","xml:lang",w);break;case"xmlSpace":ya(i,"http://www.w3.org/XML/1998/namespace","xml:space",w);break;case"is":wc(i,"is",w);break;case"innerText":case"textContent":return;default:if(!(2<b.length)||b[0]!=="o"&&b[0]!=="O"||b[1]!=="n"&&b[1]!=="N")b=tC.get(b)||b,wc(i,b,w);else return}nt=!0}function Bp(i,c,b,w,E,N){switch(b){case"style":Z0(i,w,N);return;case"dangerouslySetInnerHTML":if(w!=null){if(typeof w!=="object"||!("__html"in w))throw Error(le(61));if(b=w.__html,b!=null){if(E.children!=null)throw Error(le(60));(N!=null?N.__html:void 0)!==b&&(i.innerHTML=b)}}break;case"children":if(typeof w==="string")hl(i,w);else if(typeof w==="number"||typeof w==="bigint")hl(i,""+w);else return;break;case"onScroll":w!=null&&Ge("scroll",i);return;case"onScrollEnd":w!=null&&Ge("scrollend",i);return;case"onClick":w!=null&&(i.onclick=aa);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!j0.hasOwnProperty(b))e:{if(b[0]==="o"&&b[1]==="n"&&(E=b.endsWith("Capture"),N=b.slice(2,E?b.length-7:void 0),c=i[Gn]||null,c=c!=null?c[b]:null,typeof c==="function"&&i.removeEventListener(N,c,E),typeof w==="function")){typeof c!=="function"&&c!==null&&(b in i?i[b]=null:i.hasAttribute(b)&&i.removeAttribute(b)),i.addEventListener(N,w,E);break e}nt=!0,b in i?i[b]=w:w===!0?i.setAttribute(b,""):wc(i,b,w)}return}nt=!0}function ln(i,c,b){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",i),Ge("load",i);var w=!1,E=!1,N;for(N in b)if(b.hasOwnProperty(N)){var R=b[N];if(R!=null)switch(N){case"src":w=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(le(137,c));default:ft(i,c,N,R,b,null)}}E&&ft(i,c,"srcSet",b.srcSet,b,null),w&&ft(i,c,"src",b.src,b,null);return;case"input":Ge("invalid",i);var D=N=R=E=null,L=null,H=null;for(w in b)if(b.hasOwnProperty(w)){var U=b[w];if(U!=null)switch(w){case"name":E=U;break;case"type":R=U;break;case"checked":L=U;break;case"defaultChecked":H=U;break;case"value":N=U;break;case"defaultValue":D=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(le(137,c));break;default:ft(i,c,w,U,b,null)}}F0(i,N,D,L,H,R,E,!1);return;case"select":Ge("invalid",i),w=R=N=null;for(E in b)if(b.hasOwnProperty(E)&&(D=b[E],D!=null))switch(E){case"value":N=D;break;case"defaultValue":R=D;break;case"multiple":w=D;default:ft(i,c,E,D,b,null)}c=N,b=R,i.multiple=!!w,c!=null?al(i,!!w,c,!1):b!=null&&al(i,!!w,b,!0);return;case"textarea":Ge("invalid",i),N=E=w=null;for(R in b)if(b.hasOwnProperty(R)&&(D=b[R],D!=null))switch(R){case"value":w=D;break;case"defaultValue":E=D;break;case"children":N=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(le(91));break;default:ft(i,c,R,D,b,null)}X0(i,w,E,N);return;case"option":for(L in b)if(b.hasOwnProperty(L)&&(w=b[L],w!=null))switch(L){case"selected":i.selected=w&&typeof w!=="function"&&typeof w!=="symbol";break;default:ft(i,c,L,w,b,null)}return;case"dialog":Ge("beforetoggle",i),Ge("toggle",i),Ge("cancel",i),Ge("close",i);break;case"iframe":case"object":Ge("load",i);break;case"video":case"audio":for(w=0;w<Xs.length;w++)Ge(Xs[w],i);break;case"image":Ge("error",i),Ge("load",i);break;case"details":Ge("toggle",i);break;case"embed":case"source":case"link":Ge("error",i),Ge("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in b)if(b.hasOwnProperty(H)&&(w=b[H],w!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(le(137,c));default:ft(i,c,H,w,b,null)}return;default:if($p(c)){for(U in b)b.hasOwnProperty(U)&&(w=b[U],w!==void 0&&Bp(i,c,U,w,b,void 0));return}}for(D in b)b.hasOwnProperty(D)&&(w=b[D],w!=null&&ft(i,c,D,w,b,null))}var BA={};function VA(i,c,b,w){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,N=null,R=null,D=null,L=null,H=null,U=null;for(q in b){var B=b[q];if(b.hasOwnProperty(q)&&B!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":L=B;default:w.hasOwnProperty(q)||ft(i,c,q,null,w,B)}}for(var V in w){var q=w[V];if(B=b[V],w.hasOwnProperty(V)&&(q!=null||B!=null))switch(V){case"type":q!==B&&(nt=!0),N=q;break;case"name":q!==B&&(nt=!0),E=q;break;case"checked":q!==B&&(nt=!0),H=q;break;case"defaultChecked":q!==B&&(nt=!0),U=q;break;case"value":q!==B&&(nt=!0),R=q;break;case"defaultValue":q!==B&&(nt=!0),D=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(le(137,c));break;default:q!==B&&ft(i,c,V,q,w,B)}}Xm(i,R,D,L,H,U,N,E);return;case"select":q=R=D=V=null;for(N in b)if(L=b[N],b.hasOwnProperty(N)&&L!=null)switch(N){case"value":break;case"multiple":q=L;default:w.hasOwnProperty(N)||ft(i,c,N,null,w,L)}for(E in w)if(N=w[E],L=b[E],w.hasOwnProperty(E)&&(N!=null||L!=null))switch(E){case"value":N!==L&&(nt=!0),V=N;break;case"defaultValue":N!==L&&(nt=!0),D=N;break;case"multiple":N!==L&&(nt=!0),R=N;default:N!==L&&ft(i,c,E,N,w,L)}c=D,b=R,w=q,V!=null?al(i,!!b,V,!1):!!w!==!!b&&(c!=null?al(i,!!b,c,!0):al(i,!!b,b?[]:"",!1));return;case"textarea":q=V=null;for(D in b)if(E=b[D],b.hasOwnProperty(D)&&E!=null&&!w.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:ft(i,c,D,null,w,E)}for(R in w)if(E=w[R],N=b[R],w.hasOwnProperty(R)&&(E!=null||N!=null))switch(R){case"value":E!==N&&(nt=!0),V=E;break;case"defaultValue":E!==N&&(nt=!0),q=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(le(91));break;default:E!==N&&ft(i,c,R,E,w,N)}Q0(i,V,q);return;case"option":for(var Y in b)if(V=b[Y],b.hasOwnProperty(Y)&&V!=null&&!w.hasOwnProperty(Y))switch(Y){case"selected":i.selected=!1;break;default:ft(i,c,Y,null,w,V)}for(L in w)if(V=w[L],q=b[L],w.hasOwnProperty(L)&&V!==q&&(V!=null||q!=null))switch(L){case"selected":V!==q&&(nt=!0),i.selected=V&&typeof V!=="function"&&typeof V!=="symbol";break;default:ft(i,c,L,V,w,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Z in b)V=b[Z],b.hasOwnProperty(Z)&&V!=null&&!w.hasOwnProperty(Z)&&ft(i,c,Z,null,w,V);for(H in w)if(V=w[H],q=b[H],w.hasOwnProperty(H)&&V!==q&&(V!=null||q!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(le(137,c));break;default:ft(i,c,H,V,w,q)}return;default:if($p(c)){for(var ee in b)V=b[ee],b.hasOwnProperty(ee)&&V!==void 0&&!w.hasOwnProperty(ee)&&Bp(i,c,ee,void 0,w,V);for(U in w)V=w[U],q=b[U],!w.hasOwnProperty(U)||V===q||V===void 0&&q===void 0||Bp(i,c,U,V,w,q);return}}for(var P in b)V=b[P],b.hasOwnProperty(P)&&V!=null&&!w.hasOwnProperty(P)&&ft(i,c,P,null,w,V);for(B in w)V=w[B],q=b[B],!w.hasOwnProperty(B)||V===q||V==null&&q==null||ft(i,c,B,V,w,q)}function n0(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qA(){if(typeof performance.getEntriesByType==="function"){for(var i=0,c=0,b=performance.getEntriesByType("resource"),w=0;w<b.length;w++){var E=b[w],{transferSize:N,initiatorType:R,duration:D}=E;if(N&&D&&n0(R)){R=0,D=E.responseEnd;for(w+=1;w<b.length;w++){var L=b[w],H=L.startTime;if(H>D)break;var U=L.transferSize,B=L.initiatorType;U&&n0(B)&&(L=L.responseEnd,R+=U*(L<D?1:(D-H)/(L-H)))}if(--w,c+=8*(N+R)/(E.duration/1000),i++,10<i)break}}if(0<i)return c/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i==="number")?i:5}var Vp=null,qp=null;function Ks(i){return i.nodeType===9?i:i.ownerDocument}function r0(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function J1(i,c){if(i===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&c==="foreignObject"?0:i}function W1(i,c,b,w){return b=Ks(b).createElement(i),b[nn]=w,b[Gn]=c,ln(b,i,c),Kt(b),b}function Pp(i,c){return i==="textarea"||i==="noscript"||typeof c.children==="string"||typeof c.children==="number"||typeof c.children==="bigint"||typeof c.dangerouslySetInnerHTML==="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var _m=null;function PA(){var i=window.event;if(i&&i.type==="popstate"){if(i===_m)return!1;return _m=i,!0}return _m=null,!1}var Bh=typeof setTimeout==="function"?setTimeout:void 0,IA=typeof clearTimeout==="function"?clearTimeout:void 0,a0=typeof Promise==="function"?Promise:void 0,i0=typeof requestAnimationFrame==="function"?requestAnimationFrame:Bh,jA=typeof queueMicrotask==="function"?queueMicrotask:typeof a0<"u"?function(i){return a0.resolve(null).then(i).catch(GA)}:Bh;function GA(i){setTimeout(function(){throw i})}function di(i){return i==="head"}function o0(i,c){var b=c,w=0;do{var E=b.nextSibling;if(i.removeChild(b),E&&E.nodeType===8)if(b=E.data,b==="/$"||b==="/&"){if(w===0){i.removeChild(E),Tl(c);return}w--}else if(b==="$"||b==="$?"||b==="$~"||b==="$!"||b==="&")w++;else if(b==="html")Lm(i.ownerDocument.documentElement);else if(b==="head"){b=i.ownerDocument.head,Lm(b);for(var N=b.firstChild;N;){var R=N.nextSibling,D=N.nodeName;N[iu]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&N.rel.toLowerCase()==="stylesheet"||b.removeChild(N),N=R}}else b==="body"&&Lm(i.ownerDocument.body);b=E}while(b);Tl(c)}function l0(i,c){var b=i;i=0;do{var w=b.nextSibling;if(b.nodeType===1?c?(b._stashedDisplay=b.style.display,b.style.display="none"):(b.style.display=b._stashedDisplay||"",b.getAttribute("style")===""&&b.removeAttribute("style")):b.nodeType===3&&(c?(b._stashedText=b.nodeValue,b.nodeValue=""):b.nodeValue=b._stashedText||""),w&&w.nodeType===8)if(b=w.data,b==="/$")if(i===0)break;else i--;else b!=="$"&&b!=="$?"&&b!=="$~"&&b!=="$!"||i++;b=w}while(b)}function $1(i,c,b){if(c=CSS.escape(c)!==c?"r-"+btoa(c).replace(/=/g,""):c,i.style.viewTransitionName=c,b!=null&&(i.style.viewTransitionClass=b),b=getComputedStyle(i),b.display==="inline"){if(c=i.getClientRects(),c.length===1)var w=1;else for(var E=w=0;E<c.length;E++){var N=c[E];0<N.width&&0<N.height&&w++}w===1&&(i=i.style,i.display=c.length===1?"inline-block":"block",i.marginTop="-"+b.paddingTop,i.marginBottom="-"+b.paddingBottom)}}function ew(i,c){i=i.style,c=c.style;var b=c!=null?c.hasOwnProperty("viewTransitionName")?c.viewTransitionName:c.hasOwnProperty("view-transition-name")?c["view-transition-name"]:null:null;i.viewTransitionName=b==null||typeof b==="boolean"?"":(""+b).trim(),b=c!=null?c.hasOwnProperty("viewTransitionClass")?c.viewTransitionClass:c.hasOwnProperty("view-transition-class")?c["view-transition-class"]:null:null,i.viewTransitionClass=b==null||typeof b==="boolean"?"":(""+b).trim(),i.display==="inline-block"&&(c==null?i.display=i.margin="":(b=c.display,i.display=b==null||typeof b==="boolean"?"":b,b=c.margin,b!=null?i.margin=b:(b=c.hasOwnProperty("marginTop")?c.marginTop:c["margin-top"],i.marginTop=b==null||typeof b==="boolean"?"":b,c=c.hasOwnProperty("marginBottom")?c.marginBottom:c["margin-bottom"],i.marginBottom=c==null||typeof c==="boolean"?"":c)))}function tw(i,c,b){return b=b.ownerDocument.defaultView,{rect:i,abs:c.position==="absolute"||c.position==="fixed",clip:c.clipPath!=="none"||c.overflow!=="visible"||c.filter!=="none"||c.mask!=="none"||c.mask!=="none"||c.borderRadius!=="0px",view:0<=i.bottom&&0<=i.right&&i.top<=b.innerHeight&&i.left<=b.innerWidth}}function Ip(i){var c=i.getBoundingClientRect(),b=getComputedStyle(i);return tw(c,b,i)}function YA(i){var c=i.getBoundingClientRect();c=new DOMRect(c.x+20000,c.y+20000,c.width,c.height);var b=getComputedStyle(i);return tw(c,b,i)}function FA(i){return i.documentElement.clientHeight}function QA(i){this.addEventListener("load",i),this.addEventListener("error",i)}function XA(i,c,b,w,E,N,R,D,L){var H=c.nodeType===9?c:c.ownerDocument;try{var U=H.startViewTransition({update:function(){var V=H.defaultView,q=V.navigation&&V.navigation.transition,Y=H.fonts.status;w();var Z=[];if(Y==="loaded"&&(FA(H),H.fonts.status==="loading"&&Z.push(H.fonts.ready)),Y=Z.length,i!==null)for(var ee=i.suspenseyImages,P=0,G=0;G<ee.length;G++){var F=ee[G];if(!F.complete){var te=F.getBoundingClientRect();if(0<te.bottom&&0<te.right&&te.top<V.innerHeight&&te.left<V.innerWidth){if(P+=mw(F),P>Bc){Z.length=Y;break}F=new Promise(QA.bind(F)),Z.push(F)}}}if(0<Z.length)return V=Promise.race([Promise.all(Z),new Promise(function(oe){return setTimeout(oe,500)})]).then(E,E),(q?Promise.allSettled([q.finished,V]):V).then(N,N);if(E(),q)return q.finished.then(N,N);N()},types:b});H.__reactViewTransition=U;var B=[];return U.ready.then(function(){for(var V=H.documentElement.getAnimations({subtree:!0}),q=0;q<V.length;q++){var Y=V[q],Z=Y.effect,ee=Z.pseudoElement;if(ee!=null&&ee.startsWith("::view-transition")){B.push(Y),Y=Z.getKeyframes();for(var P=ee=void 0,G=!0,F=0;F<Y.length;F++){var te=Y[F],oe=te.width;if(ee===void 0)ee=oe;else if(ee!==oe){G=!1;break}if(oe=te.height,P===void 0)P=oe;else if(P!==oe){G=!1;break}delete te.width,delete te.height,te.transform==="none"&&delete te.transform}G&&ee!==void 0&&P!==void 0&&(Z.setKeyframes(Y),G=getComputedStyle(Z.target,Z.pseudoElement),G.width!==ee||G.height!==P)&&(G=Y[0],G.width=ee,G.height=P,G=Y[Y.length-1],G.width=ee,G.height=P,Z.setKeyframes(Y))}}R()},function(V){H.__reactViewTransition===U&&(H.__reactViewTransition=null);try{if(typeof V==="object"&&V!==null)switch(V.name){case"InvalidStateError":if(V.message==="View transition was skipped because document visibility state is hidden."||V.message==="Skipping view transition because document visibility state has become hidden."||V.message==="Skipping view transition because viewport size changed."||V.message==="Transition was aborted because of invalid state")V=null}V!==null&&L(V)}finally{w(),E(),R()}}),U.finished.finally(function(){for(var V=0;V<B.length;V++)B[V].cancel();H.__reactViewTransition===U&&(H.__reactViewTransition=null),D()}),U}catch(V){return w(),E(),R(),null}}function Qi(i,c){this._scope=document.documentElement,this._selector="::view-transition-"+i+"("+c+")"}Qi.prototype.animate=function(i,c){return c=typeof c==="number"?{duration:c}:gt({},c),c.pseudoElement=this._selector,this._scope.animate(i,c)};Qi.prototype.getAnimations=function(){for(var i=this._scope,c=this._selector,b=i.getAnimations({subtree:!0}),w=[],E=0;E<b.length;E++){var N=b[E].effect;N!==null&&N.target===i&&N.pseudoElement===c&&w.push(b[E])}return w};Qi.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function nw(i){return{name:i,group:new Qi("group",i),imagePair:new Qi("image-pair",i),old:new Qi("old",i),new:new Qi("new",i)}}function mr(i){this._fragmentFiber=i,this._observers=this._eventListeners=null}mr.prototype.addEventListener=function(i,c,b){var w=null,E=null;if(b!=null&&typeof b!=="boolean"&&(w=b.signal||null,w!==null&&w.aborted))return;this._eventListeners===null&&(this._eventListeners=[]);var N=this._eventListeners;if(rw(N,i,c,b)===-1){var R=this,D=c;b!=null&&typeof b!=="boolean"&&b.once===!0&&(D=function(L){R.removeEventListener(i,c,b),typeof c==="function"?c.call(this,L):c.handleEvent(L)}),w!==null&&(E=R.removeEventListener.bind(R,i,c,b),w.addEventListener("abort",E,{once:!0}),E=w.removeEventListener.bind(w,"abort",E)),w=wl(b),N.push({type:i,listener:c,optionsOrUseCapture:b,attachedListener:D,cleanup:E}),jn(this._fragmentFiber.child,!1,ZA,i,D,w)}this._eventListeners=N};function ZA(i,c,b,w){return Ft(i).addEventListener(c,b,w),!1}mr.prototype.removeEventListener=function(i,c,b){var w=this._eventListeners;if(w!==null&&(c=rw(w,i,c,b),c!==-1)){var E=w[c];b=E.attachedListener;var N=E.cleanup;E=wl(E.optionsOrUseCapture),jn(this._fragmentFiber.child,!1,KA,i,b,E),w.splice(c,1),N!==null&&N()}};function KA(i,c,b,w){return Ft(i).removeEventListener(c,b,w),!1}function wl(i){return i!=null&&typeof i!=="boolean"&&(i.once===!0||i.signal instanceof AbortSignal)?{capture:i.capture,passive:i.passive}:i}function s0(i){return i==null?"c=0":typeof i==="boolean"?"c="+(i?"1":"0"):"c="+(i.capture?"1":"0")}function rw(i,c,b,w){if(i.length===0)return-1;w=s0(w);for(var E=0;E<i.length;E++){var N=i[E];if(N.type===c&&N.listener===b&&s0(N.optionsOrUseCapture)===w)return E}return-1}mr.prototype.dispatchEvent=function(i){var c=po(this._fragmentFiber);if(c===null)return!0;c=Ft(c);var b=this._eventListeners;if(b!==null&&0<b.length||!i.bubbles){var w=c.nodeType===9?c.createComment(""):document.createTextNode("");if(b)for(var E=0;E<b.length;E++){var N=b[E];w.addEventListener(N.type,N.attachedListener,wl(N.optionsOrUseCapture))}if(c.appendChild(w),i=w.dispatchEvent(i),b)for(E=0;E<b.length;E++)N=b[E],w.removeEventListener(N.type,N.attachedListener,wl(N.optionsOrUseCapture));return c.removeChild(w),i}return c.dispatchEvent(i)};mr.prototype.focus=function(i){jn(this._fragmentFiber.child,!0,aw,i,void 0,void 0)};function aw(i,c){if(i.tag===6)return!1;return i=Ft(i),s3(i,c)}mr.prototype.focusLast=function(i){var c=[];jn(this._fragmentFiber.child,!0,Vh,c,void 0,void 0);for(var b=c.length-1;0<=b&&!aw(c[b],i);b--);};function Vh(i,c){return c.push(i),!1}mr.prototype.blur=function(){var i=po(this._fragmentFiber);i!==null&&(i=Ft(i),i=Ks(i).activeElement,i!==null&&jn(this._fragmentFiber.child,!1,JA,i,void 0,void 0))};function JA(i,c){if(i.tag===6)return!1;return i=Ft(i),i===c||i.contains(c)?(c.blur(),!0):!1}mr.prototype.observeUsing=function(i){this._observers===null&&(this._observers=new Set),this._observers.add(i),jn(this._fragmentFiber.child,!1,WA,i,void 0,void 0)};function WA(i,c){if(i.tag===6)return!1;return i=Ft(i),c.observe(i),!1}mr.prototype.unobserveUsing=function(i){var c=this._observers;if(c!==null&&c.has(i)){c.delete(i),jn(this._fragmentFiber.child,!1,$A,i,void 0,void 0);for(var b=c=0;b<Gr.length;b++){var w=Gr[b];w.fragmentInstance===this&&w.observer===i?i.unobserve(w.instance):Gr[c++]=w}Gr.length=c}};function $A(i,c){if(i.tag===6)return!1;return i=Ft(i),c.unobserve(i),!1}var Gr=[],Dm=!1;function e3(i,c,b){Gr.push({fragmentInstance:i,observer:c,instance:b}),Dm||(Dm=!0,u3(function(){Dm=!1;var w=Gr;Gr=[];for(var E=0;E<w.length;E++){var N=w[E];N.observer.unobserve(N.instance)}}))}mr.prototype.getClientRects=function(){var i=[];return jn(this._fragmentFiber.child,!1,t3,i,void 0,void 0),i};function t3(i,c){if(i.tag===6){i=i.stateNode;var b=i.ownerDocument.createRange();b.selectNodeContents(i),c.push.apply(c,b.getClientRects())}else i=Ft(i),c.push.apply(c,i.getClientRects());return!1}mr.prototype.getRootNode=function(i){var c=po(this._fragmentFiber);return c===null?this:Ft(c).getRootNode(i)};mr.prototype.compareDocumentPosition=function(i){var c=po(this._fragmentFiber);if(c===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var b=[];jn(this._fragmentFiber.child,!1,Vh,b,void 0,void 0);var w=Ft(c);if(b.length===0){if(b=w,jy(this._fragmentFiber)){e:{for(c=this._fragmentFiber.return;c!==null;){if(c.tag===4){c=c.stateNode.containerInfo;break e}if(c.tag===3||c.tag===5||c.tag===27)break;c=c.return}c=null}c!=null&&(b=c)}c=this._fragmentFiber;var E=w=b.compareDocumentPosition(i);return b===i?E=Node.DOCUMENT_POSITION_CONTAINS:w&Node.DOCUMENT_POSITION_CONTAINED_BY&&(b=A0(c)[1],b===null?E=Node.DOCUMENT_POSITION_PRECEDING:(i=Ft(b).compareDocumentPosition(i),E=i===0||i&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),E|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}c=Ft(b[0]),E=Ft(b[b.length-1]);var N=jy(this._fragmentFiber)?c.parentElement:w;if(N==null)return Node.DOCUMENT_POSITION_DISCONNECTED;w=N.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_CONTAINED_BY,N=N.compareDocumentPosition(E)&Node.DOCUMENT_POSITION_CONTAINED_BY;var R=c.compareDocumentPosition(i),D=E.compareDocumentPosition(i),L=R&Node.DOCUMENT_POSITION_CONTAINED_BY||D&Node.DOCUMENT_POSITION_CONTAINED_BY;return D=w&&N&&R&Node.DOCUMENT_POSITION_FOLLOWING&&D&Node.DOCUMENT_POSITION_PRECEDING,c=w&&c===i||N&&E===i||L||D?Node.DOCUMENT_POSITION_CONTAINED_BY:!w&&c===i||!N&&E===i?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:R,c&Node.DOCUMENT_POSITION_DISCONNECTED||c&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||n3(c,this._fragmentFiber,b[0],b[b.length-1],i)?c:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function n3(i,c,b,w,E){var N=Fi(E);if(i&Node.DOCUMENT_POSITION_CONTAINED_BY){if(b=!!N)e:{for(;N!==null;){if(N.tag===7&&(N===c||N.alternate===c)){b=!0;break e}N=N.return}b=!1}return b}if(i&Node.DOCUMENT_POSITION_CONTAINS){if(N===null)return N=E.ownerDocument,E===N||E===N.documentElement||E===N.body;e:{N=c;for(c=po(c);N!==null;){if(!(N.tag!==5&&N.tag!==3&&N.tag!==27||N!==c&&N.alternate!==c)){N=!0;break e}N=N.return}N=!1}return N}return i&Node.DOCUMENT_POSITION_PRECEDING?((c=!!N)&&!(c=N===b)&&(c=Um(b,N,Gy),c===null?c=!1:(jn(c,!0,RT,N,b),N=Yo,Yo=null,c=N!==null)),c):i&Node.DOCUMENT_POSITION_FOLLOWING?((c=!!N)&&!(c=N===w)&&(c=Um(w,N,Gy),c===null?c=!1:(jn(c,!0,MT,N,w),N=Yo,Hm=Yo=null,c=N!==null)),c):!1}function u0(i,c){var b=i.ownerDocument.createRange();b.selectNodeContents(i),i=b.getBoundingClientRect(),window.scrollTo(window.scrollX+i.left,c?window.scrollY+i.top:window.scrollY+i.bottom-window.innerHeight)}mr.prototype.scrollIntoView=function(i){if(typeof i==="object")throw Error(le(566));var c=[];jn(this._fragmentFiber.child,!1,Vh,c,void 0,void 0);var b=i!==!1;if(c.length===0){var w=A0(this._fragmentFiber);if(w=b?w[1]||w[0]||po(this._fragmentFiber):w[0]||w[1],w===null)return;if(w.tag===6){i=Ft(w),u0(i,b);return}if(w=Ft(w),w.nodeType!==9){if(w.nodeType===11){b="host"in w?w.host:null,b!==null&&b.scrollIntoView(i);return}w.scrollIntoView(i)}}for(w=b?c.length-1:0;w!==(b?-1:c.length);){var E=c[w];E.tag===6?(E=Ft(E),u0(E,b)):Ft(E).scrollIntoView(i),w+=b?-1:1}};function r3(i,c){return i=Ft(i),iw(i,c),!1}function iw(i,c){i.reactFragments==null&&(i.reactFragments=new Set),i.reactFragments.add(c)}function ow(i,c){var b=c._eventListeners;if(b!==null)for(var w=0;w<b.length;w++){var E=b[w];i.addEventListener(E.type,E.attachedListener,wl(E.optionsOrUseCapture))}i.nodeType!==3&&(b=c._observers,b!==null&&b.forEach(function(N){for(var R=0,D=0;D<Gr.length;D++){var L=Gr[D];if(L.fragmentInstance!==c||L.observer!==N||L.instance!==i)Gr[R++]=L}Gr.length=R,N.observe(i)}),iw(i,c))}function a3(i,c){var b=c._eventListeners;if(b!==null)for(var w=0;w<b.length;w++){var E=b[w];i.removeEventListener(E.type,E.attachedListener,wl(E.optionsOrUseCapture))}i.nodeType!==3&&(b=c._observers,b!==null&&b.forEach(function(N){typeof N.rootMargin==="string"?e3(c,N,i):N.unobserve(i)}),i.reactFragments!=null&&i.reactFragments.delete(c))}function jp(i){var c=i.firstChild;c&&c.nodeType===10&&(c=c.nextSibling);for(;c;){var b=c;switch(c=c.nextSibling,b.nodeName){case"HTML":case"HEAD":case"BODY":jp(b),bf(b);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(b.rel.toLowerCase()==="stylesheet")continue}i.removeChild(b)}}function i3(i,c,b,w){for(;i.nodeType===1;){var E=b;if(i.nodeName.toLowerCase()!==c.toLowerCase()){if(!w&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(!w)if(c==="input"&&i.type==="hidden"){var N=E.name==null?null:""+E.name;if(E.type==="hidden"&&i.getAttribute("name")===N)return i}else return i;else if(!i[iu])switch(c){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(N=i.getAttribute("rel"),N==="stylesheet"&&i.hasAttribute("data-precedence"))break;else if(N!==E.rel||i.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||i.getAttribute("title")!==(E.title==null?null:E.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(N=i.getAttribute("src"),(N!==(E.src==null?null:E.src)||i.getAttribute("type")!==(E.type==null?null:E.type)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&N&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}if(i=Er(i.nextSibling),i===null)break}return null}function o3(i,c,b){if(c==="")return null;for(;i.nodeType!==3;){if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!b)return null;if(i=Er(i.nextSibling),i===null)return null}return i}function lw(i,c){for(;i.nodeType!==8;){if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c)return null;if(i=Er(i.nextSibling),i===null)return null}return i}function Gp(i){return i.data==="$?"||i.data==="$~"}function qh(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function l3(i,c){var b=i.ownerDocument;if(i.data==="$~")i._reactRetry=c;else if(i.data!=="$?"||b.readyState!=="loading")c();else{var w=function(){c(),b.removeEventListener("DOMContentLoaded",w)};b.addEventListener("DOMContentLoaded",w),i._reactRetry=w}}function Er(i){for(;i!=null;i=i.nextSibling){var c=i.nodeType;if(c===1||c===3)break;if(c===8){if(c=i.data,c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"||c==="F!"||c==="F")break;if(c==="/$"||c==="/&")return null}}return i}var Yp=null;function c0(i){i=i.nextSibling;for(var c=0;i;){if(i.nodeType===8){var b=i.data;if(b==="/$"||b==="/&"){if(c===0)return Er(i.nextSibling);c--}else b!=="$"&&b!=="$!"&&b!=="$?"&&b!=="$~"&&b!=="&"||c++}i=i.nextSibling}return null}function f0(i){i=i.previousSibling;for(var c=0;i;){if(i.nodeType===8){var b=i.data;if(b==="$"||b==="$!"||b==="$?"||b==="$~"||b==="&"){if(c===0)return i;c--}else b!=="/$"&&b!=="/&"||c++}i=i.previousSibling}return null}function s3(i,c){function b(){w=!0}if(i.ownerDocument.activeElement===i)return!0;var w=!1;try{i.ownerDocument.addEventListener("focus",b,!0),(i.focus||HTMLElement.prototype.focus).call(i,c)}finally{i.ownerDocument.removeEventListener("focus",b,!0)}return w}function u3(i){i0(function(){i0(function(c){return i(c)})})}function sw(i,c,b){switch(c=Ks(b),i){case"html":if(i=c.documentElement,!i)throw Error(le(452));return i;case"head":if(i=c.head,!i)throw Error(le(453));return i;case"body":if(i=c.body,!i)throw Error(le(454));return i;default:throw Error(le(451))}}function uw(i,c,b){for(var w in b){var E=b[w];b.hasOwnProperty(w)&&E!=null&&ft(i,c,w,null,BA,E)}b.dangerouslySetInnerHTML!=null&&(i.textContent=""),i.onclick===aa&&(i.onclick=null),bf(i)}function Lm(i){for(var c=i.attributes;c.length;)i.removeAttributeNode(c[0]);bf(i)}var Tr=new Map,d0=new Set;function Js(i){if(typeof i.getRootNode==="function"){var c=i.getRootNode();if(c.nodeType===9||c.nodeType===11)return c}return i.nodeType===9?i:i.ownerDocument}var _a=it.d;it.d={f:c3,r:f3,D:d3,C:m3,L:p3,m:h3,X:v3,S:g3,M:y3};function c3(){var i=_a.f(),c=_f();return i||c}function f3(i){var c=Cl(i);c!==null&&c.tag===5&&c.type==="form"?Zx(c):_a.r(i)}var Ml=typeof document>"u"?null:document;function cw(i,c,b){var w=Ml;if(w&&typeof c==="string"&&c){var E=xr(c);E='link[rel="'+i+'"][href="'+E+'"]',typeof b==="string"&&(E+='[crossorigin="'+b+'"]'),d0.has(E)||(d0.add(E),i={rel:i,crossOrigin:b,href:c},w.querySelector(E)===null&&(c=w.createElement("link"),ln(c,"link",i),Kt(c),w.head.appendChild(c)))}}function d3(i){_a.D(i),cw("dns-prefetch",i,null)}function m3(i,c){_a.C(i,c),cw("preconnect",i,c)}function p3(i,c,b){_a.L(i,c,b);var w=Ml;if(w&&i&&c){var E='link[rel="preload"][as="'+xr(c)+'"]';c==="image"?b&&b.imageSrcSet?(E+='[imagesrcset="'+xr(b.imageSrcSet)+'"]',typeof b.imageSizes==="string"&&(E+='[imagesizes="'+xr(b.imageSizes)+'"]')):E+='[href="'+xr(i)+'"]':E+='[href="'+xr(i)+'"]';var N=E;switch(c){case"style":N=kl(i);break;case"script":N=zl(i)}if(!(Tr.has(N)||(i=gt({rel:"preload",href:c==="image"&&b&&b.imageSrcSet?void 0:i,as:c},b),Tr.set(N,i),w.querySelector(E)!==null||c==="style"&&w.querySelector(fu(N))||c==="script"&&w.querySelector(du(N))))){var R=w.createElement("link");ln(R,"link",i),c==="style"&&(R[Yc]=!0,R.onload=R.onerror=function(){P0(R)}),Kt(R),w.head.appendChild(R)}}}function h3(i,c){_a.m(i,c);var b=Ml;if(b&&i){var w=c&&typeof c.as==="string"?c.as:"script",E='link[rel="modulepreload"][as="'+xr(w)+'"][href="'+xr(i)+'"]',N=E;switch(w){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":N=zl(i)}if(!Tr.has(N)&&(i=gt({rel:"modulepreload",href:i},c),Tr.set(N,i),b.querySelector(E)===null)){switch(w){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(b.querySelector(du(N)))return}w=b.createElement("link"),ln(w,"link",i),Kt(w),b.head.appendChild(w)}}}function g3(i,c,b){_a.S(i,c,b);var w=Ml;if(w&&i){var E=rl(w).hoistableStyles,N=kl(i);c=c||"default";var R=E.get(N);if(!R){var D={loading:0,preload:null};if(R=w.querySelector(fu(N)))D.loading=5;else{i=gt({rel:"stylesheet",href:i,"data-precedence":c},b),(b=Tr.get(N))&&Ph(i,b);var L=R=w.createElement("link");Kt(L),ln(L,"link",i),L._p=new Promise(function(H,U){L.onload=H,L.onerror=U}),L.addEventListener("load",function(){D.loading|=1}),L.addEventListener("error",function(){D.loading|=2}),D.loading|=4,Hc(R,c,w)}R={type:"stylesheet",instance:R,count:1,state:D},E.set(N,R)}}}function v3(i,c){_a.X(i,c);var b=Ml;if(b&&i){var w=rl(b).hoistableScripts,E=zl(i),N=w.get(E);N||(N=b.querySelector(du(E)),N||(i=gt({src:i,async:!0},c),(c=Tr.get(E))&&Ih(i,c),N=b.createElement("script"),Kt(N),ln(N,"link",i),b.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},w.set(E,N))}}function y3(i,c){_a.M(i,c);var b=Ml;if(b&&i){var w=rl(b).hoistableScripts,E=zl(i),N=w.get(E);N||(N=b.querySelector(du(E)),N||(i=gt({src:i,async:!0,type:"module"},c),(c=Tr.get(E))&&Ih(i,c),N=b.createElement("script"),Kt(N),ln(N,"link",i),b.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},w.set(E,N))}}function m0(i,c,b,w){var E=(E=Wa.current)?Js(E):null;if(!E)throw Error(le(446));switch(i){case"meta":case"title":return null;case"style":return typeof b.precedence==="string"&&typeof b.href==="string"?(b=kl(b.href),c=rl(E).hoistableStyles,w=c.get(b),w||(w={type:"style",instance:null,count:0,state:null},c.set(b,w)),w):{type:"void",instance:null,count:0,state:null};case"link":if(b.rel==="stylesheet"&&typeof b.href==="string"&&typeof b.precedence==="string"){i=kl(b.href);var N=rl(E).hoistableStyles,R=N.get(i);if(R||(E=E.ownerDocument||E,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},N.set(i,R),(N=E.querySelector(fu(i)))?N._p||(R.instance=N,R.state.loading=5):(N=Tr.get(i),N||(N={rel:"preload",as:"style",href:b.href,crossOrigin:b.crossOrigin,integrity:b.integrity,media:b.media,hrefLang:b.hrefLang,referrerPolicy:b.referrerPolicy},Tr.set(i,N)),b3(E,i,N,R.state))),c&&w===null)throw Error(le(528,""));return R}if(c&&w!==null)throw Error(le(529,""));return null;case"script":return c=b.async,b=b.src,typeof b==="string"&&c&&typeof c!=="function"&&typeof c!=="symbol"?(b=zl(b),c=rl(E).hoistableScripts,w=c.get(b),w||(w={type:"script",instance:null,count:0,state:null},c.set(b,w)),w):{type:"void",instance:null,count:0,state:null};default:throw Error(le(444,i))}}function kl(i){return'href="'+xr(i)+'"'}function fu(i){return'link[rel="stylesheet"]['+i+"]"}function fw(i){return gt({},i,{"data-precedence":i.precedence,precedence:null})}function b3(i,c,b,w){if(c=i.querySelector('link[rel="preload"][as="style"]['+c+"]")){if(c[Yc]!==!0){w.loading=1;return}}else c=i.createElement("link"),c[Yc]=!0,c.onload=c.onerror=P0.bind(null,c),ln(c,"link",b),Kt(c),i.head.appendChild(c);w.preload=c,c.addEventListener("load",function(){return w.loading|=1}),c.addEventListener("error",function(){return w.loading|=2})}function zl(i){return'[src="'+xr(i)+'"]'}function du(i){return"script[async]"+i}function p0(i,c,b){if(c.count++,c.instance===null)switch(c.type){case"style":var w=i.querySelector('style[data-href~="'+xr(b.href)+'"]');if(w)return c.instance=w,Kt(w),w;var E=gt({},b,{"data-href":b.href,"data-precedence":b.precedence,href:null,precedence:null});return w=(i.ownerDocument||i).createElement("style"),Kt(w),ln(w,"style",E),Hc(w,b.precedence,i),c.instance=w;case"stylesheet":E=kl(b.href);var N=i.querySelector(fu(E));if(N)return c.state.loading|=4,c.instance=N,Kt(N),N;w=fw(b),(E=Tr.get(E))&&Ph(w,E),N=(i.ownerDocument||i).createElement("link"),Kt(N);var R=N;return R._p=new Promise(function(D,L){R.onload=D,R.onerror=L}),ln(N,"link",w),c.state.loading|=4,Hc(N,b.precedence,i),c.instance=N;case"script":if(N=zl(b.src),E=i.querySelector(du(N)))return c.instance=E,Kt(E),E;if(w=b,E=Tr.get(N))w=gt({},b),Ih(w,E);return i=i.ownerDocument||i,E=i.createElement("script"),Kt(E),ln(E,"link",w),i.head.appendChild(E),c.instance=E;case"void":return null;default:throw Error(le(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(w=c.instance,c.state.loading|=4,Hc(w,b.precedence,i));return c.instance}function Hc(i,c,b){for(var w=b.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=w.length?w[w.length-1]:null,N=E,R=0;R<w.length;R++){var D=w[R];if(D.dataset.precedence===c)N=D;else if(N!==E)break}N?N.parentNode.insertBefore(i,N.nextSibling):(c=b.nodeType===9?b.head:b,c.insertBefore(i,c.firstChild))}function Ph(i,c){i.crossOrigin==null&&(i.crossOrigin=c.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=c.referrerPolicy),i.title==null&&(i.title=c.title)}function Ih(i,c){i.crossOrigin==null&&(i.crossOrigin=c.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=c.referrerPolicy),i.integrity==null&&(i.integrity=c.integrity)}var Uc=null;function h0(i,c,b){if(Uc===null){var w=new Map,E=Uc=new Map;E.set(b,w)}else E=Uc,w=E.get(b),w||(w=new Map,E.set(b,w));if(w.has(i))return w;w.set(i,null),b=b.getElementsByTagName(i);for(E=0;E<b.length;E++){var N=b[E];if(!(N[iu]||N[nn]||i==="link"&&N.getAttribute("rel")==="stylesheet")&&N.namespaceURI!=="http://www.w3.org/2000/svg"){var R=N.getAttribute(c)||"";R=i+R;var D=w.get(R);D?D.push(N):w.set(R,[N])}}return w}function Fp(i,c,b){i=i.ownerDocument||i,i.head.insertBefore(b,c==="title"?i.querySelector("head > title"):null)}function x3(i,c,b){if(b===1||c.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof c.precedence!=="string"||typeof c.href!=="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!=="string"||typeof c.href!=="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return i=c.disabled,typeof c.precedence==="string"&&i==null;default:return!0}case"script":if(c.async&&typeof c.async!=="function"&&typeof c.async!=="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src==="string")return!0}return!1}function g0(i,c){return i==="img"&&c.src!=null&&c.src!==""&&c.onLoad==null&&c.loading!=="lazy"}function dw(i){return i.type==="stylesheet"&&(i.state.loading&3)===0?!1:!0}function mw(i){return(i.width||100)*(i.height||100)*(typeof devicePixelRatio==="number"?devicePixelRatio:1)*0.25}function v0(i,c){typeof c.decode==="function"&&(i.imgCount++,c.complete||(i.imgBytes+=mw(c),i.suspenseyImages.push(c)),i=S3.bind(i),c.decode().then(i,i))}function w3(i,c,b,w){if(b.type==="stylesheet"&&(typeof w.media!=="string"||matchMedia(w.media).matches!==!1)&&(b.state.loading&4)===0){if(b.instance===null){var E=kl(w.href),N=c.querySelector(fu(E));if(N){c=N._p,c!==null&&typeof c==="object"&&typeof c.then==="function"&&(i.count++,i=Ws.bind(i),c.then(i,i)),b.state.loading|=4,b.instance=N,Kt(N);return}N=c.ownerDocument||c,w=fw(w),(E=Tr.get(E))&&Ph(w,E),N=N.createElement("link"),Kt(N);var R=N;R._p=new Promise(function(D,L){R.onload=D,R.onerror=L}),ln(N,"link",w),b.instance=N}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(b,c),(c=b.state.preload)&&(b.state.loading&3)===0&&(i.count++,b=Ws.bind(i),c.addEventListener("load",b),c.addEventListener("error",b))}}var Bc=0;function k3(i,c){return i.stylesheets&&i.count===0&&Vc(i,i.stylesheets),0<i.count||0<i.imgCount?function(b){var w=setTimeout(function(){if(i.stylesheets&&Vc(i,i.stylesheets),i.unsuspend){var N=i.unsuspend;i.unsuspend=null,N()}},60000+c);0<i.imgBytes&&Bc===0&&(Bc=62500*qA());var E=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Vc(i,i.stylesheets),i.unsuspend)){var N=i.unsuspend;i.unsuspend=null,N()}},(i.imgBytes>Bc?50:800)+c);return i.unsuspend=b,function(){i.unsuspend=null,clearTimeout(w),clearTimeout(E)}}:null}function pw(i){if(i.count===0&&(i.imgCount===0||!i.waitingForImages)){if(i.stylesheets)Vc(i,i.stylesheets);else if(i.unsuspend){var c=i.unsuspend;i.unsuspend=null,c()}}}function Ws(){this.count--,pw(this)}function S3(){this.imgCount--,pw(this)}var hf=null;function Vc(i,c){i.stylesheets=null,i.unsuspend!==null&&(i.count++,hf=new Map,c.forEach(E3,i),hf=null,Ws.call(i))}function E3(i,c){if(!(c.state.loading&4)){var b=hf.get(i);if(b)var w=b.get(null);else{b=new Map,hf.set(i,b);for(var E=i.querySelectorAll("link[data-precedence],style[data-precedence]"),N=0;N<E.length;N++){var R=E[N];if(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")b.set(R.dataset.precedence,R),w=R}w&&b.set(null,w)}E=c.instance,R=E.getAttribute("data-precedence"),N=b.get(R)||w,N===w&&b.set(null,E),b.set(R,E),this.count++,w=Ws.bind(this),E.addEventListener("load",w),E.addEventListener("error",w),N?N.parentNode.insertBefore(E,N.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(E,i.firstChild)),c.state.loading|=4}}var Sl={$$typeof:ra,Provider:null,Consumer:null,_currentValue:Xi,_currentValue2:Xi,_threadCount:0};function T3(i,c,b,w,E,N,R,D,L){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=cm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cm(0),this.hiddenUpdates=cm(null),this.identifierPrefix=w,this.onUncaughtError=E,this.onCaughtError=N,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.transitionTypes=null,this.incompleteTransitions=new Map}function C3(i,c,b,w,E,N,R,D,L,H,U,B){return i=new T3(i,c,b,R,L,H,U,B,D),c=1,N===!0&&(c|=24),N=Bn(3,null,null,c),i.current=N,N.stateNode=i,c=uh(),c.refCount++,i.pooledCache=c,c.refCount++,N.memoizedState={element:w,isDehydrated:b,cache:c},dh(N),i}function A3(i){if(!i)return $o;return i=$o,i}function hw(i,c,b,w,E,N){E=A3(E),w.context===null?w.context=E:w.pendingContext=E,w=no(c),w.payload={element:b},N=N===void 0?null:N,N!==null&&(w.callback=N),b=ro(i,w,c),b!==null&&(Pn(b,i,c),Ms(b,i,c))}function y0(i,c){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var b=i.retryLane;i.retryLane=b!==0&&b<c?b:c}}function jh(i,c){y0(i,c),(i=i.alternate)&&y0(i,c)}function gw(i){if(i.tag===13||i.tag===31){var c=vo(i,67108864);c!==null&&Pn(c,i,67108864),jh(i,67108864)}}function b0(i){if(i.tag===13||i.tag===31){var c=Sr();c=V0(c);var b=vo(i,c);b!==null&&Pn(b,i,c),jh(i,c)}}var El=!0;function N3(i,c,b,w){var E=Ee.T;Ee.T=null;var N=it.p;try{it.p=2,Gh(i,c,b,w)}finally{it.p=N,Ee.T=E}}function R3(i,c,b,w){var E=Ee.T;Ee.T=null;var N=it.p;try{it.p=8,Gh(i,c,b,w)}finally{it.p=N,Ee.T=E}}function Gh(i,c,b,w){if(El){var E=Qp(w);if(E===null)Om(i,c,w,gf,b),x0(i,w);else if(z3(E,i,c,b,w))w.stopPropagation();else if(x0(i,w),c&4&&-1<M3.indexOf(i)){for(;E!==null;){var N=Cl(E);if(N!==null)switch(N.tag){case 3:if(N=N.stateNode,N.current.memoizedState.isDehydrated){var R=qi(N.pendingLanes);if(R!==0){var D=N;D.pendingLanes|=2;for(D.entangledLanes|=2;R;){var L=1<<31-fr(R);D.entanglements[1]|=L,R&=~L}Oa(N),(at&6)===0&&(cf=ur()+500,cu(0,!1))}}break;case 31:case 13:D=vo(N,2),D!==null&&Pn(D,N,2),_f(),jh(N,2)}if(N=Qp(w),N===null&&Om(i,c,w,gf,b),N===E)break;E=N}E!==null&&w.stopPropagation()}else Om(i,c,w,null,b)}}function Qp(i){return i=eh(i),Yh(i)}var gf=null;function Yh(i){if(gf=null,i=Fi(i),i!==null){var c=tu(i);if(c===null)i=null;else{var b=c.tag;if(b===13){if(i=E0(c),i!==null)return i;i=null}else if(b===31){if(i=T0(c),i!==null)return i;i=null}else if(b===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;i=null}else c!==i&&(i=null)}}return gf=i,null}function vw(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(VT()){case z0:return 2;case O0:return 8;case Gc:case qT:return 32;case _0:return 268435456;default:return 32}default:return 32}}var Xp=!1,ri=null,ai=null,ii=null,$s=new Map,eu=new Map,Ya=[],M3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function x0(i,c){switch(i){case"focusin":case"focusout":ri=null;break;case"dragenter":case"dragleave":ai=null;break;case"mouseover":case"mouseout":ii=null;break;case"pointerover":case"pointerout":$s.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":eu.delete(c.pointerId)}}function gs(i,c,b,w,E,N){if(i===null||i.nativeEvent!==N)return i={blockedOn:c,domEventName:b,eventSystemFlags:w,nativeEvent:N,targetContainers:[E]},c!==null&&(c=Cl(c),c!==null&&gw(c)),i;return i.eventSystemFlags|=w,c=i.targetContainers,E!==null&&c.indexOf(E)===-1&&c.push(E),i}function z3(i,c,b,w,E){switch(c){case"focusin":return ri=gs(ri,i,c,b,w,E),!0;case"dragenter":return ai=gs(ai,i,c,b,w,E),!0;case"mouseover":return ii=gs(ii,i,c,b,w,E),!0;case"pointerover":var N=E.pointerId;return $s.set(N,gs($s.get(N)||null,i,c,b,w,E)),!0;case"gotpointercapture":return N=E.pointerId,eu.set(N,gs(eu.get(N)||null,i,c,b,w,E)),!0}return!1}function yw(i){var c=Fi(i.target);if(c!==null){var b=tu(c);if(b!==null){if(c=b.tag,c===13){if(c=E0(b),c!==null){i.blockedOn=c,Xy(i.priority,function(){b0(b)});return}}else if(c===31){if(c=T0(b),c!==null){i.blockedOn=c,Xy(i.priority,function(){b0(b)});return}}else if(c===3&&b.stateNode.current.memoizedState.isDehydrated){i.blockedOn=b.tag===3?b.stateNode.containerInfo:null;return}}}i.blockedOn=null}function qc(i){if(i.blockedOn!==null)return!1;for(var c=i.targetContainers;0<c.length;){var b=Qp(i.nativeEvent);if(b===null){b=i.nativeEvent;var w=new b.constructor(b.type,b);Zm=w,b.target.dispatchEvent(w),Zm=null}else return c=Cl(b),c!==null&&gw(c),i.blockedOn=b,!1;c.shift()}return!0}function w0(i,c,b){qc(i)&&b.delete(c)}function O3(){Xp=!1,ri!==null&&qc(ri)&&(ri=null),ai!==null&&qc(ai)&&(ai=null),ii!==null&&qc(ii)&&(ii=null),$s.forEach(w0),eu.forEach(w0)}function bc(i,c){i.blockedOn===c&&(i.blockedOn=null,Xp||(Xp=!0,Ui(Li,O3)))}var xc=null;function k0(i){xc!==i&&(xc=i,Ui(Li,function(){xc===i&&(xc=null);for(var c=0;c<i.length;c+=3){var b=i[c],w=i[c+1],E=i[c+2];if(typeof w!=="function")if(Yh(w||b)===null)continue;else break;var N=Cl(b);N!==null&&(i.splice(c,3),c-=3,fp(N,{pending:!0,data:E,method:b.method,action:w},w,E))}}))}function Tl(i){function c(L){return bc(L,i)}ri!==null&&bc(ri,i),ai!==null&&bc(ai,i),ii!==null&&bc(ii,i),$s.forEach(c),eu.forEach(c);for(var b=0;b<Ya.length;b++){var w=Ya[b];w.blockedOn===i&&(w.blockedOn=null)}for(;0<Ya.length&&(b=Ya[0],b.blockedOn===null);)yw(b),b.blockedOn===null&&Ya.shift();if(b=(i.ownerDocument||i).$$reactFormReplay,b!=null)for(w=0;w<b.length;w+=3){var E=b[w],N=b[w+1],R=E[Gn]||null;if(typeof N==="function")R||k0(b);else if(R){var D=null;if(N&&N.hasAttribute("formAction")){if(E=N,R=N[Gn]||null)D=R.formAction;else if(Yh(E)!==null)continue}else D=R.action;typeof D==="function"?b[w+1]=D:(b.splice(w,3),w-=3),k0(b)}}}function _3(){function i(N){N.canIntercept&&N.info==="react-transition"&&N.intercept({handler:function(){return new Promise(function(R){return E=R})},focusReset:"manual",scroll:"manual"})}function c(){E!==null&&(E(),E=null),w||setTimeout(b,20)}function b(){if(!w&&!navigation.transition){var N=navigation.currentEntry;N&&N.url!=null&&navigation.navigate(N.url,{state:N.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var w=!1,E=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",c),navigation.addEventListener("navigateerror",c),setTimeout(b,100),function(){w=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",c),navigation.removeEventListener("navigateerror",c),E!==null&&(E(),E=null)}}}function Fh(i){this._internalRoot=i}Qh.prototype.render=Fh.prototype.render=function(i){var c=this._internalRoot;if(c===null)throw Error(le(409));var b=c.current,w=Sr();hw(b,w,i,c,null,null)};Qh.prototype.unmount=Fh.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var c=i.containerInfo;hw(i.current,2,null,i,null,null),_f(),c[au]=null}};function Qh(i){this._internalRoot=i}Qh.prototype.unstable_scheduleHydration=function(i){if(i){var c=q0();i={blockedOn:null,target:i,priority:c};for(var b=0;b<Ya.length&&c!==0&&c<Ya[b].priority;b++);Ya.splice(b,0,i),b===0&&yw(i)}};var S0=Qd;if(S0!=="19.3.0")throw Error(le(527,S0,"19.3.0"));it.findDOMNode=function(i){var c=i._reactInternals;if(c===void 0){if(typeof i.render==="function")throw Error(le(188));throw i=Object.keys(i).join(","),Error(le(268,i))}return i=NT(c),i=i!==null?C0(i):null,i=i===null?null:i.stateNode,i};var D3={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Ee,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(Go=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Go.isDisabled&&Go.supportsFiber)try{nu=Go.inject(D3),cr=Go}catch(i){}}var Go;var Xh=function(i,c){if(!AT(i))throw Error(le(299));var b=!1,w="",E=lA,N=sA,R=uA;return c!==null&&c!==void 0&&(c.unstable_strictMode===!0&&(b=!0),c.identifierPrefix!==void 0&&(w=c.identifierPrefix),c.onUncaughtError!==void 0&&(E=c.onUncaughtError),c.onCaughtError!==void 0&&(N=c.onCaughtError),c.onRecoverableError!==void 0&&(R=c.onRecoverableError)),c=C3(i,1,!1,null,null,b,w,null,E,N,R,_3),i[au]=c.current,X1(i),new Fh(c)};bw();var U3=/dynamically imported module|importing a module script|loading chunk|loading css chunk|ChunkLoadError/i;function Zh(i){let c=i instanceof Error?`${i.name} ${i.message}`:String(i);return U3.test(c)}function B3(i,c){let b=Number(i);return!i||Number.isNaN(b)||c-b>60000}function xw(i=sessionStorage,c=Date.now(),b=()=>location.reload()){try{if(!B3(i.getItem("rt-chunk-reload"),c))return!1;i.setItem("rt-chunk-reload",String(c))}catch{return!1}return b(),!0}function ww(i){try{let c=new Intl.Locale(i.replaceAll("_","-"));if(c.language!=="zh")return!1;if(c.script!==void 0&&c.script!=="Hant")return!1;return c.region==="TW"||c.script==="Hant"&&!c.region}catch{return!1}}function Sw(){if(typeof document>"u")return{};let i=document.querySelector('meta[name="roundtable-console-presentation"]')?.content;try{return i?JSON.parse(i)??{}:{}}catch{return{}}}var Kh=Sw();function Ew(i){Kh=i}var Tw,kw;async function Hf(i){if(kw===i)return;Tw=i!==void 0&&ww(i)?(await (p("y3jb20wc"),import("./chunk-zh-tw-y3jb20wc.js"))).ZH_TW:void 0,kw=i}var Cw=()=>Sw().locale;function t(i,c={}){return(Kh.messages?.[i]??Tw?.[i]??i).replace(/\{(\w+)\}/g,(b,w)=>String(c[w]??b))}function K(i,c,b){return t(i===1?c:b,{count:i})}function Uf(){return Kh.locale??"en-GB"}var u=(i)=>i;var V3=Symbol.for("react.transitional.element"),q3=Symbol.for("react.fragment");function Aw(i,c,b){var w=null;if(b!==void 0&&(w=""+b),c.key!==void 0&&(w=""+c.key),"key"in c){b={};for(var E in c)E!=="key"&&(b[E]=c[E])}else b=c;return c=b.ref,{$$typeof:V3,type:i,key:w,ref:c!==void 0?c:null,props:b}}var g=q3,e=Aw,n=Aw;var P3={rooms:"M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-4.7A8 8 0 1 1 21 12Z",schedules:"M12 7v5l3 2M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z",settings:"M4 7h9M17 7h3M4 17h3M11 17h9M15 4v6M9 14v6",more:"M3.9 12a1.1 1.1 0 1 0 2.2 0a1.1 1.1 0 1 0-2.2 0ZM10.9 12a1.1 1.1 0 1 0 2.2 0a1.1 1.1 0 1 0-2.2 0ZM17.9 12a1.1 1.1 0 1 0 2.2 0a1.1 1.1 0 1 0-2.2 0Z",back:"M15 5l-7 7 7 7",send:"M12 19V5M5 12l7-7 7 7",stop:"M7 7h10v10H7z",attach:"M20 11.5l-8.2 8.2a5 5 0 0 1-7-7l8.5-8.5a3.3 3.3 0 0 1 4.7 4.7l-8.6 8.6a1.7 1.7 0 0 1-2.4-2.4l7.9-7.9",menu:"M12 5h.01M12 12h.01M12 19h.01",sun:"M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z",moon:"M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5Z",system:"M4 5h16v11H4zM9 20h6M12 16v4",bolt:"M13 3L5 13.5h6L10 21l8-10.5h-6L13 3Z",timer:"M10 2h4M12 8v5l3 2M20 13a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z",check:"M5 12.5l4.5 4.5L19 7.5",close:"M6 6l12 12M18 6L6 18",copy:"M9 9h10v11H9zM5 15V4h10",search:"M11 18a7 7 0 1 1 0-14 7 7 0 0 1 0 14Zm5-2l5 5",overview:"M4 4h7v7H4zM13 4h7v4h-7zM13 11h7v9h-7zM4 14h7v6H4z",conversations:"M4 5h16v11H9l-5 4V5Z",notes:"M6 3h9l4 4v14H6zM14 3v5h5M9 13h7M9 17h5",skills:"M10 4a2 2 0 1 1 4 0v2h4v4h-2a2 2 0 1 0 0 4h2v4h-4v-2a2 2 0 1 0-4 0v2H6v-4h2a2 2 0 1 0 0-4H6V6h4V4Z",connectors:"M9 3v5M15 3v5M6 8h12v4a6 6 0 0 1-12 0V8ZM12 18v3",trash:"M5 7h14M10 7V4h4v3M7 7l1 13h8l1-13",plus:"M12 5v14M5 12h14",archive:"M4 5h16v4H4zM6 9v10h12V9M10 13h4",refresh:"M20 11a8 8 0 0 0-14.5-3.5L4 9M4 4v5h5M4 13a8 8 0 0 0 14.5 3.5L20 15M20 20v-5h-5",download:"M12 4v11M7 11l5 5 5-5M5 20h14",file:"M6 3h9l4 4v14H6zM14 3v5h5",logout:"M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10",profile:"M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM4 21a8 8 0 0 1 16 0",reset:"M4 4v6h6M4.5 10A8 8 0 1 1 6 16",chevron:"M9 6l6 6-6 6",lock:"M7 11V8a5 5 0 0 1 10 0v3M5 11h14v10H5zM12 15v2",sparkle:"M12 3l2 5.5L19.5 10 14 12l-2 5.5L10 12l-5.5-2L10 8.5 12 3Z",shield:"M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6l8-3Z",table:"M3 12a9 4.5 0 1 0 18 0 9 4.5 0 1 0-18 0ZM6.5 14.5L5 19M17.5 14.5L19 19M12 16.5V20",list:"M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01",bell:"M6 16V11a6 6 0 1 1 12 0v5l1.5 2h-15L6 16ZM10 21h4","bell-off":"M6 16V11a6 6 0 0 1 .8-3M9.5 5.2A6 6 0 0 1 18 11v5l1.5 2H8M10 21h4M4 4l16 16"},Nw={},mi=(i)=>{Object.assign(Nw,i)};function s({name:i,size:c=20,...b}){return e("svg",{viewBox:"0 0 24 24",width:c,height:c,fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",...b,children:e("path",{d:P3[i]??Nw[i]})})}function I3(i){let c=Zh(i.error);return e("div",{className:"page",children:n("div",{className:"crash",role:"alert",children:[e("span",{className:"crash-icon",children:e(s,{name:"shield",size:22})}),e("h2",{children:t("Something went wrong")}),e("p",{children:c?t("The app was updated while this page was open, so part of it could not load."):t("This page stopped working. Reloading usually fixes it.")}),e("button",{type:"button",onClick:i.onReload,children:t("Reload")})]})})}class mu extends Yd{state={};static getDerivedStateFromProps(i,c){return i.resetKey===c.key?null:{error:void 0,key:i.resetKey}}static getDerivedStateFromError(i){return{error:{value:i}}}componentDidCatch(i,c){if(Zh(i)&&xw())return;console.error("the page failed",i,c.componentStack)}render(){let{error:i}=this.state;if(!i)return this.props.children;return e(I3,{error:i.value,onReload:()=>location.reload()})}}var Pe=()=>typeof matchMedia==="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;function Rw(i){if(Pe()||typeof document.startViewTransition!=="function"||document.documentElement.hasAttribute("data-dive")){i();return}let c=document.startViewTransition(()=>im(i));c.ready.catch(()=>{return}),c.updateCallbackDone.catch(()=>{return}),c.finished.catch(()=>{return})}var Cr,zw="";function Ow(i,c=""){Cr=i,zw=c}var Lr=()=>Cr;function Jh(){try{let i=Cr?window.location.pathname.slice(Cr.length).replace(/^\//,""):window.location.hash.replace(/^#\/?/,"").split("?")[0]??"",[c="",b]=i.split("/").map(decodeURIComponent);return{pane:c,...b?{key:b}:{}}}catch{return{pane:""}}}var gi=()=>Jh(),_w=(i)=>`${Cr?`${Cr}/`:"./"}${i}`,x=(i,c)=>`${Cr?`${Cr}/`:"#/"}${i===zw&&Cr&&!c?"":i}${c?`/${encodeURIComponent(c)}`:""}`,pu,Wh;function Oi(i){pu=i;let c=window.location.href;window.history.pushState({rtGuard:!0},"",c);let b=(E)=>{if(E.state?.rtGuard)return;E.stopImmediatePropagation(),window.history.pushState({rtGuard:!0},"",c),i(()=>{w(),window.history.go(-2)})};window.addEventListener("popstate",b,!0);let w=()=>{if(pu!==i)return;if(pu=void 0,Wh=void 0,window.removeEventListener("popstate",b,!0),window.history.state?.rtGuard)window.history.replaceState(null,"",window.location.href)};return Wh=w,w}function Dw(i,c,b){if(b&&i==="room")return"room";if(i==="workspace")return"workspace";return`${i}/${c??""}`}function I(i,c,b={}){let w=x(i,c),E=b.replace===!0;if(pu){pu(()=>{Wh?.(),Mw(w,E)});return}Mw(w,E)}function Mw(i,c){if(c){window.history.replaceState(null,"",i),window.dispatchEvent(new PopStateEvent("popstate"));return}if(Cr)window.history.pushState(null,"",i),window.dispatchEvent(new PopStateEvent("popstate"));else window.location.hash=i.slice(1)}function Zi(){let[i,c]=r(Jh),b=a(i);return b.current=i,o(()=>{let w=()=>{let N=Jh();if(N.pane===b.current.pane&&N.key===b.current.key)return;if(N.pane==="workspace"&&b.current.pane==="workspace")c(N);else Rw(()=>c(N));window.scrollTo(0,0)};window.addEventListener("hashchange",w),window.addEventListener("popstate",w);let E=(N)=>{if(!Cr||N.button!==0||N.metaKey||N.ctrlKey||N.shiftKey||N.altKey||N.defaultPrevented)return;let R=N.target instanceof Element?N.target.closest("a"):null;if(!R||R.target||R.hasAttribute("download"))return;let D=new URL(R.href);if(D.origin!==window.location.origin||!D.pathname.startsWith(`${Cr}/`))return;N.preventDefault(),window.history.pushState(null,"",D),window.dispatchEvent(new PopStateEvent("popstate"))};return document.addEventListener("click",E),()=>{window.removeEventListener("hashchange",w),window.removeEventListener("popstate",w),document.removeEventListener("click",E)}},[]),i}function $h(){return e("span",{className:"brand-mark",children:e("img",{src:_w("icons/192.png"),alt:"",width:28,height:28})})}var Lw=4401,Hw=4403;var eg=32000;var bo=(i)=>i.kind==="system"&&i.text==="Conversation started over",yi="Temp knights archived: ";var j3=6000,G3=20,fn=50,Y3=30,F3={yolo:!1,longRunning:!1},Vf={text:"",tools:[]};function Vw(){return{connection:"connecting",rooms:{},order:[],pins:[],folders:[],presence:{},listed:!1,cards:{},cardOrder:[],focus:void 0,revision:0,connects:0,refusal:void 0,forbidden:!1,gate:void 0}}var Q3=(i)=>({key:i,messages:[],live:[],more:!1,progress:Vf,typing:!1,stoppable:!1,mode:F3,autoApproved:0,pending:[]});function Yn(i,c,b){let w=i.rooms[c]??Q3(c);return{...i,rooms:{...i.rooms,[c]:b(w)}}}function tg(i,c){let b=i.at(-1)?.id??Number.NEGATIVE_INFINITY;if(c.every((N)=>{let R=N.id>b;return b=N.id,R}))return c.length===0?i:[...i,...c];let w=new Set(i.map((N)=>N.id)),E=c.filter((N)=>{if(w.has(N.id))return!1;return w.add(N.id),!0});if(E.length===0)return i;return[...i,...E].sort((N,R)=>N.id-R.id)}function qw(i){if(i.messages.length<=fn)return i;return{...i,messages:i.messages.slice(-fn),more:!0}}function Bf(i){let c=new Set,b=new Map;for(let w of i.cardOrder){let E=i.cards[w];if(!E?.outcome)continue;let N=i.rooms[E.room],R=N?.messages[0];if(R){if(N.more&&jw(E,R))c.add(w)}else b.set(E.room,[...b.get(E.room)??[],w])}for(let w of b.values())for(let E of w.slice(0,w.length-Y3))c.add(E);if(c.size===0)return i;return{...i,cardOrder:i.cardOrder.filter((w)=>!c.has(w)),cards:Object.fromEntries(Object.entries(i.cards).filter(([w])=>!c.has(w)))}}function X3(i,c,b){if(b.length===0)return i;let w=i.rooms[c]?.messages??[],E={...i.cards},N=[...i.cardOrder];for(let R of b){let D=R.frame.id,L=Date.parse(R.frame.at??""),H=E[D];if(E[D]={room:R.room,frame:R.frame,after:H?H.after:w.findLast((B)=>Date.parse(B.at)<=L)?.id??0,outcome:R.outcome,...R.note?{note:R.note}:{},...R.by?{by:R.by}:{},...R.answer?{answer:R.answer}:{},closedAt:R.closedAt},H)continue;let U=N.findIndex((B)=>{let V=Date.parse(E[B]?.frame.at??"");return!Number.isNaN(L)&&V>L});if(U<0)N.push(D);else N.splice(U,0,D)}return{...i,cards:E,cardOrder:N}}function Z3(i,c){if(i.focus!==c.room)return i;return Yn(i,c.room,(b)=>{let{event:w}=c,{text:E,tools:N}=b.progress;switch(w.type){case"text":return{...b,progress:{text:(E+w.delta).slice(-j3),tools:N}};case"tool_start":return{...b,progress:{text:E,tools:[...N.filter((R)=>R.id!==w.id),{id:w.id,tool:w.tool,...w.preview?{preview:w.preview}:{},status:"running"}].slice(-G3)}};case"tool_end":return{...b,progress:{text:E,tools:N.map((R)=>R.id===w.id?{...R,status:w.refused?"refused":w.ok?"ok":"failed",...w.refused?{refused:w.refused}:{}}:R)}}}})}function Uw(i,c,b,w){let E=Yn(i,c,(N)=>{let R=w?N.pending.filter((H)=>H.id!==w):N.pending;if(b.id===0&&b.live){let H=N.live.some((U)=>U.live===b.live)?N.live.map((U)=>U.live===b.live?b:U):[...N.live,b];return{...N,live:H,pending:R}}let D=b.kind==="agent"&&!b.intercom,L={...N,messages:tg(N.messages,[b]),live:D?N.live.filter((H)=>H.agent!==b.agent):N.live,progress:D?Vf:N.progress,pending:R};return i.focus===c?L:qw(L)});return i.focus===c?E:Bf(E)}function Bw(i,c){let b=i.rooms[c];if(!b)return i;let w=b.messages.findLastIndex(bo),E=b.messages[w];if(!E||w===0&&!b.more)return i;let N=(R)=>{let D=i.cards[R];return D?.room===c&&!!D.outcome&&D.after<E.id};return{...i,rooms:{...i.rooms,[c]:{...b,messages:b.messages.slice(w),more:!1}},cardOrder:i.cardOrder.filter((R)=>!N(R)),cards:Object.fromEntries(Object.entries(i.cards).filter(([R])=>!N(R)))}}function K3(i,c){return Yn(i,c.room,(b)=>{if(c.older)return{...b,messages:tg(b.messages,c.messages),more:c.more};let w=c.messages[0],E=b.messages.at(-1);if(w&&E&&w.id>E.id)return{...b,messages:[...c.messages],more:c.more};return{...b,messages:tg(b.messages,c.messages),more:w&&E?b.more||c.more:c.more}})}function Pw(i,c){let{phase:b,agent:w,...E}=i;return{...E,typing:c.typing,...c.typing&&c.phase?{phase:c.phase}:{},...c.typing&&c.agent?{agent:c.agent}:{}}}function J3(i,c,b){let w={...i,listed:!0,pins:b.pins??i.pins,folders:b.folders??i.folders};for(let E of c)w=Yn(w,E.key,(N)=>{let{round:R,...D}=Pw(N,E),L=E.round??(R?.state==="ended"?R:void 0);return{...D,...L?{round:L}:{},view:E,mode:E.mode,stoppable:E.stoppable}});return{...w,order:c.map((E)=>E.key)}}function Iw(i,c){switch(c.type){case"connection":return{...i,connection:c.status};case"forbidden":return{...i,forbidden:!0,connection:"closed"};case"ready":{let b=new Set(i.cardOrder.filter((w)=>!i.cards[w]?.outcome));return{...i,connection:"open",principal:{id:c.principal,name:c.name},limits:c.uploads,connects:i.connects+1,gate:c.gate??[],cardOrder:i.cardOrder.filter((w)=>!b.has(w)),cards:Object.fromEntries(Object.entries(i.cards).filter(([w])=>!b.has(w)))}}case"accepted":return Uw(i,c.room,c.message,c.id);case"refused":{let{id:b,prompt:w}=c;if(b===void 0){let E=w===void 0?void 0:i.cards[w];return{...i,refusal:c.code,...w!==void 0&&E?{cards:{...i.cards,[w]:{...E,refused:(E.refused??0)+1}}}:{}}}return{...i,rooms:Object.fromEntries(Object.entries(i.rooms).map(([E,N])=>[E,N.pending.some((R)=>R.id===b)?{...N,pending:N.pending.map((R)=>R.id===b?{...R,failed:c.code}:R)}:N]))}}case"message":case"host_message":{let b=Uw(i,c.room,c.message);return bo(c.message)?Bw(b,c.room):b}case"host_removed":return Yn(i,c.room,(b)=>({...b,messages:b.messages.filter((w)=>w.id!==c.id)}));case"edited":case"host_edited":return Yn(i,c.room,(b)=>({...b,messages:b.messages.map((w)=>w.id===c.message.id?c.message:w)}));case"progress":return Z3(i,c);case"round":return Yn(i,c.room,(b)=>({...b,round:c.round}));case"activity":return Yn(i,c.room,(b)=>{let w={...Pw(b,c),stoppable:c.stoppable,...c.at===void 0?{}:{activityAt:c.at}};if(c.typing){let{outcome:E,outcomeAt:N,...R}=w;return R}return{...w,progress:Vf,live:[],...c.outcome?{outcome:c.outcome,...c.at===void 0?{}:{outcomeAt:c.at}}:{}}});case"prompt":{let b=i.cards[c.prompt.id],w=b?b.after:i.rooms[c.room]?.messages.at(-1)?.id??0;return{...Yn(i,c.room,(E)=>E),cards:{...i.cards,[c.prompt.id]:{room:c.room,frame:c.prompt,after:w}},cardOrder:b?i.cardOrder:[...i.cardOrder,c.prompt.id]}}case"prompt_closed":{let b=i.cards[c.prompt];if(!b)return i;return Bf({...i,cards:{...i.cards,[c.prompt]:{...b,outcome:c.outcome,...c.note?{note:c.note}:{},...c.by?{by:c.by}:{},...c.answer?{answer:c.answer}:{},...c.closedAt?{closedAt:c.closedAt}:{}}}})}case"mode":return Yn(i,c.room,(b)=>({...b,mode:{yolo:c.yolo,longRunning:c.longRunning,...c.inheritedFrom===void 0?{}:{inheritedFrom:c.inheritedFrom}}}));case"auto_approved":return Yn(i,c.room,(b)=>({...b,autoApproved:b.autoApproved+1}));case"changed":return{...i,revision:i.revision+1};case"presence":return{...i,presence:c.agents};case"rooms_loaded":return J3(i,c.rooms,c);case"layout_loaded":return{...i,pins:c.pins,folders:c.folders};case"room_viewed":return Yn(i,c.view.key,(b)=>({...b,view:c.view,mode:c.view.mode}));case"threads_dismissed":return{...i,order:i.order.filter((b)=>!c.rooms.includes(b))};case"room_muted":{let b=i.rooms[c.room]?.view;if(!b||b.muted===!0===c.muted)return i;let{muted:w,...E}=b;return Yn(i,c.room,(N)=>({...N,view:c.muted?{...E,muted:!0}:E}))}case"history_loaded":return Bf(X3(Bw(K3(i,c),c.room),c.room,c.cards??[]));case"focused":{let b=i.focus,w={...i.rooms};if(b&&b!==c.room&&w[b])w[b]=qw(w[b]);if(c.room&&w[c.room]){let{outcome:E,outcomeAt:N,...R}=w[c.room];w[c.room]={...R,progress:Vf}}return Bf({...i,focus:c.room,rooms:w})}case"queued":return Yn(i,c.room,(b)=>({...b,pending:[...b.pending.filter((w)=>w.id!==c.id),{id:c.id,room:c.room,text:c.text,files:c.files,...c.mode?{mode:c.mode}:{}}]}));case"pending_dropped":return{...i,rooms:Object.fromEntries(Object.entries(i.rooms).map(([b,w])=>[b,{...w,pending:w.pending.filter((E)=>E.id!==c.id)}]))};case"refusal_dismissed":return{...i,refusal:void 0};case"gate":return{...i,gate:c.steps};case"host_card":case"room_changed":case"list_changed":case"page_changed":case"notice":case"notice_resolved":case"badge":case"read":return i}}function Je(i,c){return i.cardOrder.filter((b)=>{let w=i.cards[b];return w?.room===c&&!w.outcome}).length}function ng(i,c){let b=i.rooms[c],w=b?.messages.at(-1),E=b?.view?.last;return w&&E?w.id>=E.id?w:E:w??E}function Re(i,c){let b=Date.parse(ng(i,c)?.at??"");return Number.isNaN(b)?Number.NEGATIVE_INFINITY:b}function jw(i,c){let b=Date.parse(i.frame.at??""),w=Date.parse(c.at);if(!Number.isNaN(b)&&!Number.isNaN(w))return b<w;return i.after<c.id}function qf(i,c){let b=i.rooms[c];if(!b)return[];let w=i.cardOrder.map((L)=>({id:L,card:i.cards[L]})).filter((L)=>L.card?.room===c),E=[],N=0,R=(L)=>{while(N<w.length){let H=w[N];if(!H||L&&!jw(H.card,L))break;E.push({kind:"card",card:H.card,id:H.id}),N+=1}},D=b.messages;R(D[0]),D.forEach((L,H)=>{E.push({kind:"message",message:L}),R(D[H+1])}),R(void 0);for(let L of b.pending)E.push({kind:"pending",pending:L});for(let L of b.live)E.push({kind:"live",message:L});return E}var hn=(i)=>`api/files/${encodeURIComponent(i.id)}`;class Gw{#e=Vw();#a=new Set;getState=()=>this.#e;subscribe=(i)=>(this.#a.add(i),()=>this.#a.delete(i));dispatch=(i)=>{let c=Iw(this.#e,i);if(c===this.#e)return;this.#e=c;for(let b of this.#a)b()}}var O=new Gw,W3=(i,c)=>{if(Object.is(i,c))return!0;if(typeof i!=="object"||typeof c!=="object"||i===null||c===null)return!1;let b=Object.entries(i),w=Object.entries(c);return b.length===w.length&&b.every(([E,N])=>Object.is(N,c[E]))};function l(i,c=""){let b=a(void 0),w=()=>{let E=O.getState(),N=b.current;if(N&&N.state===E&&N.inputs===c)return N.value;let R=i(E),D=N&&W3(N.value,R)?N.value:R;return b.current={state:E,inputs:c,value:D},D};return We(O.subscribe,w,w)}var rg=()=>(p("wajep0yr"),import("./chunk-host-state-wajep0yr.js")),je=()=>(p("pc9r24e3"),import("./chunk-host-ui-pc9r24e3.js")),$3=/^(host_|read$|message$|room_changed$|list_changed$|page_changed$)/;function Yw(i){if($3.test(i.type))rg().then((c)=>c.onFrame(i),()=>{return})}var eN=15000,tN=120,Vr=[],ir={},nN=(i)=>typeof i==="object"&&i!==null&&typeof i.type==="string";class Fw{#e;#a;#r;#t=0;#n;#i=!1;#o=!1;#f;#l;#s;#d;constructor(i,c=document.baseURI){let b=new URL("api/socket",c);b.protocol=b.protocol==="https:"?"wss:":"ws:",this.#e=b,this.#a=i}start(){this.#i=!1,this.#m(),document.addEventListener("visibilitychange",this.#p),addEventListener("online",this.#u),addEventListener("pageshow",this.#u)}stop(){this.#i=!0,clearTimeout(this.#n),document.removeEventListener("visibilitychange",this.#p),removeEventListener("online",this.#u),removeEventListener("pageshow",this.#u),this.#r?.close(1000,"page closed")}get open(){return this.#r?.readyState===WebSocket.OPEN}send(i){if(!this.open)return!1;return this.#r?.send(JSON.stringify(i)),!0}focus(i){this.#f=i,O.dispatch({type:"focused",room:i}),this.send({type:"focus",...i?{room:i}:{}})}say(i,c,b=[],w){let E=crypto.randomUUID();if(O.dispatch({type:"queued",id:E,room:i,text:c,files:b,mode:w}),!this.send({type:"send",id:E,room:i,text:c,...b.length?{uploads:b.map((R)=>R.id)}:{},...w?{mode:w}:{}}))O.dispatch({type:"refused",id:E,code:"not_accepted"})}retry(i){O.dispatch({type:"pending_dropped",id:i.id}),this.say(i.room,i.text,i.files,i.mode)}#p=()=>{if(this.send({type:"visibility",visible:document.visibilityState==="visible"}),document.visibilityState==="visible")this.#u()};#u=()=>{if(this.#i||this.#r)return;clearTimeout(this.#n),this.#m()};#m(){if(this.#i||this.#r)return;O.dispatch({type:"connection",status:this.#t===0?"connecting":"reconnecting"});let i=!1,c=new WebSocket(this.#e,[this.#a]);this.#r=c,c.onopen=()=>{i=!0,this.#t=0,this.#o=!1},c.onmessage=(b)=>this.#h(String(b.data)),c.onclose=(b)=>{if(this.#r=void 0,this.#c(),this.#i)return;if(b.code===Hw){O.dispatch({type:"forbidden"});return}if(b.code===Lw)this.#o=!0;if(!i&&this.#o){location.reload();return}this.#t+=1,O.dispatch({type:"connection",status:"reconnecting"});let w=this.#o?0:Math.min(eN,500*2**Math.min(this.#t,6));this.#n=setTimeout(()=>this.#m(),w*(0.75+Math.random()*0.5))}}#h(i){let c;try{c=JSON.parse(i)}catch{return}if(!nN(c))return;if(c.type==="progress"&&c.event.type==="text"){this.#g(c.room,c.event.delta);return}if(this.#c(),O.dispatch(c.type==="activity"?{...c,at:Date.now()}:c),Yw(c),c.type.startsWith("notice")||c.type==="badge")ir.take?ir.take(c):Vr.push(c);if(c.type==="ready")this.send({type:"hello",visible:document.visibilityState==="visible",...this.#f?{focus:this.#f}:{}})}#g(i,c){if(this.#l&&this.#l.room!==i)this.#c();if(this.#l={room:i,delta:(this.#l?.delta??"")+c},this.#s===void 0)this.#s=requestAnimationFrame(()=>this.#c());this.#d??=setTimeout(()=>this.#c(),tN)}#c(){if(this.#s!==void 0)cancelAnimationFrame(this.#s);clearTimeout(this.#d),this.#s=void 0,this.#d=void 0;let i=this.#l;if(this.#l=void 0,i)O.dispatch({type:"progress",room:i.room,event:{type:"text",delta:i.delta}})}}var Ol;function Qw(i,c=(b)=>new Fw(b)){if(!Ol)Ol=c(i),Ol.start();return Ol}function we(){if(!Ol)throw Error("the owner app is not connected");return Ol}function Xw(i){return Qw(i.protocol,i.make),i.children}function v(){return n("div",{className:"stack","aria-busy":"true",children:[e("div",{className:"skeleton"}),e("div",{className:"skeleton"})]})}function m({message:i}){return e("p",{className:"failure",role:"alert",children:i})}function k({children:i}){return e("p",{className:"empty",children:i})}function T({children:i,tone:c="plain"}){return e("span",{className:`badge badge-${c}`,children:i})}function M(){let i=new Set,c=(b)=>(i.add(b),()=>i.delete(b));return{subscribe:c,emit(){for(let b of i)b()},use:(b)=>We(c,b,b)}}var hu=[],rN=1,{emit:Zw,use:aN}=M(),iN=5200;function f(i,c="info",b){let w=rN++;hu=[...hu.slice(-2),{id:w,text:i,tone:c,...b?{action:b}:{}}],Zw(),setTimeout(()=>Pf(w),iN)}function Pf(i){hu=hu.filter((c)=>c.id!==i),Zw()}var Kw=()=>aN(()=>hu);function oN(i){switch(i){case"bad_frame":return t("The app could not read that. Reload the page and try again.");case"unknown_room":return t("That room is gone.");case"read_only":return t("This room is read-only.");case"forbidden":return t("Only an owner can do that.");case"unknown_prompt":return t("That card is no longer open.");case"unknown_upload":return t("A file is no longer available. Attach it again.");case"empty":return t("Write a message or attach a file.");case"too_long":return t("That message is too long.");case"not_accepted":return t("The message was not taken. Check the connection and try again.");case"gated":return t("Finish setting up first.")}}function Jw(){let i=Kw(),c=l((b)=>b.refusal);return o(()=>{if(!c)return;f(oN(c),"danger"),O.dispatch({type:"refusal_dismissed"})},[c]),e("div",{className:"toaster",role:"status","aria-live":"polite",children:i.map((b)=>n("div",{className:"toast","data-tone":b.tone,children:[e("span",{children:b.text}),b.action?e("button",{type:"button",className:"secondary toast-action",onClick:()=>{Pf(b.id),b.action?.run()},children:b.action.label}):null,e("button",{type:"button",className:"icon-button","aria-label":t("Dismiss"),onClick:()=>Pf(b.id),children:e(s,{name:"close",size:16})})]},b.id))})}var{emit:lN,use:sN}=M(),ag=0;function cs(i){if(i===ag)return;ag=i,lN()}var Ww=()=>sN(()=>ag),Dn=(i)=>i.cardOrder.filter((c)=>!i.cards[c]?.outcome).length,$w=(i,c)=>c>0?`(${c}) ${i}`:i;function gu(){let i=l(Dn);if(!i)return null;let c=K(i,"{count} card waiting","{count} cards waiting");return n("button",{type:"button",className:"waiting-button","aria-label":c,title:c,onClick:()=>(p("cdyz7r1g"),import("./chunk-waiting-cdyz7r1g.js")).then((b)=>b.openWaiting()),children:[e(s,{name:"shield",size:16}),i]})}var If=new Map;function ek(i){let c=JSON.stringify(i),b=If.get(c);if(b)return b;if(If.size>=200)If.clear();return If.set(c,i),i}var pn=(i,c)=>i.suggestCharacter({name:c.name,displayName:c.displayName??c.name,prompt:""});function ig(i,c,b){try{return ek(i.parseCharacter(c))}catch(w){return console.warn(`the character of ${b.name} was refused; drawing a suggestion`,w),ek(pn(i,b))}}var tk,jf,{emit:uN,use:cN}=M();function Gf(){return jf??=(p("c6tphrjr"),import("./chunk-index-c6tphrjr.js")).then((i)=>(tk=i,uN(),i)),jf.catch(()=>{jf=void 0}),jf}function Ln(){return cN(()=>tk)}var nk="api/";class de extends Error{field;status;body;constructor(i,c,b,w){super(i);this.name="ApiFailure",this.field=c,this.status=b,this.body=w}}var fN=(i)=>i===void 0?void 0:t(i),vu="push/subscriptions",rk=(i)=>{if(i)vu=i};async function h(i,c={}){let b;try{b=await fetch(i.startsWith("/")?i:`${nk}${i}`,{...c,headers:{...c.body&&!(c.body instanceof FormData)?{"content-type":"application/json"}:{},...c.headers}})}catch{throw Error(t("The console is unreachable. Reload the page to sign in again."))}let w=await b.json().catch(()=>{return});if(b.status===403&&typeof w?.reason!=="string")throw Error(t("The request was refused. Reload the page to sign in again."));if(!b.ok)throw new de(fN(w?.error)??t("The console answered {status}.",{status:b.status}),w?.field,b.status,w);return w}var y={config:()=>h("config"),skills:()=>h("skills"),skill:(i)=>h(`skills/${encodeURIComponent(i)}`),connectors:()=>h("connectors"),startOver:(i)=>h(`channels/${encodeURIComponent(i)}/start-over`,{method:"POST"}),deleteConversation:(i)=>h(`channels/${encodeURIComponent(i)}/delete`,{method:"POST"}),overview:()=>h("overview"),conversations:()=>h("conversations"),transcript:(i,c)=>h(`conversations/${encodeURIComponent(i)}${c?`?archive=${encodeURIComponent(c)}`:""}`),principals:()=>h("principals"),notes:(i,c)=>h(`notes${Yf(c,i?{q:i}:{})}`),addNote:(i,c)=>h(`notes${Yf(c)}`,{method:"POST",body:JSON.stringify(i)}),updateNote:(i,c,b)=>h(`notes/${i}${Yf(b)}`,{method:"PATCH",body:JSON.stringify(c)}),deleteNote:(i,c)=>h(`notes/${i}${Yf(c)}`,{method:"DELETE"}),session:()=>h("session"),rooms:async()=>{let[i,c]=await Promise.all([h("rooms"),ak()]);return{...i,rooms:i.rooms.map((b)=>b.character===void 0?b:c===void 0?dN(b):{...b,character:ig(c,b.character,{name:b.name,displayName:b.displayName})})}},messages:async(i,c,b=50)=>{let w=await h(`rooms/${encodeURIComponent(i)}/messages?limit=${b}${c===void 0?"":`&before=${c}`}`);if(w.reads||w.cursor!==void 0)rg().then((E)=>E.keepReads(i,w.reads,w.cursor),()=>{return});return w},setMode:(i,c)=>h(`rooms/${encodeURIComponent(i)}/mode`,{method:"PUT",body:JSON.stringify(c)}),setMute:(i,c)=>h(`rooms/${encodeURIComponent(i)}/mute`,{method:"PUT",body:JSON.stringify({muted:c})}),room:(i)=>h(`rooms/${encodeURIComponent(i)}`),dismissThread:(i)=>h(`rooms/${encodeURIComponent(i)}/dismiss`,{method:"POST"}),dismissThreads:(i)=>h(`rooms/${encodeURIComponent(i)}/dismiss-threads`,{method:"POST"}),undismissThread:(i)=>h(`rooms/${encodeURIComponent(i)}/undismiss`,{method:"POST"}),undismissThreads:(i,c)=>h(`rooms/${encodeURIComponent(i)}/undismiss-threads`,{method:"POST",body:JSON.stringify({threads:c})}),startRoomOver:(i)=>h(`rooms/${encodeURIComponent(i)}/start-over`,{method:"POST"}),upload:(i)=>{let c=new FormData;return c.set("file",i),h("uploads",{method:"POST",body:c})},discardUpload:(i)=>h(`uploads/${encodeURIComponent(i)}`,{method:"DELETE"}),pushKey:()=>h("push/key"),pushDevices:()=>h(vu),addPushDevice:(i)=>h(vu,{method:"POST",body:JSON.stringify(i)}),removePushEndpoint:(i)=>h(vu,{method:"DELETE",body:JSON.stringify({endpoint:i})}),removePushDevice:(i)=>h(`${vu}/${encodeURIComponent(i)}`,{method:"DELETE"}),schedules:()=>h("schedules"),cancelSchedule:(i)=>h(`schedules/${i}`,{method:"DELETE"}),models:()=>h("models"),agent:(i)=>og(h(`agents/${encodeURIComponent(i)}`)),updateAgent:(i,c)=>og(h(`agents/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify(c)})),setCharacter:(i,c)=>og(h(`agents/${encodeURIComponent(i)}/character`,{method:"PUT",body:JSON.stringify({character:c})}))};async function ak(){try{return await Gf()}catch(i){console.warn("the character kit failed to load",i);return}}function dN(i){let{character:c,...b}=i;return b}async function og(i){let[c,b]=await Promise.all([i,ak()]);if(b===void 0)return c;return{...c,character:ig(b,c.character,{name:c.name,displayName:c.displayName})}}function Yf(i,c={}){let b=new URLSearchParams({...i===void 0?{}:{principal:i},...c}).toString();return b?`?${b}`:""}var ik=`${nk}events`,d=(i)=>i instanceof Error?i.message:String(i);var rt=dn(void 0);function _(){let i=Se(rt);if(!i)throw Error("no console config");return i}var mN=30000,lg=dn({version:0,now:Date.now(),connected:!1}),J=()=>Se(lg);function ok(){let[i,c]=r({version:0,now:Date.now(),connected:!1});return o(()=>{let b=(N)=>c((R)=>({version:R.version+1,now:Date.now(),connected:N??R.connected})),w=new EventSource(ik);w.addEventListener("open",()=>b(!0)),w.addEventListener("error",()=>c((N)=>({...N,connected:!1}))),w.addEventListener("changed",()=>b());let E=setInterval(()=>b(),mN);return()=>{w.close(),clearInterval(E)}},[]),i}var lk={modern:{light:"#f5f6f8",dark:"#0f1115"},camelot:{light:"#f4ead5",dark:"#0f1726"}};var sk="rt-theme",pN=["system","light","dark"],{emit:hN,use:gN}=M(),Da=vN();function vN(){try{let i=localStorage.getItem(sk);return pN.find((c)=>c===i)??"system"}catch{return"system"}}var uk=()=>typeof matchMedia==="function"?matchMedia("(prefers-color-scheme: dark)"):void 0;function ck(){if(Da!=="system")return Da;return uk()?.matches?"dark":"light"}var yN=(i,c)=>lk[i][c];function sg(){requestAnimationFrame(()=>{let i=document.documentElement.dataset.look==="camelot"?"camelot":"modern",c=[...document.querySelectorAll('meta[name="theme-color"]')];if(c.length===0){let b=document.createElement("meta");b.name="theme-color",document.head.append(b),c=[b]}for(let b of c){let w=b.getAttribute("media")??"",E=w.includes("dark")?"dark":"light";b.content=yN(i,Da==="system"&&w?E:ck())}})}function yu(){let i=document.documentElement;if(Da==="system")delete i.dataset.theme;else i.dataset.theme=Da;sg(),hN()}function fk(){yu(),uk()?.addEventListener("change",()=>{if(Da==="system")yu()})}var bN=()=>typeof matchMedia==="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;function Ff(i,c){if(i===Da)return;Da=i;try{localStorage.setItem(sk,i)}catch{}let b=document.documentElement;if(bN()){yu();return}if(typeof document.startViewTransition==="function"){let w=c?.x??innerWidth/2,E=c?.y??innerHeight/2,N=Math.hypot(Math.max(w,innerWidth-w),Math.max(E,innerHeight-E));b.classList.add("theme-reveal");let R=document.startViewTransition(yu);R.ready.then(()=>b.animate({clipPath:[`circle(0 at ${w}px ${E}px)`,`circle(${N}px at ${w}px ${E}px)`]},{duration:480,easing:"cubic-bezier(0.2, 0.8, 0.2, 1)",pseudoElement:"::view-transition-new(root)"})).catch(()=>{return}),R.updateCallbackDone.catch(()=>{return}),R.finished.catch(()=>{return}).finally(()=>b.classList.remove("theme-reveal"));return}b.classList.add("theme-fade"),yu(),setTimeout(()=>b.classList.remove("theme-fade"),260)}function _l(){return{preference:gN(()=>Da),resolved:ck()}}var ug="rt-look",xN=["modern","camelot"],{emit:wN,use:kN}=M(),fg="modern",Qf=dk(),cg=Qf??fg;function dk(){try{let i=localStorage.getItem(ug);return xN.find((c)=>c===i)}catch{return}}function mk(){cg=Qf??fg,document.documentElement.dataset.look=cg,sg(),wN()}function Xf(i){fg=i==="camelot"?"camelot":"modern",Qf=dk(),mk()}function pk(i){Qf=i;try{if(i)localStorage.setItem(ug,i);else localStorage.removeItem(ug)}catch{}mk()}function st(){return kN(()=>cg)}var SN=(i,c)=>`${i}-${c}`,EN=(i)=>i==="camelot"?"shield":"disc";function zn(){let i=st(),{resolved:c}=_l();return{look:SN(i,c),frame:EN(i),scheme:c}}function Ce(i){return We((b)=>{if(typeof matchMedia!=="function")return()=>{return};let w=matchMedia(i);return w.addEventListener("change",b),()=>w.removeEventListener("change",b)},()=>typeof matchMedia==="function"&&matchMedia(i).matches,()=>!1)}var dg=S(()=>(p("678dgbww"),import("./chunk-account-678dgbww.js"))),mg={profile:dg,notices:dg,onboarding:dg,p:S(()=>je().then((i)=>({default:i.HostPage})))},pg=new Set(["profile","onboarding","settings","notices"]);function hk(i,c){let b=l((D)=>D.revision),w=l((D)=>D.connects),E=a(0),N=a(0),R=a(!1);o(()=>(R.current=i,()=>{R.current=!1}),[i]),o(()=>{if(!i)return;E.current+=1;let D=E.current;y.rooms().then((L)=>{if(!R.current||D<N.current)return;N.current=D,O.dispatch({type:"rooms_loaded",rooms:L.rooms,pins:L.pins,folders:L.folders})},()=>{return})},[i,b,w,c])}var ot=(i)=>i.isComposing||i.keyCode===229;var gk=(i)=>(i.metaKey||i.ctrlKey)&&i.key.toLowerCase()==="k"&&!ot(i);var{emit:TN,use:CN}=M(),AN=/^#[0-9a-f]{6}$/,hg;function vk(i){let c=Array.isArray(i)&&i.length===6&&Array.from(i).every((b)=>typeof b==="string"&&AN.test(b))?i:void 0;if(c===hg)return;hg=c,TN()}var vn=()=>CN(()=>hg);var bu={rooms:"rooms",schedules:"schedules",table:"table",workspace:"file",profile:"profile",overview:"overview",conversations:"conversations",notes:"notes",skills:"skills",connectors:"connectors",settings:"settings",more:"more"};function yk(i){return n("div",{className:"page",children:[e("header",{className:"page-head",children:e("h1",{children:t("More")})}),e("ul",{className:"more-list",children:i.items.map((c)=>e("li",{children:n("a",{className:"menu-item menu-link",href:x(c.pane),children:[e("span",{className:"menu-icon",children:e(s,{name:bu[c.pane]??"list"})}),e("span",{className:"menu-text",children:e("strong",{children:c.label})}),e(s,{name:"chevron",size:16})]})},c.pane))})]})}function NN(i){return`c${i.toLowerCase().replace(/[^a-z0-9]/g,"")}`.slice(0,16)}var RN=new Set(["svg","g","path","circle","ellipse","rect","clipPath"]),MN=/\bhref\s*=|\bstyle\s*=|\bon[a-z]+\s*=|var\(/i;function gg(i){if([...i.matchAll(/<\/?([^\s/>]*)/g)].map((b)=>b[1]??"").every((b)=>RN.has(b))&&!MN.test(i))return i;return console.error("the drawing holds markup the page does not inject"),""}function zN(i,c,b,w){let E={look:c.look,frame:c.frame??"disc",expr:c.expr??i.STATE_EXPRESSION[c.state??"idle"],uid:b,skins:w},N={name:c.name??c.label??"agent"};if(c.spec===void 0)return gg(i.composeSvg(pn(i,N),E));try{return gg(i.composeSvg(c.spec,E))}catch(R){return console.warn(`the character of ${N.name} was refused; drawing a suggestion`,R),gg(i.composeSvg(pn(i,N),E))}}var ON=j(function(c){let b=NN(z()),w=Ln(),E=vn(),{spec:N,look:R,frame:D,state:L,expr:H,name:U,label:B}=c,V=C(()=>w?zN(w,{spec:N,look:R,frame:D,state:L,expr:H,name:U,label:B},b,E):"",[w,N,R,D,L,H,U,B,b,E]),q=c.size;return e("span",{className:c.live===!1?"av-host static":"av-host","data-state":L??"idle",...B?{role:"img","aria-label":B}:{"aria-hidden":!0},...q?{style:{width:q,height:q}}:{},dangerouslySetInnerHTML:{__html:V}})}),fe=j(function(c){let{look:b,frame:w}=zn();return e(ON,{...c,look:b,frame:w})}),Zf=j(function(c){let b=c.members.slice(0,3);return e("span",{className:"av-stack","aria-hidden":"true",style:{width:c.size*(1+(b.length-1)*0.45),height:c.size},children:b.map((w,E)=>e("span",{className:"av-stack-item",style:{left:E*c.size*0.45,zIndex:b.length-E},children:e(fe,{spec:w.spec,name:w.name,size:c.size,live:!1})},w.name))})});var _N=4000,DN=u("(long text attached)"),LN="message.txt";function bk(i,c=80){let w=(i.split(`
12
- `).find((E)=>E.trim()!=="")??"").trim().replace(/\s+/g," ");return w.length>c?`${w.slice(0,c-1)}…`:w}function xk(i){for(let c=1;;c+=1){let b=`pasted-text-${c}.txt`;if(!i.includes(b))return b}}var HN=(i,c)=>new File([c],i,{type:"text/plain"});function wk(i,c,b){if(i.files.length>0)return{kind:"files",files:[...i.files]};if(i.text.length<_N)return{kind:"insert"};return b&&c>=b.perMessage?{kind:"full"}:{kind:"text",text:i.text}}function kk(i,c,b){let w={accepted:[],tooLarge:[],full:[]};for(let E of i)if(b&&E.size>b.maxBytes)w.tooLarge.push(E);else if(b&&c+w.accepted.length>=b.perMessage)w.full.push(E);else w.accepted.push(E);return w}function Sk(i,c,b){let w=i.trim();if(w.length<=eg)return{ok:!0,text:w};if(b&&c>=b.perMessage)return{ok:!1,reason:"full"};return{ok:!0,text:DN,overflow:w}}function Ek(i,c){return vg(i,c).length<=eg}function vg(i,c){if(i==="")return c;return`${i}${i.endsWith(`
13
- `)?"":`
14
- `}${c}`}var yg=(i)=>i.filter((c)=>!c.failed).length;async function Tk(i,c,b){let w=[],E=[],N=async(R,D)=>{let L=await b.upload(HN(R,D));E.push(L.id),w.push(L)};try{for(let R of i){if(R.failed)continue;if(R.upload)w.push(R.upload);else if(R.text!==void 0)await N(R.name,R.text)}if(c!==void 0)await N(LN,c)}catch(R){throw await Promise.all(E.map((D)=>b.discard(D).catch(()=>{return}))),R}return w}var bg=new Map,xg=(i)=>bg.get(i)??"";function wg(i,c){if(c==="")bg.delete(i);else bg.set(i,c)}var Kf=new Map;function Ck(i,c){let b=Kf.get(i)??new Set;return b.add(c),Kf.set(i,b),()=>{if(b.delete(c),b.size===0)Kf.delete(i)}}var UN=(i)=>`${i.split(`
15
- `).map((c)=>c?`> ${c}`:">").join(`
16
- `)}
17
-
18
- `;function es(i,c){let b=xg(i),w=b===""||b.endsWith(`
19
-
20
- `)?"":b.endsWith(`
21
- `)?`
22
- `:`
23
-
24
- `,E=`${b}${w}${UN(c)}`;wg(i,E);for(let N of Kf.get(i)??[])N(E)}function xe(i,c,b){if(!i)return"—";let w=Math.floor((c-Date.parse(i))/60000);if(w<1)return t("just now");if(w<60)return t("{count} min ago",{count:w});let E=Math.floor(w/60);if(E<24)return t("{count} h ago",{count:E});let N=Math.floor(E/24);return N<=7?t("{count} d ago",{count:N}):re(i,b)}function re(i,c){return new Intl.DateTimeFormat(Uf(),{timeZone:c,day:"numeric",month:"short",hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date(i))}function Ne(i){if(i<1024)return`${i} B`;if(i<1048576)return`${Math.round(i/1024)} KB`;return`${(i/1024/1024).toFixed(1)} MB`}function Wi(i){return`${Math.round(i/1000)}k`}function mn(i,c){switch(i?.kind){case"dm":return{title:i.name?t("Direct message · {name}",{name:i.name}):t("Direct message")};case"guild":return{title:`#${i.name}`,detail:i.guild};case"gone":return{title:c,detail:t("channel no longer exists")};case"unknown":return{title:c,detail:t("channel name unavailable")};default:return{title:c}}}function bi(i,c){return`https://discord.com/channels/${c??"@me"}/${i}`}function ts(i){return new Intl.DateTimeFormat("en-CA",{timeZone:i}).format(new Date)}function vi(i){if(i.kind==="outside")return i.firstMessage||t("Session {id}",{id:i.id.slice(0,8)});if(i.kind==="plugin")return i.title||i.firstMessage||t("Conversation {key}",{key:i.key});let{title:c}=mn(i.channel,i.id);return i.member?`${c} · ${i.member}`:c}function Yt(i,c){return new Intl.DateTimeFormat(Uf(),{timeZone:c,hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date(i))}function Ak(i,c,b){let w=(N)=>new Intl.DateTimeFormat("en-CA",{timeZone:b}).format(new Date(N)),E=w(Date.parse(i));if(E===w(c))return t("Today");if(E===w(c-86400000))return t("Yesterday");return new Intl.DateTimeFormat(Uf(),{timeZone:b,day:"numeric",month:"short"}).format(new Date(i))}function Nk(i,c){return new Intl.DateTimeFormat("en-CA",{timeZone:c}).format(new Date(i))}var Rk=/^\s*@ai(?=\s|[:,:,]|$)/i,BN=/^\s*@ai\s*[:,:,]?\s*/i;function kg(i){return Rk.test(i)}function Yi(i){return Rk.test(i)?i.replace(BN,""):i}var VN=()=>typeof matchMedia==="function"&&matchMedia("(pointer: coarse)").matches;function wt(i){let[c,b]=r(()=>i.draftKey===void 0?"":xg(i.draftKey)),{draftKey:w,onAddressed:E}=i;o(()=>{if(w!==void 0)wg(w,c)},[w,c]);let[N,R]=r(!1),D=a(c),L=a(!1);o(()=>{if(D.current===c)return;D.current=c,R(!1)},[c]),o(()=>{E?.(N)},[E,N]);let H=a(!1);o(()=>{if(w===void 0)return;return Ck(w,(ie)=>{H.current=!0,b(ie)})},[w]);let[U,B]=r([]),V=a([]),q=(ie)=>{V.current=ie(V.current),B(V.current)},[Y,Z]=r(!1),ee=a(!1),P=a(null),G=a(null),F=a(0),te=z(),{limits:oe}=i;o(()=>{let ie=P.current;if(!ie||!H.current)return;H.current=!1,ie.focus(),ie.setSelectionRange(c.length,c.length)},[c]),o(()=>{let ie=P.current;if(!ie)return;ie.style.height="auto",ie.style.height=`${Math.min(ie.scrollHeight,200)}px`},[c]);let ae=(ie)=>{if(ee.current)return;let X=kk(ie,yg(V.current),oe);for(let De of X.tooLarge)f(t("{name} is over the {limit} limit.",{name:De.name,limit:Ne(oe?.maxBytes??0)}),"danger");if(X.full.length>0)f(t("A message carries up to {count} files. Remove one to add more.",{count:oe?.perMessage??0}),"danger");for(let De of X.accepted){F.current+=1;let Rt=F.current;q((W)=>[...W,{key:Rt,name:De.name,size:De.size}]),y.upload(De).then((W)=>q((It)=>It.map((Be)=>Be.key===Rt?{...Be,upload:W}:Be)),(W)=>q((It)=>It.map((Be)=>Be.key===Rt?{...Be,failed:d(W)}:Be)))}},ce=(ie)=>{if(ee.current)return;F.current+=1;let X=F.current;q((De)=>[...De,{key:X,name:xk(De.map((Rt)=>Rt.name)),size:new TextEncoder().encode(ie).length,text:ie}])};o(()=>{if(!i.incoming?.length)return;ae(i.incoming),i.onIncomingTaken?.()},[i.incoming]);let ue=U.filter((ie)=>ie.upload),ye=U.filter((ie)=>ie.text!==void 0),ne=U.some((ie)=>!ie.upload&&!ie.failed&&ie.text===void 0),Ve=!Y&&!ne&&(c.trim()!==""||ue.length>0||ye.length>0),ze=async()=>{if(!Ve||ee.current)return;let ie=Sk(c,yg(U),oe);if(!ie.ok){f(t("This message is too long to send as text, and its files take every slot. Remove one file."),"danger");return}ee.current=!0,Z(!0);let X=!1;try{let De=await Tk(U,ie.overflow,{upload:y.upload,discard:y.discardUpload});i.onSend(ie.overflow!==void 0?t(ie.text):ie.text,De,N),b(""),q(()=>[]),X=!0}catch(De){f(d(De),"danger")}finally{ee.current=!1,Z(!1),P.current?.[X&&i.blurAfterSend?"blur":"focus"]()}},ve=(ie)=>{if(ee.current)return;if(q((X)=>X.filter((De)=>De.key!==ie.key)),ie.upload)y.discardUpload(ie.upload.id).catch(()=>{return})},Ae=(ie)=>{if(ie.key==="Enter"&&!ie.shiftKey&&!ot(ie.nativeEvent)&&!VN())ie.preventDefault(),ze()},Me=(ie)=>{let X=ie.target.value,De=ie.nativeEvent.inputType??"",Rt=L.current||/^insertFrom/.test(De);L.current=!1,R(kg(X)&&(kg(c)?N:!Rt)),D.current=X,b(X)},tt=(ie)=>{if(ee.current){ie.preventDefault();return}let X=wk({files:[...ie.clipboardData.files],text:ie.clipboardData.getData("text/plain")},V.current.length,oe);switch(X.kind){case"insert":L.current=!0;return;case"files":ie.preventDefault(),ae(X.files);return;case"text":ie.preventDefault(),ce(X.text);return;case"full":ie.preventDefault(),f(t("A message carries up to {count} files, so this long text cannot be added as one. Remove a file first.",{count:oe?.perMessage??0}),"danger");return}},Ke=(ie)=>{if(ie.text===void 0||ee.current)return;if(!Ek(c,ie.text)){f(t("It is too long to put back into the message box."),"danger");return}b((X)=>vg(X,ie.text??"")),q((X)=>X.filter((De)=>De.key!==ie.key)),P.current?.focus()},Tt=i.placeholder??t("Message {name}",{name:i.name});return n("form",{className:"composer",onSubmit:(ie)=>{ie.preventDefault(),ze()},children:[i.above,U.length?e("ul",{className:"attached",children:U.map((ie)=>n("li",{className:"attached-chip","data-kind":ie.text===void 0?"file":"text","data-state":ie.failed?"failed":ie.upload||ie.text!==void 0?"ready":"uploading",title:ie.failed,children:[ie.text===void 0?n(g,{children:[e(s,{name:"file",size:14}),n("span",{className:"chip-body",children:[e("span",{className:"chip-name",children:ie.name}),e("span",{className:"meta",children:Ne(ie.size)})]})]}):n("button",{type:"button",className:"chip-take",disabled:Y,"aria-label":t("Put {name} back into the message",{name:ie.name}),onClick:()=>Ke(ie),children:[e(s,{name:"file",size:14}),n("span",{className:"chip-body",children:[n("span",{className:"chip-name",children:[ie.name," · ",Ne(ie.size)]}),e("span",{className:"meta",children:bk(ie.text)})]})]}),e("button",{type:"button",className:"icon-button","aria-label":t("Remove {name}",{name:ie.name}),disabled:Y,onClick:()=>ve(ie),children:e(s,{name:"close",size:14})})]},ie.key))}):null,n("div",{className:"composer-row",children:[e("input",{ref:G,id:te,type:"file",multiple:!0,hidden:!0,onChange:(ie)=>{ae([...ie.target.files??[]]),ie.target.value=""}}),e("button",{type:"button",className:"icon-button composer-attach","aria-label":t("Attach a file"),disabled:Y,onClick:()=>G.current?.click(),children:e(s,{name:"attach"})}),e("textarea",{ref:P,rows:1,value:c,placeholder:Tt,"aria-label":Tt,enterKeyHint:"send",readOnly:Y,onChange:Me,onKeyDown:Ae,onPaste:tt,onDrop:()=>{L.current=!0}}),i.stoppable?e("button",{type:"button",className:"icon-button composer-stop","aria-label":i.stopLabel??t("Stop"),title:i.stopLabel,onClick:i.onStop,children:e(s,{name:"stop",size:18})}):null,e("button",{type:"submit",className:"composer-send","aria-label":t("Send"),disabled:!Ve,children:e(s,{name:"send",size:20})})]})]})}var At=(i,c)=>y.setMode(i,c).then(()=>{return},(b)=>f(d(b),"danger"));function Mk(i){let{mode:c}=i,b=c?.inheritedFrom,[w,E]=r(),N=async(R)=>{E(R),await At(i.room,{[R]:!1}),E(void 0)};return e("div",{className:"mode-banner","data-open":Boolean(c),children:e("div",{className:"mode-banner-inner",children:n("div",{className:"mode-lines",children:[c?.yolo?n("div",{className:"mode-line","data-mode":"yolo",title:t("Yolo mode is on: held actions are approved without asking."),children:[e(s,{name:"bolt",size:16}),n("span",{children:[t("Yolo mode on"),i.approved>0?` · ${t("{count} approved",{count:i.approved})}`:""]}),b===void 0?e("button",{type:"button",className:"link-button",disabled:w==="yolo",onClick:()=>N("yolo"),children:t("Turn off")}):null]}):null,c?.longRunning?n("div",{className:"mode-line","data-mode":"long",title:t("Long-running mode is on: turns go on past their time limit."),children:[e(s,{name:"timer",size:16}),e("span",{children:t("Long-running on")}),b===void 0?e("button",{type:"button",className:"link-button",disabled:w==="longRunning",onClick:()=>N("longRunning"),children:t("Turn off")}):null]}):null,b!==void 0?e("div",{className:"mode-line","data-mode":"inherited",children:e("span",{children:t("Inherited from {name}",{name:b})})}):null]})})})}var qN=["M2 15V1M2 5L8 1M2 9L8 5","M2 15V1L8 5V15","M2 15V1M2 4H5L8 7L5 10H2","M2 15V1M2 5L8 1M2 10L8 6","M2 15V1H5L8 4L5 7H2M5 7L8 15","M7 2L3 8L7 14"];function PN(){return n("span",{className:"candle-runes","aria-hidden":"true",children:[n("svg",{className:"candle",viewBox:"0 0 12 22","aria-hidden":"true",focusable:"false",children:[e("path",{className:"candle-flame",d:"M6 1C8.4 4.2 8.8 6.4 6 9C3.2 6.4 3.6 4.2 6 1Z"}),e("path",{className:"candle-wick",d:"M6 8.6V10.4"}),e("rect",{className:"candle-wax",x:"3.5",y:"10.4",width:"5",height:"10.6",rx:"1"})]}),e("span",{className:"runes",children:qN.map((i,c)=>e("svg",{className:"rune","aria-hidden":"true",viewBox:"0 0 10 16",focusable:"false","data-rune":c,children:e("path",{d:i})},c))})]})}var Sg=3;function IN(i,c){if(c||i.length<=Sg)return{shown:i,hidden:0};return{shown:i.slice(-Sg),hidden:i.length-Sg}}function gn(i){let[c,b]=r(!1),[w,E]=r(!1),{text:N,tools:R}=i.progress,{shown:D,hidden:L}=IN(R,w),H=st()==="camelot";return n("div",{className:"progress","aria-live":"off",children:[n("div",{className:"progress-head",children:[H?e(PN,{}):null,e("span",{className:"progress-bar","aria-hidden":"true"}),e("span",{className:"progress-label",children:t("{name} is working…",{name:i.name})})]}),R.length?n("ul",{className:"chips",children:[L>0||w?e("li",{className:"chip-more-item",children:e("button",{type:"button",className:"chip chip-more","aria-expanded":w,onClick:()=>E((U)=>!U),children:w?t("Show fewer tools"):K(L,"{count} earlier tool","{count} earlier tools")})}):null,D.map((U)=>n("li",{className:"chip","data-status":U.status,children:[e("span",{className:"chip-dot","aria-hidden":"true"}),e("span",{children:U.tool}),U.preview?e("span",{className:"chip-preview",children:U.preview}):null]},U.id))]}):null,N?e("button",{type:"button",className:"progress-text","data-expanded":c,"aria-expanded":c,"aria-label":t("Show the whole stream"),onClick:()=>b((U)=>!U),children:n("span",{className:"progress-flow",children:[N,e("span",{className:"caret","aria-hidden":"true"})]})}):null]})}var zk={from:1,to:6};function Eg(i,c){if(i.prompts>0)return"waiting";if(i.typing&&i.phase==="working")return"working";if(i.typing||i.busyElsewhere)return i.phase==="thinking"?"thinking":"working";let b=i.outcomeAt===void 0?void 0:c-i.outcomeAt;if(i.outcome==="failed"&&(b===void 0||b<600000))return"error";if(i.outcome==="done"&&b!==void 0&&b<2500)return"done";if(jN(i,c))return"sleepy";return"idle"}function jN(i,c){let b=i.lastActivityAt===void 0?Number.POSITIVE_INFINITY:c-i.lastActivityAt;if(i.lastActivityAt!==void 0&&b>28800000)return!0;let w=new Date(c).getHours();return w>=zk.from&&w<zk.to&&b>=3600000}function Tg(i,c){if(i.prompts>0||i.typing||i.busyElsewhere)return;if(i.outcome===void 0||i.outcomeAt===void 0)return;let b=i.outcome==="done"?2500:600000,w=i.outcomeAt+b-c;return w>0?w:void 0}function et(i){let c=Ln(),{look:b}=zn();if(!c||!i)return;return{["--agent-accent"]:c.accentOf(i,b)}}function Ki(i){let c=l((b)=>{let w=b.rooms[i]?.view;return w?.character??(w?.parent?b.rooms[w.parent]?.view?.character:void 0)},i);return et(c)}function Xe(){return l((i)=>{let c={};for(let b of Object.values(i.rooms))if(b.view?.kind==="agent"&&b.view.character)c[b.view.name]=b.view.character;return c})}function Ok(i,c){let b=i.rooms[c],w=b?.view;return{typing:b?.typing??!1,phase:b?.phase,prompts:Je(i,c),outcome:b?.outcome,outcomeAt:b?.outcomeAt,lastActivityAt:b?.activityAt,busyElsewhere:w?.kind==="agent"&&i.presence[w.name]?.busy===!0}}function _k(i){let[,c]=pi((b)=>b+1,0);o(()=>{if(i===void 0)return;let b=setTimeout(c,i+20);return()=>clearTimeout(b)},[i])}function In(i){J();let c=l((b)=>Ok(b,i),i);return _k(Tg(c,Date.now())),Eg(c,Date.now())}function ls(i){J();let c=l((E)=>E),b=Date.now(),w=i.map((E)=>[E,Ok(c,E)]);return _k(w.reduce((E,[,N])=>{let R=Tg(N,b);return R===void 0||E!==void 0&&E<=R?E:R},void 0)),Object.fromEntries(w.map(([E,N])=>[E,Eg(N,b)]))}var Dk=(i)=>i!=="idle"&&i!=="sleepy";var Jf,Lk=0,{emit:Hk,use:GN}=M();function me(i){if(i.items.length===0)return;Lk+=1,Jf={...i,serial:Lk},Hk()}function kt(){if(!Jf)return;Jf=void 0,Hk()}var ns=()=>GN(()=>Jf);var zr=450,Ir=10,YN={set:(i,c)=>{let b=setTimeout(i,c);return()=>clearTimeout(b)}};class On{#e;#a;#r;#t;#n=!1;constructor(i,c=YN){this.#e=i,this.#a=c}begin(i,c){this.cancel(),this.#n=!1;let b={x:i,y:c};this.#r=b,this.#t=this.#a.set(()=>{this.#t=void 0,this.#n=!0,this.#e(b)},zr)}move(i,c){let b=this.#r;if(!b||!this.#t)return this.pending;if(Math.hypot(i-b.x,c-b.y)>Ir)return this.cancel(),!1;return!0}end(){let i=this.#n;return this.cancel(),i}cancel(){this.#t?.(),this.#t=void 0,this.#r=void 0}get pending(){return this.#t!==void 0}get fired(){return this.#n}}var Uk=new WeakSet,Cg=(i)=>{if(Uk.has(i))return!1;return Uk.add(i),!0},FN="input, textarea, select, [contenteditable]",QN=(i)=>i.key==="ContextMenu"||i.key==="F10"&&i.shiftKey;function Hi(i,c={}){let b=a(i);b.current=i;let w=a(void 0),E=a(!1),N=()=>{w.current?.press.cancel(),w.current?.stop(),w.current=void 0};return{"data-hold":c.selectable?"text":"row",onPointerDown(R){if(E.current=!1,R.pointerType==="mouse")return;if(!R.isPrimary||!Cg(R.nativeEvent))return;if(R.target instanceof Element&&R.target.closest(FN))return;N();let D=R.currentTarget,L=new On((U)=>{if(E.current=!0,typeof navigator.vibrate==="function")navigator.vibrate(10);b.current({at:U,via:"hold",source:D})}),H=()=>N();window.addEventListener("scroll",H,!0),w.current={press:L,pointer:R.pointerId,source:D,stop:()=>window.removeEventListener("scroll",H,!0)},L.begin(R.clientX,R.clientY)},onPointerMove(R){let D=w.current;if(!D||D.pointer!==R.pointerId)return;if(!D.press.move(R.clientX,R.clientY)&&!E.current)N()},onPointerUp(R){if(w.current?.pointer===R.pointerId)N()},onPointerCancel(R){if(w.current?.pointer===R.pointerId)N()},onContextMenu(R){if(!Cg(R.nativeEvent))return;if(R.preventDefault(),E.current)return;N(),b.current({at:{x:R.clientX,y:R.clientY},via:"contextmenu",source:R.currentTarget})},onKeyDown(R){if(E.current=!1,!QN(R)||!Cg(R.nativeEvent))return;R.preventDefault();let D=R.currentTarget.getBoundingClientRect();b.current({at:{x:D.left+Math.min(D.width/2,48),y:D.top+24},via:"key",source:R.currentTarget})},onClickCapture(R){if(!E.current)return;E.current=!1,R.preventDefault(),R.stopPropagation()}}}function hi(i,c={}){return Hi((b)=>{i(b.source).then((w)=>{if(w)me({...w,at:b.at,via:b.via,source:b.source})},()=>{return})},c)}var xo=()=>(p("rztgekfj"),import("./chunk-menu-items-rztgekfj.js")),Ht=(i,c)=>xo().then((b)=>b.roomMenu(i,c)),as=(i,c)=>xo().then((b)=>b.seatMenu(i,c)),Bk=(i,c,b)=>xo().then((w)=>w.messageMenu(i,c,b)),Vk=(i,c)=>xo().then((b)=>b.avatarMenu(i,c)),qk=(i)=>xo().then((c)=>c.cardMenu(i)),Pk=(i)=>xo().then((c)=>c.fileMenu(i)),bn=(i,c)=>void xo().then((b)=>b.openAddMenu(i,c));function xt(){}function Wf(){}function Ik(i,c){let b=c||{};return(i[i.length-1]===""?[...i,""]:i).join((b.padRight?" ":"")+","+(b.padLeft===!1?"":" ")).trim()}var XN=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZN=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KN={};function $f(i,c){return((c||KN).jsx?ZN:XN).test(i)}var JN=/[ \t\n\f\r]/g;function Ag(i){return typeof i==="object"?i.type==="text"?jk(i.value):!1:jk(i)}function jk(i){return i.replace(JN,"")===""}class Ei{constructor(i,c,b){if(this.normal=c,this.property=i,b)this.space=b}}Ei.prototype.normal={};Ei.prototype.property={};Ei.prototype.space=void 0;function Ng(i,c){let b={},w={};for(let E of i)Object.assign(b,E.property),Object.assign(w,E.normal);return new Ei(b,w,c)}function xu(i){return i.toLowerCase()}class un{constructor(i,c){this.attribute=c,this.property=i}}un.prototype.attribute="";un.prototype.booleanish=!1;un.prototype.boolean=!1;un.prototype.commaOrSpaceSeparated=!1;un.prototype.commaSeparated=!1;un.prototype.defined=!1;un.prototype.mustUseProperty=!1;un.prototype.number=!1;un.prototype.overloadedBoolean=!1;un.prototype.property="";un.prototype.spaceSeparated=!1;un.prototype.space=void 0;var WN=0,Te=wo(),Ot=wo(),ed=wo(),pe=wo(),ut=wo(),La=wo(),Fn=wo();function wo(){return 2**++WN}var Rg=Object.keys(wu);class Dl extends un{constructor(i,c,b,w){let E=-1;super(i,c);if(Gk(this,"space",w),typeof b==="number")while(++E<Rg.length){let N=Rg[E];Gk(this,Rg[E],(b&wu[N])===wu[N])}}}Dl.prototype.defined=!0;function Gk(i,c,b){if(b)i[c]=b}function Rr(i){let c={},b={};for(let[w,E]of Object.entries(i.properties)){let N=new Dl(w,i.transform(i.attributes||{},w),E,i.space);if(i.mustUseProperty&&i.mustUseProperty.includes(w))N.mustUseProperty=!0;c[w]=N,b[xu(w)]=w,b[xu(N.attribute)]=w}return new Ei(c,b,i.space)}var Mg=Rr({properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:ut,ariaCurrent:null,ariaDescribedBy:ut,ariaDetails:null,ariaDisabled:Ot,ariaDropEffect:ut,ariaErrorMessage:null,ariaExpanded:Ot,ariaFlowTo:ut,ariaGrabbed:Ot,ariaHasPopup:null,ariaHidden:Ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ut,ariaLevel:pe,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ut,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ut,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Ot,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null},transform(i,c){return c==="role"?c:"aria-"+c.slice(4).toLowerCase()}});function td(i,c){return c in i?i[c]:c}function nd(i,c){return td(i,c.toLowerCase())}var Yk=Rr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:La,acceptCharset:ut,accessKey:ut,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alpha:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:ut,autoFocus:Te,autoPlay:Te,blocking:ut,capture:null,charSet:null,checked:Te,cite:null,className:ut,closedBy:null,colorSpace:null,cols:pe,colSpan:pe,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Te,controlsList:ut,coords:pe|La,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:ed,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:ut,height:pe,hidden:ed,high:pe,href:null,hrefLang:null,htmlFor:ut,httpEquiv:ut,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:ut,itemRef:ut,itemScope:Te,itemType:ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te,optimum:pe,pattern:null,ping:ut,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:ut,required:Te,reversed:Te,rows:pe,rowSpan:pe,sandbox:ut,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootCustomElementRegistry:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shadowRootSerializable:Te,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:Ot,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ut,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Te,disablePictureInPicture:Te,disableRemotePlayback:Te,exportParts:La,part:ut,prefix:null,property:null,results:pe,security:null,unselectable:null},space:"html",transform:nd});var Fk=Rr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Fn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:ut,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:La,g2:La,glyphName:La,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:Fn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fn,rev:Fn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fn,requiredFeatures:Fn,requiredFonts:Fn,requiredFormats:Fn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:Fn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:td});var zg=Rr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(i,c){return"xlink:"+c.slice(5).toLowerCase()}});var Og=Rr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nd});var _g=Rr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(i,c){return"xml:"+c.slice(3).toLowerCase()}});var Dg={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var $N=/[A-Z]/g,Qk=/-[a-z]/g,e4=/^data[-\w.:]+$/i;function Lg(i,c){let b=xu(c),w=c,E=un;if(b in i.normal)return i.property[i.normal[b]];if(b.length>4&&b.slice(0,4)==="data"&&e4.test(c)){if(c.charAt(4)==="-"){let N=c.slice(5).replace(Qk,n4);w="data"+N.charAt(0).toUpperCase()+N.slice(1)}else{let N=c.slice(4);if(!Qk.test(N)){let R=N.replace($N,t4);if(R.charAt(0)!=="-")R="-"+R;c="data"+R}}E=Dl}return new E(w,c)}function t4(i){return"-"+i.toLowerCase()}function n4(i){return i.charAt(1).toUpperCase()}var Xk=Ng([Mg,Yk,zg,Og,_g],"html"),rd=Ng([Mg,Fk,zg,Og,_g],"svg");function Zk(i){return i.join(" ").trim()}var dS=xy(sS(),1);var ad=uS("end"),Ll=uS("start");function uS(i){return c;function c(b){let w=b&&b.position&&b.position[i]||{};if(typeof w.line==="number"&&w.line>0&&typeof w.column==="number"&&w.column>0)return{line:w.line,column:w.column,offset:typeof w.offset==="number"&&w.offset>-1?w.offset:void 0}}}function Bg(i){let c=Ll(i),b=ad(i);if(c&&b)return{start:c,end:b}}function Ti(i){if(!i||typeof i!=="object")return"";if("position"in i||"type"in i)return cS(i.position);if("start"in i||"end"in i)return cS(i);if("line"in i||"column"in i)return Vg(i);return""}function Vg(i){return fS(i&&i.line)+":"+fS(i&&i.column)}function cS(i){return Vg(i&&i.start)+"-"+Vg(i&&i.end)}function fS(i){return i&&typeof i==="number"?i:1}class Pt extends Error{constructor(i,c,b){super();if(typeof c==="string")b=c,c=void 0;let w="",E={},N=!1;if(c)if("line"in c&&"column"in c)E={place:c};else if("start"in c&&"end"in c)E={place:c};else if("type"in c)E={ancestors:[c],place:c.position};else E={...c};if(typeof i==="string")w=i;else if(!E.cause&&i)N=!0,w=i.message,E.cause=i;if(!E.ruleId&&!E.source&&typeof b==="string"){let D=b.indexOf(":");if(D===-1)E.ruleId=b;else E.source=b.slice(0,D),E.ruleId=b.slice(D+1)}if(!E.place&&E.ancestors&&E.ancestors){let D=E.ancestors[E.ancestors.length-1];if(D)E.place=D.position}let R=E.place&&"start"in E.place?E.place.start:E.place;this.ancestors=E.ancestors||void 0,this.cause=E.cause||void 0,this.column=R?R.column:void 0,this.fatal=void 0,this.file="",this.message=w,this.line=R?R.line:void 0,this.name=Ti(E.place)||"1:1",this.place=E.place||void 0,this.reason=this.message,this.ruleId=E.ruleId||void 0,this.source=E.source||void 0,this.stack=N&&E.cause&&typeof E.cause.stack==="string"?E.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Pt.prototype.file="";Pt.prototype.name="";Pt.prototype.reason="";Pt.prototype.message="";Pt.prototype.stack="";Pt.prototype.column=void 0;Pt.prototype.line=void 0;Pt.prototype.ancestors=void 0;Pt.prototype.cause=void 0;Pt.prototype.fatal=void 0;Pt.prototype.place=void 0;Pt.prototype.ruleId=void 0;Pt.prototype.source=void 0;var qg={}.hasOwnProperty,N4=new Map,R4=/[A-Z]/g,M4=new Set(["table","tbody","thead","tfoot","tr"]),z4=new Set(["td","th"]),mS="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Pg(i,c){if(!c||c.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let b=c.filePath||void 0,w;if(c.development){if(typeof c.jsxDEV!=="function")throw TypeError("Expected `jsxDEV` in options when `development: true`");w=V4(b,c.jsxDEV)}else{if(typeof c.jsx!=="function")throw TypeError("Expected `jsx` in production options");if(typeof c.jsxs!=="function")throw TypeError("Expected `jsxs` in production options");w=B4(b,c.jsx,c.jsxs)}let E={Fragment:c.Fragment,ancestors:[],components:c.components||{},create:w,elementAttributeNameCase:c.elementAttributeNameCase||"react",evaluater:c.createEvaluater?c.createEvaluater():void 0,filePath:b,ignoreInvalidStyle:c.ignoreInvalidStyle||!1,passKeys:c.passKeys!==!1,passNode:c.passNode||!1,schema:c.space==="svg"?rd:Xk,stylePropertyNameCase:c.stylePropertyNameCase||"dom",tableCellAlignToStyle:c.tableCellAlignToStyle!==!1},N=pS(E,i,void 0);if(N&&typeof N!=="string")return N;return E.create(i,E.Fragment,{children:N||void 0},void 0)}function pS(i,c,b){if(c.type==="element")return O4(i,c,b);if(c.type==="mdxFlowExpression"||c.type==="mdxTextExpression")return _4(i,c);if(c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement")return L4(i,c,b);if(c.type==="mdxjsEsm")return D4(i,c);if(c.type==="root")return H4(i,c,b);if(c.type==="text")return U4(i,c)}function O4(i,c,b){let w=i.schema,E=w;if(c.tagName.toLowerCase()==="svg"&&w.space==="html")E=rd,i.schema=E;i.ancestors.push(c);let N=gS(i,c.tagName,!1),R=q4(i,c),D=jg(i,c);if(M4.has(c.tagName))D=D.filter(function(L){return typeof L==="string"?!Ag(L):!0});return hS(i,R,N,c),Ig(R,D),i.ancestors.pop(),i.schema=w,i.create(c,N,R,b)}function _4(i,c){if(c.data&&c.data.estree&&i.evaluater){let w=c.data.estree.body[0];return xt(w.type==="ExpressionStatement"),i.evaluater.evaluateExpression(w.expression)}Su(i,c.position)}function D4(i,c){if(c.data&&c.data.estree&&i.evaluater)return i.evaluater.evaluateProgram(c.data.estree);Su(i,c.position)}function L4(i,c,b){let w=i.schema,E=w;if(c.name==="svg"&&w.space==="html")E=rd,i.schema=E;i.ancestors.push(c);let N=c.name===null?i.Fragment:gS(i,c.name,!0),R=P4(i,c),D=jg(i,c);return hS(i,R,N,c),Ig(R,D),i.ancestors.pop(),i.schema=w,i.create(c,N,R,b)}function H4(i,c,b){let w={};return Ig(w,jg(i,c)),i.create(c,i.Fragment,w,b)}function U4(i,c){return c.value}function hS(i,c,b,w){if(typeof b!=="string"&&b!==i.Fragment&&i.passNode)c.node=w}function Ig(i,c){if(c.length>0){let b=c.length>1?c:c[0];if(b)i.children=b}}function B4(i,c,b){return w;function w(E,N,R,D){let H=Array.isArray(R.children)?b:c;return D?H(N,R,D):H(N,R)}}function V4(i,c){return b;function b(w,E,N,R){let D=Array.isArray(N.children),L=Ll(w);return c(E,N,R,D,{columnNumber:L?L.column-1:void 0,fileName:i,lineNumber:L?L.line:void 0},void 0)}}function q4(i,c){let b={},w,E;for(E in c.properties)if(E!=="children"&&qg.call(c.properties,E)){let N=I4(i,E,c.properties[E]);if(N){let[R,D]=N;if(i.tableCellAlignToStyle&&R==="align"&&typeof D==="string"&&z4.has(c.tagName))w=D;else b[R]=D}}if(w){let N=b.style||(b.style={});N[i.stylePropertyNameCase==="css"?"text-align":"textAlign"]=w}return b}function P4(i,c){let b={};for(let w of c.attributes)if(w.type==="mdxJsxExpressionAttribute")if(w.data&&w.data.estree&&i.evaluater){let N=w.data.estree.body[0];xt(N.type==="ExpressionStatement");let R=N.expression;xt(R.type==="ObjectExpression");let D=R.properties[0];xt(D.type==="SpreadElement"),Object.assign(b,i.evaluater.evaluateExpression(D.argument))}else Su(i,c.position);else{let E=w.name,N;if(w.value&&typeof w.value==="object")if(w.value.data&&w.value.data.estree&&i.evaluater){let D=w.value.data.estree.body[0];xt(D.type==="ExpressionStatement"),N=i.evaluater.evaluateExpression(D.expression)}else Su(i,c.position);else N=w.value===null?!0:w.value;b[E]=N}return b}function jg(i,c){let b=[],w=-1,E=i.passKeys?new Map:N4;while(++w<c.children.length){let N=c.children[w],R;if(i.passKeys){let L=N.type==="element"?N.tagName:N.type==="mdxJsxFlowElement"||N.type==="mdxJsxTextElement"?N.name:void 0;if(L){let H=E.get(L)||0;R=L+"-"+H,E.set(L,H+1)}}let D=pS(i,N,R);if(D!==void 0)b.push(D)}return b}function I4(i,c,b){let w=Lg(i.schema,c);if(b===null||b===void 0||typeof b==="number"&&Number.isNaN(b))return;if(Array.isArray(b))b=w.commaSeparated?Ik(b):Zk(b);if(w.property==="style"){let E=typeof b==="object"?b:j4(i,String(b));if(i.stylePropertyNameCase==="css")E=G4(E);return["style",E]}return[i.elementAttributeNameCase==="react"&&w.space?Dg[w.property]||w.property:w.attribute,b]}function j4(i,c){try{return dS.default(c,{reactCompat:!0})}catch(b){if(i.ignoreInvalidStyle)return{};let w=b,E=new Pt("Cannot parse `style` attribute",{ancestors:i.ancestors,cause:w,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw E.file=i.filePath||void 0,E.url=mS+"#cannot-parse-style-attribute",E}}function gS(i,c,b){let w;if(!b)w={type:"Literal",value:c};else if(c.includes(".")){let E=c.split("."),N=-1,R;while(++N<E.length){let D=$f(E[N])?{type:"Identifier",name:E[N]}:{type:"Literal",value:E[N]};R=R?{type:"MemberExpression",object:R,property:D,computed:Boolean(N&&D.type==="Literal"),optional:!1}:D}xt(R,"always a result"),w=R}else w=$f(c)&&!/^[a-z]/.test(c)?{type:"Identifier",name:c}:{type:"Literal",value:c};if(w.type==="Literal"){let E=w.value;return qg.call(i.components,E)?i.components[E]:E}if(i.evaluater)return i.evaluater.evaluateExpression(w);Su(i)}function Su(i,c){let b=new Pt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:i.ancestors,place:c,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw b.file=i.filePath||void 0,b.url=mS+"#cannot-handle-mdx-estrees-without-createevaluater",b}function G4(i){let c={},b;for(b in i)if(qg.call(i,b))c[Y4(b)]=i[b];return c}function Y4(i){let c=i.replace(R4,F4);if(c.slice(0,3)==="ms-")c="-"+c;return c}function F4(i){return"-"+i.toLowerCase()}var Eu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Q4={};function So(i,c){let b=c||Q4,w=typeof b.includeImageAlt==="boolean"?b.includeImageAlt:!0,E=typeof b.includeHtml==="boolean"?b.includeHtml:!0;return yS(i,w,E)}function yS(i,c,b){if(X4(i)){if("value"in i)return i.type==="html"&&!b?"":i.value;if(c&&"alt"in i&&i.alt)return i.alt;if("children"in i)return vS(i.children,c,b)}if(Array.isArray(i))return vS(i,c,b);return""}function vS(i,c,b){let w=[],E=-1;while(++E<i.length)w[E]=yS(i[E],c,b);return w.join("")}function X4(i){return Boolean(i&&typeof i==="object")}var bS=document.createElement("i");function Hl(i){let c="&"+i+";";bS.innerHTML=c;let b=bS.textContent;if(b.charCodeAt(b.length-1)===59&&i!=="semi")return!1;return b===c?!1:b}function en(i,c,b,w){let E=i.length,N=0,R;if(c<0)c=-c>E?0:E+c;else c=c>E?E:c;if(b=b>0?b:0,w.length<1e4)R=Array.from(w),R.unshift(c,b),i.splice(...R);else{if(b)i.splice(c,b);while(N<w.length)R=w.slice(N,N+1e4),R.unshift(c,0),i.splice(...R),N+=1e4,c+=1e4}}function Rn(i,c){if(i.length>0)return en(i,i.length,0,c),i;return c}var xS={}.hasOwnProperty;function id(i){let c={},b=-1;while(++b<i.length)Z4(c,i[b]);return c}function Z4(i,c){let b;for(b in c){let E=(xS.call(i,b)?i[b]:void 0)||(i[b]={}),N=c[b],R;if(N)for(R in N){if(!xS.call(E,R))E[R]=[];let D=N[R];K4(E[R],Array.isArray(D)?D:D?[D]:[])}}}function K4(i,c){let b=-1,w=[];while(++b<c.length)(c[b].add==="after"?i:w).push(c[b]);en(i,0,0,w)}function od(i,c){let b=Number.parseInt(i,c);if(b<9||b===11||b>13&&b<32||b>126&&b<160||b>55295&&b<57344||b>64975&&b<65008||(b&65535)===65535||(b&65535)===65534||b>1114111)return"�";return String.fromCodePoint(b)}function kn(i){return i.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Qt=Ci(/[A-Za-z]/),Dt=Ci(/[\dA-Za-z]/),wS=Ci(/[#-'*+\--9=?A-Z^-~]/);function Eo(i){return i!==null&&(i<32||i===127)}var Tu=Ci(/\d/),kS=Ci(/[\dA-Fa-f]/),SS=Ci(/[!-/:-@[-`{-~]/);function ge(i){return i!==null&&i<-2}function Ie(i){return i!==null&&(i<0||i===32)}function be(i){return i===-2||i===-1||i===32}var To=Ci(/\p{P}|\p{S}/u),fa=Ci(/\s/);function Ci(i){return c;function c(b){return b!==null&&b>-1&&i.test(String.fromCharCode(b))}}function Mr(i){let c=[],b=-1,w=0,E=0;while(++b<i.length){let N=i.charCodeAt(b),R="";if(N===37&&Dt(i.charCodeAt(b+1))&&Dt(i.charCodeAt(b+2)))E=2;else if(N<128){if(!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(N)))R=String.fromCharCode(N)}else if(N>55295&&N<57344){let D=i.charCodeAt(b+1);if(N<56320&&D>56319&&D<57344)R=String.fromCharCode(N,D),E=1;else R="�"}else R=String.fromCharCode(N);if(R)c.push(i.slice(w,b),encodeURIComponent(R)),w=b+E+1,R="";if(E)b+=E,E=0}return c.join("")+i.slice(w)}function ke(i,c,b,w){let E=w?w-1:1/0,N=0;return R;function R(L){if(be(L))return i.enter(b),D(L);return c(L)}function D(L){if(be(L)&&N++<E)return i.consume(L),D;return i.exit(b),c(L)}}function Gg(i,c,b,w,E,N){let R=0;return D;function D(U){if(N>0&&be(U))return i.enter(w),L(U);return H(U)}function L(U){if(be(U)&&R<N)return i.consume(U),R++,L;return i.exit(w),H(U)}function H(U){return R>=E?c(U):b(U)}}var ES={tokenize:J4};function J4(i){let c=i.attempt(this.parser.constructs.contentInitial,w,E),b;return c;function w(D){if(D===null){i.consume(D);return}return i.enter("lineEnding"),i.consume(D),i.exit("lineEnding"),ke(i,c,"linePrefix")}function E(D){return i.enter("paragraph"),N(D)}function N(D){let L=i.enter("chunkText",{contentType:"text",previous:b});if(b)b.next=L;return b=L,R(D)}function R(D){if(D===null){i.exit("chunkText"),i.exit("paragraph"),i.consume(D);return}if(ge(D))return i.consume(D),i.exit("chunkText"),N;return i.consume(D),R}}class Ai{constructor(){this.index=new Map,this.map=[]}add(i,c,b){TS(this,i,c,b,!1)}addBefore(i,c,b){TS(this,i,c,b,!0)}consume(i){if(this.map.sort(function(E,N){return E[0]-N[0]}),this.map.length===0)return;let c=this.map.length,b=[];while(c>0)c-=1,b.push(i.slice(this.map[c][0]+this.map[c][1]),this.map[c][2]),i.length=this.map[c][0];b.push(i.slice()),i.length=0;let w=b.pop();while(w){for(let E of w)i.push(E);w=b.pop()}this.map.length=0,this.index.clear()}}function TS(i,c,b,w,E){if(b===0&&w.length===0)return;let N=i.index.get(c);if(N){if(N[1]+=b,E)w.push(...N[2]),N[2]=w;else N[2].push(...w);return}let R=[c,b,w];i.map.push(R),i.index.set(c,R)}var AS={tokenize:W4},CS={tokenize:$4};function W4(i){let c=this,b=[],w=0,E,N,R;return D;function D(F){if(w<b.length){let te=b[w];return c.containerState=te[1],i.attempt(te[0].continuation,L,H)(F)}return H(F)}function L(F){if(w++,c.containerState._closeFlow){if(c.containerState._closeFlow=void 0,E)G();let te=c.events.length,oe=te,ae;while(oe--)if(c.events[oe][0]==="exit"&&c.events[oe][1].type==="chunkFlow"){ae=c.events[oe][1].end;break}P(w);let ce=te;while(ce<c.events.length)c.events[ce][1].end={...ae},ce++;let ue=new Ai;return ue.add(oe+1,0,c.events.slice(te)),ue.add(te,ce-te,[]),ue.consume(c.events),H(F)}return D(F)}function H(F){if(w===b.length){if(!E)return V(F);if(E.currentConstruct&&E.currentConstruct.concrete)return Y(F);c.interrupt=Boolean(E.currentConstruct&&!E._gfmTableDynamicInterruptHack)}return c.containerState={},i.check(CS,U,B)(F)}function U(F){if(E)G();return P(w),V(F)}function B(F){return c.parser.lazy[c.now().line]=w!==b.length,R=c.now().offset,Y(F)}function V(F){return c.containerState={},i.attempt(CS,q,Y)(F)}function q(F){return w++,b.push([c.currentConstruct,c.containerState]),V(F)}function Y(F){if(F===null){if(E)G();P(0),i.consume(F);return}return E=E||c.parser.flow(c.now()),i.enter("chunkFlow",{_tokenizer:E,contentType:"flow",previous:N}),Z(F)}function Z(F){if(F===null){ee(i.exit("chunkFlow"),!0),P(0),i.consume(F);return}if(ge(F))return i.consume(F),ee(i.exit("chunkFlow")),w=0,c.interrupt=void 0,D;return i.consume(F),Z}function ee(F,te){let oe=c.sliceStream(F);if(te)oe.push(null);if(F.previous=N,N)N.next=F;if(N=F,E.defineSkip(F.start),E.write(oe),c.parser.lazy[F.start.line]){let ae=E.events.length;while(ae--)if(E.events[ae][1].start.offset<R&&(!E.events[ae][1].end||E.events[ae][1].end.offset>R))return;let ce=c.events.length,ue=ce,ye,ne;while(ue--)if(c.events[ue][0]==="exit"&&c.events[ue][1].type==="chunkFlow"){if(ye){ne=c.events[ue][1].end;break}ye=!0}P(w),ae=ce;while(ae<c.events.length)c.events[ae][1].end={...ne},ae++;let Ve=new Ai;Ve.add(ue+1,0,c.events.slice(ce)),Ve.add(ce,ae-ce,[]),Ve.consume(c.events)}}function P(F){let te=b.length;while(te-- >F){let oe=b[te];c.containerState=oe[1],oe[0].exit.call(c,i)}b.length=F}function G(){E.write([null]),N=void 0,E=void 0,c.containerState._closeFlow=void 0}}function $4(i,c,b){return ke(i,i.attempt(this.parser.constructs.document,c,b),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ul(i){if(i===null||Ie(i)||fa(i))return 1;if(To(i))return 2}function Ni(i,c,b){let w=[],E=-1;while(++E<i.length){let N=i[E].resolveAll;if(N&&!w.includes(N))c=N(c,b),w.push(N)}return c}var Cu={name:"attention",resolveAll:eR,tokenize:tR};function eR(i,c){let b=-1,w;while(++b<i.length)if(i[b][0]==="enter"&&i[b][1].type==="attentionSequence"&&i[b][1]._close){let E=b;while(E--)if(i[E][0]==="exit"&&i[E][1].type==="attentionSequence"&&i[E][1]._open&&c.sliceSerialize(i[E][1]).charCodeAt(0)===c.sliceSerialize(i[b][1]).charCodeAt(0)){if((i[E][1]._close||i[b][1]._open)&&(i[b][1].end.offset-i[b][1].start.offset)%3&&!((i[E][1].end.offset-i[E][1].start.offset+i[b][1].end.offset-i[b][1].start.offset)%3))continue;let N=i[E][1].end.offset-i[E][1].start.offset>1&&i[b][1].end.offset-i[b][1].start.offset>1?2:1,R={...i[E][1].end},D={...i[b][1].start};NS(R,-N),NS(D,N);let L={type:N>1?"strongSequence":"emphasisSequence",start:R,end:{...i[E][1].end}},H={type:N>1?"strongSequence":"emphasisSequence",start:{...i[b][1].start},end:D},U={type:N>1?"strongText":"emphasisText",start:{...i[E][1].end},end:{...i[b][1].start}},B={type:N>1?"strong":"emphasis",start:{...L.start},end:{...H.end}};if(i[E][1].end={...L.start},i[b][1].start={...H.end},w=[],i[E][1].end.offset-i[E][1].start.offset)w=Rn(w,[["enter",i[E][1],c],["exit",i[E][1],c]]);w=Rn(w,[["enter",B,c],["enter",L,c],["exit",L,c],["enter",U,c]]),w=Rn(w,Ni(c.parser.constructs.insideSpan.null,i.slice(E+1,b),c)),w=Rn(w,[["exit",U,c],["enter",H,c],["exit",H,c],["exit",B,c]]);let V=0;if(i[b][1].end.offset-i[b][1].start.offset)V=2,w=Rn(w,[["enter",i[b][1],c],["exit",i[b][1],c]]);en(i,E-1,b-E+3,w),b=E+w.length-V-2;break}}b=-1;while(++b<i.length)if(i[b][1].type==="attentionSequence")i[b][1].type="data";return i}function tR(i,c){let b=this.parser.constructs.attentionMarkers.null,w=this.previous,E=Ul(w),N;return R;function R(L){return N=L,i.enter("attentionSequence"),D(L)}function D(L){if(L===N)return i.consume(L),D;let H=i.exit("attentionSequence"),U=Ul(L),B=!U||U===2&&E||b.includes(L)&&L!==42&&L!==95,V=!E||E===2&&U||b.includes(w)&&w!==42&&w!==95;return H._open=Boolean(N===42?B:B&&(E||!V)),H._close=Boolean(N===42?V:V&&(U||!B)),c(L)}}function NS(i,c){i.column+=c,i.offset+=c,i._bufferIndex+=c}var Yg={name:"autolink",tokenize:nR};function nR(i,c,b){let w=0;return E;function E(q){return i.enter("autolink"),i.enter("autolinkMarker"),i.consume(q),i.exit("autolinkMarker"),i.enter("autolinkProtocol"),N}function N(q){if(Qt(q))return i.consume(q),R;if(q===64)return b(q);return H(q)}function R(q){if(q===43||q===45||q===46||Dt(q))return w=1,D(q);return H(q)}function D(q){if(q===58)return i.consume(q),w=0,L;if((q===43||q===45||q===46||Dt(q))&&w++<32)return i.consume(q),D;return w=0,H(q)}function L(q){if(q===62)return i.exit("autolinkProtocol"),i.enter("autolinkMarker"),i.consume(q),i.exit("autolinkMarker"),i.exit("autolink"),c;if(q===null||q===32||q===60||Eo(q))return b(q);return i.consume(q),L}function H(q){if(q===64)return i.consume(q),U;if(wS(q))return i.consume(q),H;return b(q)}function U(q){return Dt(q)?B(q):b(q)}function B(q){if(q===46)return i.consume(q),w=0,U;if(q===62)return i.exit("autolinkProtocol").type="autolinkEmail",i.enter("autolinkMarker"),i.consume(q),i.exit("autolinkMarker"),i.exit("autolink"),c;return V(q)}function V(q){if((q===45||Dt(q))&&w++<63){let Y=q===45?V:B;return i.consume(q),Y}return b(q)}}var da={partial:!0,tokenize:rR};function rR(i,c,b){return w;function w(N){return be(N)?ke(i,E,"linePrefix")(N):E(N)}function E(N){return N===null||ge(N)?c(N):b(N)}}var ld={continuation:{tokenize:iR},exit:oR,name:"blockQuote",tokenize:aR};function aR(i,c,b){let w=this;return E;function E(R){if(R===62){let D=w.containerState;if(!D.open)i.enter("blockQuote",{_container:!0}),D.open=!0;return i.enter("blockQuotePrefix"),i.enter("blockQuoteMarker"),i.consume(R),i.exit("blockQuoteMarker"),N}return b(R)}function N(R){if(be(R))return i.enter("blockQuotePrefixWhitespace"),i.consume(R),i.exit("blockQuotePrefixWhitespace"),i.exit("blockQuotePrefix"),c;return i.exit("blockQuotePrefix"),c(R)}}function iR(i,c,b){let w=this;return E;function E(R){if(be(R))return ke(i,N,"linePrefix",w.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R);return N(R)}function N(R){return i.attempt(ld,c,b)(R)}}function oR(i){i.exit("blockQuote")}var sd={name:"characterEscape",tokenize:lR};function lR(i,c,b){return w;function w(N){return i.enter("characterEscape"),i.enter("escapeMarker"),i.consume(N),i.exit("escapeMarker"),E}function E(N){if(SS(N))return i.enter("characterEscapeValue"),i.consume(N),i.exit("characterEscapeValue"),i.exit("characterEscape"),c;return b(N)}}var ud={name:"characterReference",tokenize:sR};function sR(i,c,b){let w=this,E=0,N,R;return D;function D(B){return i.enter("characterReference"),i.enter("characterReferenceMarker"),i.consume(B),i.exit("characterReferenceMarker"),L}function L(B){if(B===35)return i.enter("characterReferenceMarkerNumeric"),i.consume(B),i.exit("characterReferenceMarkerNumeric"),H;return i.enter("characterReferenceValue"),N=31,R=Dt,U(B)}function H(B){if(B===88||B===120)return i.enter("characterReferenceMarkerHexadecimal"),i.consume(B),i.exit("characterReferenceMarkerHexadecimal"),i.enter("characterReferenceValue"),N=6,R=kS,U;return i.enter("characterReferenceValue"),N=7,R=Tu,U(B)}function U(B){if(B===59&&E){let V=i.exit("characterReferenceValue");if(R===Dt&&!Hl(w.sliceSerialize(V)))return b(B);return i.enter("characterReferenceMarker"),i.consume(B),i.exit("characterReferenceMarker"),i.exit("characterReference"),c}if(R(B)&&E++<N)return i.consume(B),U;return b(B)}}var Au={partial:!0,tokenize:uR};function uR(i,c,b){let w=this;return E;function E(R){if(R===null)return b(R);return i.enter("lineEnding"),i.consume(R),i.exit("lineEnding"),N}function N(R){return w.parser.lazy[w.now().line]?b(R):c(R)}}var cd={concrete:!0,name:"codeFenced",tokenize:cR};function cR(i,c,b){let w=this,E={partial:!0,tokenize:oe},N=0,R=0,D;return L;function L(ae){return H(ae)}function H(ae){let ce=w.events[w.events.length-1];return N=ce&&ce[1].type==="linePrefix"?ce[2].sliceSerialize(ce[1],!0).length:0,D=ae,i.enter("codeFenced"),i.enter("codeFencedFence"),i.enter("codeFencedFenceSequence"),U(ae)}function U(ae){if(ae===D)return R++,i.consume(ae),U;if(R<3)return b(ae);return i.exit("codeFencedFenceSequence"),be(ae)?ke(i,B,"whitespace")(ae):B(ae)}function B(ae){if(ae===null||ge(ae))return i.exit("codeFencedFence"),w.interrupt?c(ae):i.check(Au,Z,te)(ae);return i.enter("codeFencedFenceInfo"),i.enter("chunkString",{contentType:"string"}),V(ae)}function V(ae){if(ae===null||ge(ae))return i.exit("chunkString"),i.exit("codeFencedFenceInfo"),B(ae);if(be(ae))return i.exit("chunkString"),i.exit("codeFencedFenceInfo"),ke(i,q,"whitespace")(ae);if(ae===96&&ae===D)return b(ae);return i.consume(ae),V}function q(ae){if(ae===null||ge(ae))return B(ae);return i.enter("codeFencedFenceMeta"),i.enter("chunkString",{contentType:"string"}),Y(ae)}function Y(ae){if(ae===null||ge(ae))return i.exit("chunkString"),i.exit("codeFencedFenceMeta"),B(ae);if(ae===96&&ae===D)return b(ae);return i.consume(ae),Y}function Z(ae){return i.attempt(E,te,ee)(ae)}function ee(ae){return i.enter("lineEnding"),i.consume(ae),i.exit("lineEnding"),P}function P(ae){return N>0&&be(ae)?ke(i,G,"linePrefix",N+1)(ae):G(ae)}function G(ae){if(ae===null||ge(ae))return i.check(Au,Z,te)(ae);return i.enter("codeFlowValue"),F(ae)}function F(ae){if(ae===null||ge(ae))return i.exit("codeFlowValue"),G(ae);return i.consume(ae),F}function te(ae){return i.exit("codeFenced"),c(ae)}function oe(ae,ce,ue){let ye=0;return ne;function ne(Me){return ae.enter("lineEnding"),ae.consume(Me),ae.exit("lineEnding"),Ve}function Ve(Me){return ae.enter("codeFencedFence"),be(Me)?ke(ae,ze,"linePrefix",w.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Me):ze(Me)}function ze(Me){if(Me===D)return ae.enter("codeFencedFenceSequence"),ve(Me);return ue(Me)}function ve(Me){if(Me===D)return ye++,ae.consume(Me),ve;if(ye>=R)return ae.exit("codeFencedFenceSequence"),be(Me)?ke(ae,Ae,"whitespace")(Me):Ae(Me);return ue(Me)}function Ae(Me){if(Me===null||ge(Me))return ae.exit("codeFencedFence"),ce(Me);return ue(Me)}}}var Nu={name:"codeIndented",tokenize:dR},fR={partial:!0,tokenize:mR};function dR(i,c,b){return w;function w(D){return i.enter("codeIndented"),Gg(i,E,b,"linePrefix",4,4)(D)}function E(D){if(D===null)return R(D);if(ge(D))return i.attempt(fR,E,R)(D);return i.enter("codeFlowValue"),N(D)}function N(D){if(D===null||ge(D))return i.exit("codeFlowValue"),E(D);return i.consume(D),N}function R(D){return i.exit("codeIndented"),c(D)}}function mR(i,c,b){let w=this;return E;function E(R){if(w.parser.lazy[w.now().line])return b(R);if(ge(R))return i.enter("lineEnding"),i.consume(R),i.exit("lineEnding"),E;return Gg(i,c,N,"linePrefix",4,4)(R)}function N(R){return ge(R)?E(R):b(R)}}var Fg={name:"codeText",previous:hR,resolve:pR,tokenize:gR};function pR(i){let c=i.length-4,b=3,w,E;if((i[b][1].type==="lineEnding"||i[b][1].type==="space")&&(i[c][1].type==="lineEnding"||i[c][1].type==="space")){w=b;while(++w<c)if(i[w][1].type==="codeTextData"){i[b][1].type="codeTextPadding",i[c][1].type="codeTextPadding",b+=2,c-=2;break}}w=b-1,c++;while(++w<=c)if(E===void 0){if(w!==c&&i[w][1].type!=="lineEnding")E=w}else if(w===c||i[w][1].type==="lineEnding"){if(i[E][1].type="codeTextData",w!==E+2)i[E][1].end=i[w-1][1].end,i.splice(E+2,w-E-2),c-=w-E-2,w=E+2;E=void 0}return i}function hR(i){return i!==96||this.events[this.events.length-1][1].type==="characterEscape"}function gR(i,c,b){let w=this,E=0,N,R;return D;function D(V){return i.enter("codeText"),i.enter("codeTextSequence"),L(V)}function L(V){if(V===96)return i.consume(V),E++,L;return i.exit("codeTextSequence"),H(V)}function H(V){if(V===null)return b(V);if(V===32)return i.enter("space"),i.consume(V),i.exit("space"),H;if(V===96)return R=i.enter("codeTextSequence"),N=0,B(V);if(ge(V))return i.enter("lineEnding"),i.consume(V),i.exit("lineEnding"),H;return i.enter("codeTextData"),U(V)}function U(V){if(V===null||V===32||V===96||ge(V))return i.exit("codeTextData"),H(V);return i.consume(V),U}function B(V){if(V===96)return i.consume(V),N++,B;if(N===E)return i.exit("codeTextSequence"),i.exit("codeText"),c(V);return R.type="codeTextData",U(V)}}class Qg{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if(i<this.left.length)return this.left[i];return this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,c){let b=c===null||c===void 0?Number.POSITIVE_INFINITY:c;if(b<this.left.length)return this.left.slice(i,b);if(i>this.left.length)return this.right.slice(this.right.length-b+this.left.length,this.right.length-i+this.left.length).reverse();return this.left.slice(i).concat(this.right.slice(this.right.length-b+this.left.length).reverse())}splice(i,c,b){let w=c||0;this.setCursor(Math.trunc(i));let E=this.right.splice(this.right.length-w,Number.POSITIVE_INFINITY);if(b)Ru(this.left,b);return E.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),Ru(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),Ru(this.right,i.reverse())}setCursor(i){if(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0)return;if(i<this.left.length){let c=this.left.splice(i,Number.POSITIVE_INFINITY);Ru(this.right,c.reverse())}else{let c=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);Ru(this.left,c.reverse())}}}function Ru(i,c){let b=0;if(c.length<1e4)i.push(...c);else while(b<c.length)i.push(...c.slice(b,b+1e4)),b+=1e4}function fd(i){let c={},b=-1,w,E,N,R,D,L,H,U=new Qg(i);while(++b<U.length){while(b in c)b=c[b];if(w=U.get(b),b&&w[1].type==="chunkFlow"&&U.get(b-1)[1].type==="listItemPrefix"){if(L=w[1]._tokenizer.events,N=0,N<L.length&&L[N][1].type==="lineEndingBlank")N+=2;if(N<L.length&&L[N][1].type==="content")while(++N<L.length){if(L[N][1].type==="content")break;if(L[N][1].type==="chunkText")L[N][1]._isInFirstContentOfListItem=!0,N++}}if(w[0]==="enter"){if(w[1].contentType)Object.assign(c,vR(U,b)),b=c[b],H=!0}else if(w[1]._container){N=b,E=void 0;while(N--)if(R=U.get(N),R[1].type==="lineEnding"||R[1].type==="lineEndingBlank"){if(R[0]==="enter"){if(E)U.get(E)[1].type="lineEndingBlank";R[1].type="lineEnding",E=N}}else if(R[1].type==="linePrefix"||R[1].type==="listItemIndent");else break;if(E)w[1].end={...U.get(E)[1].start},D=U.slice(E,b),D.unshift(w),U.splice(E,b-E+1,D)}}return en(i,0,Number.POSITIVE_INFINITY,U.slice(0)),!H}function vR(i,c){let b=i.get(c)[1],w=i.get(c)[2],E=c-1,N=[],R=b._tokenizer;if(!R){if(R=w.parser[b.contentType](b.start),b._contentTypeTextTrailing)R._contentTypeTextTrailing=!0}let D=R.events,L=[],H={},U,B,V=-1,q=b,Y=0,Z=0,ee=[Z];while(q){while(i.get(++E)[1]!==q);if(N.push(E),!q._tokenizer){if(U=w.sliceStream(q),!q.next)U.push(null);if(B)R.defineSkip(q.start);if(q._isInFirstContentOfListItem)R._gfmTasklistFirstContentOfListItem=!0;if(R.write(U),q._isInFirstContentOfListItem)R._gfmTasklistFirstContentOfListItem=void 0}B=q,q=q.next}q=b;while(++V<D.length)if(D[V][0]==="exit"&&D[V-1][0]==="enter"&&D[V][1].type===D[V-1][1].type&&D[V][1].start.line!==D[V][1].end.line)Z=V+1,ee.push(Z),q._tokenizer=void 0,q.previous=void 0,q=q.next;if(R.events=[],q)q._tokenizer=void 0,q.previous=void 0;else ee.pop();V=ee.length;while(V--){let P=D.slice(ee[V],ee[V+1]),G=N.pop();L.push([G,G+P.length-1]),i.splice(G,2,P)}L.reverse(),V=-1;while(++V<L.length)H[Y+L[V][0]]=Y+L[V][1],Y+=L[V][1]-L[V][0]-1;return H}var Xg={resolve:bR,tokenize:xR},yR={partial:!0,tokenize:wR};function bR(i){return fd(i),i}function xR(i,c){let b;return w;function w(D){return i.enter("content"),b=i.enter("chunkContent",{contentType:"content"}),E(D)}function E(D){if(D===null)return N(D);if(ge(D))return i.check(yR,R,N)(D);return i.consume(D),E}function N(D){return i.exit("chunkContent"),i.exit("content"),c(D)}function R(D){return i.consume(D),i.exit("chunkContent"),b.next=i.enter("chunkContent",{contentType:"content",previous:b}),b=b.next,E}}function wR(i,c,b){let w=this;return E;function E(R){return i.exit("chunkContent"),i.enter("lineEnding"),i.consume(R),i.exit("lineEnding"),ke(i,N,"linePrefix")}function N(R){if(R===null||ge(R))return b(R);let D=w.events[w.events.length-1];if(!w.parser.constructs.disable.null.includes("codeIndented")&&D&&D[1].type==="linePrefix"&&D[2].sliceSerialize(D[1],!0).length>=4)return c(R);return i.interrupt(w.parser.constructs.flow,b,c)(R)}}function dd(i,c,b,w,E,N,R,D,L){let H=L||Number.POSITIVE_INFINITY,U=0;return B;function B(P){if(P===60)return i.enter(w),i.enter(E),i.enter(N),i.consume(P),i.exit(N),V;if(P===null||P===32||P===41||Eo(P))return b(P);return i.enter(w),i.enter(R),i.enter(D),i.enter("chunkString",{contentType:"string"}),Z(P)}function V(P){if(P===62)return i.enter(N),i.consume(P),i.exit(N),i.exit(E),i.exit(w),c;return i.enter(D),i.enter("chunkString",{contentType:"string"}),q(P)}function q(P){if(P===62)return i.exit("chunkString"),i.exit(D),V(P);if(P===null||P===60||ge(P))return b(P);return i.consume(P),P===92?Y:q}function Y(P){if(P===60||P===62||P===92)return i.consume(P),q;return q(P)}function Z(P){if(!U&&(P===null||P===41||Ie(P)))return i.exit("chunkString"),i.exit(D),i.exit(R),i.exit(w),c(P);if(U<H&&P===40)return i.consume(P),U++,Z;if(P===41)return i.consume(P),U--,Z;if(P===null||P===32||P===40||Eo(P))return b(P);return i.consume(P),P===92?ee:Z}function ee(P){if(P===40||P===41||P===92)return i.consume(P),Z;return Z(P)}}function md(i,c,b,w,E,N){let R=this,D=0,L;return H;function H(q){return i.enter(w),i.enter(E),i.consume(q),i.exit(E),i.enter(N),U}function U(q){if(D>999||q===null||q===91||q===93&&!L||q===94&&!D&&"_hiddenFootnoteSupport"in R.parser.constructs)return b(q);if(q===93)return i.exit(N),i.enter(E),i.consume(q),i.exit(E),i.exit(w),c;if(ge(q))return i.enter("lineEnding"),i.consume(q),i.exit("lineEnding"),U;return i.enter("chunkString",{contentType:"string"}),B(q)}function B(q){if(q===null||q===91||q===93||ge(q)||D++>999)return i.exit("chunkString"),U(q);if(i.consume(q),!L)L=!be(q);return q===92?V:B}function V(q){if(q===91||q===92||q===93)return i.consume(q),D++,B;return B(q)}}function pd(i,c,b,w,E,N){let R;return D;function D(V){if(V===34||V===39||V===40)return i.enter(w),i.enter(E),i.consume(V),i.exit(E),R=V===40?41:V,L;return b(V)}function L(V){if(V===R)return i.enter(E),i.consume(V),i.exit(E),i.exit(w),c;return i.enter(N),H(V)}function H(V){if(V===R)return i.exit(N),L(R);if(V===null)return b(V);if(ge(V))return i.enter("lineEnding"),i.consume(V),i.exit("lineEnding"),ke(i,H,"linePrefix");return i.enter("chunkString",{contentType:"string"}),U(V)}function U(V){if(V===R||V===null||ge(V))return i.exit("chunkString"),H(V);return i.consume(V),V===92?B:U}function B(V){if(V===R||V===92)return i.consume(V),U;return U(V)}}function Co(i,c){let b;return w;function w(E){if(ge(E))return i.enter("lineEnding"),i.consume(E),i.exit("lineEnding"),b=!0,w;if(be(E))return ke(i,w,b?"linePrefix":"lineSuffix")(E);return c(E)}}var Zg={name:"definition",tokenize:SR},kR={partial:!0,tokenize:ER};function SR(i,c,b){let w=this,E;return N;function N(q){return i.enter("definition"),R(q)}function R(q){return md.call(w,i,D,b,"definitionLabel","definitionLabelMarker","definitionLabelString")(q)}function D(q){if(E=kn(w.sliceSerialize(w.events[w.events.length-1][1]).slice(1,-1)),q===58)return i.enter("definitionMarker"),i.consume(q),i.exit("definitionMarker"),L;return b(q)}function L(q){return Ie(q)?Co(i,H)(q):H(q)}function H(q){return dd(i,U,b,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(q)}function U(q){return i.attempt(kR,B,B)(q)}function B(q){return be(q)?ke(i,V,"whitespace")(q):V(q)}function V(q){if(q===null||ge(q))return i.exit("definition"),w.parser.defined.push(E),c(q);return b(q)}}function ER(i,c,b){return w;function w(D){return Ie(D)?Co(i,E)(D):b(D)}function E(D){return pd(i,N,b,"definitionTitle","definitionTitleMarker","definitionTitleString")(D)}function N(D){return be(D)?ke(i,R,"whitespace")(D):R(D)}function R(D){return D===null||ge(D)?c(D):b(D)}}var Kg={name:"hardBreakEscape",tokenize:TR};function TR(i,c,b){return w;function w(N){return i.enter("hardBreakEscape"),i.consume(N),E}function E(N){if(ge(N))return i.exit("hardBreakEscape"),c(N);return b(N)}}var Jg={name:"headingAtx",resolve:CR,tokenize:AR};function CR(i,c){let b=i.length-2,w=3;if(i[w][1].type==="whitespace")w+=2;if(b-2>w&&i[b][1].type==="whitespace")b-=2;if(i[b][1].type==="atxHeadingSequence"&&(w===b-1||b-4>w&&i[b-2][1].type==="whitespace"))b-=w+1===b?2:4;if(b>w){let E={type:"atxHeadingText",start:i[w][1].start,end:i[b][1].end},N={type:"chunkText",start:i[w][1].start,end:i[b][1].end,contentType:"text"};en(i,w,b-w+1,[["enter",E,c],["enter",N,c],["exit",N,c],["exit",E,c]])}return i}function AR(i,c,b){let w=0;return E;function E(U){return i.enter("atxHeading"),N(U)}function N(U){return i.enter("atxHeadingSequence"),R(U)}function R(U){if(U===35&&w++<6)return i.consume(U),R;if(U===null||Ie(U))return i.exit("atxHeadingSequence"),D(U);return b(U)}function D(U){if(U===35)return i.enter("atxHeadingSequence"),L(U);if(U===null||ge(U))return i.exit("atxHeading"),c(U);if(be(U))return ke(i,D,"whitespace")(U);return i.enter("atxHeadingText"),H(U)}function L(U){if(U===35)return i.consume(U),L;return i.exit("atxHeadingSequence"),D(U)}function H(U){if(U===null||U===35||Ie(U))return i.exit("atxHeadingText"),D(U);return i.consume(U),H}}var RS=["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"],Wg=["pre","script","style","textarea"];var $g={concrete:!0,name:"htmlFlow",resolveTo:RR,tokenize:MR},NR={partial:!0,tokenize:zR};function RR(i){let c=i.length;while(c--)if(i[c][0]==="enter"&&i[c][1].type==="htmlFlow")break;if(c>1&&i[c-2][1].type==="linePrefix")i[c][1].start=i[c-2][1].start,i[c+1][1].start=i[c-2][1].start,i.splice(c-2,2);return i}function MR(i,c,b){let w=this,E,N,R,D,L;return H;function H(W){return U(W)}function U(W){return i.enter("htmlFlow"),i.enter("htmlFlowData"),i.consume(W),B}function B(W){if(W===33)return i.consume(W),V;if(W===47)return i.consume(W),N=!0,Z;if(W===63)return i.consume(W),E=3,w.interrupt?c:X;if(Qt(W))return i.consume(W),R=String.fromCharCode(W),ee;return b(W)}function V(W){if(W===45)return i.consume(W),E=2,q;if(W===91)return i.consume(W),E=5,D=0,Y;if(Qt(W))return i.consume(W),E=4,w.interrupt?c:X;return b(W)}function q(W){if(W===45)return i.consume(W),w.interrupt?c:X;return b(W)}function Y(W){if(W==="CDATA[".charCodeAt(D++)){if(i.consume(W),D===6)return w.interrupt?c:ze;return Y}return b(W)}function Z(W){if(Qt(W))return i.consume(W),R=String.fromCharCode(W),ee;return b(W)}function ee(W){if(W===null||W===47||W===62||Ie(W)){let It=W===47,Be=R.toLowerCase();if(!It&&!N&&Wg.includes(Be))return E=1,w.interrupt?c(W):ze(W);if(RS.includes(R.toLowerCase())){if(E=6,It)return i.consume(W),P;return w.interrupt?c(W):ze(W)}return E=7,w.interrupt&&!w.parser.lazy[w.now().line]?b(W):N?G(W):F(W)}if(W===45||Dt(W))return i.consume(W),R+=String.fromCharCode(W),ee;return b(W)}function P(W){if(W===62)return i.consume(W),w.interrupt?c:ze;return b(W)}function G(W){if(be(W))return i.consume(W),G;return ne(W)}function F(W){if(W===47)return i.consume(W),ne;if(W===58||W===95||Qt(W))return i.consume(W),te;if(be(W))return i.consume(W),F;return ne(W)}function te(W){if(W===45||W===46||W===58||W===95||Dt(W))return i.consume(W),te;return oe(W)}function oe(W){if(W===61)return i.consume(W),ae;if(be(W))return i.consume(W),oe;return F(W)}function ae(W){if(W===null||W===60||W===61||W===62||W===96)return b(W);if(W===34||W===39)return i.consume(W),L=W,ce;if(be(W))return i.consume(W),ae;return ue(W)}function ce(W){if(W===L)return i.consume(W),L=null,ye;if(W===null||ge(W))return b(W);return i.consume(W),ce}function ue(W){if(W===null||W===34||W===39||W===47||W===60||W===61||W===62||W===96||Ie(W))return oe(W);return i.consume(W),ue}function ye(W){if(W===47||W===62||be(W))return F(W);return b(W)}function ne(W){if(W===62)return i.consume(W),Ve;return b(W)}function Ve(W){if(W===null||ge(W))return ze(W);if(be(W))return i.consume(W),Ve;return b(W)}function ze(W){if(W===45&&E===2)return i.consume(W),tt;if(W===60&&E===1)return i.consume(W),Ke;if(W===62&&E===4)return i.consume(W),De;if(W===63&&E===3)return i.consume(W),X;if(W===93&&E===5)return i.consume(W),ie;if(ge(W)&&(E===6||E===7))return i.exit("htmlFlowData"),i.check(NR,Rt,ve)(W);if(W===null||ge(W))return i.exit("htmlFlowData"),ve(W);return i.consume(W),ze}function ve(W){return i.check(Au,Ae,Rt)(W)}function Ae(W){return i.enter("lineEnding"),i.consume(W),i.exit("lineEnding"),Me}function Me(W){if(W===null||ge(W))return ve(W);return i.enter("htmlFlowData"),ze(W)}function tt(W){if(W===45)return i.consume(W),X;return ze(W)}function Ke(W){if(W===47)return i.consume(W),R="",Tt;return ze(W)}function Tt(W){if(W===62){let It=R.toLowerCase();if(Wg.includes(It))return i.consume(W),De;return ze(W)}if(Qt(W)&&R.length<8)return i.consume(W),R+=String.fromCharCode(W),Tt;return ze(W)}function ie(W){if(W===93)return i.consume(W),X;return ze(W)}function X(W){if(W===62)return i.consume(W),De;if(W===45&&E===2)return i.consume(W),X;return ze(W)}function De(W){if(W===null||ge(W))return i.exit("htmlFlowData"),Rt(W);return i.consume(W),De}function Rt(W){return i.exit("htmlFlow"),c(W)}}function zR(i,c,b){return w;function w(E){return i.enter("lineEnding"),i.consume(E),i.exit("lineEnding"),i.attempt(da,c,b)}}var ev={name:"htmlText",tokenize:OR};function OR(i,c,b){let w=this,E,N,R;return D;function D(X){return i.enter("htmlText"),i.enter("htmlTextData"),i.consume(X),L}function L(X){if(X===33)return i.consume(X),H;if(X===47)return i.consume(X),oe;if(X===63)return i.consume(X),F;if(Qt(X))return i.consume(X),ue;return b(X)}function H(X){if(X===45)return i.consume(X),U;if(X===91)return i.consume(X),N=0,Y;if(Qt(X))return i.consume(X),G;return b(X)}function U(X){if(X===45)return i.consume(X),q;return b(X)}function B(X){if(X===null)return b(X);if(X===45)return i.consume(X),V;if(ge(X))return R=B,Ke(X);return i.consume(X),B}function V(X){if(X===45)return i.consume(X),q;return B(X)}function q(X){return X===62?tt(X):X===45?V(X):B(X)}function Y(X){if(X==="CDATA[".charCodeAt(N++))return i.consume(X),N===6?Z:Y;return b(X)}function Z(X){if(X===null)return b(X);if(X===93)return i.consume(X),ee;if(ge(X))return R=Z,Ke(X);return i.consume(X),Z}function ee(X){if(X===93)return i.consume(X),P;return Z(X)}function P(X){if(X===62)return tt(X);if(X===93)return i.consume(X),P;return Z(X)}function G(X){if(X===null||X===62)return tt(X);if(ge(X))return R=G,Ke(X);return i.consume(X),G}function F(X){if(X===null)return b(X);if(X===63)return i.consume(X),te;if(ge(X))return R=F,Ke(X);return i.consume(X),F}function te(X){return X===62?tt(X):F(X)}function oe(X){if(Qt(X))return i.consume(X),ae;return b(X)}function ae(X){if(X===45||Dt(X))return i.consume(X),ae;return ce(X)}function ce(X){if(ge(X))return R=ce,Ke(X);if(be(X))return i.consume(X),ce;return tt(X)}function ue(X){if(X===45||Dt(X))return i.consume(X),ue;if(X===47||X===62||Ie(X))return ye(X);return b(X)}function ye(X){if(X===47)return i.consume(X),tt;if(X===58||X===95||Qt(X))return i.consume(X),ne;if(ge(X))return R=ye,Ke(X);if(be(X))return i.consume(X),ye;return tt(X)}function ne(X){if(X===45||X===46||X===58||X===95||Dt(X))return i.consume(X),ne;return Ve(X)}function Ve(X){if(X===61)return i.consume(X),ze;if(ge(X))return R=Ve,Ke(X);if(be(X))return i.consume(X),Ve;return ye(X)}function ze(X){if(X===null||X===60||X===61||X===62||X===96)return b(X);if(X===34||X===39)return i.consume(X),E=X,ve;if(ge(X))return R=ze,Ke(X);if(be(X))return i.consume(X),ze;return i.consume(X),Ae}function ve(X){if(X===E)return i.consume(X),E=void 0,Me;if(X===null)return b(X);if(ge(X))return R=ve,Ke(X);return i.consume(X),ve}function Ae(X){if(X===null||X===34||X===39||X===60||X===61||X===96)return b(X);if(X===47||X===62||Ie(X))return ye(X);return i.consume(X),Ae}function Me(X){if(X===47||X===62||Ie(X))return ye(X);return b(X)}function tt(X){if(X===62)return i.consume(X),i.exit("htmlTextData"),i.exit("htmlText"),c;return b(X)}function Ke(X){return i.exit("htmlTextData"),i.enter("lineEnding"),i.consume(X),i.exit("lineEnding"),Tt}function Tt(X){return be(X)?ke(i,ie,"linePrefix",w.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):ie(X)}function ie(X){return i.enter("htmlTextData"),R(X)}}var Ao={name:"labelEnd",resolveAll:HR,resolveTo:UR,tokenize:BR},_R={tokenize:VR},DR={tokenize:qR},LR={tokenize:PR};function HR(i){let c=-1,b=[];while(++c<i.length){let w=i[c][1];if(b.push(i[c]),w.type==="labelImage"||w.type==="labelLink"||w.type==="labelEnd"){let E=w.type==="labelImage"?4:2;w.type="data",c+=E}}if(i.length!==b.length)en(i,0,i.length,b);return i}function UR(i,c){let b=i.length,w=0,E,N,R;while(b--){let U=i[b][1];if(E){if(U.type==="link"||U.type==="labelLink"&&U._inactive)break;if(i[b][0]==="enter"&&U.type==="labelLink")U._inactive=!0}else if(N){if(i[b][0]==="enter"&&(U.type==="labelImage"||U.type==="labelLink")&&!U._balanced){if(E=b,U.type!=="labelLink"){w=2;break}}}else if(U.type==="labelEnd")N=b}let D={type:i[E][1].type==="labelLink"?"link":"image",start:{...i[E][1].start},end:{...i[i.length-1][1].end}},L={type:"label",start:{...i[E][1].start},end:{...i[N][1].end}},H={type:"labelText",start:{...i[E+w+2][1].end},end:{...i[N-2][1].start}};return R=[["enter",D,c],["enter",L,c]],R=Rn(R,i.slice(E+1,E+w+3)),R=Rn(R,[["enter",H,c]]),R=Rn(R,Ni(c.parser.constructs.insideSpan.null,i.slice(E+w+4,N-3),c)),R=Rn(R,[["exit",H,c],i[N-2],i[N-1],["exit",L,c]]),R=Rn(R,i.slice(N+1)),R=Rn(R,[["exit",D,c]]),en(i,E,i.length,R),i}function BR(i,c,b){let w=this,E=w._labelStarts,N,R;if(E){while(E.length>0&&E[E.length-1]._balanced)E.pop();N=E[E.length-1]}return D;function D(V){if(!N)return b(V);if(N._inactive)return B(V);return R=w.parser.defined.includes(kn(w.sliceSerialize({start:N.end,end:w.now()}))),i.enter("labelEnd"),i.enter("labelMarker"),i.consume(V),i.exit("labelMarker"),i.exit("labelEnd"),L}function L(V){if(V===40)return i.attempt(_R,U,R?U:B)(V);if(V===91)return i.attempt(DR,U,R?H:B)(V);return R?U(V):B(V)}function H(V){return i.attempt(LR,U,B)(V)}function U(V){return E.pop(),c(V)}function B(V){return N._balanced=!0,b(V)}}function VR(i,c,b){return w;function w(B){return i.enter("resource"),i.enter("resourceMarker"),i.consume(B),i.exit("resourceMarker"),E}function E(B){return Ie(B)?Co(i,N)(B):N(B)}function N(B){if(B===41)return U(B);return dd(i,R,D,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(B)}function R(B){return Ie(B)?Co(i,L)(B):U(B)}function D(B){return b(B)}function L(B){if(B===34||B===39||B===40)return pd(i,H,b,"resourceTitle","resourceTitleMarker","resourceTitleString")(B);return U(B)}function H(B){return Ie(B)?Co(i,U)(B):U(B)}function U(B){if(B===41)return i.enter("resourceMarker"),i.consume(B),i.exit("resourceMarker"),i.exit("resource"),c;return b(B)}}function qR(i,c,b){let w=this;return E;function E(D){return md.call(w,i,N,R,"reference","referenceMarker","referenceString")(D)}function N(D){return w.parser.defined.includes(kn(w.sliceSerialize(w.events[w.events.length-1][1]).slice(1,-1)))?c(D):b(D)}function R(D){return b(D)}}function PR(i,c,b){return w;function w(N){return i.enter("reference"),i.enter("referenceMarker"),i.consume(N),i.exit("referenceMarker"),E}function E(N){if(N===93)return i.enter("referenceMarker"),i.consume(N),i.exit("referenceMarker"),i.exit("reference"),c;return b(N)}}var tv={name:"labelStartImage",resolveAll:Ao.resolveAll,tokenize:IR};function IR(i,c,b){let w=this,E;return N;function N(L){return i.enter("labelImage"),i.enter("labelImageMarker"),i.consume(L),i.exit("labelImageMarker"),R}function R(L){if(L===91)return i.enter("labelMarker"),i.consume(L),i.exit("labelMarker"),E=i.exit("labelImage"),D;return b(L)}function D(L){if(L===94&&"_hiddenFootnoteSupport"in w.parser.constructs)return b(L);return w._labelStarts=w._labelStarts||[],w._labelStarts.push(E),c(L)}}var nv={name:"labelStartLink",resolveAll:Ao.resolveAll,tokenize:jR};function jR(i,c,b){let w=this,E;return N;function N(D){return i.enter("labelLink"),i.enter("labelMarker"),i.consume(D),i.exit("labelMarker"),E=i.exit("labelLink"),R}function R(D){if(D===94&&"_hiddenFootnoteSupport"in w.parser.constructs)return b(D);return w._labelStarts=w._labelStarts||[],w._labelStarts.push(E),c(D)}}var Mu={name:"lineEnding",tokenize:GR};function GR(i,c){return b;function b(w){return i.enter("lineEnding"),i.consume(w),i.exit("lineEnding"),ke(i,c,"linePrefix")}}var No={name:"thematicBreak",tokenize:YR};function YR(i,c,b){let w=0,E;return N;function N(H){return i.enter("thematicBreak"),R(H)}function R(H){return E=H,D(H)}function D(H){if(H===E)return i.enter("thematicBreakSequence"),L(H);if(w>=3&&(H===null||ge(H)))return i.exit("thematicBreak"),c(H);return b(H)}function L(H){if(H===E)return i.consume(H),w++,L;return i.exit("thematicBreakSequence"),be(H)?ke(i,D,"whitespace")(H):D(H)}}var En={continuation:{tokenize:ZR},exit:JR,name:"list",tokenize:XR},FR={partial:!0,tokenize:WR},QR={partial:!0,tokenize:KR};function XR(i,c,b){let w=this,E=w.events[w.events.length-1],N=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,R=0;return D;function D(q){let Y=w.containerState.type||(q===42||q===43||q===45?"listUnordered":"listOrdered");if(Y==="listUnordered"?!w.containerState.marker||q===w.containerState.marker:Tu(q)){if(!w.containerState.type)w.containerState.type=Y,i.enter(Y,{_container:!0});if(Y==="listUnordered")return i.enter("listItemPrefix"),q===42||q===45?i.check(No,b,H)(q):H(q);if(!w.interrupt||q===49)return i.enter("listItemPrefix"),i.enter("listItemValue"),L(q)}return b(q)}function L(q){if(Tu(q)&&++R<10)return i.consume(q),L;if((!w.interrupt||R<2)&&(w.containerState.marker?q===w.containerState.marker:q===41||q===46))return i.exit("listItemValue"),H(q);return b(q)}function H(q){return i.enter("listItemMarker"),i.consume(q),i.exit("listItemMarker"),w.containerState.marker=w.containerState.marker||q,i.check(da,w.interrupt?b:U,i.attempt(FR,V,B))}function U(q){return w.containerState.initialBlankLine=!0,N++,V(q)}function B(q){if(be(q))return i.enter("listItemPrefixWhitespace"),i.consume(q),i.exit("listItemPrefixWhitespace"),V;return b(q)}function V(q){return w.containerState.size=N+w.sliceSerialize(i.exit("listItemPrefix"),!0).length,c(q)}}function ZR(i,c,b){let w=this;return w.containerState._closeFlow=void 0,i.check(da,E,N);function E(D){return w.containerState.furtherBlankLines=w.containerState.furtherBlankLines||w.containerState.initialBlankLine,ke(i,c,"listItemIndent",w.containerState.size+1)(D)}function N(D){if(w.containerState.furtherBlankLines||!be(D))return w.containerState.furtherBlankLines=void 0,w.containerState.initialBlankLine=void 0,R(D);return w.containerState.furtherBlankLines=void 0,w.containerState.initialBlankLine=void 0,i.attempt(QR,c,R)(D)}function R(D){return w.containerState._closeFlow=!0,w.interrupt=void 0,ke(i,i.attempt(En,c,b),"linePrefix",w.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D)}}function KR(i,c,b){let w=this;return ke(i,E,"listItemIndent",w.containerState.size+1);function E(N){let R=w.events[w.events.length-1];return R&&R[1].type==="listItemIndent"&&R[2].sliceSerialize(R[1],!0).length===w.containerState.size?c(N):b(N)}}function JR(i){i.exit(this.containerState.type)}function WR(i,c,b){let w=this;return ke(i,E,"listItemPrefixWhitespace",w.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function E(N){let R=w.events[w.events.length-1];return!be(N)&&R&&R[1].type==="listItemPrefixWhitespace"?c(N):b(N)}}var hd={name:"setextUnderline",resolveTo:$R,tokenize:eM};function $R(i,c){let b=new Ai,w=i.length,E,N,R;while(w--)if(i[w][0]==="enter"){if(i[w][1].type==="content"){E=w;break}if(i[w][1].type==="paragraph")N=w}else{if(i[w][1].type==="content")b.add(w,1,[]);if(!R&&i[w][1].type==="definition")R=w}let D={type:"setextHeading",start:{...i[E][1].start},end:{...i[i.length-1][1].end}};if(i[N][1].type="setextHeadingText",R)b.add(N,0,[["enter",D,c]]),b.add(R+1,0,[["exit",i[E][1],c]]),i[E][1].end={...i[R][1].end};else i[E][1]=D;return b.add(i.length,0,[["exit",D,c]]),b.consume(i),i}function eM(i,c,b){let w=this,E;return N;function N(H){let U=w.events.length,B;while(U--)if(w.events[U][1].type!=="lineEnding"&&w.events[U][1].type!=="linePrefix"&&w.events[U][1].type!=="content"){B=w.events[U][1].type==="paragraph";break}if(!w.parser.lazy[w.now().line]&&(w.interrupt||B))return i.enter("setextHeadingLine"),E=H,R(H);return b(H)}function R(H){return i.enter("setextHeadingLineSequence"),D(H)}function D(H){if(H===E)return i.consume(H),D;return i.exit("setextHeadingLineSequence"),be(H)?ke(i,L,"lineSuffix")(H):L(H)}function L(H){if(H===null||ge(H))return i.exit("setextHeadingLine"),c(H);return b(H)}}var MS={tokenize:tM};function tM(i){let c=this,b=i.attempt(da,w,i.attempt(this.parser.constructs.flowInitial,E,ke(i,i.attempt(this.parser.constructs.flow,E,i.attempt(Xg,E)),"linePrefix")));return b;function w(N){if(N===null){i.consume(N);return}return i.enter("lineEndingBlank"),i.consume(N),i.exit("lineEndingBlank"),c.currentConstruct=void 0,b}function E(N){if(N===null){i.consume(N);return}return i.enter("lineEnding"),i.consume(N),i.exit("lineEnding"),c.currentConstruct=void 0,b}}var zS={resolveAll:LS()},OS=DS("string"),_S=DS("text");function DS(i){return{resolveAll:LS(i==="text"?nM:void 0),tokenize:c};function c(b){let w=this,E=this.parser.constructs[i],N=b.attempt(E,R,D);return R;function R(U){return H(U)?N(U):D(U)}function D(U){if(U===null){b.consume(U);return}return b.enter("data"),b.consume(U),L}function L(U){if(H(U))return b.exit("data"),N(U);return b.consume(U),L}function H(U){if(U===null)return!0;let B=E[U],V=-1;if(B)while(++V<B.length){let q=B[V];if(!q.previous||q.previous.call(w,w.previous))return!0}return!1}}}function LS(i){return c;function c(b,w){let E=-1,N;while(++E<=b.length)if(N===void 0){if(b[E]&&b[E][1].type==="data")N=E,E++}else if(!b[E]||b[E][1].type!=="data"){if(E!==N+2)b[N][1].end=b[E-1][1].end,b.splice(N+2,E-N-2),E=N+2;N=void 0}return i?i(b,w):b}}function nM(i,c){let b=new Ai,w=0;while(++w<=i.length)if((w===i.length||i[w][1].type==="lineEnding")&&i[w-1][1].type==="data"){let E=i[w-1][1],N=c.sliceStream(E),R=N.length,D=-1,L=0,H;while(R--){let U=N[R];if(typeof U==="string"){D=U.length;while(U.charCodeAt(D-1)===32)L++,D--;if(D)break;D=-1}else if(U===-2)H=!0,L++;else if(U===-1);else{R++;break}}if(c._contentTypeTextTrailing&&w===i.length)L=0;if(L){let U={type:w===i.length||H||L<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:R?D:E.start._bufferIndex+D,_index:E.start._index+R,line:E.end.line,column:E.end.column-L,offset:E.end.offset-L},end:{...E.end}};if(E.end={...U.start},E.start.offset===E.end.offset)Object.assign(E,U);else b.add(w,0,[["enter",U,c],["exit",U,c]])}w++}return b.consume(i),i}var rM={[42]:En,[43]:En,[45]:En,[48]:En,[49]:En,[50]:En,[51]:En,[52]:En,[53]:En,[54]:En,[55]:En,[56]:En,[57]:En,[62]:ld},aM={[91]:Zg},iM={[-2]:Nu,[-1]:Nu,[32]:Nu},oM={[35]:Jg,[42]:No,[45]:[hd,No],[60]:$g,[61]:hd,[95]:No,[96]:cd,[126]:cd},lM={[38]:ud,[92]:sd},sM={[-5]:Mu,[-4]:Mu,[-3]:Mu,[33]:tv,[38]:ud,[42]:Cu,[60]:[Yg,ev],[91]:nv,[92]:[Kg,sd],[93]:Ao,[95]:Cu,[96]:Fg},uM={null:[Cu,zS]},cM={null:[42,95]},fM={null:[]};function HS(i,c,b){let w={_bufferIndex:-1,_index:0,line:b&&b.line||1,column:b&&b.column||1,offset:b&&b.offset||0},E={},N=[],R=[],D=[],L=!0,H={attempt:ye(ce),check:ye(ue),consume:te,enter:oe,exit:ae,interrupt:ye(ue,{interrupt:!0})},U={code:null,containerState:{},defineSkip:P,events:[],now:ee,parser:i,previous:null,sliceSerialize:Y,sliceStream:Z,write:q},B=c.tokenize.call(U,H),V;if(c.resolveAll)N.push(c);return U;function q(ve){if(R=Rn(R,ve),G(),R[R.length-1]!==null)return[];return ne(c,0),U.events=Ni(N,U.events,U),U.events}function Y(ve,Ae){return mM(Z(ve),Ae)}function Z(ve){return dM(R,ve)}function ee(){let{_bufferIndex:ve,_index:Ae,line:Me,column:tt,offset:Ke}=w;return{_bufferIndex:ve,_index:Ae,line:Me,column:tt,offset:Ke}}function P(ve){E[ve.line]=ve.column,ze()}function G(){while(w._index<R.length){let ve=R[w._index];if(typeof ve==="string"){let Ae=w._index;if(w._bufferIndex<0)w._bufferIndex=0;while(w._index===Ae&&w._bufferIndex<ve.length)F(ve.charCodeAt(w._bufferIndex))}else F(ve)}}function F(ve){L=void 0,V=ve,B=B(ve)}function te(ve){if(ge(ve))w.line++,w.column=1,w.offset+=ve===-3?2:1,ze();else if(ve!==-1)w.column++,w.offset++;if(w._bufferIndex<0)w._index++;else if(w._bufferIndex++,w._bufferIndex===R[w._index].length)w._bufferIndex=-1,w._index++;U.previous=ve,L=!0}function oe(ve,Ae){let Me=Ae||{};return Me.type=ve,Me.start=ee(),U.events.push(["enter",Me,U]),D.push(Me),Me}function ae(ve){let Ae=D.pop();return Ae.end=ee(),U.events.push(["exit",Ae,U]),Ae}function ce(ve,Ae){ne(ve,Ae.from)}function ue(ve,Ae){Ae.restore()}function ye(ve,Ae){return Me;function Me(tt,Ke,Tt){let ie,X,De,Rt;return Array.isArray(tt)?It(tt):("tokenize"in tt)?It([tt]):W(tt);function W(Lt){return Ua;function Ua(pa){let zi=pa!==null&&Lt[pa],Do=pa!==null&&Lt.null,Id=[...Array.isArray(zi)?zi:zi?[zi]:[],...Array.isArray(Do)?Do:Do?[Do]:[]];return It(Id)(pa)}}function It(Lt){if(ie=Lt,X=0,Lt.length===0)return Tt;return Be(Lt[X])}function Be(Lt){return Ua;function Ua(pa){if(Rt=Ve(),De=Lt,!Lt.partial)U.currentConstruct=Lt;if(Lt.name&&U.parser.constructs.disable.null.includes(Lt.name))return Qn(pa);return Lt.tokenize.call(Ae?Object.assign(Object.create(U),Ae):U,H,Zr,Qn)(pa)}}function Zr(Lt){return L=!0,ve(De,Rt),Ke}function Qn(Lt){if(L=!0,Rt.restore(),++X<ie.length)return Be(ie[X]);return Tt}}}function ne(ve,Ae){if(ve.resolveAll&&!N.includes(ve))N.push(ve);if(ve.resolve)en(U.events,Ae,U.events.length-Ae,ve.resolve(U.events.slice(Ae),U));if(ve.resolveTo)U.events=ve.resolveTo(U.events,U)}function Ve(){let ve=ee(),{previous:Ae,currentConstruct:Me}=U,tt=U.events.length,Ke=Array.from(D);return{from:tt,restore:Tt};function Tt(){w=ve,U.previous=Ae,U.currentConstruct=Me,U.events.length=tt,D=Ke,ze()}}function ze(){if(w.line in E&&w.column<2)w.column=E[w.line],w.offset+=E[w.line]-1}}function dM(i,c){let b=c.start._index,w=c.start._bufferIndex,E=c.end._index,N=c.end._bufferIndex,R;if(b===E)R=[i[b].slice(w,N)];else{if(R=i.slice(b,E),w>-1){let D=R[0];if(typeof D==="string")R[0]=D.slice(w);else R.shift()}if(N>0)R.push(i[E].slice(0,N))}return R}function mM(i,c){let b=-1,w=[],E;while(++b<i.length){let N=i[b],R;if(typeof N==="string")R=N;else switch(N){case-5:{R="\r";break}case-4:{R=`
25
- `;break}case-3:{R=`\r
26
- `;break}case-2:{R=c?" ":"\t";break}case-1:{if(!c&&E)continue;R=" ";break}default:R=String.fromCharCode(N)}E=N===-2,w.push(R)}return w.join("")}function av(i){let w={constructs:id([rv,...(i||{}).extensions||[]]),content:E(ES),defined:[],document:E(AS),flow:E(MS),lazy:{},string:E(OS),text:E(_S)};return w;function E(N){return R;function R(D){return HS(w,N,D)}}}function iv(i){while(!fd(i));return i}var US=/[\0\t\n\r]/g;function ov(){let i=1,c="",b=!0,w;return E;function E(N,R,D){N=c+(typeof N==="string"?N.toString():new TextDecoder(R||void 0).decode(N));let L=[],H=0;if(c="",b){if(N.charCodeAt(0)===65279)H++;b=void 0}while(H<N.length){US.lastIndex=H;let U=US.exec(N),B=U&&U.index!==void 0?U.index:N.length,V=N.charCodeAt(B);if(!U){c=N.slice(H);break}if(V===10&&H===B&&w)L.push(-3),w=void 0;else{if(w)L.push(-5),w=void 0;if(H<B)L.push(N.slice(H,B)),i+=B-H;switch(V){case 0:{L.push(65533),i++;break}case 9:{let q=Math.ceil(i/4)*4;L.push(-2);while(i++<q)L.push(-1);break}case 10:{L.push(-4),i=1;break}default:w=!0,i=1}}H=B+1}if(D){if(w)L.push(-5);if(c)L.push(c);L.push(null)}return L}}var pM=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function BS(i){return i.replace(pM,hM)}function hM(i,c,b){if(c)return c;if(b.charCodeAt(0)===35){let E=b.charCodeAt(1),N=E===120||E===88;return od(b.slice(N?2:1),N?16:10)}return Hl(b)||i}var qS={}.hasOwnProperty;function lv(i,c,b){if(c&&typeof c==="object")b=c,c=void 0;return gM(b)(iv(av(b).document().write(ov()(i,c,!0))))}function gM(i){let c={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:N(vy),autolinkProtocol:ye,autolinkEmail:ye,atxHeading:N(py),blockQuote:N(pa),characterEscape:ye,characterReference:ye,codeFenced:N(zi),codeFencedFenceInfo:R,codeFencedFenceMeta:R,codeIndented:N(zi,R),codeText:N(Do,R),codeTextData:ye,data:ye,codeFlowValue:ye,definition:N(Id),definitionDestinationString:R,definitionLabelString:R,definitionTitleString:R,emphasis:N(JE),hardBreakEscape:N(hy),hardBreakTrailing:N(hy),htmlFlow:N(gy,R),htmlFlowData:ye,htmlText:N(gy,R),htmlTextData:ye,image:N(WE),label:R,link:N(vy),listItem:N($E),listItemValue:V,listOrdered:N(yy,B),listUnordered:N(yy),paragraph:N(eT),reference:W,referenceString:R,resourceDestinationString:R,resourceTitleString:R,setextHeading:N(py),strong:N(tT),thematicBreak:N(rT)},exit:{atxHeading:L(),atxHeadingSequence:oe,autolink:L(),autolinkEmail:Ua,autolinkProtocol:Lt,blockQuote:L(),characterEscapeValue:ne,characterReferenceMarkerHexadecimal:Be,characterReferenceMarkerNumeric:Be,characterReferenceValue:Zr,characterReference:Qn,codeFenced:L(ee),codeFencedFence:Z,codeFencedFenceInfo:q,codeFencedFenceMeta:Y,codeFlowValue:ne,codeIndented:L(P),codeText:L(Me),codeTextData:ne,data:ne,definition:L(),definitionDestinationString:te,definitionLabelString:G,definitionTitleString:F,emphasis:L(),hardBreakEscape:L(ze),hardBreakTrailing:L(ze),htmlFlow:L(ve),htmlFlowData:ne,htmlText:L(Ae),htmlTextData:ne,image:L(Ke),label:ie,labelText:Tt,lineEnding:Ve,link:L(tt),listItem:L(),listOrdered:L(),listUnordered:L(),paragraph:L(),referenceString:It,resourceDestinationString:X,resourceTitleString:De,resource:Rt,setextHeading:L(ue),setextHeadingLineSequence:ce,setextHeadingText:ae,strong:L(),thematicBreak:L()}};PS(c,(i||{}).mdastExtensions||[]);let b={};return w;function w(se){let he={type:"root",children:[]},Oe={stack:[he],tokenStack:[],config:c,enter:D,exit:H,buffer:R,resume:U,data:b},Ze=[],pt=-1;while(++pt<se.length)if(se[pt][1].type==="listOrdered"||se[pt][1].type==="listUnordered")if(se[pt][0]==="enter")Ze.push(pt);else{let Or=Ze.pop();pt=E(se,Or,pt)}pt=-1;while(++pt<se.length){let Or=c[se[pt][0]];if(qS.call(Or,se[pt][1].type))Or[se[pt][1].type].call(Object.assign({sliceSerialize:se[pt][2].sliceSerialize},Oe),se[pt][1])}if(Oe.tokenStack.length>0){let Or=Oe.tokenStack[Oe.tokenStack.length-1];(Or[1]||VS).call(Oe,void 0,Or[0])}he.position={start:Ri(se.length>0?se[0][1].start:{line:1,column:1,offset:0}),end:Ri(se.length>0?se[se.length-2][1].end:{line:1,column:1,offset:0})},pt=-1;while(++pt<c.transforms.length)he=c.transforms[pt](he)||he;return he}function E(se,he,Oe){let Ze=he-1,pt=-1,Or=!1,_i,ha,Fl,Ql;while(++Ze<=Oe){let Zn=se[Ze];switch(Zn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{if(Zn[0]==="enter")pt++;else pt--;Ql=void 0;break}case"lineEndingBlank":{if(Zn[0]==="enter"){if(_i&&!Ql&&!pt&&!Fl)Fl=Ze;Ql=void 0}break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ql=void 0}if(!pt&&Zn[0]==="enter"&&Zn[1].type==="listItemPrefix"||pt===-1&&Zn[0]==="exit"&&(Zn[1].type==="listUnordered"||Zn[1].type==="listOrdered")){if(_i){let Lo=Ze;ha=void 0;while(Lo--){let ga=se[Lo];if(ga[1].type==="lineEnding"||ga[1].type==="lineEndingBlank"){if(ga[0]==="exit")continue;if(ha)se[ha][1].type="lineEndingBlank",Or=!0;ga[1].type="lineEnding",ha=Lo}else if(ga[1].type==="linePrefix"||ga[1].type==="blockQuotePrefix"||ga[1].type==="blockQuotePrefixWhitespace"||ga[1].type==="blockQuoteMarker"||ga[1].type==="listItemIndent");else break}if(Fl&&(!ha||Fl<ha))_i._spread=!0;_i.end=Object.assign({},ha?se[ha][1].start:Zn[1].end),se.splice(ha||Ze,0,["exit",_i,Zn[2]]),Ze++,Oe++}if(Zn[1].type==="listItemPrefix"){let Lo={type:"listItem",_spread:!1,start:Object.assign({},Zn[1].start),end:void 0};_i=Lo,se.splice(Ze,0,["enter",Lo,Zn[2]]),Ze++,Oe++,Fl=void 0,Ql=!0}}}return se[he][1]._spread=Or,Oe}function N(se,he){return Oe;function Oe(Ze){if(D.call(this,se(Ze),Ze),he)he.call(this,Ze)}}function R(){this.stack.push({type:"fragment",children:[]})}function D(se,he,Oe){this.stack[this.stack.length-1].children.push(se),this.stack.push(se),this.tokenStack.push([he,Oe||void 0]),se.position={start:Ri(he.start),end:void 0}}function L(se){return he;function he(Oe){if(se)se.call(this,Oe);H.call(this,Oe)}}function H(se,he){let Oe=this.stack.pop(),Ze=this.tokenStack.pop();if(!Ze)throw Error("Cannot close `"+se.type+"` ("+Ti({start:se.start,end:se.end})+"): it’s not open");else if(Ze[0].type!==se.type)if(he)he.call(this,se,Ze[0]);else(Ze[1]||VS).call(this,se,Ze[0]);Oe.position.end=Ri(se.end)}function U(){return So(this.stack.pop())}function B(){this.data.expectingFirstListItemValue=!0}function V(se){if(this.data.expectingFirstListItemValue){let he=this.stack[this.stack.length-2];he.start=Number.parseInt(this.sliceSerialize(se),10),this.data.expectingFirstListItemValue=void 0}}function q(){let se=this.resume(),he=this.stack[this.stack.length-1];he.lang=se}function Y(){let se=this.resume(),he=this.stack[this.stack.length-1];he.meta=se}function Z(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function ee(){let se=this.resume(),he=this.stack[this.stack.length-1];he.value=se.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){let se=this.resume(),he=this.stack[this.stack.length-1];he.value=se.replace(/(\r?\n|\r)$/g,"")}function G(se){let he=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=he,Oe.identifier=kn(this.sliceSerialize(se)).toLowerCase()}function F(){let se=this.resume(),he=this.stack[this.stack.length-1];he.title=se}function te(){let se=this.resume(),he=this.stack[this.stack.length-1];he.url=se}function oe(se){let he=this.stack[this.stack.length-1];if(!he.depth){let Oe=this.sliceSerialize(se).length;he.depth=Oe}}function ae(){this.data.setextHeadingSlurpLineEnding=!0}function ce(se){let he=this.stack[this.stack.length-1];he.depth=this.sliceSerialize(se).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function ye(se){let Oe=this.stack[this.stack.length-1].children,Ze=Oe[Oe.length-1];if(!Ze||Ze.type!=="text")Ze=nT(),Ze.position={start:Ri(se.start),end:void 0},Oe.push(Ze);this.stack.push(Ze)}function ne(se){let he=this.stack.pop();he.value+=this.sliceSerialize(se),he.position.end=Ri(se.end)}function Ve(se){let he=this.stack[this.stack.length-1];if(this.data.atHardBreak){let Oe=he.children[he.children.length-1];Oe.position.end=Ri(se.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&c.canContainEols.includes(he.type))ye.call(this,se),ne.call(this,se)}function ze(){this.data.atHardBreak=!0}function ve(){let se=this.resume(),he=this.stack[this.stack.length-1];he.value=se}function Ae(){let se=this.resume(),he=this.stack[this.stack.length-1];he.value=se}function Me(){let se=this.resume(),he=this.stack[this.stack.length-1];he.value=se}function tt(){let se=this.stack[this.stack.length-1];if(this.data.inReference){let he=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=he,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function Ke(){let se=this.stack[this.stack.length-1];if(this.data.inReference){let he=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=he,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function Tt(se){let he=this.sliceSerialize(se),Oe=this.stack[this.stack.length-2];Oe.label=BS(he),Oe.identifier=kn(he).toLowerCase()}function ie(){let se=this.stack[this.stack.length-1],he=this.resume(),Oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Oe.type==="link"){let Ze=se.children;Oe.children=Ze}else Oe.alt=he}function X(){let se=this.resume(),he=this.stack[this.stack.length-1];he.url=se}function De(){let se=this.resume(),he=this.stack[this.stack.length-1];he.title=se}function Rt(){this.data.inReference=void 0}function W(){this.data.referenceType="collapsed"}function It(se){let he=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=he,Oe.identifier=kn(this.sliceSerialize(se)).toLowerCase(),this.data.referenceType="full"}function Be(se){this.data.characterReferenceType=se.type}function Zr(se){let he=this.sliceSerialize(se),Oe=this.data.characterReferenceType,Ze;if(Oe)Ze=od(he,Oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0;else Ze=Hl(he);let pt=this.stack[this.stack.length-1];pt.value+=Ze}function Qn(se){let he=this.stack.pop();he.position.end=Ri(se.end)}function Lt(se){ne.call(this,se);let he=this.stack[this.stack.length-1];he.url=this.sliceSerialize(se)}function Ua(se){ne.call(this,se);let he=this.stack[this.stack.length-1];he.url="mailto:"+this.sliceSerialize(se)}function pa(){return{type:"blockquote",children:[]}}function zi(){return{type:"code",lang:null,meta:null,value:""}}function Do(){return{type:"inlineCode",value:""}}function Id(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function JE(){return{type:"emphasis",children:[]}}function py(){return{type:"heading",depth:0,children:[]}}function hy(){return{type:"break"}}function gy(){return{type:"html",value:""}}function WE(){return{type:"image",title:null,url:"",alt:null}}function vy(){return{type:"link",title:null,url:"",children:[]}}function yy(se){return{type:"list",ordered:se.type==="listOrdered",start:null,spread:se._spread,children:[]}}function $E(se){return{type:"listItem",spread:se._spread,checked:null,children:[]}}function eT(){return{type:"paragraph",children:[]}}function tT(){return{type:"strong",children:[]}}function nT(){return{type:"text",value:""}}function rT(){return{type:"thematicBreak"}}}function Ri(i){return{line:i.line,column:i.column,offset:i.offset}}function PS(i,c){let b=-1;while(++b<c.length){let w=c[b];if(Array.isArray(w))PS(i,w);else vM(i,w)}}function vM(i,c){let b;for(b in c)if(qS.call(c,b))switch(b){case"canContainEols":{let w=c[b];if(w)i[b].push(...w);break}case"transforms":{let w=c[b];if(w)i[b].push(...w);break}case"enter":case"exit":{let w=c[b];if(w)Object.assign(i[b],w);break}}}function VS(i,c){if(i)throw Error("Cannot close `"+i.type+"` ("+Ti({start:i.start,end:i.end})+"): a different token (`"+c.type+"`, "+Ti({start:c.start,end:c.end})+") is open");else throw Error("Cannot close document, a token (`"+c.type+"`, "+Ti({start:c.start,end:c.end})+") is still open")}function gd(i){let c=this;c.parser=b;function b(w){return lv(w,{...c.data("settings"),...i,extensions:c.data("micromarkExtensions")||[],mdastExtensions:c.data("fromMarkdownExtensions")||[]})}}var vd=-1,Bl=0,Ro=1,Vl=2,zu=3,Ou=4,_u=5,Du=6,yd=7,bd=8;var{defineProperty:yM}=Object,jS=typeof self==="object"?self:globalThis,IS=(i,c)=>{switch(i){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+i)}return new jS[i](c)},bM=(i,c)=>{let b=(E,N)=>(i.set(N,E),E),w=(E)=>{if(i.has(E))return i.get(E);let[N,R]=c[E];switch(N){case Bl:case vd:return b(R,E);case Ro:{let D=b([],E);for(let L of R)D.push(w(L));return D}case Vl:{let D=b({},E);for(let[L,H]of R){let U=w(L),B=w(H);if(U==="__proto__")yM(D,U,{value:B,configurable:!0,enumerable:!0,writable:!0});else D[U]=B}return D}case zu:return b(new Date(R),E);case Ou:{let{source:D,flags:L}=R;return b(new RegExp(D,L),E)}case _u:{let D=b(new Map,E);for(let[L,H]of R)D.set(w(L),w(H));return D}case Du:{let D=b(new Set,E);for(let L of R)D.add(w(L));return D}case yd:{let{name:D,message:L}=R;return b(typeof jS[D]==="function"?IS(D,L):Error(L),E)}case bd:return b(BigInt(R),E);case"BigInt":return b(Object(BigInt(R)),E);case"ArrayBuffer":return b(new Uint8Array(R).buffer,R);case"DataView":{let{buffer:D}=new Uint8Array(R);return b(new DataView(D),R)}case"-0":return-0}return b(IS(N,R),E)};return w},sv=(i)=>bM(new Map,i)(0);var Mo="",{toString:xM}={},{keys:wM,is:kM}=Object,Lu=(i)=>{let c=typeof i;if(c!=="object"||!i)return[Bl,c];let b=xM.call(i).slice(8,-1);switch(b){case"Array":return[Ro,Mo];case"Object":return[Vl,Mo];case"Date":return[zu,Mo];case"RegExp":return[Ou,Mo];case"Map":return[_u,Mo];case"Set":return[Du,Mo];case"DataView":return[Ro,b]}if(b.includes("Array"))return[Ro,b];if(i instanceof Error)return[yd,i.name||"Error"];return[Vl,b]},xd=([i,c])=>i===Bl&&(c==="function"||c==="symbol"),SM=(i,c,b,w)=>{let E=(R,D)=>{let L=w.push(R)-1;return b.set(D,L),L},N=(R)=>{if(b.has(R))return b.get(R);let[D,L]=Lu(R);switch(D){case Bl:{let U=R;switch(L){case"bigint":D=bd,U=R.toString();break;case"number":if(!R&&kM(R,-0))return w.push(["-0"])-1;break;case"function":case"symbol":if(i)throw TypeError("unable to serialize "+L);U=null;break;case"undefined":return E([vd],R)}return E([D,U],R)}case Ro:{if(L){let V=R;if(L==="DataView")V=new Uint8Array(R.buffer);else if(L==="ArrayBuffer")V=new Uint8Array(R);return E([L,[...V]],R)}let U=[],B=E([D,U],R);for(let V of R)U.push(N(V));return B}case Vl:{if(L)switch(L){case"BigInt":return E([L,R.toString()],R);case"Boolean":case"Number":case"String":return E([L,R.valueOf()],R)}if(c&&"toJSON"in R)return N(R.toJSON());let U=[],B=E([D,U],R);for(let V of wM(R))if(i||!xd(Lu(R[V])))U.push([N(V),N(R[V])]);return B}case zu:return E([D,isNaN(R.getTime())?Mo:R.toISOString()],R);case Ou:{let{source:U,flags:B}=R;return E([D,{source:U,flags:B}],R)}case _u:{let U=[],B=E([D,U],R);for(let[V,q]of R)if(i||!(xd(Lu(V))||xd(Lu(q))))U.push([N(V),N(q)]);return B}case Du:{let U=[],B=E([D,U],R);for(let V of R)if(i||!xd(Lu(V)))U.push(N(V));return B}}let{message:H}=R;return E([D,{name:L,message:H}],R)};return N},uv=(i,{json:c,lossy:b}={})=>{let w=[];return SM(!(c||b),!!c,new Map,w)(i),w};var ql=typeof structuredClone==="function"?(i,c)=>c&&(("json"in c)||("lossy"in c))?sv(uv(i,c)):structuredClone(i):(i,c)=>sv(uv(i,c));function EM(i,c){let b=[{type:"text",value:"↩"}];if(c>1)b.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(c)}]});return b}function TM(i,c){return"Back to reference "+(i+1)+(c>1?"-"+c:"")}function GS(i){let c=typeof i.options.clobberPrefix==="string"?i.options.clobberPrefix:"user-content-",b=i.options.footnoteBackContent||EM,w=i.options.footnoteBackLabel||TM,E=i.options.footnoteLabel||"Footnotes",N=i.options.footnoteLabelTagName||"h2",R=i.options.footnoteLabelProperties||{className:["sr-only"]},D=[],L=-1;while(++L<i.footnoteOrder.length){let H=i.footnoteById.get(i.footnoteOrder[L]);if(!H)continue;let U=i.all(H),B=String(H.identifier).toUpperCase(),V=Mr(B.toLowerCase()),q=0,Y=[],Z=i.footnoteCounts.get(B);while(Z!==void 0&&++q<=Z){if(Y.length>0)Y.push({type:"text",value:" "});let G=typeof b==="string"?b:b(L,q);if(typeof G==="string")G={type:"text",value:G};Y.push({type:"element",tagName:"a",properties:{href:"#"+c+"fnref-"+V+(q>1?"-"+q:""),dataFootnoteBackref:"",ariaLabel:typeof w==="string"?w:w(L,q),className:["data-footnote-backref"]},children:Array.isArray(G)?G:[G]})}let ee=U[U.length-1];if(ee&&ee.type==="element"&&ee.tagName==="p"){let G=ee.children[ee.children.length-1];if(G&&G.type==="text")G.value+=" ";else ee.children.push({type:"text",value:" "});ee.children.push(...Y)}else U.push(...Y);let P={type:"element",tagName:"li",properties:{id:c+"fn-"+V},children:i.wrap(U,!0)};i.patch(H,P),D.push(P)}if(D.length===0)return;return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:N,properties:{...ql(R),id:"footnote-label"},children:[{type:"text",value:E}]},{type:"text",value:`
27
- `},{type:"element",tagName:"ol",properties:{},children:i.wrap(D,!0)},{type:"text",value:`
28
- `}]}}var Mi=function(i){if(i===null||i===void 0)return RM;if(typeof i==="function")return wd(i);if(typeof i==="object")return Array.isArray(i)?CM(i):AM(i);if(typeof i==="string")return NM(i);throw Error("Expected function, string, or object as test")};function CM(i){let c=[],b=-1;while(++b<i.length)c[b]=Mi(i[b]);return wd(w);function w(...E){let N=-1;while(++N<c.length)if(c[N].apply(this,E))return!0;return!1}}function AM(i){let c=i;return wd(b);function b(w){let E=w,N;for(N in i)if(E[N]!==c[N])return!1;return!0}}function NM(i){return wd(c);function c(b){return b&&b.type===i}}function wd(i){return c;function c(b,w,E){return Boolean(MM(b)&&i.call(this,b,typeof w==="number"?w:void 0,E||void 0))}}function RM(){return!0}function MM(i){return i!==null&&typeof i==="object"&&"type"in i}function YS(i){return i}var FS=[],kd=!0,zo=!1,Sd="skip";function Hu(i,c,b,w){let E;if(typeof c==="function"&&typeof b!=="function")w=b,b=c;else E=c;let N=Mi(E),R=w?-1:1;D(i,void 0,[])();function D(L,H,U){let B=L&&typeof L==="object"?L:{};if(typeof B.type==="string"){let q=typeof B.tagName==="string"?B.tagName:typeof B.name==="string"?B.name:void 0;Object.defineProperty(V,"name",{value:"node ("+YS(L.type+(q?"<"+q+">":""))+")"})}return V;function V(){let q=FS,Y,Z,ee;if(!c||N(L,H,U[U.length-1]||void 0)){if(q=zM(b(L,U)),q[0]===zo)return q}if("children"in L&&L.children){let P=L;if(P.children&&q[0]!==Sd){Z=(w?P.children.length:-1)+R,ee=U.concat(P);while(Z>-1&&Z<P.children.length){let G=P.children[Z];if(Y=D(G,Z,ee)(),Y[0]===zo)return Y;Z=typeof Y[1]==="number"?Y[1]:Z+R}}}return q}}}function zM(i){if(Array.isArray(i))return i;if(typeof i==="number")return[kd,i];return i===null||i===void 0?FS:[i]}function Oo(i,c,b,w){let E,N,R;if(typeof c==="function"&&typeof b!=="function")N=void 0,R=c,E=b;else N=c,R=b,E=w;Hu(i,N,D,E);function D(L,H){let U=H[H.length-1],B=U?U.children.indexOf(L):void 0;return R(L,B,U)}}function QS(i,c){let b={type:"element",tagName:"blockquote",properties:{},children:i.wrap(i.all(c),!0)};return i.patch(c,b),i.applyData(c,b)}function XS(i,c){let b={type:"element",tagName:"br",properties:{},children:[]};return i.patch(c,b),[i.applyData(c,b),{type:"text",value:`
29
- `}]}function ZS(i,c){let b=c.value?c.value+`
30
- `:"",w={},E=c.lang?c.lang.split(/\s+/):[];if(E.length>0)w.className=["language-"+E[0]];let N={type:"element",tagName:"code",properties:w,children:[{type:"text",value:b}]};if(c.meta)N.data={meta:c.meta};return i.patch(c,N),N=i.applyData(c,N),N={type:"element",tagName:"pre",properties:{},children:[N]},i.patch(c,N),N}function KS(i,c){let b={type:"element",tagName:"del",properties:{},children:i.all(c)};return i.patch(c,b),i.applyData(c,b)}function JS(i,c){let b={type:"element",tagName:"em",properties:{},children:i.all(c)};return i.patch(c,b),i.applyData(c,b)}function WS(i,c){let b=typeof i.options.clobberPrefix==="string"?i.options.clobberPrefix:"user-content-",w=String(c.identifier).toUpperCase(),E=Mr(w.toLowerCase()),N=i.footnoteOrder.indexOf(w),R,D=i.footnoteCounts.get(w);if(D===void 0)D=0,i.footnoteOrder.push(w),R=i.footnoteOrder.length;else R=N+1;D+=1,i.footnoteCounts.set(w,D);let L={type:"element",tagName:"a",properties:{href:"#"+b+"fn-"+E,id:b+"fnref-"+E+(D>1?"-"+D:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(R)}]};i.patch(c,L);let H={type:"element",tagName:"sup",properties:{},children:[L]};return i.patch(c,H),i.applyData(c,H)}function $S(i,c){let b={type:"element",tagName:"h"+c.depth,properties:{},children:i.all(c)};return i.patch(c,b),i.applyData(c,b)}function e2(i,c){if(i.options.allowDangerousHtml){let b={type:"raw",value:c.value};return i.patch(c,b),i.applyData(c,b)}return}function Ed(i,c){let b=c.referenceType,w="]";if(b==="collapsed")w+="[]";else if(b==="full")w+="["+(c.label||c.identifier)+"]";if(c.type==="imageReference")return[{type:"text",value:"!["+c.alt+w}];let E=i.all(c),N=E[0];if(N&&N.type==="text")N.value="["+N.value;else E.unshift({type:"text",value:"["});let R=E[E.length-1];if(R&&R.type==="text")R.value+=w;else E.push({type:"text",value:w});return E}function t2(i,c){let b=String(c.identifier).toUpperCase(),w=i.definitionById.get(b);if(!w)return Ed(i,c);let E={src:Mr(w.url||""),alt:c.alt};if(w.title!==null&&w.title!==void 0)E.title=w.title;let N={type:"element",tagName:"img",properties:E,children:[]};return i.patch(c,N),i.applyData(c,N)}function n2(i,c){let b={src:Mr(c.url)};if(c.alt!==null&&c.alt!==void 0)b.alt=c.alt;if(c.title!==null&&c.title!==void 0)b.title=c.title;let w={type:"element",tagName:"img",properties:b,children:[]};return i.patch(c,w),i.applyData(c,w)}function r2(i,c){let b={type:"text",value:c.value.replace(/\r?\n|\r/g," ")};i.patch(c,b);let w={type:"element",tagName:"code",properties:{},children:[b]};return i.patch(c,w),i.applyData(c,w)}function a2(i,c){let b=String(c.identifier).toUpperCase(),w=i.definitionById.get(b);if(!w)return Ed(i,c);let E={href:Mr(w.url||"")};if(w.title!==null&&w.title!==void 0)E.title=w.title;let N={type:"element",tagName:"a",properties:E,children:i.all(c)};return i.patch(c,N),i.applyData(c,N)}function i2(i,c){let b={href:Mr(c.url)};if(c.title!==null&&c.title!==void 0)b.title=c.title;let w={type:"element",tagName:"a",properties:b,children:i.all(c)};return i.patch(c,w),i.applyData(c,w)}function o2(i,c,b){let w=i.all(c),E=b?OM(b):l2(c),N={},R=[];if(typeof c.checked==="boolean"){let U=w[0],B;if(U&&U.type==="element"&&U.tagName==="p")B=U;else B={type:"element",tagName:"p",properties:{},children:[]},w.unshift(B);if(B.children.length>0)B.children.unshift({type:"text",value:" "});B.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:c.checked,disabled:!0},children:[]}),N.className=["task-list-item"]}let D=-1;while(++D<w.length){let U=w[D];if(E||D!==0||U.type!=="element"||U.tagName!=="p")R.push({type:"text",value:`
31
- `});if(U.type==="element"&&U.tagName==="p"&&!E)R.push(...U.children);else R.push(U)}let L=w[w.length-1];if(L&&(E||L.type!=="element"||L.tagName!=="p"))R.push({type:"text",value:`
32
- `});let H={type:"element",tagName:"li",properties:N,children:R};return i.patch(c,H),i.applyData(c,H)}function OM(i){let c=!1;if(i.type==="list"){c=i.spread||!1;let b=i.children,w=-1;while(!c&&++w<b.length)c=l2(b[w])}return c}function l2(i){let c=i.spread;return c===null||c===void 0?i.children.length>1:c}function s2(i,c){let b={},w=i.all(c),E=-1;if(typeof c.start==="number"&&c.start!==1)b.start=c.start;while(++E<w.length){let R=w[E];if(R.type==="element"&&R.tagName==="li"&&R.properties&&Array.isArray(R.properties.className)&&R.properties.className.includes("task-list-item")){b.className=["contains-task-list"];break}}let N={type:"element",tagName:c.ordered?"ol":"ul",properties:b,children:i.wrap(w,!0)};return i.patch(c,N),i.applyData(c,N)}function u2(i,c){let b={type:"element",tagName:"p",properties:{},children:i.all(c)};return i.patch(c,b),i.applyData(c,b)}function c2(i,c){let b={type:"root",children:i.wrap(i.all(c))};return i.patch(c,b),i.applyData(c,b)}function f2(i,c){let b={type:"element",tagName:"strong",properties:{},children:i.all(c)};return i.patch(c,b),i.applyData(c,b)}function d2(i,c){let b=i.all(c),w=b.shift(),E=[];if(w){let R={type:"element",tagName:"thead",properties:{},children:i.wrap([w],!0)};i.patch(c.children[0],R),E.push(R)}if(b.length>0){let R={type:"element",tagName:"tbody",properties:{},children:i.wrap(b,!0)},D=Ll(c.children[1]),L=ad(c.children[c.children.length-1]);if(D&&L)R.position={start:D,end:L};E.push(R)}let N={type:"element",tagName:"table",properties:{},children:i.wrap(E,!0)};return i.patch(c,N),i.applyData(c,N)}function m2(i,c,b){let w=b?b.children:void 0,N=(w?w.indexOf(c):1)===0?"th":"td",R=b&&b.type==="table"?b.align:void 0,D=R?R.length:c.children.length,L=-1,H=[];while(++L<D){let B=c.children[L],V={},q=R?R[L]:void 0;if(q)V.align=q;let Y={type:"element",tagName:N,properties:V,children:[]};if(B)Y.children=i.all(B),i.patch(B,Y),Y=i.applyData(B,Y);H.push(Y)}let U={type:"element",tagName:"tr",properties:{},children:i.wrap(H,!0)};return i.patch(c,U),i.applyData(c,U)}function p2(i,c){let b={type:"element",tagName:"td",properties:{},children:i.all(c)};return i.patch(c,b),i.applyData(c,b)}function g2(i){let c=String(i),b=/\r?\n|\r/g,w=b.exec(c),E=0,N=[];while(w)N.push(h2(c.slice(E,w.index),E>0,!0),w[0]),E=w.index+w[0].length,w=b.exec(c);return N.push(h2(c.slice(E),E>0,!1)),N.join("")}function h2(i,c,b){let w=0,E=i.length;if(c){let N=i.codePointAt(w);while(N===9||N===32)w++,N=i.codePointAt(w)}if(b){let N=i.codePointAt(E-1);while(N===9||N===32)E--,N=i.codePointAt(E-1)}return E>w?i.slice(w,E):""}function v2(i,c){let b={type:"text",value:g2(String(c.value))};return i.patch(c,b),i.applyData(c,b)}function y2(i,c){let b={type:"element",tagName:"hr",properties:{},children:[]};return i.patch(c,b),i.applyData(c,b)}var b2={blockquote:QS,break:XS,code:ZS,delete:KS,emphasis:JS,footnoteReference:WS,heading:$S,html:e2,imageReference:t2,image:n2,inlineCode:r2,linkReference:a2,link:i2,listItem:o2,list:s2,paragraph:u2,root:c2,strong:f2,table:d2,tableCell:p2,tableRow:m2,text:v2,thematicBreak:y2,toml:Td,yaml:Td,definition:Td,footnoteDefinition:Td};function Td(){return}var cv={}.hasOwnProperty,_M={};function w2(i,c){let b=c||_M,w=new Map,E=new Map,N=new Map,R={...b2,...b.handlers},D={all:H,applyData:LM,definitionById:w,footnoteById:E,footnoteCounts:N,footnoteOrder:[],handlers:R,one:L,options:b,patch:DM,wrap:UM};return Oo(i,function(U){if(U.type==="definition"||U.type==="footnoteDefinition"){let B=U.type==="definition"?w:E,V=String(U.identifier).toUpperCase();if(!B.has(V))B.set(V,U)}}),D;function L(U,B){let V=U.type,q=D.handlers[V];if(cv.call(D.handlers,V)&&q)return q(D,U,B);if(D.options.passThrough&&D.options.passThrough.includes(V)){if("children"in U){let{children:Z,...ee}=U,P=ql(ee);return P.children=D.all(U),P}return ql(U)}return(D.options.unknownHandler||HM)(D,U,B)}function H(U){let B=[];if("children"in U){let V=U.children,q=-1;while(++q<V.length){let Y=D.one(V[q],U);if(Y){if(q&&V[q-1].type==="break"){if(!Array.isArray(Y)&&Y.type==="text")Y.value=x2(Y.value);if(!Array.isArray(Y)&&Y.type==="element"){let Z=Y.children[0];if(Z&&Z.type==="text")Z.value=x2(Z.value)}}if(Array.isArray(Y))B.push(...Y);else B.push(Y)}}}return B}}function DM(i,c){if(i.position)c.position=Bg(i)}function LM(i,c){let b=c;if(i&&i.data){let w=i.data.hName,E=i.data.hChildren,N=i.data.hProperties;if(typeof w==="string")if(b.type==="element")b.tagName=w;else{let R="children"in b?b.children:[b];b={type:"element",tagName:w,properties:{},children:R}}if(b.type==="element"&&N)Object.assign(b.properties,ql(N));if("children"in b&&b.children&&E!==null&&E!==void 0)b.children=E}return b}function HM(i,c){let b=c.data||{},w="value"in c&&!(cv.call(b,"hProperties")||cv.call(b,"hChildren"))?{type:"text",value:c.value}:{type:"element",tagName:"div",properties:{},children:i.all(c)};return i.patch(c,w),i.applyData(c,w)}function UM(i,c){let b=[],w=-1;if(c)b.push({type:"text",value:`
33
- `});while(++w<i.length){if(w)b.push({type:"text",value:`
34
- `});b.push(i[w])}if(c&&i.length>0)b.push({type:"text",value:`
35
- `});return b}function x2(i){let c=0,b=i.charCodeAt(c);while(b===9||b===32)c++,b=i.charCodeAt(c);return i.slice(c)}function Cd(i,c){let b=w2(i,c),w=b.one(i,void 0),E=GS(b),N=Array.isArray(w)?{type:"root",children:w}:w||{type:"root",children:[]};if(E)xt("children"in N),N.children.push({type:"text",value:`
36
- `},E);return N}function Ad(i,c){if(i&&"run"in i)return async function(b,w){let E=Cd(b,{file:w,...c});await i.run(E,w)};return function(b,w){return Cd(b,{file:w,...i||c})}}function fv(i){if(i)throw i}var Md=xy(M2(),1);function Uu(i){if(typeof i!=="object"||i===null)return!1;let c=Object.getPrototypeOf(i);return(c===null||c===Object.prototype||Object.getPrototypeOf(c)===null)&&!(Symbol.toStringTag in i)&&!(Symbol.iterator in i)}function dv(){let i=[],c={run:b,use:w};return c;function b(...E){let N=-1,R=E.pop();if(typeof R!=="function")throw TypeError("Expected function as last argument, not "+R);D(null,...E);function D(L,...H){let U=i[++N],B=-1;if(L){R(L);return}while(++B<E.length)if(H[B]===null||H[B]===void 0)H[B]=E[B];if(E=H,U)z2(U,D)(...H);else R(null,...H)}}function w(E){if(typeof E!=="function")throw TypeError("Expected `middelware` to be a function, not "+E);return i.push(E),c}}function z2(i,c){let b;return w;function w(...R){let D=i.length>R.length,L;if(D)R.push(E);try{L=i.apply(this,R)}catch(H){let U=H;if(D&&b)throw U;return E(U)}if(!D)if(L&&L.then&&typeof L.then==="function")L.then(N,E);else if(L instanceof Error)E(L);else N(L)}function E(R,...D){if(!b)b=!0,c(R,...D)}function N(R){E(null,R)}}var Qr={basename:BM,dirname:VM,extname:qM,join:PM,sep:"/"};function BM(i,c){if(c!==void 0&&typeof c!=="string")throw TypeError('"ext" argument must be a string');Bu(i);let b=0,w=-1,E=i.length,N;if(c===void 0||c.length===0||c.length>i.length){while(E--)if(i.codePointAt(E)===47){if(N){b=E+1;break}}else if(w<0)N=!0,w=E+1;return w<0?"":i.slice(b,w)}if(c===i)return"";let R=-1,D=c.length-1;while(E--)if(i.codePointAt(E)===47){if(N){b=E+1;break}}else{if(R<0)N=!0,R=E+1;if(D>-1)if(i.codePointAt(E)===c.codePointAt(D--)){if(D<0)w=E}else D=-1,w=R}if(b===w)w=R;else if(w<0)w=i.length;return i.slice(b,w)}function VM(i){if(Bu(i),i.length===0)return".";let c=-1,b=i.length,w;while(--b)if(i.codePointAt(b)===47){if(w){c=b;break}}else if(!w)w=!0;return c<0?i.codePointAt(0)===47?"/":".":c===1&&i.codePointAt(0)===47?"//":i.slice(0,c)}function qM(i){Bu(i);let c=i.length,b=-1,w=0,E=-1,N=0,R;while(c--){let D=i.codePointAt(c);if(D===47){if(R){w=c+1;break}continue}if(b<0)R=!0,b=c+1;if(D===46){if(E<0)E=c;else if(N!==1)N=1}else if(E>-1)N=-1}if(E<0||b<0||N===0||N===1&&E===b-1&&E===w+1)return"";return i.slice(E,b)}function PM(...i){let c=-1,b;while(++c<i.length)if(Bu(i[c]),i[c])b=b===void 0?i[c]:b+"/"+i[c];return b===void 0?".":IM(b)}function IM(i){Bu(i);let c=i.codePointAt(0)===47,b=jM(i,!c);if(b.length===0&&!c)b=".";if(b.length>0&&i.codePointAt(i.length-1)===47)b+="/";return c?"/"+b:b}function jM(i,c){let b="",w=0,E=-1,N=0,R=-1,D,L;while(++R<=i.length){if(R<i.length)D=i.codePointAt(R);else if(D===47)break;else D=47;if(D===47){if(E===R-1||N===1);else if(E!==R-1&&N===2){if(b.length<2||w!==2||b.codePointAt(b.length-1)!==46||b.codePointAt(b.length-2)!==46){if(b.length>2){if(L=b.lastIndexOf("/"),L!==b.length-1){if(L<0)b="",w=0;else b=b.slice(0,L),w=b.length-1-b.lastIndexOf("/");E=R,N=0;continue}}else if(b.length>0){b="",w=0,E=R,N=0;continue}}if(c)b=b.length>0?b+"/..":"..",w=2}else{if(b.length>0)b+="/"+i.slice(E+1,R);else b=i.slice(E+1,R);w=R-E-1}E=R,N=0}else if(D===46&&N>-1)N++;else N=-1}return b}function Bu(i){if(typeof i!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(i))}var O2={cwd:GM};function GM(){return"/"}function Pl(i){return Boolean(i!==null&&typeof i==="object"&&"href"in i&&i.href&&"protocol"in i&&i.protocol&&i.auth===void 0)}function _2(i){if(typeof i==="string")i=new URL(i);else if(!Pl(i)){let c=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+i+"`");throw c.code="ERR_INVALID_ARG_TYPE",c}if(i.protocol!=="file:"){let c=TypeError("The URL must be of scheme file");throw c.code="ERR_INVALID_URL_SCHEME",c}return YM(i)}function YM(i){if(i.hostname!==""){let w=TypeError('File URL host must be "localhost" or empty on darwin');throw w.code="ERR_INVALID_FILE_URL_HOST",w}let c=i.pathname,b=-1;while(++b<c.length)if(c.codePointAt(b)===37&&c.codePointAt(b+1)===50){let w=c.codePointAt(b+2);if(w===70||w===102){let E=TypeError("File URL path must not include encoded / characters");throw E.code="ERR_INVALID_FILE_URL_PATH",E}}return decodeURIComponent(c)}var mv=["history","path","basename","stem","extname","dirname"];class Il{constructor(i){let c;if(!i)c={};else if(Pl(i))c={path:i};else if(typeof i==="string"||FM(i))c={value:i};else c=i;this.cwd="cwd"in c?"":O2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let b=-1;while(++b<mv.length){let E=mv[b];if(E in c&&c[E]!==void 0&&c[E]!==null)this[E]=E==="history"?[...c[E]]:c[E]}let w;for(w in c)if(!mv.includes(w))this[w]=c[w]}get basename(){return typeof this.path==="string"?Qr.basename(this.path):void 0}set basename(i){hv(i,"basename"),pv(i,"basename"),this.path=Qr.join(this.dirname||"",i)}get dirname(){return typeof this.path==="string"?Qr.dirname(this.path):void 0}set dirname(i){D2(this.basename,"dirname"),this.path=Qr.join(i||"",this.basename)}get extname(){return typeof this.path==="string"?Qr.extname(this.path):void 0}set extname(i){if(pv(i,"extname"),D2(this.dirname,"extname"),i){if(i.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(i.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=Qr.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){if(Pl(i))i=_2(i);if(hv(i,"path"),this.path!==i)this.history.push(i)}get stem(){return typeof this.path==="string"?Qr.basename(this.path,this.extname):void 0}set stem(i){hv(i,"stem"),pv(i,"stem"),this.path=Qr.join(this.dirname||"",i+(this.extname||""))}fail(i,c,b){let w=this.message(i,c,b);throw w.fatal=!0,w}info(i,c,b){let w=this.message(i,c,b);return w.fatal=void 0,w}message(i,c,b){let w=new Pt(i,c,b);if(this.path)w.name=this.path+":"+w.name,w.file=this.path;return w.fatal=!1,this.messages.push(w),w}toString(i){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder(i||void 0).decode(this.value)}}function pv(i,c){if(i&&i.includes(Qr.sep))throw Error("`"+c+"` cannot be a path: did not expect `"+Qr.sep+"`")}function hv(i,c){if(!i)throw Error("`"+c+"` cannot be empty")}function D2(i,c){if(!i)throw Error("Setting `"+c+"` requires `path` to be set too")}function FM(i){return Boolean(i&&typeof i==="object"&&"byteLength"in i&&"byteOffset"in i)}var L2=function(i){let w=this.constructor.prototype,E=w[i],N=function(){return E.apply(N,arguments)};return Object.setPrototypeOf(N,w),N};var QM={}.hasOwnProperty;class bv extends L2{constructor(){super("copy");this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=dv()}copy(){let i=new bv,c=-1;while(++c<this.attachers.length){let b=this.attachers[c];i.use(...b)}return i.data(Md.default(!0,{},this.namespace)),i}data(i,c){if(typeof i==="string"){if(arguments.length===2)return yv("data",this.frozen),this.namespace[i]=c,this;return QM.call(this.namespace,i)&&this.namespace[i]||void 0}if(i)return yv("data",this.frozen),this.namespace=i,this;return this.namespace}freeze(){if(this.frozen)return this;let i=this;while(++this.freezeIndex<this.attachers.length){let[c,...b]=this.attachers[this.freezeIndex];if(b[0]===!1)continue;if(b[0]===!0)b[0]=void 0;let w=c.call(i,...b);if(typeof w==="function")this.transformers.use(w)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();let c=Rd(i),b=this.parser||this.Parser;return gv("parse",b),b(String(c),c)}process(i,c){let b=this;return this.freeze(),gv("process",this.parser||this.Parser),vv("process",this.compiler||this.Compiler),c?w(void 0,c):new Promise(w);function w(E,N){let R=Rd(i),D=b.parse(R);b.run(D,R,function(H,U,B){if(H||!U||!B)return L(H);let V=U,q=b.stringify(V,B);if(ZM(q))B.value=q;else B.result=q;L(H,B)});function L(H,U){if(H||!U)N(H);else if(E)E(U);else xt(c,"`done` is defined if `resolve` is not"),c(void 0,U)}}}processSync(i){let c=!1,b;return this.freeze(),gv("processSync",this.parser||this.Parser),vv("processSync",this.compiler||this.Compiler),this.process(i,w),U2("processSync","process",c),xt(b,"we either bailed on an error or have a tree"),b;function w(E,N){c=!0,fv(E),b=N}}run(i,c,b){H2(i),this.freeze();let w=this.transformers;if(!b&&typeof c==="function")b=c,c=void 0;return b?E(void 0,b):new Promise(E);function E(N,R){xt(typeof c!=="function","`file` can’t be a `done` anymore, we checked");let D=Rd(c);w.run(i,D,L);function L(H,U,B){let V=U||i;if(H)R(H);else if(N)N(V);else xt(b,"`done` is defined if `resolve` is not"),b(void 0,V,B)}}}runSync(i,c){let b=!1,w;return this.run(i,c,E),U2("runSync","run",b),xt(w,"we either bailed on an error or have a tree"),w;function E(N,R){fv(N),w=R,b=!0}}stringify(i,c){this.freeze();let b=Rd(c),w=this.compiler||this.Compiler;return vv("stringify",w),H2(i),w(i,b)}use(i,...c){let b=this.attachers,w=this.namespace;if(yv("use",this.frozen),i===null||i===void 0);else if(typeof i==="function")D(i,c);else if(typeof i==="object")if(Array.isArray(i))R(i);else N(i);else throw TypeError("Expected usable value, not `"+i+"`");return this;function E(L){if(typeof L==="function")D(L,[]);else if(typeof L==="object")if(Array.isArray(L)){let[H,...U]=L;D(H,U)}else N(L);else throw TypeError("Expected usable value, not `"+L+"`")}function N(L){if(!("plugins"in L)&&!("settings"in L))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");if(R(L.plugins),L.settings)w.settings=Md.default(!0,w.settings,L.settings)}function R(L){let H=-1;if(L===null||L===void 0);else if(Array.isArray(L))while(++H<L.length){let U=L[H];E(U)}else throw TypeError("Expected a list of plugins, not `"+L+"`")}function D(L,H){let U=-1,B=-1;while(++U<b.length)if(b[U][0]===L){B=U;break}if(B===-1)b.push([L,...H]);else if(H.length>0){let[V,...q]=H,Y=b[B][1];if(Uu(Y)&&Uu(V))V=Md.default(!0,Y,V);b[B]=[L,V,...q]}}}}var xv=new bv().freeze();function gv(i,c){if(typeof c!=="function")throw TypeError("Cannot `"+i+"` without `parser`")}function vv(i,c){if(typeof c!=="function")throw TypeError("Cannot `"+i+"` without `compiler`")}function yv(i,c){if(c)throw Error("Cannot call `"+i+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function H2(i){if(!Uu(i)||typeof i.type!=="string")throw TypeError("Expected node, got `"+i+"`")}function U2(i,c,b){if(!b)throw Error("`"+i+"` finished async. Use `"+c+"` instead")}function Rd(i){return XM(i)?i:new Il(i)}function XM(i){return Boolean(i&&typeof i==="object"&&"message"in i&&"messages"in i)}function ZM(i){return typeof i==="string"||KM(i)}function KM(i){return Boolean(i&&typeof i==="object"&&"byteLength"in i&&"byteOffset"in i)}var JM="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",B2=[],V2={allowDangerousHtml:!0},WM=/^(https?|ircs?|mailto|xmpp)$/i,$M=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Wt(i){let c=ez(i),b=tz(i);return nz(c.runSync(c.parse(b),b),i)}function ez(i){let c=i.rehypePlugins||B2,b=i.remarkPlugins||B2,w=i.remarkRehypeOptions?{...i.remarkRehypeOptions,...V2}:V2;return xv().use(gd).use(b).use(Ad,w).use(c)}function tz(i){let c=i.children||"",b=new Il;if(typeof c==="string")b.value=c;else Wf("Unexpected value `"+c+"` for `children` prop, expected `string`");return b}function nz(i,c){let{allowedElements:b,allowElement:w,components:E,disallowedElements:N,skipHtml:R,unwrapDisallowed:D}=c,L=c.urlTransform||Xn;for(let U of $M)if(Object.hasOwn(c,U.from))Wf("Unexpected `"+U.from+"` prop, "+(U.to?"use `"+U.to+"` instead":"remove it")+" (see <"+JM+"#"+U.id+"> for more info)");if(b&&N)Wf("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other");return Oo(i,H),Pg(i,{Fragment:g,components:E,ignoreInvalidStyle:!0,jsx:e,jsxs:n,passKeys:!0,passNode:!0});function H(U,B,V){if(U.type==="raw"&&V&&typeof B==="number"){if(R)V.children.splice(B,1);else V.children[B]={type:"text",value:U.value};return B}if(U.type==="element"){let q;for(q in Eu)if(Object.hasOwn(Eu,q)&&Object.hasOwn(U.properties,q)){let Y=U.properties[q],Z=Eu[q];if(Z===null||Z.includes(U.tagName))U.properties[q]=L(String(Y||""),q,U)}}if(U.type==="element"){let q=b?!b.includes(U.tagName):N?N.includes(U.tagName):!1;if(!q&&w&&typeof B==="number")q=!w(U,B,V);if(q&&V&&typeof B==="number"){if(D&&U.children)V.children.splice(B,1,...U.children);else V.children.splice(B,1);return B}}}}function Xn(i){let c=i.indexOf(":"),b=i.indexOf("?"),w=i.indexOf("#"),E=i.indexOf("/");if(c===-1||E!==-1&&c>E||b!==-1&&c>b||w!==-1&&c>w||WM.test(i.slice(0,c)))return i;return""}function wv(i,c){let b=String(i);if(typeof c!=="string")throw TypeError("Expected character");let w=0,E=b.indexOf(c);while(E!==-1)w++,E=b.indexOf(c,E+c.length);return w}function kv(i){if(typeof i!=="string")throw TypeError("Expected a string");return i.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Sv(i,c,b){let E=Mi((b||{}).ignore||[]),N=rz(c),R=-1;while(++R<N.length)Hu(i,"text",D);function D(H,U){let B=-1,V;while(++B<U.length){let q=U[B],Y=V?V.children:void 0;if(E(q,Y?Y.indexOf(q):void 0,V))return;V=q}if(V)return L(H,U)}function L(H,U){let B=U[U.length-1],V=N[R][0],q=N[R][1],Y=0,ee=B.children.indexOf(H),P=!1,G=[];V.lastIndex=0;let F=V.exec(H.value);while(F){let te=F.index,oe={index:F.index,input:F.input,stack:[...U,H]},ae=q(...F,oe);if(typeof ae==="string")ae=ae.length>0?{type:"text",value:ae}:void 0;if(ae===!1)V.lastIndex=te+1;else{if(Y!==te)G.push({type:"text",value:H.value.slice(Y,te)});if(Array.isArray(ae))G.push(...ae);else if(ae)G.push(ae);Y=te+F[0].length,P=!0}if(!V.global)break;F=V.exec(H.value)}if(P){if(Y<H.value.length)G.push({type:"text",value:H.value.slice(Y)});B.children.splice(ee,1,...G)}else G=[H];return ee+G.length}}function rz(i){let c=[];if(!Array.isArray(i))throw TypeError("Expected find and replace tuple or list of tuples");let b=!i[0]||Array.isArray(i[0])?i:[i],w=-1;while(++w<b.length){let E=b[w];c.push([az(E[0]),iz(E[1])])}return c}function az(i){return typeof i==="string"?new RegExp(kv(i),"g"):i}function iz(i){return typeof i==="function"?i:function(){return i}}var Ev="phrasing",Tv=["autolink","link","image","label"];function Av(){return{transforms:[fz],enter:{literalAutolink:oz,literalAutolinkEmail:Cv,literalAutolinkHttp:Cv,literalAutolinkWww:Cv},exit:{literalAutolink:cz,literalAutolinkEmail:uz,literalAutolinkHttp:lz,literalAutolinkWww:sz}}}function Nv(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ev,notInConstruct:Tv},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ev,notInConstruct:Tv},{character:":",before:"[ps]",after:"\\/",inConstruct:Ev,notInConstruct:Tv}]}}function oz(i){this.enter({type:"link",title:null,url:"",children:[]},i)}function Cv(i){this.config.enter.autolinkProtocol.call(this,i)}function lz(i){this.config.exit.autolinkProtocol.call(this,i)}function sz(i){this.config.exit.data.call(this,i);let c=this.stack[this.stack.length-1];xt(c.type==="link"),c.url="http://"+this.sliceSerialize(i)}function uz(i){this.config.exit.autolinkEmail.call(this,i)}function cz(i){this.exit(i)}function fz(i){Sv(i,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,dz],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,mz]],{ignore:["link","linkReference"]})}function dz(i,c,b,w,E){let N="";if(!q2(E))return!1;if(/^w/i.test(c))b=c+b,c="",N="http://";if(!pz(b))return!1;let R=hz(b+w);if(!R[0])return!1;let D={type:"link",title:null,url:N+c+R[0],children:[{type:"text",value:c+R[0]}]};if(R[1])return[D,{type:"text",value:R[1]}];return D}function mz(i,c,b,w){if(!q2(w,!0)||/[-\d_]$/.test(b))return!1;return{type:"link",title:null,url:"mailto:"+c+"@"+b,children:[{type:"text",value:c+"@"+b}]}}function pz(i){let c=i.split(".");if(c.length<2||c[c.length-1]&&(/_/.test(c[c.length-1])||!/[a-zA-Z\d]/.test(c[c.length-1]))||c[c.length-2]&&(/_/.test(c[c.length-2])||!/[a-zA-Z\d]/.test(c[c.length-2])))return!1;return!0}function hz(i){let c=/[!"&'),.:;<>?\]}]+$/.exec(i);if(!c)return[i,void 0];i=i.slice(0,c.index);let b=c[0],w=b.indexOf(")"),E=wv(i,"("),N=wv(i,")");while(w!==-1&&E>N)i+=b.slice(0,w+1),b=b.slice(w+1),w=b.indexOf(")"),N++;return[i,b]}function q2(i,c){let b=i.input.charCodeAt(i.index-1);return(i.index===0||fa(b)||To(b))&&(!c||b!==47)}P2.peek=Ez;function gz(){this.buffer()}function vz(i){this.enter({type:"footnoteReference",identifier:"",label:""},i)}function yz(){this.buffer()}function bz(i){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},i)}function xz(i){let c=this.resume(),b=this.stack[this.stack.length-1];xt(b.type==="footnoteReference"),b.identifier=kn(this.sliceSerialize(i)).toLowerCase(),b.label=c}function wz(i){this.exit(i)}function kz(i){let c=this.resume(),b=this.stack[this.stack.length-1];xt(b.type==="footnoteDefinition"),b.identifier=kn(this.sliceSerialize(i)).toLowerCase(),b.label=c}function Sz(i){this.exit(i)}function Ez(){return"["}function P2(i,c,b,w){let E=b.createTracker(w),N=E.move("[^"),R=b.enter("footnoteReference"),D=b.enter("reference");return N+=E.move(b.safe(b.associationId(i),{after:"]",before:N})),D(),R(),N+=E.move("]"),N}function Rv(){return{enter:{gfmFootnoteCallString:gz,gfmFootnoteCall:vz,gfmFootnoteDefinitionLabelString:yz,gfmFootnoteDefinition:bz},exit:{gfmFootnoteCallString:xz,gfmFootnoteCall:wz,gfmFootnoteDefinitionLabelString:kz,gfmFootnoteDefinition:Sz}}}function Mv(i){let c=!1;if(i&&i.firstLineBlank)c=!0;return{handlers:{footnoteDefinition:b,footnoteReference:P2},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function b(w,E,N,R){let D=N.createTracker(R),L=D.move("[^"),H=N.enter("footnoteDefinition"),U=N.enter("label");if(L+=D.move(N.safe(N.associationId(w),{before:L,after:"]"})),U(),L+=D.move("]:"),w.children&&w.children.length>0)D.shift(4),L+=D.move((c?`
37
- `:" ")+N.indentLines(N.containerFlow(w,D.current()),c?I2:Tz));return H(),L}}function Tz(i,c,b){return c===0?i:I2(i,c,b)}function I2(i,c,b){return(b?"":" ")+i}var Cz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_v.attention=Rz;_v.peek=Mz;function zv(){return{canContainEols:["delete"],enter:{strikethrough:Az},exit:{strikethrough:Nz}}}function Ov(){return{handlers:{delete:_v},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Cz}]}}function Az(i){this.enter({type:"delete",children:[],position:void 0},i)}function Nz(i){this.exit(i)}function _v(i,c,b,w){let E=b.createTracker(w),N=b.stack.includes("strikethrough")?"~":"~~",R=b.enter("strikethrough"),D=E.move(N);return D+=b.containerPhrasing(i,{...E.current(),before:D,after:"~"}),D+=E.move(N),R(),D}function Rz(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function Mz(){return"~"}function zz(i){return i.length}function G2(i,c){let b=c||{},w=(b.align||[]).concat(),E=b.stringLength||zz,N=[],R=[],D=[],L=[],H=0,U=-1;while(++U<i.length){let Z=[],ee=[],P=-1;if(i[U].length>H)H=i[U].length;while(++P<i[U].length){let G=Oz(i[U][P]);if(b.alignDelimiters!==!1){let F=E(G);if(ee[P]=F,L[P]===void 0||F>L[P])L[P]=F}Z.push(G)}R[U]=Z,D[U]=ee}let B=-1;if(typeof w==="object"&&"length"in w)while(++B<H)N[B]=j2(w[B]);else{let Z=j2(w);while(++B<H)N[B]=Z}B=-1;let V=[],q=[];while(++B<H){let Z=N[B],ee="",P="";if(Z===99)ee=":",P=":";else if(Z===108)ee=":";else if(Z===114)P=":";let G=b.alignDelimiters===!1?1:Math.max(1,L[B]-ee.length-P.length),F=ee+"-".repeat(G)+P;if(b.alignDelimiters!==!1){if(G=ee.length+G+P.length,G>L[B])L[B]=G;q[B]=G}V[B]=F}R.splice(1,0,V),D.splice(1,0,q),U=-1;let Y=[];while(++U<R.length){let Z=R[U],ee=D[U];B=-1;let P=[];while(++B<H){let G=Z[B]||"",F="",te="";if(b.alignDelimiters!==!1){let oe=L[B]-(ee[B]||0),ae=N[B];if(ae===114)F=" ".repeat(oe);else if(ae===99)if(oe%2)F=" ".repeat(oe/2+0.5),te=" ".repeat(oe/2-0.5);else F=" ".repeat(oe/2),te=F;else te=" ".repeat(oe)}if(b.delimiterStart!==!1&&!B)P.push("|");if(b.padding!==!1&&!(b.alignDelimiters===!1&&G==="")&&(b.delimiterStart!==!1||B))P.push(" ");if(b.alignDelimiters!==!1)P.push(F);if(P.push(G),b.alignDelimiters!==!1)P.push(te);if(b.padding!==!1)P.push(" ");if(b.delimiterEnd!==!1||B!==H-1)P.push("|")}Y.push(b.delimiterEnd===!1?P.join("").replace(/ +$/,""):P.join(""))}return Y.join(`
38
- `)}function Oz(i){return i===null||i===void 0?"":String(i)}function j2(i){let c=typeof i==="string"?i.codePointAt(0):0;return c===67||c===99?99:c===76||c===108?108:c===82||c===114?114:0}function Y2(i,c,b,w){let E=b.enter("blockquote"),N=b.createTracker(w);N.move("> "),N.shift(2);let R=b.indentLines(b.containerFlow(i,N.current()),_z);return E(),R}function _z(i,c,b){return">"+(b?"":" ")+i}function Q2(i,c){return F2(i,c.inConstruct,!0)&&!F2(i,c.notInConstruct,!1)}function F2(i,c,b){if(typeof c==="string")c=[c];if(!c||c.length===0)return b;let w=-1;while(++w<c.length)if(i.includes(c[w]))return!0;return!1}function Dv(i,c,b,w){let E=-1;while(++E<b.unsafe.length){let N=b.unsafe[E];if(N.character===`
39
- `&&!N.before&&!N.after&&Q2(b.stack,N))return/[\t ]/.test(w.before)?"":" "}return"\\\n"}function X2(i,c){let b=String(i),w=b.indexOf(c),E=w,N=0,R=0;if(typeof c!=="string")throw TypeError("Expected substring");while(w!==-1){if(w===E){if(++N>R)R=N}else N=1;E=w+c.length,w=b.indexOf(c,E)}return R}function Z2(i,c){return Boolean(c.options.fences===!1&&i.value&&!i.lang&&/[^\n\r ]/.test(i.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(i.value))}function K2(i){let c=i.options.fence||"`";if(c!=="`"&&c!=="~")throw Error("Cannot serialize code with `"+c+"` for `options.fence`, expected `` ` `` or `~`");return c}function J2(i,c,b,w){let E=K2(b),N=i.value||"";if(Z2(i,b)){let B=b.enter("codeIndented"),V=b.indentLines(N,Dz);return B(),V}let R=b.createTracker(w),D=E.repeat(Math.max(X2(N,E)+1,3)),L=b.enter("codeFenced"),H=E==="`"?"GraveAccent":"Tilde",U=R.move(D);if(i.lang){let B=b.enter(`codeFencedLang${H}`);U+=R.move(b.safe(i.lang,{before:U,after:" ",encode:["`"],...R.current()})),B()}if(i.lang&&i.meta){let B=b.enter(`codeFencedMeta${H}`);U+=R.move(" "),U+=R.move(b.safe(i.meta,{before:U,after:`
40
- `,encode:["`"],...R.current()})),B()}if(U+=R.move(`
41
- `),N)U+=R.move(N+`
42
- `);return U+=R.move(D),L(),U}function Dz(i,c,b){return(b?"":" ")+i}function jl(i){let c=i.options.quote||'"';if(c!=='"'&&c!=="'")throw Error("Cannot serialize title with `"+c+"` for `options.quote`, expected `\"`, or `'`");return c}function W2(i,c,b,w){let E=jl(b),N=E==='"'?"Quote":"Apostrophe",R=b.enter("definition"),D=b.enter("label"),L=b.createTracker(w),H=L.move("[");if(H+=L.move(b.safe(b.associationId(i),{before:H,after:"]",...L.current()})),H+=L.move("]: "),D(),!i.url||/[\0- \u007F]/.test(i.url))D=b.enter("destinationLiteral"),H+=L.move("<"),H+=L.move(b.safe(i.url,{before:H,after:">",...L.current()})),H+=L.move(">");else D=b.enter("destinationRaw"),H+=L.move(b.safe(i.url,{before:H,after:i.title?" ":`
43
- `,...L.current()}));if(D(),i.title)D=b.enter(`title${N}`),H+=L.move(" "+E),H+=L.move(b.safe(i.title,{before:H,after:E,...L.current()})),H+=L.move(E),D();return R(),H}function $2(i){let c=i.options.emphasis||"*";if(c!=="*"&&c!=="_")throw Error("Cannot serialize emphasis with `"+c+"` for `options.emphasis`, expected `*`, or `_`");return c}zd.attention=Lz;zd.peek=Hz;function zd(i,c,b,w){let E=b.enter("phrasing"),N=b.containerPhrasing({type:"root",children:[i]},w);return E(),N}function Lz(i,c){return{construct:"emphasis",markers:$2(c)==="*"?["*","_"]:["_","*"],sizes:[1]}}function Hz(i,c,b){return b.options.emphasis||"*"}function eE(i){return"&#x"+i.toString(16).toUpperCase()+";"}function tE(i,c){let b=!1;return Oo(i,function(w){if("value"in w&&/\r?\n|\r/.test(w.value)||w.type==="break")return b=!0,zo}),Boolean((!i.depth||i.depth<3)&&So(i)&&(c.options.setext||b))}function nE(i,c,b,w){let E=Math.max(Math.min(6,i.depth||1),1),N=b.createTracker(w);if(tE(i,b)){let B=b.enter("headingSetext"),V=b.enter("phrasing"),q=b.containerPhrasing(i,{...N.current(),before:`
44
- `,after:`
45
- `});return V(),B(),q+`
46
- `+(E===1?"=":"-").repeat(q.length-(Math.max(q.lastIndexOf("\r"),q.lastIndexOf(`
47
- `))+1))}let R="#".repeat(E),D=b.enter("headingAtx"),L=b.enter("phrasing");N.move(R+" ");let H=b.containerPhrasing(i,{before:"# ",after:`
48
- `,...N.current()}),U=H.charCodeAt(0);if(U===9||U===32)H=eE(U)+H.slice(1);if(H=H?R+" "+H:R,b.options.closeAtx)H+=" "+R;return L(),D(),H}Lv.peek=Uz;function Lv(i){return i.value||""}function Uz(){return"<"}Hv.peek=Bz;function Hv(i,c,b,w){let E=jl(b),N=E==='"'?"Quote":"Apostrophe",R=b.enter("image"),D=b.enter("label"),L=b.createTracker(w),H=L.move("![");if(H+=L.move(b.safe(i.alt,{before:H,after:"]",...L.current()})),H+=L.move("]("),D(),!i.url&&i.title||/[\0- \u007F]/.test(i.url))D=b.enter("destinationLiteral"),H+=L.move("<"),H+=L.move(b.safe(i.url,{before:H,after:">",...L.current()})),H+=L.move(">");else D=b.enter("destinationRaw"),H+=L.move(b.safe(i.url,{before:H,after:i.title?" ":")",...L.current()}));if(D(),i.title)D=b.enter(`title${N}`),H+=L.move(" "+E),H+=L.move(b.safe(i.title,{before:H,after:E,...L.current()})),H+=L.move(E),D();return H+=L.move(")"),R(),H}function Bz(){return"!"}Uv.peek=Vz;function Uv(i,c,b,w){let E=i.referenceType,N=b.enter("imageReference"),R=b.enter("label"),D=b.createTracker(w),L=D.move("!["),H=b.safe(i.alt,{before:L,after:"]",...D.current()});L+=D.move(H+"]["),R();let U=b.stack;b.stack=U.filter(function(V){return V!=="phrasing"}),R=b.enter("reference");let B=b.safe(b.associationId(i),{before:L,after:"]",...D.current()});if(R(),b.stack=U,N(),E==="full"||!H||H!==B)L+=D.move(B+"]");else if(E==="shortcut")L=L.slice(0,-1);else L+=D.move("]");return L}function Vz(){return"!"}Bv.peek=qz;function Bv(i,c,b){let w=i.value||"",E="`",N=-1;while(new RegExp("(^|[^`])"+E+"([^`]|$)").test(w))E+="`";if(/[^\n\r ]/.test(w)&&(/^[\n\r ]/.test(w)&&/[\n\r ]$/.test(w)||/^`|`$/.test(w)))w=" "+w+" ";while(++N<b.unsafe.length){let R=b.unsafe[N],D=b.compilePattern(R);if(!R.atBreak)continue;let L;while(L=D.exec(w)){let H=L.index;if(w.charCodeAt(H)===10&&w.charCodeAt(H-1)===13)H--;w=w.slice(0,H)+" "+w.slice(L.index+1)}}return E+w+E}function qz(){return"`"}function Vv(i,c){let b=So(i);return Boolean(!c.options.resourceLink&&i.url&&!i.title&&i.children&&i.children.length===1&&i.children[0].type==="text"&&(b===i.url||"mailto:"+b===i.url)&&/^[a-z][+\-.a-z]+:/i.test(i.url)&&!/[\0- <>\u007F]/.test(i.url))}qv.peek=Pz;function qv(i,c,b,w){let E=jl(b),N=E==='"'?"Quote":"Apostrophe",R=b.createTracker(w);if(Vv(i,b)){let U=b.stack;b.stack=U.filter(function(q){return q!=="phrasing"});let B=b.enter("autolink"),V=R.move("<");return V+=R.move(b.containerPhrasing(i,{before:V,after:">",...R.current()})),V+=R.move(">"),B(),b.stack=U,V}let D=b.enter("link"),L=b.enter("label"),H=R.move("[");if(H+=R.move(b.containerPhrasing(i,{before:H,after:"](",...R.current()})),H+=R.move("]("),L(),!i.url&&i.title||/[\0- \u007F]/.test(i.url))L=b.enter("destinationLiteral"),H+=R.move("<"),H+=R.move(b.safe(i.url,{before:H,after:">",...R.current()})),H+=R.move(">");else L=b.enter("destinationRaw"),H+=R.move(b.safe(i.url,{before:H,after:i.title?" ":")",...R.current()}));if(L(),i.title)L=b.enter(`title${N}`),H+=R.move(" "+E),H+=R.move(b.safe(i.title,{before:H,after:E,...R.current()})),H+=R.move(E),L();return H+=R.move(")"),D(),H}function Pz(i,c,b){return Vv(i,b)?"<":"["}Pv.peek=Iz;function Pv(i,c,b,w){let E=i.referenceType,N=b.enter("linkReference"),R=b.enter("label"),D=b.createTracker(w),L=D.move("["),H=b.containerPhrasing(i,{before:L,after:"]",...D.current()});L+=D.move(H+"]["),R();let U=b.stack;b.stack=U.filter(function(V){return V!=="phrasing"}),R=b.enter("reference");let B=b.safe(b.associationId(i),{before:L,after:"]",...D.current()});if(R(),b.stack=U,N(),E==="full"||!H||H!==B)L+=D.move(B+"]");else if(E==="shortcut")L=L.slice(0,-1);else L+=D.move("]");return L}function Iz(){return"["}function Gl(i){let c=i.options.bullet||"*";if(c!=="*"&&c!=="+"&&c!=="-")throw Error("Cannot serialize items with `"+c+"` for `options.bullet`, expected `*`, `+`, or `-`");return c}function rE(i){let c=Gl(i),b=i.options.bulletOther;if(!b)return c==="*"?"-":"*";if(b!=="*"&&b!=="+"&&b!=="-")throw Error("Cannot serialize items with `"+b+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(b===c)throw Error("Expected `bullet` (`"+c+"`) and `bulletOther` (`"+b+"`) to be different");return b}function aE(i){let c=i.options.bulletOrdered||".";if(c!=="."&&c!==")")throw Error("Cannot serialize items with `"+c+"` for `options.bulletOrdered`, expected `.` or `)`");return c}function Od(i){let c=i.options.rule||"*";if(c!=="*"&&c!=="-"&&c!=="_")throw Error("Cannot serialize rules with `"+c+"` for `options.rule`, expected `*`, `-`, or `_`");return c}function iE(i,c,b,w){let E=b.enter("list"),N=b.bulletCurrent,R=i.ordered?aE(b):Gl(b),D=i.ordered?R==="."?")":".":rE(b),L=c&&b.bulletLastUsed?R===b.bulletLastUsed:!1;if(!i.ordered){let U=i.children?i.children[0]:void 0;if((R==="*"||R==="-")&&U&&(!U.children||!U.children[0])&&b.stack[b.stack.length-1]==="list"&&b.stack[b.stack.length-2]==="listItem"&&b.stack[b.stack.length-3]==="list"&&b.stack[b.stack.length-4]==="listItem"&&b.indexStack[b.indexStack.length-1]===0&&b.indexStack[b.indexStack.length-2]===0&&b.indexStack[b.indexStack.length-3]===0)L=!0;if(Od(b)===R&&U){let B=-1;while(++B<i.children.length){let V=i.children[B];if(V&&V.type==="listItem"&&V.children&&V.children[0]&&V.children[0].type==="thematicBreak"){L=!0;break}}}}if(L)R=D;b.bulletCurrent=R;let H=b.containerFlow(i,w);return b.bulletLastUsed=R,b.bulletCurrent=N,E(),H}function oE(i){let c=i.options.listItemIndent||"one";if(c!=="tab"&&c!=="one"&&c!=="mixed")throw Error("Cannot serialize items with `"+c+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return c}function lE(i,c,b,w){let E=oE(b),N=b.bulletCurrent||Gl(b);if(c&&c.type==="list"&&c.ordered)N=(typeof c.start==="number"&&c.start>-1?c.start:1)+(b.options.incrementListMarker===!1?0:c.children.indexOf(i))+N;let R=N.length+1;if(E==="tab"||E==="mixed"&&(c&&c.type==="list"&&c.spread||i.spread))R=Math.ceil(R/4)*4;let D=b.createTracker(w);D.move(N+" ".repeat(R-N.length)),D.shift(R);let L=b.enter("listItem"),H=b.indentLines(b.containerFlow(i,D.current()),U);return L(),H;function U(B,V,q){if(V)return(q?"":" ".repeat(R))+B;return(q?N:N+" ".repeat(R-N.length))+B}}function sE(i,c,b,w){let E=b.enter("paragraph"),N=b.enter("phrasing"),R=b.containerPhrasing(i,w);return N(),E(),R}var Iv=Mi(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function uE(i,c,b,w){if(!i.children.some(function(D){return Iv(D)}))return b.containerFlow(i,w);let N=b.enter("phrasing"),R=b.containerPhrasing(i,w);return N(),R}function cE(i){let c=i.options.strong||"*";if(c!=="*"&&c!=="_")throw Error("Cannot serialize strong with `"+c+"` for `options.strong`, expected `*`, or `_`");return c}_d.attention=jz;_d.peek=Gz;function _d(i,c,b,w){let E=b.enter("phrasing"),N=b.containerPhrasing({type:"root",children:[i]},w);return E(),N}function jz(i,c){return{construct:"strong",markers:cE(c)==="*"?["*","_"]:["_","*"],sizes:[2]}}function Gz(i,c,b){return b.options.strong||"*"}function fE(i,c,b,w){return b.safe(i.value,w)}function dE(i){let c=i.options.ruleRepetition||3;if(c<3)throw Error("Cannot serialize rules with repetition `"+c+"` for `options.ruleRepetition`, expected `3` or more");return c}function mE(i,c,b){let w=(Od(b)+(b.options.ruleSpaces?" ":"")).repeat(dE(b));return b.options.ruleSpaces?w.slice(0,-1):w}var Vu={blockquote:Y2,break:Dv,code:J2,definition:W2,emphasis:zd,hardBreak:Dv,heading:nE,html:Lv,image:Hv,imageReference:Uv,inlineCode:Bv,link:qv,linkReference:Pv,list:iE,listItem:lE,paragraph:sE,root:uE,strong:_d,text:fE,thematicBreak:mE};function Gv(){return{enter:{table:Yz,tableData:pE,tableHeader:pE,tableRow:Qz},exit:{codeText:Xz,table:Fz,tableData:jv,tableHeader:jv,tableRow:jv}}}function Yz(i){let c=i._align;xt(c,"expected `_align` on table"),this.enter({type:"table",align:c.map(function(b){return b==="none"?null:b}),children:[]},i),this.data.inTable=!0}function Fz(i){this.exit(i),this.data.inTable=void 0}function Qz(i){this.enter({type:"tableRow",children:[]},i)}function jv(i){this.exit(i)}function pE(i){this.enter({type:"tableCell",children:[]},i)}function Xz(i){let c=this.resume();if(this.data.inTable)c=c.replace(/\\([\\|])/g,Zz);let b=this.stack[this.stack.length-1];xt(b.type==="inlineCode"),b.value=c,this.exit(i)}function Zz(i,c){return c==="|"?c:i}function Yv(i){let c=i||{},{tableCellPadding:b,tablePipeAlign:w,stringLength:E}=c,N=b?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
49
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:V,table:R,tableCell:L,tableRow:D}};function R(q,Y,Z,ee){return H(U(q,Z,ee),q.align)}function D(q,Y,Z,ee){let P=B(q,Z,ee),G=H([P]);return G.slice(0,G.indexOf(`
50
- `))}function L(q,Y,Z,ee){let P=Z.enter("tableCell"),G=Z.enter("phrasing"),F=Z.containerPhrasing(q,{...ee,before:N,after:N});return G(),P(),F}function H(q,Y){return G2(q,{align:Y,alignDelimiters:w,padding:b,stringLength:E})}function U(q,Y,Z){let ee=q.children,P=-1,G=[],F=Y.enter("table");while(++P<ee.length)G[P]=B(ee[P],Y,Z);return F(),G}function B(q,Y,Z){let ee=q.children,P=-1,G=[],F=Y.enter("tableRow");while(++P<ee.length)G[P]=L(ee[P],q,Y,Z);return F(),G}function V(q,Y,Z){let ee=Vu.inlineCode(q,Y,Z);if(Z.stack.includes("tableCell"))ee=ee.replace(/\|/g,"\\$&");return ee}}function Fv(){return{exit:{taskListCheckValueChecked:hE,taskListCheckValueUnchecked:hE,paragraph:Kz}}}function Qv(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Jz}}}function hE(i){let c=this.stack[this.stack.length-2];xt(c.type==="listItem"),c.checked=i.type==="taskListCheckValueChecked"}function Kz(i){let c=this.stack[this.stack.length-2];if(c&&c.type==="listItem"&&typeof c.checked==="boolean"){let b=this.stack[this.stack.length-1];xt(b.type==="paragraph");let w=b.children[0];if(w&&w.type==="text"){let E=c.children,N=-1,R;while(++N<E.length){let D=E[N];if(D.type==="paragraph"){R=D;break}}if(R===b){if(w.value=w.value.slice(1),w.value.length===0)b.children.shift();else if(b.position&&w.position&&typeof w.position.start.offset==="number")w.position.start.column++,w.position.start.offset++,b.position.start=Object.assign({},w.position.start)}}}this.exit(i)}function Jz(i,c,b,w){let E=i.children[0],N=typeof i.checked==="boolean"&&E&&E.type==="paragraph",R="["+(i.checked?"x":" ")+"] ",D=b.createTracker(w);if(N)D.move(R);let L=Vu.listItem(i,c,b,{...w,...D.current()});if(N)L=L.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,H);return L;function H(U){return U+R}}function Xv(){return[Av(),Rv(),zv(),Gv(),Fv()]}function Zv(i){return{extensions:[Nv(),Mv(i),Ov(),Yv(i),Qv()]}}var Wz={tokenize:rO,partial:!0},gE={tokenize:aO,partial:!0},vE={tokenize:iO,partial:!0},yE={tokenize:oO,partial:!0},$z={tokenize:lO,partial:!0},bE={name:"wwwAutolink",tokenize:tO,previous:wE},xE={name:"protocolAutolink",tokenize:nO,previous:kE},Ha={name:"emailAutolink",tokenize:eO,previous:SE},ma={};function Jv(){return{text:ma}}var _o=48;while(_o<123)if(ma[_o]=Ha,_o++,_o===58)_o=65;else if(_o===91)_o=97;ma[43]=Ha;ma[45]=Ha;ma[46]=Ha;ma[95]=Ha;ma[72]=[Ha,xE];ma[104]=[Ha,xE];ma[87]=[Ha,bE];ma[119]=[Ha,bE];function eO(i,c,b){let w=this,E,N;return R;function R(B){if(!Kv(B)||!SE.call(w,w.previous)||Wv(w.events))return b(B);return i.enter("literalAutolink"),i.enter("literalAutolinkEmail"),D(B)}function D(B){if(Kv(B))return i.consume(B),D;if(B===64)return i.consume(B),L;return b(B)}function L(B){if(B===46)return i.check($z,U,H)(B);if(B===45||B===95||Dt(B))return N=!0,i.consume(B),L;return U(B)}function H(B){return i.consume(B),E=!0,L}function U(B){if(N&&E&&Qt(w.previous))return i.exit("literalAutolinkEmail"),i.exit("literalAutolink"),c(B);return b(B)}}function tO(i,c,b){let w=this;return E;function E(R){if(R!==87&&R!==119||!wE.call(w,w.previous)||Wv(w.events))return b(R);return i.enter("literalAutolink"),i.enter("literalAutolinkWww"),i.check(Wz,i.attempt(gE,i.attempt(vE,N),b),b)(R)}function N(R){return i.exit("literalAutolinkWww"),i.exit("literalAutolink"),c(R)}}function nO(i,c,b){let w=this,E="",N=!1;return R;function R(B){if((B===72||B===104)&&kE.call(w,w.previous)&&!Wv(w.events))return i.enter("literalAutolink"),i.enter("literalAutolinkHttp"),E+=String.fromCodePoint(B),i.consume(B),D;return b(B)}function D(B){if(Qt(B)&&E.length<5)return E+=String.fromCodePoint(B),i.consume(B),D;if(B===58){let V=E.toLowerCase();if(V==="http"||V==="https")return i.consume(B),L}return b(B)}function L(B){if(B===47){if(i.consume(B),N)return H;return N=!0,L}return b(B)}function H(B){return B===null||Eo(B)||Ie(B)||fa(B)||To(B)?b(B):i.attempt(gE,i.attempt(vE,U),b)(B)}function U(B){return i.exit("literalAutolinkHttp"),i.exit("literalAutolink"),c(B)}}function rO(i,c,b){let w=0;return E;function E(R){if((R===87||R===119)&&w<3)return w++,i.consume(R),E;if(R===46&&w===3)return i.consume(R),N;return b(R)}function N(R){return R===null?b(R):c(R)}}function aO(i,c,b){let w,E,N;return R;function R(H){if(H===46||H===95)return i.check(yE,L,D)(H);if(H===null||Ie(H)||fa(H)||H!==45&&To(H))return L(H);return N=!0,i.consume(H),R}function D(H){if(H===95)w=!0;else E=w,w=void 0;return i.consume(H),R}function L(H){if(E||w||!N)return b(H);return c(H)}}function iO(i,c){let b=0,w=0;return E;function E(R){if(R===40)return b++,i.consume(R),E;if(R===41&&w<b)return N(R);if(R===33||R===34||R===38||R===39||R===41||R===42||R===44||R===46||R===58||R===59||R===60||R===63||R===93||R===95||R===126)return i.check(yE,c,N)(R);if(R===null||Ie(R)||fa(R))return c(R);return i.consume(R),E}function N(R){if(R===41)w++;return i.consume(R),E}}function oO(i,c,b){return w;function w(D){if(D===33||D===34||D===39||D===41||D===42||D===44||D===46||D===58||D===59||D===63||D===95||D===126)return i.consume(D),w;if(D===38)return i.consume(D),N;if(D===93)return i.consume(D),E;if(D===60||D===null||Ie(D)||fa(D))return c(D);return b(D)}function E(D){if(D===null||D===40||D===91||Ie(D)||fa(D))return c(D);return w(D)}function N(D){return Qt(D)?R(D):b(D)}function R(D){if(D===59)return i.consume(D),w;if(Qt(D))return i.consume(D),R;return b(D)}}function lO(i,c,b){return w;function w(N){return i.consume(N),E}function E(N){return Dt(N)?b(N):c(N)}}function wE(i){return i===null||i===40||i===42||i===95||i===91||i===93||i===126||Ie(i)}function kE(i){return!Qt(i)}function SE(i){return!(i===47||Kv(i))}function Kv(i){return i===43||i===45||i===46||i===95||Dt(i)}function Wv(i){let c=i.length,b=!1;while(c--){let w=i[c][1];if((w.type==="labelLink"||w.type==="labelImage")&&!w._balanced){b=!0;break}if(w._gfmAutolinkLiteralWalkedInto){b=!1;break}}if(i.length>0&&!b)i[i.length-1][1]._gfmAutolinkLiteralWalkedInto=!0;return b}var sO={tokenize:hO,partial:!0};function $v(){return{document:{[91]:{name:"gfmFootnoteDefinition",tokenize:dO,continuation:{tokenize:mO},exit:pO}},text:{[91]:{name:"gfmFootnoteCall",tokenize:fO},[93]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:uO,resolveTo:cO}}}}function uO(i,c,b){let w=this,E=w.events.length,N=w.parser.gfmFootnotes||(w.parser.gfmFootnotes=[]),R;while(E--){let L=w.events[E][1];if(L.type==="labelImage"){R=L;break}if(L.type==="gfmFootnoteCall"||L.type==="labelLink"||L.type==="label"||L.type==="image"||L.type==="link")break}return D;function D(L){if(!R||!R._balanced)return b(L);let H=kn(w.sliceSerialize({start:R.end,end:w.now()}));if(H.codePointAt(0)!==94||!N.includes(H.slice(1)))return b(L);return i.enter("gfmFootnoteCallLabelMarker"),i.consume(L),i.exit("gfmFootnoteCallLabelMarker"),c(L)}}function cO(i,c){let b=i.length,w;while(b--)if(i[b][1].type==="labelImage"&&i[b][0]==="enter"){w=i[b][1];break}i[b+1][1].type="data",i[b+3][1].type="gfmFootnoteCallLabelMarker";let E={type:"gfmFootnoteCall",start:Object.assign({},i[b+3][1].start),end:Object.assign({},i[i.length-1][1].end)},N={type:"gfmFootnoteCallMarker",start:Object.assign({},i[b+3][1].end),end:Object.assign({},i[b+3][1].end)};N.end.column++,N.end.offset++,N.end._bufferIndex++;let R={type:"gfmFootnoteCallString",start:Object.assign({},N.end),end:Object.assign({},i[i.length-1][1].start)},D={type:"chunkString",contentType:"string",start:Object.assign({},R.start),end:Object.assign({},R.end)},L=[i[b+1],i[b+2],["enter",E,c],i[b+3],i[b+4],["enter",N,c],["exit",N,c],["enter",R,c],["enter",D,c],["exit",D,c],["exit",R,c],i[i.length-2],i[i.length-1],["exit",E,c]];return i.splice(b,i.length-b+1,...L),i}function fO(i,c,b){let w=this,E=w.parser.gfmFootnotes||(w.parser.gfmFootnotes=[]),N=0,R;return D;function D(B){return i.enter("gfmFootnoteCall"),i.enter("gfmFootnoteCallLabelMarker"),i.consume(B),i.exit("gfmFootnoteCallLabelMarker"),L}function L(B){if(B!==94)return b(B);return i.enter("gfmFootnoteCallMarker"),i.consume(B),i.exit("gfmFootnoteCallMarker"),i.enter("gfmFootnoteCallString"),i.enter("chunkString").contentType="string",H}function H(B){if(N>999||B===93&&!R||B===null||B===91||Ie(B))return b(B);if(B===93){i.exit("chunkString");let V=i.exit("gfmFootnoteCallString");if(!E.includes(kn(w.sliceSerialize(V))))return b(B);return i.enter("gfmFootnoteCallLabelMarker"),i.consume(B),i.exit("gfmFootnoteCallLabelMarker"),i.exit("gfmFootnoteCall"),c}if(!Ie(B))R=!0;return N++,i.consume(B),B===92?U:H}function U(B){if(B===91||B===92||B===93)return i.consume(B),N++,H;return H(B)}}function dO(i,c,b){let w=this,E=w.parser.gfmFootnotes||(w.parser.gfmFootnotes=[]),N,R=0,D;return L;function L(Y){return i.enter("gfmFootnoteDefinition")._container=!0,i.enter("gfmFootnoteDefinitionLabel"),i.enter("gfmFootnoteDefinitionLabelMarker"),i.consume(Y),i.exit("gfmFootnoteDefinitionLabelMarker"),H}function H(Y){if(Y===94)return i.enter("gfmFootnoteDefinitionMarker"),i.consume(Y),i.exit("gfmFootnoteDefinitionMarker"),i.enter("gfmFootnoteDefinitionLabelString"),i.enter("chunkString").contentType="string",U;return b(Y)}function U(Y){if(R>999||Y===93&&!D||Y===null||Y===91||Ie(Y))return b(Y);if(Y===93){i.exit("chunkString");let Z=i.exit("gfmFootnoteDefinitionLabelString");return N=kn(w.sliceSerialize(Z)),i.enter("gfmFootnoteDefinitionLabelMarker"),i.consume(Y),i.exit("gfmFootnoteDefinitionLabelMarker"),i.exit("gfmFootnoteDefinitionLabel"),V}if(!Ie(Y))D=!0;return R++,i.consume(Y),Y===92?B:U}function B(Y){if(Y===91||Y===92||Y===93)return i.consume(Y),R++,U;return U(Y)}function V(Y){if(Y===58){if(i.enter("definitionMarker"),i.consume(Y),i.exit("definitionMarker"),!E.includes(N))E.push(N);return ke(i,q,"gfmFootnoteDefinitionWhitespace")}return b(Y)}function q(Y){return c(Y)}}function mO(i,c,b){return i.check(da,c,i.attempt(sO,c,b))}function pO(i){i.exit("gfmFootnoteDefinition")}function hO(i,c,b){let w=this;return ke(i,E,"gfmFootnoteDefinitionIndent",5);function E(N){let R=w.events[w.events.length-1];return R&&R[1].type==="gfmFootnoteDefinitionIndent"&&R[2].sliceSerialize(R[1],!0).length===4?c(N):b(N)}}function ey(i){let b=(i||{}).singleTilde,w={name:"strikethrough",tokenize:N,resolveAll:E};if(b===null||b===void 0)b=!0;return{text:{[126]:w},insideSpan:{null:[w]},attentionMarkers:{null:[126]}};function E(R,D){let L=-1;while(++L<R.length)if(R[L][0]==="enter"&&R[L][1].type==="strikethroughSequenceTemporary"&&R[L][1]._close){let H=L;while(H--)if(R[H][0]==="exit"&&R[H][1].type==="strikethroughSequenceTemporary"&&R[H][1]._open&&R[L][1].end.offset-R[L][1].start.offset===R[H][1].end.offset-R[H][1].start.offset){R[L][1].type="strikethroughSequence",R[H][1].type="strikethroughSequence";let U={type:"strikethrough",start:Object.assign({},R[H][1].start),end:Object.assign({},R[L][1].end)},B={type:"strikethroughText",start:Object.assign({},R[H][1].end),end:Object.assign({},R[L][1].start)},V=[["enter",U,D],["enter",R[H][1],D],["exit",R[H][1],D],["enter",B,D]],q=D.parser.constructs.insideSpan.null;if(q)en(V,V.length,0,Ni(q,R.slice(H+1,L),D));en(V,V.length,0,[["exit",B,D],["enter",R[L][1],D],["exit",R[L][1],D],["exit",U,D]]),en(R,H-1,L-H+3,V),L=H+V.length-2;break}}L=-1;while(++L<R.length)if(R[L][1].type==="strikethroughSequenceTemporary")R[L][1].type="data";return R}function N(R,D,L){let H=this.previous,U=this.events,B=0;return V;function V(Y){if(H===126&&U[U.length-1][1].type!=="characterEscape")return L(Y);return R.enter("strikethroughSequenceTemporary"),q(Y)}function q(Y){let Z=Ul(H);if(Y===126){if(B>1)return L(Y);return R.consume(Y),B++,q}if(B<2&&!b)return L(Y);let ee=R.exit("strikethroughSequenceTemporary"),P=Ul(Y);return ee._open=!P||P===2&&Boolean(Z),ee._close=!Z||Z===2&&Boolean(P),D(Y)}}}class ty{constructor(){this.map=[],this.index=new Map}add(i,c,b){gO(this,i,c,b)}consume(i){if(this.map.sort(function(E,N){return E[0]-N[0]}),this.map.length===0)return;let c=this.map.length,b=[];while(c>0)c-=1,b.push(i.slice(this.map[c][0]+this.map[c][1]),this.map[c][2]),i.length=this.map[c][0];b.push(i.slice()),i.length=0;let w=b.pop();while(w){for(let E of w)i.push(E);w=b.pop()}this.map.length=0,this.index.clear()}}function gO(i,c,b,w){if(b===0&&w.length===0)return;let E=i.index.get(c);if(E){E[1]+=b,E[2].push(...w);return}let N=[c,b,w];i.map.push(N),i.index.set(c,N)}function EE(i,c){let b=!1,w=[];while(c<i.length){let E=i[c];if(b){if(E[0]==="enter"){if(E[1].type==="tableContent")w.push(i[c+1][1].type==="tableDelimiterMarker"?"left":"none")}else if(E[1].type==="tableContent"){if(i[c-1][1].type==="tableDelimiterMarker"){let N=w.length-1;w[N]=w[N]==="left"?"center":"right"}}else if(E[1].type==="tableDelimiterRow")break}else if(E[0]==="enter"&&E[1].type==="tableDelimiterRow")b=!0;c+=1}return w}function ny(){return{flow:{null:{name:"table",tokenize:vO,resolveAll:yO}}}}function vO(i,c,b){let w=this,E=0,N=0,R;return D;function D(ne){let Ve=w.events.length-1;while(Ve>-1){let{type:Ae}=w.events[Ve][1];if(Ae==="lineEnding"||Ae==="linePrefix")Ve--;else break}let ze=Ve>-1?w.events[Ve][1].type:null,ve=ze==="tableHead"||ze==="tableRow"?ae:L;if(ve===ae&&w.parser.lazy[w.now().line])return b(ne);return ve(ne)}function L(ne){return i.enter("tableHead"),i.enter("tableRow"),H(ne)}function H(ne){if(ne===124)return U(ne);return R=!0,N+=1,U(ne)}function U(ne){if(ne===null)return b(ne);if(ge(ne)){if(N>1)return N=0,w.interrupt=!0,i.exit("tableRow"),i.enter("lineEnding"),i.consume(ne),i.exit("lineEnding"),q;return b(ne)}if(be(ne))return ke(i,U,"whitespace")(ne);if(N+=1,R)R=!1,E+=1;if(ne===124)return i.enter("tableCellDivider"),i.consume(ne),i.exit("tableCellDivider"),R=!0,U;return i.enter("data"),B(ne)}function B(ne){if(ne===null||ne===124||Ie(ne))return i.exit("data"),U(ne);return i.consume(ne),ne===92?V:B}function V(ne){if(ne===92||ne===124)return i.consume(ne),B;return B(ne)}function q(ne){if(w.interrupt=!1,w.parser.lazy[w.now().line])return b(ne);if(i.enter("tableDelimiterRow"),R=!1,be(ne))return ke(i,Y,"linePrefix",w.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne);return Y(ne)}function Y(ne){if(ne===45||ne===58)return ee(ne);if(ne===124)return R=!0,i.enter("tableCellDivider"),i.consume(ne),i.exit("tableCellDivider"),Z;return oe(ne)}function Z(ne){if(be(ne))return ke(i,ee,"whitespace")(ne);return ee(ne)}function ee(ne){if(ne===58)return N+=1,R=!0,i.enter("tableDelimiterMarker"),i.consume(ne),i.exit("tableDelimiterMarker"),P;if(ne===45)return N+=1,P(ne);if(ne===null||ge(ne))return te(ne);return oe(ne)}function P(ne){if(ne===45)return i.enter("tableDelimiterFiller"),G(ne);return oe(ne)}function G(ne){if(ne===45)return i.consume(ne),G;if(ne===58)return R=!0,i.exit("tableDelimiterFiller"),i.enter("tableDelimiterMarker"),i.consume(ne),i.exit("tableDelimiterMarker"),F;return i.exit("tableDelimiterFiller"),F(ne)}function F(ne){if(be(ne))return ke(i,te,"whitespace")(ne);return te(ne)}function te(ne){if(ne===124)return Y(ne);if(ne===null||ge(ne)){if(!R||E!==N)return oe(ne);return i.exit("tableDelimiterRow"),i.exit("tableHead"),c(ne)}return oe(ne)}function oe(ne){return b(ne)}function ae(ne){return i.enter("tableRow"),ce(ne)}function ce(ne){if(ne===124)return i.enter("tableCellDivider"),i.consume(ne),i.exit("tableCellDivider"),ce;if(ne===null||ge(ne))return i.exit("tableRow"),c(ne);if(be(ne))return ke(i,ce,"whitespace")(ne);return i.enter("data"),ue(ne)}function ue(ne){if(ne===null||ne===124||Ie(ne))return i.exit("data"),ce(ne);return i.consume(ne),ne===92?ye:ue}function ye(ne){if(ne===92||ne===124)return i.consume(ne),ue;return ue(ne)}}function yO(i,c){let b=-1,w=!0,E=0,N=[0,0,0,0],R=[0,0,0,0],D=!1,L=0,H,U,B,V=new ty;while(++b<i.length){let q=i[b],Y=q[1];if(q[0]==="enter"){if(Y.type==="tableHead"){if(D=!1,L!==0)TE(V,c,L,H,U),U=void 0,L=0;H={type:"table",start:Object.assign({},Y.start),end:Object.assign({},Y.end)},V.add(b,0,[["enter",H,c]])}else if(Y.type==="tableRow"||Y.type==="tableDelimiterRow"){if(w=!0,B=void 0,N=[0,0,0,0],R=[0,b+1,0,0],D)D=!1,U={type:"tableBody",start:Object.assign({},Y.start),end:Object.assign({},Y.end)},V.add(b,0,[["enter",U,c]]);E=Y.type==="tableDelimiterRow"?2:U?3:1}else if(E&&(Y.type==="data"||Y.type==="tableDelimiterMarker"||Y.type==="tableDelimiterFiller")){if(w=!1,R[2]===0){if(N[1]!==0)R[0]=R[1],B=Dd(V,c,N,E,void 0,B),N=[0,0,0,0];R[2]=b}}else if(Y.type==="tableCellDivider")if(w)w=!1;else{if(N[1]!==0)R[0]=R[1],B=Dd(V,c,N,E,void 0,B);N=R,R=[N[1],b,0,0]}}else if(Y.type==="tableHead")D=!0,L=b;else if(Y.type==="tableRow"||Y.type==="tableDelimiterRow"){if(L=b,N[1]!==0)R[0]=R[1],B=Dd(V,c,N,E,b,B);else if(R[1]!==0)B=Dd(V,c,R,E,b,B);E=0}else if(E&&(Y.type==="data"||Y.type==="tableDelimiterMarker"||Y.type==="tableDelimiterFiller"))R[3]=b}if(L!==0)TE(V,c,L,H,U);V.consume(c.events),b=-1;while(++b<c.events.length){let q=c.events[b];if(q[0]==="enter"&&q[1].type==="table")q[1]._align=EE(c.events,b)}return i}function Dd(i,c,b,w,E,N){let R=w===1?"tableHeader":w===2?"tableDelimiter":"tableData",D="tableContent";if(b[0]!==0)N.end=Object.assign({},Yl(c.events,b[0])),i.add(b[0],0,[["exit",N,c]]);let L=Yl(c.events,b[1]);if(N={type:R,start:Object.assign({},L),end:Object.assign({},L)},i.add(b[1],0,[["enter",N,c]]),b[2]!==0){let H=Yl(c.events,b[2]),U=Yl(c.events,b[3]),B={type:"tableContent",start:Object.assign({},H),end:Object.assign({},U)};if(i.add(b[2],0,[["enter",B,c]]),w!==2){let V=c.events[b[2]],q=c.events[b[3]];if(V[1].end=Object.assign({},q[1].end),V[1].type="chunkText",V[1].contentType="text",b[3]>b[2]+1){let Y=b[2]+1,Z=b[3]-b[2]-1;i.add(Y,Z,[])}}i.add(b[3]+1,0,[["exit",B,c]])}if(E!==void 0)N.end=Object.assign({},Yl(c.events,E)),i.add(E,0,[["exit",N,c]]),N=void 0;return N}function TE(i,c,b,w,E){let N=[],R=Yl(c.events,b);if(E)E.end=Object.assign({},R),N.push(["exit",E,c]);w.end=Object.assign({},R),N.push(["exit",w,c]),i.add(b+1,0,N)}function Yl(i,c){let b=i[c],w=b[0]==="enter"?"start":"end";return b[1][w]}var bO={name:"tasklistCheck",tokenize:xO};function ry(){return{text:{[91]:bO}}}function xO(i,c,b){let w=this;return E;function E(L){if(w.previous!==null||!w._gfmTasklistFirstContentOfListItem)return b(L);return i.enter("taskListCheck"),i.enter("taskListCheckMarker"),i.consume(L),i.exit("taskListCheckMarker"),N}function N(L){if(Ie(L))return i.enter("taskListCheckValueUnchecked"),i.consume(L),i.exit("taskListCheckValueUnchecked"),R;if(L===88||L===120)return i.enter("taskListCheckValueChecked"),i.consume(L),i.exit("taskListCheckValueChecked"),R;return b(L)}function R(L){if(L===93)return i.enter("taskListCheckMarker"),i.consume(L),i.exit("taskListCheckMarker"),i.exit("taskListCheck"),D;return b(L)}function D(L){if(ge(L))return c(L);if(be(L))return i.check({tokenize:wO},c,b)(L);return b(L)}}function wO(i,c,b){return ke(i,w,"whitespace");function w(E){return E===null?b(E):c(E)}}function CE(i){return id([Jv(),$v(),ey(i),ny(),ry()])}var kO={};function Et(i){let c=this,b=i||kO,w=c.data(),E=w.micromarkExtensions||(w.micromarkExtensions=[]),N=w.fromMarkdownExtensions||(w.fromMarkdownExtensions=[]),R=w.toMarkdownExtensions||(w.toMarkdownExtensions=[]);E.push(CE(b)),N.push(Xv()),R.push(Zv(b))}var AE=(i)=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),SO=(i)=>new RegExp(i?`^${AE(i)}:thread\\.[0-9a-f-]{36}$`:"(?!)"),NE=(i,c)=>c!==void 0&&new RegExp(`\\]\\(${AE(c)}:thread\\.[0-9a-f-]{36}\\)`).test(i);function Xr({children:i}){let[c,b]=r(!1),w=(E)=>{if(typeof E==="string")return E;if(Array.isArray(E))return E.map(w).join("");if(E&&typeof E==="object"&&"props"in E)return w(E.props.children);return""};return n("div",{className:"code-block",children:[e("pre",{children:i}),e("button",{type:"button",className:"icon-button code-copy","aria-label":t("Copy"),onClick:()=>{navigator.clipboard?.writeText(w(i)).then(()=>{b(!0),setTimeout(()=>b(!1),1400)}).catch(()=>{return})},children:e(s,{name:c?"check":"copy",size:16})})]})}var Ye=j(function({source:c}){let b=SO(Se(rt)?.app?.surface);return e("div",{className:"prose",children:e(Wt,{remarkPlugins:[Et],urlTransform:(w)=>b.test(w)?w:Xn(w),components:{a:({href:w,children:E})=>w&&b.test(w)?e("a",{className:"thread-link",href:x("room",w),children:E}):w&&/^https?:\/\//.test(w)?e("a",{href:w,target:"_blank",rel:"noreferrer noopener",children:E}):e("span",{children:E}),img:({alt:w})=>e("span",{children:w}),pre:Xr,table:({children:w})=>e("div",{className:"table-wrap",children:e("table",{children:w})})},children:c})})});var EO={approved:u("Approved"),declined:u("Declined"),answered:u("Answered"),expired:u("Expired"),cancelled:u("Cancelled"),withdrawn:u("Withdrawn")};function TO(i){let{frame:c,outcome:b}=i;if(!b)return"";if(c.kind==="approval"&&c.wording){if(b==="approved")return c.wording.approved;if(b==="declined")return c.wording.declined}let w=t(EO[b]);return i.note?`${w}: ${i.note}`:w}function iy(i){let c=we(),[b,w]=r(!1),E=i.refused??0;return o(()=>{if(E>0)w(!1)},[E]),{sent:b,send:(R)=>{if(!c.send(R))return f(t("Not connected right now. Try again when the connection is back."),"danger"),!1;return w(!0),!0}}}function ay(i){let c=i.text?.trim();return[...i.choices,...c?[c]:[]].join(", ")}function oy({open:i,children:c}){return e("div",{className:"collapse","data-open":i,children:e("div",{className:"collapse-inner",inert:!i,children:c})})}function CO({room:i,stamp:c}){let b=Ki(i);return e("span",{className:"wax-seal","data-stamp":c?"true":void 0,style:b,"aria-hidden":"true",children:n("svg",{viewBox:"0 0 40 40","aria-hidden":"true",focusable:"false",children:[e("path",{className:"seal-body",d:"M37.4 21.9Q36.3 23.7 36.6 25.9Q37.0 28.2 35.0 29.3Q33.0 30.4 32.4 32.5Q31.7 34.6 29.5 34.9Q27.3 35.2 25.7 36.6Q24.1 37.9 22.0 37.4Q20.0 37.0 18.0 37.4Q15.9 37.9 14.3 36.6Q12.6 35.3 10.6 34.8Q8.6 34.4 7.8 32.4Q7.0 30.4 5.1 29.2Q3.2 28.1 3.2 26.0Q3.2 23.8 2.4 21.9Q1.6 20.0 2.6 18.1Q3.6 16.3 3.4 14.1Q3.1 11.8 4.7 10.5Q6.4 9.2 7.4 7.3Q8.3 5.3 10.5 5.0Q12.7 4.8 14.2 3.1Q15.8 1.4 17.9 2.4Q20.0 3.4 22.1 2.4Q24.2 1.5 25.8 3.2Q27.3 4.8 29.4 5.2Q31.5 5.6 32.3 7.6Q33.1 9.6 34.9 10.8Q36.7 12.0 36.8 14.1Q36.8 16.2 37.7 18.1Q38.6 20.0 37.4 21.9Z"}),e("circle",{className:"seal-ring",cx:"20",cy:"20",r:"12.5"}),e("path",{className:"seal-mark",d:"M13.5 20.5l4.6 4.6 8.6-9.6"})]})})}function ly(i){let{card:c}=i,b="late"in c.frame&&c.frame.late,{timeZone:w}=i,E=[c.by,c.closedAt?re(c.closedAt,w):void 0].filter(Boolean),N=st()==="camelot"&&c.frame.kind==="approval"&&c.outcome==="approved",R=a(c.outcome==="approved"),D=hi(()=>qk(c.frame));return n("article",{...D,className:`prompt prompt-${i.tone}`,"data-ended":c.outcome?"true":void 0,"data-sealed":N?"true":void 0,"aria-label":i.title,children:[n("header",{className:"prompt-head",children:[e("span",{className:"prompt-icon",children:e(s,{name:i.icon,size:18})}),e("strong",{children:i.title}),b&&!c.outcome?e("span",{className:"badge badge-warn",children:t("Late")}):null,c.outcome?n("span",{className:"prompt-outcome","data-outcome":c.outcome,children:[e(s,{name:c.outcome==="approved"||c.outcome==="answered"?"check":"close",size:14}),TO(c)]}):null]}),c.outcome&&E.length>0?e("p",{className:"prompt-meta",children:E.join(" · ")}):null,i.children,N?e(CO,{room:c.room,stamp:!R.current}):null]})}function AO({card:i,timeZone:c,frame:b}){let{sent:w,send:E}=iy(i),N=b.purpose==="turn-timeout",R=(L)=>E({type:"approval",prompt:b.id,approved:L}),{approval:D}=b;return n(ly,{card:i,timeZone:c,tone:N?"timeout":"action",icon:N?"timer":"shield",title:b.title,children:[e(Ye,{source:b.message}),D?n("details",{className:"prompt-details",children:[e("summary",{children:t("Details")}),n("dl",{className:"facts",children:[n("div",{children:[e("dt",{children:t("Tool")}),e("dd",{children:D.tool})]}),n("div",{children:[e("dt",{children:t("Action")}),e("dd",{children:D.action})]})]}),Object.keys(D.input).length?e("pre",{className:"prompt-input",children:JSON.stringify(D.input,null,2)}):null,D.files?.length?e("ul",{className:"prompt-files",children:D.files.map((L)=>n("li",{children:[e(s,{name:"file",size:14}),e("code",{children:L.path}),L.bytes===void 0?null:n("span",{className:"meta",children:[L.bytes," B"]})]},L.path))}):null,D.truncated?e("p",{className:"hint",children:t("Long values are cut here; the action runs with the full text.")}):null]}):null,D?.copy&&!i.outcome?e(NO,{copy:D.copy}):null,b.speakerOnly?e("p",{className:"hint",children:t("Only the person this turn answers can approve it.")}):null,b.approvers?.length?e("p",{className:"hint",children:t("{names} can approve this, and so can an owner.",{names:b.approvers.join(", ")})}):null,b.late&&!i.outcome?e("p",{className:"hint",children:t("The turn stopped waiting. Your answer starts a new turn in this room.")}):null,n(oy,{open:!i.outcome,children:[n("div",{className:"actions",children:[e("button",{type:"button",className:"secondary",disabled:w,onClick:()=>R(!1),children:b.wording?.decline??(N?t("Stop turn"):t("Decline"))}),e("button",{type:"button",disabled:w,onClick:()=>R(!0),children:b.wording?.approve??(N?t("Continue"):t("Approve"))})]}),b.wording?.footer?e("p",{className:"hint",children:b.wording.footer}):null]})]})}function NO({copy:i}){let[c,b]=r(!1);return n("button",{type:"button",className:"secondary copy-action",onClick:()=>{navigator.clipboard?.writeText(i.text).then(()=>{b(!0),setTimeout(()=>b(!1),1400)}).catch(()=>{return})},children:[e(s,{name:c?"check":"copy",size:16}),c?t("Copied"):i.label?t("Copy {label}",{label:i.label}):t("Copy")]})}var Ld={choices:[],other:!1,text:""};function RE(i,c){let b=c.text.trim();if(i.options.length===0)return b?{choices:[],text:b}:void 0;let w=c.choices;if(c.other&&!b)return;if(w.length===0&&!c.other)return;return{choices:w,...c.other?{text:b}:{}}}function ME(i){let{question:c,pick:b,onChange:w}=i,[E,N]=r();if(c.options.length===0)return n("fieldset",{className:"field",disabled:i.disabled,children:[n("legend",{children:[c.header?`${c.header} · `:"",c.question]}),e("textarea",{rows:2,value:b.text,onChange:(L)=>w({...b,text:L.target.value}),"aria-label":c.question})]});let R=(L)=>{let H=b.choices.includes(L.label);if(c.multi)w({...b,choices:H?b.choices.filter((U)=>U!==L.label):[...b.choices,L.label]});else w({choices:[L.label],other:!1,text:b.text});N(L.label)},D=c.options.find((L)=>L.label===E)?.preview;return n("fieldset",{className:"field",disabled:i.disabled,children:[n("legend",{children:[c.header?`${c.header} · `:"",c.question]}),n("div",{className:"options","data-swipe-ignore":!0,children:[c.options.map((L)=>n("label",{className:"option","data-checked":b.choices.includes(L.label),children:[e("input",{type:c.multi?"checkbox":"radio",name:i.name,checked:b.choices.includes(L.label),onChange:()=>R(L)}),n("span",{children:[e("strong",{children:L.label}),L.description?e("span",{className:"meta",children:L.description}):null]})]},L.label)),c.allowOther?n("label",{className:"option","data-checked":b.other,children:[e("input",{type:c.multi?"checkbox":"radio",name:i.name,checked:b.other,onChange:()=>w(c.multi?{...b,other:!b.other}:{choices:[],other:!0,text:b.text})}),e("span",{children:e("strong",{children:t("Other")})})]}):null]}),b.other?e("input",{type:"text",value:b.text,placeholder:t("Your answer"),"aria-label":t("Your answer"),onChange:(L)=>w({...b,text:L.target.value})}):null,D?e("pre",{className:"option-preview",children:D}):null]})}function RO({card:i,timeZone:c,frame:b}){let{sent:w,send:E}=iy(i),[N,R]=r(Ld),[D,L]=r(),H={question:b.question,options:b.options,multi:b.multi,allowOther:b.allowOther},U=RE(H,N),B=i.answer?.kind==="ask"?i.answer.answer:D;return n(ly,{card:i,timeZone:c,tone:"ask",icon:"sparkle",title:b.title,children:[n(oy,{open:!i.outcome,children:[e(ME,{name:b.id,question:H,pick:N,onChange:R,disabled:w}),n("div",{className:"actions",children:[e("button",{type:"button",className:"secondary",disabled:w,onClick:()=>E({type:"cancel",prompt:b.id}),children:t("Cancel")}),e("button",{type:"button",disabled:w||!U,onClick:()=>{if(U&&E({type:"answer",prompt:b.id,answer:U}))L(U)},children:t("Send answer")})]})]}),i.outcome==="answered"&&B?e("p",{className:"prompt-answer",children:ay(B)}):null]})}function MO({card:i,timeZone:c,frame:b}){let{sent:w,send:E}=iy(i),[N,R]=r(),[D,L]=r(()=>b.questions.map(()=>Ld)),[H,U]=r(""),B=b.questions.map((Y,Z)=>RE(Y,D[Z]??Ld)),V=i.answer?.kind==="questionnaire"?i.answer:void 0,q=V?[...V.answers.map((Y)=>Y?ay(Y):"—"),...V.note?[V.note]:[]]:N;return n(ly,{card:i,timeZone:c,tone:"ask",icon:"sparkle",title:b.title,children:[n(oy,{open:!i.outcome,children:[b.questions.map((Y,Z)=>e(ME,{name:`${b.id}-${Z}`,question:Y,pick:D[Z]??Ld,onChange:(ee)=>L((P)=>P.map((G,F)=>F===Z?ee:G)),disabled:w},Z)),b.questions.some((Y)=>Y.options.length>0)?n("label",{children:[t("Add a note"),e("textarea",{rows:2,value:H,disabled:w,onChange:(Y)=>U(Y.target.value)})]}):null,n("div",{className:"actions",children:[e("button",{type:"button",className:"secondary",disabled:w,onClick:()=>E({type:"cancel",prompt:b.id}),children:t("Cancel")}),e("button",{type:"button",disabled:w||B.every((Y)=>!Y),onClick:()=>{let Y=H.trim();if(E({type:"answers",prompt:b.id,answers:B.map((ee)=>ee??null),...Y?{note:Y}:{}}))R(B.map((ee)=>ee?ay(ee):"—"))},children:t("Send answers")})]})]}),i.outcome==="answered"&&q?e("ul",{className:"prompt-answer",children:q.map((Y,Z)=>e("li",{children:Y},Z))}):null]})}var Ji=j(function({card:c,timeZone:b}){let{frame:w}=c;switch(w.kind){case"approval":return e(AO,{card:c,timeZone:b,frame:w});case"ask":return e(RO,{card:c,timeZone:b,frame:w});case"questionnaire":return e(MO,{card:c,timeZone:b,frame:w})}});var zO=S(()=>(p("40ypghn9"),import("./chunk-note-row-40ypghn9.js"))),OO=S(()=>(p("xd1v2p0g"),import("./chunk-start-over-line-xd1v2p0g.js"))),_O=S(()=>(p("ebhejn2k"),import("./chunk-host-picture-ebhejn2k.js")).then((i)=>({default:i.HostPicture}))),DO=/^Yolo mode approved: ([\s\S]*)$/;function LO(i){if(i==="Conversation started over")return{icon:"reset",text:t("Conversation started over")};let c=DO.exec(i);if(c)return{icon:"bolt",text:t("Yolo mode approved: {action}",{action:c[1]??""})};return{icon:"list",text:i}}function HO(i,c,b){if(i.kind!=="owner")return!1;if(i.principalId===void 0)return!b;return i.principalId===c}function UO({file:i}){let c=hi(()=>Pk(i));return i.type.startsWith("image/")?e("li",{children:e("a",{...c,href:hn(i),target:"_blank",rel:"noreferrer noopener",children:e("img",{src:hn(i),alt:i.name,loading:"lazy",decoding:"async",className:"file-image"})})}):e("li",{children:n("a",{...c,className:"file-chip",href:hn(i),download:i.name,children:[e(s,{name:"file",size:16}),e("span",{children:i.name})]})})}function $t({files:i}){if(i.length===0)return null;return e("ul",{className:"files",children:i.map((c)=>e(UO,{file:c},c.id))})}var ji=j(function(c){let{message:b}=c,w=Se(rt)?.app?.surface,E=l((B)=>B.principal?.id),N=l((B)=>B.rooms[b.room]?.view?.notes===!0),R=hi((B)=>Bk(b,B,c.quotable),{selectable:!0}),D=b.agent,L=hi(()=>D?Vk(D,b.author):Promise.resolve(void 0));if(b.note||b.intercom||b.kind==="system"&&b.text.startsWith(yi))return e(Q,{fallback:e("li",{className:"message","data-header":!0}),children:e(zO,{message:b,enter:c.enter,timeZone:c.timeZone})});if(bo(b))return e(Q,{fallback:e("li",{className:"line"}),children:e(OO,{message:b,enter:c.enter})});if(b.kind==="system"){let B=LO(b.text),V=NE(b.text,w);return n("li",{className:"line","data-enter":c.enter||void 0,children:[e(s,{name:V?"conversations":B.icon,size:14}),V?e(Ye,{source:b.text}):e("span",{children:B.text})]})}let H=HO(b,E,N),U=b.kind==="owner";return n("li",{...R,className:"message","data-mid":b.id,tabIndex:0,"data-mine":H||void 0,"data-header":c.header||void 0,"data-enter":c.enter||void 0,"data-unread":c.unread||void 0,children:[H?null:e("span",{className:"message-avatar",...c.header&&D?L:{},children:c.header?U?e(Q,{fallback:null,children:e(_O,{picture:b.principalId===void 0?void 0:{principal:b.principalId},name:b.author})}):e(fe,{spec:c.character,name:b.agent??b.author,size:32,live:!1}):null}),n("div",{className:"message-main",children:[c.header?n("div",{className:"message-meta",children:[e("strong",{children:b.author}),e("time",{dateTime:b.at,children:Yt(b.at,c.timeZone)})]}):null,n("div",{className:"bubble",children:[b.text?e(Ye,{source:b.text}):null,e($t,{files:b.files})]})]})]})}),zE=j(function(c){let{message:b}=c;return n("li",{className:"message","data-header":"true","data-live":"true",children:[e("span",{className:"message-avatar",children:e(fe,{spec:c.character,name:b.agent??b.author,size:32,live:!1})}),n("div",{className:"message-main",children:[e("div",{className:"message-meta",children:e("strong",{children:b.author})}),e("div",{className:"bubble",children:e(Ye,{source:b.text})})]})]})}),BO=1e4,OE=j(function(c){let{pending:b}=c,w=we(),E=l((L)=>L.connection!=="open"),[N,R]=r(!1);o(()=>{if(b.failed)return;let L=setTimeout(()=>R(!0),BO);return()=>clearTimeout(L)},[b.failed]);let D=Boolean(b.failed)||N;return e("li",{className:"message","data-mine":"true","data-header":"true","data-pending":b.failed?"failed":"sending",children:n("div",{className:"message-main",children:[n("div",{className:"bubble",children:[b.text?e(Ye,{source:b.text}):null,b.files.length?e("ul",{className:"files",children:b.files.map((L)=>e("li",{children:n("span",{className:"file-chip",children:[e(s,{name:"file",size:16}),e("span",{children:L.name})]})},L.id))}):null]}),D?n("div",{className:"message-meta pending-actions",children:[e("span",{className:"failure-text",children:b.failed?t("Not sent"):t("Not sent yet")}),e("button",{type:"button",className:"link-button",onClick:()=>w.retry(b),children:t("Try again")}),e("button",{type:"button",className:"link-button",onClick:()=>O.dispatch({type:"pending_dropped",id:b.id}),children:t("Discard")})]}):e("div",{className:"message-meta pending-actions",children:e("span",{className:"pending-note",children:E?t("Waiting to send…"):t("Sending…")})})]})})});var VO=300000;function er(i){let c=l((R)=>R.connects),[b,w]=r(),[E,N]=r(!1);return o(()=>{let R=!0;return y.messages(i,void 0,fn).then((D)=>{if(!R)return;O.dispatch({type:"history_loaded",room:i,messages:D.messages,more:D.more,cards:D.cards,older:!1}),w(void 0),N(!0)},(D)=>{if(R)w(d(D))}),()=>{R=!1}},[i,c]),{loaded:E,error:b}}async function tr(i){let c=O.getState().rooms[i]?.messages[0];if(!c)return!1;try{let b=await y.messages(i,c.id,fn);return O.dispatch({type:"history_loaded",room:i,messages:b.messages,more:b.more,cards:b.cards,older:!0}),!0}catch(b){return f(d(b),"danger"),!1}}var qO=(i,c)=>!c||c.intercom!==void 0||c.kind!==i.kind||c.author!==i.author||Date.parse(i.at)-Date.parse(c.at)>VO;function PO(i,c,b){return C(()=>{let w,E;return i.map((N)=>{if(N.kind!=="message")return{item:N,header:!0,day:void 0};let R=Nk(N.message.at,c),D=R!==E?Ak(N.message.at,b,c):void 0;E=R;let L=qO(N.message,w)||D!==void 0;return w=N.message,{item:N,header:L,day:D}})},[i,c,b])}function IO(i){return n(g,{children:[i.day?e("li",{className:"day","aria-hidden":"true",children:e("span",{children:i.day})}):null,i.children]})}function xn(i){let c=_(),{now:b}=J(),w=l((D)=>({rooms:D.rooms,cards:D.cards,cardOrder:D.cardOrder})),E=Xe(),N=C(()=>qf(w,i.roomKey),[w,i.roomKey]),R=PO(N,c.timeZone,b);return e("ol",{className:"messages",children:R.map((D)=>{switch(D.item.kind){case"message":return n(IO,{day:D.day,children:[i.decor?.before?.(D.item.message),i.decor?.message?.(D.item.message,{header:D.header,enter:i.enterAfter!==void 0&&D.item.message.id>i.enterAfter,unread:i.decor?.unread?.(D.item.message)??!1,timeZone:c.timeZone})??e(ji,{message:D.item.message,character:D.item.message.agent?E[D.item.message.agent]:void 0,header:D.header,enter:i.enterAfter!==void 0&&D.item.message.id>i.enterAfter,unread:i.decor?.unread?.(D.item.message)??!1,timeZone:c.timeZone,quotable:i.quotable}),i.decor?.after?.(D.item.message)]},`m${D.item.message.id}`);case"card":return e("li",{className:"slot","data-enter":!0,"data-card":D.item.id,children:e(Ji,{card:D.item.card,timeZone:c.timeZone})},`c${D.item.id}`);case"pending":return e(OE,{pending:D.item.pending},`p${D.item.pending.id}`);case"live":return e(zE,{message:D.item.message,character:D.item.message.agent?E[D.item.message.agent]:void 0},`l${D.item.message.live}`);default:return null}})})}var jO=S(()=>je().then((i)=>({default:i.ReadLog}))),GO=S(()=>(p("58ttx9av"),import("./chunk-waiting-chip-58ttx9av.js")));function Ur(i){let c=a(!0),b=a(0),[w,E]=r(!1),N=A(()=>{let L=i.current;if(!L)return;if(L.scrollHeight!==b.current){b.current=L.scrollHeight;return}c.current=L.scrollHeight-L.scrollTop-L.clientHeight<96,E(!c.current)},[i]),R=A(()=>{let L=i.current;if(!L)return;if(b.current=L.scrollHeight,c.current)L.scrollTo({top:L.scrollHeight});else E(!0)},[i]),D=A((L)=>{let H=i.current;if(!H)return;c.current=!0,b.current=H.scrollHeight,H.scrollTo({top:H.scrollHeight,behavior:L&&!Pe()?"smooth":"auto"}),E(!1)},[i]);return{away:w,onScroll:N,onGrow:R,toEnd:D}}function nr(i){let{roomKey:c}=i,b=l((oe)=>oe.rooms[c]),w=l((oe)=>({rooms:oe.rooms,cards:oe.cards,cardOrder:oe.cardOrder})),{loaded:E,error:N}=er(c),R=l((oe)=>Je(oe,c)>0,c),[D,L]=r(!1),H=a(null),U=a(null),{away:B,onScroll:V,onGrow:q,toEnd:Y}=Ur(H),Z=a(void 0),ee=a(void 0),P=C(()=>qf(w,c),[w,c]);if(E&&Z.current===void 0)Z.current=b?.messages.at(-1)?.id??0;$e(()=>{if(E)Y(!1)},[E]),$e(()=>{let oe=H.current;if(oe&&ee.current!==void 0)oe.scrollTop+=oe.scrollHeight-ee.current,ee.current=void 0},[b?.messages[0]?.id]),o(()=>{let oe=U.current;if(!oe||typeof ResizeObserver>"u")return;let ae=new ResizeObserver(q);return ae.observe(oe),()=>ae.disconnect()},[q]);let G=async()=>{if(!b?.messages[0]||D)return;if(L(!0),ee.current=H.current?.scrollHeight,!await tr(c))ee.current=void 0;L(!1)},F={roomKey:c,enterAfter:Z.current,quotable:!b?.view?.readOnly},te=[...b?.messages??[]].reverse().find((oe)=>oe.kind==="agent");return n(g,{children:[R?e(Q,{fallback:null,children:e(GO,{roomKey:c,scroller:H,loaded:E})}):null,e("div",{className:"room-scroll",ref:H,onScroll:V,...i.surface,children:n("div",{className:"room-content",ref:U,children:[N?e(m,{message:N}):null,!E&&!N?e(v,{}):null,b?.more?e("button",{type:"button",className:"secondary older",disabled:D,onClick:G,children:D?t("Loading…"):t("Load earlier messages")}):null,E&&P.length===0?e(k,{children:t("No messages yet. Say hello.")}):null,e(Q,{fallback:e(xn,{...F}),children:e(jO,{...F,scroller:H})}),b?.typing?e(gn,{name:te?.author??i.name,progress:b.progress}):null]})}),B?n("button",{type:"button",className:"to-end",onClick:()=>Y(!0),children:[e(s,{name:"send",size:16,style:{transform:"rotate(180deg)"}}),t("Latest")]}):null,i.composer(Y)]})}var us=1.5;var YO=(i)=>Math.min(Math.round(i*0.8),360),Vn=(i,c)=>i<32||i>c-32;function FO(i,c){let b=Math.abs(i),w=Math.abs(c);if(b>=24&&b>1.5*w)return"horizontal";return w>=24?"reject":"wait"}function sr(i,c,b="closed"){if(c>=0.5)return!0;if(c<=-0.5)return!1;return b==="closed"?i>=0.4:i>0.6}class sy{#e;#a;#r;#t=[];#n="idle";#i=0;constructor(i,c){this.#e=i,this.#a=c}begin(i,c,b){if(Vn(i,this.#a))return!1;return this.#r={x:i,y:c},this.#t=[{x:i,t:b}],this.#n="wait",this.#i=this.#e==="open"?1:0,!0}move(i,c,b){let w=this.#r;if(!w||this.#n==="reject")return{state:this.#n,progress:this.#i};let E=i-w.x,N=c-w.y;if(this.#n==="wait"){let L=FO(E,N);if(L==="wait")return{state:"wait",progress:this.#i};let H=this.#e==="closed"?E>0:E<0;if(this.#n=L==="horizontal"&&H?"drag":"reject",this.#n==="reject")return{state:"reject",progress:this.#i}}this.#t.push({x:i,t:b});let R=YO(this.#a),D=(this.#e==="closed"?0:1)+E/R;return this.#i=Math.min(1,Math.max(0,D)),{state:"drag",progress:this.#i}}finish(i){if(this.#n!=="drag")return;return sr(this.#i,this.#o(i),this.#e)}#o(i){let c=this.#t.at(-1);if(!c)return 0;if(i!==void 0&&i-c.t>100)return 0;let b=this.#t.find((w)=>c.t-w.t<=100);if(!b||c.t<=b.t)return 0;return(c.x-b.x)/(c.t-b.t)}}var QO="input, textarea, select, [contenteditable], [data-swipe-ignore]";function XO(i){if(i.scrollWidth<=i.clientWidth+1)return!1;let c=getComputedStyle(i).overflowX;return c==="auto"||c==="scroll"}function _E(i,c){let b=i instanceof Element?i:null;while(b){if(b.matches(QO)||XO(b))return!0;if(b===c)return!1;b=b.parentElement}return!1}var DE=()=>(p("dtfh87zy"),import("./chunk-switcher-list-dtfh87zy.js")),ZO=S(()=>DE().then((i)=>({default:i.SwitcherList}))),KO={rtSwitcher:!0},uy=()=>Boolean(window.history.state?.rtSwitcher);function LE(i){let[c,b]=r(!1),[w,E]=r(!1),N=a(null),R=a(null),D=a(void 0),L=a(!1),H=a(!1),U=a(void 0),B=a(null),V=A(()=>{if(!H.current)window.history.pushState(KO,"",window.location.href),H.current=!0;B.current=document.activeElement,b(!0)},[]),q=A((ee)=>{if(!H.current){b(!1),ee?.();return}U.current=ee,window.history.back()},[]);o(()=>{let ee=()=>{if(H.current&&!uy()){H.current=!1,b(!1);let P=U.current;U.current=void 0,P?.()}else if(!H.current&&uy())window.history.replaceState(null,"",window.location.href)};return window.addEventListener("popstate",ee),()=>{if(window.removeEventListener("popstate",ee),H.current&&uy())window.history.replaceState(null,"",window.location.href)}},[]),o(()=>{if(c)R.current?.focus();else if(B.current instanceof HTMLElement)B.current.focus(),B.current=null},[c]);let Y=(ee)=>{let P=N.current;if(!P)return;if(ee===void 0)P.style.removeProperty("--switcher-progress");else P.style.setProperty("--switcher-progress",String(ee))},Z=(ee)=>{let P=(G)=>{let F=D.current;if(!F||F.pointer!==G.pointerId)return;if(D.current=void 0,!L.current)return;L.current=!1;let te=F.swipe.finish(G.timeStamp);if(E(!1),Y(void 0),te===void 0)return;if(te)V();else if(ee==="open")q()};return{onPointerDown(G){if(G.pointerType!=="touch")return;if(D.current){D.current=void 0;return}if(ee==="closed"&&(!i||c))return;if(_E(G.target,G.currentTarget))return;let F=new sy(ee,window.innerWidth);if(F.begin(G.clientX,G.clientY,G.timeStamp))D.current={pointer:G.pointerId,swipe:F}},onPointerMove(G){let F=D.current;if(!F||F.pointer!==G.pointerId)return;let te=F.swipe.move(G.clientX,G.clientY,G.timeStamp);if(te.state==="reject"){D.current=void 0;return}if(te.state!=="drag")return;if(!L.current)L.current=!0,E(!0),G.currentTarget.setPointerCapture?.(G.pointerId);Y(te.progress)},onPointerUp:P,onPointerCancel:P}};return{enabled:i,surface:Z("closed"),show:()=>{if(i&&!c)V()},drawer:{state:w?"dragging":c?"open":"closed",root:N,panel:R,close:q,handlers:Z("open")}}}function HE(i){let{state:c,close:b}=i;return o(()=>{DE()},[]),n("div",{className:"switcher",ref:i.root,"data-state":c,inert:c==="closed",onKeyDown:(w)=>{if(w.key==="Escape"&&c!=="closed")w.stopPropagation(),b()},...i.handlers,children:[e("div",{className:"switcher-scrim","aria-hidden":"true",onClick:()=>b()}),e("div",{className:"switcher-panel",ref:i.panel,role:"dialog","aria-modal":"true","aria-label":t("Switch rooms"),tabIndex:-1,children:c==="closed"?null:e(Q,{fallback:null,children:e(ZO,{current:i.current,close:b})})})]})}var qu,UE=0,{emit:BE,use:JO}=M();function He(i,c={}){UE+=1,qu={name:i,look:c.look===!0,skills:c.skills===!0,id:UE},BE()}function yn(){if(!qu)return;qu=void 0,BE()}var Dr=()=>qu,is=()=>JO(()=>qu);var Hd,{emit:VE,use:WO}=M();function Le(i){Hd=i,VE()}function rs(){if(!Hd)return;Hd=void 0,VE()}var os=()=>WO(()=>Hd);var qE=(i)=>`rt-table-mode:${i}`,cy=new Map,fy=new Set;function $O(i){try{let c=globalThis.localStorage?.getItem(qE(i));return c==="1"?!0:c==="0"?!1:void 0}catch{return}}function e5(i){let c=cy.get(i);if(c!==void 0)return c;let b=$O(i)??!1;return cy.set(i,b),b}function t5(i,c){cy.set(i,c);try{globalThis.localStorage?.setItem(qE(i),c?"1":"0")}catch{}for(let b of fy)b()}var n5=(i)=>(fy.add(i),()=>fy.delete(i));function PE(i){return[We(n5,()=>e5(i),()=>!1),(b)=>t5(i,b)]}var Ud,IE=0,{emit:jE,use:r5}=M();function _t(i){IE+=1,Ud={...i,id:IE},jE()}function Si(){if(!Ud)return;Ud=void 0,jE()}var ss=()=>r5(()=>Ud);var a5=S(()=>(p("zy4hmgk3"),import("./chunk-group-table-zy4hmgk3.js")).then((i)=>({default:i.GroupTable}))),i5=S(()=>(p("63yhh1mh"),import("./chunk-group-scene-63yhh1mh.js")).then((i)=>({default:i.GroupScene}))),o5=S(()=>(p("m5kgb7c7"),import("./chunk-mode-toggle-m5kgb7c7.js")).then((i)=>({default:i.ModeToggle}))),l5=S(()=>(p("ha1evv71"),import("./chunk-room-menu-ha1evv71.js")).then((i)=>({default:i.RoomMenu})));function GE({roomKey:i}){let c=we(),b=l((Be)=>Be.rooms[i]),w=l((Be)=>Be.listed),E=l((Be)=>Be.connection==="open"),N=l((Be)=>Be.limits),R=l((Be)=>Be.rooms),D=Xe(),L=In(i),H=b?.view,U=H?.parent?R[H.parent]?.view:void 0,B=H?.character??U?.character,V=et(B),[q,Y]=r(!1),[Z,ee]=r(!1),[P,G]=r(null),[F,te]=r(),[oe,ae]=r(),[ce,ue]=r(!1),[ye,ne]=PE(i),Ve=H?.kind==="group"&&ye,ze=a(null),ve=LE(!Ce("(min-width: 1024px)"));o(()=>(c.focus(i),()=>c.focus(void 0)),[c,i]);let[Ae,Me]=r(!1),tt=w&&!H;if(o(()=>{if(!tt||Ae)return;let Be=!0;return(async()=>{try{let Qn=await y.rooms();if(O.dispatch({type:"rooms_loaded",rooms:Qn.rooms,pins:Qn.pins,folders:Qn.folders}),!Qn.rooms.some((Lt)=>Lt.key===i))O.dispatch({type:"room_viewed",view:(await y.room(i)).room})}catch{}if(Be)Me(!0)})(),()=>{Be=!1}},[tt,Ae,i]),tt&&Ae)return e("section",{className:"room",children:n("div",{className:"page",children:[e(k,{children:t("This room is not available.")}),e("a",{className:"back",href:x("rooms"),children:t("Back to rooms")})]})});let Ke=H?.displayName??i,Tt=b?.mode,ie=H?.kind==="agent"?H.name:void 0,X=H?.kind==="group"?H.name:void 0,De=H?.kind==="thread"?H.parent:void 0,Rt=H?.notes===!0,W=Rt&&ce,It=Rt&&oe===i&&!W;return n("section",{className:"room",style:V,onDragOver:(Be)=>{if(Be.dataTransfer.types.includes("Files"))Be.preventDefault()},onDrop:(Be)=>{if(!Be.dataTransfer.files.length)return;Be.preventDefault(),te([...Be.dataTransfer.files])},children:[n("header",{className:"room-head",children:[e("a",{className:"icon-button room-back",href:x("rooms"),"aria-label":t("Back to rooms"),children:e(s,{name:"back"})}),e(s5,{open:ve.enabled?ve.show:void 0,children:H?.kind==="group"?e(Zf,{size:36,members:(H.members??[]).map((Be)=>({name:Be,spec:D[Be]}))}):e(fe,{spec:B,name:U?.name??H?.name??Ke,size:44,state:L,label:Ke})}),n("div",{className:"room-title",children:[n("h1",{children:[ie||X?e("button",{type:"button",className:"room-name","aria-haspopup":"dialog",title:ie?t("Edit knight"):t("Edit group"),onClick:()=>ie?He(ie):X&&_t({kind:"group",name:X}),children:Ke}):Ke,H?.muted?e(s,{name:"bell-off",size:14,className:"room-muted",role:"img","aria-hidden":!1,"aria-label":t("Notifications are off")}):null]}),e("span",{className:"room-status","data-working":b?.typing||void 0,children:H?.helper?n(g,{children:[t("Temp knight")," ·"," ",e("a",{href:x("room",H.helper.parent),children:t("Made by {name}",{name:H.helper.parentName})})]}):H?.kind==="thread"?H.closed?t("Thread · finished"):b?.typing?t("Working…"):t("Thread · read-only"):H?.readOnly?t("Read-only"):b?.typing?t("Working…"):H?.kind==="group"?t("Group"):H?.home?t("Home"):t("Idle")})]}),H?.kind==="group"?e(Q,{fallback:null,children:e(a5,{roomKey:i,slot:P,scene:ye,onScene:ne})}):null,e(gu,{}),e("button",{ref:ze,type:"button",className:"icon-button","aria-label":t("Room menu"),"aria-haspopup":"dialog",onClick:()=>{ee(!0),Y(!0)},children:e(s,{name:"menu"})})]}),e("div",{className:"room-table-slot",ref:G}),!E?n("div",{className:"offline-banner",role:"status",children:[e("span",{className:"spinner","aria-hidden":"true"}),t("Reconnecting… messages wait here until it is back.")]}):null,e(Mk,{room:i,mode:Tt&&(Tt.yolo||Tt.longRunning)?Tt:void 0,approved:b?.autoApproved??0}),Ve?e(Q,{fallback:e(v,{}),children:e(i5,{roomKey:i,members:H?.members??[]})}):e(nr,{roomKey:i,name:Ke,surface:ve.surface,composer:(Be)=>H?.readOnly?n("p",{className:"room-note",children:[t("This is a dispatch thread. It shows what was sent and answered; reply in its parent room.")," ",De?e("a",{href:x("room",De),children:t("Open the parent room")}):null]}):e(wt,{draftKey:i,name:Ke,onAddressed:ue,...Rt?{placeholder:It?t("Write an internal note…"):t("Ask AI…"),above:e(Q,{fallback:null,children:e(o5,{on:!It,label:t("@AI"),...W?{locked:t("The message starts with @AI, so the knight answers.")}:{},onChange:(Zr)=>ae(Zr?void 0:i)})})}:{},limits:N,stoppable:Boolean(b?.stoppable),onSend:(Zr,Qn,Lt)=>{if(Rt&&Lt){let Ua=Yi(Zr);c.say(i,Ua===""&&Qn.length===0?Zr:Ua,Qn,"turn")}else c.say(i,Zr,Qn,It?"note":void 0);Be(!0)},onStop:()=>c.send({type:"stop",room:i}),...H?.kind==="group"?{stopLabel:t("Stop the round")}:{},...F?{incoming:F,onIncomingTaken:()=>te(void 0)}:{}},i)}),Z?e(Q,{fallback:null,children:e(l5,{open:q,room:i,mode:Tt,muted:H?.muted===!0,agent:ie,group:X,coordinator:H?.coordinator===!0,displayName:Ke,readOnly:H?.readOnly??!1,parent:De,onClose:()=>Y(!1),onAskYolo:()=>{Y(!1),Le({kind:"yolo",room:i,name:Ke,restoreFocus:()=>ze.current})},onAskStartOver:()=>{Y(!1),Le({kind:"start-over",room:i,name:Ke,restoreFocus:()=>ze.current})}})}):null,e(HE,{...ve.drawer,current:i})]})}function s5(i){if(!i.open)return i.children;return e("button",{type:"button",className:"room-picture","aria-label":t("Switch rooms"),"aria-haspopup":"dialog",onClick:i.open,children:i.children})}function u5(i){let c=Xe();return e(Zf,{size:i.size,members:i.members.map((b)=>({name:b,spec:c[b]}))})}function c5(i){let c=In(i.view.key);return e(fe,{spec:i.view.character,name:i.view.name,size:i.size,state:c,live:Dk(c)})}function Ue(i){return i.view.kind==="group"?e(u5,{members:i.view.members??[],size:i.size}):e(c5,{view:i.view,size:i.size})}var f5=S(()=>je().then((i)=>({default:i.UnreadMark})));function jt({room:i}){return e(Q,{fallback:null,children:e(f5,{room:i})})}var Bd=!1,{emit:d5,use:m5}=M(),ar=()=>m5(()=>Bd),ds=()=>Bd;function wi(i){if(Bd===i)return;Bd=i,d5()}function xi(i,c){return i?.helper!==void 0&&c.has(i.helper.parent)}function p5(i,c){let b=i.replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/(^|\s)([-*+]|\d+\.)\s/g,"$1").replace(/[*_`#>~]+/g,"").replace(/\s+/g," ").trim();if(b)return b.slice(0,140);return c?K(c,"{count} file","{count} files"):""}var qn=()=>n("span",{className:"typing",role:"img","aria-label":t("Working"),children:[e("i",{}),e("i",{}),e("i",{})]}),Sn=({count:i})=>e("span",{className:"badge badge-warn",children:K(i,"{count} card waiting","{count} cards waiting")});function qr(i){let{view:c,press:b}=i,w=et(c.character);return n("li",{...i.item,children:[n("a",{className:"room-row",...b,href:x("room",c.key),"data-home":c.home||void 0,"aria-current":i.active?"page":void 0,style:w,children:[e(Ue,{view:c,size:c.home?52:44}),n("span",{className:"room-row-main",children:[n("span",{className:"room-row-top",children:[e("strong",{children:c.displayName}),c.muted?e(s,{name:"bell-off",size:14,className:"muted-mark",role:"img","aria-hidden":!1,"aria-label":t("Notifications are off")}):null,c.home?e("span",{className:"badge badge-accent",children:t("Home")}):null,c.kind==="group"?e("span",{className:"badge",children:t("Group")}):null,e(jt,{room:c.key}),e("span",{className:"room-row-time",children:i.at?xe(i.at,i.now,i.timeZone):""})]}),n("span",{className:"room-row-preview",children:[i.typing?e(qn,{}):null,e("span",{children:i.preview||t("No messages yet")})]}),n("span",{className:"room-row-badges",children:[i.waiting?e(Sn,{count:i.waiting}):null,i.yolo?n("span",{className:"badge badge-yolo",children:[e(s,{name:"bolt",size:12}),t("Yolo")]}):null,i.longRunning?n("span",{className:"badge badge-long",children:[e(s,{name:"timer",size:12}),t("Long-running")]}):null]})]}),e(s,{name:"chevron",size:16,className:"room-row-chevron"})]}),i.after,i.threads]})}var h5=j(function(c){let b=hi(()=>Ht(c.view.key));return e(qr,{...c,press:b})});function Nt(i){return l((b)=>i.map((w)=>{let E=b.rooms[w],N=ng(b,w);return{key:w,view:E?.view,typing:E?.typing??!1,yolo:E?.mode.yolo??!1,longRunning:E?.mode.longRunning??!1,waiting:Je(b,w),preview:!N?"":bo(N)?t("Conversation started over"):p5(N.text,N.files.length),at:N?.at}}),i.join(",")).flatMap((b)=>b.view?[{...b,view:b.view}]:[])}var g5=S(()=>(p("j2v1pqkz"),import("./chunk-thread-list-j2v1pqkz.js")));function ki(i){if(i.open.length+i.closed.length===0)return null;return e(Q,{fallback:null,children:e(g5,{...i})})}function dy(i){let{now:c}=J(),{timeZone:b}=_(),w=Nt(i.rooms);if(w.length===0)return null;return n("section",{className:"stack",children:[e("h2",{className:"section-title",children:i.title}),e("ul",{className:"room-list",children:w.map(({key:E,...N})=>{let R=i.threads[E];return e(h5,{...N,active:E===i.active,now:c,timeZone:b,...R?{threads:e(ki,{open:R.open,closed:R.closed,active:i.active,parent:E})}:{}},E)})})]})}var v5=S(()=>je().then((i)=>({default:i.HostKinds})));function Br({active:i}){let{kinds:c}=_();return c?.length?e(Q,{fallback:null,children:e(v5,{kinds:c,active:i})}):null}var y5=S(()=>(p("ej3a2hyc"),import("./chunk-rooms-menu-button-ej3a2hyc.js"))),b5=S(()=>(p("6rdkk8t1"),import("./chunk-arranged-rooms-6rdkk8t1.js")).then((i)=>({default:i.ArrangedRoomsPage})));function Vd(i){let c=ar();return l((w)=>w.pins.length+w.folders.length>0)||c?e(Q,{fallback:e("div",{className:"page skeleton","aria-busy":"true"}),children:e(b5,{...i})}):e(x5,{...i})}function x5(i){let c=Boolean(_().kinds?.length),b=l((L)=>{let H={home:[],agents:[],groups:[]},U={},B=new Set(L.order.filter((Y)=>L.rooms[Y]?.view?.kind!=="thread")),V={open:[],closed:[]};for(let Y of L.order){let Z=L.rooms[Y]?.view;if(!Z)continue;if(Z.kind==="thread"||xi(Z,B)){let ee=Z.helper?.parent??Z.parent,P=ee&&B.has(ee)?ee:void 0,G=V;if(P)G=U[P]??{open:[],closed:[]},U[P]=G;(Z.closed?G.closed:G.open).push(Y)}else if(Z.home)H.home.push(Y);else if(Z.kind==="agent")H.agents.push(Y);else H.groups.push(Y)}let q=(Y,Z)=>{let ee=Re(L,Y),P=Re(L,Z);return ee===P?0:P-ee};return H.agents.sort(q),H.groups.sort(q),JSON.stringify({listed:L.listed,groups:H,threads:U,orphans:V})}),{listed:w,groups:E,threads:N,orphans:R}=C(()=>JSON.parse(b),[b]),D=Object.values(E).every((L)=>L.length===0)&&R.open.length+R.closed.length===0;return n("div",{className:"page","data-column":i.active?"":void 0,children:[n("header",{className:"page-head",children:[e("h1",{children:t("Rooms")}),n("div",{className:"actions",children:[n("button",{type:"button",className:"header-button search-button",onClick:i.onSearch,children:[e(s,{name:"search",size:16}),e("span",{children:t("Find a room")}),e("kbd",{children:"⌘K"})]}),e(Q,{fallback:null,children:e(y5,{})}),e("button",{type:"button",className:"header-button icon-button","aria-label":t("Add"),"aria-haspopup":"menu",onClick:(L)=>bn(L.currentTarget),children:e(s,{name:"plus"})})]})]}),w&&D&&!c?e(k,{children:t("No rooms yet. Rooms appear when the team has a knight.")}):null,!w?n("div",{className:"stack","aria-busy":"true",children:[e("div",{className:"skeleton"}),e("div",{className:"skeleton"}),e("div",{className:"skeleton"})]}):null,e(dy,{title:t("Home"),rooms:E.home,threads:N,active:i.active}),e(dy,{title:t("Knights"),rooms:E.agents,threads:N,active:i.active}),e(dy,{title:t("Groups"),rooms:E.groups,threads:N,active:i.active}),R.open.length+R.closed.length>0?n("section",{className:"stack",children:[e("h2",{className:"section-title",children:t("Dispatch threads")}),e(ki,{open:R.open,closed:R.closed,active:i.active})]}):null,e(Br,{active:i.active})]})}var my=()=>typeof navigator<"u"&&("serviceWorker"in navigator)&&typeof window<"u"&&("PushManager"in window)&&("Notification"in window),qd=()=>navigator.serviceWorker.ready;async function w5(i){let c=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(i));return Array.from(new Uint8Array(c),(b)=>b.toString(16).padStart(2,"0")).join("")}var k5=(i)=>Uint8Array.from(atob(i.replaceAll("-","+").replaceAll("_","/")),(c)=>c.charCodeAt(0)),S5=(i,c)=>{if(!i||i.byteLength!==c.byteLength)return!1;return new Uint8Array(i).every((w,E)=>w===c[E])};function E5(){let i=navigator.userAgent,c=/Edg\//.test(i)?"Edge":/Firefox\//.test(i)?"Firefox":/Chrome\//.test(i)?"Chrome":/Safari\//.test(i)?"Safari":"Browser",b=/iPhone|iPad/.test(i)?"iOS":/Android/.test(i)?"Android":/Mac OS X/.test(i)?"macOS":/Windows/.test(i)?"Windows":/Linux/.test(i)?"Linux":"";return b?`${c} on ${b}`:c}async function Un(){if(!my())return"unsupported";if(Notification.permission==="denied")return"blocked";return await(await qd()).pushManager.getSubscription()&&Notification.permission==="granted"?"on":"off"}async function YE(){if(!my())return;let i=await(await qd()).pushManager.getSubscription();return i?w5(i.endpoint):void 0}async function rr(){if(await Notification.requestPermission()!=="granted")throw Error("permission");let{key:c}=await y.pushKey(),b=k5(c),{pushManager:w}=await qd(),E=await w.getSubscription();if(E&&!S5(E.options.applicationServerKey,b))await E.unsubscribe(),E=null;let R=(E??await w.subscribe({userVisibleOnly:!0,applicationServerKey:b})).toJSON();if(!R.endpoint||!R.keys?.p256dh||!R.keys.auth)throw Error("subscription");await y.addPushDevice({endpoint:R.endpoint,keys:{p256dh:R.keys.p256dh,auth:R.keys.auth},label:E5()})}async function Pu(){if(!my())return;let i=await(await qd()).pushManager.getSubscription();if(!i)return;await y.removePushEndpoint(i.endpoint),await i.unsubscribe()}function or({auth:i}){if(i!=="password"&&i!=="oidc")return null;return e("form",{method:"post",action:"auth/logout",onSubmit:(c)=>{c.preventDefault();let b=c.currentTarget;Pu().catch(()=>{return}).finally(()=>b.submit())},children:e("div",{className:"actions",children:n("button",{type:"submit",className:"secondary",children:[e(s,{name:"logout",size:16}),t("Log out")]})})})}var Pd;if(typeof window<"u")window.addEventListener("beforeinstallprompt",(i)=>{i.preventDefault(),Pd=i});var T5=()=>typeof matchMedia==="function"&&(matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0),C5=[{value:"system",label:u("System"),icon:"system"},{value:"light",label:u("Light"),icon:"sun"},{value:"dark",label:u("Dark"),icon:"moon"}],FE=[{value:"modern",label:u("Modern"),hint:u("Plain and neutral, with round avatars.")},{value:"camelot",label:u("Camelot"),hint:u("Parchment by day, night castle by night, gold rules, shield avatars and wax seals.")}];function A5({enabled:i,quietHours:c}){let[b,w]=r(),[E,N]=r([]),[R,D]=r(),[L,H]=r(!1),U=A(async()=>{w(await Un()),D(await YE()),N((await y.pushDevices()).devices)},[]);if(o(()=>{if(i)U().catch(()=>w("unsupported"))},[i,U]),!i)return null;let B=async(V)=>{H(!0);try{await V()}catch(q){f(q instanceof Error&&q.message==="permission"?t("Notifications were not allowed. Allow them in the browser's site settings."):d(q),"danger")}finally{await U().catch(()=>{return}),H(!1)}};return n("section",{className:"card stack",children:[e("h2",{children:t("Notifications")}),e("p",{className:"meta",children:b==="unsupported"?t("This browser cannot get push notifications. On iPhone and iPad, install the app from Share, Add to Home Screen, and open it from there."):b==="blocked"?t("Notifications are blocked for this site. Allow them in the browser's site settings."):t("Get a notification on this device when a card waits for you or a knight reports on its own, while the app is not open.")}),c?e("p",{className:"meta",children:t("Quiet hours, {start} to {end} ({zone}): no notification for a knight's report or a notice. A card waiting for you still notifies. The server sets the hours.",{start:c.start,end:c.end,zone:c.timeZone})}):null,b==="off"||b==="on"?e("div",{className:"actions",children:e("button",{type:"button",className:b==="on"?"secondary":void 0,disabled:L,onClick:()=>B(b==="on"?Pu:rr),children:b==="on"?t("Turn off on this device"):t("Turn on for this device")})}):null,E.length>0?e("ul",{className:"stack",children:E.map((V)=>n("li",{className:"card-head",children:[n("span",{children:[V.label??t("Device"),V.id===R?` (${t("this device")})`:""]}),e("button",{type:"button",className:"secondary",disabled:L,onClick:()=>B(async()=>{if(V.id===R)await Pu();else await y.removePushDevice(V.id)}),children:t("Remove")})]},V.id))}):null]})}var N5=S(()=>je().then((i)=>({default:i.HostSettingsPages})));function QE(){let{preference:i}=_l(),c=st(),b=_(),w=b.look??"modern",E=l((U)=>U.principal),[N,R]=r(),[D,L]=r(Pd!==void 0);o(()=>{y.session().then(R,()=>{return});let U=()=>L(!0);return window.addEventListener("beforeinstallprompt",U),()=>window.removeEventListener("beforeinstallprompt",U)},[]);let H=T5();return n("div",{className:"page",children:[e("header",{className:"page-head",children:e("h1",{children:t("Settings")})}),b.pages?.some((U)=>U.place==="settings")?e(Q,{fallback:null,children:e(N5,{})}):null,n("section",{className:"card stack",children:[e("h2",{children:t("Appearance")}),n("fieldset",{className:"segmented segmented-wide",children:[e("legend",{className:"visually-hidden",children:t("Color scheme")}),C5.map((U)=>n("label",{"data-checked":i===U.value,children:[e("input",{type:"radio",name:"theme",checked:i===U.value,onChange:(B)=>{let V=B.target.getBoundingClientRect();Ff(U.value,{x:V.left+V.width/2,y:V.top+V.height/2})}}),e(s,{name:U.icon,size:18}),t(U.label)]},U.value))]}),n("fieldset",{className:"segmented segmented-wide",children:[e("legend",{className:"visually-hidden",children:t("Look")}),FE.map((U)=>n("label",{"data-checked":c===U.value,children:[e("input",{type:"radio",name:"look",checked:c===U.value,onChange:()=>pk(U.value===w?void 0:U.value)}),n("span",{className:"look-swatch","data-swatch":U.value,"aria-hidden":"true",children:[e("i",{}),e("i",{}),e("i",{})]}),t(U.label)]},U.value))]}),e("p",{className:"meta",children:t(FE.find((U)=>U.value===c)?.hint??"")})]}),n("section",{className:"card stack",children:[e("h2",{children:t("Install")}),H?e("p",{className:"meta",children:t("This page is installed on this device.")}):D?n(g,{children:[e("p",{className:"meta",children:t("Install it to open from your home screen or dock, in its own window.")}),e("div",{className:"actions",children:n("button",{type:"button",onClick:async()=>{await Pd?.prompt(),Pd=void 0,L(!1)},children:[e(s,{name:"download",size:16}),t("Install the app")]})})]}):e("p",{className:"meta",children:t("To install it, use your browser's Install option, or on iPhone and iPad, Share and then Add to Home Screen.")})]}),N?.prompts?n("section",{className:"card stack",children:[e("h2",{children:t("Main prompts")}),e("ul",{className:"menu",children:e("li",{children:n("a",{className:"menu-item menu-link",href:x("prompts"),children:[n("span",{className:"menu-text",children:[e("strong",{children:t("Edit the main prompts")}),e("span",{className:"meta",children:t("The texts the main knight and the other knights start from, with a diff to read before you save and a way back to the file's text.")})]}),e(s,{name:"chevron",size:16})]})})})]}):null,e(A5,{enabled:N?.push===!0,quietHours:N?.quietHours}),n("section",{className:"card stack",children:[e("h2",{children:t("Account")}),e("p",{className:"meta",children:E?t("Signed in as {name}.",{name:E.name}):N?t("Signed in as {name}.",{name:N.principal.name}):""}),N?e(or,{auth:N.auth}):null]})]})}var R5=S(()=>(p("qpp9bdxh"),import("./chunk-action-menu-qpp9bdxh.js")).then((i)=>({default:i.ActionMenuHost}))),M5=S(()=>(p("5xtdvy9a"),import("./chunk-palette-5xtdvy9a.js")).then((i)=>({default:i.Palette}))),z5=S(()=>(p("d5zbwbbr"),import("./chunk-sheet-hosts-d5zbwbbr.js")).then((i)=>({default:i.SheetHosts}))),O5=S(()=>(p("bcvhpcry"),import("./chunk-room-confirms-bcvhpcry.js")).then((i)=>({default:i.RoomConfirmHost}))),_5=S(()=>(p("rdnfmtf2"),import("./chunk-notice-bell-rdnfmtf2.js"))),D5=S(()=>(p("vxetvn8t"),import("./chunk-gate-vxetvn8t.js")).then((i)=>({default:i.GatePage}))),L5=S(()=>(p("x0yvvdq2"),import("./chunk-agent-x0yvvdq2.js")).then((i)=>({default:i.AgentPage}))),H5=S(()=>je().then((i)=>({default:i.HostRoomPage}))),U5=S(()=>(p("a5pewkhd"),import("./chunk-schedules-a5pewkhd.js")).then((i)=>({default:i.SchedulesPage}))),B5=S(()=>(p("75hgb0t0"),import("./chunk-prompts-75hgb0t0.js")).then((i)=>({default:i.PromptsPage}))),V5=S(()=>(p("zrx3bpwf"),import("./chunk-overview-zrx3bpwf.js")).then((i)=>({default:i.OverviewPage}))),q5=S(()=>(p("fb071rez"),import("./chunk-conversations-fb071rez.js")).then((i)=>({default:i.ConversationsPage}))),P5=S(()=>(p("a0p3vwh6"),import("./chunk-transcript-a0p3vwh6.js")).then((i)=>({default:i.TranscriptPage}))),I5=S(()=>(p("a8nqffbf"),import("./chunk-notes-a8nqffbf.js")).then((i)=>({default:i.NotesPage}))),j5=S(()=>(p("vp107wrp"),import("./chunk-skills-vp107wrp.js")).then((i)=>({default:i.SkillsPage}))),G5=S(()=>(p("zha2d834"),import("./chunk-connectors-zha2d834.js")).then((i)=>({default:i.ConnectorsPage}))),Y5=S(()=>(p("d34njy4p"),import("./chunk-workspace-d34njy4p.js")).then((i)=>({default:i.WorkspacePage}))),F5=S(()=>(p("svb2xhfd"),import("./chunk-table-svb2xhfd.js")).then((i)=>({default:i.TablePage}))),Q5={overview:u("Overview"),conversations:u("Conversations"),notes:u("Notes"),skills:u("Skills"),connectors:u("Connectors"),rooms:u("Rooms"),schedules:u("Schedules"),table:u("Round table"),workspace:u("Files"),profile:u("Profile"),settings:u("Settings"),more:u("More")};function ZE(){let[i,c]=r(),[b,w]=r();if(o(()=>{y.config().then(async(N)=>{await Hf(N.locale).catch((R)=>console.warn("the built-in wording failed to load",R)),Ew(N),Xf(N.look),vk(N.characterSkins),Ow(N.mountPath,N.panes[0]),rk(N.push?.subscribe),document.documentElement.lang=N.locale??"en",c(N),document.title=N.title}).catch((N)=>w(d(N)))},[]),!i)return e("div",{className:"page",children:b?e(m,{message:b}):e(v,{})});let E=e(Z5,{config:i});return e(rt.Provider,{value:i,children:i.app?e(Xw,{protocol:i.app.protocol,children:E}):E})}function X5(){o(()=>{let i=window.visualViewport,c=document.documentElement,b=()=>{c.style.setProperty("--app-height",`${i?.height??window.innerHeight}px`),c.style.setProperty("--app-top",`${i?.offsetTop??0}px`)};return b(),i?.addEventListener("resize",b),i?.addEventListener("scroll",b),window.addEventListener("resize",b),()=>{i?.removeEventListener("resize",b),i?.removeEventListener("scroll",b),window.removeEventListener("resize",b)}},[])}function XE(){let{resolved:i}=_l();return e("button",{type:"button",className:"icon-button","aria-label":i==="dark"?t("Switch to light"):t("Switch to dark"),onClick:(c)=>{let b=c.currentTarget.getBoundingClientRect();Ff(i==="dark"?"light":"dark",{x:b.left+b.width/2,y:b.top+b.height/2})},children:e(s,{name:i==="dark"?"sun":"moon"})})}function Z5({config:i}){let c=ok(),b=Zi(),w=i.app,E=w!==void 0&&i.panes.includes("rooms"),[N,R]=r(!1),D=Ce("(min-width: 1024px)"),L=Ce("(min-width: 720px)"),H=a(null);X5(),hk(E,c.version);let[,U]=r(!1),B=(i.pages??[]).some((ie)=>ie.icon);o(()=>{if(B)(p("tyktazzz"),import("./chunk-host-icons-tyktazzz.js")).then(()=>U(!0))},[B]);let V=l((ie)=>ie.connection),q=l((ie)=>ie.forbidden),Z=l((ie)=>ie.gate)??i.gate??[],ee=Z.length>0,P=a(ee);o(()=>{if(P.current&&!ee)window.location.reload();P.current=ee},[ee]);let G=l(Dn),F=Ww();o(()=>{(p("qd640mjr"),import("./chunk-tab-dot-qd640mjr.js")).then((ie)=>ie.startPageTabDot()).catch((ie)=>console.warn("the tab icon's dot failed to load",ie))},[]),o(()=>{document.title=$w(i.title,G+F)},[G,F,i.title]),o(()=>{if(!E)return;let ie=(X)=>{if(gk(X))X.preventDefault(),R((De)=>!De)};return window.addEventListener("keydown",ie),()=>window.removeEventListener("keydown",ie)},[E]);let te=E&&!ee;o(()=>{if(!te)return;let ie,X=!1;return (p("6em0atk9"),import("./chunk-shortcuts-6em0atk9.js")).then((De)=>{if(!X)ie=De.startShortcuts()}).catch((De)=>console.warn("the keyboard shortcuts failed to load",De)),()=>{X=!0,ie?.()}},[te]);let oe=C(()=>{let ie=[...i.panes.map((X)=>({pane:X,label:t(Q5[X]),icon:bu[X]})),...(i.pages??[]).filter((X)=>X.place==="main").map((X)=>({pane:`p/${X.id}`,label:X.label,icon:X.icon??"list"})),...E?[{pane:"settings",label:t("Settings"),icon:bu.settings}]:[]];return ee?ie.filter((X)=>pg.has(X.pane)):ie},[i.panes,i.pages,E,ee]),ae=i.panes[0]??"conversations",ue=((ie)=>i.panes.includes(ie)||E&&["room","agent","settings","prompts","more"].includes(ie)||ie==="more"||E&&ie!=="profile"&&(ie in mg))(b.pane)?b.pane:ae,ye=Z.some((ie)=>ie.open.page===(ue==="p"?b.key:ue)),ne=ee&&!pg.has(ue)&&!ye,Ve=E&&(ue==="room"||ue==="agent")&&Boolean(b.key)||ue==="workspace"&&(L||/[^:/]$/.test(b.key??"")),ze=ue==="room"||ue==="agent"?"rooms":ue==="prompts"?"settings":ue==="p"?`p/${b.key}`:ue;o(()=>{H.current?.scrollTo(0,0)},[ue,b.key]);let ve=(()=>{let ie=oe.slice(0,3);return oe.length>4?[...ie,{pane:"more",label:t("More"),icon:bu.more}]:oe})(),Ae=oe.filter((ie)=>!ve.some((X)=>X.pane===ie.pane)),Me=(()=>{if(q)return e("div",{className:"page",children:e(m,{message:t("This account is not an owner of this host, so the app stays closed. Reload the page to try again.")})});if(ne)return e(D5,{steps:Z});switch(ue){case"rooms":return e(Vd,{onSearch:()=>R(!0)});case"room":{if(!b.key)return e(Vd,{onSearch:()=>R(!0)});let ie=(i.kinds??[]).some((X)=>b.key?.startsWith(`${w?.surface}:${X.kind}.`))?e(H5,{roomKey:b.key},b.key):e(GE,{roomKey:b.key},b.key);return D?n("div",{className:"split",children:[e("div",{className:"split-list",children:e(Vd,{onSearch:()=>R(!0),active:b.key})}),e("div",{className:"split-detail",children:ie})]}):ie}case"agent":return b.key?e(L5,{name:b.key},b.key):null;case"schedules":return e(U5,{});case"table":return e(F5,{focus:b.key});case"workspace":return e(Y5,{});case"settings":return e(QE,{});case"prompts":return e(B5,{});case"more":return e(yk,{items:Ae});case"overview":return e(Iu,{children:e(V5,{})});case"conversations":return e(Iu,{children:b.key?e(P5,{conversationKey:b.key},b.key):e(q5,{})});case"notes":return e(Iu,{children:e(I5,{})});case"skills":return e(Iu,{children:e(j5,{})});case"connectors":return e(Iu,{children:e(G5,{})});default:{let ie=mg[ue];return ie?e(ie,{pane:ue,routeKey:b.key}):null}}})(),tt=w?V==="open":c.connected,Ke=i.tier!==void 0?e(Q,{fallback:null,children:e(_5,{})}):null,Tt=e("span",{className:"live-chip","data-on":tt||void 0,title:tt?t("Receiving live updates"):t("Reconnecting"),children:tt?t("Live"):t("Reconnecting…")});return n(lg.Provider,{value:c,children:[n("div",{className:"app","data-fill":Ve||void 0,children:[n("aside",{className:"rail",children:[n("div",{className:"brand",children:[e($h,{}),e("h1",{children:i.title})]}),e("nav",{className:"rail-nav","aria-label":t("Panes"),children:oe.map((ie)=>n("a",{className:"rail-link",href:x(ie.pane),"aria-current":ie.pane===ze?"page":void 0,children:[e(s,{name:ie.icon}),ie.label,ie.pane==="rooms"&&G?e("span",{className:"tab-badge",children:G}):null]},ie.pane))}),n("div",{className:"rail-foot",children:[Tt,e(gu,{}),Ke,E?e("button",{type:"button",className:"icon-button","aria-label":t("Find a room"),onClick:()=>R(!0),children:e(s,{name:"search"})}):null,e(XE,{})]})]}),n("div",{className:"stage",ref:H,"data-fill":Ve||void 0,children:[n("header",{className:"topbar",children:[n("div",{className:"brand",children:[e($h,{}),e("h1",{children:i.title})]}),n("div",{className:"topbar-end",children:[Tt,e(gu,{}),Ke,e(XE,{})]})]}),e("main",{className:"route",children:e(mu,{resetKey:`${ue}/${b.key??""}`,children:e(Q,{fallback:e("div",{className:"page",children:e(v,{})}),children:Me})})},Dw(ue,b.key,D))]}),e("nav",{className:"tabbar","aria-label":t("Panes"),children:ve.map((ie)=>n("a",{className:"tab",href:x(ie.pane),"aria-current":ie.pane===ze||ie.pane==="more"&&Ae.some((X)=>X.pane===ze)?"page":void 0,children:[e(s,{name:ie.icon,size:22}),e("span",{children:ie.label}),ie.pane==="rooms"&&G?e("span",{className:"tab-badge",children:G}):null]},ie.pane))})]}),e(Jw,{}),E?n(Q,{fallback:null,children:[e(R5,{}),e(z5,{}),e(O5,{}),e(M5,{open:N,onClose:()=>R(!1),pages:oe})]}):null]})}function Iu({children:i}){return e("div",{className:"page",children:i})}fk();Xf(void 0);Gf().catch((i)=>console.warn("the character kit failed to load",i));if(typeof document.startViewTransition!=="function")document.documentElement.classList.add("no-vt");var KE=document.getElementById("root");if(!KE)throw Error("the page has no #root");Hf(Cw()).catch((i)=>console.warn("the built-in wording failed to load",i)).finally(()=>Xh(KE).render(e(Fd,{children:e(mu,{children:e(ZE,{})})})));if("serviceWorker"in navigator){let i=new URL("./",document.baseURI);navigator.serviceWorker.register(new URL("sw.js",i),{scope:i.href}).catch((c)=>console.warn("service worker failed",c)),navigator.serviceWorker.addEventListener("message",(c)=>{let b=c.data;if(typeof b!=="object"||b===null||b.type!=="roundtable:open")return;let w=URL.parse(String(b.url),i);if(w)(p("9jp6g029"),import("./chunk-where-9jp6g029.js")).then((E)=>E.followUrl(w)||window.location.assign(w))})}export{p,Ar,Q,dn,S,j,A,Se,$r,o,z,$e,C,pi,a,r,We,Nr,t,K,u,g,e,n,mi,s,Pe,Lr,gi,x,Oi,I,Zi,yi,fn,Je,Re,hn,O,l,M,pn,Ln,de,h,y,d,f,v,m,k,T,Wt,Xn,Et,rt,_,Xr,Ye,es,xe,re,Ne,Wi,mn,bi,ts,vi,Yt,ot,Yi,wt,st,zn,gn,me,kt,ns,zr,Ir,On,Hi,He,yn,Dr,is,At,xi,Le,rs,os,_t,Si,ss,Ht,as,bn,vn,fe,$t,ji,J,et,Ki,Xe,In,ls,Ji,er,tr,xn,Ur,nr,Ce,je,Vr,ir,we,cs,Dn,Un,rr,or,us,Vn,sr,Ue,jt,ar,ds,wi,qn,Sn,qr,Nt,ki,Br};