@layers-app/editor 0.7.48 → 0.7.49
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.
- package/README.md +4 -14
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +17 -11
- package/dist/index.js +2 -2
- package/dist/{layers.DiHUvl0o.js → layers.2sxk2h9p.js} +1 -1
- package/dist/{layers.DEjh8HqA.js → layers.3fhqDXGQ.js} +1 -1
- package/dist/{layers.yZYCg_En.js → layers.6LJL3iMX.js} +1 -1
- package/dist/{layers.BsoRVzDP.js → layers.6lVF0vjp.js} +2 -2
- package/dist/{layers.B9vco1Tm.js → layers.6vQhCrMO.js} +1 -1
- package/dist/{layers.BEXIxuBF.js → layers.8jPh7nZ7.js} +1 -1
- package/dist/{layers.Dpw_9ymJ.js → layers.9YYn67yF.js} +1 -1
- package/dist/{layers.C4DDZaZs.js → layers.9o0Jdg-U.js} +1 -1
- package/dist/{layers.CGoSj1av.js → layers.B0L7owR9.js} +5 -5
- package/dist/{layers.DOq-L3gG.js → layers.B124trWB.js} +1 -1
- package/dist/{layers.Ctocb96g.js → layers.B4bJKqOt.js} +1 -1
- package/dist/{layers.DBmtL6ZZ.js → layers.B50R5EaK.js} +1 -1
- package/dist/{layers.rUzSMgAT.js → layers.B74E_Mhu.js} +1 -1
- package/dist/{layers.CmF7I89w.js → layers.B7c71bAt.js} +1 -1
- package/dist/{layers.LiJvf-Xh.js → layers.B96L1hG2.js} +1 -1
- package/dist/{layers.CX1TPIiJ.js → layers.B9Rx2foX.js} +4 -4
- package/dist/{layers._beiaL7T.js → layers.BB461pvX.js} +1 -1
- package/dist/{layers.BdBmAIrs.js → layers.BBix4GLX.js} +2 -2
- package/dist/{layers.BvhD2Hex.js → layers.BKyEhTMV.js} +1 -1
- package/dist/{layers.BE1X7OZN.js → layers.BLUQsSE-.js} +1 -1
- package/dist/{layers.Cl2CJFNx.js → layers.BNuBcDIb.js} +1 -1
- package/dist/{layers.B3ebXuRR.js → layers.BPHAY1-9.js} +4 -4
- package/dist/{layers.OxWb2lcf.js → layers.BQ2I5acy.js} +1 -1
- package/dist/{layers.Bl4j3Wpr.js → layers.BRWyWzwh.js} +1 -1
- package/dist/{layers.9Ei77wJG.js → layers.BS6VvqxC.js} +1 -1
- package/dist/{layers.ClLKdjmI.js → layers.BTbPm8pR.js} +1 -1
- package/dist/{layers.CMiTJnad.js → layers.BV-egvVp.js} +1 -1
- package/dist/{layers.DIa1shbs.js → layers.BVr10oU3.js} +1 -1
- package/dist/{layers.C_poBEYa.js → layers.BWw1mK7X.js} +1 -1
- package/dist/{layers.CH7sIJoO.js → layers.BXIUEFQw.js} +1 -1
- package/dist/{layers.BDlIrLZ6.js → layers.BXS2uNb0.js} +1 -1
- package/dist/{layers.CJFGEsgQ.js → layers.BaGJS1l7.js} +1 -1
- package/dist/{layers.BtPwy6-y.js → layers.Bc8eVF2x.js} +1 -1
- package/dist/{layers.BAdbzzKU.js → layers.BdYtCOnE.js} +1 -1
- package/dist/{layers.C-9tvKsH.js → layers.Be6CBZHC.js} +1 -1
- package/dist/{layers.CFKLwcKm.js → layers.BeKf3u57.js} +1 -1
- package/dist/{layers.Cu_3bkpd.js → layers.BgQO_ULY.js} +1 -1
- package/dist/{layers.DqkMTScX.js → layers.BhDueLVc.js} +1 -1
- package/dist/{layers.CW3RPoeB.js → layers.BhDyoOpp.js} +1 -1
- package/dist/{layers.DhkSgCGH.js → layers.BiakMAVz.js} +1 -1
- package/dist/{layers.CFs5s8T3.js → layers.Bpw9JnCv.js} +1 -1
- package/dist/{layers.CU6rRFWz.js → layers.Bq2f36dx.js} +1 -1
- package/dist/{layers.Bp180gHt.js → layers.BsA7eoz8.js} +1 -1
- package/dist/{layers.E-_P3Hgt.js → layers.BsxmtGhi.js} +1 -1
- package/dist/{layers.CRxZsox1.js → layers.BszXwlqm.js} +1 -1
- package/dist/{layers.C_H8CF1f.js → layers.Bt2v9ZR3.js} +1 -1
- package/dist/{layers.CPkIaDFg.js → layers.BtKGefaP.js} +1 -1
- package/dist/{layers.-XXFcZ-Q.js → layers.BtLFUN9L.js} +1 -1
- package/dist/{layers.CNfAcY6Y.js → layers.BtTn3DWi.js} +1 -1
- package/dist/{layers.DSMzl4c7.js → layers.BtWDGtLj.js} +1 -1
- package/dist/{layers.BOm3l9Y2.js → layers.Bw7qkQsX.js} +1 -1
- package/dist/{layers.BE5c8LWk.js → layers.BwxPrRZD.js} +1 -1
- package/dist/{layers.C239vlHa.js → layers.Bxcxrsy_.js} +3 -3
- package/dist/{layers.sHJHq9SR.js → layers.C-XVPziT.js} +1 -1
- package/dist/{layers.DHWPE8JP.js → layers.C3E0dLDD.js} +1 -1
- package/dist/{layers.BGNKNfpx.js → layers.C3ctqQ_d.js} +4 -4
- package/dist/{layers.CzBOl45X.js → layers.C57RR3BP.js} +1 -1
- package/dist/{layers.DwKuuHvW.js → layers.C5TvEQpd.js} +1 -1
- package/dist/{layers.DvEpZu0k.js → layers.C5XJmJhy.js} +5 -5
- package/dist/{layers.48nWXuMb.js → layers.C5XRUPsP.js} +3 -3
- package/dist/{layers.D9Q1WK3D.js → layers.C6lFx_9o.js} +1 -1
- package/dist/{layers.Dsyqs-lC.js → layers.C6vIa6gn.js} +1 -1
- package/dist/{layers.9vsoRdca.js → layers.CAXlMwAW.js} +1 -1
- package/dist/{layers.Ds-YCD3f.js → layers.CBwlQeze.js} +1 -1
- package/dist/{layers.DMQHD7SZ.js → layers.CCVxi5hB.js} +1 -1
- package/dist/{layers.Bm3vF-Ge.js → layers.CDVEdgbo.js} +1 -1
- package/dist/{layers.DSXwzG0l.js → layers.CEWorf-C.js} +1 -1
- package/dist/{layers.CefLOoC8.js → layers.CFHq5644.js} +1 -1
- package/dist/{layers.i2bcEL4B.js → layers.CG7r3vnU.js} +1 -1
- package/dist/{layers.iSx5HVBW.js → layers.CGJlI-Xk.js} +1 -1
- package/dist/{layers.bdZaUQNB.js → layers.CHh5bEfC.js} +1 -1
- package/dist/{layers.QOZfLJOU.js → layers.CI55as3L.js} +4 -4
- package/dist/{layers.6JZIYhnG.js → layers.CIleDfVS.js} +4 -4
- package/dist/{layers.BXwHF1c0.js → layers.CImHWuWy.js} +1 -1
- package/dist/{layers.CqHFUbCh.js → layers.CJaUnfvI.js} +1 -1
- package/dist/{layers.fCcqSwty.js → layers.CKmkJeNx.js} +1 -1
- package/dist/{layers.DsQYlSSa.js → layers.CLCDYoNw.js} +1 -1
- package/dist/layers.CLLW_-MM.js +1 -0
- package/dist/{layers.DIhuprWj.js → layers.CLSq6d5G.js} +1 -1
- package/dist/{layers.q8HcJw1z.js → layers.CPK-8aJ9.js} +1 -1
- package/dist/{layers.vO27jqdn.js → layers.CQrT2kiR.js} +1 -1
- package/dist/layers.CROEZPe3.js +1 -0
- package/dist/{layers.D0dYIayl.js → layers.CTizu7k3.js} +1 -1
- package/dist/{layers.BKqs5g_B.js → layers.CTtXyJIC.js} +1 -1
- package/dist/{layers.BHstW68e.js → layers.CUFmR0uO.js} +3 -3
- package/dist/{layers.DtEAEu5Y.js → layers.CUQCdPfS.js} +1 -1
- package/dist/{layers.DQ3x1v0k.js → layers.CXwIo_E2.js} +3 -3
- package/dist/{layers.DhlqqsI-.js → layers.Cbh8488l.js} +1 -1
- package/dist/{layers.D5T2vOzx.js → layers.CeWHZgFl.js} +4 -4
- package/dist/{layers.CtAhktPZ.js → layers.ChByNJR4.js} +1 -1
- package/dist/{layers.Bp-6Ampr.js → layers.CiayK_jX.js} +1 -1
- package/dist/{layers.CKTftm3f.js → layers.CiloWOji.js} +1 -1
- package/dist/{layers.DnRoER-T.js → layers.CivvhzLf.js} +1 -1
- package/dist/{layers.B2hK-O3y.js → layers.CjKkiQ-5.js} +1 -1
- package/dist/{layers.Df7-26ey.js → layers.Cm1JRCTb.js} +4 -4
- package/dist/{layers.BXVqLjUh.js → layers.Cn0EJP31.js} +1 -1
- package/dist/{layers.CZpHZoB0.js → layers.CoUMygdc.js} +1 -1
- package/dist/{layers.ClVfKZ9h.js → layers.CqJ3U1Dv.js} +1 -1
- package/dist/{layers.Dfl1_GY-.js → layers.CrTPxY8M.js} +1 -1
- package/dist/{layers.DbRchKwe.js → layers.CrhlCVRH.js} +1 -1
- package/dist/{layers.CcZMrh49.js → layers.CvKfVfgR.js} +1 -1
- package/dist/{layers.4NkfZAG8.js → layers.Cw1UVYRF.js} +1 -1
- package/dist/{layers.BrFRnEbi.js → layers.Cw6AQ1zH.js} +1 -1
- package/dist/{layers.CUuGcjpi.js → layers.Cw76BJN2.js} +1 -1
- package/dist/{layers.BZbUfGYp.js → layers.CxuRP1lw.js} +1 -1
- package/dist/{layers.lgAtpBQI.js → layers.Cyu04oeV.js} +1 -1
- package/dist/{layers.By9AhVvm.js → layers.CzYE0Ooc.js} +1 -1
- package/dist/{layers.D8gdqeYc.js → layers.D16HelAS.js} +2 -2
- package/dist/{layers.BtYjjZLM.js → layers.D1BZqHRU.js} +1 -1
- package/dist/{layers.DwrUaEvN.js → layers.D2PgPKOo.js} +1 -1
- package/dist/{layers.CnmwOTKT.js → layers.D5Kikhmz.js} +3 -3
- package/dist/{layers.CbWg4Qj_.js → layers.D5vKDO3Z.js} +1 -1
- package/dist/{layers.lY3SrA49.js → layers.D634RCv2.js} +1 -1
- package/dist/{layers.DcGOrQq5.js → layers.D6fxuXiV.js} +1 -1
- package/dist/{layers.CXmM9Bvj.js → layers.D77Lwa5B.js} +1 -1
- package/dist/{layers.tjc2yfO8.js → layers.D9Aq-VH-.js} +1 -1
- package/dist/{layers.Ckdux2po.js → layers.DAN-8W9x.js} +6 -6
- package/dist/{layers.qaJdLFHI.js → layers.DB59_4ZT.js} +1 -1
- package/dist/{layers.CJb1-QAi.js → layers.DBKCfxsn.js} +1 -1
- package/dist/{layers.R8OXBVYp.js → layers.DC44PHoe.js} +1 -1
- package/dist/{layers.BM2O77Wh.js → layers.DDIKIPEl.js} +1 -1
- package/dist/{layers.BeIBKBJG.js → layers.DDNSbyH9.js} +1 -1
- package/dist/{layers.a_6-TFT0.js → layers.DE-1MOCW.js} +1 -1
- package/dist/{layers.Dj-z0EfD.js → layers.DEJLOhUD.js} +1 -1
- package/dist/{layers.DnNdcruU.js → layers.DF5Jf3M9.js} +1 -1
- package/dist/{layers.CAo4nRSe.js → layers.DFEtOzCz.js} +1 -1
- package/dist/{layers.B9jC1uEF.js → layers.DFiKSx4e.js} +1 -1
- package/dist/{layers.CYHiWIYN.js → layers.DGwBwWGl.js} +3 -3
- package/dist/layers.DJtJoK2T.js +8 -0
- package/dist/layers.DJugFK-r.js +129 -0
- package/dist/{layers.C_Z4dR-0.js → layers.DJuxVMes.js} +1 -1
- package/dist/{layers.DjzsPlhY.js → layers.DLOvj2ew.js} +1 -1
- package/dist/{layers.BCmyFF5n.js → layers.DLmk4e9A.js} +1 -1
- package/dist/{layers.C_8cg569.js → layers.DMRUFJsX.js} +1 -1
- package/dist/{layers.rddzpnjy.js → layers.DO0X6c0O.js} +2 -2
- package/dist/{layers.DHoGHrwb.js → layers.DPlZKJgj.js} +3 -3
- package/dist/{layers.RZvZoVxE.js → layers.DQxhNW5R.js} +1 -1
- package/dist/layers.DReq7_oC.js +296 -0
- package/dist/{layers.Umldr18w.js → layers.DT9rsUtv.js} +7 -7
- package/dist/{layers.BHGjfW2R.js → layers.DU05EaWA.js} +3 -3
- package/dist/{layers.DL3G4Rrb.js → layers.DUEmMZLx.js} +1 -1
- package/dist/{layers.8L97LNWM.js → layers.DWAsYusl.js} +1 -1
- package/dist/{layers.DXWOVogE.js → layers.DWYk3UK6.js} +1 -1
- package/dist/{layers.CzP0RBWK.js → layers.DWhMR9ZJ.js} +1 -1
- package/dist/{layers.DR3nuNQY.js → layers.DXS1j64l.js} +4 -4
- package/dist/{layers.BLa-XNid.js → layers.DYURS4FP.js} +1 -1
- package/dist/{layers.Bp2T5L9r.js → layers.D_RUDzWv.js} +8 -8
- package/dist/layers.DbVdGKld.js +1 -0
- package/dist/{layers.Ct7Z5o-U.js → layers.DcAdQwtK.js} +1 -1
- package/dist/{layers.D6CzgZCn.js → layers.DcMkjKaG.js} +1 -1
- package/dist/{layers.orP2yP91.js → layers.DgvrVyqi.js} +3 -3
- package/dist/{layers._d6q9aen.js → layers.Dhq37bku.js} +1 -1
- package/dist/{layers.C5kfbdNQ.js → layers.DjkEwMtb.js} +3 -3
- package/dist/{layers.BFRwalLF.js → layers.Dl8xQWMG.js} +1 -1
- package/dist/{layers.CaPMI1KH.js → layers.DlufDKX8.js} +1 -1
- package/dist/{layers.DJYCnlhb.js → layers.DnJXYiZP.js} +1 -1
- package/dist/{layers.R3a4GOcm.js → layers.DnXs_pNB.js} +1 -1
- package/dist/{layers.E2Pg6Xkc.js → layers.Do15drP1.js} +1 -1
- package/dist/{layers.Bkv-oShk.js → layers.DokfH0hd.js} +1 -1
- package/dist/{layers.BRbQRhez.js → layers.DpNZa-jp.js} +1 -1
- package/dist/{layers.n5OStkpA.js → layers.Dr3MCGOM.js} +3 -3
- package/dist/{layers.DJ64BwjI.js → layers.DrQ8hvnX.js} +1 -1
- package/dist/{layers.DsjBnsF_.js → layers.DsptZoFe.js} +1 -1
- package/dist/{layers.CTAkgg4R.js → layers.DtD3skoW.js} +1 -1
- package/dist/{layers.CCqA6oPh.js → layers.Dtms4fW5.js} +1 -1
- package/dist/{layers.SdU27KL4.js → layers.Du0f9MLd.js} +1 -1
- package/dist/{layers.BTYE7zXl.js → layers.DuZA4Xas.js} +1 -1
- package/dist/{layers.zF6RU9h5.js → layers.Dwh8gx1i.js} +1 -1
- package/dist/{layers.KFn2whtk.js → layers.DwizeusR.js} +1 -1
- package/dist/layers.DyL1tlRE.js +276 -0
- package/dist/{layers.my0yWZmR.js → layers.DyRolv1I.js} +1 -1
- package/dist/{layers.DUWcbGsB.js → layers.DzFqkluR.js} +4 -4
- package/dist/{layers.Cn30_EV4.js → layers.DzSq4y89.js} +2 -2
- package/dist/{layers.BZO72u-D.js → layers.Gsg2l9lj.js} +1 -1
- package/dist/{layers.D5n5uB-V.js → layers.H6NhhT0Z.js} +1 -1
- package/dist/layers.MmOx3Q5y.js +28376 -0
- package/dist/{layers.3jBLdifJ.js → layers.NYVxQ2J0.js} +1 -1
- package/dist/{layers.BW7u2_1T.js → layers.Oz9AvXqT.js} +3 -3
- package/dist/layers.TMqEBNpX.js +1 -0
- package/dist/{layers.DUGRqDUB.js → layers.Te010ICg.js} +24 -24
- package/dist/{layers.CitJ-LcP.js → layers.VN0Yeq2V.js} +1 -1
- package/dist/{layers.CvFNr8Uu.js → layers.WnvKMTKL.js} +1 -1
- package/dist/{layers.ovEMwqYP.js → layers.WxQ6m-UP.js} +1 -1
- package/dist/{layers.BjauJJl_.js → layers.X0_Gx5lN.js} +1 -1
- package/dist/{layers.BYA27mAA.js → layers.Y9FRICz5.js} +1 -1
- package/dist/{layers.Dop4IJqp.js → layers.ZGwk_KWb.js} +1 -1
- package/dist/{layers.DBYWjvtj.js → layers.blh6SXpL.js} +1 -1
- package/dist/{layers.DL2VBsfE.js → layers.d5j1lEFQ.js} +1 -1
- package/dist/{layers.CfGk77zR.js → layers.eGX8dSo1.js} +1 -1
- package/dist/{layers.B4eocW2U.js → layers.eIIS5NDC.js} +1 -1
- package/dist/{layers.Cye7d0Ye.js → layers.fxqbBEns.js} +1 -1
- package/dist/layers.hAT_4n_i.js +6 -0
- package/dist/{layers.CRYQyJW8.js → layers.jPwVCOt0.js} +1 -1
- package/dist/{layers.BAxiKghG.js → layers.jgfr1mFT.js} +2 -2
- package/dist/{layers.COeBHfJh.js → layers.lMAyLkuo.js} +1 -1
- package/dist/{layers.DngDRzM2.js → layers.lX16IRwc.js} +1 -1
- package/dist/{layers.BKutBTDw.js → layers.oFuJymzn.js} +1 -1
- package/dist/{layers.DQD1IQ6W.js → layers.p872qi0O.js} +1 -1
- package/dist/{layers.DJuBjYUv.js → layers.pHpJOB6N.js} +1 -1
- package/dist/{layers.CVuk5gp9.js → layers.pgbpWh46.js} +1 -1
- package/dist/{layers.Upsmcdyi.js → layers.pixPTfNv.js} +1 -1
- package/dist/{layers.BLqn32Nb.js → layers.rmoiicvu.js} +1 -1
- package/dist/{layers.BRWktvhi.js → layers.rvTNl4lr.js} +1 -1
- package/dist/{layers.Bz2bAm_o.js → layers.ssiSYLMt.js} +1 -1
- package/dist/{layers.CI9mIisM.js → layers.xcmbrsYu.js} +1 -1
- package/dist/{layers.BPwJ27pe.js → layers.xtkyz0Y7.js} +2 -2
- package/package.json +7 -13
- package/dist/layers.8I_XubBt.js +0 -1
- package/dist/layers.BFl0k28S.js +0 -6
- package/dist/layers.BSgSDW2J.js +0 -1
- package/dist/layers.CCNu5Rkf.js +0 -1
- package/dist/layers.CFSawE7c.js +0 -8
- package/dist/layers.CM9U_WY6.js +0 -304
- package/dist/layers.G1XGzBxR.js +0 -297
- package/dist/layers.fldW-Ogr.js +0 -30328
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { jsxs as E, Fragment as T, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as N, useEffect as d, useState as C, useCallback as f } from "react";
|
|
3
|
+
import { createPortal as U } from "react-dom";
|
|
4
|
+
import { k as P, d as S, c as $, l as V, H as X, n as Y, O as J } from "./layers.MmOx3Q5y.js";
|
|
5
|
+
import { useLexicalComposerContext as W } from "@lexical/react/LexicalComposerContext";
|
|
6
|
+
import { LexicalErrorBoundary as _ } from "@lexical/react/LexicalErrorBoundary";
|
|
7
|
+
import { useLexicalEditable as Z } from "@lexical/react/useLexicalEditable";
|
|
8
|
+
import { Textarea as K, Group as ee, Button as H } from "@mantine/core";
|
|
9
|
+
import { $getNodeByKey as v, COMMAND_PRIORITY_EDITOR as te } from "lexical";
|
|
10
|
+
import ne from "./layers.b9B2NY7n.js";
|
|
11
|
+
function w({
|
|
12
|
+
equation: r,
|
|
13
|
+
inline: a,
|
|
14
|
+
onDoubleClick: s
|
|
15
|
+
}) {
|
|
16
|
+
const n = N(null);
|
|
17
|
+
return d(() => {
|
|
18
|
+
const l = n.current;
|
|
19
|
+
l !== null && ne.render(r, l, {
|
|
20
|
+
displayMode: !a,
|
|
21
|
+
errorColor: "#cc0000",
|
|
22
|
+
output: "html",
|
|
23
|
+
strict: "warn",
|
|
24
|
+
throwOnError: !1,
|
|
25
|
+
trust: !1
|
|
26
|
+
});
|
|
27
|
+
}, [r, a]), /* @__PURE__ */ E(T, { children: [
|
|
28
|
+
/* @__PURE__ */ o(
|
|
29
|
+
"img",
|
|
30
|
+
{
|
|
31
|
+
src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
32
|
+
width: 0,
|
|
33
|
+
height: 0,
|
|
34
|
+
alt: ""
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ o(
|
|
38
|
+
"span",
|
|
39
|
+
{
|
|
40
|
+
role: "button",
|
|
41
|
+
tabIndex: -1,
|
|
42
|
+
onDoubleClick: s,
|
|
43
|
+
ref: n
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ o(
|
|
47
|
+
"img",
|
|
48
|
+
{
|
|
49
|
+
src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
50
|
+
width: 0,
|
|
51
|
+
height: 0,
|
|
52
|
+
alt: ""
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] });
|
|
56
|
+
}
|
|
57
|
+
let M = !1;
|
|
58
|
+
const I = /* @__PURE__ */ new Map();
|
|
59
|
+
function oe(r) {
|
|
60
|
+
M || (M = !0, r.registerCommand(
|
|
61
|
+
J,
|
|
62
|
+
(a) => {
|
|
63
|
+
const s = I.get(a);
|
|
64
|
+
return s ? (s(), !0) : !1;
|
|
65
|
+
},
|
|
66
|
+
te
|
|
67
|
+
));
|
|
68
|
+
}
|
|
69
|
+
function pe({
|
|
70
|
+
equation: r,
|
|
71
|
+
inline: a,
|
|
72
|
+
nodeKey: s
|
|
73
|
+
}) {
|
|
74
|
+
const [n] = W(), l = Z(), p = N(null), B = N(null), [m, x] = C(r), [c, u] = C(!1), [O, F] = C({ top: 0, left: 0 }), [j, D] = C(!1), b = f(() => {
|
|
75
|
+
const e = p.current;
|
|
76
|
+
if (!e) return;
|
|
77
|
+
const i = (e.closest(
|
|
78
|
+
".editor-equation"
|
|
79
|
+
) || e).getBoundingClientRect();
|
|
80
|
+
F({
|
|
81
|
+
top: i.bottom + 18,
|
|
82
|
+
left: i.left
|
|
83
|
+
}), D(!0);
|
|
84
|
+
}, []);
|
|
85
|
+
d(() => {
|
|
86
|
+
oe(n);
|
|
87
|
+
}, [n]), d(() => {
|
|
88
|
+
const e = () => {
|
|
89
|
+
l && u(!0);
|
|
90
|
+
};
|
|
91
|
+
return I.set(s, e), () => {
|
|
92
|
+
I.delete(s);
|
|
93
|
+
};
|
|
94
|
+
}, [l, s]);
|
|
95
|
+
const A = f(() => {
|
|
96
|
+
if (l) {
|
|
97
|
+
if (c) {
|
|
98
|
+
u(!1);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
b(), u(!0);
|
|
102
|
+
}
|
|
103
|
+
}, [l, c, b]), k = f(() => {
|
|
104
|
+
const e = m.trim();
|
|
105
|
+
n.update(() => {
|
|
106
|
+
const t = v(s);
|
|
107
|
+
if (P(t)) {
|
|
108
|
+
if (t.isInline && t.isInline() && e === "") {
|
|
109
|
+
t.remove();
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
t.setEquation(e);
|
|
113
|
+
}
|
|
114
|
+
}), u(!1);
|
|
115
|
+
}, [n, s, m]), q = f(() => {
|
|
116
|
+
if (!r && a) {
|
|
117
|
+
n.update(() => {
|
|
118
|
+
const e = v(s);
|
|
119
|
+
P(e) && e.remove();
|
|
120
|
+
}), u(!1);
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
x(r), r && u(!1);
|
|
124
|
+
}, [n, r, a, s]);
|
|
125
|
+
d(() => {
|
|
126
|
+
c || x(r);
|
|
127
|
+
}, [r, c]), d(() => {
|
|
128
|
+
if (!c) {
|
|
129
|
+
S(n.getRootElement()), D(!1);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
$(n.getRootElement()), b();
|
|
133
|
+
const e = window.requestAnimationFrame(() => {
|
|
134
|
+
const t = B.current;
|
|
135
|
+
if (!t) return;
|
|
136
|
+
const i = t.value.length;
|
|
137
|
+
t.focus(), t.setSelectionRange(i, i);
|
|
138
|
+
});
|
|
139
|
+
return () => {
|
|
140
|
+
window.cancelAnimationFrame(e), S(n.getRootElement());
|
|
141
|
+
};
|
|
142
|
+
}, [c, b]), d(() => {
|
|
143
|
+
if (!c) return;
|
|
144
|
+
const e = (t) => {
|
|
145
|
+
const i = t.target, g = p.current, y = document.querySelector(".equation-block__popup");
|
|
146
|
+
i && (g != null && g.contains(i) || y instanceof HTMLElement && y.contains(i)) || (a && !m.trim() && n.update(() => {
|
|
147
|
+
const L = v(s);
|
|
148
|
+
P(L) && L.remove();
|
|
149
|
+
}), u(!1));
|
|
150
|
+
};
|
|
151
|
+
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
152
|
+
}, [n, a, c, s, m]);
|
|
153
|
+
const h = (c ? m : r).trim(), R = h.length > 0;
|
|
154
|
+
d(() => {
|
|
155
|
+
const e = p.current;
|
|
156
|
+
if (!e) return;
|
|
157
|
+
const t = e.closest(".editor-equation"), i = h;
|
|
158
|
+
if (t) {
|
|
159
|
+
if (!i) {
|
|
160
|
+
t.removeAttribute("data-lexical-equation");
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
try {
|
|
164
|
+
const g = btoa(unescape(encodeURIComponent(i)));
|
|
165
|
+
t.setAttribute("data-lexical-equation", g);
|
|
166
|
+
} catch {
|
|
167
|
+
t.setAttribute("data-lexical-equation", i);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}, [h]);
|
|
171
|
+
const z = a && !l ? /* @__PURE__ */ o("span", { className: "equation-inline-trigger", children: /* @__PURE__ */ o(_, { onError: (e) => {
|
|
172
|
+
var t;
|
|
173
|
+
return (t = n._onError) == null ? void 0 : t.call(n, e);
|
|
174
|
+
}, children: /* @__PURE__ */ o(
|
|
175
|
+
w,
|
|
176
|
+
{
|
|
177
|
+
equation: r,
|
|
178
|
+
inline: a,
|
|
179
|
+
onDoubleClick: A
|
|
180
|
+
}
|
|
181
|
+
) }) }) : a ? /* @__PURE__ */ o(
|
|
182
|
+
"span",
|
|
183
|
+
{
|
|
184
|
+
className: `equation-inline-trigger${R ? "" : " equation-inline-trigger--empty"}`,
|
|
185
|
+
onClick: A,
|
|
186
|
+
ref: p,
|
|
187
|
+
children: R ? /* @__PURE__ */ o(_, { onError: (e) => {
|
|
188
|
+
var t;
|
|
189
|
+
return (t = n._onError) == null ? void 0 : t.call(n, e);
|
|
190
|
+
}, children: /* @__PURE__ */ o(
|
|
191
|
+
w,
|
|
192
|
+
{
|
|
193
|
+
equation: h,
|
|
194
|
+
inline: a,
|
|
195
|
+
onDoubleClick: A
|
|
196
|
+
}
|
|
197
|
+
) }) : /* @__PURE__ */ E("span", { className: "equation-inline-placeholder", children: [
|
|
198
|
+
/* @__PURE__ */ o(X, { icon: Y, size: 24 }),
|
|
199
|
+
/* @__PURE__ */ o("span", { children: "New equation" })
|
|
200
|
+
] })
|
|
201
|
+
}
|
|
202
|
+
) : /* @__PURE__ */ o("div", { className: "equation-block", ref: p, children: /* @__PURE__ */ o(
|
|
203
|
+
"div",
|
|
204
|
+
{
|
|
205
|
+
className: "equation-block__container",
|
|
206
|
+
onClick: A,
|
|
207
|
+
style: { cursor: l ? "pointer" : "default" },
|
|
208
|
+
children: R ? /* @__PURE__ */ o(_, { onError: (e) => {
|
|
209
|
+
var t;
|
|
210
|
+
return (t = n._onError) == null ? void 0 : t.call(n, e);
|
|
211
|
+
}, children: /* @__PURE__ */ o(
|
|
212
|
+
w,
|
|
213
|
+
{
|
|
214
|
+
equation: h,
|
|
215
|
+
inline: a,
|
|
216
|
+
onDoubleClick: A
|
|
217
|
+
}
|
|
218
|
+
) }) : /* @__PURE__ */ o("div", { className: "equation-block__placeholder", children: "Add a TeX equation" })
|
|
219
|
+
}
|
|
220
|
+
) }), G = f(
|
|
221
|
+
(e) => {
|
|
222
|
+
e.stopPropagation(), x(e.currentTarget.value);
|
|
223
|
+
},
|
|
224
|
+
[]
|
|
225
|
+
), Q = f(
|
|
226
|
+
V({
|
|
227
|
+
onConfirm: k,
|
|
228
|
+
onCancel: q
|
|
229
|
+
}),
|
|
230
|
+
[k, q]
|
|
231
|
+
);
|
|
232
|
+
return /* @__PURE__ */ E(T, { children: [
|
|
233
|
+
z,
|
|
234
|
+
c && j && U(
|
|
235
|
+
/* @__PURE__ */ o(
|
|
236
|
+
"div",
|
|
237
|
+
{
|
|
238
|
+
className: "equation-block__popup",
|
|
239
|
+
style: {
|
|
240
|
+
position: "fixed",
|
|
241
|
+
top: O.top,
|
|
242
|
+
left: O.left,
|
|
243
|
+
zIndex: 103
|
|
244
|
+
},
|
|
245
|
+
children: /* @__PURE__ */ E("div", { className: "equation-block__editor", children: [
|
|
246
|
+
/* @__PURE__ */ o(
|
|
247
|
+
K,
|
|
248
|
+
{
|
|
249
|
+
autosize: !0,
|
|
250
|
+
minRows: 2,
|
|
251
|
+
variant: "unstyled",
|
|
252
|
+
value: m,
|
|
253
|
+
onChange: G,
|
|
254
|
+
onKeyDown: Q,
|
|
255
|
+
placeholder: "x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}",
|
|
256
|
+
classNames: {
|
|
257
|
+
wrapper: "equation-block__textarea-wrapper"
|
|
258
|
+
},
|
|
259
|
+
autoFocus: !0,
|
|
260
|
+
ref: B
|
|
261
|
+
}
|
|
262
|
+
),
|
|
263
|
+
/* @__PURE__ */ E(ee, { justify: "flex-end", gap: "sm", children: [
|
|
264
|
+
/* @__PURE__ */ o(H, { variant: "subtle", color: "gray", onClick: q, children: "Cancel" }),
|
|
265
|
+
/* @__PURE__ */ o(H, { onClick: k, children: "Save" })
|
|
266
|
+
] })
|
|
267
|
+
] })
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
document.body
|
|
271
|
+
)
|
|
272
|
+
] });
|
|
273
|
+
}
|
|
274
|
+
export {
|
|
275
|
+
pe as default
|
|
276
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./layers.orP2yP91.js");require("./layers.Umldr18w.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const pt=require("./layers.B19hGmey.js"),mt=require("./layers.BIeVwYKL.js");function rt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function ft(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function kt(t){return t.target.depth}function _t(t){return t.depth}function xt(t,n){return n-1-t.height}function yt(t,n){return t.sourceLinks.length?t.depth:n-1}function vt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ft(t.sourceLinks,kt)-1:0}function G(t){return function(){return t}}function ot(t,n){return Y(t.source,n.source)||t.index-n.index}function lt(t,n){return Y(t.target,n.target)||t.index-n.index}function Y(t,n){return t.y0-n.y0}function J(t){return t.value}function bt(t){return t.index}function wt(t){return t.nodes}function St(t){return t.links}function at(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ct({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Lt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=bt,i=yt,o,c,m=wt,b=St,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return A(e),E(e),T(e),C(e),S(e),ct(e),e}x.update=function(e){return ct(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:G(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:G(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:G(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:G(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function A({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=at(l,k)),typeof v!="object"&&(v=r.target=at(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function E({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function T({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function C({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function O({nodes:e}){const f=rt(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=ft(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;r<l.length;++r){const k=l[r];k.y0+=h*(r+1),k.y1+=h*(r+1)}$(l)}}function S(e){const f=O(e);g=Math.min(_,(a-n)/(rt(f,l=>l.length)-1)),j(f);for(let l=0;l<y;++l){const h=Math.pow(.99,l),r=Math.max(1-h,(l+1)/y);D(f,h,r),N(f,h,r)}}function N(e,f,l){for(let h=1,r=e.length;h<r;++h){const k=e[h];for(const v of k){let R=0,z=0;for(const{source:W,value:K}of v.targetLinks){let F=K*(v.layer-W.layer);R+=M(W,v)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(Y),P(k,l)}}function D(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(Y),P(k,l)}}function P(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),I(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),I(e,n,0,f)}function I(e,f,l,h){for(;l<e.length;++l){const r=e[l],k=(f-r.y0)*h;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(lt);for(const{target:{targetLinks:l}}of e)l.sort(ot)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(lt),l.sort(ot)}function M(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,B=1e-6,Et=et-B;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function dt(){return new nt}nt.prototype=dt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>B)if(!(Math.abs(c*p-i*o)>B)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,A=b*b+y*y,E=Math.sqrt(x),T=Math.sqrt(m),C=u*Math.tan((tt-Math.acos((x+m-A)/(2*E*T)))/2),O=C/T,j=C/E;Math.abs(O-1)>B&&(this._+="L"+(t+O*o)+","+(n+O*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>B||Math.abs(this._y1-o)>B)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>Et?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>B&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ut(t){return function(){return t}}function At(t){return t[0]}function Tt(t){return t[1]}var Mt=Array.prototype.slice;function Nt(t){return t.source}function Ct(t){return t.target}function Pt(t){var n=Nt,s=Ct,a=At,u=Tt,_=null;function g(){var p,i=Mt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=dt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ut(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ut(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function It(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Ot(){return Pt(It)}function $t(t){return[t.source.x1,t.y0]}function Dt(t){return[t.target.x0,t.y1]}function jt(){return Ot().source($t).target(Dt)}var it=(function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var A=y.length-1;switch(b){case 7:const E=m.findOrCreateNode(y[A-4].trim().replaceAll('""','"')),T=m.findOrCreateNode(y[A-2].trim().replaceAll('""','"')),C=parseFloat(y[A].trim());m.addLink(E,T,C);break;case 8:case 9:case 11:this.$=y[A];break;case 10:this.$=y[A-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,A="",E=0,T=0,C=2,O=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),N={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(N.yy[D]=this.yy[D]);S.setInput(i,N.yy),N.yy.lexer=S,N.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var P=S.yylloc;y.push(P);var I=S.options&&S.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||O,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,M,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?M=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),M=x[$]&&x[$][w]),typeof M>"u"||!M.length||!M[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>C&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(E+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./layers.DgvrVyqi.js");require("./layers.DT9rsUtv.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const pt=require("./layers.B19hGmey.js"),mt=require("./layers.BIeVwYKL.js");function rt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function ft(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function kt(t){return t.target.depth}function _t(t){return t.depth}function xt(t,n){return n-1-t.height}function yt(t,n){return t.sourceLinks.length?t.depth:n-1}function vt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ft(t.sourceLinks,kt)-1:0}function G(t){return function(){return t}}function ot(t,n){return Y(t.source,n.source)||t.index-n.index}function lt(t,n){return Y(t.target,n.target)||t.index-n.index}function Y(t,n){return t.y0-n.y0}function J(t){return t.value}function bt(t){return t.index}function wt(t){return t.nodes}function St(t){return t.links}function at(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ct({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Lt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=bt,i=yt,o,c,m=wt,b=St,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return A(e),E(e),T(e),C(e),S(e),ct(e),e}x.update=function(e){return ct(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:G(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:G(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:G(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:G(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function A({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=at(l,k)),typeof v!="object"&&(v=r.target=at(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function E({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function T({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function C({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function O({nodes:e}){const f=rt(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=ft(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;r<l.length;++r){const k=l[r];k.y0+=h*(r+1),k.y1+=h*(r+1)}$(l)}}function S(e){const f=O(e);g=Math.min(_,(a-n)/(rt(f,l=>l.length)-1)),j(f);for(let l=0;l<y;++l){const h=Math.pow(.99,l),r=Math.max(1-h,(l+1)/y);D(f,h,r),N(f,h,r)}}function N(e,f,l){for(let h=1,r=e.length;h<r;++h){const k=e[h];for(const v of k){let R=0,z=0;for(const{source:W,value:K}of v.targetLinks){let F=K*(v.layer-W.layer);R+=M(W,v)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(Y),P(k,l)}}function D(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(Y),P(k,l)}}function P(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),I(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),I(e,n,0,f)}function I(e,f,l,h){for(;l<e.length;++l){const r=e[l],k=(f-r.y0)*h;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(lt);for(const{target:{targetLinks:l}}of e)l.sort(ot)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(lt),l.sort(ot)}function M(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,B=1e-6,Et=et-B;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function dt(){return new nt}nt.prototype=dt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>B)if(!(Math.abs(c*p-i*o)>B)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,A=b*b+y*y,E=Math.sqrt(x),T=Math.sqrt(m),C=u*Math.tan((tt-Math.acos((x+m-A)/(2*E*T)))/2),O=C/T,j=C/E;Math.abs(O-1)>B&&(this._+="L"+(t+O*o)+","+(n+O*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>B||Math.abs(this._y1-o)>B)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>Et?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>B&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ut(t){return function(){return t}}function At(t){return t[0]}function Tt(t){return t[1]}var Mt=Array.prototype.slice;function Nt(t){return t.source}function Ct(t){return t.target}function Pt(t){var n=Nt,s=Ct,a=At,u=Tt,_=null;function g(){var p,i=Mt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=dt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ut(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ut(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function It(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Ot(){return Pt(It)}function $t(t){return[t.source.x1,t.y0]}function Dt(t){return[t.target.x0,t.y1]}function jt(){return Ot().source($t).target(Dt)}var it=(function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var A=y.length-1;switch(b){case 7:const E=m.findOrCreateNode(y[A-4].trim().replaceAll('""','"')),T=m.findOrCreateNode(y[A-2].trim().replaceAll('""','"')),C=parseFloat(y[A].trim());m.addLink(E,T,C);break;case 8:case 9:case 11:this.$=y[A];break;case 10:this.$=y[A-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,A="",E=0,T=0,C=2,O=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),N={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(N.yy[D]=this.yy[D]);S.setInput(i,N.yy),N.yy.lexer=S,N.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var P=S.yylloc;y.push(P);var I=S.options&&S.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||O,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,M,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?M=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),M=x[$]&&x[$][w]),typeof M>"u"||!M.length||!M[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>C&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(E+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(E+1)+": Unexpected "+(w==O?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:P,expected:r})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+w);switch(M[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(M[1]),w=null,T=S.yyleng,A=S.yytext,E=S.yylineno,P=S.yylloc;break;case 2:if(l=this.productions_[M[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},I&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[A,T,E,N.yy,M[1],b,y].concat(j)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[M[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=(function(){var p={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=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),c.length-1&&(this.yylineno-=c.length-1);var b=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:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),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(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { J as Sn } from "./layers.
|
|
2
|
-
import { ab as Qe, ac as _n, ad as je, ae as $e, af as Je, ag as ne, ah as Yn, a as Un, s as Fn, n as En, o as Ln, b as An, c as Wn, g as Dt, d as Rt, e as In, ai as nt, l as $t, j as On, q as Hn, u as Nn } from "./layers.
|
|
3
|
-
import {
|
|
1
|
+
import { J as Sn } from "./layers.D_RUDzWv.js";
|
|
2
|
+
import { ab as Qe, ac as _n, ad as je, ae as $e, af as Je, ag as ne, ah as Yn, a as Un, s as Fn, n as En, o as Ln, b as An, c as Wn, g as Dt, d as Rt, e as In, ai as nt, l as $t, j as On, q as Hn, u as Nn } from "./layers.Te010ICg.js";
|
|
3
|
+
import { o as Te } from "./layers.MmOx3Q5y.js";
|
|
4
4
|
import "lodash-es/memoize.js";
|
|
5
5
|
import "lodash-es/merge.js";
|
|
6
6
|
import "lodash-es/isEmpty.js";
|
|
7
|
-
import { b as Vn, t as Fe, c as Pn, a as zn, l as Rn } from "./layers.
|
|
7
|
+
import { b as Vn, t as Fe, c as Pn, a as zn, l as Rn } from "./layers.2sxk2h9p.js";
|
|
8
8
|
import { i as qn } from "./layers.DjUOC4st.js";
|
|
9
9
|
function Bn(t, e) {
|
|
10
10
|
let n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as t, N as r } from "./layers.
|
|
2
|
-
import "./layers.
|
|
1
|
+
import { C as t, N as r } from "./layers.DtD3skoW.js";
|
|
2
|
+
import "./layers.D_RUDzWv.js";
|
|
3
3
|
var m = import.meta.url ? new URL(import.meta.url) : void 0;
|
|
4
4
|
typeof window > "u" && typeof self < "u" && (self.onmessage = async (a) => {
|
|
5
5
|
switch (a.data.command) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./layers.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./layers.CFHq5644.js"),o=require("./layers.DWAsYusl.js"),t=require("./layers.DgvrVyqi.js");require("lodash-es");require("./layers.BLd2spTm.js");require("./layers.Cyzu9PKQ.js");require("./layers.DT9rsUtv.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const a={parser:e.parser$1,db:e.flowDb,renderer:o.flowRendererV2,styles:o.flowStyles,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,t.setConfig({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),o.flowRendererV2.setConf(r.flowchart),e.flowDb.clear(),e.flowDb.setGen("gen-2")}};exports.diagram=a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./layers.
|
|
1
|
+
import "./layers.D_RUDzWv.js";
|
|
2
2
|
var u = { paste: "चिपकाएँ", pasteAsPlaintext: "सादे पाठ के रूप में चिपकाएं", pasteCharts: "चार्ट चिपकाएँ", selectAll: "सभी चुनें", multiSelect: "आकार को चयन में जोड़ें", moveCanvas: "कैनवास को स्थानांतरित करें", cut: "काटें", copy: "प्रतिलिपि", copyAsPng: "क्लिपबोर्ड पर कॉपी करें ,पीएनजी के रूप में", copyAsSvg: "क्लिपबोर्ड पर कॉपी करें,एसवीजी के रूप में", copyText: "लेखन के रूप में पटल पर कॉपी करें", copySource: "स्त्रोत को प्रति-फलक पे प्रतिलिपित करे.", convertToCode: "सांकेतिक लिपि में परिवर्तित करे", bringForward: "सामने लाएं", sendToBack: "पीछे भेजें", bringToFront: "सामने लाएँ", sendBackward: "पीचे भीजे", delete: "मिटाए", copyStyles: "कॉपी स्टाइल", pasteStyles: "स्टाइल पेस्ट करें", stroke: "रेखा", background: "पृष्ठभूमि", fill: "भरें", strokeWidth: "रेखा की चौड़ाई", strokeStyle: "स्ट्रोक का आकार", strokeStyle_solid: "ठोस", strokeStyle_dashed: "डैश", strokeStyle_dotted: "बिंदीदार", sloppiness: "बेढ़ंगापन", opacity: "अपारदर्शिता", textAlign: "टेक्स्ट संरेखन", edges: "किनारा", sharp: "नुकीला", round: "गोल", arrowheads: "तीर शीर्ष", arrowhead_none: "कोई भी नहीं", arrowhead_arrow: "तीर", arrowhead_bar: "बार", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "त्रिकोण", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "फ़ॉन्ट का आकार", fontFamily: "फ़ॉन्ट का परिवार", addWatermark: 'ऐड "मेड विथ एक्सकैलिडराव"', handDrawn: "हाथ से बनाया हुआ", normal: "साधारण", code: "कोड", small: "छोटा", medium: "मध्यम", large: "बड़ा", veryLarge: "बहुत बड़ा", solid: "दृढ़", hachure: "हैशूर", zigzag: "तेढ़ी मेढ़ी", crossHatch: "क्रॉस हैच", thin: "पतला", bold: "मोटा", left: "बाएं", center: "मध्य", right: "दाएँ", extraBold: "बहुत मोटा", architect: "वास्तुकार", artist: "कलाकार", cartoonist: "व्यंग्य चित्रकार", fileTitle: "फ़ाइल का नाम", colorPicker: "रंग चयन", canvasColors: "कॅनवास पर प्रयोगित", canvasBackground: "कैनवास बैकग्राउंड", drawingCanvas: "कैनवास बना रहे हैं", layers: "परतें", actions: "कार्रवाई", language: "भाषा", liveCollaboration: "जीवंत सहयोग...", duplicateSelection: "डुप्लिकेट", untitled: "अशीर्षित", name: "नाम", yourName: "आपका नाम", madeWithExcalidraw: "मेड विथ एक्सकैलिडराव", group: "समूह चयन", ungroup: "समूह चयन असमूहीकृत करें", collaborators: "सहयोगी", showGrid: "ग्रिड दिखाएं", addToLibrary: "लाइब्रेरी से जोड़ें", removeFromLibrary: "लाइब्रेरी से निकालें", libraryLoadingMessage: "लाइब्रेरी खुल रही है", libraries: "लाइब्रेरी ब्राउज़ करें", loadingScene: "दृश्य खुल रहा है", align: "संरेखित करें", alignTop: "ऊपर संरेखित करें", alignBottom: "नीचे संरेखित करें", alignLeft: "बायें संरेखित करें", alignRight: "दायें संरेखित करें", centerVertically: "लंबवत केन्द्रित", centerHorizontally: "क्षैतिज केन्द्रित", distributeHorizontally: "क्षैतिज रूप से वितरित करें", distributeVertically: "खड़ी रूप से वितरित करें", flipHorizontal: "दायें बायें पलटे", flipVertical: "ऊपर नीचे पलटे", viewMode: "अलग अलग देखें", share: "शेयर करें", showStroke: "", showBackground: "पृष्ठभूमि रंग वरक़ दिखाये", toggleTheme: "", personalLib: "वैयक्तिक समूहकोष", excalidrawLib: "एक्सकेलीड्रॉ समूहकोष", decreaseFontSize: "आकार घटाइऐ", increaseFontSize: "फ़ॉन्ट आकार बढ़ाएँ", unbindText: "लिपि को बंधमुक्त करें", bindText: "लेखन को कोश से जोड़े", createContainerFromText: "मूलपाठ कंटेनर में मोड के दिखाए", link: { edit: "कड़ी संपादित करे", editEmbed: "", create: "", createEmbed: "", label: "", labelEmbed: "", empty: "" }, lineEditor: { edit: "रेखा संपादित करे", exit: "रेखा संपादक के बाहर" }, elementLock: { lock: "ताले में रखें", unlock: "ताले से बाहर", lockAll: "सब ताले के अंदर रखे", unlockAll: "सब ताले के बाहर निकाले" }, statusPublished: "प्रकाशित", sidebarLock: "साइडबार खुला रखे.", selectAllElementsInFrame: "", removeAllElementsFromFrame: "", eyeDropper: "चित्रफलक से रंग चुने", textToDiagram: "", prompt: "" }, E = { noItems: "अभी तक कोई आइटम जोडा नहीं गया.", hint_emptyLibrary: "यहाँ जोड़ने के लिए पटल से एक वस्तु चुने, अथवा जन कोष से एक संग्रह नीचे स्थापित करें.", hint_emptyPrivateLibrary: "यहाँ जोड़ने के लिए पटल से एक वस्तु चुने." }, F = { clearReset: "कैनवास रीसेट करें", exportJSON: "", exportImage: "प्रतिमा निर्यात करे...", export: "यंहा सुरक्षित करे...", copyToClipboard: "क्लिपबोर्ड पर प्रतिलिपि बनाएँ", save: "", saveAs: "सेव करे इस तरह", load: "खोलें", getShareableLink: "साझा करने योग्य लिंक प्राप्त करें", close: "बंद करें", selectLanguage: "भाषा चुनें", scrollBackToContent: "सामग्री पर वापस स्क्रॉल करें", zoomIn: "बड़ा करें", zoomOut: "छोटा करें", resetZoom: "ज़ूम रीसेट करें", menu: "मेन्यू", done: "समाप्त", edit: "संशोधन करें", undo: "पूर्ववत् करें", redo: "फिर से करें", resetLibrary: "", createNewRoom: "एक नया कमरा बनाएं", fullScreen: "पूरी स्क्रीन", darkMode: "डार्क मोड", lightMode: "लाइट मोड", zenMode: "ज़ेन मोड", objectsSnapMode: "वस्तुओं से पकड़े", exitZenMode: "जेन मोड से बाहर निकलें", cancel: "", clear: "साफ़ करे", remove: "हटाएं", embed: "", publishLibrary: "प्रकाशित करें", submit: "प्रस्तुत करे", confirm: "पुष्टि करें", embeddableInteractionButton: "" }, e = { clearReset: "इससे पूरा कैनवास साफ हो जाएगा। क्या आपको यकीन है?", couldNotCreateShareableLink: "साझा करने योग्य लिंक नहीं बनाया जा सका।", couldNotCreateShareableLinkTooBig: "लिंक शेयर नहीं कर सकता: दृश्य बहुत बड़ा", couldNotLoadInvalidFile: "अमान्य फ़ाइल लोड नहीं की जा सकी", importBackendFailed: "बैकएंड से आयात करना विफल रहा।", cannotExportEmptyCanvas: "खाली कैनवास निर्यात नहीं कर सकता।", couldNotCopyToClipboard: "क्लिपबोर्ड पर कॉपी नहीं किया जा सका", decryptFailed: "डेटा को डिक्रिप्ट नहीं किया जा सका।", uploadedSecurly: "अपलोड को एंड-टू-एंड एन्क्रिप्शन के साथ सुरक्षित किया गया है, जिसका मतलब है कि एक्सक्लूसिव सर्वर और थर्ड पार्टी कंटेंट नहीं पढ़ सकते हैं।", loadSceneOverridePrompt: "लोड हो रहा है बाहरी ड्राइंग आपके मौजूदा सामग्री को बदल देगा। क्या आप जारी रखना चाहते हैं?", collabStopOverridePrompt: "चालू सत्र समाप्ति से आपका संग्रहित पूर्व स्थानीय अधिलेखन नष्ट होकर पुनः अधिलेखित होगा, क्या आपको यक़ीन हैं? ( यदी आपको पूर्व स्थापित अधिलेखन सुरक्षित चाहिये तो बस ब्राउज़र टैब बंद करे)", errorAddingToLibrary: "संग्रह में जोडा न जा सका", errorRemovingFromLibrary: "संग्रह से हटाया नहीं जा सका", confirmAddLibrary: "लाइब्रेरी जोड़ें पुष्टि करें आकार संख्या", imageDoesNotContainScene: "ऐसा लगता है कि इस छवि में कोई दृश्य डेटा नहीं है। क्या आपने निर्यात के दौरान दृश्य एम्बेडिंग अनुमतित की है?", cannotRestoreFromImage: "छवि फ़ाइल बहाल दृश्य नहीं है", invalidSceneUrl: "दिये गये युआरेल से दृश्य आयात नहीं किया जा सका. यह या तो अनुचित है, या इसमें उचित Excalidraw JSON डेटा नहीं है।", resetLibrary: "यह पूरा संग्रह रिक्त करेगा. क्या आपको यक़ीन हैं?", removeItemsFromsLibrary: "{{count}} वस्तु(यें) संग्रह से हटायें?", invalidEncryptionKey: "कूटलेखन कुंजी 22 अक्षरों की होनी चाहिये, इसलिये जीवंत सहयोग अक्षम हैं", collabOfflineWarning: `कोई इंटरनेट कनेक्शन उपलब्ध नहीं है।
|
|
3
3
|
आपके बदलाव सहेजे नहीं जाएंगे!` }, D = { unsupportedFileType: "असमर्थित फाइल प्रकार", imageInsertError: "छवि सम्मिलित नहीं की जा सकी. पुनः प्रयत्न करे...", fileTooBig: "फ़ाइल ज़रूरत से ज़्यादा बड़ी हैं. अधिकतम अनुमित परिमाण {{maxSize}} हैं", svgImageInsertError: "एसवीजी छवि सम्मिलित नहीं कर सके, एसवीजी रचना अनुचित हैं", failedToFetchImage: "", invalidSVGString: "अनुचित SVG", cannotResolveCollabServer: "कॉलेब सर्वर से कनेक्शन नहीं हो पा रहा. कृपया पृष्ठ को पुनः लाने का प्रयास करे.", importLibraryError: "संग्रह प्रतिष्ठापित नहीं किया जा सका", collabSaveFailed: "किसी कारण वश अंदरूनी डेटाबेस में सहेजा नहीं जा सका। यदि समस्या बनी रहती है, तो किये काम को खोने न देने के लिये अपनी फ़ाइल को स्थानीय रूप से सहेजे।", collabSaveFailed_sizeExceeded: "लगता है कि पृष्ठ तल काफ़ी बड़ा है, इस्कारण अंदरूनी डेटाबेस में सहेजा नहीं जा सका। किये काम को खोने न देने के लिये अपनी फ़ाइल को स्थानीय रूप से सहेजे।", imageToolNotSupported: "प्रतिमायें अक्षम की गयी हैं", brave_measure_text_error: { line1: "लगता है कि आप Brave ब्राउज़र का उपयोग कर रहे और साथ में <bold>आक्रामक उँगलियो के छाप </bold> का चयन किया हुवा है", line2: "यह आपके चित्रों के <bold>पाठ तत्वों</bold>को खंडित कर सकता हैं", line3: "हमें आपसे ठोस आग्रह है की आप सेट्टिंग में इस विकल्प का चयन ना करे.<link> इस अनुक्रम </link> का पालन करके इसका पता लगा सकते हैं", line4: "यदि इस सेटिंग्स को अक्षम करने पर भी पृष्ठ ठीक नहीं दिखता हो तो, हमारे GitHub पर एक <issueLink>मुद्दा प्रस्तुत</issueLink> करे, या हमें <discordLink>डिस्कोर्ड</discordLink> पर लिखित सम्पर्क करें" }, libraryElementTypeError: { embeddable: "", iframe: "आयफ़्रेम तत्व समूहकोष में जोडा नहीं जा सका.", image: "" }, asyncPasteFailedOnRead: "चिपकाया नहीं जा सका (सिस्टम क्लिपबोर्ड से पढ़ा नहीं जा सका).", asyncPasteFailedOnParse: "चिपकाया नहीं जा सका.", copyToSystemClipboardFailed: "क्लिपबोर्ड पर प्रतिलिपि नहीं बनाई जा सकी." }, o = { selection: "चयन", image: "छवि सम्मिलित करें", rectangle: "आयात", diamond: "तिर्यग्वर्ग", ellipse: "दीर्घवृत्त", arrow: "तीर", line: "रेखा", freedraw: "चित्रांतित करे", text: "पाठ", library: "लाइब्रेरी", lock: "ड्राइंग के बाद चयनित टूल को सक्रिय रखें", penMode: "पेन का मोड - स्पर्श टाले", link: "", eraser: "रबड़", frame: "", magicframe: "तारिक ढाँचें को सांकेतिक लिपि में", embeddable: "", laser: "लेसर टॉर्च", hand: "हाथ ( खिसकाने का औज़ार)", extraTools: "", mermaidToExcalidraw: "मर्मेड से एक्सकाली में", magicSettings: "कृतिम बुद्धिमत्ता सेटिंग्स" }, a = { canvasActions: "कैनवास क्रिया", selectedShapeActions: "चयनित आकृति क्रियाएं", shapes: "आकृतियाँ" }, r = { canvasPanning: "कैनवास को सरकाने के लिए, ड्रैग करते समय माउस व्हील को पकड़े रखे या स्पेसबार को दबाए रखे, अथवा हाथ वाले औज़ार का उपयोग करें", linearElement: "कई बिंदुओं को शुरू करने के लिए क्लिक करें, सिंगल लाइन के लिए खींचें", freeDraw: "क्लिक करें और खींचें। समाप्त करने के लिए, छोड़ो", text: "आप चयन टूल से कहीं भी डबल-क्लिक करके टेक्स्ट जोड़ सकते हैं", embeddable: "", text_selected: "", text_editing: "", linearElementMulti: "अंतिम बिंदु पर क्लिक करें या समाप्त होने के लिए एस्केप या एंटर दबाएं", lockAngle: "आप घूर्णन करते समय SHIFT पकड़कर कोणों को मोड़ सकते हैं", resize: `आकार बदलते समय आप SHIFT को पकड़ कर अनुपात में कमी कर सकते हैं,
|
|
4
4
|
केंद्र से आकार बदलने के लिए ALT दबाए रखें`, resizeImage: "", rotate: "आप घूर्णन करते समय SHIFT पकड़कर कोणों को विवश कर सकते हैं", lineEditor_info: "बिंदुओं को सम्पादित करने के लिए CtrlOrCmd को दबायें रखते हुये डबल क्लिक करे, अथवा CtrlOrCmd + Enter साथ दबाये", lineEditor_pointSelected: "", lineEditor_nothingSelected: "", placeImage: "", publishLibrary: "", bindTextToElement: "", deepBoxSelect: "", eraserRevert: "मिटाने के लिए चुने हुए चीजों को ना चुनने के लिए Alt साथ में दबाए", firefox_clipboard_write: '"dom.events.asyncClipboard.clipboardItem" फ़्लैग को "true" पर सेट करके इस सुविधा को संभवतः सक्षम किया जा सकता है। Firefox में ब्राउज़र फ़्लैग बदलने के लिए, "about:config" पृष्ठ पर जाएँ।', disableSnapping: "स्नैपिंग को निष्क्रिय करने के लिए CtrlOrCmd दबाए रखें" }, t = { cannotShowPreview: "पूर्वावलोकन नहीं दिखा सकते हैं", canvasTooBig: "कैनवास बहुत बड़ा", canvasTooBigTip: "कैनवास बहुत बड़ा टिप" }, i = { headingMain: "एक त्रुटि का सामना करना पड़ा। प्रयत्न <button>इस पृष्ठ को पुनः लोड करें</button>", clearCanvasMessage: "यदि पुनः लोड करना काम नहीं करता है, तो प्रयास करें <button>कैनवास साफ करना।</button>", clearCanvasCaveat: " इससे काम का नुकसान होगा ", trackedToSentry: "पहचानकर्ता के साथ त्रुटि {{eventId}} हमारे सिस्टम पर नज़र रखी गई थी।", openIssueMessage: "हम बहुत सतर्क थे कि त्रुटि पर आपकी दृश्य जानकारी शामिल न करें। यदि आपका दृश्य निजी नहीं है, तो कृपया हमारे बारे में विचार करें <button>बग ट्रैकर</button> कृपया GitHub मुद्दे को कॉपी और पेस्ट करके नीचे दी गई जानकारी शामिल करें।", sceneContent: "दृश्य सामग्री:" }, A = { desc_intro: "आप अपने वर्तमान दृश्य के लोगों को अपने साथ सहयोग करने के लिए आमंत्रित कर सकते हैं।", desc_privacy: "चिंता न करें, सत्र अंत-से-अंत एन्क्रिप्शन का उपयोग करता है, इसलिए आप जो भी ड्रा करेंगे वह निजी रहेगा। यहां तक कि हमारा सर्वर भी नहीं देख पाएगा कि आप क्या कर रहे हैं।", button_startSession: "सत्र प्रारंभ करें", button_stopSession: "सत्र रुकें", desc_inProgressIntro: "लाइव सहयोग सत्र अब जारी है।", desc_shareLink: "इस लिंक को आप जिस किसी के साथ भी सहयोग करना चाहते हैं, उसके साथ साझा करें", desc_exitSession: "सत्र रोकना आपको रूम से बाहर कर देगा, लेकिन आप स्थानीय स्तर पर दृश्य के साथ काम करना जारी रख पाएंगे। ध्यान दें कि यह अन्य लोगों को प्रभावित नहीं करेगा, और वे अभी भी अपने संस्करण पर सहयोग करने में सक्षम होंगे।", shareTitle: "" }, l = { title: "गलती" }, n = { disk_title: "", disk_details: "", disk_button: "", link_title: "", link_details: "", link_button: "", excalidrawplus_description: "", excalidrawplus_button: "", excalidrawplus_exportError: "" }, C = { blog: "हमारा ब्लॉग पढे", click: "क्लिक करें", deepSelect: "", deepBoxSelect: "", curvedArrow: "वक्र तीर", curvedLine: "वक्र रेखा", documentation: "", doubleClick: "", drag: "खींचें", editor: "संपादक", editLineArrowPoints: "रेखा/तीर बिंदु सम्पादित करे", editText: "पाठ्य सम्पादित करे/ लेबल जोड़े", github: "मुद्दा मिला? प्रस्तुत करें", howto: "हमारे गाइड का पालन करें", or: "या", preventBinding: "तीर बंधन रोकें", tools: "औज़ार", shortcuts: "कीबोर्ड के शॉर्टकट्स", textFinish: "", textNewLine: "", title: "मदद", view: "दृश्य", zoomToFit: "सभी तत्वों को फिट करने के लिए ज़ूम करें", zoomToSelection: "चयन तक ज़ूम करे", toggleElementLock: "ताले के अंदर/बाहर चुनाव", movePageUpDown: "पृष्ठ ऊपर/नीचे करे", movePageLeftRight: "पृष्ठ बायी/दायी तरफ करे" }, s = { title: "" }, B = { title: "", itemName: "", authorName: "", githubUsername: "", twitterUsername: "", libraryName: "", libraryDesc: "", website: "", placeholder: { authorName: "", libraryName: "", libraryDesc: "", githubHandle: "", twitterHandle: "", website: "" }, errors: { required: "", website: "मान्य URL प्रविष्ट करें" }, noteDescription: "संग्रह सम्मिलित करने हेतु प्रस्तुत करें <link>सार्वजनिक संग्रहालय</link>अन्य वक्तियों को उनके चित्रकारी में उपयोग के लिये", noteGuidelines: "संग्रह को पहले स्वीकृति आवश्यक कृपया यह पढ़ें <link>दिशा-निर्देश</link>", noteLicense: "जमा करके, आप सहमत हैं कि संग्रहण को <link>MIT लाइसेंस</link> के तहत प्रकाशित किया जाएगा, जिसका संक्षिप्त अर्थ है कि कोई भी बिना किसी प्रतिबंध के उनका उपयोग कर सकता है।", noteItems: "", atleastOneLibItem: "", republishWarning: "टिप्पणी: कुछ चुने हुवे आइटम पहले ही प्रकाशित/प्रस्तुत किए जा चुके हैं। किसी प्रकाशित संग्रह को अद्यतन करते समय या पहले से प्रस्तुत आइटम को पुन्हा प्रस्तुत करते समय, आप बस उसे केवल अद्यतन करें ।" }, d = { title: "", content: "{{authorName}} धन्यवाद. आपका संग्रहण समीक्षा के लिए दर्ज हो चुका है. समीक्षा स्थिति <link>यहाँ</link>जान सकते हैं." }, c = { resetLibrary: "", removeItemsFromLib: "" }, b = { header: "", label: { withBackground: "", onlySelected: "", darkMode: "", embedScene: "", scale: "", padding: "" }, tooltip: { embedScene: "" }, title: { exportToPng: "", exportToSvg: "", copyPngToClipboard: "" }, button: { exportToPng: "", exportToSvg: "", copyPngToClipboard: "" } }, m = { tooltip: "आपके चित्र अंत-से-अंत एन्क्रिप्टेड हैं, इसलिए एक्सक्लूसिव्रॉव के सर्वर उन्हें कभी नहीं देखेंगे।", link: "" }, p = { angle: "कोण", element: "एलिमेंट", elements: "एलिमेंट", height: "ऊंचाई", scene: "दृश्य", selected: "चयनित", storage: "संग्रह", title: "बेवकूफ के लिए आँकड़े", total: "कुल", version: "संस्करण", versionCopy: "काॅपी करने के लिए क्लिक करें", versionNotAvailable: "संस्करण उपलब्ध नहीं है", width: "चौड़ाई" }, g = { addedToLibrary: "", copyStyles: "काॅपी कीए स्टाइल", copyToClipboard: "क्लिपबोर्ड में कॉपी कीए", copyToClipboardAsPng: "", fileSaved: "", fileSavedToFilename: "", canvas: "", selection: "", pasteAsSingleElement: `एक अवयव के रूप में चिपकाने के लिए {{shortcut}} का उपयोग करें,
|