@synnaxlabs/x 0.42.1 → 0.43.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 (296) hide show
  1. package/.turbo/turbo-build.log +93 -105
  2. package/.vscode/settings.json +4 -6
  3. package/README.md +1 -7
  4. package/dist/array.cjs +1 -0
  5. package/dist/array.js +7 -0
  6. package/dist/base-B5lQIJKc.js +38 -0
  7. package/dist/base-CTq-lhpU.cjs +1 -0
  8. package/dist/binary.cjs +1 -1
  9. package/dist/binary.js +1 -1
  10. package/dist/bounds.cjs +1 -1
  11. package/dist/bounds.js +2 -2
  12. package/dist/box.cjs +1 -1
  13. package/dist/box.js +1 -1
  14. package/dist/caseconv.cjs +1 -1
  15. package/dist/caseconv.js +2 -2
  16. package/dist/change.cjs +1 -1
  17. package/dist/change.js +10 -2
  18. package/dist/compare.cjs +1 -1
  19. package/dist/compare.js +1 -1
  20. package/dist/deep.cjs +1 -1
  21. package/dist/deep.js +92 -79
  22. package/dist/dimensions.cjs +1 -1
  23. package/dist/dimensions.js +41 -2
  24. package/dist/direction.cjs +1 -1
  25. package/dist/direction.js +1 -1
  26. package/dist/index-4GlOgZuh.js +99 -0
  27. package/dist/{direction-C-b6XTeU.cjs → index-B58dnYRu.cjs} +1 -1
  28. package/dist/index-BMGaoK93.cjs +1 -0
  29. package/dist/index-BTet04Hd.cjs +6 -0
  30. package/dist/{scale-DfJe9755.js → index-BUa-NXAX.js} +46 -46
  31. package/dist/{xy-D_LqxaGt.js → index-C-qYOegc.js} +62 -62
  32. package/dist/index-C07SBJhr.js +128 -0
  33. package/dist/{bounds-Bn5_l4Z3.js → index-C9EdKeu1.js} +77 -76
  34. package/dist/index-CM8ZDZ6s.cjs +1 -0
  35. package/dist/index-CV2JaHfw.cjs +1 -0
  36. package/dist/index-CeBvOwG8.cjs +3 -0
  37. package/dist/index-ClrGyGDp.js +205 -0
  38. package/dist/index-CqQXXeCI.cjs +1 -0
  39. package/dist/{location-C3aeu046.js → index-D6V-8SKw.js} +26 -26
  40. package/dist/index-DBGAIs_7.js +2492 -0
  41. package/dist/index-DEdq2tza.cjs +1 -0
  42. package/dist/index-DKMnHBGR.cjs +1 -0
  43. package/dist/index-Dql5FMcH.js +47 -0
  44. package/dist/{direction-BL0PhD1k.js → index-DxU1zwsd.js} +1 -1
  45. package/dist/index-WwMnwoLy.cjs +1 -0
  46. package/dist/index.cjs +5 -3
  47. package/dist/index.js +5372 -649
  48. package/dist/kv.cjs +1 -1
  49. package/dist/kv.js +45 -2
  50. package/dist/location.cjs +1 -1
  51. package/dist/location.js +1 -1
  52. package/dist/position.cjs +1 -1
  53. package/dist/position.js +83 -2
  54. package/dist/record.cjs +1 -1
  55. package/dist/record.js +8 -10
  56. package/dist/runtime.cjs +1 -1
  57. package/dist/runtime.js +27 -2
  58. package/dist/scale.cjs +1 -1
  59. package/dist/scale.js +1 -1
  60. package/dist/schemas-55Usj0Fg.js +3998 -0
  61. package/dist/schemas-DbXuI2Qr.cjs +27 -0
  62. package/dist/spatial.cjs +1 -1
  63. package/dist/spatial.js +25 -18
  64. package/dist/src/array/index.d.ts +2 -0
  65. package/dist/src/array/index.d.ts.map +1 -0
  66. package/dist/src/array/toArray.d.ts +19 -0
  67. package/dist/src/array/toArray.d.ts.map +1 -0
  68. package/dist/src/array/toArray.spec.d.ts +2 -0
  69. package/dist/src/array/toArray.spec.d.ts.map +1 -0
  70. package/dist/src/binary/codec.d.ts +8 -16
  71. package/dist/src/binary/codec.d.ts.map +1 -1
  72. package/dist/src/breaker/breaker.d.ts +6 -6
  73. package/dist/src/breaker/breaker.d.ts.map +1 -1
  74. package/dist/src/caseconv/caseconv.d.ts +1 -1
  75. package/dist/src/caseconv/caseconv.d.ts.map +1 -1
  76. package/dist/src/change/change.d.ts +3 -3
  77. package/dist/src/change/change.d.ts.map +1 -1
  78. package/dist/src/color/color.d.ts +63 -28
  79. package/dist/src/color/color.d.ts.map +1 -1
  80. package/dist/src/color/external.d.ts +0 -1
  81. package/dist/src/color/external.d.ts.map +1 -1
  82. package/dist/src/color/gradient.d.ts +9 -5
  83. package/dist/src/color/gradient.d.ts.map +1 -1
  84. package/dist/src/color/palette.d.ts +14 -6
  85. package/dist/src/color/palette.d.ts.map +1 -1
  86. package/dist/src/compare/compare.d.ts +4 -4
  87. package/dist/src/compare/compare.d.ts.map +1 -1
  88. package/dist/src/control/control.d.ts +32 -32
  89. package/dist/src/control/control.d.ts.map +1 -1
  90. package/dist/src/debounce/debounce.d.ts +1 -1
  91. package/dist/src/debounce/debounce.d.ts.map +1 -1
  92. package/dist/src/deep/delete.d.ts +1 -1
  93. package/dist/src/deep/delete.d.ts.map +1 -1
  94. package/dist/src/deep/difference.d.ts.map +1 -1
  95. package/dist/src/deep/equal.d.ts +4 -4
  96. package/dist/src/deep/equal.d.ts.map +1 -1
  97. package/dist/src/deep/merge.d.ts +1 -1
  98. package/dist/src/deep/merge.d.ts.map +1 -1
  99. package/dist/src/errors/errors.d.ts +62 -36
  100. package/dist/src/errors/errors.d.ts.map +1 -1
  101. package/dist/src/index.d.ts +4 -1
  102. package/dist/src/index.d.ts.map +1 -1
  103. package/dist/src/instance/index.d.ts +2 -0
  104. package/dist/src/instance/index.d.ts.map +1 -0
  105. package/dist/src/instance/matcher.d.ts +79 -0
  106. package/dist/src/instance/matcher.d.ts.map +1 -0
  107. package/dist/src/instance/matcher.spec.d.ts +2 -0
  108. package/dist/src/instance/matcher.spec.d.ts.map +1 -0
  109. package/dist/src/jsonrpc/jsonrpc.d.ts +40 -9
  110. package/dist/src/jsonrpc/jsonrpc.d.ts.map +1 -1
  111. package/dist/src/kv/types.d.ts +2 -2
  112. package/dist/src/kv/types.d.ts.map +1 -1
  113. package/dist/src/migrate/migrate.d.ts +5 -5
  114. package/dist/src/migrate/migrate.d.ts.map +1 -1
  115. package/dist/src/notation/notation.d.ts +1 -1
  116. package/dist/src/notation/notation.d.ts.map +1 -1
  117. package/dist/src/primitive/index.d.ts +2 -0
  118. package/dist/src/primitive/index.d.ts.map +1 -0
  119. package/dist/src/primitive/primitive.d.ts +39 -0
  120. package/dist/src/primitive/primitive.d.ts.map +1 -0
  121. package/dist/src/primitive/primitive.spec.d.ts +2 -0
  122. package/dist/src/primitive/primitive.spec.d.ts.map +1 -0
  123. package/dist/src/record.d.ts +2 -2
  124. package/dist/src/record.d.ts.map +1 -1
  125. package/dist/src/renderable.d.ts +1 -1
  126. package/dist/src/renderable.d.ts.map +1 -1
  127. package/dist/src/replace.d.ts.map +1 -1
  128. package/dist/src/runtime/detect.d.ts.map +1 -1
  129. package/dist/src/runtime/os.d.ts +1 -1
  130. package/dist/src/runtime/os.d.ts.map +1 -1
  131. package/dist/src/spatial/base.d.ts +10 -10
  132. package/dist/src/spatial/base.d.ts.map +1 -1
  133. package/dist/src/spatial/bounds/bounds.d.ts +82 -16
  134. package/dist/src/spatial/bounds/bounds.d.ts.map +1 -1
  135. package/dist/src/spatial/box/box.d.ts +7 -7
  136. package/dist/src/spatial/box/box.d.ts.map +1 -1
  137. package/dist/src/spatial/dimensions/dimensions.d.ts +5 -5
  138. package/dist/src/spatial/dimensions/dimensions.d.ts.map +1 -1
  139. package/dist/src/spatial/direction/direction.d.ts +1 -1
  140. package/dist/src/spatial/location/location.d.ts +4 -4
  141. package/dist/src/spatial/location/location.d.ts.map +1 -1
  142. package/dist/src/spatial/scale/scale.d.ts +11 -11
  143. package/dist/src/spatial/scale/scale.d.ts.map +1 -1
  144. package/dist/src/spatial/xy/xy.d.ts +5 -5
  145. package/dist/src/spatial/xy/xy.d.ts.map +1 -1
  146. package/dist/src/status/index.d.ts +2 -0
  147. package/dist/src/status/index.d.ts.map +1 -0
  148. package/dist/src/status/types.d.ts +11 -0
  149. package/dist/src/status/types.d.ts.map +1 -0
  150. package/dist/src/sync/index.d.ts.map +1 -1
  151. package/dist/src/sync/mutex.d.ts +0 -1
  152. package/dist/src/sync/mutex.d.ts.map +1 -1
  153. package/dist/src/telem/gl.d.ts +1 -1
  154. package/dist/src/telem/gl.d.ts.map +1 -1
  155. package/dist/src/telem/series.d.ts +468 -62
  156. package/dist/src/telem/series.d.ts.map +1 -1
  157. package/dist/src/telem/telem.d.ts +243 -53
  158. package/dist/src/telem/telem.d.ts.map +1 -1
  159. package/dist/src/uuid/index.d.ts +2 -0
  160. package/dist/src/uuid/index.d.ts.map +1 -0
  161. package/dist/src/uuid/uuid.d.ts +35 -0
  162. package/dist/src/uuid/uuid.d.ts.map +1 -0
  163. package/dist/src/uuid/uuid.spec.d.ts +2 -0
  164. package/dist/src/uuid/uuid.spec.d.ts.map +1 -0
  165. package/dist/src/zod/external.d.ts +1 -1
  166. package/dist/src/zod/external.d.ts.map +1 -1
  167. package/dist/src/zod/nullToUndefined.d.ts +3 -0
  168. package/dist/src/zod/nullToUndefined.d.ts.map +1 -0
  169. package/dist/src/zod/nullToUndefined.spec.d.ts +2 -0
  170. package/dist/src/zod/nullToUndefined.spec.d.ts.map +1 -0
  171. package/dist/src/zod/util.d.ts +2 -2
  172. package/dist/src/zod/util.d.ts.map +1 -1
  173. package/dist/telem.cjs +1 -1
  174. package/dist/telem.js +1 -1
  175. package/dist/xy.cjs +1 -1
  176. package/dist/xy.js +1 -1
  177. package/dist/zod.cjs +1 -1
  178. package/dist/zod.js +19 -2
  179. package/eslint.config.js +1 -1
  180. package/package.json +16 -14
  181. package/src/{toArray.ts → array/index.ts} +1 -5
  182. package/src/array/toArray.spec.ts +56 -0
  183. package/src/array/toArray.ts +28 -0
  184. package/src/binary/codec.spec.ts +201 -278
  185. package/src/binary/codec.ts +20 -76
  186. package/src/breaker/breaker.ts +3 -3
  187. package/src/caseconv/caseconv.ts +6 -4
  188. package/src/change/change.ts +2 -2
  189. package/src/color/color.spec.ts +121 -2
  190. package/src/color/color.ts +90 -54
  191. package/src/color/external.ts +0 -1
  192. package/src/color/gradient.ts +20 -28
  193. package/src/color/palette.ts +1 -1
  194. package/src/compare/compare.ts +5 -5
  195. package/src/control/control.ts +22 -19
  196. package/src/debounce/debounce.ts +1 -1
  197. package/src/deep/delete.ts +5 -4
  198. package/src/deep/difference.ts +6 -2
  199. package/src/deep/equal.spec.ts +1 -1
  200. package/src/deep/equal.ts +5 -5
  201. package/src/deep/merge.spec.ts +13 -1
  202. package/src/deep/merge.ts +16 -7
  203. package/src/deep/path.ts +1 -1
  204. package/src/errors/errors.ts +65 -44
  205. package/src/index.ts +4 -1
  206. package/src/instance/index.ts +10 -0
  207. package/src/instance/matcher.spec.ts +78 -0
  208. package/src/instance/matcher.ts +98 -0
  209. package/src/jsonrpc/jsonrpc.spec.ts +2 -1
  210. package/src/jsonrpc/jsonrpc.ts +36 -7
  211. package/src/kv/types.ts +1 -1
  212. package/src/migrate/migrate.spec.ts +1 -1
  213. package/src/migrate/migrate.ts +7 -7
  214. package/src/notation/notation.ts +1 -1
  215. package/src/primitive/index.ts +10 -0
  216. package/src/primitive/primitive.spec.ts +126 -0
  217. package/src/primitive/primitive.ts +82 -0
  218. package/src/record.ts +3 -5
  219. package/src/renderable.ts +1 -1
  220. package/src/replace.ts +9 -0
  221. package/src/runtime/detect.ts +0 -2
  222. package/src/runtime/os.ts +1 -1
  223. package/src/spatial/base.ts +1 -1
  224. package/src/spatial/bounds/bounds.spec.ts +20 -0
  225. package/src/spatial/bounds/bounds.ts +101 -18
  226. package/src/spatial/box/box.ts +1 -1
  227. package/src/spatial/dimensions/dimensions.ts +3 -3
  228. package/src/spatial/location/location.ts +1 -1
  229. package/src/spatial/scale/scale.ts +1 -1
  230. package/src/spatial/xy/xy.ts +1 -1
  231. package/src/status/index.ts +10 -0
  232. package/src/status/types.ts +22 -0
  233. package/src/sync/index.ts +9 -0
  234. package/src/sync/mutex.ts +9 -4
  235. package/src/telem/gl.ts +1 -1
  236. package/src/telem/series.spec.ts +735 -68
  237. package/src/telem/series.ts +536 -195
  238. package/src/telem/telem.spec.ts +60 -7
  239. package/src/telem/telem.ts +287 -95
  240. package/src/uuid/index.ts +10 -0
  241. package/src/uuid/uuid.spec.ts +82 -0
  242. package/src/uuid/uuid.ts +48 -0
  243. package/src/zod/external.ts +1 -1
  244. package/src/zod/nullToUndefined.spec.ts +31 -0
  245. package/src/zod/nullToUndefined.ts +23 -0
  246. package/src/zod/util.spec.ts +1 -1
  247. package/src/zod/util.ts +6 -6
  248. package/tsconfig.json +1 -1
  249. package/tsconfig.tsbuildinfo +1 -1
  250. package/vite.config.ts +1 -1
  251. package/dist/base-BAM2mqCy.cjs +0 -1
  252. package/dist/base-DFq0vvGn.js +0 -38
  253. package/dist/bounds-BQo7rvs9.cjs +0 -1
  254. package/dist/box-0YrQibkB.cjs +0 -1
  255. package/dist/box-Cc8IzcNo.js +0 -205
  256. package/dist/change-C-YELKx6.cjs +0 -1
  257. package/dist/change-DLl6DccR.js +0 -12
  258. package/dist/dimensions-CRgergMS.js +0 -43
  259. package/dist/dimensions-D2QGoNXO.cjs +0 -1
  260. package/dist/external-BPgtxa8d.js +0 -29
  261. package/dist/external-C-dNgNQw.cjs +0 -1
  262. package/dist/external-C8TFju8Q.js +0 -29
  263. package/dist/external-DWQITF5_.cjs +0 -1
  264. package/dist/external-DqPrWKvU.js +0 -47
  265. package/dist/external-uXk0Avrg.cjs +0 -1
  266. package/dist/index-BywOGO8U.js +0 -1074
  267. package/dist/index-CYYjI7Uf.cjs +0 -1
  268. package/dist/index-C_6NXBlg.cjs +0 -3
  269. package/dist/index-Dd8DLyMx.cjs +0 -1
  270. package/dist/index-DizUWH6z.js +0 -47
  271. package/dist/index-QGplUHuy.js +0 -98
  272. package/dist/location-BGl5Ddds.cjs +0 -1
  273. package/dist/position-Cai5-wi1.cjs +0 -1
  274. package/dist/position-DIglP1l2.js +0 -85
  275. package/dist/scale-BtZINJ-A.cjs +0 -1
  276. package/dist/series-B9JERcqi.js +0 -1977
  277. package/dist/series-DqJ6f97G.cjs +0 -11
  278. package/dist/spatial-BSWPzMkK.js +0 -11
  279. package/dist/spatial-DGpZ2sO3.cjs +0 -1
  280. package/dist/src/color/transformColorsToHex.d.ts +0 -6
  281. package/dist/src/color/transformColorsToHex.d.ts.map +0 -1
  282. package/dist/src/primitive.d.ts +0 -9
  283. package/dist/src/primitive.d.ts.map +0 -1
  284. package/dist/src/toArray.d.ts +0 -3
  285. package/dist/src/toArray.d.ts.map +0 -1
  286. package/dist/src/zod/integer.d.ts +0 -10
  287. package/dist/src/zod/integer.d.ts.map +0 -1
  288. package/dist/src/zod/integer.spec.d.ts +0 -2
  289. package/dist/src/zod/integer.spec.d.ts.map +0 -1
  290. package/dist/toArray.cjs +0 -1
  291. package/dist/toArray.js +0 -5
  292. package/dist/xy-B7065J2S.cjs +0 -1
  293. package/src/color/transformColorsToHex.ts +0 -30
  294. package/src/primitive.ts +0 -46
  295. package/src/zod/integer.spec.ts +0 -148
  296. package/src/zod/integer.ts +0 -38
