@layers-app/editor 0.2.0 → 0.2.2-comments.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 (233) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +19 -8
  3. package/dist/index.js +11 -8
  4. package/dist/{layers.CTwL_3Cz.js → layers.0M7J0esZ.js} +6 -6
  5. package/dist/{layers.CIPEXJ_Z.js → layers.3NbRpYmD.js} +2 -2
  6. package/dist/{layers.DXz6eUMI.js → layers.4JzCVvMZ.js} +1 -1
  7. package/dist/layers.52famHy6.js +1 -0
  8. package/dist/{layers.DVOYRLqd.js → layers.5o5xs_By.js} +1 -1
  9. package/dist/{layers.CNHqdpb5.js → layers.6IyCjiVQ.js} +1 -1
  10. package/dist/{layers.wt0qnNWd.js → layers.9jp0zT5p.js} +9 -9
  11. package/dist/layers.A1Stbo-I.js +1 -0
  12. package/dist/{layers.DwIdSTnx.js → layers.B0knja9a.js} +1 -1
  13. package/dist/{layers.D-TocJgP.js → layers.B2FrKauq.js} +1 -1
  14. package/dist/layers.B3D4g2HH.js +1 -0
  15. package/dist/{layers.CJDFmwM6.js → layers.B3J_fZyl.js} +1 -1
  16. package/dist/{layers.Dd8DmCpU.js → layers.B4C0fRU9.js} +1 -1
  17. package/dist/{layers.D3uU6aTA.js → layers.B5BGtVMn.js} +1 -1
  18. package/dist/{layers.D0DwN9e2.js → layers.B5jCOQ-o.js} +1 -1
  19. package/dist/{layers.DStKHWvW.js → layers.B7OpbcpZ.js} +1 -1
  20. package/dist/{layers.BMwaDYYZ.js → layers.B877zVpl.js} +1 -1
  21. package/dist/{layers.B_tG84JI.js → layers.BAAo22Y5.js} +1 -1
  22. package/dist/{layers.Ddk469Dh.js → layers.BAIzR4fL.js} +1 -1
  23. package/dist/{layers.rze-LVSQ.js → layers.BBDEec2-.js} +3 -3
  24. package/dist/{layers.CwoIo7W8.js → layers.BBSSuOTj.js} +1 -1
  25. package/dist/{layers.BVMj1jxT.js → layers.BBwy8fSe.js} +1 -1
  26. package/dist/{layers.BvS5Wia8.js → layers.BCi6X66n.js} +3 -3
  27. package/dist/{layers.ClRou2HW.js → layers.BDdKUJAF.js} +1 -1
  28. package/dist/{layers.B1Se8OaH.js → layers.BE7tt6pj.js} +1 -1
  29. package/dist/{layers.B8vpQUjo.js → layers.BEAXs3XZ.js} +1 -1
  30. package/dist/{layers.CRqgQB8J.js → layers.BH7NG-CF.js} +3298 -3296
  31. package/dist/{layers.oAr0GPvq.js → layers.BHHRwG9-.js} +1 -1
  32. package/dist/{layers.3ncr24k-.js → layers.BHn7KE3K.js} +1 -1
  33. package/dist/{layers.BhzBGGFh.js → layers.BIpZCj8M.js} +4 -4
  34. package/dist/{layers.C22FTFEe.js → layers.BIwiFPwC.js} +1 -1
  35. package/dist/{layers.CI9cIkVg.js → layers.BKG94O1d.js} +1 -1
  36. package/dist/{layers.Dimd3uv_.js → layers.BPJTPNa5.js} +1 -1
  37. package/dist/layers.BQPhc6V8.js +207 -0
  38. package/dist/{layers.Bt2QXZPR.js → layers.BQqf-9pt.js} +6 -6
  39. package/dist/{layers.CSAG6lyD.js → layers.BRBfASmX.js} +1 -1
  40. package/dist/{layers.U3puEHYK.js → layers.BRbnbv5Q.js} +9 -9
  41. package/dist/layers.BT4kXyqc.js +7 -0
  42. package/dist/layers.BTONwVKZ.js +1 -0
  43. package/dist/{layers.IVSRrFHN.js → layers.BTdat35Q.js} +1 -1
  44. package/dist/{layers.CyhLcp6y.js → layers.BTupUEAy.js} +18 -18
  45. package/dist/{layers.Bh3cQUDo.js → layers.BUuzLIhn.js} +1 -1
  46. package/dist/{layers.CGpLdUiP.js → layers.BVCGdqMm.js} +2 -2
  47. package/dist/{layers.BrEysPok.js → layers.BWhvXwVU.js} +1 -1
  48. package/dist/{layers.4B2wOIR1.js → layers.BXs8FHo3.js} +1 -1
  49. package/dist/{layers.DgZOLgtm.js → layers.BXy4JdMT.js} +1 -1
  50. package/dist/{layers.v61VCm7Q.js → layers.BYLivd1X.js} +10 -10
  51. package/dist/layers.BY_Yl7bl.js +10 -0
  52. package/dist/{layers.DxK9eunI.js → layers.B_o0dZtI.js} +5 -5
  53. package/dist/{layers.O_QfH9Tw.js → layers.BbCfEXyj.js} +2 -2
  54. package/dist/{layers.BODaZCcU.js → layers.BgOa2ZQq.js} +1 -1
  55. package/dist/{layers.OwyTRmnO.js → layers.BiJ8hfRt.js} +2 -2
  56. package/dist/{layers.D1ZA3f6W.js → layers.Bj5NYX-j.js} +3 -3
  57. package/dist/{layers.BeoJyn39.js → layers.Bj_ndfrI.js} +1 -1
  58. package/dist/{layers.CqF4H_mD.js → layers.BkJp445q.js} +1 -1
  59. package/dist/{layers.Bg-rk-IY.js → layers.Bksb2QPF.js} +7 -7
  60. package/dist/{layers.Bu-x_OvJ.js → layers.BkzuRH1x.js} +1 -1
  61. package/dist/{layers.CvP8SKXD.js → layers.Bm_dXPkv.js} +1 -1
  62. package/dist/{layers.C8ovo18Q.js → layers.Bn8Vcr4Q.js} +1 -1
  63. package/dist/{layers.CLLE0XNM.js → layers.Bp7MmS3R.js} +9 -9
  64. package/dist/{layers.DvkFfQRh.js → layers.BpxpfiPq.js} +1 -1
  65. package/dist/{layers.7AsF2nNX.js → layers.BrMjcOHk.js} +1 -1
  66. package/dist/{layers.BmTC_qEU.js → layers.BsI9FWV9.js} +7 -7
  67. package/dist/{layers.C1IDSQaT.js → layers.BsUd5wPr.js} +1 -1
  68. package/dist/{layers.mp_9sP04.js → layers.Bt9pP_ty.js} +1 -1
  69. package/dist/{layers.COLyJ5LO.js → layers.BvgDNyWs.js} +3 -3
  70. package/dist/{layers.BbLvjR2J.js → layers.Bxn6DnFg.js} +1 -1
  71. package/dist/layers.Bz-WSBaO.js +6 -0
  72. package/dist/{layers.BxGdSKRP.js → layers.C-5qA4v3.js} +2 -2
  73. package/dist/{layers.SsYje0m0.js → layers.C-ywNW9b.js} +1 -1
  74. package/dist/{layers.D909hx91.js → layers.C0ZjQj3k.js} +4 -4
  75. package/dist/{layers.7H2WL17C.js → layers.C1GWZnVU.js} +1 -1
  76. package/dist/{layers.DBc1SfKV.js → layers.C1iaeY_H.js} +1 -1
  77. package/dist/{layers.BtZHGQ6E.js → layers.C1vp8FgL.js} +1 -1
  78. package/dist/{layers.D8x1H5iy.js → layers.C42BS73M.js} +1 -1
  79. package/dist/{layers.Bp4GA39y.js → layers.C6lulNcA.js} +1 -1
  80. package/dist/{layers.VCVkMi6g.js → layers.C7-qDVQK.js} +1 -1
  81. package/dist/{layers.CPqqkX8Z.js → layers.C8_lu5UH.js} +4 -4
  82. package/dist/{layers.CUS1mIbU.js → layers.CAG3b6Js.js} +1 -1
  83. package/dist/{layers.Cg7KtW25.js → layers.CAu-WZjA.js} +1 -1
  84. package/dist/{layers.CWpeLc0t.js → layers.CBoXLnDm.js} +1 -1
  85. package/dist/layers.CBtJbAdN.js +8 -0
  86. package/dist/{layers.Ct4uwlVm.js → layers.CDx2AjoG.js} +5 -5
  87. package/dist/{layers.COPquQl9.js → layers.CFPFCyEq.js} +1 -1
  88. package/dist/{layers.BtsKbOpT.js → layers.CFboD_IY.js} +1 -1
  89. package/dist/layers.CGq9yFyU.js +425 -0
  90. package/dist/{layers.Bs1Yuja3.js → layers.CJ1_gd8f.js} +5 -5
  91. package/dist/{layers.BBlxht-2.js → layers.CNQjoJj3.js} +8 -8
  92. package/dist/{layers.DgWiivNQ.js → layers.CQA6RMRE.js} +34 -34
  93. package/dist/{layers.B2Pkrdw1.js → layers.CRHBAv5w.js} +1 -1
  94. package/dist/{layers.B26_Cpa_.js → layers.CRINU-O3.js} +1 -1
  95. package/dist/{layers.DAdht3uC.js → layers.CS9Nkea7.js} +1 -1
  96. package/dist/{layers.vNQeOI7i.js → layers.CSiNXHaQ.js} +1 -1
  97. package/dist/{layers.CqMjEixm.js → layers.CUr2WRUP.js} +1 -1
  98. package/dist/{layers.CFNz078z.js → layers.CUrfPUm4.js} +3 -3
  99. package/dist/{layers.D2U6dFrQ.js → layers.CXdn1lVd.js} +1 -1
  100. package/dist/{layers.7PjUehxE.js → layers.CYgM6mK1.js} +1 -1
  101. package/dist/{layers.fwvLLyfC.js → layers.C_3Ngsj4.js} +3 -3
  102. package/dist/layers.Ca2jd3wL.js +7 -0
  103. package/dist/{layers.CI18gAPx.js → layers.Cbh0ZnrP.js} +1 -1
  104. package/dist/{layers.CwIlknpB.js → layers.CdXjevQs.js} +1 -1
  105. package/dist/{layers.BvuDBP9J.js → layers.CdY6V0Oy.js} +1 -1
  106. package/dist/{layers.DHSCEHR8.js → layers.CdhnEdML.js} +1 -1
  107. package/dist/{layers.BV8IclsW.js → layers.CeaPTZ2b.js} +10 -10
  108. package/dist/{layers.eyx0ycIx.js → layers.CgSJJlMg.js} +1 -1
  109. package/dist/{layers.BOuSIBai.js → layers.ChpdZ9rM.js} +1 -1
  110. package/dist/{layers.Ddq-N8Yz.js → layers.ClCdq2Hz.js} +1 -1
  111. package/dist/{layers.f6YInEN9.js → layers.CpeCGtbb.js} +1 -1
  112. package/dist/{layers.BWcGUFHK.js → layers.CphCthFH.js} +1 -1
  113. package/dist/{layers.D37Y-iXY.js → layers.Cr7II8m5.js} +1 -1
  114. package/dist/{layers.CN8r250h.js → layers.CrMTZb2r.js} +1 -1
  115. package/dist/{layers.DeMtErmI.js → layers.Ct4LHLoS.js} +1 -1
  116. package/dist/{layers.BxS3YGIg.js → layers.CuMp_mh8.js} +8 -8
  117. package/dist/{layers.YCPGkQIi.js → layers.Cv-reM2z.js} +1 -1
  118. package/dist/{layers.Cs8AaSS3.js → layers.CvEwZjXj.js} +1 -1
  119. package/dist/{layers.DRho07Me.js → layers.CwjkRMPg.js} +1 -1
  120. package/dist/{layers.D_VA8g4H.js → layers.CxOmTN2J.js} +4 -4
  121. package/dist/{layers.bGcD7F4_.js → layers.CzSReter.js} +1 -1
  122. package/dist/{layers.CZ8VwlJ4.js → layers.D0_qLxH6.js} +3 -3
  123. package/dist/{layers.DcfJoQ0g.js → layers.D0djfn8q.js} +1 -1
  124. package/dist/{layers.DpBckJG9.js → layers.D2-u1Bp8.js} +1 -1
  125. package/dist/layers.D5_1GVrU.js +135 -0
  126. package/dist/{layers.DrMkXfHK.js → layers.D68tk_f5.js} +1 -1
  127. package/dist/{layers.CU8oxKiy.js → layers.D6Dbhm1Q.js} +1 -1
  128. package/dist/{layers.BwoIBDJT.js → layers.D7W7Lzv2.js} +5 -5
  129. package/dist/{layers.BMC2kTTB.js → layers.D7cYd4Hg.js} +3 -3
  130. package/dist/layers.D9VnsxTY.js +61 -0
  131. package/dist/{layers.Bt8u_f-g.js → layers.DA9ck-MO.js} +1 -1
  132. package/dist/{layers.JP-lzz5f.js → layers.DBYXAcOz.js} +1 -1
  133. package/dist/{layers.CyziF_SQ.js → layers.DBdGkqWr.js} +1 -1
  134. package/dist/{layers.BahDi8Jq.js → layers.DCSgw3lU.js} +1 -1
  135. package/dist/layers.DGlHIN7U.js +7 -0
  136. package/dist/{layers.Dk0kd6-B.js → layers.DGuOiUst.js} +1 -1
  137. package/dist/{layers.CxtTQD6P.js → layers.DIIFfMQs.js} +1 -1
  138. package/dist/{layers.CEbG0GWT.js → layers.DJLtSeXY.js} +1 -1
  139. package/dist/{layers.D8h1OdVA.js → layers.DLvGOLBc.js} +6 -6
  140. package/dist/{layers.Bw0ntPL0.js → layers.DPAgpxzn.js} +1 -1
  141. package/dist/{layers.DpoYMK1j.js → layers.DQS5qUUh.js} +1 -1
  142. package/dist/{layers.BQKuAwQB.js → layers.DRVvzJa9.js} +1 -1
  143. package/dist/{layers.09-oE2J6.js → layers.DSKtAtTl.js} +1 -1
  144. package/dist/{layers.DCNkKcra.js → layers.DTdQRt9t.js} +149 -143
  145. package/dist/layers.DTmvTL9H.js +122 -0
  146. package/dist/{layers.GDyqPJjS.js → layers.DYdc5q0J.js} +1 -1
  147. package/dist/{layers.CWT_90sw.js → layers.DZPFx0xX.js} +1 -1
  148. package/dist/layers.D_Li__19.js +160 -0
  149. package/dist/{layers.3Ou02qfO.js → layers.DbD_Y_ur.js} +5 -5
  150. package/dist/{layers.umahO1ag.js → layers.DcwgCboS.js} +1 -1
  151. package/dist/{layers.BLDa5caG.js → layers.Dgr28Mjo.js} +39 -39
  152. package/dist/{layers.Cq0Ch5Iv.js → layers.DjqQyNcM.js} +1 -1
  153. package/dist/layers.Dkf_04sg.js +10 -0
  154. package/dist/{layers.CRBfbmxk.js → layers.DlgKQUU9.js} +3 -3
  155. package/dist/{layers.BfiIrqIN.js → layers.DmkbmBQ3.js} +1 -1
  156. package/dist/{layers.BeQ4Whpe.js → layers.DovN5XJl.js} +1 -1
  157. package/dist/{layers.C_TMBTwJ.js → layers.Dp3FZAKP.js} +2 -2
  158. package/dist/{layers.CC5jTanD.js → layers.DtiCgEn_.js} +1 -1
  159. package/dist/{layers.D_fROAHm.js → layers.Du2PAUpa.js} +1 -1
  160. package/dist/{layers._9mQNYpC.js → layers.Dv3Sj2XI.js} +7 -7
  161. package/dist/{layers.BFTIBVaT.js → layers.DvMcMgos.js} +1 -1
  162. package/dist/layers.DvSzVkXT.js +139 -0
  163. package/dist/{layers.DrqT2qdE.js → layers.DwEKp0yH.js} +1 -1
  164. package/dist/{layers.lqQ4_QwL.js → layers.DwuzMny7.js} +1 -1
  165. package/dist/{layers.CmawNzHJ.js → layers.DxBZufpm.js} +1 -1
  166. package/dist/{layers.CNLMZ-n8.js → layers.DxusXqVq.js} +1 -1
  167. package/dist/{layers.iWHM-07P.js → layers.E1ubE0D9.js} +1 -1
  168. package/dist/{layers.tv97TVVq.js → layers.Gt5A3tMM.js} +7 -7
  169. package/dist/{layers.D5zd0los.js → layers.IRBGlGYG.js} +1 -1
  170. package/dist/{layers.CV4vxTrW.js → layers.K-7Gu1_x.js} +5 -5
  171. package/dist/{layers.CJKF-1iy.js → layers.KyTKOuZZ.js} +1 -1
  172. package/dist/{layers.s5JSe8EA.js → layers.M3Cup58Z.js} +12699 -12803
  173. package/dist/{layers.fDF0XXNl.js → layers.O9WWSjoO.js} +1 -1
  174. package/dist/{layers.CTcZFAZr.js → layers.QL3fSP7B.js} +1 -1
  175. package/dist/{layers.BbArzt5V.js → layers.QRmGGEZZ.js} +1 -1
  176. package/dist/{layers.BZ8rMF0E.js → layers.U97Ybm7Q.js} +2 -2
  177. package/dist/{layers.CxfZ-PyC.js → layers.UrZHG-DO.js} +1 -1
  178. package/dist/{layers.TyARdHUj.js → layers.VyaHkISm.js} +4 -4
  179. package/dist/{layers.C1pkM2ng.js → layers.X4y99Y4I.js} +1 -1
  180. package/dist/{layers.BH9wqgDY.js → layers.ZGBCn3zX.js} +1 -1
  181. package/dist/{layers.dd9VpJ2j.js → layers.Zy6ZgZiH.js} +1 -1
  182. package/dist/{layers.C4ls7ISP.js → layers.bLwsNWeP.js} +1 -1
  183. package/dist/{layers.DCRFU33R.js → layers.bxNX0iN9.js} +1 -1
  184. package/dist/{layers.BRDVz-vO.js → layers.d447eF9q.js} +1 -1
  185. package/dist/{layers.CS2XhZuy.js → layers.eundvIZE.js} +1 -1
  186. package/dist/{layers.B5mng6BK.js → layers.ewrSfHKf.js} +3 -3
  187. package/dist/layers.g-h6ADvu.js +70 -0
  188. package/dist/{layers.B3BBy8oP.js → layers.gHBNg0oI.js} +1 -1
  189. package/dist/{layers.Dj1UIVrM.js → layers.i787zp_7.js} +1 -1
  190. package/dist/{layers.CQuzRJqP.js → layers.k0Lc9_Xo.js} +1 -1
  191. package/dist/{layers.D-kFJ8el.js → layers.kDNcRKyE.js} +1 -1
  192. package/dist/{layers.OucwMvYb.js → layers.kE1qMW6Q.js} +1 -1
  193. package/dist/{layers.DAjImaDP.js → layers.l5Ordh77.js} +1 -1
  194. package/dist/{layers.C6FjBgZG.js → layers.mpMlUsl6.js} +1 -1
  195. package/dist/{layers.STzdH4sy.js → layers.mwmV67vA.js} +1 -1
  196. package/dist/{layers.BWnw9UAM.js → layers.nlKwIrbC.js} +1 -1
  197. package/dist/{layers.BulWAmk4.js → layers.oZXMRiU0.js} +1 -1
  198. package/dist/{layers.CR64bkIJ.js → layers.pGa4_XI1.js} +1 -1
  199. package/dist/{layers.rOgZc7GK.js → layers.q6HEryYi.js} +1 -1
  200. package/dist/{layers.Cw-Ru6_X.js → layers.qApELtc-.js} +1 -1
  201. package/dist/{layers.BKC37Rv9.js → layers.sIRS0zFx.js} +3 -3
  202. package/dist/{layers.C94fZyIE.js → layers.sP0b2kja.js} +1 -1
  203. package/dist/{layers.BCkBAe54.js → layers.u6faImyM.js} +1 -1
  204. package/dist/{layers.Ky-Kjdnk.js → layers.uMXcx8OG.js} +4 -4
  205. package/dist/{layers.BjijCp-F.js → layers.v5s2UJIr.js} +1 -1
  206. package/dist/{layers.CTm23lwt.js → layers.vBtYP5Rd.js} +1 -1
  207. package/dist/{layers.DzuES31X.js → layers.vjG7fiQ8.js} +64 -64
  208. package/dist/layers.wNTDO5dE.js +1 -0
  209. package/dist/{layers.99biaYEX.js → layers.xC4COnMh.js} +1 -1
  210. package/dist/{layers.BUmiV0yN.js → layers.yF22BUXS.js} +1 -1
  211. package/dist/layers.zBjpqw4a.js +51 -0
  212. package/package.json +5 -5
  213. package/dist/layers.0GKOEfQX.js +0 -132
  214. package/dist/layers.0QUpYe8U.js +0 -7
  215. package/dist/layers.B7HljEnE.js +0 -1
  216. package/dist/layers.BGu81HI5.js +0 -139
  217. package/dist/layers.BW2Tio6y.js +0 -8
  218. package/dist/layers.BZxcnuyH.js +0 -1
  219. package/dist/layers.C6qpUDWv.js +0 -207
  220. package/dist/layers.C8qZUu8m.js +0 -7
  221. package/dist/layers.CLPJWTr_.js +0 -1
  222. package/dist/layers.CbKsKQXR.js +0 -10
  223. package/dist/layers.DCtPhtVd.js +0 -10
  224. package/dist/layers.DEzlOM_P.js +0 -1
  225. package/dist/layers.DIVgeM1q.js +0 -160
  226. package/dist/layers.DX3QVmN4.js +0 -6
  227. package/dist/layers.DftUTp1O.js +0 -122
  228. package/dist/layers.DjLVRmof.js +0 -7
  229. package/dist/layers.Ds95POLS.js +0 -1
  230. package/dist/layers.DxlYIAi2.js +0 -70
  231. package/dist/layers.eXGxDQC_.js +0 -425
  232. package/dist/layers.gWRZSm_f.js +0 -61
  233. package/dist/layers.zq4AFjsy.js +0 -51
