@layers-app/editor 0.6.13 → 0.6.15

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 (213) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.js +2 -2
  3. package/dist/layers.0B5Um6i0.js +8 -0
  4. package/dist/{layers.BOw-V40_.js → layers.1uapSEaI.js} +1 -1
  5. package/dist/{layers.BguPFdKc.js → layers.2Pnh_tvu.js} +1 -1
  6. package/dist/{layers.2GsVqMxV.js → layers.5k6pjicb.js} +1 -1
  7. package/dist/{layers.DQ_fMQ12.js → layers.9MTwu7Tm.js} +1 -1
  8. package/dist/{layers.BBUafoLY.js → layers.A1_OrIIw.js} +1 -1
  9. package/dist/{layers.waZdk4Xg.js → layers.B--sGi9W.js} +1 -1
  10. package/dist/{layers.BsYKEdeN.js → layers.B-hacJtV.js} +1 -1
  11. package/dist/{layers.C48e-d6n.js → layers.B2TkIa4P.js} +1 -1
  12. package/dist/{layers.B2ouEojp.js → layers.B31GktoW.js} +1 -1
  13. package/dist/{layers.Ba5vRfet.js → layers.B4Jfh6PP.js} +1 -1
  14. package/dist/{layers.eQxFO82W.js → layers.B5qcDXlM.js} +1 -1
  15. package/dist/{layers.3h22FnJK.js → layers.B82DE9wn.js} +1 -1
  16. package/dist/{layers.B5SJELbG.js → layers.B8c4Sch3.js} +1 -1
  17. package/dist/{layers.Cf7keFDX.js → layers.BADhPR3W.js} +1 -1
  18. package/dist/{layers.LRK3d_Uy.js → layers.BBjV2aEH.js} +1 -1
  19. package/dist/{layers.58X9Ay3D.js → layers.BDktKIGe.js} +1 -1
  20. package/dist/{layers.lYf8pgor.js → layers.BDlW_Kw7.js} +1 -1
  21. package/dist/{layers.DpwGsxeg.js → layers.BE0o0PgO.js} +1 -1
  22. package/dist/{layers.Bl3hU3vV.js → layers.BEr4CZo6.js} +1 -1
  23. package/dist/{layers.DYiN6Uuj.js → layers.BGrgEeef.js} +1 -1
  24. package/dist/{layers.DSG8zV8Z.js → layers.BJh2g8VW.js} +3 -3
  25. package/dist/{layers.COxKVTro.js → layers.BKH0kvx8.js} +1 -1
  26. package/dist/{layers.DLacc_KB.js → layers.BMCdTziH.js} +1 -1
  27. package/dist/{layers.Cphbcj1S.js → layers.BPX5-8Y4.js} +1 -1
  28. package/dist/{layers.C5SHE67M.js → layers.BQe7eNGL.js} +1 -1
  29. package/dist/{layers.adoHkXji.js → layers.BS15P8aW.js} +1 -1
  30. package/dist/{layers.phhiaDvR.js → layers.BSEC3Dy6.js} +9512 -8853
  31. package/dist/{layers.BA6zhV4Q.js → layers.BTCuVOXl.js} +1 -1
  32. package/dist/{layers.C3goIWeF.js → layers.BTarTikj.js} +1 -1
  33. package/dist/{layers.DbBXWy6S.js → layers.BTyvrTz4.js} +1 -1
  34. package/dist/{layers.BKx8Vag9.js → layers.BUl-s2jv.js} +1 -1
  35. package/dist/{layers.BvW3lwpl.js → layers.BVuHi-qu.js} +1 -1
  36. package/dist/layers.BXbXl8Hh.js +6 -0
  37. package/dist/{layers.CQ0V1P15.js → layers.BXtbW1wu.js} +1 -1
  38. package/dist/{layers.BQbUF1ZO.js → layers.BYRl0hAV.js} +2 -2
  39. package/dist/{layers.CqogvOxy.js → layers.BYdtGfs1.js} +1 -1
  40. package/dist/{layers.DAmJHIUf.js → layers.B_pcNn0p.js} +1 -1
  41. package/dist/{layers.BfsAgcn5.js → layers.BcrWX_Di.js} +1 -1
  42. package/dist/{layers.DsYYfzp_.js → layers.BdtGgTwl.js} +1 -1
  43. package/dist/{layers.fNUjQflN.js → layers.BebySYmb.js} +16 -13
  44. package/dist/{layers.DOuxkh5l.js → layers.BgY74IEG.js} +4 -4
  45. package/dist/{layers.CJuANUx1.js → layers.Bh1fPGir.js} +3 -3
  46. package/dist/{layers.DkuyzJN0.js → layers.BjBuKbJb.js} +1 -1
  47. package/dist/{layers.4vZOJ2Sx.js → layers.BmX--QUu.js} +1 -1
  48. package/dist/{layers.Cps10yqt.js → layers.BmuwNCDp.js} +2 -2
  49. package/dist/{layers.Dk5AD3g-.js → layers.BpeyP0GU.js} +1 -1
  50. package/dist/{layers.B7PBDBUU.js → layers.Bpxo8916.js} +1 -1
  51. package/dist/{layers.DXRpSDjR.js → layers.BqYrAVYb.js} +1 -1
  52. package/dist/{layers.D5ogr6CW.js → layers.BraRHgvH.js} +1 -1
  53. package/dist/{layers.DX_yZiiY.js → layers.Bs7dYTtq.js} +1 -1
  54. package/dist/{layers.DbDEl3Vu.js → layers.BtT5LyCW.js} +1 -1
  55. package/dist/{layers.JvWf3dFe.js → layers.Btgo-_i0.js} +1 -1
  56. package/dist/{layers.BFCbCIjN.js → layers.BthYnTc7.js} +1 -1
  57. package/dist/{layers.C0BjLWyj.js → layers.BtuwG8ki.js} +1 -1
  58. package/dist/{layers.ru2r52hH.js → layers.Bu7Zpeb8.js} +1 -1
  59. package/dist/{layers.C7CqNjij.js → layers.BuUvMi21.js} +1 -1
  60. package/dist/{layers.CFfXXBDq.js → layers.Bud7OpsH.js} +1 -1
  61. package/dist/{layers.BQ9v_BWx.js → layers.BxuDW7w1.js} +1 -1
  62. package/dist/{layers.9PU3C99w.js → layers.Bz1SAa3T.js} +1 -1
  63. package/dist/{layers.BrTxJ6HK.js → layers.C0eTzTPq.js} +1 -1
  64. package/dist/{layers.DEZYG3QJ.js → layers.C3HhIqa8.js} +4 -4
  65. package/dist/{layers.Bbn4ftK4.js → layers.C3aMpfwR.js} +1 -1
  66. package/dist/{layers.Da5rBTsT.js → layers.C4KynzsY.js} +1 -1
  67. package/dist/{layers.HV_5zh9w.js → layers.C5Y3W1A8.js} +1 -1
  68. package/dist/{layers.Ujvm1nbM.js → layers.C65UyP4h.js} +1 -1
  69. package/dist/{layers.DEX0qkD3.js → layers.C6GgXF3b.js} +1 -1
  70. package/dist/{layers.OM4wbcZy.js → layers.C6VfbyHS.js} +1 -1
  71. package/dist/{layers.BpeIpfbm.js → layers.C79cTNgk.js} +1 -1
  72. package/dist/{layers.DQM-c9MV.js → layers.C8Hw2uPZ.js} +1 -1
  73. package/dist/{layers.aKCynmmw.js → layers.C8poDdkr.js} +1 -1
  74. package/dist/{layers.D1EsdHnR.js → layers.CAcbakTx.js} +1 -1
  75. package/dist/{layers.CKQazzwN.js → layers.CCLTRTEx.js} +3 -3
  76. package/dist/{layers.CastuBTG.js → layers.CCpBA7Np.js} +1 -1
  77. package/dist/{layers.B0Tbs3oO.js → layers.CDDlcrPJ.js} +1 -1
  78. package/dist/{layers.r33A_-_r.js → layers.CELztf-b.js} +5 -5
  79. package/dist/{layers.D3I98E4n.js → layers.CEd0opaQ.js} +1 -1
  80. package/dist/{layers.DG8kZ6CY.js → layers.CEspMaPO.js} +1 -1
  81. package/dist/layers.CFnwId7l.js +1 -0
  82. package/dist/{layers.D-Hg8Sg8.js → layers.CH1gxZNY.js} +1 -1
  83. package/dist/{layers.BA6DpE-p.js → layers.CIaPY7NH.js} +1 -1
  84. package/dist/{layers.SAKTkNJL.js → layers.CKr9Yp9z.js} +1 -1
  85. package/dist/{layers.Blb5PsSJ.js → layers.CLx2DtLX.js} +2 -2
  86. package/dist/{layers.DRgk3qbG.js → layers.CLxN8xpv.js} +1 -1
  87. package/dist/{layers.-zEvOn-J.js → layers.CMqXQN5X.js} +1 -1
  88. package/dist/{layers.BZB2MFLy.js → layers.CNBsrnJ_.js} +1 -1
  89. package/dist/{layers.bNXt9kbP.js → layers.COcR4xPF.js} +1 -1
  90. package/dist/{layers.DIk1pKyw.js → layers.CPoSOC4D.js} +1 -1
  91. package/dist/{layers.klzroBlW.js → layers.CR5QCc3x.js} +1 -1
  92. package/dist/{layers.Dfv-3LVv.js → layers.CSeOzbOC.js} +1 -1
  93. package/dist/{layers.uQIUnreM.js → layers.CUL54StG.js} +1 -1
  94. package/dist/{layers.xMeYKOjG.js → layers.CW5hoNFH.js} +1 -1
  95. package/dist/{layers.uYQtLKPB.js → layers.CY6KYFh2.js} +1 -1
  96. package/dist/{layers.UL2igmcu.js → layers.Ca-bJXEu.js} +1 -1
  97. package/dist/{layers.CFOMBsLt.js → layers.CaCl9Fj7.js} +1 -1
  98. package/dist/{layers.CcpF_5Rd.js → layers.CamjhFm6.js} +1 -1
  99. package/dist/{layers.ChqKKm0q.js → layers.Cb5MreNy.js} +1 -1
  100. package/dist/{layers.BzWNLHnu.js → layers.CcaN8G9V.js} +1 -1
  101. package/dist/{layers.BzJA-bZR.js → layers.Cee2K0cR.js} +1 -1
  102. package/dist/{layers.VvEjFIwJ.js → layers.CeoSDCo1.js} +1 -1
  103. package/dist/{layers.jj1FVQZB.js → layers.Cf0NWpec.js} +3 -3
  104. package/dist/{layers.CTKBi0Se.js → layers.Cg0MSTCA.js} +1 -1
  105. package/dist/{layers.Dt90LDKz.js → layers.Cg9saXIm.js} +1 -1
  106. package/dist/{layers.D5LMTvLN.js → layers.Cgr1wSDV.js} +1 -1
  107. package/dist/{layers.C_qyC8uc.js → layers.ChVHDPVd.js} +2 -2
  108. package/dist/{layers.C-mo0Ahn.js → layers.Chg8r3kc.js} +1 -1
  109. package/dist/{layers.B7w9uAuI.js → layers.CimXe7Xl.js} +3 -3
  110. package/dist/{layers.CieTsJaA.js → layers.Ckp9Ot6e.js} +1 -1
  111. package/dist/{layers.B4Pc9Z9Y.js → layers.CmF7k15J.js} +1 -1
  112. package/dist/{layers.CiGbEFTE.js → layers.Cm_soJ4W.js} +1 -1
  113. package/dist/{layers.BpUl2KdQ.js → layers.CmbVQA3k.js} +1 -1
  114. package/dist/{layers.D4gLnESb.js → layers.Cn-bhBGz.js} +27 -27
  115. package/dist/{layers.ou5yTLKh.js → layers.CoJGnqCW.js} +4 -4
  116. package/dist/{layers.Fp9MCc9Z.js → layers.CqFMhxzV.js} +4 -4
  117. package/dist/{layers.kG99vKK-.js → layers.CsfOKWda.js} +1 -1
  118. package/dist/{layers.CMbKdrm_.js → layers.Ctq540L-.js} +4 -4
  119. package/dist/{layers.BOPwFyv9.js → layers.CuJUCKtn.js} +1 -1
  120. package/dist/{layers.Nb3PR5AY.js → layers.CybDw1YB.js} +1 -1
  121. package/dist/{layers.BY78tCwC.js → layers.CzMwnOM_.js} +1 -1
  122. package/dist/{layers.CYuqG2xy.js → layers.D1DXLZsc.js} +1 -1
  123. package/dist/{layers.Bb9wCcQM.js → layers.D1etspwf.js} +7 -7
  124. package/dist/{layers.C6SQlZ1-.js → layers.D205P3LS.js} +1 -1
  125. package/dist/{layers.CXEXlMw2.js → layers.D2g0JE_b.js} +1 -1
  126. package/dist/{layers.L2lNP2Zn.js → layers.D3rEQFTw.js} +1 -1
  127. package/dist/{layers.CsA9eap8.js → layers.D4AR_Ggs.js} +1 -1
  128. package/dist/{layers.DjX2nAS2.js → layers.D70D3I7X.js} +1 -1
  129. package/dist/{layers.BGKz9uF9.js → layers.D8eMqDHB.js} +1 -1
  130. package/dist/{layers.CGRi_cBg.js → layers.DAUbMLEY.js} +1 -1
  131. package/dist/{layers.DfOj39MC.js → layers.DApDxCd3.js} +1 -1
  132. package/dist/{layers.BpJy6Y9J.js → layers.DAtk8I85.js} +1 -1
  133. package/dist/{layers.CSvRVfbB.js → layers.DCbJk8Gq.js} +1 -1
  134. package/dist/{layers.DceY1Zwa.js → layers.DD2TLN4U.js} +1 -1
  135. package/dist/{layers.3PTEbEuB.js → layers.DDvb9GKH.js} +1 -1
  136. package/dist/{layers.DcVJBh--.js → layers.DEAWinRY.js} +1 -1
  137. package/dist/{layers.DxZcftWj.js → layers.DEy2fOMd.js} +1 -1
  138. package/dist/{layers.DovUywuK.js → layers.DGlDqXix.js} +1 -1
  139. package/dist/{layers.DL_UI_80.js → layers.DHWf_pJC.js} +4 -4
  140. package/dist/{layers.CLwaU8Fp.js → layers.DHsOqrzp.js} +1 -1
  141. package/dist/{layers.BZPUBgfi.js → layers.DMZWUQ6D.js} +73 -71
  142. package/dist/{layers.q5liBO7D.js → layers.DOFB1xqR.js} +1 -1
  143. package/dist/{layers.JrHiScj1.js → layers.DRYrucob.js} +1 -1
  144. package/dist/layers.DSXqOrdM.js +1 -0
  145. package/dist/{layers.CInCF7eh.js → layers.DTXa-Ee6.js} +1 -1
  146. package/dist/{layers.C8bHsoOt.js → layers.DYH_22fU.js} +2 -2
  147. package/dist/{layers.CQ0bA2Ao.js → layers.DYuDz9uG.js} +1 -1
  148. package/dist/{layers.Bom4Xx5o.js → layers.D_5vwNq3.js} +1 -1
  149. package/dist/{layers.BrWh0vJP.js → layers.Da0mNyUP.js} +1 -1
  150. package/dist/{layers.--fNTPyt.js → layers.DajE570D.js} +4 -4
  151. package/dist/{layers.CAgKHzx0.js → layers.DcyZ_tJq.js} +1 -1
  152. package/dist/{layers.DxCBlcvV.js → layers.Df4-LBrQ.js} +1 -1
  153. package/dist/{layers.BkTV-8U9.js → layers.DhI3xm5Z.js} +1 -1
  154. package/dist/{layers.B9i5v3Qm.js → layers.Dhzy9lxd.js} +6 -6
  155. package/dist/{layers.Dyte1MlN.js → layers.DiWWDzX1.js} +3 -3
  156. package/dist/{layers.BzPtrBA_.js → layers.Dil4-O78.js} +1 -1
  157. package/dist/{layers.BYBqM4NF.js → layers.DmowMit3.js} +1 -1
  158. package/dist/{layers.BcqUko-F.js → layers.DnLXAE4L.js} +3 -3
  159. package/dist/{layers.DjxxYr9d.js → layers.DnpG-DTp.js} +1 -1
  160. package/dist/{layers.C1SmfZbm.js → layers.DpCOmgtC.js} +4 -4
  161. package/dist/{layers.BRIAZ8aI.js → layers.DpY5kFFw.js} +1 -1
  162. package/dist/{layers.DUNZVLtp.js → layers.DqdE3Sgo.js} +1 -1
  163. package/dist/{layers.CLMvsurn.js → layers.Dqi8H5L3.js} +624 -624
  164. package/dist/{layers.pFsfpbZ9.js → layers.DqvcLJ-h.js} +1 -1
  165. package/dist/{layers.B2Xh_Mwe.js → layers.DsUxc4Oh.js} +1 -1
  166. package/dist/{layers.oqSshS0h.js → layers.DtYKSZEK.js} +1 -1
  167. package/dist/{layers.raM3aULX.js → layers.DtZNKOHX.js} +1 -1
  168. package/dist/{layers.CSsTZ9AZ.js → layers.DxSBw-0m.js} +1 -1
  169. package/dist/{layers.CPB27tL5.js → layers.DyD79mmi.js} +1 -1
  170. package/dist/{layers.DirxpKon.js → layers.DzfoDF_c.js} +3 -3
  171. package/dist/{layers.Bp9CFZyK.js → layers.Dzoth2q2.js} +1 -1
  172. package/dist/{layers.CIDe4XL0.js → layers.GQWsfh7E.js} +1 -1
  173. package/dist/{layers.BIRV2G99.js → layers.GizkGP3d.js} +2 -2
  174. package/dist/{layers.Ujae2Rwz.js → layers.HHmOGUiE.js} +1 -1
  175. package/dist/{layers.CPvID4p2.js → layers.HVi1J3Ov.js} +4 -4
  176. package/dist/{layers.CFuJNBPP.js → layers.H_q5JhV5.js} +1 -1
  177. package/dist/{layers.cHTEv7fN.js → layers.I1_YtFlt.js} +1 -1
  178. package/dist/{layers.2YstwTuj.js → layers.Kr3zj_i-.js} +1 -1
  179. package/dist/{layers.DQkYeKB0.js → layers.LMF-qeEY.js} +1 -1
  180. package/dist/{layers.CKFZwH8U.js → layers.Mlj2a2Jo.js} +1 -1
  181. package/dist/{layers.B_yRlhaq.js → layers.N7gbUuRH.js} +1 -1
  182. package/dist/{layers.puTfOb6M.js → layers.NChxWSp1.js} +1 -1
  183. package/dist/{layers.B9g4wlbS.js → layers.NRW-4QnX.js} +1 -1
  184. package/dist/{layers.CHMT-Mkc.js → layers.O1noWJcp.js} +1 -1
  185. package/dist/{layers.NislGrak.js → layers.OdC0N-sC.js} +1 -1
  186. package/dist/{layers.B3dx2DmA.js → layers.PHNBFOLA.js} +5 -5
  187. package/dist/{layers.hweLqW3I.js → layers.R8mPlCA0.js} +7 -7
  188. package/dist/{layers.DaYK84VA.js → layers.ZKrSac2L.js} +1 -1
  189. package/dist/{layers.ByeN51Cp.js → layers.ZrwI2qD3.js} +1 -1
  190. package/dist/{layers.B-XAR24f.js → layers.awfBVQeR.js} +1 -1
  191. package/dist/{layers.C0Lgw_Sx.js → layers.b9B2NY7n.js} +337 -335
  192. package/dist/{layers.D-IheF1g.js → layers.fH9aPy-8.js} +1 -1
  193. package/dist/{layers.CAtdCdwO.js → layers.hGjQqNyu.js} +1 -1
  194. package/dist/{layers.DGKfSMOs.js → layers.jCWg1ufC.js} +1 -1
  195. package/dist/{layers.rzWyrrL0.js → layers.jUK49JPP.js} +1 -1
  196. package/dist/{layers.DyGao_0X.js → layers.lOmUACy8.js} +1 -1
  197. package/dist/{layers.BC4-Gpgk.js → layers.laAVITZF.js} +1 -1
  198. package/dist/{layers.Bm1HVSTc.js → layers.ma5Mo0kw.js} +1 -1
  199. package/dist/{layers.Dy5CfFMA.js → layers.mnvfZYHM.js} +3 -3
  200. package/dist/{layers.CqFMo0yN.js → layers.nEgBf5bq.js} +2 -2
  201. package/dist/{layers.eQgMht9e.js → layers.pdLAEyOm.js} +1 -1
  202. package/dist/{layers._mRdqsMT.js → layers.pkgUa9H6.js} +3 -3
  203. package/dist/{layers.CLDBrsiR.js → layers.qojoAaha.js} +1 -1
  204. package/dist/{layers.FODcdyQb.js → layers.s8TEdTw_.js} +1 -1
  205. package/dist/{layers.CoKd0wBy.js → layers.sSJmSRFh.js} +1 -1
  206. package/dist/{layers.Bfin8igF.js → layers.sZ-8V2qZ.js} +3 -3
  207. package/dist/{layers.DCJi8i23.js → layers.tXHwfJrj.js} +1 -1
  208. package/dist/{layers.370YN7s0.js → layers.vmU-WieC.js} +1 -1
  209. package/package.json +1 -1
  210. package/dist/layers.BbicsrhN.js +0 -1
  211. package/dist/layers.CXC7xyTU.js +0 -8
  212. package/dist/layers.DCrToDtm.js +0 -1
  213. package/dist/layers.IEUfoZd6.js +0 -6
