@pie-lib/graphing-solution-set 4.0.4-next.32 → 4.0.4-next.33

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 (105) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +2 -5
  2. package/dist/axis/arrow.js +5 -5
  3. package/dist/axis/axes.js +30 -30
  4. package/dist/container/index.js +33 -33
  5. package/dist/coordinates-label.js +6 -6
  6. package/dist/graph-with-controls.js +20 -20
  7. package/dist/grid-setup.js +63 -63
  8. package/dist/grid.js +3 -3
  9. package/dist/labels.js +15 -15
  10. package/dist/mark-label.js +6 -6
  11. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Axis.js +67 -0
  12. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +66 -0
  13. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Ticks.js +39 -0
  14. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
  15. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
  16. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +13 -0
  17. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
  18. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
  19. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickPosition.js +14 -0
  20. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/Grid.js +43 -0
  21. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js +46 -0
  22. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js +46 -0
  23. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
  24. package/dist/node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js +17 -0
  25. package/dist/node_modules/.bun/@visx_point@4.0.0/node_modules/@visx/point/esm/Point.js +20 -0
  26. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/utils/coerceNumber.js +2 -2
  27. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js +7 -0
  28. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
  29. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js +27 -0
  30. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/Text.js +27 -0
  31. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/hooks/useText.js +68 -0
  32. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/getStringWidth.js +19 -0
  33. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/memoize.js +13 -0
  34. package/dist/tool-menu.js +22 -22
  35. package/dist/tools/line/component.js +8 -8
  36. package/dist/tools/polygon/polygon.js +5 -5
  37. package/dist/tools/shared/point/base-point.js +9 -9
  38. package/dist/tools/shared/point/index.js +5 -5
  39. package/dist/undo-redo.js +7 -7
  40. package/package.json +12 -12
  41. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -101
  42. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -63
  43. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -44
  44. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
  45. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
  46. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
  47. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
  48. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
  49. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
  50. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +0 -79
  51. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
  52. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
  53. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
  54. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -50
  55. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
  56. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +0 -9
  57. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +0 -6
  58. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -47
  59. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -53
  60. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
  61. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
  62. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
  63. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +0 -21
  64. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +0 -21
  65. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +0 -10
  66. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +0 -21
  67. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +0 -9
  68. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +0 -14
  69. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +0 -15
  70. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +0 -16
  71. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +0 -9
  72. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +0 -8
  73. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +0 -14
  74. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +0 -15
  75. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +0 -19
  76. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +0 -11
  77. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +0 -13
  78. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +0 -12
  79. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +0 -18
  80. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +0 -14
  81. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +0 -14
  82. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +0 -12
  83. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +0 -16
  84. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +0 -11
  85. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +0 -14
  86. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +0 -14
  87. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +0 -13
  88. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +0 -14
  89. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +0 -19
  90. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +0 -14
  91. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +0 -13
  92. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +0 -13
  93. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +0 -14
  94. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +0 -9
  95. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +0 -12
  96. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +0 -10
  97. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +0 -20
  98. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +0 -11
  99. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +0 -16
  100. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +0 -12
  101. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +0 -20
  102. package/dist/node_modules/.bun/react-redux@9.3.0_9e2203c65d1d5fa1/node_modules/react-redux/dist/react-redux.js +0 -471
  103. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -53
  104. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -51
  105. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js +0 -10
