Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore(web): draw Mermaid diagrams with Pele
johnnyjoyghbf67323d1d6e
diff --git a/web/package.json b/web/package.jsonindex 5803de326..57fca7b6e 100644--- a/web/package.json+++ b/web/package.json@@ -25,7 +25,7 @@"@tailwindcss/vite": "^4.2.4","@tanstack/react-query": "^5.100.9","@tanstack/react-query-devtools": "^5.100.9",- "@usememos/editor": "26.10.21",+ "@usememos/editor": "26.10.22","class-variance-authority": "^0.7.1","clsx": "^2.1.1","copy-to-clipboard": "^4.0.2",@@ -42,9 +42,9 @@"maplibre-gl": "^6.8.0","mdast-util-from-markdown": "^2.0.3","mdast-util-gfm": "^3.1.0",- "mermaid": "^11.14.0","micromark-extension-gfm": "^3.0.0","micromark-util-normalize-identifier": "^2.0.1",+ "pele": "1.6.0","react": "^19.2.6","react-dom": "^19.2.6","react-hot-toast": "^2.6.0",diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yamlindex 7d984e7c5..c3fd4c212 100644--- a/web/pnpm-lock.yaml+++ b/web/pnpm-lock.yaml@@ -36,8 +36,8 @@ importers:specifier: ^5.100.9'@usememos/editor':- specifier: 26.10.21+ specifier: 26.10.22class-variance-authority:specifier: ^0.7.1version: 0.7.1@@ -86,15 +86,15 @@ importers:mdast-util-gfm:specifier: ^3.1.0version: 3.1.0- mermaid:- specifier: ^11.14.0- version: 11.14.0micromark-extension-gfm:specifier: ^3.0.0version: 3.0.0micromark-util-normalize-identifier:specifier: ^2.0.1version: 2.0.1+ pele:+ specifier: 1.6.0+ version: 1.6.0react:specifier: ^19.2.6version: 19.2.6@@ -222,9 +222,6 @@ packages:'@adobe/[email protected]':resolution: {integrity: sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==}- '@antfu/[email protected]':- resolution: {integrity: sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==}-'@asamuzakjp/[email protected]':resolution: {integrity: sha512-KVw6qIiCTUQhByfTd78h2yD1/00waTmm9uy/R7Ck/ctUyAPj+AEDLkQIdJW0T8+qGgj3j5bpNKK7Q3G+LedJWg==}engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}@@ -407,9 +404,6 @@ packages:cpu: [x64]os: [win32]- '@braintree/[email protected]':- resolution: {integrity: sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==}-'@bramus/[email protected]':resolution: {integrity: sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==}hasBin: true@@ -417,21 +411,6 @@ packages:'@bufbuild/[email protected]':resolution: {integrity: sha512-B/XlCaFIP8LOwzo+bz5uFzATYokcwCKQcghqnlfwSmM5eX/qTkvDBnDPs+gXtX/RyjxJ4DRikECcPJbyALA8FA==}- '@chevrotain/[email protected]':- resolution: {integrity: sha512-fSL4KXjTl7cDgf0B5Rip9Q05BOrYvkJV/RrBTE/bKDN096E4hN/ySpcBK5B24T76dlQ2i32Zc3PAE27jFnFrKg==}-- '@chevrotain/[email protected]':- resolution: {integrity: sha512-1ne/m3XsIT8aEdrvT33so0GUC+wkctpUPK6zU9IlOyJLUbR0rg4G7ZiApiJbggpgPir9ERy3FRjT6T7lpgetnQ==}-- '@chevrotain/[email protected]':- resolution: {integrity: sha512-p+EW9MaJwgaHguhoqwOtx/FwuGr+DnNn857sXWOi/mClXIkPGl3rn7hGNWvo31HA3vyeQxjqe+H36yZJwYU8cA==}-- '@chevrotain/[email protected]':- resolution: {integrity: sha512-S+04vjFQKeuYw0/eW3U52LkAHQsB1ASxsPGsLPUyQgrZ2iNNibQrsidruDzjEX2JYfespXMG0eZmXlhA6z7nWA==}-- '@chevrotain/[email protected]':- resolution: {integrity: sha512-lB59uJoaGIfOOL9knQqQRfhl9g7x8/wqFkp13zTdkRu1huG9kg6IJs1O8hqj9rs6h7orGxHJUKb+mX3rPbWGhA==}-'@connectrpc/[email protected]':resolution: {integrity: sha512-J8317Q2MaFRCT1jzVR1o06bZhDIBmU0UAzWx6xOIXzOq8+k71/+k7MUF7AwcBUX+34WIvbm5syRgC5HXQA8fOg==}peerDependencies:@@ -515,12 +494,6 @@ packages:'@github/[email protected]':resolution: {integrity: sha512-L/2r0DNR/rMbmHWcsdmhtOiy2gESoGOhItNFD4zJ3nZfHl79Dx3N18Vfx/pYr2lruMOdk1cJZb4wEumm+Dxm1w==}- '@iconify/[email protected]':- resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}-- '@iconify/[email protected]':- resolution: {integrity: sha512-MwzoDtw9rO1x+qfgLTV/IVXsHDBqeYZoMIQC8SfxfYSlaSUG+oWiAcoiB1yajAda6mqblm4/1/w2E8tRu7a7Tw==}-'@jridgewell/[email protected]':resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}@@ -573,9 +546,6 @@ packages:'@maplibre/[email protected]':resolution: {integrity: sha512-j6p0AdjvAR19Z3XaCysle7A4ZSo08tYOzxD0Y9NQylwPAkwJJeYub5b2eVucdeDh7erhv69DahoLOevDRERRUw==}- '@mermaid-js/[email protected]':- resolution: {integrity: sha512-gxK9ZX2+Fex5zu8LhRQoMeMPEHbc73UKZ0FQ54YrQtUxE1VVhMwzeNtKRPAu5aXks4FasbMe4xB4bWrmq6Jlxw==}-'@napi-rs/[email protected]':resolution: {integrity: sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==}peerDependencies:@@ -868,99 +838,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}- '@types/[email protected]':- resolution: {integrity: sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==}-- '@types/[email protected]':- resolution: {integrity: sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==}-- '@types/[email protected]':- resolution: {integrity: sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==}-- '@types/[email protected]':- resolution: {integrity: sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==}-- '@types/[email protected]':- resolution: {integrity: sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==}-- '@types/[email protected]':- resolution: {integrity: sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==}-- '@types/[email protected]':- resolution: {integrity: sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==}-- '@types/[email protected]':- resolution: {integrity: sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==}-- '@types/[email protected]':- resolution: {integrity: sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==}-- '@types/[email protected]':- resolution: {integrity: sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==}-- '@types/[email protected]':- resolution: {integrity: sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==}-- '@types/[email protected]':- resolution: {integrity: sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==}-- '@types/[email protected]':- resolution: {integrity: sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==}-- '@types/[email protected]':- resolution: {integrity: sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==}-- '@types/[email protected]':- resolution: {integrity: sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==}-- '@types/[email protected]':- resolution: {integrity: sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==}-- '@types/[email protected]':- resolution: {integrity: sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==}-- '@types/[email protected]':- resolution: {integrity: sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==}-- '@types/[email protected]':- resolution: {integrity: sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==}-- '@types/[email protected]':- resolution: {integrity: sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==}-- '@types/[email protected]':- resolution: {integrity: sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==}-- '@types/[email protected]':- resolution: {integrity: sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==}-- '@types/[email protected]':- resolution: {integrity: sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==}-- '@types/[email protected]':- resolution: {integrity: sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==}-- '@types/[email protected]':- resolution: {integrity: sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==}-- '@types/[email protected]':- resolution: {integrity: sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==}-- '@types/[email protected]':- resolution: {integrity: sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==}-- '@types/[email protected]':- resolution: {integrity: sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==}-- '@types/[email protected]':- resolution: {integrity: sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==}-- '@types/[email protected]':- resolution: {integrity: sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==}-- '@types/[email protected]':- resolution: {integrity: sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==}-'@types/[email protected]':resolution: {integrity: sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==}@@ -1002,9 +879,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==}- '@types/[email protected]':- resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==}-'@types/[email protected]':resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==}@@ -1132,11 +1006,8 @@ packages:resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}deprecated: Potential CWE-502 - Update to 1.3.1 or higher- '@upsetjs/[email protected]':- resolution: {integrity: sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==}-- '@usememos/[email protected]':- resolution: {integrity: sha512-iD+8K1635YCW/0jjPWesH5RyLXeEJpo9U/HDXDaGtiuT3TYCTaiogfSWMfIBysgQsugL62+H31PcqcQ5CLk1Ng==}+ '@usememos/[email protected]':+ resolution: {integrity: sha512-Cd8BHuKDjyhwc4zJuWNmo0FjlvBVgBozb5fRn8oEJvPjr4whwJeOuwmR+DZT4wRaIe1Qc2J+UnxjMQQcm9GuvQ==}peerDependencies:react: '>=18'react-dom: '>=18'@@ -1188,11 +1059,6 @@ packages:'@vitest/[email protected]':resolution: {integrity: sha512-76wdkrmfXfqGjueGgnb45ITPyUi1ycZ4IHgC2bhPDUfWHklY/q3MdLOAB+TF1e6xfl8NxNY0ZYaPCFNWSsw3Ug==}- resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==}- engines: {node: '>=0.4.0'}- hasBin: true-resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}engines: {node: '>=8'}@@ -1244,15 +1110,6 @@ packages:resolution: {integrity: sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==}- resolution: {integrity: sha512-PvVJm3oGqrveUVW2Vt/eZGeiAIsJszYweUcYwcskg9e+IubNYKKD+rHHem7A6XVO22eDAL+inxNIGAzZ/VIWlA==}- peerDependencies:- chevrotain: ^12.0.0-- resolution: {integrity: sha512-csJvb+6kEiQaqo1woTdSAuOWdN0WTLIydkKrBnS+V5gZz0oqBrp4kQ35519QgK6TpBThiG3V1vNSHlIkv4AglQ==}- engines: {node: '>=22.0.0'}-resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}@@ -1263,17 +1120,10 @@ packages:resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==}- resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}- engines: {node: '>= 10'}-resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}engines: {node: '>= 12'}- resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}-resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}@@ -1284,12 +1134,6 @@ packages:resolution: {integrity: sha512-gklSft7IuhriZKHKpuoA1fpJSLPNgvUMWMo5BlnzAJm0zNKnznoSv23IjtNqclx8eKi6ZcdvFFzYEER/+U1LoQ==}- resolution: {integrity: sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==}-- resolution: {integrity: sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==}-resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==}engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}@@ -1300,162 +1144,6 @@ packages:resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}- resolution: {integrity: sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==}- peerDependencies:- cytoscape: ^3.2.0-- resolution: {integrity: sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==}- peerDependencies:- cytoscape: ^3.2.0-- resolution: {integrity: sha512-sj4HXd3DokGhzZAdjDejGvTPLqlt84vNFN8m7bGsOzDY5DyVcxIb2ejIXat2Iy7HxWhdT/N1oKyheJ5YdpsGuw==}- engines: {node: '>=0.10'}-- resolution: {integrity: sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==}-- resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==}- engines: {node: '>=12'}- hasBin: true-- resolution: {integrity: sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==}-- resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==}-- resolution: {integrity: sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==}-- resolution: {integrity: sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==}- engines: {node: '>=12'}- peerDependencies:- d3-selection: 2 - 3-- resolution: {integrity: sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==}- engines: {node: '>=12'}-- resolution: {integrity: sha512-P4rFMVq9ESWqmOgK+dlXvOtLwYg0i7u0HBGJER0LZDJT2VHIPAMZ/riPxqJceWMStH5+E61QxFra9kIS3AqdMg==}-resolution: {integrity: sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==}engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}@@ -1478,9 +1166,6 @@ packages:resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==}- resolution: {integrity: sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==}-resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}engines: {node: '>=6'}@@ -1498,9 +1183,6 @@ packages:resolution: {integrity: sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==}- resolution: {integrity: sha512-JahakDAIg1gyOm7dlgWSDjV4n7Ip2PKR55NIT6jrMfIgLFgWo81vdr1/QGqWtFNRqXP9UV71oVePtjqS2ebnPw==}-resolution: {integrity: sha512-vnS4AVwp1KHAF13i1vp1/2D5evWy3k5u/iW/B81QVsUZtV8cv2tU0b2VNFlqvh4kYwrFMDdjPCfAmfyJW9y14Q==}@@ -1572,9 +1254,6 @@ packages:resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}- resolution: {integrity: sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==}-resolution: {integrity: sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==}@@ -1618,21 +1297,10 @@ packages:typescript:optional: true- resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==}engines: {node: '>=8'}- resolution: {integrity: sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==}-- resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==}- engines: {node: '>=12'}-resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}engines: {node: '>=12'}@@ -1676,19 +1344,6 @@ packages:resolution: {integrity: sha512-e9vurzrXJQrFX6ckpHP3bvj5l+9CnYzkxDNnNQ1h2QTqdWsUAJgXiKdGNcOa1EY85dU8KbQ+z/FdQdB7P+9yfQ==}- resolution: {integrity: sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==}-- resolution: {integrity: sha512-JUshTRAfHI4/MF9dH2WupvjSXyn8JBuUEWazB8ZVJUtXutT0doDlAv1XKbZ1Pb5sMexa8FF4CFBc0iiul7gbUQ==}- engines: {node: '>=20.10.0', npm: '>=10.2.3'}-- resolution: {integrity: sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==}-- resolution: {integrity: sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==}-resolution: {integrity: sha512-vPTw/Bndq7eQHjLBVlWpnGeLa3t+3zGiuM7fJwCkiMFq+nmRuG3RI3f7f4N4TDX7T4NpbAXpR2+NTRSEGfCSeA==}peerDependencies:@@ -1803,11 +1458,6 @@ packages:resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==}- resolution: {integrity: sha512-TI3V8YYWvkVf3KJe1dRkpnjs68JUPyEa5vjKrp1XEEJUAOaQc+Qj+L1qWbPd0SJuAdQkFU0h73sXXqwDYxsiDA==}- engines: {node: '>= 20'}- hasBin: true-resolution: {integrity: sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==}@@ -1850,9 +1500,6 @@ packages:resolution: {integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==}- resolution: {integrity: sha512-GSGloRsBs+JINmmhl0JDwjpuezCsHB4WGI4NASHxL3fHo3o/BRXTxhDLKnln8/Q0lRFRyDdEjmk1/d5Sn1Xz8g==}-resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==}@@ -1944,9 +1591,6 @@ packages:resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}- resolution: {integrity: sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==}-resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}@@ -1964,18 +1608,12 @@ packages:resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==}- resolution: {integrity: sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==}-resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==}resolution: {integrity: sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==}- resolution: {integrity: sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==}-resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}@@ -1983,6 +1621,10 @@ packages:resolution: {integrity: sha512-mnvGdvOrIvJOBGUEdGkrVXjN8E/VkIJCkf2eS1DH2yv82ORUlLttmDt0rWY38yYZmVwciZwBUvHM20qxBZf40w==}hasBin: true+ resolution: {integrity: sha512-VfAiVItsOGlGhvnBfphdT28VCG7mXMZxQNOwAGsCtxI2ztbUsT39MraEOYjsapLxVETkdUZscm0DdotYDQMLdw==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}@@ -1990,15 +1632,6 @@ packages:resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==}engines: {node: '>=12'}- resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}-- resolution: {integrity: sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==}-- resolution: {integrity: sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g==}-resolution: {integrity: sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==}engines: {node: ^10 || ^12 || >=14}@@ -2126,23 +1759,11 @@ packages:resolution: {integrity: sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==}- resolution: {integrity: sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==}-resolution: {integrity: sha512-phmyKBpuBdRYDf4hgyynGAYn/rDDe+iZXKVJ7WX5b1zQzpLkP5oJRPGsfJuHdzPMlyyEO/4sPW6yfSx2gf7lVg==}engines: {node: ^20.19.0 || >=22.12.0}hasBin: true- resolution: {integrity: sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==}-- resolution: {integrity: sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==}-- resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}-resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==}engines: {node: '>=v12.22.7'}@@ -2177,9 +1798,6 @@ packages:resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==}engines: {node: '>=8'}- resolution: {integrity: sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==}-resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}@@ -2232,10 +1850,6 @@ packages:resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==}- resolution: {integrity: sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==}- engines: {node: '>=6.10'}-resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}@@ -2247,9 +1861,6 @@ packages:engines: {node: '>=16.20.0'}hasBin: true- resolution: {integrity: sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==}-resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==}@@ -2383,26 +1994,6 @@ packages:jsdom:optional: true- resolution: {integrity: sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==}- engines: {node: '>=14.0.0'}-- resolution: {integrity: sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==}-- resolution: {integrity: sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==}-- resolution: {integrity: sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==}-- resolution: {integrity: sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==}- hasBin: true-- resolution: {integrity: sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==}-resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==}engines: {node: '>=18'}@@ -2444,11 +2035,6 @@ snapshots:'@adobe/[email protected]': {}- '@antfu/[email protected]':- dependencies:- package-manager-detector: 1.6.0- tinyexec: 1.1.1-'@asamuzakjp/[email protected]':dependencies:'@asamuzakjp/generational-cache': 1.0.1@@ -2639,29 +2225,12 @@ snapshots:'@biomejs/[email protected]':optional: true- '@braintree/[email protected]': {}-'@bramus/[email protected]':dependencies:css-tree: 3.2.1'@bufbuild/[email protected](patch_hash=9d60cec35402ba36bc21a72fefc68ccef8db0acb883504cc47c05a00a0029f8c)': {}- '@chevrotain/[email protected]':- dependencies:- '@chevrotain/gast': 12.0.0- '@chevrotain/types': 12.0.0-- '@chevrotain/[email protected]':- dependencies:- '@chevrotain/types': 12.0.0-- '@chevrotain/[email protected]': {}-- '@chevrotain/[email protected]': {}-- '@chevrotain/[email protected]': {}-'@connectrpc/[email protected](@bufbuild/[email protected](patch_hash=9d60cec35402ba36bc21a72fefc68ccef8db0acb883504cc47c05a00a0029f8c))(@connectrpc/[email protected](@bufbuild/[email protected](patch_hash=9d60cec35402ba36bc21a72fefc68ccef8db0acb883504cc47c05a00a0029f8c)))':dependencies:'@bufbuild/protobuf': 2.12.0(patch_hash=9d60cec35402ba36bc21a72fefc68ccef8db0acb883504cc47c05a00a0029f8c)@@ -2732,14 +2301,6 @@ snapshots:'@github/[email protected]': {}- '@iconify/[email protected]': {}-- '@iconify/[email protected]':- dependencies:- '@antfu/install-pkg': 1.1.0- '@iconify/types': 2.0.0- mlly: 1.8.2-'@jridgewell/[email protected]':dependencies:'@jridgewell/sourcemap-codec': 1.5.5@@ -2802,10 +2363,6 @@ snapshots:'@types/geojson': 7946.0.16pbf: 5.1.2- '@mermaid-js/[email protected]':- dependencies:- langium: 4.2.2-dependencies:'@emnapi/core': 1.10.0@@ -3031,123 +2588,6 @@ snapshots:'@types/deep-eql': 4.0.2assertion-error: 2.0.1- '@types/[email protected]': {}-- '@types/[email protected]':- dependencies:- '@types/d3-selection': 3.0.11-- '@types/[email protected]':- dependencies:- '@types/d3-selection': 3.0.11-- '@types/[email protected]': {}-- '@types/[email protected]': {}-- '@types/[email protected]':- dependencies:- '@types/d3-array': 3.2.2- '@types/geojson': 7946.0.16-- '@types/[email protected]': {}-- '@types/[email protected]': {}-- '@types/[email protected]':- dependencies:- '@types/d3-selection': 3.0.11-- '@types/[email protected]': {}-- '@types/[email protected]': {}-- '@types/[email protected]':- dependencies:- '@types/d3-dsv': 3.0.7-- '@types/[email protected]': {}-- '@types/[email protected]': {}-- '@types/[email protected]':- dependencies:- '@types/geojson': 7946.0.16-- '@types/[email protected]': {}-- '@types/[email protected]':- dependencies:- '@types/d3-color': 3.1.3-- '@types/[email protected]': {}-- '@types/[email protected]': {}-- '@types/[email protected]': {}-- '@types/[email protected]': {}-- '@types/[email protected]': {}-- '@types/[email protected]':- dependencies:- '@types/d3-time': 3.0.4-- '@types/[email protected]': {}-- '@types/[email protected]':- dependencies:- '@types/d3-path': 3.1.1-- '@types/[email protected]': {}-- '@types/[email protected]': {}-- '@types/[email protected]': {}-- '@types/[email protected]':- dependencies:- '@types/d3-selection': 3.0.11-- '@types/[email protected]':- dependencies:- '@types/d3-interpolate': 3.0.4- '@types/d3-selection': 3.0.11-- '@types/[email protected]':- dependencies:- '@types/d3-array': 3.2.2- '@types/d3-axis': 3.0.6- '@types/d3-brush': 3.0.6- '@types/d3-chord': 3.0.6- '@types/d3-color': 3.1.3- '@types/d3-contour': 3.0.6- '@types/d3-delaunay': 6.0.4- '@types/d3-dispatch': 3.0.7- '@types/d3-drag': 3.0.7- '@types/d3-dsv': 3.0.7- '@types/d3-ease': 3.0.2- '@types/d3-fetch': 3.0.7- '@types/d3-force': 3.0.10- '@types/d3-format': 3.0.4- '@types/d3-geo': 3.1.0- '@types/d3-hierarchy': 3.1.7- '@types/d3-interpolate': 3.0.4- '@types/d3-path': 3.1.1- '@types/d3-polygon': 3.0.2- '@types/d3-quadtree': 3.0.6- '@types/d3-random': 3.0.3- '@types/d3-scale': 4.0.9- '@types/d3-scale-chromatic': 3.1.0- '@types/d3-selection': 3.0.11- '@types/d3-shape': 3.1.8- '@types/d3-time': 3.0.4- '@types/d3-time-format': 4.0.3- '@types/d3-timer': 3.0.2- '@types/d3-transition': 3.0.9- '@types/d3-zoom': 3.0.8-'@types/[email protected]':dependencies:'@types/ms': 2.1.0@@ -3190,9 +2630,6 @@ snapshots:dependencies:csstype: 3.2.3- '@types/[email protected]':- optional: true-'@types/[email protected]': {}'@typescript/[email protected]':@@ -3257,12 +2694,7 @@ snapshots:'@ungap/[email protected]': {}- '@upsetjs/[email protected]':- optionalDependencies:- d3-selection: 3.0.0- d3-transition: 3.0.1([email protected])-optionalDependencies:react: 19.2.6react-dom: 19.2.6([email protected])@@ -3316,8 +2748,6 @@ snapshots:convert-source-map: 2.0.0tinyrainbow: 3.1.0- [email protected]: {}-@@ -3358,19 +2788,6 @@ snapshots:- dependencies:- chevrotain: 12.0.0- lodash-es: 4.18.1-- dependencies:- '@chevrotain/cst-dts-gen': 12.0.0- '@chevrotain/gast': 12.0.0- '@chevrotain/regexp-to-ast': 12.0.0- '@chevrotain/types': 12.0.0- '@chevrotain/utils': 12.0.0-dependencies:clsx: 2.1.1@@ -3379,26 +2796,14 @@ snapshots:- [email protected]: {}-- [email protected]: {}-- dependencies:- layout-base: 1.0.2-- dependencies:- layout-base: 2.0.1-dependencies:mdn-data: 2.27.1@@ -3408,190 +2813,6 @@ snapshots:- dependencies:- cose-base: 1.0.3- cytoscape: 3.33.2-- dependencies:- cose-base: 2.2.0- cytoscape: 3.33.2-- [email protected]: {}-- dependencies:- internmap: 1.0.1-- dependencies:- internmap: 2.0.3-- [email protected]: {}-- dependencies:- d3-dispatch: 3.0.1- d3-drag: 3.0.0- d3-interpolate: 3.0.1- d3-selection: 3.0.0- d3-transition: 3.0.1([email protected])-- dependencies:- d3-path: 3.1.0-- [email protected]: {}-- dependencies:- d3-array: 3.2.4-- dependencies:- delaunator: 5.1.0-- [email protected]: {}-- dependencies:- d3-dispatch: 3.0.1- d3-selection: 3.0.0-- dependencies:- commander: 7.2.0- iconv-lite: 0.6.3- rw: 1.3.3-- [email protected]: {}-- dependencies:- d3-dsv: 3.0.1-- dependencies:- d3-dispatch: 3.0.1- d3-quadtree: 3.0.1- d3-timer: 3.0.1-- [email protected]: {}-- dependencies:- d3-array: 3.2.4-- [email protected]: {}-- dependencies:- d3-color: 3.1.0-- [email protected]: {}-- [email protected]: {}-- [email protected]: {}-- [email protected]: {}-- [email protected]: {}-- dependencies:- d3-array: 2.12.1- d3-shape: 1.3.7-- dependencies:- d3-color: 3.1.0- d3-interpolate: 3.0.1-- dependencies:- d3-array: 3.2.4- d3-format: 3.1.2- d3-interpolate: 3.0.1- d3-time: 3.1.0- d3-time-format: 4.1.0-- [email protected]: {}-- dependencies:- d3-path: 1.0.9-- dependencies:- d3-path: 3.1.0-- dependencies:- d3-time: 3.1.0-- dependencies:- d3-array: 3.2.4-- [email protected]: {}-- dependencies:- d3-color: 3.1.0- d3-dispatch: 3.0.1- d3-ease: 3.0.1- d3-interpolate: 3.0.1- d3-selection: 3.0.0- d3-timer: 3.0.1-- dependencies:- d3-dispatch: 3.0.1- d3-drag: 3.0.0- d3-interpolate: 3.0.1- d3-selection: 3.0.0- d3-transition: 3.0.1([email protected])-- dependencies:- d3-array: 3.2.4- d3-axis: 3.0.0- d3-brush: 3.0.0- d3-chord: 3.0.1- d3-color: 3.1.0- d3-contour: 4.0.2- d3-delaunay: 6.0.4- d3-dispatch: 3.0.1- d3-drag: 3.0.0- d3-dsv: 3.0.1- d3-ease: 3.0.1- d3-fetch: 3.0.1- d3-force: 3.0.0- d3-format: 3.1.2- d3-geo: 3.1.1- d3-hierarchy: 3.1.2- d3-interpolate: 3.0.1- d3-path: 3.1.0- d3-polygon: 3.0.1- d3-quadtree: 3.0.1- d3-random: 3.0.1- d3-scale: 4.0.2- d3-scale-chromatic: 3.1.0- d3-selection: 3.0.0- d3-shape: 3.2.0- d3-time: 3.1.0- d3-time-format: 4.1.0- d3-timer: 3.0.1- d3-transition: 3.0.1([email protected])- d3-zoom: 3.0.0-- dependencies:- d3: 7.9.0- lodash-es: 4.18.1-dependencies:whatwg-mimetype: 5.0.0@@ -3611,10 +2832,6 @@ snapshots:dependencies:character-entities: 2.0.2- dependencies:- robust-predicates: 3.0.3-@@ -3627,10 +2844,6 @@ snapshots:- optionalDependencies:- '@types/trusted-types': 2.0.7-@@ -3677,8 +2890,6 @@ snapshots:- [email protected]: {}-dependencies:'@types/hast': 3.0.4@@ -3752,16 +2963,8 @@ snapshots:optionalDependencies:typescript: 7.0.2- dependencies:- safer-buffer: 2.1.2-- [email protected]: {}-- [email protected]: {}-@@ -3808,21 +3011,6 @@ snapshots:- [email protected]: {}-- dependencies:- '@chevrotain/regexp-to-ast': 12.0.0- chevrotain: 12.0.0- chevrotain-allstar: 0.4.1([email protected])- vscode-languageserver: 9.0.1- vscode-languageserver-textdocument: 1.0.12- vscode-uri: 3.1.0-- [email protected]: {}-- [email protected]: {}-dependencies:leaflet: 1.9.4@@ -3920,8 +3108,6 @@ snapshots:- [email protected]: {}-dependencies:'@types/mdast': 4.0.4@@ -4043,30 +3229,6 @@ snapshots:- dependencies:- '@braintree/sanitize-url': 7.1.2- '@iconify/utils': 3.1.1- '@mermaid-js/parser': 1.1.0- '@types/d3': 7.4.3- '@upsetjs/venn.js': 2.0.0- cytoscape: 3.33.2- cytoscape-cose-bilkent: 4.1.0([email protected])- cytoscape-fcose: 2.2.0([email protected])- d3: 7.9.0- d3-sankey: 0.12.3- dagre-d3-es: 7.0.14- dayjs: 1.11.20- dompurify: 3.4.1- katex: 0.16.45- khroma: 2.1.0- lodash-es: 4.18.1- marked: 16.4.2- roughjs: 4.6.6- stylis: 4.4.0- ts-dedent: 2.2.0- uuid: 11.1.0-dependencies:decode-named-character-reference: 1.3.0@@ -4262,13 +3424,6 @@ snapshots:- dependencies:- acorn: 8.16.0- pathe: 2.0.3- pkg-types: 1.3.1- ufo: 1.6.3-@@ -4279,8 +3434,6 @@ snapshots:- [email protected]: {}-dependencies:entities: 6.0.1@@ -4289,31 +3442,18 @@ snapshots:dependencies:entities: 8.0.0- [email protected]: {}-dependencies:resolve-protobuf-schema: 2.1.0+ [email protected]: {}+- dependencies:- confbox: 0.1.8- mlly: 1.8.2- pathe: 2.0.3-- [email protected]: {}-- dependencies:- path-data-parser: 0.1.0- points-on-curve: 0.2.0-dependencies:nanoid: 3.3.11@@ -4457,8 +3597,6 @@ snapshots:dependencies:protocol-buffers-schema: 3.6.1- [email protected]: {}-dependencies:'@oxc-project/types': 0.128.0@@ -4480,17 +3618,6 @@ snapshots:'@rolldown/binding-win32-arm64-msvc': 1.0.0-rc.18'@rolldown/binding-win32-x64-msvc': 1.0.0-rc.18- dependencies:- hachure-fill: 0.5.2- path-data-parser: 0.1.0- points-on-curve: 0.2.0- points-on-path: 0.2.1-- [email protected]: {}-- [email protected]: {}-dependencies:xmlchars: 2.2.0@@ -4515,8 +3642,6 @@ snapshots:dependencies:min-indent: 1.0.1- [email protected]: {}-@@ -4556,8 +3681,6 @@ snapshots:- [email protected]: {}-optional: true@@ -4586,8 +3709,6 @@ snapshots:'@typescript/typescript-win32-arm64': 7.0.2'@typescript/typescript-win32-x64': 7.0.2- [email protected]: {}-@@ -4692,23 +3813,6 @@ snapshots:transitivePeerDependencies:- msw- [email protected]: {}-- dependencies:- vscode-jsonrpc: 8.2.0- vscode-languageserver-types: 3.17.5-- [email protected]: {}-- [email protected]: {}-- dependencies:- vscode-languageserver-protocol: 3.17.5-- [email protected]: {}-dependencies:xml-name-validator: 5.0.0diff --git a/web/src/components/MemoEditor/MemoMarkdown.tsx b/web/src/components/MemoEditor/MemoMarkdown.tsxindex df6ae6b92..24a07c453 100644--- a/web/src/components/MemoEditor/MemoMarkdown.tsx+++ b/web/src/components/MemoEditor/MemoMarkdown.tsx@@ -1,7 +1,7 @@import type { Editor, EditorMode, Extension } from "@usememos/editor";import { MarkdownEditor, type MarkdownEditorProps } from "@usememos/editor/react";import "@usememos/editor/style.css";-import { type Ref, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";+import { type Ref, useCallback, useMemo, useState } from "react";import { MEMO_EDITOR_THEME, MEMO_MARKDOWN, memoEditorLabels, memoExtensions, memoResolveUrl } from "@/lib/memo-markdown";import type { Attachment } from "@/types/proto/api/attachment_service_pb";import { useTranslate } from "@/utils/i18n";@@ -41,16 +41,6 @@ export interface MemoMarkdownProps {className?: string;}-// A memo with a Mermaid diagram draws it in the page's color scheme; a new scheme draws-// the diagrams again.-const MERMAID_FENCE = /^ {0,3}(?:`{3,}|~{3,})[ \t]*mermaid\b/im;-const subscribeColorScheme = (onChange: () => void) => {- const observer = new MutationObserver(onChange);- observer.observe(document.documentElement, { attributes: true, attributeFilter: ["style"] });- return () => observer.disconnect();-};-const getColorScheme = () => document.documentElement.style.colorScheme;-const assignRef = <T,>(ref: Ref<T> | undefined, value: T) => {if (typeof ref === "function") ref(value);else if (ref) ref.current = value;@@ -102,14 +92,6 @@ export const MemoMarkdown = (props: MemoMarkdownProps) => {);const labels = useMemo(() => memoEditorLabels(t), [t]);const resolveUrl = useMemo(() => memoResolveUrl(attachments), [attachments]);- const colorScheme = useSyncExternalStore(subscribeColorScheme, getColorScheme, () => "");- const drawnScheme = useRef(colorScheme);- useEffect(() => {- if (drawnScheme.current === colorScheme) return;- drawnScheme.current = colorScheme;- if (MERMAID_FENCE.test(value)) editor?.refreshViews("code:mermaid");- }, [colorScheme, editor, value]);-return (<MarkdownEditorref={attach}diff --git a/web/src/components/MemoEditor/README.md b/web/src/components/MemoEditor/README.mdindex f4cc3d2c8..eaa8c5b76 100644--- a/web/src/components/MemoEditor/README.md+++ b/web/src/components/MemoEditor/README.md@@ -23,7 +23,7 @@ MemoEditor memo level: name | draft seed, mode, data, draft stor└── Editor MemoMarkdown editable, with the composer's extensions, behind EditorController```-- **`MemoMarkdown.tsx`** binds the editor to memos once: the memo Markdown dialect, the theme in the app's CSS variables, translated labels, the image and link URL policy, the memo syntax extensions (math, footnotes, tags, mentions, highlighted code, Mermaid, sanitized HTML) and the stylesheet. `useMemoDecorations` is the one flow for tag colors and resolved mentions, with one redecorate effect. Everything a surface adds sits around this component; nothing in memos styles the editor's own classes.+- **`MemoMarkdown.tsx`** binds the editor to memos once: the memo Markdown dialect, the theme in the app's CSS variables, translated labels, the image and link URL policy, the memo syntax extensions (math, footnotes, tags, mentions, highlighted code, Mermaid diagrams drawn by Pele, sanitized HTML) and the stylesheet. `useMemoDecorations` is the one flow for tag colors and resolved mentions, with one redecorate effect. Everything a surface adds sits around this component; nothing in memos styles the editor's own classes.- **`view/`** is the read-only surface over `MemoMarkdown`: tags and mentions navigate, in-memo anchors scroll, a paragraph that is one bare link becomes a preview card through the editor's block view (`linkCards.ts`), the page's search matches are painted, and heading ids match the outline. Tag and mention clicks arrive through the editor's `onClick` callbacks, so nothing in memos matches the editor's class names or mutates its DOM. Previews that have Markdown but no memo query (the link-memo search, the share image) use `MemoContentView` directly.- **`edit/`** is the editing surface: `EditSession` renders the chrome (timestamp, attachments, suggestions, toolbar, focus mode, audio recording) over the draft store `MemoEditor` provides, persists the draft while open, and saves through the memo mutations. `Editor.tsx` is the composer's editor: `MemoMarkdown` editable with the composer's own extensions (`#tag` and `:emoji` autocomplete, file paste and drop), behind the `EditorController` contract in `controller.ts`.diff --git a/web/src/index.css b/web/src/index.cssindex 606dcffdc..5f17a6b56 100644--- a/web/src/index.css+++ b/web/src/index.css@@ -39,6 +39,20 @@}@layer components {+ /* Mermaid diagrams drawn by Pele take the theme's colors; a new scheme recolors them live. */+ .pele {+ --pele-bg: var(--card);+ --pele-fg: var(--foreground);+ --pele-muted: var(--muted-foreground);+ --pele-line: var(--foreground);+ --pele-surface: var(--muted);+ --pele-surface-alt: var(--accent);+ --pele-border: var(--border);+ --pele-accent: var(--primary);+ --pele-critical: var(--destructive);+ --pele-radius: calc(var(--radius) - 2px);+ }+@media (prefers-reduced-motion: no-preference) {.memos-logo .memos-mark {transition: transform 180ms ease-out;diff --git a/web/src/lib/memo-markdown.ts b/web/src/lib/memo-markdown.tsindex 826c5473d..ecb8a405a 100644--- a/web/src/lib/memo-markdown.ts+++ b/web/src/lib/memo-markdown.ts@@ -117,26 +117,32 @@ const codeHighlight = (): Extension => ({},});-/** Mermaid diagrams for ```mermaid code blocks. The code shows until the diagram is drawn, and stays if it fails. */-const renderMermaid: SyntaxView = (source, element) => {+/**+ * Mermaid diagrams for ```mermaid code blocks, drawn by Pele: the diagram types load on+ * first use, the SVG takes its colors from the `.pele` variables in index.css, so a new+ * color scheme needs no redraw, and the layout adapts to the memo's width. The code+ * shows until the diagram is drawn, and stays if it fails.+ */+const renderDiagram: SyntaxView = (source, element) => {const pre = document.createElement("pre");pre.textContent = source;element.appendChild(pre);return (async () => {- const { default: mermaid } = await import("mermaid");+ const { PeleError, renderAsync } = await import("pele/lazy");await document.fonts?.ready;- mermaid.initialize({- startOnLoad: false,- theme: document.documentElement.style.colorScheme === "dark" ? "dark" : "default",- securityLevel: "strict",- fontFamily: getComputedStyle(document.body).fontFamily || "sans-serif",- suppressErrorRendering: true,- });+ const style = getComputedStyle(element);try {- const { svg } = await mermaid.render(`mermaid-${Math.random().toString(36).slice(2)}`, source);- element.classList.add("mermaid-diagram");+ const { svg } = await renderAsync(source, {+ fontFamily: style.fontFamily || "sans-serif",+ fontFamilyMono: style.getPropertyValue("--font-mono").trim() || "monospace",+ maxWidth: element.clientWidth || undefined,+ // A memo column is narrow; the diagram shrinks to fit, but keeps the direction its author wrote.+ autoDirection: false,+ idPrefix: `diagram-${Math.random().toString(36).slice(2)}`,+ });element.innerHTML = svg;- } catch {+ } catch (error) {+ if (!(error instanceof PeleError)) throw error;return false;}})();@@ -212,8 +218,8 @@ interface MemoExtensionOptions {/*** The extensions every memo surface reads with, the composer and the memo view* alike: math (KaTeX, loaded on demand), footnotes, #tags and @mentions,- * highlighted code, Mermaid diagrams and sanitized raw HTML. Everything the- * editor renders shows its source at the caret while editing.+ * highlighted code, Mermaid diagrams (drawn by Pele) and sanitized raw HTML.+ * Everything the editor renders shows its source at the caret while editing.*/export const memoExtensions = (options: MemoExtensionOptions = {}): Extension[] => [math({ render: renderMath }),@@ -221,7 +227,7 @@ export const memoExtensions = (options: MemoExtensionOptions = {}): Extension[]tags(options.tags),mentions(options.mentions),codeHighlight(),- { name: "memoViews", views: { "code:mermaid": renderMermaid, html: renderHtml } },+ { name: "memoViews", views: { "code:mermaid": renderDiagram, html: renderHtml } },];/** Images load from relative URLs and https only, as memos' sanitizer allowed; anything else is dropped. */