@intent-hq/web 2.308.0 → 2.308.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 (203) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Cdw6MInS.js → 20p6UVrJ.js} +1 -1
  3. package/web/app/immutable/chunks/{sFBciGzK.js → 3mA9htoY.js} +1 -1
  4. package/web/app/immutable/chunks/{Dft9saDn.js → 4sdU8HJh.js} +1 -1
  5. package/web/app/immutable/chunks/{Hv37H7OW.js → 5jHx5tgm.js} +1 -1
  6. package/web/app/immutable/chunks/{mxMUw61m.js → 64K2oBlN.js} +1 -1
  7. package/web/app/immutable/chunks/{-B3w7smR.js → 7GaMUkMr.js} +1 -1
  8. package/web/app/immutable/chunks/{fsr4ml-E.js → 7I4Lb20T.js} +1 -1
  9. package/web/app/immutable/chunks/{Dy2IW3UQ.js → 7NZPmxCc.js} +1 -1
  10. package/web/app/immutable/chunks/{C4EO5Kfs.js → 7woFK997.js} +1 -1
  11. package/web/app/immutable/chunks/{CVmTCE7s.js → AcuCqG0h.js} +1 -1
  12. package/web/app/immutable/chunks/{7-4K7v4g.js → Aq8XADnv.js} +1 -1
  13. package/web/app/immutable/chunks/{BvSpaYYO.js → B-Do9RZm.js} +1 -1
  14. package/web/app/immutable/chunks/{DRY7e-Lq.js → B1gh0LOn.js} +1 -1
  15. package/web/app/immutable/chunks/{DtWlovTg.js → B2MkQOVO.js} +1 -1
  16. package/web/app/immutable/chunks/{DCYtlLu-.js → B43S04j_.js} +1 -1
  17. package/web/app/immutable/chunks/{C3Fbg3bo.js → B4kMH02u.js} +1 -1
  18. package/web/app/immutable/chunks/{DqF0c_03.js → B5n1NWyy.js} +1 -1
  19. package/web/app/immutable/chunks/B6MkJHGN.js +1 -0
  20. package/web/app/immutable/chunks/{BgY3ql3v.js → B6Utvg2n.js} +1 -1
  21. package/web/app/immutable/chunks/{DbN_saL_.js → B6qPnBG-.js} +1 -1
  22. package/web/app/immutable/chunks/{Bsg35Oqb.js → B7OQprzS.js} +1 -1
  23. package/web/app/immutable/chunks/{CuDezCQ5.js → B7ZegD4D.js} +2 -2
  24. package/web/app/immutable/chunks/{_ybNzzj4.js → B8923tpn.js} +1 -1
  25. package/web/app/immutable/chunks/{DketxIzW.js → BAzJKeaK.js} +1 -1
  26. package/web/app/immutable/chunks/{Bmp6mo_s.js → BD3-5til.js} +1 -1
  27. package/web/app/immutable/chunks/{BWEOkWg3.js → BDzrcVAC.js} +1 -1
  28. package/web/app/immutable/chunks/{BiFgVe6g.js → BEW3Nx_B.js} +2 -2
  29. package/web/app/immutable/chunks/{7EvfrDU0.js → BIQCpOqH.js} +1 -1
  30. package/web/app/immutable/chunks/{hTYb21U_.js → BJgRJinA.js} +1 -1
  31. package/web/app/immutable/chunks/{DExyo3TI.js → BK1cEBjQ.js} +1 -1
  32. package/web/app/immutable/chunks/{79Zkca1D.js → BKv7jjmi.js} +1 -1
  33. package/web/app/immutable/chunks/{C2Ib9ljU.js → BNIR-Q1X.js} +1 -1
  34. package/web/app/immutable/chunks/{BWLUCU8u.js → BR9v8XzI.js} +1 -1
  35. package/web/app/immutable/chunks/{DMl2hAjr.js → BV6v273A.js} +1 -1
  36. package/web/app/immutable/chunks/{CCL8C58v.js → BW8HfXsd.js} +1 -1
  37. package/web/app/immutable/chunks/{5Ji_nn5U.js → BWaUCvWp.js} +1 -1
  38. package/web/app/immutable/chunks/{CkRxNMzn.js → BXxd1yfG.js} +1 -1
  39. package/web/app/immutable/chunks/{BW4J01Vd.js → BY5rau8Y.js} +1 -1
  40. package/web/app/immutable/chunks/{Dt4s7v4Q.js → BY6gVP5g.js} +2 -2
  41. package/web/app/immutable/chunks/{BNzOwWfC.js → B_xltzgW.js} +1 -1
  42. package/web/app/immutable/chunks/{Co8-Pa6T.js → BaW2Kupg.js} +4 -4
  43. package/web/app/immutable/chunks/{D_LJNo0n.js → BbGSGn0Q.js} +1 -1
  44. package/web/app/immutable/chunks/{BoSllnp_.js → BbUQNpFr.js} +1 -1
  45. package/web/app/immutable/chunks/{CxrPw94A.js → BbzvDmlI.js} +3 -3
  46. package/web/app/immutable/chunks/{CU8cEhkD.js → Bc8khoFa.js} +1 -1
  47. package/web/app/immutable/chunks/{B1yY6GJu.js → BcN0CnII.js} +1 -1
  48. package/web/app/immutable/chunks/{C_QScSD8.js → Beai452N.js} +1 -1
  49. package/web/app/immutable/chunks/{Ces2yzPJ.js → BfZnDuM_.js} +1 -1
  50. package/web/app/immutable/chunks/{CHPRzIEy.js → BhHn9akW.js} +1 -1
  51. package/web/app/immutable/chunks/{CH9XQcSf.js → BhVXJo65.js} +1 -1
  52. package/web/app/immutable/chunks/{BUHhLhgs.js → Bi74ET9W.js} +1 -1
  53. package/web/app/immutable/chunks/{CARz5CCT.js → BqVcdxr-.js} +1 -1
  54. package/web/app/immutable/chunks/{CdV1nqqz.js → Br15jMhJ.js} +1 -1
  55. package/web/app/immutable/chunks/{CRzOnFQP.js → Bs4FWb9N.js} +1 -1
  56. package/web/app/immutable/chunks/{BVOBfKOE.js → BsqCeXyo.js} +1 -1
  57. package/web/app/immutable/chunks/{dih-86Tc.js → Bt1rXtoo.js} +1 -1
  58. package/web/app/immutable/chunks/{CVyBS3oN.js → BtabWTXt.js} +1 -1
  59. package/web/app/immutable/chunks/{gdHduTFA.js → Byuo4e4d.js} +1 -1
  60. package/web/app/immutable/chunks/{DmUYWvMN.js → Bz6PKE7H.js} +1 -1
  61. package/web/app/immutable/chunks/{CWC_Nlup.js → BzL4sJXY.js} +1 -1
  62. package/web/app/immutable/chunks/{9hq3-PO7.js → C0a6I3vg.js} +1 -1
  63. package/web/app/immutable/chunks/{BOCOLX90.js → C44FfRqF.js} +3 -3
  64. package/web/app/immutable/chunks/{DQjYQpqd.js → C4OKLpdN.js} +1 -1
  65. package/web/app/immutable/chunks/{D4DWEC-L.js → C4V8YQCv.js} +1 -1
  66. package/web/app/immutable/chunks/{BqcwAMAI.js → C5EoO5Sg.js} +1 -1
  67. package/web/app/immutable/chunks/{BjPXFOqO.js → C5UReY-E.js} +1 -1
  68. package/web/app/immutable/chunks/{BCX3JQcy.js → C5j9FNqg.js} +1 -1
  69. package/web/app/immutable/chunks/{Dm4s1Q7w.js → C5zpIq2z.js} +1 -1
  70. package/web/app/immutable/chunks/{eArTaZy5.js → C6lu15Tw.js} +1 -1
  71. package/web/app/immutable/chunks/{DWTnVkwi.js → C6z3A8E7.js} +1 -1
  72. package/web/app/immutable/chunks/{BX6K5XDX.js → C8QbdAo3.js} +1 -1
  73. package/web/app/immutable/chunks/{De8QYb8q.js → CDnda6Iq.js} +1 -1
  74. package/web/app/immutable/chunks/{V0vWExlc.js → CG68xo30.js} +1 -1
  75. package/web/app/immutable/chunks/{C_ibd4Ww.js → CGMdgn-W.js} +1 -1
  76. package/web/app/immutable/chunks/{DrsphvSS.js → CGzdYZTI.js} +1 -1
  77. package/web/app/immutable/chunks/{Deu3BA7u.js → CIC39etl.js} +1 -1
  78. package/web/app/immutable/chunks/{Bzvl9BJV.js → CJYxykIm.js} +1 -1
  79. package/web/app/immutable/chunks/{B7Se8Mhp.js → CKIXy6ww.js} +1 -1
  80. package/web/app/immutable/chunks/{Hf5uwTdE.js → CL-rni0w.js} +1 -1
  81. package/web/app/immutable/chunks/{BXeRsIrT.js → CLy6KHFt.js} +6 -6
  82. package/web/app/immutable/chunks/{BeMvIUhX.js → CMNzHnZE.js} +1 -1
  83. package/web/app/immutable/chunks/{BiGwvkYf.js → COErIaxB.js} +1 -1
  84. package/web/app/immutable/chunks/{CyFFAGL5.js → CRHmQRas.js} +1 -1
  85. package/web/app/immutable/chunks/{Ds_Kf9EA.js → CWfnIL3Q.js} +7 -7
  86. package/web/app/immutable/chunks/{BwldUeEG.js → CY2dENCG.js} +1 -1
  87. package/web/app/immutable/chunks/{Xo50RLJp.js → CYbC4Xec.js} +1 -1
  88. package/web/app/immutable/chunks/{Bj1RMWlB.js → CboPiPQY.js} +1 -1
  89. package/web/app/immutable/chunks/{Bjte08dR.js → Cce6TTnZ.js} +1 -1
  90. package/web/app/immutable/chunks/{GF5ZSxte.js → CdwBPvEi.js} +1 -1
  91. package/web/app/immutable/chunks/{DR-Aj_ks.js → Cg2VNX7z.js} +1 -1
  92. package/web/app/immutable/chunks/{BnUIUu9T.js → ChGBRwNt.js} +1 -1
  93. package/web/app/immutable/chunks/{nPJWc816.js → Cm7xDtac.js} +1 -1
  94. package/web/app/immutable/chunks/{Cr9D3b1H.js → CmXHtTkz.js} +1 -1
  95. package/web/app/immutable/chunks/{C8htDeGn.js → CpiHp8Ae.js} +4 -4
  96. package/web/app/immutable/chunks/{Du-d3vcz.js → CrvoX2WJ.js} +1 -1
  97. package/web/app/immutable/chunks/{CUSFlCws.js → Ctl_B37M.js} +1 -1
  98. package/web/app/immutable/chunks/{CUUGGMlu.js → CucuIbmg.js} +1 -1
  99. package/web/app/immutable/chunks/{BP5FX2kf.js → CwFOIVIZ.js} +1 -1
  100. package/web/app/immutable/chunks/{C6ujNqIY.js → CxQfN3-2.js} +1 -1
  101. package/web/app/immutable/chunks/{hQ9zd42d.js → Cxs8qSWC.js} +1 -1
  102. package/web/app/immutable/chunks/{08jl08Lg.js → D-vX4iJv.js} +1 -1
  103. package/web/app/immutable/chunks/{5MwvnnU4.js → D3vkMbH6.js} +2 -2
  104. package/web/app/immutable/chunks/{VKybzKaK.js → D6FhcUuF.js} +1 -1
  105. package/web/app/immutable/chunks/{B2WUxdNu.js → DAKiyYLi.js} +2 -2
  106. package/web/app/immutable/chunks/{DYyzIkMa.js → DBe3iowp.js} +1 -1
  107. package/web/app/immutable/chunks/{BdjTR4R9.js → DCHrAI0P.js} +4 -4
  108. package/web/app/immutable/chunks/{BdrD6-Yk.js → DCTOYXXK.js} +1 -1
  109. package/web/app/immutable/chunks/{B70VJUk6.js → DCn_fwGY.js} +1 -1
  110. package/web/app/immutable/chunks/{UDIxqEeg.js → DCpLg9rk.js} +1 -1
  111. package/web/app/immutable/chunks/{Biu0mZ7b.js → DDVvWGb_.js} +1 -1
  112. package/web/app/immutable/chunks/{jZC5wC-X.js → DFX-g_B2.js} +1 -1
  113. package/web/app/immutable/chunks/{DZ0q4VGI.js → DGCL143k.js} +1 -1
  114. package/web/app/immutable/chunks/{fgutS2Xt.js → DHeLZdAl.js} +1 -1
  115. package/web/app/immutable/chunks/{JyqDnnKU.js → DJhdh1Cj.js} +1 -1
  116. package/web/app/immutable/chunks/{TNF6hsWn.js → DJlDux3f.js} +1 -1
  117. package/web/app/immutable/chunks/{BfVCrToW.js → DLDAnI9z.js} +1 -1
  118. package/web/app/immutable/chunks/{BU52YJZu.js → DMUxnsSi.js} +1 -1
  119. package/web/app/immutable/chunks/{DiTToznV.js → DN0k4-NH.js} +2 -2
  120. package/web/app/immutable/chunks/{q3LKPyTi.js → DNS6iE59.js} +1 -1
  121. package/web/app/immutable/chunks/{C4JGZJVX.js → DQpf1Ksw.js} +1 -1
  122. package/web/app/immutable/chunks/{B8zPoaDq.js → DRm8GvSg.js} +1 -1
  123. package/web/app/immutable/chunks/{6zbeEeHU.js → DWbUmCoQ.js} +1 -1
  124. package/web/app/immutable/chunks/{hRTXnLSp.js → DZcnfrfN.js} +1 -1
  125. package/web/app/immutable/chunks/{BvZ472sk.js → DaR6SlK7.js} +3 -3
  126. package/web/app/immutable/chunks/{OXkvCdQy.js → Dd78YZJ8.js} +2 -2
  127. package/web/app/immutable/chunks/{RBtryOly.js → DeGjTipP.js} +1 -1
  128. package/web/app/immutable/chunks/{CbdsiBFH.js → DeKx3e_L.js} +1 -1
  129. package/web/app/immutable/chunks/{DUNFJ1mG.js → DgBIwWee.js} +1 -1
  130. package/web/app/immutable/chunks/{CZrhAzUT.js → DgHl4bT8.js} +1 -1
  131. package/web/app/immutable/chunks/{Bu8ds4Jl.js → DhIDq5qU.js} +1 -1
  132. package/web/app/immutable/chunks/{DmfJJbWh.js → DhT0fw5L.js} +1 -1
  133. package/web/app/immutable/chunks/{7EVUv7lz.js → Djwcl6Fr.js} +1 -1
  134. package/web/app/immutable/chunks/{0Jt7HvfX.js → Dl8JqE7s.js} +1 -1
  135. package/web/app/immutable/chunks/{fe_eftOD.js → DlZ5F9Lx.js} +1 -1
  136. package/web/app/immutable/chunks/{ByIqwBuP.js → DnamVqCn.js} +1 -1
  137. package/web/app/immutable/chunks/{DcW7h9iU.js → DoMPu14N.js} +1 -1
  138. package/web/app/immutable/chunks/{Cuq5AuKG.js → Dof0iyzF.js} +1 -1
  139. package/web/app/immutable/chunks/{D-L0g5sP.js → Doh3PUYI.js} +1 -1
  140. package/web/app/immutable/chunks/{DPCSzjyj.js → DqgAlN7P.js} +1 -1
  141. package/web/app/immutable/chunks/{DcWh3crB.js → DtDxrQfi.js} +1 -1
  142. package/web/app/immutable/chunks/{P2xe4rfv.js → DtLridJD.js} +1 -1
  143. package/web/app/immutable/chunks/{DvcYKh19.js → DuD6uhYH.js} +1 -1
  144. package/web/app/immutable/chunks/{CQwSYydk.js → DvBs4Hcz.js} +1 -1
  145. package/web/app/immutable/chunks/{fLy_hJlz.js → DvDq_wDk.js} +1 -1
  146. package/web/app/immutable/chunks/{BsBYt8VW.js → DwclCkw1.js} +1 -1
  147. package/web/app/immutable/chunks/{Bsl2-PKT.js → Dx2FEG0z.js} +1 -1
  148. package/web/app/immutable/chunks/{BmhoW_L6.js → DxGyW0lA.js} +1 -1
  149. package/web/app/immutable/chunks/{D49m-ZaH.js → DzsfGvxl.js} +1 -1
  150. package/web/app/immutable/chunks/{B-ahkFCR.js → Fo7QNM30.js} +1 -1
  151. package/web/app/immutable/chunks/{CaHzETsO.js → Glr413kB.js} +1 -1
  152. package/web/app/immutable/chunks/{DtB5d-1F.js → HsvYWQrw.js} +1 -1
  153. package/web/app/immutable/chunks/{BL9-ROzw.js → JWlrX8g6.js} +1 -1
  154. package/web/app/immutable/chunks/{DMFRjZee.js → Jqp5qOVD.js} +1 -1
  155. package/web/app/immutable/chunks/{CLgOAyRn.js → LigVTKZd.js} +1 -1
  156. package/web/app/immutable/chunks/{7Oj1FwH7.js → M5XKIMwb.js} +1 -1
  157. package/web/app/immutable/chunks/{CRTiEGz_.js → NcTzLGaE.js} +6 -6
  158. package/web/app/immutable/chunks/{8xz0mqCS.js → Q7h5F5MY.js} +1 -1
  159. package/web/app/immutable/chunks/{HFgXggBX.js → ST0Pr06L.js} +1 -1
  160. package/web/app/immutable/chunks/{DBG-2jVd.js → SqT0PCrX.js} +1 -1
  161. package/web/app/immutable/chunks/{1Q6G0pvW.js → U1EJdIrS.js} +1 -1
  162. package/web/app/immutable/chunks/{BaCDnbdR.js → U5EkHYlB.js} +1 -1
  163. package/web/app/immutable/chunks/{CKylENIK.js → UuhfJP8e.js} +1 -1
  164. package/web/app/immutable/chunks/{B6SdqA8G.js → VLIUKGSW.js} +1 -1
  165. package/web/app/immutable/chunks/{B_ihHIXk.js → XhVa-cY9.js} +1 -1
  166. package/web/app/immutable/chunks/{B9Zb2I-3.js → XwAA3IRV.js} +1 -1
  167. package/web/app/immutable/chunks/{LNGUAKz-.js → ZSVjaaq5.js} +1 -1
  168. package/web/app/immutable/chunks/{Bdi_ql3M.js → ZW7HN3jk.js} +1 -1
  169. package/web/app/immutable/chunks/{D60UPZv6.js → cK_X_Z2_.js} +1 -1
  170. package/web/app/immutable/chunks/{B4JY7OdG.js → cp14at2-.js} +1 -1
  171. package/web/app/immutable/chunks/{DKI6Z6i9.js → cyTctvu3.js} +1 -1
  172. package/web/app/immutable/chunks/{mXP56bVn.js → f4sPQl0K.js} +1 -1
  173. package/web/app/immutable/chunks/{DhLqxXsb.js → hebNG67g.js} +1 -1
  174. package/web/app/immutable/chunks/{DKUxKAad.js → hf6CuW6w.js} +1 -1
  175. package/web/app/immutable/chunks/{BCShYG5q.js → i-Fs1U2f.js} +1 -1
  176. package/web/app/immutable/chunks/{gZfnsun1.js → jqiCLmEu.js} +6 -6
  177. package/web/app/immutable/chunks/{W_knKG-M.js → lP8JdB64.js} +1 -1
  178. package/web/app/immutable/chunks/{DgTxDo3A.js → qCYtXSkB.js} +1 -1
  179. package/web/app/immutable/chunks/{edWktldY.js → s0uOmxSf.js} +1 -1
  180. package/web/app/immutable/chunks/{DpfRsBSx.js → saR3-JRv.js} +1 -1
  181. package/web/app/immutable/chunks/{CrHWjZvi.js → t-AupbTj.js} +1 -1
  182. package/web/app/immutable/chunks/{CjnNpRDF.js → uD982nf2.js} +1 -1
  183. package/web/app/immutable/chunks/{B2LC9Sos.js → yQERw7Ok.js} +1 -1
  184. package/web/app/immutable/chunks/{BC2yRiH0.js → ybv9yBcQ.js} +1 -1
  185. package/web/app/immutable/entry/{app.5swf8fH6.js → app.DbJk3ZpG.js} +2 -2
  186. package/web/app/immutable/entry/start.DTPxOZG8.js +1 -0
  187. package/web/app/immutable/nodes/{0.rj6WxPiI.js → 0.BJ700vC2.js} +1 -1
  188. package/web/app/immutable/nodes/{1.D2LKdxSK.js → 1.BTyy14rK.js} +1 -1
  189. package/web/app/immutable/nodes/{10.CsOXyM9t.js → 10.V55g30nz.js} +1 -1
  190. package/web/app/immutable/nodes/{14.EKyMha8S.js → 14._G7LK5Dq.js} +1 -1
  191. package/web/app/immutable/nodes/{16.DJIf57hW.js → 16.DvmMFRvS.js} +2 -2
  192. package/web/app/immutable/nodes/{2.lbWc9DH5.js → 2.CxEoe4OH.js} +3 -3
  193. package/web/app/immutable/nodes/{3.in8ZwJzB.js → 3.Cx7GEzkN.js} +1 -1
  194. package/web/app/immutable/nodes/{4.CUsxPHda.js → 4.BScaFjaT.js} +1 -1
  195. package/web/app/immutable/nodes/{5.DvU91sgr.js → 5.B524kS74.js} +1 -1
  196. package/web/app/immutable/nodes/{6.BdAKoKat.js → 6.DazQUzxi.js} +1 -1
  197. package/web/app/immutable/nodes/{7.JNWjRQgm.js → 7.BtN1OPi8.js} +1 -1
  198. package/web/app/immutable/nodes/{8.CzuEJYxY.js → 8.Ak4UD-JY.js} +2 -2
  199. package/web/app/immutable/nodes/{9.Bn4F0-mM.js → 9.BGiVSjZY.js} +1 -1
  200. package/web/app/version.json +1 -1
  201. package/web/index.html +9 -9
  202. package/web/app/immutable/chunks/ppMO_QX7.js +0 -1
  203. package/web/app/immutable/entry/start.B6Q2SB8U.js +0 -1