@@ -1,471 +0,0 @@
1
- import { require_with_selector as e } from "../../../../use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js";
2
- import * as t from "react";
3
- e();
4
- var n = /* @__PURE__ */ t.version.startsWith("19"), r = /* @__PURE__ */ Symbol.for(n ? "react.transitional.element" : "react.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), a = /* @__PURE__ */ Symbol.for("react.fragment"), o = /* @__PURE__ */ Symbol.for("react.strict_mode"), s = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.consumer"), l = /* @__PURE__ */ Symbol.for("react.context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), f = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), h = /* @__PURE__ */ Symbol.for("react.offscreen"), g = /* @__PURE__ */ Symbol.for("react.client.reference"), _ = u, v = p;
5
- function y(e) {
6
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === s || e === o || e === d || e === f || e === h || typeof e == "object" && e && (e.$$typeof === m || e.$$typeof === p || e.$$typeof === l || e.$$typeof === c || e.$$typeof === u || e.$$typeof === g || e.getModuleId !== void 0));
7
- }
8
- function b(e) {
9
- if (typeof e == "object" && e) {
10
- let { $$typeof: t } = e;
11
- switch (t) {
12
- case r: switch (e = e.type, e) {
13
- case a:
14
- case s:
15
- case o:
16
- case d:
17
- case f: return e;
18
- default: switch (e &&= e.$$typeof, e) {
19
- case l:
20
- case u:
21
- case m:
22
- case p: return e;
23
- case c: return e;
24
- default: return t;
25
- }
26
- }
27
- case i: return t;
28
- }
29
- }
30
- }
31
- function ee(e) {
32
- return n ? b(e) === c : b(e) === l;
33
- }
34
- function x(e) {
35
- return b(e) === p;
36
- }
37
- function S(e) {
38
- typeof console < "u" && typeof console.error == "function" && console.error(e);
39
- try {
40
- throw Error(e);
41
- } catch {}
42
- }
43
- function C(e, t) {
44
- if (e) (t === "mapStateToProps" || t === "mapDispatchToProps") && (Object.prototype.hasOwnProperty.call(e, "dependsOnOwnProps") || S(`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`));
45
- else throw Error(`Unexpected value for ${t} in connect.`);
46
- }
47
- function w(e, t, n) {
48
- C(e, "mapStateToProps"), C(t, "mapDispatchToProps"), C(n, "mergeProps");
49
- }
50
- function T(e, t, n, r, { areStatesEqual: i, areOwnPropsEqual: a, areStatePropsEqual: o }) {
51
- let s = !1, c, l, u, d, f;
52
- function p(i, a) {
53
- return c = i, l = a, u = e(c, l), d = t(r, l), f = n(u, d, l), s = !0, f;
54
- }
55
- function m() {
56
- return u = e(c, l), t.dependsOnOwnProps && (d = t(r, l)), f = n(u, d, l), f;
57
- }
58
- function h() {
59
- return e.dependsOnOwnProps && (u = e(c, l)), t.dependsOnOwnProps && (d = t(r, l)), f = n(u, d, l), f;
60
- }
61
- function g() {
62
- let t = e(c, l), r = !o(t, u);
63
- return u = t, r && (f = n(u, d, l)), f;
64
- }
65
- function _(e, t) {
66
- let n = !a(t, l), r = !i(e, c, t, l);
67
- return c = e, l = t, n && r ? m() : n ? h() : r ? g() : f;
68
- }
69
- return function(e, t) {
70
- return s ? _(e, t) : p(e, t);
71
- };
72
- }
73
- function te(e, { initMapStateToProps: t, initMapDispatchToProps: n, initMergeProps: r, ...i }) {
74
- let a = t(e, i), o = n(e, i), s = r(e, i);
75
- return process.env.NODE_ENV !== "production" && w(a, o, s), T(a, o, s, e, i);
76
- }
77
- function E(e, t) {
78
- let n = {};
79
- for (let r in e) {
80
- let i = e[r];
81
- typeof i == "function" && (n[r] = (...e) => t(i(...e)));
82
- }
83
- return n;
84
- }
85
- function D(e) {
86
- if (typeof e != "object" || !e) return !1;
87
- let t = Object.getPrototypeOf(e);
88
- if (t === null) return !0;
89
- let n = t;
90
- for (; Object.getPrototypeOf(n) !== null;) n = Object.getPrototypeOf(n);
91
- return t === n;
92
- }
93
- function O(e, t, n) {
94
- D(e) || S(`${n}() in ${t} must return a plain object. Instead received ${e}.`);
95
- }
96
- function k(e) {
97
- return function(t) {
98
- let n = e(t);
99
- function r() {
100
- return n;
101
- }
102
- return r.dependsOnOwnProps = !1, r;
103
- };
104
- }
105
- function A(e) {
106
- return e.dependsOnOwnProps ? !!e.dependsOnOwnProps : e.length !== 1;
107
- }
108
- function j(e, t) {
109
- return function(n, { displayName: r }) {
110
- let i = function(e, t) {
111
- return i.dependsOnOwnProps ? i.mapToProps(e, t) : i.mapToProps(e, void 0);
112
- };
113
- return i.dependsOnOwnProps = !0, i.mapToProps = function(n, a) {
114
- i.mapToProps = e, i.dependsOnOwnProps = A(e);
115
- let o = i(n, a);
116
- return typeof o == "function" && (i.mapToProps = o, i.dependsOnOwnProps = A(o), o = i(n, a)), process.env.NODE_ENV !== "production" && O(o, r, t), o;
117
- }, i;
118
- };
119
- }
120
- function M(e, t) {
121
- return (n, r) => {
122
- throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`);
123
- };
124
- }
125
- function N(e) {
126
- return e && typeof e == "object" ? k((t) => E(e, t)) : e ? typeof e == "function" ? j(e, "mapDispatchToProps") : M(e, "mapDispatchToProps") : k((e) => ({ dispatch: e }));
127
- }
128
- function P(e) {
129
- return e ? typeof e == "function" ? j(e, "mapStateToProps") : M(e, "mapStateToProps") : k(() => ({}));
130
- }
131
- function F(e, t, n) {
132
- return {
133
- ...n,
134
- ...e,
135
- ...t
136
- };
137
- }
138
- function I(e) {
139
- return function(t, { displayName: n, areMergedPropsEqual: r }) {
140
- let i = !1, a;
141
- return function(t, o, s) {
142
- let c = e(t, o, s);
143
- return i ? r(c, a) || (a = c) : (i = !0, a = c, process.env.NODE_ENV !== "production" && O(a, n, "mergeProps")), a;
144
- };
145
- };
146
- }
147
- function ne(e) {
148
- return e ? typeof e == "function" ? I(e) : M(e, "mergeProps") : () => F;
149
- }
150
- function re(e) {
151
- e();
152
- }
153
- function ie() {
154
- let e = null, t = null;
155
- return {
156
- clear() {
157
- e = null, t = null;
158
- },
159
- notify() {
160
- re(() => {
161
- let t = e;
162
- for (; t;) t.callback(), t = t.next;
163
- });
164
- },
165
- get() {
166
- let t = [], n = e;
167
- for (; n;) t.push(n), n = n.next;
168
- return t;
169
- },
170
- subscribe(n) {
171
- let r = !0, i = t = {
172
- callback: n,
173
- next: null,
174
- prev: t
175
- };
176
- return i.prev ? i.prev.next = i : e = i, function() {
177
- !r || e === null || (r = !1, i.next ? i.next.prev = i.prev : t = i.prev, i.prev ? i.prev.next = i.next : e = i.next);
178
- };
179
- }
180
- };
181
- }
182
- var L = {
183
- notify() {},
184
- get: () => []
185
- };
186
- function R(e, t) {
187
- let n, r = L, i = 0, a = !1;
188
- function o(e) {
189
- u();
190
- let t = r.subscribe(e), n = !1;
191
- return () => {
192
- n || (n = !0, t(), d());
193
- };
194
- }
195
- function s() {
196
- r.notify();
197
- }
198
- function c() {
199
- m.onStateChange && m.onStateChange();
200
- }
201
- function l() {
202
- return a;
203
- }
204
- function u() {
205
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = ie());
206
- }
207
- function d() {
208
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = L);
209
- }
210
- function f() {
211
- a || (a = !0, u());
212
- }
213
- function p() {
214
- a && (a = !1, d());
215
- }
216
- let m = {
217
- addNestedSub: o,
218
- notifyNestedSubs: s,
219
- handleChangeWrapper: c,
220
- isSubscribed: l,
221
- trySubscribe: f,
222
- tryUnsubscribe: p,
223
- getListeners: () => r
224
- };
225
- return m;
226
- }
227
- var ae = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, oe = typeof navigator < "u" && navigator.product === "ReactNative", z = ae || oe ? t.useLayoutEffect : t.useEffect;
228
- function B(e, t) {
229
- return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
230
- }
231
- function V(e, t) {
232
- if (B(e, t)) return !0;
233
- if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
234
- let n = Object.keys(e), r = Object.keys(t);
235
- if (n.length !== r.length) return !1;
236
- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !B(e[n[r]], t[n[r]])) return !1;
237
- return !0;
238
- }
239
- var H = {
240
- childContextTypes: !0,
241
- contextType: !0,
242
- contextTypes: !0,
243
- defaultProps: !0,
244
- displayName: !0,
245
- getDefaultProps: !0,
246
- getDerivedStateFromError: !0,
247
- getDerivedStateFromProps: !0,
248
- mixins: !0,
249
- propTypes: !0,
250
- type: !0
251
- }, U = {
252
- name: !0,
253
- length: !0,
254
- prototype: !0,
255
- caller: !0,
256
- callee: !0,
257
- arguments: !0,
258
- arity: !0
259
- }, W = {
260
- $$typeof: !0,
261
- render: !0,
262
- defaultProps: !0,
263
- displayName: !0,
264
- propTypes: !0
265
- }, G = {
266
- $$typeof: !0,
267
- compare: !0,
268
- defaultProps: !0,
269
- displayName: !0,
270
- propTypes: !0,
271
- type: !0
272
- }, K = {
273
- [_]: W,
274
- [v]: G
275
- };
276
- function q(e) {
277
- return x(e) ? G : K[e.$$typeof] || H;
278
- }
279
- var se = Object.defineProperty, ce = Object.getOwnPropertyNames, J = Object.getOwnPropertySymbols, le = Object.getOwnPropertyDescriptor, ue = Object.getPrototypeOf, Y = Object.prototype;
280
- function X(e, t) {
281
- if (typeof t != "string") {
282
- if (Y) {
283
- let n = ue(t);
284
- n && n !== Y && X(e, n);
285
- }
286
- let n = ce(t);
287
- J && (n = n.concat(J(t)));
288
- let r = q(e), i = q(t);
289
- for (let a = 0; a < n.length; ++a) {
290
- let o = n[a];
291
- if (!U[o] && !(i && i[o]) && !(r && r[o])) {
292
- let n = le(t, o);
293
- try {
294
- se(e, o, n);
295
- } catch {}
296
- }
297
- }
298
- }
299
- return e;
300
- }
301
- var de = /* @__PURE__ */ Symbol.for("react-redux-context"), fe = typeof globalThis < "u" ? globalThis : {};
302
- function pe() {
303
- if (!t.createContext) return {};
304
- let e = fe[de] ??= /* @__PURE__ */ new Map(), n = e.get(t.createContext);
305
- return n || (n = t.createContext(null), process.env.NODE_ENV !== "production" && (n.displayName = "ReactRedux"), e.set(t.createContext, n)), n;
306
- }
307
- var Z = /* @__PURE__ */ pe(), me = [null, null], Q = (e) => {
308
- try {
309
- return JSON.stringify(e);
310
- } catch {
311
- return String(e);
312
- }
313
- };
314
- function he(e, t, n) {
315
- z(() => e(...t), n);
316
- }
317
- function ge(e, t, n, r, i, a) {
318
- e.current = r, n.current = !1, i.current && (i.current = null, a());
319
- }
320
- function _e(e, t, n, r, i, a, o, s, c, l, u) {
321
- if (!e) return () => {};
322
- let d = !1, f = null, p = () => {
323
- if (d || !s.current) return;
324
- let e = t.getState(), n, p;
325
- try {
326
- n = r(e, i.current);
327
- } catch (e) {
328
- p = e, f = e;
329
- }
330
- p || (f = null), n === a.current ? o.current || l() : (a.current = n, c.current = n, o.current = !0, u());
331
- };
332
- return n.onStateChange = p, n.trySubscribe(), p(), () => {
333
- if (d = !0, n.tryUnsubscribe(), n.onStateChange = null, f) throw f;
334
- };
335
- }
336
- function ve(e, t) {
337
- return e === t;
338
- }
339
- var $ = !1;
340
- function ye(e, n, r, { pure: i, areStatesEqual: a = ve, areOwnPropsEqual: o = V, areStatePropsEqual: s = V, areMergedPropsEqual: c = V, forwardRef: l = !1, context: u = Z } = {}) {
341
- process.env.NODE_ENV !== "production" && i !== void 0 && !$ && ($ = !0, S("The `pure` option has been removed. `connect` is now always a \"pure/memoized\" component"));
342
- let d = u, f = P(e), p = N(n), m = ne(r), h = !!e;
343
- return (e) => {
344
- if (process.env.NODE_ENV !== "production" && !/* @__PURE__ */ y(e)) throw Error(`You must pass a component to the function returned by connect. Instead received ${Q(e)}`);
345
- let n = e.displayName || e.name || "Component", r = `Connect(${n})`, i = {
346
- shouldHandleStateChanges: h,
347
- displayName: r,
348
- wrappedComponentName: n,
349
- WrappedComponent: e,
350
- initMapStateToProps: f,
351
- initMapDispatchToProps: p,
352
- initMergeProps: m,
353
- areStatesEqual: a,
354
- areStatePropsEqual: s,
355
- areOwnPropsEqual: o,
356
- areMergedPropsEqual: c
357
- };
358
- function u(n) {
359
- let [a, o, s] = t.useMemo(() => {
360
- let { reactReduxForwardedRef: e, ...t } = n;
361
- return [
362
- n.context,
363
- e,
364
- t
365
- ];
366
- }, [n]), c = t.useMemo(() => {
367
- let e = d;
368
- if (a?.Consumer && process.env.NODE_ENV !== "production") {
369
- if (!/* @__PURE__ */ ee(/* @__PURE__ */ t.createElement(a.Consumer, null))) throw Error("You must pass a valid React context consumer as `props.context`");
370
- e = a;
371
- }
372
- return e;
373
- }, [a, d]), l = t.useContext(c), u = !!n.store && !!n.store.getState && !!n.store.dispatch, f = !!l && !!l.store;
374
- if (process.env.NODE_ENV !== "production" && !u && !f) throw Error(`Could not find "store" in the context of "${r}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${r} in connect options.`);
375
- let p = u ? n.store : l.store, m = f ? l.getServerState : p.getState, g = t.useMemo(() => te(p.dispatch, i), [p]), [_, v] = t.useMemo(() => {
376
- if (!h) return me;
377
- let e = R(p, u ? void 0 : l.subscription);
378
- return [e, e.notifyNestedSubs.bind(e)];
379
- }, [
380
- p,
381
- u,
382
- l
383
- ]), y = t.useMemo(() => u ? l : {
384
- ...l,
385
- subscription: _
386
- }, [
387
- u,
388
- l,
389
- _
390
- ]), b = t.useRef(void 0), x = t.useRef(s), S = t.useRef(void 0), C = t.useRef(!1), w = t.useRef(!1), T = t.useRef(void 0);
391
- z(() => (w.current = !0, () => {
392
- w.current = !1;
393
- }), []);
394
- let E = t.useMemo(() => () => S.current && s === x.current ? S.current : g(p.getState(), s), [p, s]), D = t.useMemo(() => (e) => _ ? _e(h, p, _, g, x, b, C, w, S, v, e) : () => {}, [_]);
395
- he(ge, [
396
- x,
397
- b,
398
- C,
399
- s,
400
- S,
401
- v
402
- ]);
403
- let O;
404
- try {
405
- O = t.useSyncExternalStore(D, E, m ? () => g(m(), s) : E);
406
- } catch (e) {
407
- throw T.current && (e.message += `
408
- The error may be correlated with this previous error:
409
- ${T.current.stack}
410
-
411
- `), e;
412
- }
413
- z(() => {
414
- T.current = void 0, S.current = void 0, b.current = O;
415
- });
416
- let k = t.useMemo(() => /* @__PURE__ */ t.createElement(e, {
417
- ...O,
418
- ref: o
419
- }), [
420
- o,
421
- e,
422
- O
423
- ]);
424
- return t.useMemo(() => h ? /* @__PURE__ */ t.createElement(c.Provider, { value: y }, k) : k, [
425
- c,
426
- k,
427
- y
428
- ]);
429
- }
430
- let g = t.memo(u);
431
- if (g.WrappedComponent = e, g.displayName = u.displayName = r, l) {
432
- let n = t.forwardRef(function(e, n) {
433
- return /* @__PURE__ */ t.createElement(g, {
434
- ...e,
435
- reactReduxForwardedRef: n
436
- });
437
- });
438
- return n.displayName = r, n.WrappedComponent = e, /* @__PURE__ */ X(n, e);
439
- }
440
- return /* @__PURE__ */ X(g, e);
441
- };
442
- }
443
- var be = ye;
444
- function xe(e) {
445
- let { children: n, context: r, serverState: i, store: a } = e, o = t.useMemo(() => {
446
- let t = R(a), n = {
447
- store: a,
448
- subscription: t,
449
- getServerState: i ? () => i : void 0
450
- };
451
- if (process.env.NODE_ENV === "production") return n;
452
- {
453
- let { identityFunctionCheck: t = "once", stabilityCheck: r = "once" } = e;
454
- return /* @__PURE__ */ Object.assign(n, {
455
- stabilityCheck: r,
456
- identityFunctionCheck: t
457
- });
458
- }
459
- }, [a, i]), s = t.useMemo(() => a.getState(), [a]);
460
- z(() => {
461
- let { subscription: e } = o;
462
- return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), s !== a.getState() && e.notifyNestedSubs(), () => {
463
- e.tryUnsubscribe(), e.onStateChange = void 0;
464
- };
465
- }, [o, s]);
466
- let c = r || Z;
467
- return /* @__PURE__ */ t.createElement(c.Provider, { value: o }, n);
468
- }
469
- var Se = xe;
470
- //#endregion
471
- export { Se as Provider, Z as ReactReduxContext, be as connect, V as shallowEqual };
@@ -1,53 +0,0 @@
1
- import { __commonJSMin as e, __require as t } from "../../../../../../_virtual/_rolldown/runtime.js";
2
- //#region ../../../node_modules/.bun/use-sync-external-store@1.6.0+f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js
3
- var n = /* @__PURE__ */ e(((e) => {
4
- process.env.NODE_ENV !== "production" && (function() {
5
- function n(e, t) {
6
- return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
7
- }
8
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
9
- var r = t("react"), i = typeof Object.is == "function" ? Object.is : n, a = r.useSyncExternalStore, o = r.useRef, s = r.useEffect, c = r.useMemo, l = r.useDebugValue;
10
- e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
11
- var d = o(null);
12
- if (d.current === null) {
13
- var f = {
14
- hasValue: !1,
15
- value: null
16
- };
17
- d.current = f;
18
- } else f = d.current;
19
- d = c(function() {
20
- function e(e) {
21
- if (!a) {
22
- if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {
23
- var t = f.value;
24
- if (u(t, e)) return s = t;
25
- }
26
- return s = e;
27
- }
28
- if (t = s, i(o, e)) return t;
29
- var n = r(e);
30
- return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);
31
- }
32
- var a = !1, o, s, c = n === void 0 ? null : n;
33
- return [function() {
34
- return e(t());
35
- }, c === null ? void 0 : function() {
36
- return e(c());
37
- }];
38
- }, [
39
- t,
40
- n,
41
- r,
42
- u
43
- ]);
44
- var p = a(e, d[0], d[1]);
45
- return s(function() {
46
- f.hasValue = !0, f.value = p;
47
- }, [p]), l(p), p;
48
- }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
49
- })();
50
- }));
51
- //#endregion
52
- export default n();
53
- export { n as require_use_sync_external_store_with_selector_development };
@@ -1,51 +0,0 @@
1
- import { __commonJSMin as e, __require as t } from "../../../../../../_virtual/_rolldown/runtime.js";
2
- //#region ../../../node_modules/.bun/use-sync-external-store@1.6.0+f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js
3
- var n = /* @__PURE__ */ e(((e) => {
4
- var n = t("react");
5
- function r(e, t) {
6
- return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
7
- }
8
- var i = typeof Object.is == "function" ? Object.is : r, a = n.useSyncExternalStore, o = n.useRef, s = n.useEffect, c = n.useMemo, l = n.useDebugValue;
9
- e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
10
- var d = o(null);
11
- if (d.current === null) {
12
- var f = {
13
- hasValue: !1,
14
- value: null
15
- };
16
- d.current = f;
17
- } else f = d.current;
18
- d = c(function() {
19
- function e(e) {
20
- if (!a) {
21
- if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {
22
- var t = f.value;
23
- if (u(t, e)) return s = t;
24
- }
25
- return s = e;
26
- }
27
- if (t = s, i(o, e)) return t;
28
- var n = r(e);
29
- return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);
30
- }
31
- var a = !1, o, s, c = n === void 0 ? null : n;
32
- return [function() {
33
- return e(t());
34
- }, c === null ? void 0 : function() {
35
- return e(c());
36
- }];
37
- }, [
38
- t,
39
- n,
40
- r,
41
- u
42
- ]);
43
- var p = a(e, d[0], d[1]);
44
- return s(function() {
45
- f.hasValue = !0, f.value = p;
46
- }, [p]), l(p), p;
47
- };
48
- }));
49
- //#endregion
50
- export default n();
51
- export { n as require_use_sync_external_store_with_selector_production };
@@ -1,10 +0,0 @@
1
- import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_use_sync_external_store_with_selector_production as t } from "./cjs/use-sync-external-store-with-selector.production.js";
3
- import { require_use_sync_external_store_with_selector_development as n } from "./cjs/use-sync-external-store-with-selector.development.js";
4
- //#region ../../../node_modules/.bun/use-sync-external-store@1.6.0+f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js
5
- var r = /* @__PURE__ */ e(((e, r) => {
6
- process.env.NODE_ENV === "production" ? r.exports = t() : r.exports = n();
7
- }));
8
- //#endregion
9
- export default r();
10
- export { r as require_with_selector };