@kky42/pievo-server 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/.output/nitro.json +17 -0
  2. package/.output/public/assets/CodeField-dOzyFQNH.js +34 -0
  3. package/.output/public/assets/LoopView-B4H9QibC.js +55 -0
  4. package/.output/public/assets/Modal-D33gNSgx.js +1 -0
  5. package/.output/public/assets/SignIn-SHuRRyOv.js +1 -0
  6. package/.output/public/assets/actionUi-ChGGALzg.js +1 -0
  7. package/.output/public/assets/app-DElSo_jy.css +2 -0
  8. package/.output/public/assets/artifactView-DFuubXLJ.js +66 -0
  9. package/.output/public/assets/index-DfpTWRSz.js +12 -0
  10. package/.output/public/assets/invite._token-DJtd-XE2.js +1 -0
  11. package/.output/public/assets/invite._token-T8oo4Qtw.js +1 -0
  12. package/.output/public/assets/jsx-runtime-BseJUIpC.js +1 -0
  13. package/.output/public/assets/lifecycleUi-DKkChdnU.js +1 -0
  14. package/.output/public/assets/loopApi-BM2nj71x.js +3 -0
  15. package/.output/public/assets/loops._loopId-B19Jw7jC.js +5 -0
  16. package/.output/public/assets/loops._loopId_.runs._runId-_CflHV38.js +3 -0
  17. package/.output/public/assets/notifyFns-DCubjpRy.js +1 -0
  18. package/.output/public/assets/preload-helper-CKUiEq3b.js +3 -0
  19. package/.output/public/assets/routes-B9tgli5f.js +1 -0
  20. package/.output/public/assets/routes-CTtlM_qt.js +1 -0
  21. package/.output/public/assets/t._teamId-Bm21mngW.js +1 -0
  22. package/.output/public/assets/t._teamId-gR7BVKkR.js +1 -0
  23. package/.output/public/assets/ui-Dp88qUWh.js +1 -0
  24. package/.output/public/assets/useRouter-DsjH8G0p.js +1 -0
  25. package/.output/public/favicon.svg +12 -0
  26. package/.output/public/fonts/GeistPixel-Square.woff2 +0 -0
  27. package/.output/server/_chunks/ssr-renderer.mjs +26 -0
  28. package/.output/server/_libs/@aws-crypto/crc32+[...].mjs +419 -0
  29. package/.output/server/_libs/@aws-sdk/checksums+[...].mjs +10732 -0
  30. package/.output/server/_libs/@aws-sdk/client-s3+[...].mjs +9475 -0
  31. package/.output/server/_libs/@aws-sdk/credential-provider-http+[...].mjs +137 -0
  32. package/.output/server/_libs/@aws-sdk/credential-provider-ini+[...].mjs +440 -0
  33. package/.output/server/_libs/@aws-sdk/credential-provider-process+[...].mjs +62 -0
  34. package/.output/server/_libs/@aws-sdk/credential-provider-sso+[...].mjs +818 -0
  35. package/.output/server/_libs/@aws-sdk/credential-provider-web-identity+[...].mjs +59 -0
  36. package/.output/server/_libs/@base-ui/react+[...].mjs +11125 -0
  37. package/.output/server/_libs/@codemirror/autocomplete+[...].mjs +19713 -0
  38. package/.output/server/_libs/@codemirror/lang-css+[...].mjs +2636 -0
  39. package/.output/server/_libs/@codemirror/lang-html+[...].mjs +2247 -0
  40. package/.output/server/_libs/@codemirror/lang-json+[...].mjs +79 -0
  41. package/.output/server/_libs/@reduxjs/toolkit+[...].mjs +1736 -0
  42. package/.output/server/_libs/@smithy/credential-provider-imds+[...].mjs +342 -0
  43. package/.output/server/_libs/@tanstack/react-router+[...].mjs +14300 -0
  44. package/.output/server/_libs/@uiw/codemirror-extensions-basic-setup+[...].mjs +76 -0
  45. package/.output/server/_libs/atomic-sleep.mjs +27 -0
  46. package/.output/server/_libs/aws-crypto__crc32c.mjs +314 -0
  47. package/.output/server/_libs/aws-sdk__nested-clients.mjs +2671 -0
  48. package/.output/server/_libs/babel__runtime.mjs +30 -0
  49. package/.output/server/_libs/clsx.mjs +16 -0
  50. package/.output/server/_libs/codemirror__commands.mjs +1725 -0
  51. package/.output/server/_libs/codemirror__lint.mjs +565 -0
  52. package/.output/server/_libs/codemirror__search.mjs +1138 -0
  53. package/.output/server/_libs/codemirror__theme-one-dark.mjs +161 -0
  54. package/.output/server/_libs/colorette.mjs +129 -0
  55. package/.output/server/_libs/croner.mjs +735 -0
  56. package/.output/server/_libs/d3-array.mjs +231 -0
  57. package/.output/server/_libs/d3-color.mjs +330 -0
  58. package/.output/server/_libs/d3-format.mjs +252 -0
  59. package/.output/server/_libs/d3-interpolate.mjs +163 -0
  60. package/.output/server/_libs/d3-path.mjs +77 -0
  61. package/.output/server/_libs/d3-scale+[...].mjs +1907 -0
  62. package/.output/server/_libs/d3-shape.mjs +689 -0
  63. package/.output/server/_libs/dateformat.mjs +341 -0
  64. package/.output/server/_libs/decimal.js-light.mjs +884 -0
  65. package/.output/server/_libs/diff.mjs +732 -0
  66. package/.output/server/_libs/dom-serializer+[...].mjs +708 -0
  67. package/.output/server/_libs/domhandler.mjs +461 -0
  68. package/.output/server/_libs/dompurify.mjs +2111 -0
  69. package/.output/server/_libs/domutils.mjs +868 -0
  70. package/.output/server/_libs/drizzle-orm+postgres.mjs +7689 -0
  71. package/.output/server/_libs/electric-sql__pglite.mjs +14674 -0
  72. package/.output/server/_libs/end-of-stream+once+wrappy.mjs +145 -0
  73. package/.output/server/_libs/es-toolkit.mjs +1737 -0
  74. package/.output/server/_libs/eventemitter3.mjs +236 -0
  75. package/.output/server/_libs/fast-copy.mjs +285 -0
  76. package/.output/server/_libs/fast-safe-stringify.mjs +172 -0
  77. package/.output/server/_libs/h3+rou3+srvx.mjs +1201 -0
  78. package/.output/server/_libs/html-dom-parser+htmlparser2.mjs +1560 -0
  79. package/.output/server/_libs/html-react-parser+[...].mjs +1360 -0
  80. package/.output/server/_libs/initdb.wasm +0 -0
  81. package/.output/server/_libs/marked.mjs +1548 -0
  82. package/.output/server/_libs/on-exit-leak-free.mjs +80 -0
  83. package/.output/server/_libs/pglite.data +37667 -8
  84. package/.output/server/_libs/pglite.wasm +0 -0
  85. package/.output/server/_libs/pino+[...].mjs +3196 -0
  86. package/.output/server/_libs/pino-abstract-transport+split2.mjs +194 -0
  87. package/.output/server/_libs/pino-pretty+[...].mjs +1623 -0
  88. package/.output/server/_libs/pinojs__redact.mjs +280 -0
  89. package/.output/server/_libs/react-redux+[...].mjs +205 -0
  90. package/.output/server/_libs/recharts+victory-vendor.mjs +15875 -0
  91. package/.output/server/_libs/tanstack__history.mjs +342 -0
  92. package/.output/server/_libs/ufo.mjs +64 -0
  93. package/.output/server/_libs/uiw__codemirror-themes.mjs +32 -0
  94. package/.output/server/_libs/uiw__react-codemirror.mjs +354 -0
  95. package/.output/server/_runtime.mjs +37 -0
  96. package/.output/server/_ssr/CodeField-tm4rr6G3.mjs +143 -0
  97. package/.output/server/_ssr/DashboardView-CC7htv28.mjs +2795 -0
  98. package/.output/server/_ssr/LoopPlaybook-BXH8mhiX.mjs +2105 -0
  99. package/.output/server/_ssr/LoopView-DCugEbHx.mjs +1106 -0
  100. package/.output/server/_ssr/Modal-DpKZHLZK.mjs +49 -0
  101. package/.output/server/_ssr/SignIn-dTndU6Hw.mjs +67 -0
  102. package/.output/server/_ssr/actionUi-CZbEixbf.mjs +119 -0
  103. package/.output/server/_ssr/adapters-BS8XosjF.mjs +130 -0
  104. package/.output/server/_ssr/artifactFiles-Cagtj7J0.mjs +61 -0
  105. package/.output/server/_ssr/artifactKind-BW0isV8L.mjs +37 -0
  106. package/.output/server/_ssr/artifactView-DS4O22wl.mjs +304 -0
  107. package/.output/server/_ssr/artifacts-DngKyW2u.mjs +2 -0
  108. package/.output/server/_ssr/auth-DY1DuYZd.mjs +38429 -0
  109. package/.output/server/_ssr/boot-BbtG0ImW.mjs +9010 -0
  110. package/.output/server/_ssr/boot-CMHTxQpJ.mjs +2 -0
  111. package/.output/server/_ssr/bun-sqlite-dialect-BW9W1_Ps-CU1Spd6z.mjs +162 -0
  112. package/.output/server/_ssr/core-RrmWoKne.mjs +5 -0
  113. package/.output/server/_ssr/createServerRpc-BD8Xn_0_.mjs +12 -0
  114. package/.output/server/_ssr/d1-sqlite-dialect-BLC8LXE6-DfG7tB8s.mjs +112 -0
  115. package/.output/server/_ssr/db-DWAuZq1o.mjs +2 -0
  116. package/.output/server/_ssr/dist-BIxFFVZg.mjs +342 -0
  117. package/.output/server/_ssr/empty-plugin-adapters-DKUlnwwl.mjs +5 -0
  118. package/.output/server/_ssr/factory-Blq0DYfT.mjs +6903 -0
  119. package/.output/server/_ssr/invite._token-BRCo9LGB.mjs +36 -0
  120. package/.output/server/_ssr/invite._token-DJxGLILJ.mjs +28 -0
  121. package/.output/server/_ssr/invite._token-NewFt27g.mjs +92 -0
  122. package/.output/server/_ssr/kysely-adapter-D3XTe64J.mjs +2 -0
  123. package/.output/server/_ssr/kysely-migration-tables-JkVUjPF_-bPAX9LR_.mjs +19 -0
  124. package/.output/server/_ssr/lifecycleUi-C9lg1r3r.mjs +38 -0
  125. package/.output/server/_ssr/logger-Dw82jNjH.mjs +2 -0
  126. package/.output/server/_ssr/loopApi-BtfkZQYK.mjs +532 -0
  127. package/.output/server/_ssr/loopApi-Cxe8WyOB.mjs +105 -0
  128. package/.output/server/_ssr/loops._loopId-7NQJPB9W.mjs +30 -0
  129. package/.output/server/_ssr/loops._loopId-DhnArGdL.mjs +1635 -0
  130. package/.output/server/_ssr/loops._loopId_.runs._runId-Bvuo2nki.mjs +29 -0
  131. package/.output/server/_ssr/loops._loopId_.runs._runId-Dip5Xk-q.mjs +674 -0
  132. package/.output/server/_ssr/machineFns-Dvr5ICUy.mjs +266 -0
  133. package/.output/server/_ssr/node-sqlite-dialect-DhyOpJTX.mjs +162 -0
  134. package/.output/server/_ssr/notifyFns-BcMRY5kP.mjs +118 -0
  135. package/.output/server/_ssr/notifyFns-Q458pZmE.mjs +580 -0
  136. package/.output/server/_ssr/router-J8KZ30xw.mjs +678 -0
  137. package/.output/server/_ssr/routes-Bcs4T1ox.mjs +28 -0
  138. package/.output/server/_ssr/routes-BoGrcf-b.mjs +43 -0
  139. package/.output/server/_ssr/routes-D4am3Zff.mjs +28 -0
  140. package/.output/server/_ssr/runDiff-CpEFqo7G.mjs +113 -0
  141. package/.output/server/_ssr/ssr.mjs +5837 -0
  142. package/.output/server/_ssr/start-4ifArtKx.mjs +4 -0
  143. package/.output/server/_ssr/store-b3JcQ08F.mjs +2 -0
  144. package/.output/server/_ssr/t._teamId-CeUhzgzT.mjs +32 -0
  145. package/.output/server/_ssr/t._teamId-DR-hQK7o.mjs +47 -0
  146. package/.output/server/_ssr/t._teamId-Dy_McbRt.mjs +31 -0
  147. package/.output/server/_ssr/teamCookie-B7hLOIie.mjs +10 -0
  148. package/.output/server/_ssr/teamFns-BIDnsg2A.mjs +473 -0
  149. package/.output/server/_ssr/teamFns-DA4ovI5g.mjs +33 -0
  150. package/.output/server/_ssr/tokens-ytd60FUt.mjs +2 -0
  151. package/.output/server/_ssr/ui-Dej2qjuS.mjs +267 -0
  152. package/.output/server/_tanstack-start-manifest_v-CVS6c7re.mjs +95 -0
  153. package/.output/server/drizzle/0000_round_marauders.sql +193 -0
  154. package/.output/server/drizzle/0001_naive_silver_fox.sql +25 -0
  155. package/.output/server/drizzle/0002_funny_sage.sql +12 -0
  156. package/.output/server/drizzle/0003_optimal_slapstick.sql +102 -0
  157. package/.output/server/drizzle/0004_remove_grok_agent.sql +5 -0
  158. package/.output/server/drizzle/0005_heavy_gauntlet.sql +8 -0
  159. package/.output/server/drizzle/0006_tranquil_sharon_carter.sql +1 -0
  160. package/.output/server/drizzle/0007_faulty_starbolt.sql +30 -0
  161. package/.output/server/drizzle/0008_durable_lifecycle_evidence.sql +15 -0
  162. package/.output/server/drizzle/meta/0000_snapshot.json +1333 -0
  163. package/.output/server/drizzle/meta/0001_snapshot.json +1498 -0
  164. package/.output/server/drizzle/meta/0002_snapshot.json +1576 -0
  165. package/.output/server/drizzle/meta/0003_snapshot.json +1666 -0
  166. package/.output/server/drizzle/meta/0005_snapshot.json +1666 -0
  167. package/.output/server/drizzle/meta/0006_snapshot.json +1672 -0
  168. package/.output/server/drizzle/meta/0007_snapshot.json +1787 -0
  169. package/.output/server/drizzle/meta/_journal.json +69 -0
  170. package/.output/server/index.mjs +464 -0
  171. package/.output/server/node_modules/tslib/modules/index.js +70 -0
  172. package/.output/server/node_modules/tslib/modules/package.json +3 -0
  173. package/.output/server/node_modules/tslib/package.json +47 -0
  174. package/.output/server/node_modules/tslib/tslib.js +484 -0
  175. package/.output/server/package.json +9 -0
  176. package/LICENSE +21 -0
  177. package/drizzle/0000_round_marauders.sql +193 -0
  178. package/drizzle/0001_naive_silver_fox.sql +25 -0
  179. package/drizzle/0002_funny_sage.sql +12 -0
  180. package/drizzle/0003_optimal_slapstick.sql +102 -0
  181. package/drizzle/0004_remove_grok_agent.sql +5 -0
  182. package/drizzle/0005_heavy_gauntlet.sql +8 -0
  183. package/drizzle/0006_tranquil_sharon_carter.sql +1 -0
  184. package/drizzle/0007_faulty_starbolt.sql +30 -0
  185. package/drizzle/0008_durable_lifecycle_evidence.sql +15 -0
  186. package/drizzle/meta/0000_snapshot.json +1333 -0
  187. package/drizzle/meta/0001_snapshot.json +1498 -0
  188. package/drizzle/meta/0002_snapshot.json +1576 -0
  189. package/drizzle/meta/0003_snapshot.json +1666 -0
  190. package/drizzle/meta/0005_snapshot.json +1666 -0
  191. package/drizzle/meta/0006_snapshot.json +1672 -0
  192. package/drizzle/meta/0007_snapshot.json +1787 -0
  193. package/drizzle/meta/_journal.json +69 -0
  194. package/package.json +84 -0
  195. package/scripts/pievo-server.mjs +390 -0
  196. package/scripts/prestart.mjs +66 -0
  197. package/scripts/server-cli-lib.mjs +451 -0
