@synnaxlabs/x 0.40.0 → 0.42.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 (203) hide show
  1. package/.turbo/turbo-build.log +33 -33
  2. package/dist/binary.cjs +1 -1
  3. package/dist/binary.js +2 -2
  4. package/dist/bounds-BQo7rvs9.cjs +1 -0
  5. package/dist/{bounds-azUOoVVR.js → bounds-Bn5_l4Z3.js} +84 -86
  6. package/dist/bounds.cjs +1 -1
  7. package/dist/bounds.js +1 -1
  8. package/dist/box-0YrQibkB.cjs +1 -0
  9. package/dist/box-Cc8IzcNo.js +205 -0
  10. package/dist/box.cjs +1 -1
  11. package/dist/box.js +1 -1
  12. package/dist/compare.cjs +1 -1
  13. package/dist/compare.js +1 -1
  14. package/dist/deep.cjs +1 -1
  15. package/dist/deep.js +66 -69
  16. package/dist/{dimensions-PWy5QZoM.cjs → dimensions-D2QGoNXO.cjs} +1 -1
  17. package/dist/dimensions.cjs +1 -1
  18. package/dist/{external-CvWr1nhS.cjs → external-DWQITF5_.cjs} +1 -1
  19. package/dist/index-BywOGO8U.js +1074 -0
  20. package/dist/index-CYYjI7Uf.cjs +1 -0
  21. package/dist/index-C_6NXBlg.cjs +3 -0
  22. package/dist/{index-BVC_8Cg9.js → index-QGplUHuy.js} +1 -1
  23. package/dist/index.cjs +3 -3
  24. package/dist/index.js +736 -240
  25. package/dist/location-BGl5Ddds.cjs +1 -0
  26. package/dist/{location-BuYbIFHD.js → location-C3aeu046.js} +16 -12
  27. package/dist/location.cjs +1 -1
  28. package/dist/location.js +1 -1
  29. package/dist/{position-DTrNGtrm.cjs → position-Cai5-wi1.cjs} +1 -1
  30. package/dist/{position-DemzGvAY.js → position-DIglP1l2.js} +2 -2
  31. package/dist/position.cjs +1 -1
  32. package/dist/position.js +1 -1
  33. package/dist/record.js +3 -1
  34. package/dist/{scale-DpJM6__6.cjs → scale-BtZINJ-A.cjs} +1 -1
  35. package/dist/{scale-C0EllH-1.js → scale-DfJe9755.js} +4 -4
  36. package/dist/scale.cjs +1 -1
  37. package/dist/scale.js +1 -1
  38. package/dist/{series-CXnO-P0V.js → series-B9JERcqi.js} +541 -474
  39. package/dist/series-DqJ6f97G.cjs +11 -0
  40. package/dist/spatial.cjs +1 -1
  41. package/dist/spatial.js +6 -6
  42. package/dist/src/binary/{encoder.d.ts → codec.d.ts} +14 -8
  43. package/dist/src/binary/codec.d.ts.map +1 -0
  44. package/dist/src/binary/codec.spec.d.ts +2 -0
  45. package/dist/src/binary/codec.spec.d.ts.map +1 -0
  46. package/dist/src/binary/index.d.ts +1 -1
  47. package/dist/src/binary/index.d.ts.map +1 -1
  48. package/dist/src/breaker/breaker.d.ts +14 -21
  49. package/dist/src/breaker/breaker.d.ts.map +1 -1
  50. package/dist/src/change/change.d.ts +5 -18
  51. package/dist/src/change/change.d.ts.map +1 -1
  52. package/dist/src/color/color.d.ts +126 -0
  53. package/dist/src/color/color.d.ts.map +1 -0
  54. package/dist/src/color/color.spec.d.ts +2 -0
  55. package/dist/src/color/color.spec.d.ts.map +1 -0
  56. package/dist/src/color/external.d.ts +5 -0
  57. package/dist/src/color/external.d.ts.map +1 -0
  58. package/dist/src/color/gradient.d.ts +18 -0
  59. package/dist/src/color/gradient.d.ts.map +1 -0
  60. package/dist/src/color/index.d.ts +2 -0
  61. package/dist/src/color/index.d.ts.map +1 -0
  62. package/dist/src/color/palette.d.ts +19 -0
  63. package/dist/src/color/palette.d.ts.map +1 -0
  64. package/dist/src/color/transformColorsToHex.d.ts +6 -0
  65. package/dist/src/color/transformColorsToHex.d.ts.map +1 -0
  66. package/dist/src/control/control.d.ts +69 -74
  67. package/dist/src/control/control.d.ts.map +1 -1
  68. package/dist/src/deep/merge.d.ts +1 -1
  69. package/dist/src/deep/merge.d.ts.map +1 -1
  70. package/dist/src/errors/errors.d.ts +127 -7
  71. package/dist/src/errors/errors.d.ts.map +1 -1
  72. package/dist/src/errors/errors.spec.d.ts +2 -0
  73. package/dist/src/errors/errors.spec.d.ts.map +1 -0
  74. package/dist/src/index.d.ts +5 -0
  75. package/dist/src/index.d.ts.map +1 -1
  76. package/dist/src/jsonrpc/jsonrpc.d.ts +10 -7
  77. package/dist/src/jsonrpc/jsonrpc.d.ts.map +1 -1
  78. package/dist/src/kv/types.d.ts +1 -7
  79. package/dist/src/kv/types.d.ts.map +1 -1
  80. package/dist/src/math/external.d.ts +3 -0
  81. package/dist/src/math/external.d.ts.map +1 -0
  82. package/dist/src/math/index.d.ts +1 -1
  83. package/dist/src/math/index.d.ts.map +1 -1
  84. package/dist/src/math/round.d.ts +40 -0
  85. package/dist/src/math/round.d.ts.map +1 -0
  86. package/dist/src/math/round.spec.d.ts +2 -0
  87. package/dist/src/math/round.spec.d.ts.map +1 -0
  88. package/dist/src/migrate/migrate.d.ts +1 -1
  89. package/dist/src/notation/index.d.ts +2 -0
  90. package/dist/src/notation/index.d.ts.map +1 -0
  91. package/dist/src/notation/notation.d.ts +37 -0
  92. package/dist/src/notation/notation.d.ts.map +1 -0
  93. package/dist/src/notation/notation.spec.d.ts +2 -0
  94. package/dist/src/notation/notation.spec.d.ts.map +1 -0
  95. package/dist/src/record.d.ts +2 -1
  96. package/dist/src/record.d.ts.map +1 -1
  97. package/dist/src/replace.d.ts +2 -0
  98. package/dist/src/replace.d.ts.map +1 -0
  99. package/dist/src/runtime/os.d.ts +9 -1
  100. package/dist/src/runtime/os.d.ts.map +1 -1
  101. package/dist/src/singleton/define.d.ts +9 -0
  102. package/dist/src/singleton/define.d.ts.map +1 -0
  103. package/dist/src/singleton/define.spec.d.ts +2 -0
  104. package/dist/src/singleton/define.spec.d.ts.map +1 -0
  105. package/dist/src/singleton/index.d.ts +2 -0
  106. package/dist/src/singleton/index.d.ts.map +1 -0
  107. package/dist/src/spatial/base.d.ts +74 -70
  108. package/dist/src/spatial/base.d.ts.map +1 -1
  109. package/dist/src/spatial/box/box.d.ts +22 -76
  110. package/dist/src/spatial/box/box.d.ts.map +1 -1
  111. package/dist/src/spatial/dimensions/dimensions.d.ts +5 -29
  112. package/dist/src/spatial/dimensions/dimensions.d.ts.map +1 -1
  113. package/dist/src/spatial/direction/direction.d.ts +9 -1
  114. package/dist/src/spatial/direction/direction.d.ts.map +1 -1
  115. package/dist/src/spatial/location/location.d.ts +45 -24
  116. package/dist/src/spatial/location/location.d.ts.map +1 -1
  117. package/dist/src/spatial/scale/scale.d.ts +12 -120
  118. package/dist/src/spatial/scale/scale.d.ts.map +1 -1
  119. package/dist/src/spatial/xy/xy.d.ts +15 -29
  120. package/dist/src/spatial/xy/xy.d.ts.map +1 -1
  121. package/dist/src/sync/index.d.ts +2 -0
  122. package/dist/src/sync/index.d.ts.map +1 -0
  123. package/dist/src/sync/mutex.d.ts +8 -0
  124. package/dist/src/sync/mutex.d.ts.map +1 -0
  125. package/dist/src/telem/gl.d.ts +4 -1
  126. package/dist/src/telem/gl.d.ts.map +1 -1
  127. package/dist/src/telem/series.d.ts +46 -125
  128. package/dist/src/telem/series.d.ts.map +1 -1
  129. package/dist/src/telem/telem.d.ts +102 -85
  130. package/dist/src/telem/telem.d.ts.map +1 -1
  131. package/dist/src/toArray.d.ts +1 -1
  132. package/dist/src/toArray.d.ts.map +1 -1
  133. package/dist/src/zod/util.d.ts.map +1 -1
  134. package/dist/telem.cjs +1 -1
  135. package/dist/telem.js +1 -1
  136. package/dist/toArray.cjs +1 -1
  137. package/dist/toArray.js +1 -1
  138. package/dist/{xy-DyQSETQZ.cjs → xy-B7065J2S.cjs} +1 -1
  139. package/dist/{xy-DHBO1dG_.js → xy-D_LqxaGt.js} +8 -4
  140. package/dist/xy.cjs +1 -1
  141. package/dist/xy.js +1 -1
  142. package/dist/zod.cjs +1 -1
  143. package/package.json +11 -8
  144. package/src/binary/codec.spec.ts +370 -0
  145. package/src/binary/{encoder.ts → codec.ts} +55 -11
  146. package/src/binary/index.ts +1 -1
  147. package/src/breaker/breaker.spec.ts +16 -25
  148. package/src/breaker/breaker.ts +36 -19
  149. package/src/color/color.spec.ts +673 -0
  150. package/src/color/color.ts +317 -0
  151. package/src/color/external.ts +13 -0
  152. package/src/color/gradient.ts +78 -0
  153. package/src/color/index.ts +10 -0
  154. package/src/color/palette.ts +28 -0
  155. package/src/color/transformColorsToHex.ts +30 -0
  156. package/src/control/control.ts +30 -22
  157. package/src/deep/merge.ts +2 -8
  158. package/src/errors/errors.spec.ts +152 -0
  159. package/src/errors/errors.ts +225 -10
  160. package/src/index.ts +5 -0
  161. package/src/jsonrpc/jsonrpc.ts +12 -8
  162. package/src/math/external.ts +11 -0
  163. package/src/math/index.ts +1 -1
  164. package/src/math/round.spec.ts +81 -0
  165. package/src/math/round.ts +68 -0
  166. package/src/migrate/migrate.ts +2 -2
  167. package/src/notation/index.ts +10 -0
  168. package/src/notation/notation.spec.ts +88 -0
  169. package/src/notation/notation.ts +61 -0
  170. package/src/primitive.ts +1 -1
  171. package/src/record.ts +5 -1
  172. package/src/replace.ts +1 -0
  173. package/src/singleton/define.spec.ts +93 -0
  174. package/src/singleton/define.ts +27 -0
  175. package/src/singleton/index.ts +10 -0
  176. package/src/spatial/box/box.spec.ts +3 -3
  177. package/src/spatial/box/box.ts +8 -0
  178. package/src/spatial/location/location.ts +4 -4
  179. package/src/spatial/position/position.spec.ts +10 -10
  180. package/src/spatial/xy/xy.spec.ts +8 -0
  181. package/src/spatial/xy/xy.ts +14 -0
  182. package/src/sync/index.ts +1 -0
  183. package/src/sync/mutex.ts +16 -0
  184. package/src/telem/series.spec.ts +71 -0
  185. package/src/telem/series.ts +69 -46
  186. package/src/telem/telem.spec.ts +151 -10
  187. package/src/telem/telem.ts +134 -73
  188. package/src/toArray.ts +2 -2
  189. package/src/zod/util.spec.ts +17 -1
  190. package/src/zod/util.ts +4 -2
  191. package/tsconfig.tsbuildinfo +1 -1
  192. package/dist/bounds-Dwq6ZFHm.cjs +0 -1
  193. package/dist/box-Bzya27QS.cjs +0 -1
  194. package/dist/box-DrsrRNSe.js +0 -201
  195. package/dist/index-BG3Scw3G.cjs +0 -1
  196. package/dist/index-C3QzbIwt.js +0 -101
  197. package/dist/index-CnclyYpG.cjs +0 -3
  198. package/dist/location-BgpQ3rN2.cjs +0 -1
  199. package/dist/series-BgoCtU71.cjs +0 -11
  200. package/dist/src/binary/encoder.d.ts.map +0 -1
  201. package/dist/src/binary/encoder.spec.d.ts +0 -2
  202. package/dist/src/binary/encoder.spec.d.ts.map +0 -1
  203. package/src/binary/encoder.spec.ts +0 -174