package/vite.config.ts CHANGED
@@ -41,7 +41,7 @@ export default defineConfig({
41
41
  worker: path.resolve(".", "src/worker/index.ts"),
42
42
  debounce: path.resolve(".", "src/debounce/index.ts"),
43
43
  destructor: path.resolve(".", "src/destructor.ts"),
44
- toArray: path.resolve(".", "src/toArray.ts"),
44
+ array: path.resolve(".", "src/array/index.ts"),
45
45
  search: path.resolve(".", "src/search.ts"),
46
46
  unique: path.resolve(".", "src/unique/index.ts"),
47
47
  record: path.resolve(".", "src/record.ts"),
@@ -1 +0,0 @@
1
- "use strict";const n=require("zod"),t=n.z.tuple([n.z.number(),n.z.number()]);n.z.tuple([n.z.bigint(),n.z.bigint()]);const d=n.z.object({width:n.z.number(),height:n.z.number()}),O=n.z.object({signedWidth:n.z.number(),signedHeight:n.z.number()}),N=["width","height"];n.z.enum(N);const c=["start","center","end"],g=["signedWidth","signedHeight"];n.z.enum(g);const L=n.z.object({x:n.z.number(),y:n.z.number()}),S=n.z.object({clientX:n.z.number(),clientY:n.z.number()}),s=["x","y"],o=n.z.enum(s),u=["top","right","bottom","left"],I=n.z.enum(u),r=["left","right"],a=n.z.enum(r),z=["top","bottom"],l=n.z.enum(z),e=["center"],T=n.z.enum(e),C=[...u,...e],i=n.z.enum(C),E=n.z.enum(c),m=["first","last"],h=n.z.enum(m),b=n.z.object({lower:n.z.number(),upper:n.z.number()}),p=n.z.object({lower:n.z.bigint(),upper:n.z.bigint()});n.z.union([b,t]);n.z.union([p,t]);const D=n.z.enum([...o.options,...i.options]),A=n.z.union([o,i,n.z.instanceof(String)]);exports.ALIGNMENTS=c;exports.CENTER_LOCATIONS=e;exports.DIRECTIONS=s;exports.ORDERS=m;exports.X_LOCATIONS=r;exports.Y_LOCATIONS=z;exports.alignment=E;exports.bounds=b;exports.centerLocation=T;exports.clientXY=S;exports.crudeDirection=D;exports.crudeLocation=A;exports.dimensions=d;exports.direction=o;exports.location=i;exports.numberCouple=t;exports.order=h;exports.outerLocation=I;exports.signedDimensions=O;exports.xLocation=a;exports.xy=L;exports.yLocation=l;
@@ -1,38 +0,0 @@
1
- import { z as n } from "zod";
2
- const t = n.tuple([n.number(), n.number()]);
3
- n.tuple([n.bigint(), n.bigint()]);
4
- const S = n.object({ width: n.number(), height: n.number() }), h = n.object({
5
- signedWidth: n.number(),
6
- signedHeight: n.number()
7
- }), c = ["width", "height"];
8
- n.enum(c);
9
- const u = ["start", "center", "end"], r = ["signedWidth", "signedHeight"];
10
- n.enum(r);
11
- const p = n.object({ x: n.number(), y: n.number() }), I = n.object({ clientX: n.number(), clientY: n.number() }), a = ["x", "y"], o = n.enum(a), e = ["top", "right", "bottom", "left"], L = n.enum(e), m = ["left", "right"], C = n.enum(m), b = ["top", "bottom"], E = n.enum(b), s = ["center"], T = n.enum(s), g = [...e, ...s], i = n.enum(g), D = n.enum(u), d = ["first", "last"], j = n.enum(d), O = n.object({ lower: n.number(), upper: n.number() }), l = n.object({ lower: n.bigint(), upper: n.bigint() });
12
- n.union([O, t]);
13
- n.union([l, t]);
14
- const A = n.enum([...o.options, ...i.options]), f = n.union([o, i, n.instanceof(String)]);
15
- export {
16
- u as A,
17
- s as C,
18
- a as D,
19
- d as O,
20
- m as X,
21
- b as Y,
22
- D as a,
23
- o as b,
24
- A as c,
25
- S as d,
26
- C as e,
27
- T as f,
28
- f as g,
29
- L as h,
30
- I as i,
31
- O as j,
32
- i as l,
33
- t as n,
34
- j as o,
35
- h as s,
36
- p as x,
37
- E as y
38
- };
@@ -1 +0,0 @@
1
- "use strict";const M=require("./base-BAM2mqCy.cjs"),a=e=>typeof e=="bigint"||e instanceof BigInt,m=(e,r)=>a(e)?e.valueOf()-BigInt(r.valueOf().valueOf()):e.valueOf()-Number(r.valueOf()),b=(e,r)=>a(e)?e.valueOf()+BigInt(r.valueOf().valueOf()):e+Number(r.valueOf()),A=(e,r,n=1e-4)=>Math.abs(e-r)<n,O=(e,r)=>a(e)?e===BigInt(r.valueOf().valueOf()):e===Number(r.valueOf()),j=e=>{const r=10**Math.floor(Math.log10(e));return Math.round(e/r)*r},B=(e,r)=>a(e)?e.valueOf()<BigInt(r.valueOf())?e:BigInt(r.valueOf()):e.valueOf()<Number(r.valueOf())?e:Number(r.valueOf()),P=(e,r)=>a(e)?e.valueOf()>BigInt(r.valueOf())?e:BigInt(r.valueOf()):e.valueOf()>Number(r.valueOf())?e:Number(r.valueOf()),x=e=>a(e)||e instanceof BigInt?e.valueOf()<0n?-e:e:e.valueOf()<0?-e:e,T=(e,r)=>a(e)?e.valueOf()*BigInt(r.valueOf()):e.valueOf()*Number(r.valueOf()),z=(e,r)=>a(e)?e.valueOf()/BigInt(r.valueOf()):e.valueOf()/Number(r.valueOf()),i=(e,r)=>{const n={};if(typeof e=="number"||typeof e=="bigint")r!=null?(n.lower=e,n.upper=r):(n.lower=typeof e=="bigint"?0n:0,n.upper=e);else if(Array.isArray(e)){if(e.length!==2)throw new Error("bounds: expected array of length 2");[n.lower,n.upper]=e}else return I(e);return I(n)},E=Object.freeze({lower:0,upper:0}),q=Object.freeze({lower:-1/0,upper:1/0}),D=Object.freeze({lower:0,upper:1}),F=Object.freeze({lower:-1,upper:1}),L=(e,r)=>{if(e==null&&r==null)return!0;if(e==null||r==null)return!1;const n=i(e),t=i(r);return(n==null?void 0:n.lower)===(t==null?void 0:t.lower)&&(n==null?void 0:n.upper)===(t==null?void 0:t.upper)},I=e=>e.lower>e.upper?{lower:e.upper,upper:e.lower}:e,h=(e,r)=>{const n=i(e);return r<n.lower?n.lower:r>=n.upper?n.upper-(typeof n.upper=="number"?1:1n):r},c=(e,r)=>{const n=i(e);if(typeof r=="number"||typeof r=="bigint")return r>=n.lower&&r<n.upper;const t=i(r);return t.lower>=n.lower&&t.upper<=n.upper},Z=(e,r)=>{const n=i(e),t=i(r);return n.lower===t.lower?!0:t.upper===n.lower||t.lower===n.upper?!1:c(n,t.upper)||c(n,t.lower)||c(t,n.upper)||c(t,n.lower)},v=e=>{const r=i(e);return r.upper-r.lower},S=e=>{const r=i(e);return typeof r.lower=="bigint"?r.lower===0n&&r.upper===0n:r.lower===0&&r.upper===0},$=e=>{const r=v(e);return typeof r=="number"?r===0:r===0n},C=e=>{const r=i(e);return typeof r.lower=="bigint"?!0:Number.isFinite(r.lower)&&Number.isFinite(r.upper)},R=e=>{const r=i(e);return(r.upper+r.lower)/2},y=e=>({lower:Math.min(...e.map(r=>i(r).lower)),upper:Math.max(...e.map(r=>i(r).upper))}),k=e=>({lower:Math.max(...e.map(r=>i(r).lower)),upper:Math.min(...e.map(r=>i(r).upper))}),U=e=>{const r=i(e),n=typeof r.lower=="bigint";return Array.from({length:Number(v(e))},(t,o)=>n?r.lower+BigInt(o):r.lower+o)},g=(e,r)=>{const n=e.map(l=>i(l)),t=n.findIndex(l=>c(l,r)||r<l.lower);if(t===-1)return{index:e.length,position:0};const o=n[t];return c(o,r)?{index:t,position:Number(r-o.lower)}:{index:t,position:0}},w={removeBefore:0,removeAfter:0,insertInto:0,deleteInBetween:0},V=(e,r)=>{const n=e.map(p=>i(p)),t=i(r);if(n.length===0)return w;const o=g(n,t.lower),l=g(n,t.upper);if(o.index===e.length)return{...w,insertInto:e.length};if(l.index===0)return{...w,removeAfter:l.position};if(o.index===l.index)return o.position!==0&&l.position!==0?null:{removeAfter:l.position,removeBefore:o.position,insertInto:o.index,deleteInBetween:0};let u=l.index-o.index,f=o.index,s=m(Number(v(n[o.index])),o.position);return o.position!==0?(u-=1,f+=1):s=0,{removeBefore:s,removeAfter:l.position,insertInto:f,deleteInBetween:u}},N=(e,r,n)=>{const t=e.map(f=>i(f)),o=n>0?1:n<0?-1:0;if(o===0)return r;let l=n,u=r;for(;O(l,0)===!1;){const f=t.findIndex(s=>o>0?u>=s.lower&&u<s.upper:u>s.lower&&u<=s.upper);if(f!==-1){const s=t[f];let p;if(o>0?p=m(s.upper,u):p=m(u,s.lower),p>0){const d=B(x(l),p);if(u=b(u,o>0?d:-d),l=m(l,o>0?d:-d),O(l,0))return u;continue}}if(o>0){const s=t.filter(p=>p.lower>u);if(s.length>0)u=s[0].lower;else return u}else{const s=t.filter(p=>p.upper<u);if(s.length>0)u=s[s.length-1].upper;else return u}}return u},_=(e,r,n)=>{const t=e.map(u=>i(u));if(r===n)return typeof r=="bigint"?0n:0;const o=r<n?i([r,n]):i([n,r]);let l=typeof r=="bigint"?0n:0;for(const u of t){const f=u.lower>o.lower?u.lower:o.lower,s=u.upper<o.upper?u.upper:o.upper;if(f<s){const p=s-f;l=l+p}}return l},W=Object.freeze(Object.defineProperty({__proto__:null,CLIP:F,DECIMAL:D,INFINITE:q,ZERO:E,bounds:M.bounds,buildInsertionPlan:V,clamp:h,construct:i,contains:c,distance:_,equals:L,findInsertPosition:g,isFinite:C,isZero:S,linspace:U,makeValid:I,max:y,mean:R,min:k,overlapsWith:Z,span:v,spanIsZero:$,traverse:N},Symbol.toStringTag,{value:"Module"}));exports.abs=x;exports.add=b;exports.bounds=W;exports.clamp=h;exports.closeTo=A;exports.construct=i;exports.contains=c;exports.distance=_;exports.div=z;exports.equal=O;exports.max=y;exports.max$1=P;exports.min=B;exports.mult=T;exports.roundToNearestMagnitude=j;exports.span=v;exports.sub=m;exports.traverse=N;
@@ -1 +0,0 @@
1
- "use strict";const u=require("zod"),R=require("./direction-C-b6XTeU.cjs"),x=require("./location-BGl5Ddds.cjs"),i=require("./xy-B7065J2S.cjs"),m=require("./base-BAM2mqCy.cjs"),p=u.z.union([u.z.number(),u.z.string()]),H=u.z.object({top:p,left:p,width:p,height:p}),W=u.z.object({left:u.z.number(),top:u.z.number(),right:u.z.number(),bottom:u.z.number()}),S=u.z.object({one:m.xy,two:m.xy,root:x.corner}),B={one:i.ZERO,two:i.ZERO,root:x.TOP_LEFT},v={one:i.ZERO,two:i.ONE,root:x.BOTTOM_LEFT},C=(t,o)=>({one:t.one,two:t.two,root:o??t.root}),c=(t,o,e=0,n=0,s)=>{const r={one:{...i.ZERO},two:{...i.ZERO},root:s??x.TOP_LEFT};if(typeof t=="number"){if(typeof o!="number")throw new Error("Box constructor called with invalid arguments");return r.one={x:t,y:o},r.two={x:r.one.x+e,y:r.one.y+n},r}return"one"in t&&"two"in t&&"root"in t?{...t,root:s??t.root}:("getBoundingClientRect"in t&&(t=t.getBoundingClientRect()),"left"in t?(r.one={x:t.left,y:t.top},r.two={x:t.right,y:t.bottom},r):(r.one=t,o==null?r.two={x:r.one.x+e,y:r.one.y+n}:typeof o=="number"?r.two={x:r.one.x+o,y:r.one.y+e}:"width"in o?r.two={x:r.one.x+o.width,y:r.one.y+o.height}:"signedWidth"in o?r.two={x:r.one.x+o.signedWidth,y:r.one.y+o.signedHeight}:r.two=o,r))},G=(t,o,e)=>{const n=c(t);if(typeof o=="string"){if(e==null)throw new Error("Invalid arguments for resize");const s=R.construct(o);return c(n.one,void 0,s==="x"?e:w(n),s==="y"?e:d(n),n.root)}return c(n.one,o,void 0,void 0,n.root)},D=(t,o,e=!0)=>{const n=c(t);let s=(r,y)=>r<y;return e&&(s=(r,y)=>r<=y),"one"in o?s(a(n),a(o))&&s(h(o),h(n))&&s(f(n),f(o))&&s(_(o),_(n)):s(a(n),o.x)&&s(o.x,h(n))&&s(f(n),o.y)&&s(o.y,_(n))},X=(t,o)=>i.equals(t.one,o.one)&&i.equals(t.two,o.two)&&x.xyEquals(t.root,o.root),I=t=>({width:w(t),height:d(t)}),$=t=>({signedWidth:O(t),signedHeight:E(t)}),U=t=>({top:f(t),left:a(t),width:w(t),height:d(t)}),L=(t,o,e=!1)=>{const n=R.construct(o)==="y"?E(t):O(t);return e?n:Math.abs(n)},l=(t,o)=>{const e=c(t);return{x:o.x==="center"?b(e).x:g(e,o.x),y:o.y==="center"?b(e).y:g(e,o.y)}},g=(t,o)=>{const e=c(t),n=x.xyCouple(e.root).includes(o)?Math.min:Math.max;return m.X_LOCATIONS.includes(o)?n(e.one.x,e.two.x):n(e.one.y,e.two.y)},Y=t=>t.one.x===t.two.x&&t.one.y===t.two.y,w=t=>L(t,"x"),d=t=>L(t,"y"),O=t=>{const o=c(t);return o.two.x-o.one.x},E=t=>{const o=c(t);return o.two.y-o.one.y},q=t=>l(t,x.TOP_LEFT),k=t=>l(t,x.TOP_CENTER),J=t=>l(t,x.TOP_RIGHT),K=t=>l(t,x.BOTTOM_LEFT),Q=t=>l(t,x.BOTTOM_CENTER),V=t=>l(t,x.BOTTOM_RIGHT),tt=t=>l(t,x.CENTER_LEFT),ot=t=>l(t,x.CENTER_RIGHT),h=t=>g(t,"right"),_=t=>g(t,"bottom"),a=t=>g(t,"left"),f=t=>g(t,"top"),b=t=>i.translate(q(t),{x:O(t)/2,y:E(t)/2}),M=t=>{const o=c(t);return o.root.x==="left"?a(o):h(o)},z=t=>{const o=c(t);return o.root.y==="top"?f(o):_(o)},nt=t=>({x:M(t),y:z(t)}),N=t=>{const o=c(t);return{lower:o.one.x,upper:o.two.x}},P=t=>{const o=c(t);return{lower:o.one.y,upper:o.two.y}},et=(t,o)=>C(t,o),rt=(t,o)=>{const e=c(t),n=m.X_LOCATIONS.includes(o)?"x":m.Y_LOCATIONS.includes(o)?"y":null;if(n===null)throw new Error(`Invalid location: ${o}`);const s=o==="top"||o==="left"?Math.min:Math.max,r={...e.one},y={...e.two};return r[n]=s(e.one[n],e.two[n]),y[n]=s(e.one[n],e.two[n]),[r,y]},st=(t,o)=>{const e=c(t),n=c(o),s=M(n)+(w(n)-w(e))/2,r=z(n)+(d(n)-d(e))/2;return c({x:s,y:r},I(e))},Z=t=>typeof t!="object"||t==null?!1:"one"in t&&"two"in t&&"root"in t,ct=t=>w(t)/d(t),it=(t,o,e)=>{if(typeof o=="string"){if(e==null)throw new Error("Undefined amount passed into box.translate");const s=R.construct(o);o=i.construct(s,e)}const n=c(t);return c(i.translate(n.one,o),i.translate(n.two,o),void 0,void 0,n.root)},j=(t,o)=>{const e=Math.max(a(t),a(o)),n=Math.max(f(t),f(o)),s=Math.min(h(t),h(o)),r=Math.min(_(t),_(o));return e>s||n>r?B:c({x:e,y:n},{x:s,y:r},void 0,void 0,t.root)},A=t=>w(t)*d(t),xt=(t,o)=>{const e=c(t);return c(i.truncate(e.one,o),i.truncate(e.two,o),void 0,void 0,e.root)},F=(t,o,e,n,s,r)=>{const y={x:t,y:o},T={x:t+e,y:o+n};return s.x!==r.x&&(s.x==="center"?(y.x-=e/2,T.x-=e/2):(y.x-=e,T.x-=e)),s.y!==r.y&&(s.y==="center"?(y.y-=n/2,T.y-=n/2):(y.y-=n,T.y-=n)),c(y,T,void 0,void 0,r)},yt=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:v,ZERO:B,area:A,areaIsZero:Y,aspect:ct,bottom:_,bottomCenter:Q,bottomLeft:K,bottomRight:V,box:S,center:b,centerLeft:tt,centerRight:ot,construct:c,constructWithAlternateRoot:F,contains:D,copy:C,css:U,cssBox:H,dim:L,dims:I,domRect:W,edgePoints:rt,equals:X,height:d,intersection:j,isBox:Z,left:a,loc:g,positionInCenter:st,reRoot:et,resize:G,right:h,root:nt,signedDims:$,signedHeight:E,signedWidth:O,top:f,topCenter:k,topLeft:q,topRight:J,translate:it,truncate:xt,width:w,x:M,xBounds:N,xyLoc:l,y:z,yBounds:P},Symbol.toStringTag,{value:"Module"}));exports.area=A;exports.box=yt;exports.construct=c;exports.constructWithAlternateRoot=F;exports.height=d;exports.intersection=j;exports.isBox=Z;exports.width=w;exports.xBounds=N;exports.xyLoc=l;exports.yBounds=P;
@@ -1,205 +0,0 @@
1
- import { z as x } from "zod";
2
- import { c as O } from "./direction-BL0PhD1k.js";
3
- import { c as A, T as M, B as j, b as S, d as Z, e as q, f as v, g as F, h as G, i as D, j as X } from "./location-C3aeu046.js";
4
- import { Z as g, O as Y, e as I, t as b, c as U, a as L } from "./xy-D_LqxaGt.js";
5
- import { x as $, X as N, Y as k } from "./base-DFq0vvGn.js";
6
- const h = x.union([x.number(), x.string()]), J = x.object({
7
- top: h,
8
- left: h,
9
- width: h,
10
- height: h
11
- }), K = x.object({
12
- left: x.number(),
13
- top: x.number(),
14
- right: x.number(),
15
- bottom: x.number()
16
- }), Q = x.object({
17
- one: $,
18
- two: $,
19
- root: A
20
- }), H = { one: g, two: g, root: M }, V = { one: g, two: Y, root: j }, P = (t, o) => ({
21
- one: t.one,
22
- two: t.two,
23
- root: o ?? t.root
24
- }), c = (t, o, e = 0, n = 0, r) => {
25
- const s = {
26
- one: { ...g },
27
- two: { ...g },
28
- root: r ?? M
29
- };
30
- if (typeof t == "number") {
31
- if (typeof o != "number")
32
- throw new Error("Box constructor called with invalid arguments");
33
- return s.one = { x: t, y: o }, s.two = { x: s.one.x + e, y: s.one.y + n }, s;
34
- }
35
- return "one" in t && "two" in t && "root" in t ? { ...t, root: r ?? t.root } : ("getBoundingClientRect" in t && (t = t.getBoundingClientRect()), "left" in t ? (s.one = { x: t.left, y: t.top }, s.two = { x: t.right, y: t.bottom }, s) : (s.one = t, o == null ? s.two = { x: s.one.x + e, y: s.one.y + n } : typeof o == "number" ? s.two = { x: s.one.x + o, y: s.one.y + e } : "width" in o ? s.two = {
36
- x: s.one.x + o.width,
37
- y: s.one.y + o.height
38
- } : "signedWidth" in o ? s.two = {
39
- x: s.one.x + o.signedWidth,
40
- y: s.one.y + o.signedHeight
41
- } : s.two = o, s));
42
- }, tt = (t, o, e) => {
43
- const n = c(t);
44
- if (typeof o == "string") {
45
- if (e == null) throw new Error("Invalid arguments for resize");
46
- const r = O(o);
47
- return c(
48
- n.one,
49
- void 0,
50
- r === "x" ? e : f(n),
51
- r === "y" ? e : w(n),
52
- n.root
53
- );
54
- }
55
- return c(n.one, o, void 0, void 0, n.root);
56
- }, ot = (t, o, e = !0) => {
57
- const n = c(t);
58
- let r = (s, i) => s < i;
59
- return e && (r = (s, i) => s <= i), "one" in o ? r(a(n), a(o)) && r(l(o), l(n)) && r(u(n), u(o)) && r(m(o), m(n)) : r(a(n), o.x) && r(o.x, l(n)) && r(u(n), o.y) && r(o.y, m(n));
60
- }, nt = (t, o) => I(t.one, o.one) && I(t.two, o.two) && S(t.root, o.root), W = (t) => ({
61
- width: f(t),
62
- height: w(t)
63
- }), et = (t) => ({
64
- signedWidth: _(t),
65
- signedHeight: T(t)
66
- }), st = (t) => ({
67
- top: u(t),
68
- left: a(t),
69
- width: f(t),
70
- height: w(t)
71
- }), C = (t, o, e = !1) => {
72
- const n = O(o) === "y" ? T(t) : _(t);
73
- return e ? n : Math.abs(n);
74
- }, y = (t, o) => {
75
- const e = c(t);
76
- return {
77
- x: o.x === "center" ? E(e).x : d(e, o.x),
78
- y: o.y === "center" ? E(e).y : d(e, o.y)
79
- };
80
- }, d = (t, o) => {
81
- const e = c(t), n = Z(e.root).includes(o) ? Math.min : Math.max;
82
- return N.includes(o) ? n(e.one.x, e.two.x) : n(e.one.y, e.two.y);
83
- }, rt = (t) => t.one.x === t.two.x && t.one.y === t.two.y, f = (t) => C(t, "x"), w = (t) => C(t, "y"), _ = (t) => {
84
- const o = c(t);
85
- return o.two.x - o.one.x;
86
- }, T = (t) => {
87
- const o = c(t);
88
- return o.two.y - o.one.y;
89
- }, z = (t) => y(t, M), ct = (t) => y(t, q), it = (t) => y(t, v), xt = (t) => y(t, j), yt = (t) => y(t, F), at = (t) => y(t, G), ut = (t) => y(t, D), ft = (t) => y(t, X), l = (t) => d(t, "right"), m = (t) => d(t, "bottom"), a = (t) => d(t, "left"), u = (t) => d(t, "top"), E = (t) => b(z(t), {
90
- x: _(t) / 2,
91
- y: T(t) / 2
92
- }), B = (t) => {
93
- const o = c(t);
94
- return o.root.x === "left" ? a(o) : l(o);
95
- }, R = (t) => {
96
- const o = c(t);
97
- return o.root.y === "top" ? u(o) : m(o);
98
- }, wt = (t) => ({ x: B(t), y: R(t) }), lt = (t) => {
99
- const o = c(t);
100
- return { lower: o.one.x, upper: o.two.x };
101
- }, mt = (t) => {
102
- const o = c(t);
103
- return { lower: o.one.y, upper: o.two.y };
104
- }, dt = (t, o) => P(t, o), pt = (t, o) => {
105
- const e = c(t), n = N.includes(o) ? "x" : k.includes(o) ? "y" : null;
106
- if (n === null) throw new Error(`Invalid location: ${o}`);
107
- const r = o === "top" || o === "left" ? Math.min : Math.max, s = { ...e.one }, i = { ...e.two };
108
- return s[n] = r(e.one[n], e.two[n]), i[n] = r(e.one[n], e.two[n]), [s, i];
109
- }, gt = (t, o) => {
110
- const e = c(t), n = c(o), r = B(n) + (f(n) - f(e)) / 2, s = R(n) + (w(n) - w(e)) / 2;
111
- return c({ x: r, y: s }, W(e));
112
- }, ht = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, _t = (t) => f(t) / w(t), Tt = (t, o, e) => {
113
- if (typeof o == "string") {
114
- if (e == null) throw new Error("Undefined amount passed into box.translate");
115
- const r = O(o);
116
- o = U(r, e);
117
- }
118
- const n = c(t);
119
- return c(
120
- b(n.one, o),
121
- b(n.two, o),
122
- void 0,
123
- void 0,
124
- n.root
125
- );
126
- }, bt = (t, o) => {
127
- const e = Math.max(a(t), a(o)), n = Math.max(u(t), u(o)), r = Math.min(l(t), l(o)), s = Math.min(m(t), m(o));
128
- return e > r || n > s ? H : c({ x: e, y: n }, { x: r, y: s }, void 0, void 0, t.root);
129
- }, Et = (t) => f(t) * w(t), Ot = (t, o) => {
130
- const e = c(t);
131
- return c(
132
- L(e.one, o),
133
- L(e.two, o),
134
- void 0,
135
- void 0,
136
- e.root
137
- );
138
- }, Mt = (t, o, e, n, r, s) => {
139
- const i = { x: t, y: o }, p = { x: t + e, y: o + n };
140
- return r.x !== s.x && (r.x === "center" ? (i.x -= e / 2, p.x -= e / 2) : (i.x -= e, p.x -= e)), r.y !== s.y && (r.y === "center" ? (i.y -= n / 2, p.y -= n / 2) : (i.y -= n, p.y -= n)), c(i, p, void 0, void 0, s);
141
- }, $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
142
- __proto__: null,
143
- DECIMAL: V,
144
- ZERO: H,
145
- area: Et,
146
- areaIsZero: rt,
147
- aspect: _t,
148
- bottom: m,
149
- bottomCenter: yt,
150
- bottomLeft: xt,
151
- bottomRight: at,
152
- box: Q,
153
- center: E,
154
- centerLeft: ut,
155
- centerRight: ft,
156
- construct: c,
157
- constructWithAlternateRoot: Mt,
158
- contains: ot,
159
- copy: P,
160
- css: st,
161
- cssBox: J,
162
- dim: C,
163
- dims: W,
164
- domRect: K,
165
- edgePoints: pt,
166
- equals: nt,
167
- height: w,
168
- intersection: bt,
169
- isBox: ht,
170
- left: a,
171
- loc: d,
172
- positionInCenter: gt,
173
- reRoot: dt,
174
- resize: tt,
175
- right: l,
176
- root: wt,
177
- signedDims: et,
178
- signedHeight: T,
179
- signedWidth: _,
180
- top: u,
181
- topCenter: ct,
182
- topLeft: z,
183
- topRight: it,
184
- translate: Tt,
185
- truncate: Ot,
186
- width: f,
187
- x: B,
188
- xBounds: lt,
189
- xyLoc: y,
190
- y: R,
191
- yBounds: mt
192
- }, Symbol.toStringTag, { value: "Module" }));
193
- export {
194
- Mt as a,
195
- $t as b,
196
- c,
197
- Et as d,
198
- ht as e,
199
- lt as f,
200
- w as h,
201
- bt as i,
202
- f as w,
203
- y as x,
204
- mt as y
205
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("zod"),n=t=>e.z.object({variant:e.z.enum(["set","delete"]),key:e.z.string(),value:t}),o=Object.freeze(Object.defineProperty({__proto__:null,Z:n},Symbol.toStringTag,{value:"Module"}));exports.change=o;
@@ -1,12 +0,0 @@
1
- import { z as e } from "zod";
2
- const o = (t) => e.object({
3
- variant: e.enum(["set", "delete"]),
4
- key: e.string(),
5
- value: t
6
- }), n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7
- __proto__: null,
8
- Z: o
9
- }, Symbol.toStringTag, { value: "Module" }));
10
- export {
11
- n as c
12
- };
@@ -1,43 +0,0 @@
1
- import { z as h } from "zod";
2
- import { d as o, x as g, n as a } from "./base-DFq0vvGn.js";
3
- const r = h.object({ signedWidth: h.number(), signedHeight: h.number() }), c = h.union([o, r, g, a]), u = { width: 0, height: 0 }, m = { width: 1, height: 1 }, n = (t, e) => typeof t == "number" ? { width: t, height: e ?? t } : Array.isArray(t) ? { width: t[0], height: t[1] } : "x" in t ? { width: t.x, height: t.y } : "signedWidth" in t ? { width: t.signedWidth, height: t.signedHeight } : { ...t }, d = (t, e) => {
4
- if (e == null) return !1;
5
- const i = n(t), s = n(e);
6
- return i.width === s.width && i.height === s.height;
7
- }, p = (t) => {
8
- const e = n(t);
9
- return { width: e.height, height: e.width };
10
- }, l = (t) => {
11
- const e = n(t);
12
- return `0 0 ${e.width} ${e.height}`;
13
- }, f = (t) => {
14
- const e = n(t);
15
- return [e.width, e.height];
16
- }, x = (t) => ({
17
- width: Math.max(...t.map((e) => n(e).width)),
18
- height: Math.max(...t.map((e) => n(e).height))
19
- }), b = (t) => ({
20
- width: Math.min(...t.map((e) => n(e).width)),
21
- height: Math.min(...t.map((e) => n(e).height))
22
- }), w = (t, e) => {
23
- const i = n(t);
24
- return { width: i.width * e, height: i.height * e };
25
- }, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26
- __proto__: null,
27
- DECIMAL: m,
28
- ZERO: u,
29
- construct: n,
30
- couple: f,
31
- crude: c,
32
- dimensions: o,
33
- equals: d,
34
- max: x,
35
- min: b,
36
- scale: w,
37
- signed: r,
38
- svgViewBox: l,
39
- swap: p
40
- }, Symbol.toStringTag, { value: "Module" }));
41
- export {
42
- _ as d
43
- };
@@ -1 +0,0 @@
1
- "use strict";const h=require("zod"),s=require("./base-BAM2mqCy.cjs"),o=h.z.object({signedWidth:h.z.number(),signedHeight:h.z.number()}),g=h.z.union([s.dimensions,o,s.xy,s.numberCouple]),c={width:0,height:0},u={width:1,height:1},n=(t,e)=>typeof t=="number"?{width:t,height:e??t}:Array.isArray(t)?{width:t[0],height:t[1]}:"x"in t?{width:t.x,height:t.y}:"signedWidth"in t?{width:t.signedWidth,height:t.signedHeight}:{...t},a=(t,e)=>{if(e==null)return!1;const i=n(t),r=n(e);return i.width===r.width&&i.height===r.height},d=t=>{const e=n(t);return{width:e.height,height:e.width}},m=t=>{const e=n(t);return`0 0 ${e.width} ${e.height}`},l=t=>{const e=n(t);return[e.width,e.height]},p=t=>({width:Math.max(...t.map(e=>n(e).width)),height:Math.max(...t.map(e=>n(e).height))}),b=t=>({width:Math.min(...t.map(e=>n(e).width)),height:Math.min(...t.map(e=>n(e).height))}),f=(t,e)=>{const i=n(t);return{width:i.width*e,height:i.height*e}},w=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:u,ZERO:c,construct:n,couple:l,crude:g,dimensions:s.dimensions,equals:a,max:p,min:b,scale:f,signed:o,svgViewBox:m,swap:d},Symbol.toStringTag,{value:"Module"}));exports.dimensions=w;
@@ -1,29 +0,0 @@
1
- import { z as r } from "zod";
2
- const t = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", u = t(), i = ["macOS", "Windows", "Linux"], d = ["macos", "windows", "linux"], c = {
3
- macos: "macOS",
4
- windows: "Windows",
5
- linux: "Linux"
6
- }, l = r.enum(i).or(
7
- r.enum(d).transform((n) => c[n])
8
- ), f = () => {
9
- if (typeof window > "u") return;
10
- const n = window.navigator.userAgent.toLowerCase();
11
- if (n.includes("mac")) return "macOS";
12
- if (n.includes("win")) return "Windows";
13
- if (n.includes("linux")) return "Linux";
14
- };
15
- let e;
16
- const w = (n = {}) => {
17
- const { force: o, default: s } = n;
18
- return o ?? e ?? (e = f(), e ?? s);
19
- }, S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20
- __proto__: null,
21
- OPERATING_SYSTEMS: i,
22
- RUNTIME: u,
23
- detect: t,
24
- getOS: w,
25
- osZ: l
26
- }, Symbol.toStringTag, { value: "Module" }));
27
- export {
28
- S as e
29
- };
@@ -1 +0,0 @@
1
- "use strict";var o=Object.defineProperty;var l=(s,e,t)=>e in s?o(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var r=(s,e,t)=>l(s,typeof e!="symbol"?e+"":e,t);const n=require("zod");class c{constructor(){r(this,"store",new Map)}async get(e){return this.store.get(e)??null}async set(e,t){this.store.set(e,t)}async delete(e){this.store.delete(e)}async length(){return this.store.size}async clear(){this.store.clear()}}class a{constructor(){r(this,"store",new Map)}get(e){return this.store.get(e)??null}set(e,t){this.store.set(e,t)}delete(e){this.store.delete(e)}}const i=n.z.object({key:n.z.string(),value:n.z.string()}),u=Object.freeze(Object.defineProperty({__proto__:null,MockAsync:c,MockSync:a,stringPairZ:i},Symbol.toStringTag,{value:"Module"}));exports.external=u;
@@ -1,29 +0,0 @@
1
- import { z as e } from "zod";
2
- import { t as a, g as N } from "./path-DD6ytXzr.js";
3
- const I = -128, T = 127, l = e.number().int().min(I).max(T), _ = -32768, M = 32767, p = e.number().int().min(_).max(M), f = -2147483648, g = 2147483647, x = e.number().int().min(f).max(g), b = -9223372036854775808n, A = 9223372036854775807n, X = e.bigint().min(b).max(A), h = 255, y = e.number().int().min(0).max(h), P = 65535, S = e.number().int().min(0).max(P), U = 4294967295, d = e.number().int().min(0).max(U), v = 18446744073709551615n, z = e.bigint().min(0n).max(v), c = (n) => a(n, (t, s, o) => {
4
- const r = s === o.length - 1, m = !isNaN(parseInt(t)), u = !isNaN(parseInt(o[s + 1]));
5
- return m && (t = "element"), r || u ? t : [t, "shape"];
6
- }), i = (n, t) => {
7
- if (n == null) return null;
8
- const s = n[t];
9
- return s == null && typeof n == "object" && "sourceType" in n ? n.sourceType()[t] : s;
10
- }, F = (n, t, s) => N(
11
- i(n, "shape"),
12
- c(t),
13
- { ...s, getter: i }
14
- ), L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15
- __proto__: null,
16
- getFieldSchema: F,
17
- getFieldSchemaPath: c,
18
- int16: p,
19
- int32: x,
20
- int64: X,
21
- int8: l,
22
- uint16: S,
23
- uint32: d,
24
- uint64: z,
25
- uint8: y
26
- }, Symbol.toStringTag, { value: "Module" }));
27
- export {
28
- L as e
29
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("zod"),o=require("./path-1tZLZ4AN.cjs"),N=-128,I=127,T=e.z.number().int().min(N).max(I),l=-32768,_=32767,M=e.z.number().int().min(l).max(_),x=-2147483648,z=2147483647,g=e.z.number().int().min(x).max(z),p=-9223372036854775808n,b=9223372036854775807n,f=e.z.bigint().min(p).max(b),h=255,A=e.z.number().int().min(0).max(h),X=65535,y=e.z.number().int().min(0).max(X),P=4294967295,S=e.z.number().int().min(0).max(P),U=18446744073709551615n,d=e.z.bigint().min(0n).max(U),r=n=>o.transformPath(n,(t,s,c)=>{const u=s===c.length-1,m=!isNaN(parseInt(t)),a=!isNaN(parseInt(c[s+1]));return m&&(t="element"),u||a?t:[t,"shape"]}),i=(n,t)=>{if(n==null)return null;const s=n[t];return s==null&&typeof n=="object"&&"sourceType"in n?n.sourceType()[t]:s},q=(n,t,s)=>o.get(i(n,"shape"),r(t),{...s,getter:i}),v=Object.freeze(Object.defineProperty({__proto__:null,getFieldSchema:q,getFieldSchemaPath:r,int16:M,int32:g,int64:f,int8:T,uint16:y,uint32:S,uint64:d,uint8:A},Symbol.toStringTag,{value:"Module"}));exports.external=v;
@@ -1,47 +0,0 @@
1
- var o = Object.defineProperty;
2
- var l = (s, e, t) => e in s ? o(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
- var r = (s, e, t) => l(s, typeof e != "symbol" ? e + "" : e, t);
4
- import { z as n } from "zod";
5
- class c {
6
- constructor() {
7
- r(this, "store", /* @__PURE__ */ new Map());
8
- }
9
- async get(e) {
10
- return this.store.get(e) ?? null;
11
- }
12
- async set(e, t) {
13
- this.store.set(e, t);
14
- }
15
- async delete(e) {
16
- this.store.delete(e);
17
- }
18
- async length() {
19
- return this.store.size;
20
- }
21
- async clear() {
22
- this.store.clear();
23
- }
24
- }
25
- class a {
26
- constructor() {
27
- r(this, "store", /* @__PURE__ */ new Map());
28
- }
29
- get(e) {
30
- return this.store.get(e) ?? null;
31
- }
32
- set(e, t) {
33
- this.store.set(e, t);
34
- }
35
- delete(e) {
36
- this.store.delete(e);
37
- }
38
- }
39
- const i = n.object({ key: n.string(), value: n.string() }), h = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40
- __proto__: null,
41
- MockAsync: c,
42
- MockSync: a,
43
- stringPairZ: i
44
- }, Symbol.toStringTag, { value: "Module" }));
45
- export {
46
- h as e
47
- };
@@ -1 +0,0 @@
1
- "use strict";const r=require("zod"),t=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null?"node":typeof window>"u"||window.document===void 0?"webworker":"browser",u=t(),s=["macOS","Windows","Linux"],c=["macos","windows","linux"],d={macos:"macOS",windows:"Windows",linux:"Linux"},l=r.z.enum(s).or(r.z.enum(c).transform(n=>d[n])),f=()=>{if(typeof window>"u")return;const n=window.navigator.userAgent.toLowerCase();if(n.includes("mac"))return"macOS";if(n.includes("win"))return"Windows";if(n.includes("linux"))return"Linux"};let e;const w=(n={})=>{const{force:o,default:i}=n;return o??e??(e=f(),e??i)},a=Object.freeze(Object.defineProperty({__proto__:null,OPERATING_SYSTEMS:s,RUNTIME:u,detect:t,getOS:w,osZ:l},Symbol.toStringTag,{value:"Module"}));exports.external=a;