@@ -1,4 +1,4 @@
1
- var Du=Object.defineProperty;var Nu=(t,e,r)=>e in t?Du(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>Nu(t,typeof e!="symbol"?e+"":e,r);import{cA as Ft,aS as Lu,dm as gl,Z as A0,X as sa,Y as Pu,W as Ou,a0 as _u,aa as $u,S as Bu,dN as qu,L as Fu,b8 as vl,cD as t0,dl as bl,aR as Hu,aV as Uu,cl as Wu,c7 as Gu,dh as Na,dH as ju,dB as Vu,ax as Ln,ak as Xu,as as ci,dy as Ku,dD as yl,dA as Yu}from"./Rw2sIc23.js";import{D as bs,bo as Zu,bE as Qu,aV as Ju}from"./D49m-ZaH.js";import{J as e1}from"./CtOtN9TD.js";import{xJ as un,Hp as E,n6 as ye,n5 as Se,aQ as t1,g as wl,y as De,bi as r0,jL as ui,lp as hn,an as Ut,lo as ys,ly as ws,lv as ks,ji as kl,gj as La,FW as r1,si as n1,z3 as a1,o9 as i1,mb as dn,AE as s1,ir as o1,lI as l1,lj as c1}from"./DOX6tqe2.js";import{bo as re}from"./DVcxpZob.js";import{t as Je}from"./WsKP4LPk.js";import{T as u1,x as yr,y as wr}from"./DRWXI2c9.js";import{a as n0}from"./BJzHxIyr.js";import{o as pe,r as Ht,f as a0,s as V,e as Xe,l as i0,n as Le,c as sr,b as He,u as h1,d as d1}from"./CpHIRYx9.js";import{j as xl}from"./DVkfuwKw.js";import{r as p1}from"./Dwoq6qgz.js";import{b as m1}from"./aGrIQKRU.js";import{i as Ge}from"./DNqOZtos.js";import{l as oa,c as f1}from"./ChTqQfQN.js";import{ax as s0}from"./C-KminjT.js";import{i as xs}from"./BFV2dSHH.js";import{f as hi,x as Sl,y as Al,j as g1,v as Tl,o as v1,r as b1}from"./BCKgwkD0.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function y1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const w1=new Uint8Array(16);function k1(){return crypto.getRandomValues(w1)}function di(t,e,r){return crypto.randomUUID?crypto.randomUUID():x1(t)}function x1(t,e,r){t=t||{};const n=t.random??t.rng?.()??k1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,y1(n)}function pi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=pi({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?e1(r.replace(/\.git\/?$/,""),e):null}function V2(t,e){return t.type==="local"?t.plainFolder?"folder":"local":pi(t,e)?.provider==="gitlab"?"gitlab":"github"}function El(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function X2(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=El(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function K2(t){return t.type==="local"&&t.path?t.path:void 0}const S1=["/.clones/","/.repo-cache/"];function Y2(t){const e=t.replaceAll("\\","/");return S1.some(r=>e.includes(r))}function Z2(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function A1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function Q2(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??A1(r)}}function J2(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,El(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const T1="known-repos",E1=6e4;function M1({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=un(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(un(s),s);for(const s of e.repos)a.set(un(s),s)}const i=[...a.values()].filter(s=>!r[un(s)]);return n==="all"?i:i.slice(0,9)}function e5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function t5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<E1?"skip":"load"}function r5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=pi(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function C1({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(bs)?bs:null;return s===null||!i(s)?null:s}const n5=E.createSelector(t=>t.workspaceInitializer.hydrated),a5=E.createSelector(t=>t.workspaceInitializer.compactFormState),i5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),s5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),o5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),l5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),c5=E.createSelector(t=>ye(t.workspaceInitializer.recentRepos)),u5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),h5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),d5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),p5=E.createSelector(t=>ye(t.workspaceInitializer.remoteSetups)),m5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),f5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),g5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),v5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),b5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),y5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),w5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),k5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),x5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),S5=E.createSelector(t=>C1({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:Qu.select(t),orchestratorId:Zu.select(t)?.id??null})),I1=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=Ft.select(t);return e&&r&&Lu.select(t)?JSON.stringify([r,e]):null}),A5=E.createSelector(t=>{const e=I1.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),z1=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,T1),r=Ft.select(t);return M1({saved:ye(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),T5=E.createSelector(t=>gl.select(t)?z1.select(t):[]),E5=E.createSelector(t=>Ju.select(t)||void 0),Ss="workspace-debug-flags",pn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class R1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return pn;try{const e=localStorage.getItem(Ss);if(e)return{...pn,...JSON.parse(e)}}catch(e){oa.error("Failed to load debug flags:",e)}return pn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(Ss,JSON.stringify(this.flags))}catch(e){oa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...pn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),oa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const la=new R1;function M5(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function D1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function C5(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function I5(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Pa(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function z5(t,e){return`${e}:${t.agentId??"manual"}`}function N1(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function L1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function P1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function R5(t,e,r,n){const a=N1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function D5(t,e,r){const n=L1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function N5(t,e){const r=P1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function L5(t,e){return e===0&&t.length>0}function P5(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function O5(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function _5(t,e,r){return r?.path===t&&r?.staged===e}function $5(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function B5(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function O1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function q5(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=O1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Pa(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?mi(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Pa(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function F5(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??t1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function _1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function ca(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=A0(i),c=o.toLowerCase(),h=a.find(p=>!!o&&p.url.toLowerCase()===c||(i.resource||i.monitorAvailability?p.monitorIdentity===sa(i):!p.resource&&!p.monitorAvailability&&(s?!p.crossRepo&&p.number===i.prNumber:p.crossRepo===i.repo&&p.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?sa(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${Pu(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?sa(i):void 0,url:o,htmlUrl:o,status:_1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:mi(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function mi(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function H5(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const p=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();A0(x)&&o.some(U=>U.url===A0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?p.push(x):A0(x)&&c.some(U=>U.url===A0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=ca(o,p,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),z=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const Y=`${C.toLowerCase()}#${U.number}`;if(M.has(Y))continue;M.add(Y);const K=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;z.push({number:U.number,title:a(U),url:K,htmlUrl:K,status:Pa(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:mi(C,S)})}}return{own:w,otherRoots:ca(z,f,r),otherTracked:ca(h,g,r)}}function As(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function U5(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():As(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[Ou(t)??e],n=As(t)?u1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(D1(a.mergeBlockedReason))),r.join(`
1
+ var Du=Object.defineProperty;var Nu=(t,e,r)=>e in t?Du(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>Nu(t,typeof e!="symbol"?e+"":e,r);import{cA as Ft,aS as Lu,dm as gl,Z as A0,X as sa,Y as Pu,W as Ou,a0 as _u,aa as $u,S as Bu,dN as qu,L as Fu,b8 as vl,cD as t0,dl as bl,aR as Hu,aV as Uu,cl as Wu,c7 as Gu,dh as Na,dH as ju,dB as Vu,ax as Ln,ak as Xu,as as ci,dy as Ku,dD as yl,dA as Yu}from"./Rw2sIc23.js";import{D as bs,bo as Zu,bE as Qu,aV as Ju}from"./DzsfGvxl.js";import{J as e1}from"./CtOtN9TD.js";import{xJ as un,Hp as E,n6 as ye,n5 as Se,aQ as t1,g as wl,y as De,bi as r0,jL as ui,lp as hn,an as Ut,lo as ys,ly as ws,lv as ks,ji as kl,gj as La,FW as r1,si as n1,z3 as a1,o9 as i1,mb as dn,AE as s1,ir as o1,lI as l1,lj as c1}from"./DOX6tqe2.js";import{bo as re}from"./DVcxpZob.js";import{t as Je}from"./WsKP4LPk.js";import{T as u1,x as yr,y as wr}from"./DRWXI2c9.js";import{a as n0}from"./BJzHxIyr.js";import{o as pe,r as Ht,f as a0,s as V,e as Xe,l as i0,n as Le,c as sr,b as He,u as h1,d as d1}from"./CpHIRYx9.js";import{j as xl}from"./DVkfuwKw.js";import{r as p1}from"./Dwoq6qgz.js";import{b as m1}from"./aGrIQKRU.js";import{i as Ge}from"./DNqOZtos.js";import{l as oa,c as f1}from"./ChTqQfQN.js";import{ax as s0}from"./C-KminjT.js";import{i as xs}from"./BFV2dSHH.js";import{f as hi,x as Sl,y as Al,j as g1,v as Tl,o as v1,r as b1}from"./BCKgwkD0.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function y1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const w1=new Uint8Array(16);function k1(){return crypto.getRandomValues(w1)}function di(t,e,r){return crypto.randomUUID?crypto.randomUUID():x1(t)}function x1(t,e,r){t=t||{};const n=t.random??t.rng?.()??k1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,y1(n)}function pi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=pi({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?e1(r.replace(/\.git\/?$/,""),e):null}function V2(t,e){return t.type==="local"?t.plainFolder?"folder":"local":pi(t,e)?.provider==="gitlab"?"gitlab":"github"}function El(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function X2(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=El(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function K2(t){return t.type==="local"&&t.path?t.path:void 0}const S1=["/.clones/","/.repo-cache/"];function Y2(t){const e=t.replaceAll("\\","/");return S1.some(r=>e.includes(r))}function Z2(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function A1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function Q2(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??A1(r)}}function J2(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,El(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const T1="known-repos",E1=6e4;function M1({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=un(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(un(s),s);for(const s of e.repos)a.set(un(s),s)}const i=[...a.values()].filter(s=>!r[un(s)]);return n==="all"?i:i.slice(0,9)}function e5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function t5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<E1?"skip":"load"}function r5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=pi(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function C1({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(bs)?bs:null;return s===null||!i(s)?null:s}const n5=E.createSelector(t=>t.workspaceInitializer.hydrated),a5=E.createSelector(t=>t.workspaceInitializer.compactFormState),i5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),s5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),o5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),l5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),c5=E.createSelector(t=>ye(t.workspaceInitializer.recentRepos)),u5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),h5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),d5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),p5=E.createSelector(t=>ye(t.workspaceInitializer.remoteSetups)),m5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),f5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),g5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),v5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),b5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),y5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),w5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),k5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),x5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),S5=E.createSelector(t=>C1({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:Qu.select(t),orchestratorId:Zu.select(t)?.id??null})),I1=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=Ft.select(t);return e&&r&&Lu.select(t)?JSON.stringify([r,e]):null}),A5=E.createSelector(t=>{const e=I1.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),z1=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,T1),r=Ft.select(t);return M1({saved:ye(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),T5=E.createSelector(t=>gl.select(t)?z1.select(t):[]),E5=E.createSelector(t=>Ju.select(t)||void 0),Ss="workspace-debug-flags",pn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class R1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return pn;try{const e=localStorage.getItem(Ss);if(e)return{...pn,...JSON.parse(e)}}catch(e){oa.error("Failed to load debug flags:",e)}return pn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(Ss,JSON.stringify(this.flags))}catch(e){oa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...pn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),oa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const la=new R1;function M5(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function D1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function C5(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function I5(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Pa(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function z5(t,e){return`${e}:${t.agentId??"manual"}`}function N1(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function L1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function P1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function R5(t,e,r,n){const a=N1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function D5(t,e,r){const n=L1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function N5(t,e){const r=P1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function L5(t,e){return e===0&&t.length>0}function P5(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function O5(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function _5(t,e,r){return r?.path===t&&r?.staged===e}function $5(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function B5(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function O1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function q5(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=O1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Pa(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?mi(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Pa(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function F5(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??t1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function _1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function ca(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=A0(i),c=o.toLowerCase(),h=a.find(p=>!!o&&p.url.toLowerCase()===c||(i.resource||i.monitorAvailability?p.monitorIdentity===sa(i):!p.resource&&!p.monitorAvailability&&(s?!p.crossRepo&&p.number===i.prNumber:p.crossRepo===i.repo&&p.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?sa(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${Pu(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?sa(i):void 0,url:o,htmlUrl:o,status:_1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:mi(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function mi(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function H5(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const p=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();A0(x)&&o.some(U=>U.url===A0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?p.push(x):A0(x)&&c.some(U=>U.url===A0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=ca(o,p,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),z=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const Y=`${C.toLowerCase()}#${U.number}`;if(M.has(Y))continue;M.add(Y);const K=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;z.push({number:U.number,title:a(U),url:K,htmlUrl:K,status:Pa(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:mi(C,S)})}}return{own:w,otherRoots:ca(z,f,r),otherTracked:ca(h,g,r)}}function As(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function U5(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():As(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[Ou(t)??e],n=As(t)?u1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(D1(a.mergeBlockedReason))),r.join(`
2
2
  `)}function W5(t,e){return e.has(t??"manual")}function G5(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const Ml=500;function j5(t,e=Ml){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function V5(t,e,r=Ml){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function X5(t){if(t.hiddenCount<=0)return"";const e=Je(t.shown),r=Je(t.shown+t.hiddenCount);return t.hiddenCount===1?re.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):re.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:Je(t.hiddenCount)})}function $1(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Oa(t){return t.startsWith("@")?t.slice(1):t}function B1(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Oa(String(a));const i=[r,e,n.trim()].map(Oa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?_u(s).path:void 0}function q1(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function F1(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=$1(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=B1(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=q1(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?Oa(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function K5(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function fi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Dr=fi();function Cl(t){Dr=t}var Er={exec:()=>null};function Ur(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function le(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ve.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var H1=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ve={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ur(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ur(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}>`))},U1=/^(?:[ \t]*(?:\n|$))+/,W1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,G1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,j1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Il=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zl=le(Il).replace(/bull/g,gi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),V1=le(Il).replace(/bull/g,gi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),vi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,X1=/^[^\n]+/,bi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,K1=le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",bi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Y1=le(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,gi).getRegex(),Pn="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Z1=le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",yi).replace("tag",Pn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Rl=t=>le(vi).replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Pn).getRegex(),Q1=Rl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),J1=Rl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),eh=le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",J1).getRegex(),wi={blockquote:eh,code:W1,def:K1,fences:G1,heading:j1,hr:$0,html:Z1,lheading:zl,list:Y1,newline:U1,paragraph:Q1,table:Er,text:X1},Ts=le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Pn).getRegex(),th={...wi,lheading:V1,table:Ts,paragraph:le(vi).replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ts).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Pn).getRegex()},rh={...wi,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Er,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(vi).replace("hr",$0).replace("heading",` *#{1,6} *[^
3
3
  ]`).replace("lheading",zl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},nh=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ah=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Dl=/^( {2,}|\\)\n(?!\s*$)/,ih=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Wt=/[\p{P}\p{S}]/u,o0=/[\s\p{P}\p{S}]/u,B0=/[^\s\p{P}\p{S}]/u,sh=le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,o0).getRegex(),oh=/[\p{Pi}\p{Ps}"']/u,Nl=/(?!~)[\p{P}\p{S}]/u,lh=/(?!~)[\s\p{P}\p{S}]/u,ch=/(?:[^\s\p{P}\p{S}]|~)/u,uh=le(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",H1?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ll=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,hh=le(Ll,"u").replace(/punct/g,Wt).getRegex(),dh=le(Ll,"u").replace(/punct/g,Nl).getRegex(),ph=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,mh=le(ph,"u").replace(/openQuote/g,oh).replace(/punct/g,Wt).getRegex(),Pl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",fh=le(Pl,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,o0).replace(/punct/g,Wt).getRegex(),gh=le(Pl,"gu").replace(/notPunctSpace/g,ch).replace(/punctSpace/g,lh).replace(/punct/g,Nl).getRegex(),vh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",bh=le(vh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,o0).replace(/punct/g,Wt).getRegex(),yh=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,o0).replace(/punct/g,Wt).getRegex(),wh="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",kh=le(wh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,o0).replace(/punct/g,Wt).getRegex(),xh=le(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Wt).getRegex(),Sh="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ah=le(Sh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,o0).replace(/punct/g,Wt).getRegex(),Th=le(/\\(punct)/,"gu").replace(/punct/g,Wt).getRegex(),Eh=le(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Mh=le(yi).replace("(?:-->|$)","-->").getRegex(),Ch=le("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Mh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Cn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Ih=le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Cn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ol=le(/^!?\[(label)\]\[(ref)\]/).replace("label",Cn).replace("ref",bi).getRegex(),_l=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",bi).getRegex(),zh=le("reflink|nolink(?!\\()","g").replace("reflink",Ol).replace("nolink",_l).getRegex(),Es=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ki={_backpedal:Er,anyPunctuation:Th,autolink:Eh,blockSkip:uh,br:Dl,code:ah,del:Er,delLDelim:Er,delRDelim:Er,emStrongLDelim:hh,emStrongRDelimAst:fh,emStrongRDelimUnd:yh,escape:nh,link:Ih,nolink:_l,punctuation:sh,reflink:Ol,reflinkSearch:zh,tag:Ch,text:ih,url:Er},Rh={...ki,emStrongLDelim:mh,emStrongRDelimAst:bh,emStrongRDelimUnd:kh,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",Cn).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Cn).getRegex()},_a={...ki,emStrongRDelimAst:gh,emStrongLDelim:dh,delLDelim:xh,delRDelim:Ah,url:le(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Es).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:le(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Es).getRegex()},Dh={..._a,br:le(Dl).replace("{2,}","*").getRegex(),text:le(_a.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mn={normal:wi,gfm:th,pedantic:rh},v0={normal:ki,gfm:_a,breaks:Dh,pedantic:Rh},Nh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ms=t=>Nh[t];function It(t,e){if(e){if(Ve.escapeTest.test(t))return t.replace(Ve.escapeReplace,Ms)}else if(Ve.escapeTestNoEncode.test(t))return t.replace(Ve.escapeReplaceNoEncode,Ms);return t}function Cs(t){try{t=encodeURI(t).replace(Ve.percentDecode,"%")}catch{return null}return t}function Is(t,e){let r=t.replace(Ve.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ve.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ve.slashPipe,"|");return n}function Jt(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function zs(t){let e=t.split(`
4
4
  `),r=e.length-1;for(;r>=0&&Ve.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
@@ -1 +1 @@
1
- import{D as C}from"./DMFRjZee.js";import{t as re,bq as y,a_ as se,by as ae,b as ne,bo as I}from"./DVcxpZob.js";import{bs as oe,cb as ie,c5 as le,bH as k,aD as b,a5 as G,bA as q,b_ as R,W as E,bn as ce,bV as W,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as de,aB as P}from"./B8o4lNgr.js";import{D as ue}from"./CtOtN9TD.js";import{s as D}from"./CRLCgacz.js";import{b as me}from"./gZfnsun1.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,u=t[e];if(u===void 0)return{complete:!1};if(u==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(u==="{"||u==="["){const r=u==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:m})=>m)),g=n.filter(m=>m.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:m})=>m)),_=a.filter(m=>m.group===void 0||v.has(m.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),u=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,u,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),u=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!u.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,u))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Ne(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});oe(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),u=W(null),r=W(0),c="",h,i=!1;ie(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();le(()=>{i&&(w!==h||!p.startsWith(c))&&(k(u,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(u,null):o&&k(u,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(u):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:ae,$on:(o,p)=>ne(e,o,p)},m=Se(),A=G(m);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);q(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=de(),w=H(p);ue(w,()=>b(r),S=>{me(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};se(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return q(m),R(()=>{D(m,"aria-busy",a()),D(m,"data-diagram-streaming",a())}),E(t,m),ce(_)}export{_e as S,Ne as p};
1
+ import{D as C}from"./Jqp5qOVD.js";import{t as re,bq as y,a_ as se,by as ae,b as ne,bo as I}from"./DVcxpZob.js";import{bs as oe,cb as ie,c5 as le,bH as k,aD as b,a5 as G,bA as q,b_ as R,W as E,bn as ce,bV as W,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as de,aB as P}from"./B8o4lNgr.js";import{D as ue}from"./CtOtN9TD.js";import{s as D}from"./CRLCgacz.js";import{b as me}from"./jqiCLmEu.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,u=t[e];if(u===void 0)return{complete:!1};if(u==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(u==="{"||u==="["){const r=u==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:m})=>m)),g=n.filter(m=>m.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:m})=>m)),_=a.filter(m=>m.group===void 0||v.has(m.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),u=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,u,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),u=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!u.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,u))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Ne(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});oe(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),u=W(null),r=W(0),c="",h,i=!1;ie(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();le(()=>{i&&(w!==h||!p.startsWith(c))&&(k(u,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(u,null):o&&k(u,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(u):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:ae,$on:(o,p)=>ne(e,o,p)},m=Se(),A=G(m);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);q(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=de(),w=H(p);ue(w,()=>b(r),S=>{me(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};se(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return q(m),R(()=>{D(m,"aria-busy",a()),D(m,"data-diagram-streaming",a())}),E(t,m),ce(_)}export{_e as S,Ne as p};
@@ -1,4 +1,4 @@
1
- import{p as xt}from"./CjnNpRDF.js";import{p as $t}from"./DR-Aj_ks.js";import{aF as bt,K as Ct,O as wt,aI as vt,L as Dt,aG as kt,a as s,ad as X,aE as Tt,r as At,k as Bt,j as K,M as Q,y as St,U as ft}from"./Ds_Kf9EA.js";import{g as F}from"./gZfnsun1.js";var mt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),G=mt(),Mt=s(()=>G.domains,"getDomains"),zt=s(()=>G.transitions,"getTransitions"),Lt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));G.domains.set(n,{name:n,items:a})}},"setDomains"),Pt=s(t=>{t&&(G.transitions=t.filter(e=>e.from===e.to?(X.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),It=s(()=>K({...St.cynefin,...Q().cynefin}),"getConfig"),Nt=s(()=>{Bt(),G=mt()},"clear"),Y={getDomains:Mt,getTransitions:zt,setDomains:Lt,setTransitions:Pt,getConfig:It,clear:Nt,setAccTitle:kt,getAccTitle:Dt,setDiagramTitle:vt,getDiagramTitle:wt,getAccDescription:Ct,setAccDescription:bt},Ft=s(t=>{xt(t,Y),Y.setDomains(t.domains),Y.setTransitions(t.transitions)},"populate"),Rt={parse:s(async t=>{const e=await $t("cynefin",t);X.debug(e),Ft(e)},"parse")};function V(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}F(V,"seededRandom");s(V,"seededRandom");function Z(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}F(Z,"hashString");s(Z,"hashString");function J(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:Z(e)}F(J,"resolveSeed");s(J,"resolveSeed");function tt(t,e,n,a){const c=t/2,m=a??t*.015,v=7,R=e/v,d=[];for(let o=0;o<=v;o++){const p=V(n+o*17)*m*2-m;d.push({x:c+p,y:o*R})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.y+i.y)/2,b=o%2===0?1:-1,h=m*1.5*b*V(n+o*31+7),W=p.x+h,_=f,E=i.x-h;D+=` C${W},${_} ${E},${f} ${i.x},${i.y}`}return D}F(tt,"generateFoldPath");s(tt,"generateFoldPath");function et(t,e,n,a){const c=e/2,m=a??e*.015,v=7,R=t/v,d=[];for(let o=0;o<=v;o++){const p=V(n+o*23)*m*2-m;d.push({x:o*R,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.x+i.x)/2,b=o%2===0?1:-1,h=m*1.5*b*V(n+o*37+11),W=f,_=p.y+h,E=f,z=i.y-h;D+=` C${W},${_} ${E},${z} ${i.x},${i.y}`}return D}F(et,"generateHorizontalBoundary");s(et,"generateHorizontalBoundary");function nt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}F(nt,"generateCliffPath");s(nt,"generateCliffPath");function at(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}F(at,"generateConfusionPath");s(at,"generateConfusionPath");var dt={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Wt=s((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),_t=s(()=>{const t=ft(),e=Q();return K(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,Et=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),R=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=_t();X.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,W=o.boundaryAmplitude,_=i+b*2,E=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Tt(e);At(k,E,_,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${_} ${E}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),H=Wt(i,f),ot=J(o.seed,e),pt=T.append("g").attr("class","cynefin-backgrounds"),j=["complex","complicated","chaotic","clear"];for(const l of j){const r=H[l];pt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const U=T.append("g").attr("class","cynefin-boundaries");U.append("path").attr("class","cynefinBoundary").attr("d",tt(i,f,ot,W)).attr("fill","none"),U.append("path").attr("class","cynefinBoundary").attr("d",et(i,f,ot+100,W)).attr("fill","none"),U.append("path").attr("class","cynefinCliff").attr("d",nt(i,f)).attr("fill","none");const yt=i*.15,ut=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",at(i/2,f/2,yt,ut)).attr("fill",z.confusion).attr("fill-opacity",.5);const rt=T.append("g").attr("class","cynefin-labels");for(const l of j){const r=H[l];rt.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(rt.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of j){const u=H[r],y=dt[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(dt.confusion.practice)}const st=T.append("g").attr("class","cynefin-items"),A=26,it=10,ht=["complex","complicated","chaotic","clear","confusion"];for(const l of ht){const r=m.get(l);if(!r||r.items.length===0)continue;const u=H[l],y=l==="confusion";let L=r.items,P=0;y&&r.items.length>q&&(P=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const x=h?22:14;B=u.cy+x}else B=u.cy+(h?25:15);if([...L].forEach((x,S)=>{const C=B+S*(A+4),M=st.append("g"),I=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(x.label);let $=x.label.length*7;const g=I.node();if(g&&typeof g.getBBox=="function"){const O=g.getBBox();O.width>0&&($=O.width)}const w=$+it*2,N=u.cx-w/2;M.attr("transform",`translate(${N}, ${C})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",w).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),I.attr("x",w/2).attr("y",A/2)}),P>0){const x=B+L.length*(A+4),S=`+${P} more`,C=st.append("g"),M=C.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let I=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const N=$.getBBox();N.width>0&&(I=N.width)}const g=I+it*2,w=u.cx-g/2;C.attr("transform",`translate(${w}, ${x})`),C.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",g).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",g/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=H[y.from],P=H[y.to];if(!L||!P)return;if(y.from===y.to){X.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,x=L.cy,S=P.cx,C=P.cy,M=(B+S)/2,I=(x+C)/2,$=S-B,g=C-x,w=Math.sqrt($*$+g*g),N=w*.15,O=-g/w,gt=$/w,ct=M+O*N,lt=I+gt*N;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${x} Q${ct},${lt} ${S},${C}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",ct).attr("y",lt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}R&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(R)},"draw"),Ht={draw:Et},Vt=s(()=>{const t=ft(),e=Q();return K(t,e.themeVariables).cynefin},"getCynefinTheme"),Gt=s(()=>{const t=Vt();return`
1
+ import{p as xt}from"./uD982nf2.js";import{p as $t}from"./Cg2VNX7z.js";import{aF as bt,K as Ct,O as wt,aI as vt,L as Dt,aG as kt,a as s,ad as X,aE as Tt,r as At,k as Bt,j as K,M as Q,y as St,U as ft}from"./CWfnIL3Q.js";import{g as F}from"./jqiCLmEu.js";var mt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),G=mt(),Mt=s(()=>G.domains,"getDomains"),zt=s(()=>G.transitions,"getTransitions"),Lt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));G.domains.set(n,{name:n,items:a})}},"setDomains"),Pt=s(t=>{t&&(G.transitions=t.filter(e=>e.from===e.to?(X.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),It=s(()=>K({...St.cynefin,...Q().cynefin}),"getConfig"),Nt=s(()=>{Bt(),G=mt()},"clear"),Y={getDomains:Mt,getTransitions:zt,setDomains:Lt,setTransitions:Pt,getConfig:It,clear:Nt,setAccTitle:kt,getAccTitle:Dt,setDiagramTitle:vt,getDiagramTitle:wt,getAccDescription:Ct,setAccDescription:bt},Ft=s(t=>{xt(t,Y),Y.setDomains(t.domains),Y.setTransitions(t.transitions)},"populate"),Rt={parse:s(async t=>{const e=await $t("cynefin",t);X.debug(e),Ft(e)},"parse")};function V(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}F(V,"seededRandom");s(V,"seededRandom");function Z(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}F(Z,"hashString");s(Z,"hashString");function J(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:Z(e)}F(J,"resolveSeed");s(J,"resolveSeed");function tt(t,e,n,a){const c=t/2,m=a??t*.015,v=7,R=e/v,d=[];for(let o=0;o<=v;o++){const p=V(n+o*17)*m*2-m;d.push({x:c+p,y:o*R})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.y+i.y)/2,b=o%2===0?1:-1,h=m*1.5*b*V(n+o*31+7),W=p.x+h,_=f,E=i.x-h;D+=` C${W},${_} ${E},${f} ${i.x},${i.y}`}return D}F(tt,"generateFoldPath");s(tt,"generateFoldPath");function et(t,e,n,a){const c=e/2,m=a??e*.015,v=7,R=t/v,d=[];for(let o=0;o<=v;o++){const p=V(n+o*23)*m*2-m;d.push({x:o*R,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.x+i.x)/2,b=o%2===0?1:-1,h=m*1.5*b*V(n+o*37+11),W=f,_=p.y+h,E=f,z=i.y-h;D+=` C${W},${_} ${E},${z} ${i.x},${i.y}`}return D}F(et,"generateHorizontalBoundary");s(et,"generateHorizontalBoundary");function nt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}F(nt,"generateCliffPath");s(nt,"generateCliffPath");function at(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}F(at,"generateConfusionPath");s(at,"generateConfusionPath");var dt={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Wt=s((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),_t=s(()=>{const t=ft(),e=Q();return K(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,Et=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),R=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=_t();X.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,W=o.boundaryAmplitude,_=i+b*2,E=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Tt(e);At(k,E,_,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${_} ${E}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),H=Wt(i,f),ot=J(o.seed,e),pt=T.append("g").attr("class","cynefin-backgrounds"),j=["complex","complicated","chaotic","clear"];for(const l of j){const r=H[l];pt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const U=T.append("g").attr("class","cynefin-boundaries");U.append("path").attr("class","cynefinBoundary").attr("d",tt(i,f,ot,W)).attr("fill","none"),U.append("path").attr("class","cynefinBoundary").attr("d",et(i,f,ot+100,W)).attr("fill","none"),U.append("path").attr("class","cynefinCliff").attr("d",nt(i,f)).attr("fill","none");const yt=i*.15,ut=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",at(i/2,f/2,yt,ut)).attr("fill",z.confusion).attr("fill-opacity",.5);const rt=T.append("g").attr("class","cynefin-labels");for(const l of j){const r=H[l];rt.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(rt.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of j){const u=H[r],y=dt[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(dt.confusion.practice)}const st=T.append("g").attr("class","cynefin-items"),A=26,it=10,ht=["complex","complicated","chaotic","clear","confusion"];for(const l of ht){const r=m.get(l);if(!r||r.items.length===0)continue;const u=H[l],y=l==="confusion";let L=r.items,P=0;y&&r.items.length>q&&(P=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const x=h?22:14;B=u.cy+x}else B=u.cy+(h?25:15);if([...L].forEach((x,S)=>{const C=B+S*(A+4),M=st.append("g"),I=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(x.label);let $=x.label.length*7;const g=I.node();if(g&&typeof g.getBBox=="function"){const O=g.getBBox();O.width>0&&($=O.width)}const w=$+it*2,N=u.cx-w/2;M.attr("transform",`translate(${N}, ${C})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",w).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),I.attr("x",w/2).attr("y",A/2)}),P>0){const x=B+L.length*(A+4),S=`+${P} more`,C=st.append("g"),M=C.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let I=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const N=$.getBBox();N.width>0&&(I=N.width)}const g=I+it*2,w=u.cx-g/2;C.attr("transform",`translate(${w}, ${x})`),C.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",g).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",g/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=H[y.from],P=H[y.to];if(!L||!P)return;if(y.from===y.to){X.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,x=L.cy,S=P.cx,C=P.cy,M=(B+S)/2,I=(x+C)/2,$=S-B,g=C-x,w=Math.sqrt($*$+g*g),N=w*.15,O=-g/w,gt=$/w,ct=M+O*N,lt=I+gt*N;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${x} Q${ct},${lt} ${S},${C}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",ct).attr("y",lt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}R&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(R)},"draw"),Ht={draw:Et},Vt=s(()=>{const t=ft(),e=Q();return K(t,e.themeVariables).cynefin},"getCynefinTheme"),Gt=s(()=>{const t=Vt();return`
2
2
  .cynefinDomain {
3
3
  stroke: none;
4
4
  }