package/dist/compare.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BG3Scw3G.cjs");exports.compare=e.compare;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CYYjI7Uf.cjs");exports.compare=e.compare;
package/dist/compare.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as a } from "./index-BVC_8Cg9.js";
1
+ import { c as a } from "./index-QGplUHuy.js";
2
2
  export {
3
3
  a as compare
4
4
  };
package/dist/deep.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./identity.cjs"),y=require("./path-1tZLZ4AN.cjs"),j=e=>JSON.parse(JSON.stringify(e)),A=(e,...o)=>(o.forEach(i=>{let r=e;const f=i.split(".");f.forEach((n,t)=>{t===f.length-1?delete r[n]:n in r&&(r=r[n])})}),e),O=(e,o,i="")=>{const r={},f=(n,t,s)=>{if(typeof n!=typeof t||n===null||t===null){r[s]=[n,t];return}if(typeof n=="object"&&typeof t=="object")if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length){r[s]=[n,t];return}for(let l=0;l<n.length;l++)f(n[l],t[l],`${s}[${l}]`)}else new Set([...Object.keys(n),...Object.keys(t)]).forEach(c=>{f(n[c],t[c],s!==""?`${s}.${c}`:c)});else n!==t&&(r[s]=[n,t])};return f(e,o,i),r},p=(e,o)=>{const i=Array.isArray(e),r=Array.isArray(o);if(i!==r)return!1;if(i&&r){const t=e,s=o;if(t.length!==s.length)return!1;for(let l=0;l<t.length;l++)if(!p(t[l],s[l]))return!1;return!0}if(e==null||o==null||typeof e!="object"||typeof o!="object")return e===o;if("equals"in e)return e.equals(o);const f=Object.keys(e),n=Object.keys(o);if(f.length!==n.length)return!1;for(const t of f){const s=e[t],l=o[t];if(typeof s=="object"&&typeof l=="object"){if(!p(s,l))return!1}else if(s!==l)return!1}return!0},h=(e,o)=>{if(typeof e!="object"||e==null)return e===o;const i=Object.keys(e),r=Object.keys(o);if(r.length>i.length)return!1;for(const f of r){const n=e[f],t=o[f];if(typeof n=="object"&&typeof t=="object"){if(!h(n,t))return!1}else if(n!==t)return!1}return!0},a=(e,...o)=>{if(o.length===0)return e;const i=o.shift();if(u.isObject(e)&&u.isObject(i))for(const r in i)try{u.isObject(i[r])?(r in e||Object.assign(e,{[r]:{}}),a(e[r],i[r])):Object.assign(e,{[r]:i[r]})}catch(f){throw f instanceof TypeError?new TypeError(`.${r}: ${f.message}`):f}return a(e,...o)},E=(e,o,i)=>{const r=(f,n,t)=>{for(const s in n){const l=n[s],c=d(t);if(c!=null&&c[s]){const g=c[s].safeParse(l);g.success&&(f[s]=g.data)}else typeof l=="object"&&!Array.isArray(l)&&l!==null&&t&&t.shape&&t.shape[s]&&(f[s]||(f[s]={}),r(f[s],l,t.shape[s]))}return f};return r({...e},o,i)},d=e=>{var o;return((o=e._def)==null?void 0:o.typeName)==="ZodEffects"?d(e._def.schema):e==null?void 0:e.shape},V=Object.freeze(Object.defineProperty({__proto__:null,copy:j,deleteD:A,difference:O,element:y.element,equal:p,get:y.get,has:y.has,override:a,overrideValidItems:E,partialEqual:h,pathsMatch:y.pathsMatch,remove:y.remove,set:y.set,transformPath:y.transformPath},Symbol.toStringTag,{value:"Module"}));exports.deep=V;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./identity.cjs"),y=require("./path-1tZLZ4AN.cjs"),j=e=>JSON.parse(JSON.stringify(e)),d=(e,...f)=>(f.forEach(i=>{let r=e;const o=i.split(".");o.forEach((n,t)=>{t===o.length-1?delete r[n]:n in r&&(r=r[n])})}),e),A=(e,f,i="")=>{const r={},o=(n,t,s)=>{if(typeof n!=typeof t||n===null||t===null){r[s]=[n,t];return}if(typeof n=="object"&&typeof t=="object")if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length){r[s]=[n,t];return}for(let l=0;l<n.length;l++)o(n[l],t[l],`${s}[${l}]`)}else new Set([...Object.keys(n),...Object.keys(t)]).forEach(c=>{o(n[c],t[c],s!==""?`${s}.${c}`:c)});else n!==t&&(r[s]=[n,t])};return o(e,f,i),r},p=(e,f)=>{const i=Array.isArray(e),r=Array.isArray(f);if(i!==r)return!1;if(i&&r){const t=e,s=f;if(t.length!==s.length)return!1;for(let l=0;l<t.length;l++)if(!p(t[l],s[l]))return!1;return!0}if(e==null||f==null||typeof e!="object"||typeof f!="object")return e===f;if("equals"in e)return e.equals(f);const o=Object.keys(e),n=Object.keys(f);if(o.length!==n.length)return!1;for(const t of o){const s=e[t],l=f[t];if(typeof s=="object"&&typeof l=="object"){if(!p(s,l))return!1}else if(s!==l)return!1}return!0},h=(e,f)=>{if(typeof e!="object"||e==null)return e===f;const i=Object.keys(e),r=Object.keys(f);if(r.length>i.length)return!1;for(const o of r){const n=e[o],t=f[o];if(typeof n=="object"&&typeof t=="object"){if(!h(n,t))return!1}else if(n!==t)return!1}return!0},a=(e,...f)=>{if(f.length===0)return e;const i=f.shift();if(u.isObject(e)&&u.isObject(i))for(const r in i)try{u.isObject(i[r])?(r in e||Object.assign(e,{[r]:{}}),a(e[r],i[r])):Object.assign(e,{[r]:i[r]})}catch(o){throw o instanceof TypeError?new TypeError(`.${r}: ${o.message}`):o}return a(e,...f)},m=(e,f,i)=>{const r=(o,n,t)=>{for(const s in n){const l=n[s],c=t.shape;if(c!=null&&c[s]){const g=c[s].safeParse(l);g.success&&(o[s]=g.data)}else typeof l=="object"&&!Array.isArray(l)&&l!==null&&t&&t.shape&&t.shape[s]&&(o[s]||(o[s]={}),r(o[s],l,t.shape[s]))}return o};return r({...e},f,i)},O=Object.freeze(Object.defineProperty({__proto__:null,copy:j,deleteD:d,difference:A,element:y.element,equal:p,get:y.get,has:y.has,override:a,overrideValidItems:m,partialEqual:h,pathsMatch:y.pathsMatch,remove:y.remove,set:y.set,transformPath:y.transformPath},Symbol.toStringTag,{value:"Module"}));exports.deep=O;
package/dist/deep.js CHANGED
@@ -1,106 +1,103 @@
1
1
  import { isObject as y } from "./identity.js";