@@ -0,0 +1,689 @@
1
+ import { t as Path } from "./d3-path.mjs";
2
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js
3
+ function constant_default(x) {
4
+ return function constant() {
5
+ return x;
6
+ };
7
+ }
8
+ //#endregion
9
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js
10
+ function withPath(shape) {
11
+ let digits = 3;
12
+ shape.digits = function(_) {
13
+ if (!arguments.length) return digits;
14
+ if (_ == null) digits = null;
15
+ else {
16
+ const d = Math.floor(_);
17
+ if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);
18
+ digits = d;
19
+ }
20
+ return shape;
21
+ };
22
+ return () => new Path(digits);
23
+ }
24
+ Array.prototype.slice;
25
+ function array_default(x) {
26
+ return typeof x === "object" && "length" in x ? x : Array.from(x);
27
+ }
28
+ //#endregion
29
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js
30
+ function Linear(context) {
31
+ this._context = context;
32
+ }
33
+ Linear.prototype = {
34
+ areaStart: function() {
35
+ this._line = 0;
36
+ },
37
+ areaEnd: function() {
38
+ this._line = NaN;
39
+ },
40
+ lineStart: function() {
41
+ this._point = 0;
42
+ },
43
+ lineEnd: function() {
44
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
45
+ this._line = 1 - this._line;
46
+ },
47
+ point: function(x, y) {
48
+ x = +x, y = +y;
49
+ switch (this._point) {
50
+ case 0:
51
+ this._point = 1;
52
+ this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
53
+ break;
54
+ case 1: this._point = 2;
55
+ default:
56
+ this._context.lineTo(x, y);
57
+ break;
58
+ }
59
+ }
60
+ };
61
+ function linear_default(context) {
62
+ return new Linear(context);
63
+ }
64
+ //#endregion
65
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js
66
+ function x(p) {
67
+ return p[0];
68
+ }
69
+ function y(p) {
70
+ return p[1];
71
+ }
72
+ //#endregion
73
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js
74
+ function line_default(x$1, y$1) {
75
+ var defined = constant_default(true), context = null, curve = linear_default, output = null, path = withPath(line);
76
+ x$1 = typeof x$1 === "function" ? x$1 : x$1 === void 0 ? x : constant_default(x$1);
77
+ y$1 = typeof y$1 === "function" ? y$1 : y$1 === void 0 ? y : constant_default(y$1);
78
+ function line(data) {
79
+ var i, n = (data = array_default(data)).length, d, defined0 = false, buffer;
80
+ if (context == null) output = curve(buffer = path());
81
+ for (i = 0; i <= n; ++i) {
82
+ if (!(i < n && defined(d = data[i], i, data)) === defined0) if (defined0 = !defined0) output.lineStart();
83
+ else output.lineEnd();
84
+ if (defined0) output.point(+x$1(d, i, data), +y$1(d, i, data));
85
+ }
86
+ if (buffer) return output = null, buffer + "" || null;
87
+ }
88
+ line.x = function(_) {
89
+ return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant_default(+_), line) : x$1;
90
+ };
91
+ line.y = function(_) {
92
+ return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant_default(+_), line) : y$1;
93
+ };
94
+ line.defined = function(_) {
95
+ return arguments.length ? (defined = typeof _ === "function" ? _ : constant_default(!!_), line) : defined;
96
+ };
97
+ line.curve = function(_) {
98
+ return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;
99
+ };
100
+ line.context = function(_) {
101
+ return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;
102
+ };
103
+ return line;
104
+ }
105
+ //#endregion
106
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/area.js
107
+ function area_default(x0, y0, y1) {
108
+ var x1 = null, defined = constant_default(true), context = null, curve = linear_default, output = null, path = withPath(area);
109
+ x0 = typeof x0 === "function" ? x0 : x0 === void 0 ? x : constant_default(+x0);
110
+ y0 = typeof y0 === "function" ? y0 : y0 === void 0 ? constant_default(0) : constant_default(+y0);
111
+ y1 = typeof y1 === "function" ? y1 : y1 === void 0 ? y : constant_default(+y1);
112
+ function area(data) {
113
+ var i, j, k, n = (data = array_default(data)).length, d, defined0 = false, buffer, x0z = new Array(n), y0z = new Array(n);
114
+ if (context == null) output = curve(buffer = path());
115
+ for (i = 0; i <= n; ++i) {
116
+ if (!(i < n && defined(d = data[i], i, data)) === defined0) if (defined0 = !defined0) {
117
+ j = i;
118
+ output.areaStart();
119
+ output.lineStart();
120
+ } else {
121
+ output.lineEnd();
122
+ output.lineStart();
123
+ for (k = i - 1; k >= j; --k) output.point(x0z[k], y0z[k]);
124
+ output.lineEnd();
125
+ output.areaEnd();
126
+ }
127
+ if (defined0) {
128
+ x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);
129
+ output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);
130
+ }
131
+ }
132
+ if (buffer) return output = null, buffer + "" || null;
133
+ }
134
+ function arealine() {
135
+ return line_default().defined(defined).curve(curve).context(context);
136
+ }
137
+ area.x = function(_) {
138
+ return arguments.length ? (x0 = typeof _ === "function" ? _ : constant_default(+_), x1 = null, area) : x0;
139
+ };
140
+ area.x0 = function(_) {
141
+ return arguments.length ? (x0 = typeof _ === "function" ? _ : constant_default(+_), area) : x0;
142
+ };
143
+ area.x1 = function(_) {
144
+ return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : constant_default(+_), area) : x1;
145
+ };
146
+ area.y = function(_) {
147
+ return arguments.length ? (y0 = typeof _ === "function" ? _ : constant_default(+_), y1 = null, area) : y0;
148
+ };
149
+ area.y0 = function(_) {
150
+ return arguments.length ? (y0 = typeof _ === "function" ? _ : constant_default(+_), area) : y0;
151
+ };
152
+ area.y1 = function(_) {
153
+ return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : constant_default(+_), area) : y1;
154
+ };
155
+ area.lineX0 = area.lineY0 = function() {
156
+ return arealine().x(x0).y(y0);
157
+ };
158
+ area.lineY1 = function() {
159
+ return arealine().x(x0).y(y1);
160
+ };
161
+ area.lineX1 = function() {
162
+ return arealine().x(x1).y(y0);
163
+ };
164
+ area.defined = function(_) {
165
+ return arguments.length ? (defined = typeof _ === "function" ? _ : constant_default(!!_), area) : defined;
166
+ };
167
+ area.curve = function(_) {
168
+ return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;
169
+ };
170
+ area.context = function(_) {
171
+ return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;
172
+ };
173
+ return area;
174
+ }
175
+ //#endregion
176
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.js
177
+ var Bump = class {
178
+ constructor(context, x) {
179
+ this._context = context;
180
+ this._x = x;
181
+ }
182
+ areaStart() {
183
+ this._line = 0;
184
+ }
185
+ areaEnd() {
186
+ this._line = NaN;
187
+ }
188
+ lineStart() {
189
+ this._point = 0;
190
+ }
191
+ lineEnd() {
192
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
193
+ this._line = 1 - this._line;
194
+ }
195
+ point(x, y) {
196
+ x = +x, y = +y;
197
+ switch (this._point) {
198
+ case 0:
199
+ this._point = 1;
200
+ if (this._line) this._context.lineTo(x, y);
201
+ else this._context.moveTo(x, y);
202
+ break;
203
+ case 1: this._point = 2;
204
+ default:
205
+ if (this._x) this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y);
206
+ else this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y);
207
+ break;
208
+ }
209
+ this._x0 = x, this._y0 = y;
210
+ }
211
+ };
212
+ function bumpX(context) {
213
+ return new Bump(context, true);
214
+ }
215
+ function bumpY(context) {
216
+ return new Bump(context, false);
217
+ }
218
+ //#endregion
219
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.js
220
+ function noop_default() {}
221
+ //#endregion
222
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.js
223
+ function point$1(that, x, y) {
224
+ that._context.bezierCurveTo((2 * that._x0 + that._x1) / 3, (2 * that._y0 + that._y1) / 3, (that._x0 + 2 * that._x1) / 3, (that._y0 + 2 * that._y1) / 3, (that._x0 + 4 * that._x1 + x) / 6, (that._y0 + 4 * that._y1 + y) / 6);
225
+ }
226
+ function Basis(context) {
227
+ this._context = context;
228
+ }
229
+ Basis.prototype = {
230
+ areaStart: function() {
231
+ this._line = 0;
232
+ },
233
+ areaEnd: function() {
234
+ this._line = NaN;
235
+ },
236
+ lineStart: function() {
237
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN;
238
+ this._point = 0;
239
+ },
240
+ lineEnd: function() {
241
+ switch (this._point) {
242
+ case 3: point$1(this, this._x1, this._y1);
243
+ case 2:
244
+ this._context.lineTo(this._x1, this._y1);
245
+ break;
246
+ }
247
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
248
+ this._line = 1 - this._line;
249
+ },
250
+ point: function(x, y) {
251
+ x = +x, y = +y;
252
+ switch (this._point) {
253
+ case 0:
254
+ this._point = 1;
255
+ this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
256
+ break;
257
+ case 1:
258
+ this._point = 2;
259
+ break;
260
+ case 2:
261
+ this._point = 3;
262
+ this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
263
+ default:
264
+ point$1(this, x, y);
265
+ break;
266
+ }
267
+ this._x0 = this._x1, this._x1 = x;
268
+ this._y0 = this._y1, this._y1 = y;
269
+ }
270
+ };
271
+ function basis_default(context) {
272
+ return new Basis(context);
273
+ }
274
+ //#endregion
275
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.js
276
+ function BasisClosed(context) {
277
+ this._context = context;
278
+ }
279
+ BasisClosed.prototype = {
280
+ areaStart: noop_default,
281
+ areaEnd: noop_default,
282
+ lineStart: function() {
283
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;
284
+ this._point = 0;
285
+ },
286
+ lineEnd: function() {
287
+ switch (this._point) {
288
+ case 1:
289
+ this._context.moveTo(this._x2, this._y2);
290
+ this._context.closePath();
291
+ break;
292
+ case 2:
293
+ this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);
294
+ this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);
295
+ this._context.closePath();
296
+ break;
297
+ case 3:
298
+ this.point(this._x2, this._y2);
299
+ this.point(this._x3, this._y3);
300
+ this.point(this._x4, this._y4);
301
+ break;
302
+ }
303
+ },
304
+ point: function(x, y) {
305
+ x = +x, y = +y;
306
+ switch (this._point) {
307
+ case 0:
308
+ this._point = 1;
309
+ this._x2 = x, this._y2 = y;
310
+ break;
311
+ case 1:
312
+ this._point = 2;
313
+ this._x3 = x, this._y3 = y;
314
+ break;
315
+ case 2:
316
+ this._point = 3;
317
+ this._x4 = x, this._y4 = y;
318
+ this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6);
319
+ break;
320
+ default:
321
+ point$1(this, x, y);
322
+ break;
323
+ }
324
+ this._x0 = this._x1, this._x1 = x;
325
+ this._y0 = this._y1, this._y1 = y;
326
+ }
327
+ };
328
+ function basisClosed_default(context) {
329
+ return new BasisClosed(context);
330
+ }
331
+ //#endregion
332
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.js
333
+ function BasisOpen(context) {
334
+ this._context = context;
335
+ }
336
+ BasisOpen.prototype = {
337
+ areaStart: function() {
338
+ this._line = 0;
339
+ },
340
+ areaEnd: function() {
341
+ this._line = NaN;
342
+ },
343
+ lineStart: function() {
344
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN;
345
+ this._point = 0;
346
+ },
347
+ lineEnd: function() {
348
+ if (this._line || this._line !== 0 && this._point === 3) this._context.closePath();
349
+ this._line = 1 - this._line;
350
+ },
351
+ point: function(x, y) {
352
+ x = +x, y = +y;
353
+ switch (this._point) {
354
+ case 0:
355
+ this._point = 1;
356
+ break;
357
+ case 1:
358
+ this._point = 2;
359
+ break;
360
+ case 2:
361
+ this._point = 3;
362
+ var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6;
363
+ this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0);
364
+ break;
365
+ case 3: this._point = 4;
366
+ default:
367
+ point$1(this, x, y);
368
+ break;
369
+ }
370
+ this._x0 = this._x1, this._x1 = x;
371
+ this._y0 = this._y1, this._y1 = y;
372
+ }
373
+ };
374
+ function basisOpen_default(context) {
375
+ return new BasisOpen(context);
376
+ }
377
+ //#endregion
378
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.js
379
+ function LinearClosed(context) {
380
+ this._context = context;
381
+ }
382
+ LinearClosed.prototype = {
383
+ areaStart: noop_default,
384
+ areaEnd: noop_default,
385
+ lineStart: function() {
386
+ this._point = 0;
387
+ },
388
+ lineEnd: function() {
389
+ if (this._point) this._context.closePath();
390
+ },
391
+ point: function(x, y) {
392
+ x = +x, y = +y;
393
+ if (this._point) this._context.lineTo(x, y);
394
+ else this._point = 1, this._context.moveTo(x, y);
395
+ }
396
+ };
397
+ function linearClosed_default(context) {
398
+ return new LinearClosed(context);
399
+ }
400
+ //#endregion
401
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.js
402
+ function sign(x) {
403
+ return x < 0 ? -1 : 1;
404
+ }
405
+ function slope3(that, x2, y2) {
406
+ var h0 = that._x1 - that._x0, h1 = x2 - that._x1, s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0), s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0), p = (s0 * h1 + s1 * h0) / (h0 + h1);
407
+ return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), .5 * Math.abs(p)) || 0;
408
+ }
409
+ function slope2(that, t) {
410
+ var h = that._x1 - that._x0;
411
+ return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
412
+ }
413
+ function point(that, t0, t1) {
414
+ var x0 = that._x0, y0 = that._y0, x1 = that._x1, y1 = that._y1, dx = (x1 - x0) / 3;
415
+ that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
416
+ }
417
+ function MonotoneX(context) {
418
+ this._context = context;
419
+ }
420
+ MonotoneX.prototype = {
421
+ areaStart: function() {
422
+ this._line = 0;
423
+ },
424
+ areaEnd: function() {
425
+ this._line = NaN;
426
+ },
427
+ lineStart: function() {
428
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN;
429
+ this._point = 0;
430
+ },
431
+ lineEnd: function() {
432
+ switch (this._point) {
433
+ case 2:
434
+ this._context.lineTo(this._x1, this._y1);
435
+ break;
436
+ case 3:
437
+ point(this, this._t0, slope2(this, this._t0));
438
+ break;
439
+ }
440
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
441
+ this._line = 1 - this._line;
442
+ },
443
+ point: function(x, y) {
444
+ var t1 = NaN;
445
+ x = +x, y = +y;
446
+ if (x === this._x1 && y === this._y1) return;
447
+ switch (this._point) {
448
+ case 0:
449
+ this._point = 1;
450
+ this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
451
+ break;
452
+ case 1:
453
+ this._point = 2;
454
+ break;
455
+ case 2:
456
+ this._point = 3;
457
+ point(this, slope2(this, t1 = slope3(this, x, y)), t1);
458
+ break;
459
+ default:
460
+ point(this, this._t0, t1 = slope3(this, x, y));
461
+ break;
462
+ }
463
+ this._x0 = this._x1, this._x1 = x;
464
+ this._y0 = this._y1, this._y1 = y;
465
+ this._t0 = t1;
466
+ }
467
+ };
468
+ function MonotoneY(context) {
469
+ this._context = new ReflectContext(context);
470
+ }
471
+ (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {
472
+ MonotoneX.prototype.point.call(this, y, x);
473
+ };
474
+ function ReflectContext(context) {
475
+ this._context = context;
476
+ }
477
+ ReflectContext.prototype = {
478
+ moveTo: function(x, y) {
479
+ this._context.moveTo(y, x);
480
+ },
481
+ closePath: function() {
482
+ this._context.closePath();
483
+ },
484
+ lineTo: function(x, y) {
485
+ this._context.lineTo(y, x);
486
+ },
487
+ bezierCurveTo: function(x1, y1, x2, y2, x, y) {
488
+ this._context.bezierCurveTo(y1, x1, y2, x2, y, x);
489
+ }
490
+ };
491
+ function monotoneX(context) {
492
+ return new MonotoneX(context);
493
+ }
494
+ function monotoneY(context) {
495
+ return new MonotoneY(context);
496
+ }
497
+ //#endregion
498
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.js
499
+ function Natural(context) {
500
+ this._context = context;
501
+ }
502
+ Natural.prototype = {
503
+ areaStart: function() {
504
+ this._line = 0;
505
+ },
506
+ areaEnd: function() {
507
+ this._line = NaN;
508
+ },
509
+ lineStart: function() {
510
+ this._x = [];
511
+ this._y = [];
512
+ },
513
+ lineEnd: function() {
514
+ var x = this._x, y = this._y, n = x.length;
515
+ if (n) {
516
+ this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);
517
+ if (n === 2) this._context.lineTo(x[1], y[1]);
518
+ else {
519
+ var px = controlPoints(x), py = controlPoints(y);
520
+ for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);
521
+ }
522
+ }
523
+ if (this._line || this._line !== 0 && n === 1) this._context.closePath();
524
+ this._line = 1 - this._line;
525
+ this._x = this._y = null;
526
+ },
527
+ point: function(x, y) {
528
+ this._x.push(+x);
529
+ this._y.push(+y);
530
+ }
531
+ };
532
+ function controlPoints(x) {
533
+ var i, n = x.length - 1, m, a = new Array(n), b = new Array(n), r = new Array(n);
534
+ a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];
535
+ for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];
536
+ a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];
537
+ for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];
538
+ a[n - 1] = r[n - 1] / b[n - 1];
539
+ for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];
540
+ b[n - 1] = (x[n] + a[n - 1]) / 2;
541
+ for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];
542
+ return [a, b];
543
+ }
544
+ function natural_default(context) {
545
+ return new Natural(context);
546
+ }
547
+ //#endregion
548
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.js
549
+ function Step(context, t) {
550
+ this._context = context;
551
+ this._t = t;
552
+ }
553
+ Step.prototype = {
554
+ areaStart: function() {
555
+ this._line = 0;
556
+ },
557
+ areaEnd: function() {
558
+ this._line = NaN;
559
+ },
560
+ lineStart: function() {
561
+ this._x = this._y = NaN;
562
+ this._point = 0;
563
+ },
564
+ lineEnd: function() {
565
+ if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);
566
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
567
+ if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;
568
+ },
569
+ point: function(x, y) {
570
+ x = +x, y = +y;
571
+ switch (this._point) {
572
+ case 0:
573
+ this._point = 1;
574
+ this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
575
+ break;
576
+ case 1: this._point = 2;
577
+ default:
578
+ if (this._t <= 0) {
579
+ this._context.lineTo(this._x, y);
580
+ this._context.lineTo(x, y);
581
+ } else {
582
+ var x1 = this._x * (1 - this._t) + x * this._t;
583
+ this._context.lineTo(x1, this._y);
584
+ this._context.lineTo(x1, y);
585
+ }
586
+ break;
587
+ }
588
+ this._x = x, this._y = y;
589
+ }
590
+ };
591
+ function step_default(context) {
592
+ return new Step(context, .5);
593
+ }
594
+ function stepBefore(context) {
595
+ return new Step(context, 0);
596
+ }
597
+ function stepAfter(context) {
598
+ return new Step(context, 1);
599
+ }
600
+ //#endregion
601
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/offset/none.js
602
+ function none_default$1(series, order) {
603
+ if (!((n = series.length) > 1)) return;
604
+ for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {
605
+ s0 = s1, s1 = series[order[i]];
606
+ for (j = 0; j < m; ++j) s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];
607
+ }
608
+ }
609
+ //#endregion
610
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/order/none.js
611
+ function none_default(series) {
612
+ var n = series.length, o = new Array(n);
613
+ while (--n >= 0) o[n] = n;
614
+ return o;
615
+ }
616
+ //#endregion
617
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/stack.js
618
+ function stackValue(d, key) {
619
+ return d[key];
620
+ }
621
+ function stackSeries(key) {
622
+ const series = [];
623
+ series.key = key;
624
+ return series;
625
+ }
626
+ function stack_default() {
627
+ var keys = constant_default([]), order = none_default, offset = none_default$1, value = stackValue;
628
+ function stack(data) {
629
+ var sz = Array.from(keys.apply(this, arguments), stackSeries), i, n = sz.length, j = -1, oz;
630
+ for (const d of data) for (i = 0, ++j; i < n; ++i) (sz[i][j] = [0, +value(d, sz[i].key, j, data)]).data = d;
631
+ for (i = 0, oz = array_default(order(sz)); i < n; ++i) sz[oz[i]].index = i;
632
+ offset(sz, oz);
633
+ return sz;
634
+ }
635
+ stack.keys = function(_) {
636
+ return arguments.length ? (keys = typeof _ === "function" ? _ : constant_default(Array.from(_)), stack) : keys;
637
+ };
638
+ stack.value = function(_) {
639
+ return arguments.length ? (value = typeof _ === "function" ? _ : constant_default(+_), stack) : value;
640
+ };
641
+ stack.order = function(_) {
642
+ return arguments.length ? (order = _ == null ? none_default : typeof _ === "function" ? _ : constant_default(Array.from(_)), stack) : order;
643
+ };
644
+ stack.offset = function(_) {
645
+ return arguments.length ? (offset = _ == null ? none_default$1 : _, stack) : offset;
646
+ };
647
+ return stack;
648
+ }
649
+ //#endregion
650
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/offset/expand.js
651
+ function expand_default(series, order) {
652
+ if (!((n = series.length) > 0)) return;
653
+ for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {
654
+ for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;
655
+ if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;
656
+ }
657
+ none_default$1(series, order);
658
+ }
659
+ //#endregion
660
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/offset/silhouette.js
661
+ function silhouette_default(series, order) {
662
+ if (!((n = series.length) > 0)) return;
663
+ for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {
664
+ for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;
665
+ s0[j][1] += s0[j][0] = -y / 2;
666
+ }
667
+ none_default$1(series, order);
668
+ }
669
+ //#endregion
670
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/offset/wiggle.js
671
+ function wiggle_default(series, order) {
672
+ if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;
673
+ for (var y = 0, j = 1, s0, m, n; j < m; ++j) {
674
+ for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {
675
+ var si = series[order[i]], sij0 = si[j][1] || 0, s3 = (sij0 - (si[j - 1][1] || 0)) / 2;
676
+ for (var k = 0; k < i; ++k) {
677
+ var sk = series[order[k]], skj0 = sk[j][1] || 0, skj1 = sk[j - 1][1] || 0;
678
+ s3 += skj0 - skj1;
679
+ }
680
+ s1 += sij0, s2 += s3 * sij0;
681
+ }
682
+ s0[j - 1][1] += s0[j - 1][0] = y;
683
+ if (s1) y -= s2 / s1;
684
+ }
685
+ s0[j - 1][1] += s0[j - 1][0] = y;
686
+ none_default$1(series, order);
687
+ }
688
+ //#endregion
689
+ export { bumpX as _, none_default as a, line_default as b, stepBefore as c, monotoneX as d, monotoneY as f, basis_default as g, basisClosed_default as h, stack_default as i, step_default as l, basisOpen_default as m, silhouette_default as n, none_default$1 as o, linearClosed_default as p, expand_default as r, stepAfter as s, wiggle_default as t, natural_default as u, bumpY as v, linear_default as x, area_default as y };