@layers-app/editor 0.4.0 → 0.4.1-progress-bar.2

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 (217) hide show
  1. package/README.md +215 -1
  2. package/dist/index.cjs +2 -2
  3. package/dist/index.d.ts +3 -2
  4. package/dist/index.js +2 -2
  5. package/dist/{layers.BUuBI6QS.js → layers.-81wcqwR.js} +1 -1
  6. package/dist/{layers.DipbuRcs.js → layers.0GG-c34P.js} +1 -1
  7. package/dist/{layers.Dd9WE-Kq.js → layers.0dm3eLYv.js} +2 -2
  8. package/dist/{layers.D_3fuwmS.js → layers.0nFmx-Nl.js} +1 -1
  9. package/dist/{layers.SwZPMavM.js → layers.1Z2fyz6H.js} +1 -1
  10. package/dist/{layers.XJChT8Le.js → layers.2b70kvMG.js} +1 -1
  11. package/dist/{layers.CrpDpBIW.js → layers.3Vvyhk66.js} +3 -3
  12. package/dist/{layers.HsplLW7l.js → layers.475BZq-C.js} +1 -1
  13. package/dist/{layers.BFxRJ3Li.js → layers.6F0lZyGr.js} +1 -1
  14. package/dist/{layers.DSl3dgu7.js → layers.6iBZ8vbZ.js} +1 -1
  15. package/dist/{layers.DukBaqf8.js → layers.7Q7ZqlHQ.js} +1 -1
  16. package/dist/{layers.D87gRG-J.js → layers.AhhllI1F.js} +3 -3
  17. package/dist/{layers.C4qaO0MD.js → layers.B0UW1RmX.js} +1 -1
  18. package/dist/{layers.0RkUYii1.js → layers.B1jSvo4Q.js} +2 -2
  19. package/dist/layers.B2QmFAKW.js +1 -0
  20. package/dist/{layers.A_NuFq0j.js → layers.B4KbvY3e.js} +3 -3
  21. package/dist/{layers.AEy2G-Gv.js → layers.B4b5hMwb.js} +1 -1
  22. package/dist/{layers.Bb0NXUFw.js → layers.B4kpLyJz.js} +1 -1
  23. package/dist/{layers.B1VZZIP7.js → layers.B6ZNsH3T.js} +8 -8
  24. package/dist/{layers.D2Jbdqtj.js → layers.B6_dw_8p.js} +1 -1
  25. package/dist/{layers.B4qkzU1u.js → layers.B7X5RC-0.js} +1 -1
  26. package/dist/{layers.DGWfd9sT.js → layers.B9u9oq3T.js} +1 -1
  27. package/dist/{layers.D-uwIUCE.js → layers.BALYUkwP.js} +1 -1
  28. package/dist/{layers.BLQfYqXT.js → layers.BBJp9IW9.js} +1 -1
  29. package/dist/{layers.BP3xLRrX.js → layers.BChOvfAr.js} +1 -1
  30. package/dist/{layers.D6SbX5Az.js → layers.BE8bNWW6.js} +1 -1
  31. package/dist/layers.BEfOaBAZ.js +8 -0
  32. package/dist/{layers.CHuQjPi1.js → layers.BHRWU6d9.js} +1 -1
  33. package/dist/{layers.BM0ksLnS.js → layers.BJHPodZD.js} +1 -1
  34. package/dist/{layers.D3Qwcfa_.js → layers.BJml6l4c.js} +1 -1
  35. package/dist/{layers.bSw_jQ5U.js → layers.BP5yLKDB.js} +1 -1
  36. package/dist/{layers.D4RhFsg6.js → layers.BXFaNlXe.js} +1 -1
  37. package/dist/{layers.iBT5g_cH.js → layers.BY2fzSoa.js} +2 -2
  38. package/dist/{layers.0FtwCmdk.js → layers.BZ9Uzt2l.js} +1 -1
  39. package/dist/{layers.CJBYVYBK.js → layers.BcAVvZP0.js} +1 -1
  40. package/dist/{layers.Bp_lUbdE.js → layers.BddeOe_0.js} +1 -1
  41. package/dist/{layers.DdjaY7yq.js → layers.Bde9z6ba.js} +1 -1
  42. package/dist/{layers.B3CuqfYy.js → layers.Bdvy9kzf.js} +1 -1
  43. package/dist/{layers.C1iEaL9k.js → layers.Bf9MFDYo.js} +1 -1
  44. package/dist/{layers.CuAZJoX1.js → layers.BglhCs7Q.js} +1 -1
  45. package/dist/{layers.OeuRpLZr.js → layers.BhHN_OCL.js} +1 -1
  46. package/dist/{layers.78ekkCq0.js → layers.BhOVSyoa.js} +1 -1
  47. package/dist/{layers.DhZsCIrr.js → layers.Bk6BXLzz.js} +1 -1
  48. package/dist/{layers.Dmf-FkA-.js → layers.Bm9nXP7b.js} +1 -1
  49. package/dist/{layers.WPo01EJ5.js → layers.BncZBAFy.js} +1 -1
  50. package/dist/{layers.HstOwREP.js → layers.Bq-5GZP6.js} +17029 -16371
  51. package/dist/{layers.DLBD3WBx.js → layers.BtlLD-Rz.js} +1 -1
  52. package/dist/{layers.DmgkuDwj.js → layers.BtpIOF4Z.js} +1 -1
  53. package/dist/{layers.DUYA7tE_.js → layers.Bu56Qesy.js} +1 -1
  54. package/dist/{layers.BzRvQtZ0.js → layers.BxIw0gJL.js} +1 -1
  55. package/dist/{layers.CeU6SAcT.js → layers.ByYR4L98.js} +1 -1
  56. package/dist/{layers.BWj5iNQV.js → layers.C-pbN-0O.js} +1 -1
  57. package/dist/{layers.tqtFgs0l.js → layers.C0DJ9ilm.js} +1 -1
  58. package/dist/{layers.B2AGu32C.js → layers.C0Lgw_Sx.js} +1107 -1111
  59. package/dist/{layers.MczyPMMk.js → layers.C2gAR4en.js} +1 -1
  60. package/dist/layers.C4ceUEtT.js +6 -0
  61. package/dist/{layers.3Ekf-o8F.js → layers.C5RRQdrQ.js} +1 -1
  62. package/dist/{layers.j1hLqMc8.js → layers.C5U5RNdV.js} +1 -1
  63. package/dist/{layers.D8fb1iDb.js → layers.C5hVV8XE.js} +1 -1
  64. package/dist/{layers.PsWF_Poj.js → layers.C6jxjtyC.js} +1 -1
  65. package/dist/{layers.B3xfUipV.js → layers.C83RWXIj.js} +1 -1
  66. package/dist/{layers.B4n4WelM.js → layers.C9yHqpLC.js} +1 -1
  67. package/dist/{layers.BjFHkSyo.js → layers.CATiNc07.js} +1 -1
  68. package/dist/{layers.BiCOjicn.js → layers.CCoKbqGZ.js} +1 -1
  69. package/dist/{layers.DIc9Pn5-.js → layers.CCwQVeNG.js} +28 -28
  70. package/dist/{layers.DgJemaOm.js → layers.CG1igXgx.js} +2 -2
  71. package/dist/{layers.BE_DKuuD.js → layers.CGE7HTrP.js} +5 -5
  72. package/dist/{layers.bn1dbtN4.js → layers.CGmH2sSj.js} +1 -1
  73. package/dist/{layers.DAvEslJc.js → layers.CJWyW1s7.js} +1 -1
  74. package/dist/{layers.B0lp7rOz.js → layers.CK2uPIaB.js} +1 -1
  75. package/dist/{layers.CX9eMlzX.js → layers.CKVT6drc.js} +1 -1
  76. package/dist/{layers.1EHoXd8e.js → layers.COS6XeQZ.js} +1 -1
  77. package/dist/layers.CP5YFYP0.js +185 -0
  78. package/dist/{layers.Dgm8-XFN.js → layers.CQefO3zC.js} +1 -1
  79. package/dist/{layers.BRu1ZkhL.js → layers.CRMWsjPz.js} +1 -1
  80. package/dist/{layers.OUHm0dZY.js → layers.CXXPElSu.js} +1 -1
  81. package/dist/{layers.Dqsk7GNe.js → layers.CZ9XE70C.js} +1 -1
  82. package/dist/{layers.UHZ7LEG5.js → layers.CZtDXioS.js} +1 -1
  83. package/dist/{layers.COaiyaHl.js → layers.C_BxYlPZ.js} +3 -3
  84. package/dist/{layers.BlPVzVNM.js → layers.C_UcfwnG.js} +1 -1
  85. package/dist/{layers.DobBKdZ6.js → layers.CaLgCU_I.js} +1 -1
  86. package/dist/{layers.Ct-zQnmI.js → layers.CavVjyC7.js} +1 -1
  87. package/dist/{layers.BblO5S7z.js → layers.Cd4UYQEy.js} +1 -1
  88. package/dist/{layers.DJVg69Yo.js → layers.CeERe4hA.js} +2 -2
  89. package/dist/{layers.C996Xek1.js → layers.CgTtEOpk.js} +4 -4
  90. package/dist/{layers.C00LPdpd.js → layers.CgYKHJl1.js} +3 -3
  91. package/dist/{layers.BYRpGhl3.js → layers.Cgmo79x3.js} +1 -1
  92. package/dist/{layers.C0q8oCjN.js → layers.CjMeAmJX.js} +1 -1
  93. package/dist/{layers.Dmrtdk6A.js → layers.Ck0n4XD7.js} +1 -1
  94. package/dist/{layers.CSW2aYxs.js → layers.CkJ9q_L1.js} +1 -1
  95. package/dist/{layers.srlypw1l.js → layers.Cl-Lwb04.js} +1 -1
  96. package/dist/{layers.Bh0aB-u7.js → layers.CnZce7UZ.js} +2 -2
  97. package/dist/{layers.BS1BSw0O.js → layers.Co5PaFBV.js} +1 -1
  98. package/dist/{layers.C1w3XBPW.js → layers.CoC4j3uL.js} +7 -7
  99. package/dist/{layers.C_0uL0lu.js → layers.CopJUlxy.js} +1 -1
  100. package/dist/{layers.CQqtbI-S.js → layers.Cp-0WnDT.js} +1 -1
  101. package/dist/{layers.CoZpR7_r.js → layers.Cpwze_cl.js} +1 -1
  102. package/dist/{layers.CbseH42B.js → layers.CrqG-Duk.js} +1 -1
  103. package/dist/{layers.FoT1zSFE.js → layers.Crw1IGs-.js} +1 -1
  104. package/dist/{layers.Cn2QpKZw.js → layers.CsPue_MQ.js} +1 -1
  105. package/dist/{layers.Bs7-WFjs.js → layers.Cs_T7j-N.js} +5 -5
  106. package/dist/{layers.CdvbuuVd.js → layers.CtLZ9mwp.js} +1 -1
  107. package/dist/{layers.CmLupkS6.js → layers.CukiNGgZ.js} +4 -4
  108. package/dist/{layers.jrSryxFl.js → layers.CvbXz5-5.js} +1 -1
  109. package/dist/{layers.CRWsKrSv.js → layers.CxjTeNJ7.js} +1 -1
  110. package/dist/{layers.DgwJ1eL7.js → layers.Cxopck3h.js} +1 -1
  111. package/dist/{layers.CoVavTdv.js → layers.CyE3jBBZ.js} +1 -1
  112. package/dist/{layers.CyxAbBDV.js → layers.Cy_IG1Gv.js} +1 -1
  113. package/dist/{layers.D-EQ5B97.js → layers.Cz1nKHwt.js} +1 -1
  114. package/dist/{layers.oQqeIYLp.js → layers.CzRcgWY1.js} +4 -4
  115. package/dist/{layers.BBZL6QaK.js → layers.D0CU4TN8.js} +1 -1
  116. package/dist/{layers.BNUbfOwd.js → layers.D0_MMsE9.js} +1 -1
  117. package/dist/{layers.igIdIxGe.js → layers.D2U67Gni.js} +1 -1
  118. package/dist/{layers.DPnpGXQm.js → layers.D34e2jIm.js} +1 -1
  119. package/dist/{layers.BZ217a7U.js → layers.D3QNp_mQ.js} +1 -1
  120. package/dist/{layers.CAwBq0yQ.js → layers.D4ZUbUXz.js} +1 -1
  121. package/dist/{layers.DRFq8PR7.js → layers.D7Lv0jOC.js} +1 -1
  122. package/dist/{layers.Bit9KYIY.js → layers.DA80zVTT.js} +1 -1
  123. package/dist/{layers.COhnMbFE.js → layers.DAhZhj49.js} +4 -4
  124. package/dist/{layers.9jdDI2yV.js → layers.DC76pGI6.js} +1 -1
  125. package/dist/{layers.CrZ6TV4m.js → layers.DCm28WHr.js} +1 -1
  126. package/dist/{layers.R7Qt9hQa.js → layers.DEBlIxtT.js} +1 -1
  127. package/dist/{layers.D3sICpwv.js → layers.DEHlDscq.js} +1 -1
  128. package/dist/{layers.Cg3zhLTz.js → layers.DEiI3uTS.js} +1 -1
  129. package/dist/{layers.B7O9Ykf9.js → layers.DFO1fD9L.js} +1 -1
  130. package/dist/{layers.-wDyU9sN.js → layers.DFVmKOXm.js} +1 -1
  131. package/dist/{layers.DygycO7X.js → layers.DGgRL8Nc.js} +1 -1
  132. package/dist/{layers.C4ROEdAW.js → layers.DHpypOQI.js} +1 -1
  133. package/dist/{layers.raic7pCl.js → layers.DJLV698B.js} +3 -3
  134. package/dist/{layers.Do3LJDis.js → layers.DKZkGAQ_.js} +4 -4
  135. package/dist/{layers.wf8u33re.js → layers.DKeh-lZI.js} +1 -1
  136. package/dist/{layers.BkrI3eMq.js → layers.DLB4eAfo.js} +1 -1
  137. package/dist/{layers.D0rE1hbF.js → layers.DLRyMrlf.js} +1 -1
  138. package/dist/{layers.Dd-Mdjt8.js → layers.DND9ZxpV.js} +1 -1
  139. package/dist/{layers.DoI-3ssc.js → layers.DOYs_uMx.js} +4 -4
  140. package/dist/{layers.D_ILz54C.js → layers.DRGpaHAX.js} +1 -1
  141. package/dist/{layers.D6dwFhht.js → layers.D_AP_tA5.js} +1 -1
  142. package/dist/{layers.CSfCebqe.js → layers.D_MmQzRm.js} +1 -1
  143. package/dist/{layers.B5bQ8hRv.js → layers.D_sfrDwe.js} +1 -1
  144. package/dist/{layers.Czj3PJzZ.js → layers.DaUhvLRp.js} +1 -1
  145. package/dist/{layers.5Sr9IY96.js → layers.DaoO_UDV.js} +1 -1
  146. package/dist/{layers.Cle37JNX.js → layers.Dbdn8XSd.js} +1 -1
  147. package/dist/{layers.DCAo6G5D.js → layers.DfR442P5.js} +1 -1
  148. package/dist/{layers.DrTVlGxj.js → layers.DfoJ9Kxs.js} +1 -1
  149. package/dist/{layers.BFlWA9Iz.js → layers.DgpXAlfL.js} +3 -3
  150. package/dist/{layers.BirPY36J.js → layers.Dh54vG6t.js} +4 -4
  151. package/dist/{layers.CTzpQJrz.js → layers.DhcjxJPA.js} +3 -3
  152. package/dist/{layers.DBOFmWi_.js → layers.DhzzXhmQ.js} +4 -4
  153. package/dist/{layers.L1UaldnR.js → layers.Dixyg94K.js} +1 -1
  154. package/dist/{layers.CEmVEjbM.js → layers.Dj3HYSyh.js} +1 -1
  155. package/dist/{layers.CFa6SgS0.js → layers.DkLyYgOg.js} +1 -1
  156. package/dist/{layers.Dn02LanZ.js → layers.DkT2sxcJ.js} +3 -3
  157. package/dist/{layers.weZ4wJXB.js → layers.DkleVc4L.js} +1 -1
  158. package/dist/{layers.2cerO4OS.js → layers.DoAq7C3B.js} +1 -1
  159. package/dist/{layers.CLOKCltZ.js → layers.Dr3N180D.js} +1 -1
  160. package/dist/{layers.D4DB55K_.js → layers.Drb2mcdd.js} +1 -1
  161. package/dist/{layers.BU5FG1HP.js → layers.DtDMtcjv.js} +1 -1
  162. package/dist/{layers.DpzPbocR.js → layers.DtOlJEpj.js} +1 -1
  163. package/dist/{layers.VAQxBGRz.js → layers.Dut27cU5.js} +1 -1
  164. package/dist/{layers.CYJyjqCg.js → layers.Dx5j_aMV.js} +1 -1
  165. package/dist/{layers.CAcpgnDk.js → layers.Dy-AuShh.js} +1 -1
  166. package/dist/{layers.K3yYYJdK.js → layers.DyJZaSCk.js} +1 -1
  167. package/dist/{layers.Lz059Um8.js → layers.DyU8JNlG.js} +1 -1
  168. package/dist/{layers.uwhbxtz3.js → layers.DytwjiIF.js} +1 -1
  169. package/dist/{layers.OGhIzIND.js → layers.DyyemvLl.js} +1 -1
  170. package/dist/{layers.D-1CXIBI.js → layers.DzphOPQJ.js} +4 -4
  171. package/dist/{layers.BCbGsxxm.js → layers.J1ihPiBi.js} +1 -1
  172. package/dist/{layers.cdGjFrMq.js → layers.JcQwzHu2.js} +1 -1
  173. package/dist/{layers.Bnu-owJj.js → layers.JnLVZ-1W.js} +1 -1
  174. package/dist/{layers.XMeRR-JR.js → layers.MfBuwYip.js} +1 -1
  175. package/dist/{layers.BbpcdAWy.js → layers.OMZyjZaa.js} +1 -1
  176. package/dist/{layers.CYHkquLL.js → layers.OZhDjtkp.js} +1 -1
  177. package/dist/{layers.DQ8aCG7v.js → layers.SNwJ50Yh.js} +3 -3
  178. package/dist/{layers.BQFScIff.js → layers.X930Wyd9.js} +1 -1
  179. package/dist/{layers.B6YfcxJD.js → layers.YBnRzjtX.js} +1 -1
  180. package/dist/{layers.CylfN5iO.js → layers.YE5h1RJ0.js} +9 -9
  181. package/dist/{layers.Cef-VRJs.js → layers.YhDm2Yt0.js} +1 -1
  182. package/dist/{layers.BBXYbcFN.js → layers.ZE7W-HjF.js} +1 -1
  183. package/dist/{layers.DPhgksD-.js → layers._ZR3qWqZ.js} +1 -1
  184. package/dist/{layers.Dq0wRjbC.js → layers.b4ac2O9O.js} +1 -1
  185. package/dist/{layers.IKdQaUN6.js → layers.bzxdqd7a.js} +1 -1
  186. package/dist/{layers.BoIttUlh.js → layers.fjeoVipI.js} +1 -1
  187. package/dist/{layers.AIQle8wy.js → layers.hEiS_6X7.js} +1 -1
  188. package/dist/layers.hweLqW3I.js +261 -0
  189. package/dist/{layers.DVgohoWC.js → layers.iK5LSRjJ.js} +1 -1
  190. package/dist/{layers.D-xK8h4X.js → layers.ipZc_UQ4.js} +1 -1
  191. package/dist/{layers.DRYGpdtc.js → layers.itQhFK_P.js} +6 -6
  192. package/dist/{layers.Bfw0Gunv.js → layers.ix2kR4vq.js} +2246 -2229
  193. package/dist/{layers.Bn7Yja2i.js → layers.jLGyr7oL.js} +1 -1
  194. package/dist/{layers.D9JK3npg.js → layers.k60iEoD4.js} +1 -1
  195. package/dist/layers.l06k9Lu3.js +1 -0
  196. package/dist/{layers.cu7eSI3X.js → layers.lCMwJpWR.js} +1 -1
  197. package/dist/{layers.CXUGZO8g.js → layers.lPp5HcdT.js} +1 -1
  198. package/dist/{layers.DvxaikrZ.js → layers.lUeeFrHR.js} +1 -1
  199. package/dist/{layers.BW99L8Fl.js → layers.os9El-5G.js} +1 -1
  200. package/dist/{layers.DkyFv1Ys.js → layers.pSPpASHH.js} +1 -1
  201. package/dist/{layers.D4v0XyUf.js → layers.s006AAsW.js} +1 -1
  202. package/dist/layers.sFiVxDwP.js +1 -0
  203. package/dist/layers.sWO0agP4.js +295 -0
  204. package/dist/{layers.CldWERA-.js → layers.tSiLqPQw.js} +1 -1
  205. package/dist/{layers.CsmOgd93.js → layers.uZTzmOsK.js} +1 -1
  206. package/dist/{layers.-WGsbPEO.js → layers.uzGJX2RJ.js} +2 -2
  207. package/dist/{layers.MLq12lxF.js → layers.vZPmwsoq.js} +1 -1
  208. package/dist/{layers.DjZdvQQY.js → layers.wBjmBWfX.js} +1 -1
  209. package/package.json +12 -3
  210. package/dist/layers.BVrcjbG3.js +0 -8
  211. package/dist/layers.BkQdsQ8U.js +0 -285
  212. package/dist/layers.Cs24L6er.js +0 -261
  213. package/dist/layers.DR14S1m9.js +0 -161
  214. package/dist/layers.DSd23vw_.js +0 -1
  215. package/dist/layers.DzUJmmvD.js +0 -1
  216. package/dist/layers.M6o7NygO.js +0 -6
  217. package/dist/layers.OH8pkzdf.js +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./layers.DIc9Pn5-.js");require("./layers.C1w3XBPW.js");const tt=require("./layers.tqtFgs0l.js"),nt=require("./layers.B19hGmey.js"),st=require("./layers.9pNaFvaX.js"),R=require("./layers.DOrgOHBr.js");function rt(e,y){return y<e?-1:y>e?1:y>=e?0:NaN}function at(e){return e}function lt(){var e=at,y=rt,$=null,g=R.constant(0),d=R.constant(u.tau),E=R.constant(0);function f(a){var l,m=(a=st.array(a)).length,v,I,D=0,_=new Array(m),b=new Array(m),o=+g.apply(this,arguments),w=Math.min(u.tau,Math.max(-u.tau,d.apply(this,arguments)-o)),P,T=Math.min(Math.abs(w)/m,E.apply(this,arguments)),S=T*(w<0?-1:1),t;for(l=0;l<m;++l)(t=b[_[l]=l]=+e(a[l],l,a))>0&&(D+=t);for(y!=null?_.sort(function(i,n){return y(b[i],b[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=D?(w-m*S)/D:0;l<m;++l,o=P)v=_[l],t=b[v],P=o+(t>0?t*I:0)+S,b[v]={data:a[v],index:l,value:t,startAngle:o,endAngle:P,padAngle:T};return b}return f.value=function(a){return arguments.length?(e=typeof a=="function"?a:R.constant(+a),f):e},f.sortValues=function(a){return arguments.length?(y=a,$=null,f):y},f.sort=function(a){return arguments.length?($=a,y=null,f):$},f.startAngle=function(a){return arguments.length?(g=typeof a=="function"?a:R.constant(+a),f):g},f.endAngle=function(a){return arguments.length?(d=typeof a=="function"?a:R.constant(+a),f):d},f.padAngle=function(a){return arguments.length?(E=typeof a=="function"?a:R.constant(+a),f):E},f}var K=(function(){var e=function(S,t,i,n){for(i=i||{},n=S.length;n--;i[S[n]]=t);return i},y=[1,3],$=[1,4],g=[1,5],d=[1,6],E=[1,10,12,14,16,18,19,20,21,22],f=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],m=[2,7],v=[1,12],I=[1,13],D=[1,14],_=[1,15],b=[1,16],o=[1,17],w={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,c,s,V){var x=s.length-1;switch(c){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:y,20:$,21:g,22:d},{1:[3]},{3:7,4:2,5:y,20:$,21:g,22:d},e(E,f,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,m,{8:10,9:11,1:[2,2],10:v,12:I,14:D,16:_,18:b,19:o}),e(E,f,{6:18}),e(E,[2,5]),{4:19,20:$,21:g,22:d},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,m,{8:10,9:11,1:[2,3],10:v,12:I,14:D,16:_,18:b,19:o}),e(E,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],c=[null],s=[],V=this.table,x="",p=0,N=0,z=2,j=1,B=s.slice.call(arguments,1),h=Object.create(this.lexer),L={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(L.yy[Y]=this.yy[Y]);h.setInput(t,L.yy),L.yy.lexer=h,L.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Z=h.yylloc;s.push(Z);var et=h.options&&h.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var O;return O=r.pop()||h.lex()||j,typeof O!="number"&&(O instanceof Array&&(r=O,O=r.pop()),O=i.symbols_[O]||O),O}for(var k,F,A,H,M={},W,C,X,G;;){if(F=n[n.length-1],this.defaultActions[F]?A=this.defaultActions[F]:((k===null||typeof k>"u")&&(k=it()),A=V[F]&&V[F][k]),typeof A>"u"||!A.length||!A[0]){var J="";G=[];for(W in V[F])this.terminals_[W]&&W>z&&G.push("'"+this.terminals_[W]+"'");h.showPosition?J="Parse error on line "+(p+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./layers.CCwQVeNG.js");require("./layers.CoC4j3uL.js");const tt=require("./layers.C0DJ9ilm.js"),nt=require("./layers.B19hGmey.js"),st=require("./layers.9pNaFvaX.js"),R=require("./layers.DOrgOHBr.js");function rt(e,y){return y<e?-1:y>e?1:y>=e?0:NaN}function at(e){return e}function lt(){var e=at,y=rt,$=null,g=R.constant(0),d=R.constant(u.tau),E=R.constant(0);function f(a){var l,m=(a=st.array(a)).length,v,I,D=0,_=new Array(m),b=new Array(m),o=+g.apply(this,arguments),w=Math.min(u.tau,Math.max(-u.tau,d.apply(this,arguments)-o)),P,T=Math.min(Math.abs(w)/m,E.apply(this,arguments)),S=T*(w<0?-1:1),t;for(l=0;l<m;++l)(t=b[_[l]=l]=+e(a[l],l,a))>0&&(D+=t);for(y!=null?_.sort(function(i,n){return y(b[i],b[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=D?(w-m*S)/D:0;l<m;++l,o=P)v=_[l],t=b[v],P=o+(t>0?t*I:0)+S,b[v]={data:a[v],index:l,value:t,startAngle:o,endAngle:P,padAngle:T};return b}return f.value=function(a){return arguments.length?(e=typeof a=="function"?a:R.constant(+a),f):e},f.sortValues=function(a){return arguments.length?(y=a,$=null,f):y},f.sort=function(a){return arguments.length?($=a,y=null,f):$},f.startAngle=function(a){return arguments.length?(g=typeof a=="function"?a:R.constant(+a),f):g},f.endAngle=function(a){return arguments.length?(d=typeof a=="function"?a:R.constant(+a),f):d},f.padAngle=function(a){return arguments.length?(E=typeof a=="function"?a:R.constant(+a),f):E},f}var K=(function(){var e=function(S,t,i,n){for(i=i||{},n=S.length;n--;i[S[n]]=t);return i},y=[1,3],$=[1,4],g=[1,5],d=[1,6],E=[1,10,12,14,16,18,19,20,21,22],f=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],m=[2,7],v=[1,12],I=[1,13],D=[1,14],_=[1,15],b=[1,16],o=[1,17],w={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,c,s,V){var x=s.length-1;switch(c){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:y,20:$,21:g,22:d},{1:[3]},{3:7,4:2,5:y,20:$,21:g,22:d},e(E,f,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,m,{8:10,9:11,1:[2,2],10:v,12:I,14:D,16:_,18:b,19:o}),e(E,f,{6:18}),e(E,[2,5]),{4:19,20:$,21:g,22:d},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,m,{8:10,9:11,1:[2,3],10:v,12:I,14:D,16:_,18:b,19:o}),e(E,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],c=[null],s=[],V=this.table,x="",p=0,N=0,z=2,j=1,B=s.slice.call(arguments,1),h=Object.create(this.lexer),L={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(L.yy[Y]=this.yy[Y]);h.setInput(t,L.yy),L.yy.lexer=h,L.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Z=h.yylloc;s.push(Z);var et=h.options&&h.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var O;return O=r.pop()||h.lex()||j,typeof O!="number"&&(O instanceof Array&&(r=O,O=r.pop()),O=i.symbols_[O]||O),O}for(var k,F,A,H,M={},W,C,X,G;;){if(F=n[n.length-1],this.defaultActions[F]?A=this.defaultActions[F]:((k===null||typeof k>"u")&&(k=it()),A=V[F]&&V[F][k]),typeof A>"u"||!A.length||!A[0]){var J="";G=[];for(W in V[F])this.terminals_[W]&&W>z&&G.push("'"+this.terminals_[W]+"'");h.showPosition?J="Parse error on line "+(p+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+G.join(", ")+", got '"+(this.terminals_[k]||k)+"'":J="Parse error on line "+(p+1)+": Unexpected "+(k==j?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(J,{text:h.match,token:this.terminals_[k]||k,line:h.yylineno,loc:Z,expected:G})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+k);switch(A[0]){case 1:n.push(k),c.push(h.yytext),s.push(h.yylloc),n.push(A[1]),k=null,N=h.yyleng,x=h.yytext,p=h.yylineno,Z=h.yylloc;break;case 2:if(C=this.productions_[A[1]][1],M.$=c[c.length-C],M._$={first_line:s[s.length-(C||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(C||1)].first_column,last_column:s[s.length-1].last_column},et&&(M._$.range=[s[s.length-(C||1)].range[0],s[s.length-1].range[1]]),H=this.performAction.apply(M,[x,N,p,L.yy,A[1],c,s].concat(B)),typeof H<"u")return H;C&&(n=n.slice(0,-1*C*2),c=c.slice(0,-1*C),s=s.slice(0,-1*C)),n.push(this.productions_[A[1]][0]),c.push(M.$),s.push(M._$),X=V[n[n.length-2]][n[n.length-1]],n.push(X);break;case 3:return!0}}return!0}},P=(function(){var S={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,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 t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=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),n.length-1&&(this.yylineno-=n.length-1);var c=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-i]),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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./layers.bn1dbtN4.js"),d=require("./layers.DIc9Pn5-.js");require("lodash-es");const $=require("./layers.COAF7f8g.js"),H=require("./layers.9QK1wiQj.js");require("./layers.C1w3XBPW.js");const _=require("./layers.D_3fuwmS.js");let S=0;const C=function(i,r,t,l,p){const c=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};r.points=r.points.filter(e=>!Number.isNaN(e.y));const o=r.points,h=_.line().x(function(e){return e.x}).y(function(e){return e.y}).curve(d.curveBasis),n=i.append("path").attr("d",h(o)).attr("id","edge"+S).attr("class","relation");let a="";l.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+a+"#"+c(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+a+"#"+c(t.relation.type2)+"End)");let f,u;const x=r.points.length;let w=d.utils.calcLabelPosition(r.points);f=w.x,u=w.y;let y,b,m,k;if(x%2!==0&&x>1){let e=d.utils.calcCardinalityPosition(t.relation.type1!=="none",r.points,r.points[0]),s=d.utils.calcCardinalityPosition(t.relation.type2!=="none",r.points,r.points[x-1]);d.log$1.debug("cardinality_1_point "+JSON.stringify(e)),d.log$1.debug("cardinality_2_point "+JSON.stringify(s)),y=e.x,b=e.y,m=s.x,k=s.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),s=e.append("text").attr("class","label").attr("x",f).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=s;const g=s.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",g.x-l.padding/2).attr("y",g.y-l.padding/2).attr("width",g.width+l.padding).attr("height",g.height+l.padding)}d.log$1.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",y).attr("y",b).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",m).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),S++},A=function(i,r,t,l){d.log$1.debug("Rendering class ",r,t);const p=r.id,c={id:p,label:r.id,width:0,height:0},o=i.append("g").attr("id",l.db.lookUpDomId(p)).attr("class","classGroup");let h;r.link?h=o.append("svg:a").attr("xlink:href",r.link).attr("target",r.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;r.annotations.forEach(function(s){const g=h.append("tspan").text("«"+s+"»");n||g.attr("dy",t.textHeight),n=!1});let a=v(r);const f=h.append("tspan").text(a).attr("class","title");n||f.attr("dy",t.textHeight);const u=h.node().getBBox().height;let x,w,y;if(r.members.length>0){x=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin/2).attr("y2",t.padding+u+t.dividerMargin/2);const s=o.append("text").attr("x",t.padding).attr("y",u+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.members.forEach(function(g){N(s,g,n,t),n=!1}),w=s.node().getBBox()}if(r.methods.length>0){y=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin+w.height).attr("y2",t.padding+u+t.dividerMargin+w.height);const s=o.append("text").attr("x",t.padding).attr("y",u+2*t.dividerMargin+w.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.methods.forEach(function(g){N(s,g,n,t),n=!1})}const b=o.node().getBBox();var m=" ";r.cssClasses.length>0&&(m=m+r.cssClasses.join(" "));const e=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*t.padding).attr("height",b.height+t.padding+.5*t.dividerMargin).attr("class",m).node().getBBox().width;return h.node().childNodes.forEach(function(s){s.setAttribute("x",(e-s.getBBox().width)/2)}),r.tooltip&&h.insert("title").text(r.tooltip),x&&x.attr("x2",e),y&&y.attr("x2",e),c.width=e,c.height=b.height+t.padding+.5*t.dividerMargin,c},v=function(i){let r=i.id;return i.type&&(r+="<"+d.parseGenericTypes(i.type)+">"),r},W=function(i,r,t,l){d.log$1.debug("Rendering note ",r,t);const p=r.id,c={id:p,text:r.text,width:0,height:0},o=i.append("g").attr("id",p).attr("class","classGroup");let h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${r.text}"`).split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./layers.CGmH2sSj.js"),d=require("./layers.CCwQVeNG.js");require("lodash-es");const $=require("./layers.COAF7f8g.js"),H=require("./layers.9QK1wiQj.js");require("./layers.CoC4j3uL.js");const _=require("./layers.0nFmx-Nl.js");let S=0;const C=function(i,r,t,l,p){const c=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};r.points=r.points.filter(e=>!Number.isNaN(e.y));const o=r.points,h=_.line().x(function(e){return e.x}).y(function(e){return e.y}).curve(d.curveBasis),n=i.append("path").attr("d",h(o)).attr("id","edge"+S).attr("class","relation");let a="";l.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+a+"#"+c(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+a+"#"+c(t.relation.type2)+"End)");let f,u;const x=r.points.length;let w=d.utils.calcLabelPosition(r.points);f=w.x,u=w.y;let y,b,m,k;if(x%2!==0&&x>1){let e=d.utils.calcCardinalityPosition(t.relation.type1!=="none",r.points,r.points[0]),s=d.utils.calcCardinalityPosition(t.relation.type2!=="none",r.points,r.points[x-1]);d.log$1.debug("cardinality_1_point "+JSON.stringify(e)),d.log$1.debug("cardinality_2_point "+JSON.stringify(s)),y=e.x,b=e.y,m=s.x,k=s.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),s=e.append("text").attr("class","label").attr("x",f).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=s;const g=s.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",g.x-l.padding/2).attr("y",g.y-l.padding/2).attr("width",g.width+l.padding).attr("height",g.height+l.padding)}d.log$1.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",y).attr("y",b).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",m).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),S++},A=function(i,r,t,l){d.log$1.debug("Rendering class ",r,t);const p=r.id,c={id:p,label:r.id,width:0,height:0},o=i.append("g").attr("id",l.db.lookUpDomId(p)).attr("class","classGroup");let h;r.link?h=o.append("svg:a").attr("xlink:href",r.link).attr("target",r.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;r.annotations.forEach(function(s){const g=h.append("tspan").text("«"+s+"»");n||g.attr("dy",t.textHeight),n=!1});let a=v(r);const f=h.append("tspan").text(a).attr("class","title");n||f.attr("dy",t.textHeight);const u=h.node().getBBox().height;let x,w,y;if(r.members.length>0){x=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin/2).attr("y2",t.padding+u+t.dividerMargin/2);const s=o.append("text").attr("x",t.padding).attr("y",u+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.members.forEach(function(g){N(s,g,n,t),n=!1}),w=s.node().getBBox()}if(r.methods.length>0){y=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin+w.height).attr("y2",t.padding+u+t.dividerMargin+w.height);const s=o.append("text").attr("x",t.padding).attr("y",u+2*t.dividerMargin+w.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.methods.forEach(function(g){N(s,g,n,t),n=!1})}const b=o.node().getBBox();var m=" ";r.cssClasses.length>0&&(m=m+r.cssClasses.join(" "));const e=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*t.padding).attr("height",b.height+t.padding+.5*t.dividerMargin).attr("class",m).node().getBBox().width;return h.node().childNodes.forEach(function(s){s.setAttribute("x",(e-s.getBBox().width)/2)}),r.tooltip&&h.insert("title").text(r.tooltip),x&&x.attr("x2",e),y&&y.attr("x2",e),c.width=e,c.height=b.height+t.padding+.5*t.dividerMargin,c},v=function(i){let r=i.id;return i.type&&(r+="<"+d.parseGenericTypes(i.type)+">"),r},W=function(i,r,t,l){d.log$1.debug("Rendering note ",r,t);const p=r.id,c={id:p,text:r.text,width:0,height:0},o=i.append("g").attr("id",p).attr("class","classGroup");let h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${r.text}"`).split(`
2
2
  `);n.forEach(function(x){d.log$1.debug(`Adding line: ${x}`),h.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const a=o.node().getBBox(),u=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",a.width+2*t.padding).attr("height",a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return h.node().childNodes.forEach(function(x){x.setAttribute("x",(u-x.getBBox().width)/2)}),c.width=u,c.height=a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,c},N=function(i,r,t,l){const{displayText:p,cssStyle:c}=r.getDisplayDetails(),o=i.append("tspan").attr("x",l.padding).text(p);c!==""&&o.attr("style",r.cssStyle),t||o.attr("dy",l.textHeight)},M={getClassTitleString:v,drawClass:A,drawEdge:C,drawNote:W};let B={};const E=20,L=function(i){const r=Object.entries(B).find(t=>t[1].label===i);if(r)return r[0]},G=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").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"),i.append("defs").append("marker").attr("id","compositionEnd").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"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").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"),i.append("defs").append("marker").attr("id","aggregationEnd").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"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},I=function(i,r,t,l){const p=d.getConfig().class;B={},d.log$1.info("Rendering diagram "+i);const c=d.getConfig().securityLevel;let o;c==="sandbox"&&(o=d.select("#i"+r));const h=c==="sandbox"?d.select(o.nodes()[0].contentDocument.body):d.select("body"),n=h.select(`[id='${r}']`);G(n);const a=new H.Graph({multigraph:!0});a.setGraph({isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const f=l.db.getClasses(),u=Object.keys(f);for(const e of u){const s=f[e],g=M.drawClass(n,s,p,l);B[g.id]=g,a.setNode(g.id,g),d.log$1.info("Org height: "+g.height)}l.db.getRelations().forEach(function(e){d.log$1.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),a.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),l.db.getNotes().forEach(function(e){d.log$1.debug(`Adding note: ${JSON.stringify(e)}`);const s=M.drawNote(n,e,p,l);B[s.id]=s,a.setNode(s.id,s),e.class&&e.class in f&&a.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),$.layout(a),a.nodes().forEach(function(e){e!==void 0&&a.node(e)!==void 0&&(d.log$1.debug("Node "+e+": "+JSON.stringify(a.node(e))),h.select("#"+(l.db.lookUpDomId(e)||e)).attr("transform","translate("+(a.node(e).x-a.node(e).width/2)+","+(a.node(e).y-a.node(e).height/2)+" )"))}),a.edges().forEach(function(e){e!==void 0&&a.edge(e)!==void 0&&(d.log$1.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(a.edge(e))),M.drawEdge(n,a.edge(e),a.edge(e).relation,p,l))});const y=n.node().getBBox(),b=y.width+E*2,m=y.height+E*2;d.configureSvgSize(n,m,b,p.useMaxWidth);const k=`${y.x-E} ${y.y-E} ${b} ${m}`;d.log$1.debug(`viewBox ${k}`),n.attr("viewBox",k)},O={draw:I},P={parser:T.parser$1,db:T.db,renderer:O,styles:T.styles,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,T.db.clear()}};exports.diagram=P;