2
- import { e as d, g as A, h as j, p as E, r as V, s as _, t as $ } from "./path-DD6ytXzr.js";
3
- const k = (e) => JSON.parse(JSON.stringify(e)), m = (e, ...n) => (n.forEach((i) => {
2
+ import { e as h, g as A, h as j, p as d, r as m, s as V, t as E } from "./path-DD6ytXzr.js";
3
+ const $ = (e) => JSON.parse(JSON.stringify(e)), k = (e, ...f) => (f.forEach((i) => {
4
4
  let r = e;
5
- const f = i.split(".");
6
- f.forEach((o, t) => {
7
- t === f.length - 1 ? delete r[o] : o in r && (r = r[o]);
5
+ const n = i.split(".");
6
+ n.forEach((s, t) => {
7
+ t === n.length - 1 ? delete r[s] : s in r && (r = r[s]);
8
8
  });
9
- }), e), O = (e, n, i = "") => {
10
- const r = {}, f = (o, t, s) => {
11
- if (typeof o != typeof t || o === null || t === null) {
12
- r[s] = [o, t];
9
+ }), e), O = (e, f, i = "") => {
10
+ const r = {}, n = (s, t, o) => {
11
+ if (typeof s != typeof t || s === null || t === null) {
12
+ r[o] = [s, t];
13
13
  return;
14
14
  }
15
- if (typeof o == "object" && typeof t == "object")
16
- if (Array.isArray(o) && Array.isArray(t)) {
17
- if (o.length !== t.length) {
18
- r[s] = [o, t];
15
+ if (typeof s == "object" && typeof t == "object")
16
+ if (Array.isArray(s) && Array.isArray(t)) {
17
+ if (s.length !== t.length) {
18
+ r[o] = [s, t];
19
19
  return;
20
20
  }
21
- for (let l = 0; l < o.length; l++) f(o[l], t[l], `${s}[${l}]`);
21
+ for (let l = 0; l < s.length; l++) n(s[l], t[l], `${o}[${l}]`);
22
22
  } else
23
- (/* @__PURE__ */ new Set([...Object.keys(o), ...Object.keys(t)])).forEach((c) => {
24
- f(o[c], t[c], s !== "" ? `${s}.${c}` : c);
23
+ (/* @__PURE__ */ new Set([...Object.keys(s), ...Object.keys(t)])).forEach((c) => {
24
+ n(s[c], t[c], o !== "" ? `${o}.${c}` : c);
25
25
  });
26
- else o !== t && (r[s] = [o, t]);
26
+ else s !== t && (r[o] = [s, t]);
27
27
  };
28
- return f(e, n, i), r;
29
- }, u = (e, n) => {
30
- const i = Array.isArray(e), r = Array.isArray(n);
28
+ return n(e, f, i), r;
29
+ }, u = (e, f) => {
30
+ const i = Array.isArray(e), r = Array.isArray(f);
31
31
  if (i !== r) return !1;
32
32
  if (i && r) {
33
- const t = e, s = n;
34
- if (t.length !== s.length) return !1;
35
- for (let l = 0; l < t.length; l++) if (!u(t[l], s[l])) return !1;
33
+ const t = e, o = f;
34
+ if (t.length !== o.length) return !1;
35
+ for (let l = 0; l < t.length; l++) if (!u(t[l], o[l])) return !1;
36
36
  return !0;
37
37
  }
38
- if (e == null || n == null || typeof e != "object" || typeof n != "object")
39
- return e === n;
40
- if ("equals" in e) return e.equals(n);
41
- const f = Object.keys(e), o = Object.keys(n);
42
- if (f.length !== o.length) return !1;
43
- for (const t of f) {
44
- const s = e[t], l = n[t];
45
- if (typeof s == "object" && typeof l == "object") {
46
- if (!u(s, l)) return !1;
47
- } else if (s !== l) return !1;
38
+ if (e == null || f == null || typeof e != "object" || typeof f != "object")
39
+ return e === f;
40
+ if ("equals" in e) return e.equals(f);
41
+ const n = Object.keys(e), s = Object.keys(f);
42
+ if (n.length !== s.length) return !1;
43
+ for (const t of n) {
44
+ const o = e[t], l = f[t];
45
+ if (typeof o == "object" && typeof l == "object") {
46
+ if (!u(o, l)) return !1;
47
+ } else if (o !== l) return !1;
48
48
  }
49
49
  return !0;
50
- }, g = (e, n) => {
51
- if (typeof e != "object" || e == null) return e === n;
52
- const i = Object.keys(e), r = Object.keys(n);
50
+ }, g = (e, f) => {
51
+ if (typeof e != "object" || e == null) return e === f;
52
+ const i = Object.keys(e), r = Object.keys(f);
53
53
  if (r.length > i.length) return !1;
54
- for (const f of r) {
55
- const o = e[f], t = n[f];
56
- if (typeof o == "object" && typeof t == "object") {
57
- if (!g(o, t)) return !1;
58
- } else if (o !== t) return !1;
54
+ for (const n of r) {
55
+ const s = e[n], t = f[n];
56
+ if (typeof s == "object" && typeof t == "object") {
57
+ if (!g(s, t)) return !1;
58
+ } else if (s !== t) return !1;
59
59
  }
60
60
  return !0;
61
- }, p = (e, ...n) => {
62
- if (n.length === 0) return e;
63
- const i = n.shift();
61
+ }, p = (e, ...f) => {
62
+ if (f.length === 0) return e;
63
+ const i = f.shift();
64
64
  if (y(e) && y(i))
65
65
  for (const r in i)
66
66
  try {
67
67
  y(i[r]) ? (r in e || Object.assign(e, { [r]: {} }), p(e[r], i[r])) : Object.assign(e, { [r]: i[r] });
68
- } catch (f) {
69
- throw f instanceof TypeError ? new TypeError(`.${r}: ${f.message}`) : f;
68
+ } catch (n) {
69
+ throw n instanceof TypeError ? new TypeError(`.${r}: ${n.message}`) : n;
70
70
  }
71
- return p(e, ...n);
72
- }, q = (e, n, i) => {
73
- const r = (f, o, t) => {
74
- for (const s in o) {
75
- const l = o[s], c = h(t);
76
- if (c != null && c[s]) {
77
- const a = c[s].safeParse(l);
78
- a.success && (f[s] = a.data);
79
- } else typeof l == "object" && !Array.isArray(l) && l !== null && t && t.shape && t.shape[s] && (f[s] || (f[s] = {}), r(f[s], l, t.shape[s]));
71
+ return p(e, ...f);
72
+ }, q = (e, f, i) => {
73
+ const r = (n, s, t) => {
74
+ for (const o in s) {
75
+ const l = s[o], c = t.shape;
76
+ if (c != null && c[o]) {
77
+ const a = c[o].safeParse(l);
78
+ a.success && (n[o] = a.data);
79
+ } else typeof l == "object" && !Array.isArray(l) && l !== null && t && t.shape && t.shape[o] && (n[o] || (n[o] = {}), r(n[o], l, t.shape[o]));
80
80
  }
81
- return f;
81
+ return n;
82
82
  };
83
- return r({ ...e }, n, i);
84
- }, h = (e) => {
85
- var n;
86
- return ((n = e._def) == null ? void 0 : n.typeName) === "ZodEffects" ? h(e._def.schema) : e == null ? void 0 : e.shape;
87
- }, I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
83
+ return r({ ...e }, f, i);
84
+ }, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
88
85
  __proto__: null,
89
- copy: k,
90
- deleteD: m,
86
+ copy: $,
87
+ deleteD: k,
91
88
  difference: O,
92
- element: d,
89
+ element: h,
93
90
  equal: u,
94
91
  get: A,
95
92
  has: j,
96
93
  override: p,
97
94
  overrideValidItems: q,
98
95
  partialEqual: g,
99
- pathsMatch: E,
100
- remove: V,
101
- set: _,
102
- transformPath: $
96
+ pathsMatch: d,
97
+ remove: m,
98
+ set: V,
99
+ transformPath: E
103
100
  }, Symbol.toStringTag, { value: "Module" }));
104
101
  export {
105
- I as deep
102
+ _ as deep
106
103
  };
@@ -1 +1 @@
1
- "use strict";const h=require("zod"),s=require("./base-BAM2mqCy.cjs"),r=h.z.object({signedWidth:h.z.number(),signedHeight:h.z.number()}),g=h.z.union([s.dimensions,r,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),o=n(e);return i.width===o.width&&i.height===o.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:r,svgViewBox:m,swap:d},Symbol.toStringTag,{value:"Module"}));exports.dimensions=w;
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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./dimensions-PWy5QZoM.cjs");exports.dimensions=e.dimensions;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./dimensions-D2QGoNXO.cjs");exports.dimensions=e.dimensions;
@@ -1 +1 @@
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,d=e.z.number().int().min(0).max(P),S=18446744073709551615n,U=e.z.bigint().min(0n).max(S),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:d,uint64:U,uint8:A},Symbol.toStringTag,{value:"Module"}));exports.external=v;
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;