@@ -1,4 +1,4 @@
1
- import "./layers.fNUjQflN.js";
1
+ import "./layers.BebySYmb.js";
2
2
  var e = { paste: "Senṭeḍ", pasteAsPlaintext: "", pasteCharts: "Senṭeḍ udlifen", selectAll: "Fren akk", multiSelect: "Rnu aferdis ɣer tefrayt", moveCanvas: "Smutti taɣzut n usuneɣ", cut: "Gzem", copy: "Nɣel", copyAsPng: "Nɣel ɣer tecfawit am PNG", copyAsSvg: "Nɣel ɣer tecfawit am SVG", copyText: "Nɣel ɣer tecfawit am uḍris", copySource: "", convertToCode: "", bringForward: "Awi ɣer sdat", sendToBack: "Awi s agilal", bringToFront: "Err ɣer deffir", sendBackward: "Awi ɣer deffir", delete: "Kkes", copyStyles: "Nɣel iɣunab", pasteStyles: "Senṭeḍ iɣunab", stroke: "Azizdew", background: "Agilal", fill: "Taččart", strokeWidth: "Tehri n yizirig", strokeStyle: "Aɣanib n tizirig", strokeStyle_solid: "Aččuran", strokeStyle_dashed: "S tjerriḍin", strokeStyle_dotted: "S tenqiḍin", sloppiness: "Astehzi", opacity: "Tiḍullest", textAlign: "Areyyec n uḍris", edges: "Leryuf", sharp: "Yemsed", round: "Imdewer", arrowheads: "Ixfawen n tenccabt", arrowhead_none: "Ulac", arrowhead_arrow: "Taneccabt", arrowhead_bar: "Afeggag", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "Akerdis", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "Tiddi n tsefsit", fontFamily: "Tawacult n tsefsiyin", addWatermark: 'Seddu "Yettwaxdem s Excalidraw"', handDrawn: "Asuneɣ s ufus", normal: "Amagnu", code: "Tangalt", small: "Meẓẓi", medium: "Alemmas", large: "Ameqran", veryLarge: "Meqqer aṭas", solid: "Aččuran", hachure: "Azerreg", zigzag: "", crossHatch: "Azerreg anmidag", thin: "Arqaq", bold: "Azuran", left: "Azelmaḍ", center: "Talemmast", right: "Ayfus", extraBold: "Azuran aṭas", architect: "Amasdag", artist: "Anaẓur", cartoonist: "Amefɣul", fileTitle: "Isem n ufaylu", colorPicker: "Amafran n yini", canvasColors: "Yettwaseqdec di teɣzut n usuneɣ", canvasBackground: "Agilal n teɣzut n usuneɣ", drawingCanvas: "Taɣzut n usuneɣ", layers: "Tissiyin", actions: "Tigawin", language: "Tutlayt", liveCollaboration: "Amɛiwen s srid...", duplicateSelection: "Sisleg", untitled: "War azwel", name: "Isem", yourName: "Isem-ik (im)", madeWithExcalidraw: "Yettwaxdem s Excalidraw", group: "Segrew tafrayt", ungroup: "Kkess asegrew i tefrayt", collaborators: "Imɛiwnen", showGrid: "Beqqeḍ aferrug", addToLibrary: "Rnu ɣer temkarḍit", removeFromLibrary: "Kkes si temkarḍit", libraryLoadingMessage: "Asali n temkarḍit…", libraries: "Snirem timkarḍiyin", loadingScene: "Asali n usayes…", align: "Reyyec", alignTop: "Areyyec uksawen", alignBottom: "Areyyec ukessar", alignLeft: "Reyyec s azelmaḍ", alignRight: "Areyyec s ayfus", centerVertically: "Di tlemmast s ibeddi", centerHorizontally: "Di tlemmast s uglawi", distributeHorizontally: "Freq s uglawi", distributeVertically: "Freq s yibeddi", flipHorizontal: "Tuttya taglawant", flipVertical: "Tuttya tubdidt", viewMode: "Askar n tmuɣli", share: "Bḍu", showStroke: "Beqqeḍ amelqaḍ n yini n yizirig", showBackground: "Beqqeḍ amelqaḍ n yini n ugilal", toggleTheme: "Snifel asentel", personalLib: "Tamkarḍit tudmawant", excalidrawLib: "Tamkarḍit n Excalidraw", decreaseFontSize: "Senqes tiddi n tsefsit", increaseFontSize: "Sali tiddi n tsefsit", unbindText: "Serreḥ iweḍris", bindText: "Arez aḍris s anagbar", createContainerFromText: "", link: { edit: "Ẓreg aseɣwen", editEmbed: "", create: "Snulfu-d aseɣwen", createEmbed: "", label: "Aseɣwen", labelEmbed: "", empty: "" }, lineEditor: { edit: "Ẓreg izirig", exit: "Ffeɣ seg umaẓrag n yizirig" }, elementLock: { lock: "Sekkeṛ", unlock: "Serreḥ", lockAll: "Sekkeṛ akk", unlockAll: "Serreḥ akk" }, statusPublished: "Yeffeɣ-d", sidebarLock: "Eǧǧ afeggag n yidis yeldi", selectAllElementsInFrame: "", removeAllElementsFromFrame: "", eyeDropper: "", textToDiagram: "", prompt: "" }, a = { noItems: "Ulac iferdisen yettwarnan yakan...", hint_emptyLibrary: "Fren aferdis di teɣzut nusuneɣ akken at-ternuḍ dagi, neɣ sbedd tamkarḍit seg usarsay azayez, ukessar-agi.", hint_emptyPrivateLibrary: "Fren aferdis di teɣzut nusuneɣ akken at-ternuḍ dagi." }, u = { clearReset: "Ales awennez n teɣzut n usuneɣ", exportJSON: "Sifeḍ afaylu", exportImage: "Sifeḍ tugna...", export: "Sekles di...", copyToClipboard: "Nɣel ɣer tecfawit", save: "Sekles deg ufaylu amiran", saveAs: "Sekles am", load: "Ldi", getShareableLink: "Awi-d aseɣwen n beṭṭu", close: "Mdel", selectLanguage: "Fren tutlayt", scrollBackToContent: "Uɣal s agbur", zoomIn: "Simɣur", zoomOut: "Simẓi", resetZoom: "Ales awennez n usemɣer", menu: "Umuɣ", done: "Ifukk", edit: "Ẓreg", undo: "Sefsex", redo: "Err-d", resetLibrary: "Ales awennez n temkarḍit", createNewRoom: "Snulfu-d taxxamt tamaynutt", fullScreen: "Agdil aččuran", darkMode: "Askar imsulles", lightMode: "Askar afaw", zenMode: "Askar Zen", objectsSnapMode: "", exitZenMode: "Ffeɣ seg uskar Zen", cancel: "Sefsex", clear: "Sfeḍ", remove: "Kkes", embed: "", publishLibrary: "Ẓreg", submit: "Azen", confirm: "Sentem", embeddableInteractionButton: "" }, t = { clearReset: "Ayagi ad isfeḍ akk taɣzut n usuneɣ. Tetḥeqqeḍ?", couldNotCreateShareableLink: "D awezɣi asnulfu n useɣwen n beṭṭu.", couldNotCreateShareableLinkTooBig: "D awezɣi asnulfu n useɣwen n beṭṭu. Asayes ɣezzif aṭas", couldNotLoadInvalidFile: "D awezɣi asali n ufaylu armeɣtu", importBackendFailed: "Takterḍ seg uɣawas n deffir ur teddi ara.", cannotExportEmptyCanvas: "D awezɣi asifeḍ n teɣzut n usuneɣ tilemt.", couldNotCopyToClipboard: "Ulamek anɣal ɣer tecfawit.", decryptFailed: "D awezɣi tukksa n uwgelhen i yisefka.", uploadedSecurly: "Asili yettwasɣelles s uwgelhen ixef s ixef, ayagi yebɣa ad d-yini belli aqeddac n Excalidraw akked medden ur zmiren ara ad ɣren agbur.", loadSceneOverridePrompt: "Asali n wunuɣ uffiɣ ad isemselsi agbur-inek (m) yellan. Tebɣiḍ ad tkemmeleḍ?", collabStopOverridePrompt: `Aḥbas n tɣimit ad yesefsex unuɣ-inek (m) yettwaḥerzen yakan s wudem adigan. Tetḥeqqeḍ?
3
3
  (Ma tebɣiḍ ad teǧǧeḍ unuɣ-inek (m) adigan, mdel iccer n yiminig, deg umḍiq.)`, errorAddingToLibrary: "Ulamek ara yettwarnu uferdis ɣer temkarḍit", errorRemovingFromLibrary: "Ulamek ara yettwakkes uferdis si temkarḍit", confirmAddLibrary: "Ayagi adirnu talɣa (win) {{numShapes}} ɣer temkarḍit-inek (m). Tetḥeqqeḍ?", imageDoesNotContainScene: "Tugna-agi tettban-d ur tesɛi ara isefka n usayes. Tesremdeḍ aseddu n usayes deg usifeḍ?", cannotRestoreFromImage: "Asayes ulamek ara d-yettwarr seg ufaylu-agi n tugna", invalidSceneUrl: "Ulamek taktert n usayes seg URL i d-ittunefken. Ahat mačči d tameɣtut neɣ ur tegbir ara isefka JSON n Excalidraw.", resetLibrary: "Ayagi ad isfeḍ tamkarḍit-inek•m. Tetḥeqqeḍ?", removeItemsFromsLibrary: "Ad tekkseḍ {{count}} n uferdis (en) si temkarḍit?", invalidEncryptionKey: "Tasarut n uwgelhen isefk ad tesɛu 22 n yiekkilen. Amɛiwen srid yensa.", collabOfflineWarning: `Ulac tuqqna n internet.
4
4
  Ibedilen-ik ur ttwaklasen ara!` }, i = { unsupportedFileType: "Anaw n ufaylu ur yettwasefrak ara.", imageInsertError: "D awezɣi tugra n tugna. Eɛreḍ tikkelt-nniḍen ardeqqal...", fileTooBig: "Afaylu meqqer aṭas. Tiddi tafellayt yurgen d {{maxSize}}.", svgImageInsertError: "D awezɣi tugra n tugna SVG. Acraḍ SVG yettban-d d armeɣtu.", failedToFetchImage: "", invalidSVGString: "SVG armeɣtu.", cannotResolveCollabServer: "Ulamek tuqqna s aqeddac n umyalel. Ma ulac uɣilif ales asali n usebter sakin eɛreḍ tikkelt-nniḍen.", importLibraryError: "Ur d-ssalay ara tamkarḍit", collabSaveFailed: "Ulamek asekles deg uzadur n yisefka deg ugilal. Ma ikemmel wugur, isefk ad teskelseḍ afaylu s wudem adigan akken ad tetḥeqqeḍ ur tesruḥuyeḍ ara amahil-inek•inem.", collabSaveFailed_sizeExceeded: "Ulamek asekles deg uzadur n yisefka deg ugilal, taɣzut n usuneɣ tettban-d temqer aṭas. Isefk ad teskelseḍ afaylu s wudem adigan akken ad tetḥeqqeḍ ur tesruḥuyeḍ ara amahil-inek•inem.", imageToolNotSupported: "", brave_measure_text_error: { line1: "", line2: "Ayagi yezmer ad d-iglu s truẓi n<bold>Iferdisen n uḍris</bold>deg wunuɣen-inek.", line3: "Ad k-nsemter ad tsexsiḍ aɣewwar-agi. Tzemreḍ ad tḍefreḍ<link>isurifen-agi</link> ɣef wamek ara txedmeḍ.", line4: "" }, libraryElementTypeError: { embeddable: "", iframe: "", image: "" }, asyncPasteFailedOnRead: "", asyncPasteFailedOnParse: "", copyToSystemClipboardFailed: "" }, n = { selection: "Tafrayt", image: "Ger tugna", rectangle: "Asrem", diamond: "Ameɣṛun", ellipse: "Taglayt", arrow: "Taneccabt", line: "Izirig", freedraw: "Suneɣ", text: "Aḍris", library: "Tamkarḍit", lock: "Eǧǧ afecku n tefrayt yermed mbaɛd asuneɣ", penMode: "Askar n yimru - gdel tanalit", link: "Rnu/leqqem aseɣwen i talɣa yettwafernen", eraser: "Sfeḍ", frame: "", magicframe: "", embeddable: "", laser: "", hand: "Afus (afecku n usmutti n tmuɣli)", extraTools: "", mermaidToExcalidraw: "", magicSettings: "" }, r = { canvasActions: "Tigawin n teɣzut n usuneɣ", selectedShapeActions: "Tigawin n talɣa yettwafernen", shapes: "Talɣiwin" }, s = { canvasPanning: "Akken ad tesmuttiḍ taɣzut n usuneɣ, ṭṭef ṛṛuda n umumed, neɣ seqdec afecku Afus", linearElement: "Ssit akken ad tebduḍ aṭas n tenqiḍin, zuɣer i yiwen n yizirig", freeDraw: "Ssit yerna zuɣer, serreḥ ticki tfukeḍ", text: "Tixidest: tzemreḍ daɣen ad ternuḍ aḍris s usiti snat n tikkal anida tebɣiḍ s ufecku n tefrayt", embeddable: "", text_selected: "Ssit snat n tikkal neɣ ssed taqeffalt Kcem akken ad tẓergeḍ aḍris", text_editing: "Ssit Escape neɣ CtrlOrCmd+ENTER akken ad tfakkeḍ asiẓreg", linearElementMulti: "Ssit ɣef tenqiḍt taneggarut neɣ ssed taqeffalt Escape neɣ taqeffalt Kcem akken ad tfakkeḍ", lockAngle: "Tzemreḍ ad tḥettmeḍ tiɣmert s tuṭṭfa n tqeffalt SHIFT", resize: `Tzemreḍ ad tḥettemeḍ assaɣ s tuṭṭfa n tqeffalt SHIFT mi ara tettbeddileḍ tiddi,
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as k, Fragment as W } from "react/jsx-runtime";
2
2
  import { useRef as M, useContext as O, useMemo as K, useEffect as F, useState as T, useCallback as y, Suspense as X } from "react";
3
- import { v as U, y as G, X as H, B as $, D as j, F as J, G as Q, j as V, o as Y, H as P, L as R, x as z, J as Z, w as A, k as q, M as ee, z as _, N as te, l as ne, O as ae, P as se, s as oe, Q as re, S as ie, T as le, V as ce, W as de, Y as ue, Z as fe } from "./layers.phhiaDvR.js";
3
+ import { v as U, y as G, X as H, B as $, D as j, F as J, G as Q, j as V, o as Y, H as P, L as R, x as z, J as Z, w as A, k as q, M as ee, z as _, N as te, l as ne, O as ae, P as se, s as oe, Q as re, S as ie, T as le, V as ce, W as de, Y as ue, Z as fe } from "./layers.BSEC3Dy6.js";
4
4
  import { TextInput as pe } from "@mantine/core";
5
5
  function ge({ initialEditor: e, children: l, initialNodes: a, initialTheme: h, skipCollabChecks: c, skipEditableListener: d }) {
6
6
  const r = M(!1), E = O(U);
@@ -1,8 +1,8 @@
1
- import { ab as Me, ac as Ye, ad as We, ae as _e, af as Ee, ag as ge, ah as Ue, ai as Ve, aj as we, ak as ne, al as ve, am as Q, an as Ge, ao as Xe, ap as He, aq as qe, ar as Ze, as as Je, at as Qe, W as ae, aa as $e, d as q, e as et, l as x, q as tt, j as st, g as De, _ as rt } from "./layers.CLMvsurn.js";
2
- import { i as it, c as nt, b as at, d as ot, a as Te, p as lt } from "./layers.Bfin8igF.js";
1
+ import { ab as Me, ac as Ye, ad as We, ae as _e, af as Ee, ag as ge, ah as Ue, ai as Ve, aj as we, ak as ne, al as ve, am as Q, an as Ge, ao as Xe, ap as He, aq as qe, ar as Ze, as as Je, at as Qe, W as ae, aa as $e, d as q, e as et, l as x, q as tt, j as st, g as De, _ as rt } from "./layers.Dqi8H5L3.js";
2
+ import { i as it, c as nt, b as at, d as ot, a as Te, p as lt } from "./layers.sZ-8V2qZ.js";
3
3
  import { G as ct } from "./layers.BJDrjORS.js";
4
- import "./layers.fNUjQflN.js";
5
- import { c as ut } from "./layers.BpeIpfbm.js";
4
+ import "./layers.BebySYmb.js";
5
+ import { c as ut } from "./layers.C79cTNgk.js";
6
6
  import { o as gt } from "./layers.b0h5ZBmD.js";
7
7
  import { s as dt } from "./layers.D7jGxypv.js";
8
8
  function ht(e, r) {
@@ -1 +1 @@
1
- "use strict";const P=require("lodash-es"),J=require("./layers.Cyzu9PKQ.js"),k=require("./layers.BLd2spTm.js"),u=require("./layers.CSvRVfbB.js"),i=require("./layers.D4gLnESb.js"),j=require("./layers.B7PBDBUU.js");function G(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=G(P);function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:F(e)};return m.isUndefined(e.graph())||(t.value=m.clone(e.graph())),t}function M(e){return m.map(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return m.isUndefined(n)||(s.value=n),m.isUndefined(r)||(s.parent=r),s})}function F(e){return m.map(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return m.isUndefined(t.name)||(r.name=t.name),m.isUndefined(n)||(r.value=n),r})}let a={},w={},p={};const q=()=>{w={},p={},a={}},X=(e,t)=>(i.log$1.trace("In isDescendant",t," ",e," = ",w[t].includes(e)),!!w[t].includes(e)),_=(e,t)=>(i.log$1.info("Descendants of ",t," is ",w[t]),i.log$1.info("Edge is ",e),e.v===t||e.w===t?!1:w[t]?w[t].includes(e.v)||X(e.v,t)||X(e.w,t)||w[t].includes(e.w):(i.log$1.debug("Tilt, ",t,",not in descendants"),!1)),B=(e,t,n,r)=>{i.log$1.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.log$1.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)B(o,t,n,r);else{const f=t.node(o);i.log$1.info("cp ",o," to ",r," with parent ",e),n.setNode(o,f),r!==t.parent(o)&&(i.log$1.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==r&&o!==e?(i.log$1.debug("Setting parent",o,e),n.setParent(o,e)):(i.log$1.info("In copy ",e,"root",r,"data",t.node(e),r),i.log$1.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==r,"node!==clusterId",o!==e));const g=t.edges(o);i.log$1.debug("Copying Edges",g),g.forEach(d=>{i.log$1.info("Edge",d);const h=t.edge(d.v,d.w,d.name);i.log$1.info("Edge data",h,r);try{_(d,r)?(i.log$1.info("Copying as ",d.v,d.w,h,d.name),n.setEdge(d.v,d.w,h,d.name),i.log$1.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.log$1.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",r," clusterId:",e)}catch($){i.log$1.error($)}})}i.log$1.debug("Removing node",o),t.removeNode(o)})},D=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)p[s]=e,r=[...r,...D(s,t)];return r},C=(e,t)=>{i.log$1.trace("Searching",e);const n=t.children(e);if(i.log$1.trace("Searching children of id ",e,n),n.length<1)return i.log$1.trace("This is a valid node",e),e;for(const r of n){const s=C(r,t);if(s)return i.log$1.trace("Found replacement for",e," => ",s),s}},S=e=>!a[e]||!a[e].externalConnections?e:a[e]?a[e].id:e,U=(e,t)=>{if(!e||t>10){i.log$1.debug("Opting out, no graph ");return}else i.log$1.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.log$1.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),w[n]=D(n,e),a[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.log$1.debug("Cluster identified",n,w),s.forEach(o=>{if(o.v!==n&&o.w!==n){const f=X(o.v,n),g=X(o.w,n);f^g&&(i.log$1.warn("Edge: ",o," leaves cluster ",n),i.log$1.warn("Descendants of XXX ",n,": ",w[n]),a[n].externalConnections=!0)}})):i.log$1.debug("Not a cluster ",n,w)});for(let n of Object.keys(a)){const r=a[n].id,s=e.parent(r);s!==n&&a[s]&&!a[s].externalConnections&&(a[n].id=s)}e.edges().forEach(function(n){const r=e.edge(n);i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(i.log$1.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a[n.v]," --- ",a[n.w]),a[n.v]&&a[n.w]&&a[n.v]===a[n.w]){i.log$1.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name);const f=n.w+"---"+n.v;e.setNode(f,{domId:f,id:f,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const g=structuredClone(r),d=structuredClone(r);g.label="",g.arrowTypeEnd="none",d.label="",g.fromCluster=n.v,d.toCluster=n.v,e.setEdge(s,f,g,n.name+"-cyclic-special"),e.setEdge(f,o,d,n.name+"-cyclic-special")}else if(a[n.v]||a[n.w]){if(i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){const f=e.parent(s);a[f].externalConnections=!0,r.fromCluster=n.v}if(o!==n.w){const f=e.parent(o);a[f].externalConnections=!0,r.toCluster=n.w}i.log$1.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,r,n.name)}}),i.log$1.warn("Adjusted Graph",x(e)),T(e,0),i.log$1.trace(a)},T=(e,t)=>{if(i.log$1.warn("extractor - ",t,x(e),e.children("D")),t>10){i.log$1.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const o=e.children(s);r=r||o.length>0}if(!r){i.log$1.debug("Done, no node has children",e.nodes());return}i.log$1.debug("Nodes = ",n,t);for(const s of n)if(i.log$1.debug("Extracting node",s,a,a[s]&&!a[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!a[s])i.log$1.debug("Not a cluster",s,t);else if(!a[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.log$1.warn("Cluster without external connections, without a parent and with children",s,t);let f=e.graph().rankdir==="TB"?"LR":"TB";a[s]&&a[s].clusterData&&a[s].clusterData.dir&&(f=a[s].clusterData.dir,i.log$1.warn("Fixing dir",a[s].clusterData.dir,f));const g=new k.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.log$1.warn("Old graph before copy",x(e)),B(s,e,g,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:a[s].clusterData,labelText:a[s].labelText,graph:g}),i.log$1.warn("New graph after copy node: (",s,")",x(g)),i.log$1.debug("Old graph after copy",x(e))}else i.log$1.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!a[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.log$1.debug(a);n=e.nodes(),i.log$1.warn("New list of nodes",n);for(const s of n){const o=e.node(s);i.log$1.warn(" Now next level",s,o),o.clusterNode&&T(o.graph,t+1)}},O=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),o=O(e,s);n=[...n,...o]}),n},A=e=>O(e,e.children()),H=(e,t)=>{i.log$1.info("Creating subgraph rect for ",t.id,t);const n=i.getConfig(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),s=r.insert("rect",":first-child"),o=i.evaluate(n.flowchart.htmlLabels),f=r.insert("g").attr("class","cluster-label"),g=t.labelType==="markdown"?j.createText(f,t.labelText,{style:t.labelStyle,useHtmlLabels:o}):f.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}const h=0*t.padding,$=h/2,y=t.width<=d.width+h?d.width+h:t.width;t.width<=d.width+h?t.diff=(d.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.log$1.trace("Data ",t,JSON.stringify(t)),s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-y/2).attr("y",t.y-t.height/2-$).attr("width",y).attr("height",t.height+h);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o?f.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2+N})`):f.attr("transform",`translate(${t.x}, ${t.y-t.height/2+N})`);const b=s.node().getBBox();return t.width=b.width,t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},V=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.intersect=function(g){return u.intersectRect$1(t,g)},n},z=(e,t)=>{const n=i.getConfig(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),s=r.insert("rect",":first-child"),o=r.insert("g").attr("class","cluster-label"),f=r.append("rect"),g=o.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}d=g.getBBox();const h=0*t.padding,$=h/2,y=t.width<=d.width+t.padding?d.width+t.padding:t.width;t.width<=d.width+t.padding?t.diff=(d.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,s.attr("class","outer").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$).attr("width",y+h).attr("height",t.height+h),f.attr("class","inner").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$+d.height-1).attr("width",y+h).attr("height",t.height+h-d.height-3);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2-t.padding/3+(i.evaluate(n.flowchart.htmlLabels)?5:3)+N})`);const b=s.node().getBBox();return t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},W=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.diff=-t.padding/2,t.intersect=function(g){return u.intersectRect$1(t,g)},n},K={rect:H,roundedWithTitle:z,noteGroup:V,divider:W};let R={};const Q=(e,t)=>{i.log$1.trace("Inserting cluster");const n=t.shape||"rect";R[t.id]=K[n](e,t)},Y=()=>{R={}},L=async(e,t,n,r,s,o)=>{i.log$1.info("Graph in recursive render: XXX",x(t),s);const f=t.graph().rankdir;i.log$1.trace("Dir in recursive render - dir:",f);const g=e.insert("g").attr("class","root");t.nodes()?i.log$1.info("Recursive render XXX",t.nodes()):i.log$1.info("No nodes found for",t),t.edges().length>0&&i.log$1.trace("Recursive edges",t.edge(t.edges()[0]));const d=g.insert("g").attr("class","clusters"),h=g.insert("g").attr("class","edgePaths"),$=g.insert("g").attr("class","edgeLabels"),y=g.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(l){const c=t.node(l);if(s!==void 0){const v=JSON.parse(JSON.stringify(s.clusterData));i.log$1.info("Setting data for cluster XXX (",l,") ",v,s),t.setNode(s.id,v),t.parent(l)||(i.log$1.trace("Setting parent",l,s.id),t.setParent(l,s.id,v))}if(i.log$1.info("(Insert) Node XXX"+l+": "+JSON.stringify(t.node(l))),c&&c.clusterNode){i.log$1.info("Cluster identified",l,c.width,t.node(l));const v=await L(y,c.graph,n,r,t.node(l),o),E=v.elem;u.updateNodeBounds(c,E),c.diff=v.diff||0,i.log$1.info("Node bounds (abc123)",l,c,c.width,c.x,c.y),u.setNodeElem(E,c),i.log$1.warn("Recursive render complete ",E,c)}else t.children(l).length>0?(i.log$1.info("Cluster - the non recursive path XXX",l,c.id,c,t),i.log$1.info(C(c.id,t)),a[c.id]={id:C(c.id,t),node:c}):(i.log$1.info("Node - the non recursive path",l,c.id,c),await u.insertNode(y,t.node(l),f))})),t.edges().forEach(function(l){const c=t.edge(l.v,l.w,l.name);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l)),i.log$1.info("Edge "+l.v+" -> "+l.w+": ",l," ",JSON.stringify(t.edge(l))),i.log$1.info("Fix",a,"ids:",l.v,l.w,"Translating: ",a[l.v],a[l.w]),u.insertEdgeLabel($,c)}),t.edges().forEach(function(l){i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l))}),i.log$1.info("#############################################"),i.log$1.info("### Layout ###"),i.log$1.info("#############################################"),i.log$1.info(t),J.layout(t),i.log$1.info("Graph after layout:",x(t));let N=0;const{subGraphTitleTotalMargin:b}=u.getSubGraphTitleMargins(o);return A(t).forEach(function(l){const c=t.node(l);i.log$1.info("Position "+l+": "+JSON.stringify(t.node(l))),i.log$1.info("Position "+l+": ("+c.x,","+c.y,") width: ",c.width," height: ",c.height),c&&c.clusterNode?(c.y+=b,u.positionNode(c)):t.children(l).length>0?(c.height+=b,Q(d,c),a[c.id].node=c):(c.y+=b/2,u.positionNode(c))}),t.edges().forEach(function(l){const c=t.edge(l);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(c),c),c.points.forEach(E=>E.y+=b/2);const v=u.insertEdge(h,l,c,a,n,t,r);u.positionEdgeLabel(c,v)}),t.nodes().forEach(function(l){const c=t.node(l);i.log$1.info(l,c.type,c.diff),c.type==="group"&&(N=c.diff)}),{elem:g,diff:N}},Z=async(e,t,n,r,s)=>{u.insertMarkers$1(e,n,r,s),u.clear$1(),u.clear(),Y(),q(),i.log$1.warn("Graph at first:",JSON.stringify(x(t))),U(t),i.log$1.warn("Graph after:",JSON.stringify(x(t)));const o=i.getConfig();await L(e,t,r,s,void 0,o)};exports.render=Z;
1
+ "use strict";const P=require("lodash-es"),J=require("./layers.Cyzu9PKQ.js"),k=require("./layers.BLd2spTm.js"),u=require("./layers.DCbJk8Gq.js"),i=require("./layers.Cn-bhBGz.js"),j=require("./layers.Bpxo8916.js");function G(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=G(P);function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:F(e)};return m.isUndefined(e.graph())||(t.value=m.clone(e.graph())),t}function M(e){return m.map(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return m.isUndefined(n)||(s.value=n),m.isUndefined(r)||(s.parent=r),s})}function F(e){return m.map(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return m.isUndefined(t.name)||(r.name=t.name),m.isUndefined(n)||(r.value=n),r})}let a={},w={},p={};const q=()=>{w={},p={},a={}},X=(e,t)=>(i.log$1.trace("In isDescendant",t," ",e," = ",w[t].includes(e)),!!w[t].includes(e)),_=(e,t)=>(i.log$1.info("Descendants of ",t," is ",w[t]),i.log$1.info("Edge is ",e),e.v===t||e.w===t?!1:w[t]?w[t].includes(e.v)||X(e.v,t)||X(e.w,t)||w[t].includes(e.w):(i.log$1.debug("Tilt, ",t,",not in descendants"),!1)),B=(e,t,n,r)=>{i.log$1.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.log$1.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)B(o,t,n,r);else{const f=t.node(o);i.log$1.info("cp ",o," to ",r," with parent ",e),n.setNode(o,f),r!==t.parent(o)&&(i.log$1.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==r&&o!==e?(i.log$1.debug("Setting parent",o,e),n.setParent(o,e)):(i.log$1.info("In copy ",e,"root",r,"data",t.node(e),r),i.log$1.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==r,"node!==clusterId",o!==e));const g=t.edges(o);i.log$1.debug("Copying Edges",g),g.forEach(d=>{i.log$1.info("Edge",d);const h=t.edge(d.v,d.w,d.name);i.log$1.info("Edge data",h,r);try{_(d,r)?(i.log$1.info("Copying as ",d.v,d.w,h,d.name),n.setEdge(d.v,d.w,h,d.name),i.log$1.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.log$1.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",r," clusterId:",e)}catch($){i.log$1.error($)}})}i.log$1.debug("Removing node",o),t.removeNode(o)})},D=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)p[s]=e,r=[...r,...D(s,t)];return r},C=(e,t)=>{i.log$1.trace("Searching",e);const n=t.children(e);if(i.log$1.trace("Searching children of id ",e,n),n.length<1)return i.log$1.trace("This is a valid node",e),e;for(const r of n){const s=C(r,t);if(s)return i.log$1.trace("Found replacement for",e," => ",s),s}},S=e=>!a[e]||!a[e].externalConnections?e:a[e]?a[e].id:e,U=(e,t)=>{if(!e||t>10){i.log$1.debug("Opting out, no graph ");return}else i.log$1.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.log$1.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),w[n]=D(n,e),a[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.log$1.debug("Cluster identified",n,w),s.forEach(o=>{if(o.v!==n&&o.w!==n){const f=X(o.v,n),g=X(o.w,n);f^g&&(i.log$1.warn("Edge: ",o," leaves cluster ",n),i.log$1.warn("Descendants of XXX ",n,": ",w[n]),a[n].externalConnections=!0)}})):i.log$1.debug("Not a cluster ",n,w)});for(let n of Object.keys(a)){const r=a[n].id,s=e.parent(r);s!==n&&a[s]&&!a[s].externalConnections&&(a[n].id=s)}e.edges().forEach(function(n){const r=e.edge(n);i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(i.log$1.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a[n.v]," --- ",a[n.w]),a[n.v]&&a[n.w]&&a[n.v]===a[n.w]){i.log$1.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name);const f=n.w+"---"+n.v;e.setNode(f,{domId:f,id:f,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const g=structuredClone(r),d=structuredClone(r);g.label="",g.arrowTypeEnd="none",d.label="",g.fromCluster=n.v,d.toCluster=n.v,e.setEdge(s,f,g,n.name+"-cyclic-special"),e.setEdge(f,o,d,n.name+"-cyclic-special")}else if(a[n.v]||a[n.w]){if(i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){const f=e.parent(s);a[f].externalConnections=!0,r.fromCluster=n.v}if(o!==n.w){const f=e.parent(o);a[f].externalConnections=!0,r.toCluster=n.w}i.log$1.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,r,n.name)}}),i.log$1.warn("Adjusted Graph",x(e)),T(e,0),i.log$1.trace(a)},T=(e,t)=>{if(i.log$1.warn("extractor - ",t,x(e),e.children("D")),t>10){i.log$1.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const o=e.children(s);r=r||o.length>0}if(!r){i.log$1.debug("Done, no node has children",e.nodes());return}i.log$1.debug("Nodes = ",n,t);for(const s of n)if(i.log$1.debug("Extracting node",s,a,a[s]&&!a[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!a[s])i.log$1.debug("Not a cluster",s,t);else if(!a[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.log$1.warn("Cluster without external connections, without a parent and with children",s,t);let f=e.graph().rankdir==="TB"?"LR":"TB";a[s]&&a[s].clusterData&&a[s].clusterData.dir&&(f=a[s].clusterData.dir,i.log$1.warn("Fixing dir",a[s].clusterData.dir,f));const g=new k.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.log$1.warn("Old graph before copy",x(e)),B(s,e,g,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:a[s].clusterData,labelText:a[s].labelText,graph:g}),i.log$1.warn("New graph after copy node: (",s,")",x(g)),i.log$1.debug("Old graph after copy",x(e))}else i.log$1.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!a[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.log$1.debug(a);n=e.nodes(),i.log$1.warn("New list of nodes",n);for(const s of n){const o=e.node(s);i.log$1.warn(" Now next level",s,o),o.clusterNode&&T(o.graph,t+1)}},O=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),o=O(e,s);n=[...n,...o]}),n},A=e=>O(e,e.children()),H=(e,t)=>{i.log$1.info("Creating subgraph rect for ",t.id,t);const n=i.getConfig(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),s=r.insert("rect",":first-child"),o=i.evaluate(n.flowchart.htmlLabels),f=r.insert("g").attr("class","cluster-label"),g=t.labelType==="markdown"?j.createText(f,t.labelText,{style:t.labelStyle,useHtmlLabels:o}):f.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}const h=0*t.padding,$=h/2,y=t.width<=d.width+h?d.width+h:t.width;t.width<=d.width+h?t.diff=(d.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.log$1.trace("Data ",t,JSON.stringify(t)),s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-y/2).attr("y",t.y-t.height/2-$).attr("width",y).attr("height",t.height+h);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o?f.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2+N})`):f.attr("transform",`translate(${t.x}, ${t.y-t.height/2+N})`);const b=s.node().getBBox();return t.width=b.width,t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},V=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.intersect=function(g){return u.intersectRect$1(t,g)},n},z=(e,t)=>{const n=i.getConfig(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),s=r.insert("rect",":first-child"),o=r.insert("g").attr("class","cluster-label"),f=r.append("rect"),g=o.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}d=g.getBBox();const h=0*t.padding,$=h/2,y=t.width<=d.width+t.padding?d.width+t.padding:t.width;t.width<=d.width+t.padding?t.diff=(d.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,s.attr("class","outer").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$).attr("width",y+h).attr("height",t.height+h),f.attr("class","inner").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$+d.height-1).attr("width",y+h).attr("height",t.height+h-d.height-3);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2-t.padding/3+(i.evaluate(n.flowchart.htmlLabels)?5:3)+N})`);const b=s.node().getBBox();return t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},W=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.diff=-t.padding/2,t.intersect=function(g){return u.intersectRect$1(t,g)},n},K={rect:H,roundedWithTitle:z,noteGroup:V,divider:W};let R={};const Q=(e,t)=>{i.log$1.trace("Inserting cluster");const n=t.shape||"rect";R[t.id]=K[n](e,t)},Y=()=>{R={}},L=async(e,t,n,r,s,o)=>{i.log$1.info("Graph in recursive render: XXX",x(t),s);const f=t.graph().rankdir;i.log$1.trace("Dir in recursive render - dir:",f);const g=e.insert("g").attr("class","root");t.nodes()?i.log$1.info("Recursive render XXX",t.nodes()):i.log$1.info("No nodes found for",t),t.edges().length>0&&i.log$1.trace("Recursive edges",t.edge(t.edges()[0]));const d=g.insert("g").attr("class","clusters"),h=g.insert("g").attr("class","edgePaths"),$=g.insert("g").attr("class","edgeLabels"),y=g.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(l){const c=t.node(l);if(s!==void 0){const v=JSON.parse(JSON.stringify(s.clusterData));i.log$1.info("Setting data for cluster XXX (",l,") ",v,s),t.setNode(s.id,v),t.parent(l)||(i.log$1.trace("Setting parent",l,s.id),t.setParent(l,s.id,v))}if(i.log$1.info("(Insert) Node XXX"+l+": "+JSON.stringify(t.node(l))),c&&c.clusterNode){i.log$1.info("Cluster identified",l,c.width,t.node(l));const v=await L(y,c.graph,n,r,t.node(l),o),E=v.elem;u.updateNodeBounds(c,E),c.diff=v.diff||0,i.log$1.info("Node bounds (abc123)",l,c,c.width,c.x,c.y),u.setNodeElem(E,c),i.log$1.warn("Recursive render complete ",E,c)}else t.children(l).length>0?(i.log$1.info("Cluster - the non recursive path XXX",l,c.id,c,t),i.log$1.info(C(c.id,t)),a[c.id]={id:C(c.id,t),node:c}):(i.log$1.info("Node - the non recursive path",l,c.id,c),await u.insertNode(y,t.node(l),f))})),t.edges().forEach(function(l){const c=t.edge(l.v,l.w,l.name);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l)),i.log$1.info("Edge "+l.v+" -> "+l.w+": ",l," ",JSON.stringify(t.edge(l))),i.log$1.info("Fix",a,"ids:",l.v,l.w,"Translating: ",a[l.v],a[l.w]),u.insertEdgeLabel($,c)}),t.edges().forEach(function(l){i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l))}),i.log$1.info("#############################################"),i.log$1.info("### Layout ###"),i.log$1.info("#############################################"),i.log$1.info(t),J.layout(t),i.log$1.info("Graph after layout:",x(t));let N=0;const{subGraphTitleTotalMargin:b}=u.getSubGraphTitleMargins(o);return A(t).forEach(function(l){const c=t.node(l);i.log$1.info("Position "+l+": "+JSON.stringify(t.node(l))),i.log$1.info("Position "+l+": ("+c.x,","+c.y,") width: ",c.width," height: ",c.height),c&&c.clusterNode?(c.y+=b,u.positionNode(c)):t.children(l).length>0?(c.height+=b,Q(d,c),a[c.id].node=c):(c.y+=b/2,u.positionNode(c))}),t.edges().forEach(function(l){const c=t.edge(l);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(c),c),c.points.forEach(E=>E.y+=b/2);const v=u.insertEdge(h,l,c,a,n,t,r);u.positionEdgeLabel(c,v)}),t.nodes().forEach(function(l){const c=t.node(l);i.log$1.info(l,c.type,c.diff),c.type==="group"&&(N=c.diff)}),{elem:g,diff:N}},Z=async(e,t,n,r,s)=>{u.insertMarkers$1(e,n,r,s),u.clear$1(),u.clear(),Y(),q(),i.log$1.warn("Graph at first:",JSON.stringify(x(t))),U(t),i.log$1.warn("Graph after:",JSON.stringify(x(t)));const o=i.getConfig();await L(e,t,r,s,void 0,o)};exports.render=Z;