@@ -0,0 +1,51 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./layers.DbD_Y_ur.js"),pt=require("./layers.9QK1wiQj.js");require("lodash-es");const _t=require("./layers.COAF7f8g.js");require("./layers.Dgr28Mjo.js");const gt=require("./layers.DvMcMgos.js"),Et=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function mt(t){return typeof t=="string"&&Et.test(t)}const M=[];for(let t=0;t<256;++t)M.push((t+256).toString(16).slice(1));function kt(t,e=0){return M[t[e+0]]+M[t[e+1]]+M[t[e+2]]+M[t[e+3]]+"-"+M[t[e+4]]+M[t[e+5]]+"-"+M[t[e+6]]+M[t[e+7]]+"-"+M[t[e+8]]+M[t[e+9]]+"-"+M[t[e+10]]+M[t[e+11]]+M[t[e+12]]+M[t[e+13]]+M[t[e+14]]+M[t[e+15]]}function xt(t){if(!mt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Ot(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}const Rt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",bt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Nt(t,e,r){function u(c,p,f,o){var h;if(typeof c=="string"&&(c=Ot(c)),typeof p=="string"&&(p=xt(p)),((h=p)===null||h===void 0?void 0:h.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let _=new Uint8Array(16+c.length);if(_.set(p),_.set(c,p.length),_=r(_),_[6]=_[6]&15|e,_[8]=_[8]&63|128,f){o=o||0;for(let m=0;m<16;++m)f[o+m]=_[m];return f}return kt(_)}try{u.name=t}catch{}return u.DNS=Rt,u.URL=bt,u}function Tt(t,e,r,u){switch(t){case 0:return e&r^~e&u;case 1:return e^r^u;case 2:return e&r^e&u^r&u;case 3:return e^r^u}}function et(t,e){return t<<e|t>>>32-e}function At(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const f=unescape(encodeURIComponent(t));t=[];for(let o=0;o<f.length;++o)t.push(f.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const u=t.length/4+2,c=Math.ceil(u/16),p=new Array(c);for(let f=0;f<c;++f){const o=new Uint32Array(16);for(let h=0;h<16;++h)o[h]=t[f*64+h*4]<<24|t[f*64+h*4+1]<<16|t[f*64+h*4+2]<<8|t[f*64+h*4+3];p[f]=o}p[c-1][14]=(t.length-1)*8/Math.pow(2,32),p[c-1][14]=Math.floor(p[c-1][14]),p[c-1][15]=(t.length-1)*8&4294967295;for(let f=0;f<c;++f){const o=new Uint32Array(80);for(let y=0;y<16;++y)o[y]=p[f][y];for(let y=16;y<80;++y)o[y]=et(o[y-3]^o[y-8]^o[y-14]^o[y-16],1);let h=r[0],_=r[1],m=r[2],k=r[3],O=r[4];for(let y=0;y<80;++y){const T=Math.floor(y/20),D=et(h,5)+Tt(T,_,m,k)+O+e[T]+o[y]>>>0;O=k,k=m,m=et(_,30)>>>0,_=h,h=D}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+O>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const Mt=Nt("v5",80,At);var rt=(function(){var t=function(w,n,a,l){for(a=a||{},l=w.length;l--;a[w[l]]=n);return a},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],c=[1,12],p=[1,13],f=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],k=[1,24],O=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],T=[1,34],D=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],P=[1,54],A=[1,53],S=[17,34,36,38],R={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(n,a,l,d,g,i,V){var s=i.length-1;switch(g){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:c,26:p,27:f,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:c,26:p,27:f,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:k,45:O}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(y,[2,19]),t(y,[2,20]),t(e,[2,4]),{11:29,27:f,28:o},{16:30,17:[1,31],29:32,30:33,34:T},{11:35,27:f,28:o},{40:36,46:[1,37],47:[1,38]},t(D,[2,34]),t(D,[2,35]),t(D,[2,36]),t(D,[2,37]),t(D,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:T},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:k,45:O},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:P,38:A}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:A}),t(W,[2,25]),t(S,[2,29]),t(W,[2,32]),t(S,[2,31]),{16:58,17:[1,59],29:32,30:33,34:T},t(W,[2,26]),{35:60,37:P},{17:[1,61]},t(e,[2,13]),t(S,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(n,a){if(a.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=a,l}},parse:function(n){var a=this,l=[0],d=[],g=[null],i=[],V=this.table,s="",X=0,nt=0,dt=2,at=1,ut=i.slice.call(arguments,1),N=Object.create(this.lexer),H={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(H.yy[j]=this.yy[j]);N.setInput(n,H.yy),H.yy.lexer=N,H.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var J=N.yylloc;i.push(J);var ft=N.options&&N.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(){var Z;return Z=d.pop()||N.lex()||at,typeof Z!="number"&&(Z instanceof Array&&(d=Z,Z=d.pop()),Z=a.symbols_[Z]||Z),Z}for(var I,z,v,$,K={},Q,Y,st,q;;){if(z=l[l.length-1],this.defaultActions[z]?v=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=yt()),v=V[z]&&V[z][I]),typeof v>"u"||!v.length||!v[0]){var tt="";q=[];for(Q in V[z])this.terminals_[Q]&&Q>dt&&q.push("'"+this.terminals_[Q]+"'");N.showPosition?tt="Parse error on line "+(X+1)+`:
2
+ `+N.showPosition()+`
3
+ Expecting `+q.join(", ")+", got '"+(this.terminals_[I]||I)+"'":tt="Parse error on line "+(X+1)+": Unexpected "+(I==at?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(tt,{text:N.match,token:this.terminals_[I]||I,line:N.yylineno,loc:J,expected:q})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(v[0]){case 1:l.push(I),g.push(N.yytext),i.push(N.yylloc),l.push(v[1]),I=null,nt=N.yyleng,s=N.yytext,X=N.yylineno,J=N.yylloc;break;case 2:if(Y=this.productions_[v[1]][1],K.$=g[g.length-Y],K._$={first_line:i[i.length-(Y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Y||1)].first_column,last_column:i[i.length-1].last_column},ft&&(K._$.range=[i[i.length-(Y||1)].range[0],i[i.length-1].range[1]]),$=this.performAction.apply(K,[s,nt,X,H.yy,v[1],g,i].concat(ut)),typeof $<"u")return $;Y&&(l=l.slice(0,-1*Y*2),g=g.slice(0,-1*Y),i=i.slice(0,-1*Y)),l.push(this.productions_[v[1]][0]),g.push(K.$),i.push(K._$),st=V[l[l.length-2]][l[l.length-1]],l.push(st);break;case 3:return!0}}return!0}},b=(function(){var w={EOF:1,parseError:function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},setInput:function(n,a){return this.yy=a||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var a=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
+ `+a+"^"},test_match:function(n,a){var l,d,g;if(this.options.backtrack_lexer&&(g={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(g.yylloc.range=this.yylloc.range.slice(0))),d=n[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var i in g)this[i]=g[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,a,l,d;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),i=0;i<g.length;i++)if(l=this._input.match(this.rules[g[i]]),l&&(!a||l[0].length>a[0].length)){if(a=l,d=i,this.options.backtrack_lexer){if(n=this.test_match(l,g[i]),n!==!1)return n;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(n=this.test_match(a,g[d]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(a,l,d,g){switch(d){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return l.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return l.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return w})();R.lexer=b;function L(){this.yy={}}return L.prototype=R,R.Parser=L,new L})();rt.parser=rt;const St=rt;let U={},it=[];const wt={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},It={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},lt=function(t,e=void 0){return U[t]===void 0?(U[t]={attributes:[],alias:e},E.log$1.info("Added new entity :",t)):U[t]&&!U[t].alias&&e&&(U[t].alias=e,E.log$1.info(`Add alias '${e}' to entity '${t}'`)),U[t]},Dt=()=>U,vt=function(t,e){let r=lt(t),u;for(u=e.length-1;u>=0;u--)r.attributes.push(e[u]),E.log$1.debug("Added attribute ",e[u].attributeName)},Lt=function(t,e,r,u){let c={entityA:t,roleA:e,entityB:r,relSpec:u};it.push(c),E.log$1.debug("Added new relationship :",c)},Bt=()=>it,Ct=function(){U={},it=[],E.clear()},Pt={Cardinality:wt,Identification:It,getConfig:()=>E.getConfig().er,addEntity:lt,addAttributes:vt,getEntities:Dt,addRelationship:Lt,getRelationships:Bt,clear:Ct,setAccTitle:E.setAccTitle,getAccTitle:E.getAccTitle,setAccDescription:E.setAccDescription,getAccDescription:E.getAccDescription,setDiagramTitle:E.setDiagramTitle,getDiagramTitle:E.getDiagramTitle},B={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},Yt=function(t,e){let r;t.append("defs").append("marker").attr("id",B.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",B.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",B.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",B.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",B.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",B.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},C={ERMarkers:B,insertMarkers:Yt},Zt=/[^\dA-Za-z](\W)*/g;let x={},G=new Map;const Ft=function(t){const e=Object.keys(t);for(const r of e)x[r]=t[r]},Wt=(t,e,r)=>{const u=x.entityPadding/3,c=x.entityPadding/3,p=x.fontSize*.85,f=e.node().getBBox(),o=[];let h=!1,_=!1,m=0,k=0,O=0,y=0,T=f.height+u*2,D=1;r.forEach(A=>{A.attributeKeyTypeList!==void 0&&A.attributeKeyTypeList.length>0&&(h=!0),A.attributeComment!==void 0&&(_=!0)}),r.forEach(A=>{const S=`${e.node().id}-attr-${D}`;let R=0;const b=E.parseGenericTypes(A.attributeType),L=t.append("text").classed("er entityLabel",!0).attr("id",`${S}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",p+"px").text(b),w=t.append("text").classed("er entityLabel",!0).attr("id",`${S}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",p+"px").text(A.attributeName),n={};n.tn=L,n.nn=w;const a=L.node().getBBox(),l=w.node().getBBox();if(m=Math.max(m,a.width),k=Math.max(k,l.width),R=Math.max(a.height,l.height),h){const d=A.attributeKeyTypeList!==void 0?A.attributeKeyTypeList.join(","):"",g=t.append("text").classed("er entityLabel",!0).attr("id",`${S}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",p+"px").text(d);n.kn=g;const i=g.node().getBBox();O=Math.max(O,i.width),R=Math.max(R,i.height)}if(_){const d=t.append("text").classed("er entityLabel",!0).attr("id",`${S}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",p+"px").text(A.attributeComment||"");n.cn=d;const g=d.node().getBBox();y=Math.max(y,g.width),R=Math.max(R,g.height)}n.height=R,o.push(n),T+=R+u*2,D+=1});let F=4;h&&(F+=2),_&&(F+=2);const W=m+k+O+y,P={width:Math.max(x.minEntityWidth,Math.max(f.width+x.entityPadding*2,W+c*F)),height:r.length>0?T:Math.max(x.minEntityHeight,f.height+x.entityPadding*2)};if(r.length>0){const A=Math.max(0,(P.width-W-c*F)/(F/2));e.attr("transform","translate("+P.width/2+","+(u+f.height/2)+")");let S=f.height+u*2,R="attributeBoxOdd";o.forEach(b=>{const L=S+u+b.height/2;b.tn.attr("transform","translate("+c+","+L+")");const w=t.insert("rect","#"+b.tn.node().id).classed(`er ${R}`,!0).attr("x",0).attr("y",S).attr("width",m+c*2+A).attr("height",b.height+u*2),n=parseFloat(w.attr("x"))+parseFloat(w.attr("width"));b.nn.attr("transform","translate("+(n+c)+","+L+")");const a=t.insert("rect","#"+b.nn.node().id).classed(`er ${R}`,!0).attr("x",n).attr("y",S).attr("width",k+c*2+A).attr("height",b.height+u*2);let l=parseFloat(a.attr("x"))+parseFloat(a.attr("width"));if(h){b.kn.attr("transform","translate("+(l+c)+","+L+")");const d=t.insert("rect","#"+b.kn.node().id).classed(`er ${R}`,!0).attr("x",l).attr("y",S).attr("width",O+c*2+A).attr("height",b.height+u*2);l=parseFloat(d.attr("x"))+parseFloat(d.attr("width"))}_&&(b.cn.attr("transform","translate("+(l+c)+","+L+")"),t.insert("rect","#"+b.cn.node().id).classed(`er ${R}`,"true").attr("x",l).attr("y",S).attr("width",y+c*2+A).attr("height",b.height+u*2)),S+=b.height+u*2,R=R==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else P.height=Math.max(x.minEntityHeight,T),e.attr("transform","translate("+P.width/2+","+P.height/2+")");return P},Ut=function(t,e,r){const u=Object.keys(e);let c;return u.forEach(function(p){const f=Xt(p,"entity");G.set(p,f);const o=t.append("g").attr("id",f);c=c===void 0?f:c;const h="text-"+f,_=o.append("text").classed("er entityLabel",!0).attr("id",h).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",E.getConfig().fontFamily).style("font-size",x.fontSize+"px").text(e[p].alias??p),{width:m,height:k}=Wt(o,_,e[p].attributes),y=o.insert("rect","#"+h).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",k).node().getBBox();r.setNode(f,{width:y.width,height:y.height,shape:"rect",id:f})}),c},Ht=function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},ht=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},zt=function(t,e){return t.forEach(function(r){e.setEdge(G.get(r.entityA),G.get(r.entityB),{relationship:r},ht(r))}),t};let ot=0;const Kt=function(t,e,r,u,c){ot++;const p=r.edge(G.get(e.entityA),G.get(e.entityB),ht(e)),f=gt.line().x(function(T){return T.x}).y(function(T){return T.y}).curve(E.curveBasis),o=t.insert("path","#"+u).classed("er relationshipLine",!0).attr("d",f(p.points)).style("stroke",x.stroke).style("fill","none");e.relSpec.relType===c.db.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");let h="";switch(x.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),e.relSpec.cardA){case c.db.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+h+"#"+C.ERMarkers.ZERO_OR_ONE_END+")");break;case c.db.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+h+"#"+C.ERMarkers.ZERO_OR_MORE_END+")");break;case c.db.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+h+"#"+C.ERMarkers.ONE_OR_MORE_END+")");break;case c.db.Cardinality.ONLY_ONE:o.attr("marker-end","url("+h+"#"+C.ERMarkers.ONLY_ONE_END+")");break;case c.db.Cardinality.MD_PARENT:o.attr("marker-end","url("+h+"#"+C.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case c.db.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+h+"#"+C.ERMarkers.ZERO_OR_ONE_START+")");break;case c.db.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+h+"#"+C.ERMarkers.ZERO_OR_MORE_START+")");break;case c.db.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+h+"#"+C.ERMarkers.ONE_OR_MORE_START+")");break;case c.db.Cardinality.ONLY_ONE:o.attr("marker-start","url("+h+"#"+C.ERMarkers.ONLY_ONE_START+")");break;case c.db.Cardinality.MD_PARENT:o.attr("marker-start","url("+h+"#"+C.ERMarkers.MD_PARENT_START+")");break}const _=o.node().getTotalLength(),m=o.node().getPointAtLength(_*.5),k="rel"+ot,y=t.append("text").classed("er relationshipLabel",!0).attr("id",k).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",E.getConfig().fontFamily).style("font-size",x.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+k).classed("er relationshipLabelBox",!0).attr("x",m.x-y.width/2).attr("y",m.y-y.height/2).attr("width",y.width).attr("height",y.height)},Vt=function(t,e,r,u){x=E.getConfig().er,E.log$1.info("Drawing ER diagram");const c=E.getConfig().securityLevel;let p;c==="sandbox"&&(p=E.select("#i"+e));const o=(c==="sandbox"?E.select(p.nodes()[0].contentDocument.body):E.select("body")).select(`[id='${e}']`);C.insertMarkers(o,x);let h;h=new pt.Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:x.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const _=Ut(o,u.db.getEntities(),h),m=zt(u.db.getRelationships(),h);_t.layout(h),Ht(o,h),m.forEach(function(D){Kt(o,D,h,_,u)});const k=x.diagramPadding;E.utils.insertTitle(o,"entityTitleText",x.titleTopMargin,u.db.getDiagramTitle());const O=o.node().getBBox(),y=O.width+k*2,T=O.height+k*2;E.configureSvgSize(o,T,y,x.useMaxWidth),o.attr("viewBox",`${O.x-k} ${O.y-k} ${y} ${T}`)},Gt="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function Xt(t="",e=""){const r=t.replace(Zt,"");return`${ct(e)}${ct(r)}${Mt(t,Gt)}`}function ct(t=""){return t.length>0?`${t}-`:""}const Qt={setConf:Ft,draw:Vt},qt=t=>`
7
+ .entityBox {
8
+ fill: ${t.mainBkg};
9
+ stroke: ${t.nodeBorder};
10
+ }
11
+
12
+ .attributeBoxOdd {
13
+ fill: ${t.attributeBackgroundColorOdd};
14
+ stroke: ${t.nodeBorder};
15
+ }
16
+
17
+ .attributeBoxEven {
18
+ fill: ${t.attributeBackgroundColorEven};
19
+ stroke: ${t.nodeBorder};
20
+ }
21
+
22
+ .relationshipLabelBox {
23
+ fill: ${t.tertiaryColor};
24
+ opacity: 0.7;
25
+ background-color: ${t.tertiaryColor};
26
+ rect {
27
+ opacity: 0.5;
28
+ }
29
+ }
30
+
31
+ .relationshipLine {
32
+ stroke: ${t.lineColor};
33
+ }
34
+
35
+ .entityTitleText {
36
+ text-anchor: middle;
37
+ font-size: 18px;
38
+ fill: ${t.textColor};
39
+ }
40
+ #MD_PARENT_START {
41
+ fill: #f5f5f5 !important;
42
+ stroke: ${t.lineColor} !important;
43
+ stroke-width: 1;
44
+ }
45
+ #MD_PARENT_END {
46
+ fill: #f5f5f5 !important;
47
+ stroke: ${t.lineColor} !important;
48
+ stroke-width: 1;
49
+ }
50
+
51
+ `,jt=qt,Jt={parser:St,db:Pt,renderer:Qt,styles:jt};exports.diagram=Jt;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@layers-app/editor",
3
3
  "private": false,
4
- "version": "0.2.0",
4
+ "version": "0.2.2-comments.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "VITE_LAYERS=true vite --mode full ",
@@ -72,12 +72,12 @@
72
72
  "eslint-plugin-react": "^7.37.4",
73
73
  "eslint-plugin-react-refresh": "^0.4.19",
74
74
  "eslint-plugin-unused-imports": "^4.1.4",
75
- "i18next": "^23.15.1",
75
+ "i18next": "^25.5.2",
76
76
  "lodash-es": "^4.17.21",
77
77
  "postcss-import": "^16.1.0",
78
78
  "postcss-preset-mantine": "^1.15.0",
79
79
  "prettier": "^3.4.2",
80
- "react-i18next": "^15.0.2",
80
+ "react-i18next": "^15.7.3",
81
81
  "rollup-plugin-typescript-paths": "^1.5.0",
82
82
  "rollup-plugin-visualizer": "^5.12.0",
83
83
  "sass": "^1.71.1",
@@ -114,11 +114,11 @@
114
114
  "@mantine/hooks": ">=7.17.2",
115
115
  "@mantine/modals": ">=7.17.2",
116
116
  "@tabler/icons-react": ">=3.7.0",
117
- "i18next": "^23.11.5",
117
+ "i18next": "^25.5.2",
118
118
  "lodash-es": ">=4.17.21",
119
119
  "react": "^18.3.1",
120
120
  "react-dom": "^18.3.1",
121
- "react-i18next": "^15.0.2",
121
+ "react-i18next": "^15.7.3",
122
122
  "zustand": ">=4.5.4"
123
123
  }
124
124
  }