jazz-tools 0.18.28 → 0.18.30

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 (121) hide show
  1. package/.svelte-kit/__package__/media/image.svelte +7 -4
  2. package/.svelte-kit/__package__/media/image.svelte.d.ts.map +1 -1
  3. package/.svelte-kit/__package__/media/image.types.d.ts +1 -0
  4. package/.svelte-kit/__package__/media/image.types.d.ts.map +1 -1
  5. package/.svelte-kit/__package__/tests/media/image.svelte.test.js +63 -0
  6. package/.turbo/turbo-build.log +60 -60
  7. package/CHANGELOG.md +27 -0
  8. package/dist/better-auth/auth/client.d.ts +1 -1
  9. package/dist/better-auth/auth/server.d.ts +1 -1
  10. package/dist/better-auth/auth/server.d.ts.map +1 -1
  11. package/dist/better-auth/auth/server.js.map +1 -1
  12. package/dist/better-auth/database-adapter/index.d.ts +3 -3
  13. package/dist/better-auth/database-adapter/index.d.ts.map +1 -1
  14. package/dist/better-auth/database-adapter/index.js +6 -2
  15. package/dist/better-auth/database-adapter/index.js.map +1 -1
  16. package/dist/better-auth/database-adapter/utils.d.ts.map +1 -1
  17. package/dist/browser/index.d.ts +2 -1
  18. package/dist/browser/index.d.ts.map +1 -1
  19. package/dist/browser/index.js.map +1 -1
  20. package/dist/{chunk-YOL3XDDW.js → chunk-6BIYT3KH.js} +84 -50
  21. package/dist/chunk-6BIYT3KH.js.map +1 -0
  22. package/dist/index.js +3 -1
  23. package/dist/index.js.map +1 -1
  24. package/dist/inspector/{custom-element-A7UAELEG.js → custom-element-RQTLPAPJ.js} +2137 -1848
  25. package/dist/inspector/custom-element-RQTLPAPJ.js.map +1 -0
  26. package/dist/inspector/custom-element.d.ts.map +1 -1
  27. package/dist/inspector/index.d.ts +1 -1
  28. package/dist/inspector/index.d.ts.map +1 -1
  29. package/dist/inspector/index.js +570 -339
  30. package/dist/inspector/index.js.map +1 -1
  31. package/dist/inspector/register-custom-element.js +1 -1
  32. package/dist/inspector/ui/index.d.ts +6 -0
  33. package/dist/inspector/ui/index.d.ts.map +1 -0
  34. package/dist/inspector/viewer/group-view.d.ts +3 -2
  35. package/dist/inspector/viewer/group-view.d.ts.map +1 -1
  36. package/dist/inspector/viewer/page.d.ts.map +1 -1
  37. package/dist/react/index.js +2 -2
  38. package/dist/react/index.js.map +1 -1
  39. package/dist/react/media/image.d.ts +8 -0
  40. package/dist/react/media/image.d.ts.map +1 -1
  41. package/dist/react-native-core/index.js +3 -3
  42. package/dist/react-native-core/index.js.map +1 -1
  43. package/dist/react-native-core/media/image.d.ts +15 -0
  44. package/dist/react-native-core/media/image.d.ts.map +1 -1
  45. package/dist/svelte/media/image.svelte +7 -4
  46. package/dist/svelte/media/image.svelte.d.ts.map +1 -1
  47. package/dist/svelte/media/image.types.d.ts +1 -0
  48. package/dist/svelte/media/image.types.d.ts.map +1 -1
  49. package/dist/svelte/tests/media/image.svelte.test.js +63 -0
  50. package/dist/testing.js +8 -1
  51. package/dist/testing.js.map +1 -1
  52. package/dist/tools/coValues/account.d.ts +1 -0
  53. package/dist/tools/coValues/account.d.ts.map +1 -1
  54. package/dist/tools/coValues/group.d.ts +3 -3
  55. package/dist/tools/coValues/group.d.ts.map +1 -1
  56. package/dist/tools/coValues/interfaces.d.ts +9 -2
  57. package/dist/tools/coValues/interfaces.d.ts.map +1 -1
  58. package/dist/tools/exports.d.ts +2 -2
  59. package/dist/tools/exports.d.ts.map +1 -1
  60. package/dist/tools/implementation/invites.d.ts +2 -2
  61. package/dist/tools/implementation/invites.d.ts.map +1 -1
  62. package/dist/tools/implementation/zodSchema/runtimeConverters/schemaFieldToCoFieldDef.d.ts +1 -1
  63. package/dist/tools/implementation/zodSchema/runtimeConverters/schemaFieldToCoFieldDef.d.ts.map +1 -1
  64. package/dist/tools/implementation/zodSchema/schemaTypes/AccountSchema.d.ts.map +1 -1
  65. package/dist/tools/implementation/zodSchema/typeConverters/TypeOfZodSchema.d.ts +3 -1
  66. package/dist/tools/implementation/zodSchema/typeConverters/TypeOfZodSchema.d.ts.map +1 -1
  67. package/dist/tools/implementation/zodSchema/zodCo.d.ts.map +1 -1
  68. package/dist/tools/implementation/zodSchema/zodReExport.d.ts +1 -1
  69. package/dist/tools/implementation/zodSchema/zodReExport.d.ts.map +1 -1
  70. package/dist/tools/subscribe/CoValueCoreSubscription.d.ts.map +1 -1
  71. package/dist/tools/subscribe/SubscriptionScope.d.ts +0 -2
  72. package/dist/tools/subscribe/SubscriptionScope.d.ts.map +1 -1
  73. package/dist/tools/testing.d.ts +1 -0
  74. package/dist/tools/testing.d.ts.map +1 -1
  75. package/dist/tools/tests/CoValueCoreSubscription.test.d.ts.map +1 -0
  76. package/package.json +5 -5
  77. package/src/better-auth/auth/server.ts +7 -2
  78. package/src/better-auth/auth/tests/server.test.ts +39 -17
  79. package/src/better-auth/database-adapter/index.ts +8 -5
  80. package/src/better-auth/database-adapter/utils.ts +4 -0
  81. package/src/browser/index.ts +2 -1
  82. package/src/inspector/custom-element.tsx +4 -0
  83. package/src/inspector/index.tsx +0 -2
  84. package/src/inspector/ui/index.ts +5 -0
  85. package/src/inspector/viewer/group-view.tsx +304 -20
  86. package/src/inspector/viewer/new-app.tsx +4 -4
  87. package/src/inspector/viewer/page.tsx +16 -2
  88. package/src/react/media/image.tsx +11 -2
  89. package/src/react/tests/media/image.test.tsx +94 -0
  90. package/src/react-native-core/media/image.tsx +11 -3
  91. package/src/svelte/media/image.svelte +7 -4
  92. package/src/svelte/media/image.types.ts +1 -0
  93. package/src/svelte/tests/media/image.svelte.test.ts +85 -0
  94. package/src/tools/coValues/account.ts +30 -5
  95. package/src/tools/coValues/coList.ts +3 -3
  96. package/src/tools/coValues/coMap.ts +3 -3
  97. package/src/tools/coValues/group.ts +13 -12
  98. package/src/tools/coValues/inbox.ts +5 -5
  99. package/src/tools/coValues/interfaces.ts +49 -18
  100. package/src/tools/exports.ts +1 -1
  101. package/src/tools/implementation/invites.ts +3 -8
  102. package/src/tools/implementation/zodSchema/runtimeConverters/schemaFieldToCoFieldDef.ts +5 -1
  103. package/src/tools/implementation/zodSchema/schemaTypes/AccountSchema.ts +2 -0
  104. package/src/tools/implementation/zodSchema/typeConverters/TypeOfZodSchema.ts +63 -50
  105. package/src/tools/implementation/zodSchema/zodReExport.ts +2 -2
  106. package/src/tools/subscribe/CoValueCoreSubscription.ts +17 -0
  107. package/src/tools/subscribe/SubscriptionScope.ts +1 -27
  108. package/src/tools/testing.ts +7 -0
  109. package/src/tools/{subscribe → tests}/CoValueCoreSubscription.test.ts +233 -3
  110. package/src/tools/tests/coFeed.branch.test.ts +14 -5
  111. package/src/tools/tests/coMap.test.ts +139 -42
  112. package/src/tools/tests/coMap.unique.test.ts +106 -1
  113. package/src/tools/tests/coOptional.test.ts +9 -1
  114. package/src/tools/tests/groupsAndAccounts.test.ts +156 -1
  115. package/src/tools/tests/load.test.ts +198 -1
  116. package/src/tools/tests/zod.test-d.ts +0 -2
  117. package/src/tools/tests/zod.test.ts +43 -40
  118. package/dist/chunk-YOL3XDDW.js.map +0 -1
  119. package/dist/inspector/custom-element-A7UAELEG.js.map +0 -1
  120. package/dist/tools/subscribe/CoValueCoreSubscription.test.d.ts.map +0 -1
  121. /package/dist/tools/{subscribe → tests}/CoValueCoreSubscription.test.d.ts +0 -0
@@ -24,1140 +24,596 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  mod
25
25
  ));
26
26
 
27
- // ../../node_modules/scheduler/cjs/scheduler.production.js
28
- var require_scheduler_production = __commonJS({
29
- "../../node_modules/scheduler/cjs/scheduler.production.js"(exports) {
27
+ // ../../node_modules/react/cjs/react.production.js
28
+ var require_react_production = __commonJS({
29
+ "../../node_modules/react/cjs/react.production.js"(exports) {
30
30
  "use strict";
31
- function push(heap, node) {
32
- var index = heap.length;
33
- heap.push(node);
34
- a: for (; 0 < index; ) {
35
- var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
36
- if (0 < compare(parent, node))
37
- heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
38
- else break a;
39
- }
40
- }
41
- function peek(heap) {
42
- return 0 === heap.length ? null : heap[0];
31
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
32
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
33
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
34
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
35
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
36
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
37
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
38
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
39
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
40
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
41
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
42
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
43
+ function getIteratorFn(maybeIterable) {
44
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
45
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
46
+ return "function" === typeof maybeIterable ? maybeIterable : null;
43
47
  }
44
- function pop(heap) {
45
- if (0 === heap.length) return null;
46
- var first = heap[0], last = heap.pop();
47
- if (last !== first) {
48
- heap[0] = last;
49
- a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
50
- var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
51
- if (0 > compare(left, last))
52
- rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
53
- else if (rightIndex < length && 0 > compare(right, last))
54
- heap[index] = right, heap[rightIndex] = last, index = rightIndex;
55
- else break a;
56
- }
48
+ var ReactNoopUpdateQueue = {
49
+ isMounted: function() {
50
+ return false;
51
+ },
52
+ enqueueForceUpdate: function() {
53
+ },
54
+ enqueueReplaceState: function() {
55
+ },
56
+ enqueueSetState: function() {
57
57
  }
58
- return first;
58
+ };
59
+ var assign = Object.assign;
60
+ var emptyObject = {};
61
+ function Component(props, context, updater) {
62
+ this.props = props;
63
+ this.context = context;
64
+ this.refs = emptyObject;
65
+ this.updater = updater || ReactNoopUpdateQueue;
59
66
  }
60
- function compare(a, b) {
61
- var diff = a.sortIndex - b.sortIndex;
62
- return 0 !== diff ? diff : a.id - b.id;
67
+ Component.prototype.isReactComponent = {};
68
+ Component.prototype.setState = function(partialState, callback) {
69
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
70
+ throw Error(
71
+ "takes an object of state variables to update or a function which returns an object of state variables."
72
+ );
73
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
74
+ };
75
+ Component.prototype.forceUpdate = function(callback) {
76
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
77
+ };
78
+ function ComponentDummy() {
63
79
  }
64
- exports.unstable_now = void 0;
65
- if ("object" === typeof performance && "function" === typeof performance.now) {
66
- localPerformance = performance;
67
- exports.unstable_now = function() {
68
- return localPerformance.now();
69
- };
70
- } else {
71
- localDate = Date, initialTime = localDate.now();
72
- exports.unstable_now = function() {
73
- return localDate.now() - initialTime;
80
+ ComponentDummy.prototype = Component.prototype;
81
+ function PureComponent(props, context, updater) {
82
+ this.props = props;
83
+ this.context = context;
84
+ this.refs = emptyObject;
85
+ this.updater = updater || ReactNoopUpdateQueue;
86
+ }
87
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
88
+ pureComponentPrototype.constructor = PureComponent;
89
+ assign(pureComponentPrototype, Component.prototype);
90
+ pureComponentPrototype.isPureReactComponent = true;
91
+ var isArrayImpl = Array.isArray;
92
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
93
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
94
+ function ReactElement(type, key, self, source, owner, props) {
95
+ self = props.ref;
96
+ return {
97
+ $$typeof: REACT_ELEMENT_TYPE,
98
+ type,
99
+ key,
100
+ ref: void 0 !== self ? self : null,
101
+ props
74
102
  };
75
103
  }
76
- var localPerformance;
77
- var localDate;
78
- var initialTime;
79
- var taskQueue = [];
80
- var timerQueue = [];
81
- var taskIdCounter = 1;
82
- var currentTask = null;
83
- var currentPriorityLevel = 3;
84
- var isPerformingWork = false;
85
- var isHostCallbackScheduled = false;
86
- var isHostTimeoutScheduled = false;
87
- var needsPaint = false;
88
- var localSetTimeout = "function" === typeof setTimeout ? setTimeout : null;
89
- var localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null;
90
- var localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
91
- function advanceTimers(currentTime) {
92
- for (var timer = peek(timerQueue); null !== timer; ) {
93
- if (null === timer.callback) pop(timerQueue);
94
- else if (timer.startTime <= currentTime)
95
- pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
96
- else break;
97
- timer = peek(timerQueue);
98
- }
104
+ function cloneAndReplaceKey(oldElement, newKey) {
105
+ return ReactElement(
106
+ oldElement.type,
107
+ newKey,
108
+ void 0,
109
+ void 0,
110
+ void 0,
111
+ oldElement.props
112
+ );
99
113
  }
100
- function handleTimeout(currentTime) {
101
- isHostTimeoutScheduled = false;
102
- advanceTimers(currentTime);
103
- if (!isHostCallbackScheduled)
104
- if (null !== peek(taskQueue))
105
- isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
106
- else {
107
- var firstTimer = peek(timerQueue);
108
- null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
109
- }
114
+ function isValidElement(object) {
115
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
110
116
  }
111
- var isMessageLoopRunning = false;
112
- var taskTimeoutID = -1;
113
- var frameInterval = 5;
114
- var startTime = -1;
115
- function shouldYieldToHost() {
116
- return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
117
+ function escape(key) {
118
+ var escaperLookup = { "=": "=0", ":": "=2" };
119
+ return "$" + key.replace(/[=:]/g, function(match) {
120
+ return escaperLookup[match];
121
+ });
117
122
  }
118
- function performWorkUntilDeadline() {
119
- needsPaint = false;
120
- if (isMessageLoopRunning) {
121
- var currentTime = exports.unstable_now();
122
- startTime = currentTime;
123
- var hasMoreWork = true;
124
- try {
125
- a: {
126
- isHostCallbackScheduled = false;
127
- isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
128
- isPerformingWork = true;
129
- var previousPriorityLevel = currentPriorityLevel;
130
- try {
131
- b: {
132
- advanceTimers(currentTime);
133
- for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
134
- var callback = currentTask.callback;
135
- if ("function" === typeof callback) {
136
- currentTask.callback = null;
137
- currentPriorityLevel = currentTask.priorityLevel;
138
- var continuationCallback = callback(
139
- currentTask.expirationTime <= currentTime
140
- );
141
- currentTime = exports.unstable_now();
142
- if ("function" === typeof continuationCallback) {
143
- currentTask.callback = continuationCallback;
144
- advanceTimers(currentTime);
145
- hasMoreWork = true;
146
- break b;
147
- }
148
- currentTask === peek(taskQueue) && pop(taskQueue);
149
- advanceTimers(currentTime);
150
- } else pop(taskQueue);
151
- currentTask = peek(taskQueue);
152
- }
153
- if (null !== currentTask) hasMoreWork = true;
154
- else {
155
- var firstTimer = peek(timerQueue);
156
- null !== firstTimer && requestHostTimeout(
157
- handleTimeout,
158
- firstTimer.startTime - currentTime
159
- );
160
- hasMoreWork = false;
161
- }
162
- }
163
- break a;
164
- } finally {
165
- currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
123
+ var userProvidedKeyEscapeRegex = /\/+/g;
124
+ function getElementKey(element, index) {
125
+ return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
126
+ }
127
+ function noop$1() {
128
+ }
129
+ function resolveThenable(thenable) {
130
+ switch (thenable.status) {
131
+ case "fulfilled":
132
+ return thenable.value;
133
+ case "rejected":
134
+ throw thenable.reason;
135
+ default:
136
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
137
+ function(fulfilledValue) {
138
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
139
+ },
140
+ function(error) {
141
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
166
142
  }
167
- hasMoreWork = void 0;
143
+ )), thenable.status) {
144
+ case "fulfilled":
145
+ return thenable.value;
146
+ case "rejected":
147
+ throw thenable.reason;
168
148
  }
169
- } finally {
170
- hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
149
+ }
150
+ throw thenable;
151
+ }
152
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
153
+ var type = typeof children;
154
+ if ("undefined" === type || "boolean" === type) children = null;
155
+ var invokeCallback = false;
156
+ if (null === children) invokeCallback = true;
157
+ else
158
+ switch (type) {
159
+ case "bigint":
160
+ case "string":
161
+ case "number":
162
+ invokeCallback = true;
163
+ break;
164
+ case "object":
165
+ switch (children.$$typeof) {
166
+ case REACT_ELEMENT_TYPE:
167
+ case REACT_PORTAL_TYPE:
168
+ invokeCallback = true;
169
+ break;
170
+ case REACT_LAZY_TYPE:
171
+ return invokeCallback = children._init, mapIntoArray(
172
+ invokeCallback(children._payload),
173
+ array,
174
+ escapedPrefix,
175
+ nameSoFar,
176
+ callback
177
+ );
178
+ }
171
179
  }
180
+ if (invokeCallback)
181
+ return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
182
+ return c;
183
+ })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
184
+ callback,
185
+ escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
186
+ userProvidedKeyEscapeRegex,
187
+ "$&/"
188
+ ) + "/") + invokeCallback
189
+ )), array.push(callback)), 1;
190
+ invokeCallback = 0;
191
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
192
+ if (isArrayImpl(children))
193
+ for (var i = 0; i < children.length; i++)
194
+ nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
195
+ nameSoFar,
196
+ array,
197
+ escapedPrefix,
198
+ type,
199
+ callback
200
+ );
201
+ else if (i = getIteratorFn(children), "function" === typeof i)
202
+ for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
203
+ nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
204
+ nameSoFar,
205
+ array,
206
+ escapedPrefix,
207
+ type,
208
+ callback
209
+ );
210
+ else if ("object" === type) {
211
+ if ("function" === typeof children.then)
212
+ return mapIntoArray(
213
+ resolveThenable(children),
214
+ array,
215
+ escapedPrefix,
216
+ nameSoFar,
217
+ callback
218
+ );
219
+ array = String(children);
220
+ throw Error(
221
+ "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
222
+ );
172
223
  }
224
+ return invokeCallback;
173
225
  }
174
- var schedulePerformWorkUntilDeadline;
175
- if ("function" === typeof localSetImmediate)
176
- schedulePerformWorkUntilDeadline = function() {
177
- localSetImmediate(performWorkUntilDeadline);
178
- };
179
- else if ("undefined" !== typeof MessageChannel) {
180
- channel = new MessageChannel(), port = channel.port2;
181
- channel.port1.onmessage = performWorkUntilDeadline;
182
- schedulePerformWorkUntilDeadline = function() {
183
- port.postMessage(null);
184
- };
185
- } else
186
- schedulePerformWorkUntilDeadline = function() {
187
- localSetTimeout(performWorkUntilDeadline, 0);
188
- };
189
- var channel;
190
- var port;
191
- function requestHostTimeout(callback, ms) {
192
- taskTimeoutID = localSetTimeout(function() {
193
- callback(exports.unstable_now());
194
- }, ms);
226
+ function mapChildren(children, func, context) {
227
+ if (null == children) return children;
228
+ var result = [], count = 0;
229
+ mapIntoArray(children, result, "", "", function(child) {
230
+ return func.call(context, child, count++);
231
+ });
232
+ return result;
195
233
  }
196
- exports.unstable_IdlePriority = 5;
197
- exports.unstable_ImmediatePriority = 1;
198
- exports.unstable_LowPriority = 4;
199
- exports.unstable_NormalPriority = 3;
200
- exports.unstable_Profiling = null;
201
- exports.unstable_UserBlockingPriority = 2;
202
- exports.unstable_cancelCallback = function(task) {
203
- task.callback = null;
204
- };
205
- exports.unstable_forceFrameRate = function(fps) {
206
- 0 > fps || 125 < fps ? console.error(
207
- "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
208
- ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
209
- };
210
- exports.unstable_getCurrentPriorityLevel = function() {
211
- return currentPriorityLevel;
212
- };
213
- exports.unstable_next = function(eventHandler) {
214
- switch (currentPriorityLevel) {
215
- case 1:
216
- case 2:
217
- case 3:
218
- var priorityLevel = 3;
219
- break;
220
- default:
221
- priorityLevel = currentPriorityLevel;
234
+ function lazyInitializer(payload) {
235
+ if (-1 === payload._status) {
236
+ var ctor = payload._result;
237
+ ctor = ctor();
238
+ ctor.then(
239
+ function(moduleObject) {
240
+ if (0 === payload._status || -1 === payload._status)
241
+ payload._status = 1, payload._result = moduleObject;
242
+ },
243
+ function(error) {
244
+ if (0 === payload._status || -1 === payload._status)
245
+ payload._status = 2, payload._result = error;
246
+ }
247
+ );
248
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
222
249
  }
223
- var previousPriorityLevel = currentPriorityLevel;
224
- currentPriorityLevel = priorityLevel;
225
- try {
226
- return eventHandler();
227
- } finally {
228
- currentPriorityLevel = previousPriorityLevel;
250
+ if (1 === payload._status) return payload._result.default;
251
+ throw payload._result;
252
+ }
253
+ var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
254
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
255
+ var event = new window.ErrorEvent("error", {
256
+ bubbles: true,
257
+ cancelable: true,
258
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
259
+ error
260
+ });
261
+ if (!window.dispatchEvent(event)) return;
262
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
263
+ process.emit("uncaughtException", error);
264
+ return;
229
265
  }
266
+ console.error(error);
230
267
  };
231
- exports.unstable_requestPaint = function() {
232
- needsPaint = true;
233
- };
234
- exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
235
- switch (priorityLevel) {
236
- case 1:
237
- case 2:
238
- case 3:
239
- case 4:
240
- case 5:
241
- break;
242
- default:
243
- priorityLevel = 3;
244
- }
245
- var previousPriorityLevel = currentPriorityLevel;
246
- currentPriorityLevel = priorityLevel;
247
- try {
248
- return eventHandler();
249
- } finally {
250
- currentPriorityLevel = previousPriorityLevel;
268
+ function noop() {
269
+ }
270
+ exports.Children = {
271
+ map: mapChildren,
272
+ forEach: function(children, forEachFunc, forEachContext) {
273
+ mapChildren(
274
+ children,
275
+ function() {
276
+ forEachFunc.apply(this, arguments);
277
+ },
278
+ forEachContext
279
+ );
280
+ },
281
+ count: function(children) {
282
+ var n = 0;
283
+ mapChildren(children, function() {
284
+ n++;
285
+ });
286
+ return n;
287
+ },
288
+ toArray: function(children) {
289
+ return mapChildren(children, function(child) {
290
+ return child;
291
+ }) || [];
292
+ },
293
+ only: function(children) {
294
+ if (!isValidElement(children))
295
+ throw Error(
296
+ "React.Children.only expected to receive a single React element child."
297
+ );
298
+ return children;
251
299
  }
252
300
  };
253
- exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
254
- var currentTime = exports.unstable_now();
255
- "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
256
- switch (priorityLevel) {
257
- case 1:
258
- var timeout = -1;
259
- break;
260
- case 2:
261
- timeout = 250;
262
- break;
263
- case 5:
264
- timeout = 1073741823;
265
- break;
266
- case 4:
267
- timeout = 1e4;
268
- break;
269
- default:
270
- timeout = 5e3;
301
+ exports.Component = Component;
302
+ exports.Fragment = REACT_FRAGMENT_TYPE;
303
+ exports.Profiler = REACT_PROFILER_TYPE;
304
+ exports.PureComponent = PureComponent;
305
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
306
+ exports.Suspense = REACT_SUSPENSE_TYPE;
307
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
308
+ exports.__COMPILER_RUNTIME = {
309
+ __proto__: null,
310
+ c: function(size) {
311
+ return ReactSharedInternals.H.useMemoCache(size);
271
312
  }
272
- timeout = options + timeout;
273
- priorityLevel = {
274
- id: taskIdCounter++,
275
- callback,
276
- priorityLevel,
277
- startTime: options,
278
- expirationTime: timeout,
279
- sortIndex: -1
280
- };
281
- options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
282
- return priorityLevel;
283
313
  };
284
- exports.unstable_shouldYield = shouldYieldToHost;
285
- exports.unstable_wrapCallback = function(callback) {
286
- var parentPriorityLevel = currentPriorityLevel;
314
+ exports.cache = function(fn) {
287
315
  return function() {
288
- var previousPriorityLevel = currentPriorityLevel;
289
- currentPriorityLevel = parentPriorityLevel;
290
- try {
291
- return callback.apply(this, arguments);
292
- } finally {
293
- currentPriorityLevel = previousPriorityLevel;
294
- }
316
+ return fn.apply(null, arguments);
295
317
  };
296
318
  };
297
- }
298
- });
319
+ exports.cloneElement = function(element, config, children) {
320
+ if (null === element || void 0 === element)
321
+ throw Error(
322
+ "The argument must be a React element, but you passed " + element + "."
323
+ );
324
+ var props = assign({}, element.props), key = element.key, owner = void 0;
325
+ if (null != config)
326
+ for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
327
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
328
+ var propName = arguments.length - 2;
329
+ if (1 === propName) props.children = children;
330
+ else if (1 < propName) {
331
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
332
+ childArray[i] = arguments[i + 2];
333
+ props.children = childArray;
334
+ }
335
+ return ReactElement(element.type, key, void 0, void 0, owner, props);
336
+ };
337
+ exports.createContext = function(defaultValue) {
338
+ defaultValue = {
339
+ $$typeof: REACT_CONTEXT_TYPE,
340
+ _currentValue: defaultValue,
341
+ _currentValue2: defaultValue,
342
+ _threadCount: 0,
343
+ Provider: null,
344
+ Consumer: null
345
+ };
346
+ defaultValue.Provider = defaultValue;
347
+ defaultValue.Consumer = {
348
+ $$typeof: REACT_CONSUMER_TYPE,
349
+ _context: defaultValue
350
+ };
351
+ return defaultValue;
352
+ };
353
+ exports.createElement = function(type, config, children) {
354
+ var propName, props = {}, key = null;
355
+ if (null != config)
356
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
357
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
358
+ var childrenLength = arguments.length - 2;
359
+ if (1 === childrenLength) props.children = children;
360
+ else if (1 < childrenLength) {
361
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
362
+ childArray[i] = arguments[i + 2];
363
+ props.children = childArray;
364
+ }
365
+ if (type && type.defaultProps)
366
+ for (propName in childrenLength = type.defaultProps, childrenLength)
367
+ void 0 === props[propName] && (props[propName] = childrenLength[propName]);
368
+ return ReactElement(type, key, void 0, void 0, null, props);
369
+ };
370
+ exports.createRef = function() {
371
+ return { current: null };
372
+ };
373
+ exports.forwardRef = function(render) {
374
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render };
375
+ };
376
+ exports.isValidElement = isValidElement;
377
+ exports.lazy = function(ctor) {
378
+ return {
379
+ $$typeof: REACT_LAZY_TYPE,
380
+ _payload: { _status: -1, _result: ctor },
381
+ _init: lazyInitializer
382
+ };
383
+ };
384
+ exports.memo = function(type, compare) {
385
+ return {
386
+ $$typeof: REACT_MEMO_TYPE,
387
+ type,
388
+ compare: void 0 === compare ? null : compare
389
+ };
390
+ };
391
+ exports.startTransition = function(scope) {
392
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
393
+ ReactSharedInternals.T = currentTransition;
394
+ try {
395
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
396
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
397
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
398
+ } catch (error) {
399
+ reportGlobalError(error);
400
+ } finally {
401
+ ReactSharedInternals.T = prevTransition;
402
+ }
403
+ };
404
+ exports.unstable_useCacheRefresh = function() {
405
+ return ReactSharedInternals.H.useCacheRefresh();
406
+ };
407
+ exports.use = function(usable) {
408
+ return ReactSharedInternals.H.use(usable);
409
+ };
410
+ exports.useActionState = function(action, initialState, permalink) {
411
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
412
+ };
413
+ exports.useCallback = function(callback, deps) {
414
+ return ReactSharedInternals.H.useCallback(callback, deps);
415
+ };
416
+ exports.useContext = function(Context) {
417
+ return ReactSharedInternals.H.useContext(Context);
418
+ };
419
+ exports.useDebugValue = function() {
420
+ };
421
+ exports.useDeferredValue = function(value, initialValue) {
422
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
423
+ };
424
+ exports.useEffect = function(create, createDeps, update) {
425
+ var dispatcher = ReactSharedInternals.H;
426
+ if ("function" === typeof update)
427
+ throw Error(
428
+ "useEffect CRUD overload is not enabled in this build of React."
429
+ );
430
+ return dispatcher.useEffect(create, createDeps);
431
+ };
432
+ exports.useId = function() {
433
+ return ReactSharedInternals.H.useId();
434
+ };
435
+ exports.useImperativeHandle = function(ref, create, deps) {
436
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
437
+ };
438
+ exports.useInsertionEffect = function(create, deps) {
439
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
440
+ };
441
+ exports.useLayoutEffect = function(create, deps) {
442
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
443
+ };
444
+ exports.useMemo = function(create, deps) {
445
+ return ReactSharedInternals.H.useMemo(create, deps);
446
+ };
447
+ exports.useOptimistic = function(passthrough, reducer) {
448
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
449
+ };
450
+ exports.useReducer = function(reducer, initialArg, init) {
451
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
452
+ };
453
+ exports.useRef = function(initialValue) {
454
+ return ReactSharedInternals.H.useRef(initialValue);
455
+ };
456
+ exports.useState = function(initialState) {
457
+ return ReactSharedInternals.H.useState(initialState);
458
+ };
459
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
460
+ return ReactSharedInternals.H.useSyncExternalStore(
461
+ subscribe,
462
+ getSnapshot,
463
+ getServerSnapshot
464
+ );
465
+ };
466
+ exports.useTransition = function() {
467
+ return ReactSharedInternals.H.useTransition();
468
+ };
469
+ exports.version = "19.1.0";
470
+ }
471
+ });
299
472
 
300
- // ../../node_modules/scheduler/cjs/scheduler.development.js
301
- var require_scheduler_development = __commonJS({
302
- "../../node_modules/scheduler/cjs/scheduler.development.js"(exports) {
473
+ // ../../node_modules/react/cjs/react.development.js
474
+ var require_react_development = __commonJS({
475
+ "../../node_modules/react/cjs/react.development.js"(exports, module) {
303
476
  "use strict";
304
477
  "production" !== process.env.NODE_ENV && function() {
305
- function performWorkUntilDeadline() {
306
- needsPaint = false;
307
- if (isMessageLoopRunning) {
308
- var currentTime = exports.unstable_now();
309
- startTime = currentTime;
310
- var hasMoreWork = true;
311
- try {
312
- a: {
313
- isHostCallbackScheduled = false;
314
- isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
315
- isPerformingWork = true;
316
- var previousPriorityLevel = currentPriorityLevel;
317
- try {
318
- b: {
319
- advanceTimers(currentTime);
320
- for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
321
- var callback = currentTask.callback;
322
- if ("function" === typeof callback) {
323
- currentTask.callback = null;
324
- currentPriorityLevel = currentTask.priorityLevel;
325
- var continuationCallback = callback(
326
- currentTask.expirationTime <= currentTime
327
- );
328
- currentTime = exports.unstable_now();
329
- if ("function" === typeof continuationCallback) {
330
- currentTask.callback = continuationCallback;
331
- advanceTimers(currentTime);
332
- hasMoreWork = true;
333
- break b;
334
- }
335
- currentTask === peek(taskQueue) && pop(taskQueue);
336
- advanceTimers(currentTime);
337
- } else pop(taskQueue);
338
- currentTask = peek(taskQueue);
339
- }
340
- if (null !== currentTask) hasMoreWork = true;
341
- else {
342
- var firstTimer = peek(timerQueue);
343
- null !== firstTimer && requestHostTimeout(
344
- handleTimeout,
345
- firstTimer.startTime - currentTime
346
- );
347
- hasMoreWork = false;
348
- }
349
- }
350
- break a;
351
- } finally {
352
- currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
353
- }
354
- hasMoreWork = void 0;
355
- }
356
- } finally {
357
- hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
478
+ function defineDeprecationWarning(methodName, info) {
479
+ Object.defineProperty(Component.prototype, methodName, {
480
+ get: function() {
481
+ console.warn(
482
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
483
+ info[0],
484
+ info[1]
485
+ );
358
486
  }
359
- }
487
+ });
360
488
  }
361
- function push(heap, node) {
362
- var index = heap.length;
363
- heap.push(node);
364
- a: for (; 0 < index; ) {
365
- var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
366
- if (0 < compare(parent, node))
367
- heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
368
- else break a;
369
- }
489
+ function getIteratorFn(maybeIterable) {
490
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
491
+ return null;
492
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
493
+ return "function" === typeof maybeIterable ? maybeIterable : null;
370
494
  }
371
- function peek(heap) {
372
- return 0 === heap.length ? null : heap[0];
495
+ function warnNoop(publicInstance, callerName) {
496
+ publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
497
+ var warningKey = publicInstance + "." + callerName;
498
+ didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
499
+ "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
500
+ callerName,
501
+ publicInstance
502
+ ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
373
503
  }
374
- function pop(heap) {
375
- if (0 === heap.length) return null;
376
- var first = heap[0], last = heap.pop();
377
- if (last !== first) {
378
- heap[0] = last;
379
- a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
380
- var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
381
- if (0 > compare(left, last))
382
- rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
383
- else if (rightIndex < length && 0 > compare(right, last))
384
- heap[index] = right, heap[rightIndex] = last, index = rightIndex;
385
- else break a;
386
- }
387
- }
388
- return first;
504
+ function Component(props, context, updater) {
505
+ this.props = props;
506
+ this.context = context;
507
+ this.refs = emptyObject;
508
+ this.updater = updater || ReactNoopUpdateQueue;
389
509
  }
390
- function compare(a, b) {
391
- var diff = a.sortIndex - b.sortIndex;
392
- return 0 !== diff ? diff : a.id - b.id;
510
+ function ComponentDummy() {
393
511
  }
394
- function advanceTimers(currentTime) {
395
- for (var timer = peek(timerQueue); null !== timer; ) {
396
- if (null === timer.callback) pop(timerQueue);
397
- else if (timer.startTime <= currentTime)
398
- pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
399
- else break;
400
- timer = peek(timerQueue);
512
+ function PureComponent(props, context, updater) {
513
+ this.props = props;
514
+ this.context = context;
515
+ this.refs = emptyObject;
516
+ this.updater = updater || ReactNoopUpdateQueue;
517
+ }
518
+ function testStringCoercion(value) {
519
+ return "" + value;
520
+ }
521
+ function checkKeyStringCoercion(value) {
522
+ try {
523
+ testStringCoercion(value);
524
+ var JSCompiler_inline_result = false;
525
+ } catch (e) {
526
+ JSCompiler_inline_result = true;
527
+ }
528
+ if (JSCompiler_inline_result) {
529
+ JSCompiler_inline_result = console;
530
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
531
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
532
+ JSCompiler_temp_const.call(
533
+ JSCompiler_inline_result,
534
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
535
+ JSCompiler_inline_result$jscomp$0
536
+ );
537
+ return testStringCoercion(value);
401
538
  }
402
539
  }
403
- function handleTimeout(currentTime) {
404
- isHostTimeoutScheduled = false;
405
- advanceTimers(currentTime);
406
- if (!isHostCallbackScheduled)
407
- if (null !== peek(taskQueue))
408
- isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
409
- else {
410
- var firstTimer = peek(timerQueue);
411
- null !== firstTimer && requestHostTimeout(
412
- handleTimeout,
413
- firstTimer.startTime - currentTime
414
- );
540
+ function getComponentNameFromType(type) {
541
+ if (null == type) return null;
542
+ if ("function" === typeof type)
543
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
544
+ if ("string" === typeof type) return type;
545
+ switch (type) {
546
+ case REACT_FRAGMENT_TYPE:
547
+ return "Fragment";
548
+ case REACT_PROFILER_TYPE:
549
+ return "Profiler";
550
+ case REACT_STRICT_MODE_TYPE:
551
+ return "StrictMode";
552
+ case REACT_SUSPENSE_TYPE:
553
+ return "Suspense";
554
+ case REACT_SUSPENSE_LIST_TYPE:
555
+ return "SuspenseList";
556
+ case REACT_ACTIVITY_TYPE:
557
+ return "Activity";
558
+ }
559
+ if ("object" === typeof type)
560
+ switch ("number" === typeof type.tag && console.error(
561
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
562
+ ), type.$$typeof) {
563
+ case REACT_PORTAL_TYPE:
564
+ return "Portal";
565
+ case REACT_CONTEXT_TYPE:
566
+ return (type.displayName || "Context") + ".Provider";
567
+ case REACT_CONSUMER_TYPE:
568
+ return (type._context.displayName || "Context") + ".Consumer";
569
+ case REACT_FORWARD_REF_TYPE:
570
+ var innerType = type.render;
571
+ type = type.displayName;
572
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
573
+ return type;
574
+ case REACT_MEMO_TYPE:
575
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
576
+ case REACT_LAZY_TYPE:
577
+ innerType = type._payload;
578
+ type = type._init;
579
+ try {
580
+ return getComponentNameFromType(type(innerType));
581
+ } catch (x) {
582
+ }
415
583
  }
584
+ return null;
416
585
  }
417
- function shouldYieldToHost() {
418
- return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
586
+ function getTaskName(type) {
587
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
588
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
589
+ return "<...>";
590
+ try {
591
+ var name = getComponentNameFromType(type);
592
+ return name ? "<" + name + ">" : "<...>";
593
+ } catch (x) {
594
+ return "<...>";
595
+ }
419
596
  }
420
- function requestHostTimeout(callback, ms) {
421
- taskTimeoutID = localSetTimeout(function() {
422
- callback(exports.unstable_now());
423
- }, ms);
597
+ function getOwner() {
598
+ var dispatcher = ReactSharedInternals.A;
599
+ return null === dispatcher ? null : dispatcher.getOwner();
424
600
  }
425
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
426
- exports.unstable_now = void 0;
427
- if ("object" === typeof performance && "function" === typeof performance.now) {
428
- var localPerformance = performance;
429
- exports.unstable_now = function() {
430
- return localPerformance.now();
431
- };
432
- } else {
433
- var localDate = Date, initialTime = localDate.now();
434
- exports.unstable_now = function() {
435
- return localDate.now() - initialTime;
436
- };
601
+ function UnknownOwner() {
602
+ return Error("react-stack-top-frame");
437
603
  }
438
- var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = false, isHostCallbackScheduled = false, isHostTimeoutScheduled = false, needsPaint = false, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null, isMessageLoopRunning = false, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
439
- if ("function" === typeof localSetImmediate)
440
- var schedulePerformWorkUntilDeadline = function() {
441
- localSetImmediate(performWorkUntilDeadline);
442
- };
443
- else if ("undefined" !== typeof MessageChannel) {
444
- var channel = new MessageChannel(), port = channel.port2;
445
- channel.port1.onmessage = performWorkUntilDeadline;
446
- schedulePerformWorkUntilDeadline = function() {
447
- port.postMessage(null);
448
- };
449
- } else
450
- schedulePerformWorkUntilDeadline = function() {
451
- localSetTimeout(performWorkUntilDeadline, 0);
452
- };
453
- exports.unstable_IdlePriority = 5;
454
- exports.unstable_ImmediatePriority = 1;
455
- exports.unstable_LowPriority = 4;
456
- exports.unstable_NormalPriority = 3;
457
- exports.unstable_Profiling = null;
458
- exports.unstable_UserBlockingPriority = 2;
459
- exports.unstable_cancelCallback = function(task) {
460
- task.callback = null;
461
- };
462
- exports.unstable_forceFrameRate = function(fps) {
463
- 0 > fps || 125 < fps ? console.error(
464
- "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
465
- ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
466
- };
467
- exports.unstable_getCurrentPriorityLevel = function() {
468
- return currentPriorityLevel;
469
- };
470
- exports.unstable_next = function(eventHandler) {
471
- switch (currentPriorityLevel) {
472
- case 1:
473
- case 2:
474
- case 3:
475
- var priorityLevel = 3;
476
- break;
477
- default:
478
- priorityLevel = currentPriorityLevel;
479
- }
480
- var previousPriorityLevel = currentPriorityLevel;
481
- currentPriorityLevel = priorityLevel;
482
- try {
483
- return eventHandler();
484
- } finally {
485
- currentPriorityLevel = previousPriorityLevel;
486
- }
487
- };
488
- exports.unstable_requestPaint = function() {
489
- needsPaint = true;
490
- };
491
- exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
492
- switch (priorityLevel) {
493
- case 1:
494
- case 2:
495
- case 3:
496
- case 4:
497
- case 5:
498
- break;
499
- default:
500
- priorityLevel = 3;
501
- }
502
- var previousPriorityLevel = currentPriorityLevel;
503
- currentPriorityLevel = priorityLevel;
504
- try {
505
- return eventHandler();
506
- } finally {
507
- currentPriorityLevel = previousPriorityLevel;
604
+ function hasValidKey(config) {
605
+ if (hasOwnProperty.call(config, "key")) {
606
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
607
+ if (getter && getter.isReactWarning) return false;
508
608
  }
509
- };
510
- exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
511
- var currentTime = exports.unstable_now();
512
- "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
513
- switch (priorityLevel) {
514
- case 1:
515
- var timeout = -1;
516
- break;
517
- case 2:
518
- timeout = 250;
519
- break;
520
- case 5:
521
- timeout = 1073741823;
522
- break;
523
- case 4:
524
- timeout = 1e4;
525
- break;
526
- default:
527
- timeout = 5e3;
528
- }
529
- timeout = options + timeout;
530
- priorityLevel = {
531
- id: taskIdCounter++,
532
- callback,
533
- priorityLevel,
534
- startTime: options,
535
- expirationTime: timeout,
536
- sortIndex: -1
537
- };
538
- options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
539
- return priorityLevel;
540
- };
541
- exports.unstable_shouldYield = shouldYieldToHost;
542
- exports.unstable_wrapCallback = function(callback) {
543
- var parentPriorityLevel = currentPriorityLevel;
544
- return function() {
545
- var previousPriorityLevel = currentPriorityLevel;
546
- currentPriorityLevel = parentPriorityLevel;
547
- try {
548
- return callback.apply(this, arguments);
549
- } finally {
550
- currentPriorityLevel = previousPriorityLevel;
551
- }
552
- };
553
- };
554
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
555
- }();
556
- }
557
- });
558
-
559
- // ../../node_modules/scheduler/index.js
560
- var require_scheduler = __commonJS({
561
- "../../node_modules/scheduler/index.js"(exports, module) {
562
- "use strict";
563
- if (process.env.NODE_ENV === "production") {
564
- module.exports = require_scheduler_production();
565
- } else {
566
- module.exports = require_scheduler_development();
567
- }
568
- }
569
- });
570
-
571
- // ../../node_modules/react/cjs/react.production.js
572
- var require_react_production = __commonJS({
573
- "../../node_modules/react/cjs/react.production.js"(exports) {
574
- "use strict";
575
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
576
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
577
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
578
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
579
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
580
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
581
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
582
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
583
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
584
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
585
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
586
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
587
- function getIteratorFn(maybeIterable) {
588
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
589
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
590
- return "function" === typeof maybeIterable ? maybeIterable : null;
591
- }
592
- var ReactNoopUpdateQueue = {
593
- isMounted: function() {
594
- return false;
595
- },
596
- enqueueForceUpdate: function() {
597
- },
598
- enqueueReplaceState: function() {
599
- },
600
- enqueueSetState: function() {
601
- }
602
- };
603
- var assign = Object.assign;
604
- var emptyObject = {};
605
- function Component(props, context, updater) {
606
- this.props = props;
607
- this.context = context;
608
- this.refs = emptyObject;
609
- this.updater = updater || ReactNoopUpdateQueue;
610
- }
611
- Component.prototype.isReactComponent = {};
612
- Component.prototype.setState = function(partialState, callback) {
613
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
614
- throw Error(
615
- "takes an object of state variables to update or a function which returns an object of state variables."
616
- );
617
- this.updater.enqueueSetState(this, partialState, callback, "setState");
618
- };
619
- Component.prototype.forceUpdate = function(callback) {
620
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
621
- };
622
- function ComponentDummy() {
623
- }
624
- ComponentDummy.prototype = Component.prototype;
625
- function PureComponent(props, context, updater) {
626
- this.props = props;
627
- this.context = context;
628
- this.refs = emptyObject;
629
- this.updater = updater || ReactNoopUpdateQueue;
630
- }
631
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
632
- pureComponentPrototype.constructor = PureComponent;
633
- assign(pureComponentPrototype, Component.prototype);
634
- pureComponentPrototype.isPureReactComponent = true;
635
- var isArrayImpl = Array.isArray;
636
- var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
637
- var hasOwnProperty = Object.prototype.hasOwnProperty;
638
- function ReactElement(type, key, self, source, owner, props) {
639
- self = props.ref;
640
- return {
641
- $$typeof: REACT_ELEMENT_TYPE,
642
- type,
643
- key,
644
- ref: void 0 !== self ? self : null,
645
- props
646
- };
647
- }
648
- function cloneAndReplaceKey(oldElement, newKey) {
649
- return ReactElement(
650
- oldElement.type,
651
- newKey,
652
- void 0,
653
- void 0,
654
- void 0,
655
- oldElement.props
656
- );
657
- }
658
- function isValidElement(object) {
659
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
660
- }
661
- function escape(key) {
662
- var escaperLookup = { "=": "=0", ":": "=2" };
663
- return "$" + key.replace(/[=:]/g, function(match) {
664
- return escaperLookup[match];
665
- });
666
- }
667
- var userProvidedKeyEscapeRegex = /\/+/g;
668
- function getElementKey(element, index) {
669
- return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
670
- }
671
- function noop$1() {
672
- }
673
- function resolveThenable(thenable) {
674
- switch (thenable.status) {
675
- case "fulfilled":
676
- return thenable.value;
677
- case "rejected":
678
- throw thenable.reason;
679
- default:
680
- switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
681
- function(fulfilledValue) {
682
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
683
- },
684
- function(error) {
685
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
686
- }
687
- )), thenable.status) {
688
- case "fulfilled":
689
- return thenable.value;
690
- case "rejected":
691
- throw thenable.reason;
692
- }
693
- }
694
- throw thenable;
695
- }
696
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
697
- var type = typeof children;
698
- if ("undefined" === type || "boolean" === type) children = null;
699
- var invokeCallback = false;
700
- if (null === children) invokeCallback = true;
701
- else
702
- switch (type) {
703
- case "bigint":
704
- case "string":
705
- case "number":
706
- invokeCallback = true;
707
- break;
708
- case "object":
709
- switch (children.$$typeof) {
710
- case REACT_ELEMENT_TYPE:
711
- case REACT_PORTAL_TYPE:
712
- invokeCallback = true;
713
- break;
714
- case REACT_LAZY_TYPE:
715
- return invokeCallback = children._init, mapIntoArray(
716
- invokeCallback(children._payload),
717
- array,
718
- escapedPrefix,
719
- nameSoFar,
720
- callback
721
- );
722
- }
723
- }
724
- if (invokeCallback)
725
- return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
726
- return c;
727
- })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
728
- callback,
729
- escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
730
- userProvidedKeyEscapeRegex,
731
- "$&/"
732
- ) + "/") + invokeCallback
733
- )), array.push(callback)), 1;
734
- invokeCallback = 0;
735
- var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
736
- if (isArrayImpl(children))
737
- for (var i = 0; i < children.length; i++)
738
- nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
739
- nameSoFar,
740
- array,
741
- escapedPrefix,
742
- type,
743
- callback
744
- );
745
- else if (i = getIteratorFn(children), "function" === typeof i)
746
- for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
747
- nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
748
- nameSoFar,
749
- array,
750
- escapedPrefix,
751
- type,
752
- callback
753
- );
754
- else if ("object" === type) {
755
- if ("function" === typeof children.then)
756
- return mapIntoArray(
757
- resolveThenable(children),
758
- array,
759
- escapedPrefix,
760
- nameSoFar,
761
- callback
762
- );
763
- array = String(children);
764
- throw Error(
765
- "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
766
- );
767
- }
768
- return invokeCallback;
769
- }
770
- function mapChildren(children, func, context) {
771
- if (null == children) return children;
772
- var result = [], count = 0;
773
- mapIntoArray(children, result, "", "", function(child) {
774
- return func.call(context, child, count++);
775
- });
776
- return result;
777
- }
778
- function lazyInitializer(payload) {
779
- if (-1 === payload._status) {
780
- var ctor = payload._result;
781
- ctor = ctor();
782
- ctor.then(
783
- function(moduleObject) {
784
- if (0 === payload._status || -1 === payload._status)
785
- payload._status = 1, payload._result = moduleObject;
786
- },
787
- function(error) {
788
- if (0 === payload._status || -1 === payload._status)
789
- payload._status = 2, payload._result = error;
790
- }
791
- );
792
- -1 === payload._status && (payload._status = 0, payload._result = ctor);
793
- }
794
- if (1 === payload._status) return payload._result.default;
795
- throw payload._result;
796
- }
797
- var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
798
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
799
- var event = new window.ErrorEvent("error", {
800
- bubbles: true,
801
- cancelable: true,
802
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
803
- error
804
- });
805
- if (!window.dispatchEvent(event)) return;
806
- } else if ("object" === typeof process && "function" === typeof process.emit) {
807
- process.emit("uncaughtException", error);
808
- return;
809
- }
810
- console.error(error);
811
- };
812
- function noop() {
813
- }
814
- exports.Children = {
815
- map: mapChildren,
816
- forEach: function(children, forEachFunc, forEachContext) {
817
- mapChildren(
818
- children,
819
- function() {
820
- forEachFunc.apply(this, arguments);
821
- },
822
- forEachContext
823
- );
824
- },
825
- count: function(children) {
826
- var n = 0;
827
- mapChildren(children, function() {
828
- n++;
829
- });
830
- return n;
831
- },
832
- toArray: function(children) {
833
- return mapChildren(children, function(child) {
834
- return child;
835
- }) || [];
836
- },
837
- only: function(children) {
838
- if (!isValidElement(children))
839
- throw Error(
840
- "React.Children.only expected to receive a single React element child."
841
- );
842
- return children;
843
- }
844
- };
845
- exports.Component = Component;
846
- exports.Fragment = REACT_FRAGMENT_TYPE;
847
- exports.Profiler = REACT_PROFILER_TYPE;
848
- exports.PureComponent = PureComponent;
849
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
850
- exports.Suspense = REACT_SUSPENSE_TYPE;
851
- exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
852
- exports.__COMPILER_RUNTIME = {
853
- __proto__: null,
854
- c: function(size) {
855
- return ReactSharedInternals.H.useMemoCache(size);
856
- }
857
- };
858
- exports.cache = function(fn) {
859
- return function() {
860
- return fn.apply(null, arguments);
861
- };
862
- };
863
- exports.cloneElement = function(element, config, children) {
864
- if (null === element || void 0 === element)
865
- throw Error(
866
- "The argument must be a React element, but you passed " + element + "."
867
- );
868
- var props = assign({}, element.props), key = element.key, owner = void 0;
869
- if (null != config)
870
- for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
871
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
872
- var propName = arguments.length - 2;
873
- if (1 === propName) props.children = children;
874
- else if (1 < propName) {
875
- for (var childArray = Array(propName), i = 0; i < propName; i++)
876
- childArray[i] = arguments[i + 2];
877
- props.children = childArray;
878
- }
879
- return ReactElement(element.type, key, void 0, void 0, owner, props);
880
- };
881
- exports.createContext = function(defaultValue) {
882
- defaultValue = {
883
- $$typeof: REACT_CONTEXT_TYPE,
884
- _currentValue: defaultValue,
885
- _currentValue2: defaultValue,
886
- _threadCount: 0,
887
- Provider: null,
888
- Consumer: null
889
- };
890
- defaultValue.Provider = defaultValue;
891
- defaultValue.Consumer = {
892
- $$typeof: REACT_CONSUMER_TYPE,
893
- _context: defaultValue
894
- };
895
- return defaultValue;
896
- };
897
- exports.createElement = function(type, config, children) {
898
- var propName, props = {}, key = null;
899
- if (null != config)
900
- for (propName in void 0 !== config.key && (key = "" + config.key), config)
901
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
902
- var childrenLength = arguments.length - 2;
903
- if (1 === childrenLength) props.children = children;
904
- else if (1 < childrenLength) {
905
- for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
906
- childArray[i] = arguments[i + 2];
907
- props.children = childArray;
908
- }
909
- if (type && type.defaultProps)
910
- for (propName in childrenLength = type.defaultProps, childrenLength)
911
- void 0 === props[propName] && (props[propName] = childrenLength[propName]);
912
- return ReactElement(type, key, void 0, void 0, null, props);
913
- };
914
- exports.createRef = function() {
915
- return { current: null };
916
- };
917
- exports.forwardRef = function(render) {
918
- return { $$typeof: REACT_FORWARD_REF_TYPE, render };
919
- };
920
- exports.isValidElement = isValidElement;
921
- exports.lazy = function(ctor) {
922
- return {
923
- $$typeof: REACT_LAZY_TYPE,
924
- _payload: { _status: -1, _result: ctor },
925
- _init: lazyInitializer
926
- };
927
- };
928
- exports.memo = function(type, compare) {
929
- return {
930
- $$typeof: REACT_MEMO_TYPE,
931
- type,
932
- compare: void 0 === compare ? null : compare
933
- };
934
- };
935
- exports.startTransition = function(scope) {
936
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
937
- ReactSharedInternals.T = currentTransition;
938
- try {
939
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
940
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
941
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
942
- } catch (error) {
943
- reportGlobalError(error);
944
- } finally {
945
- ReactSharedInternals.T = prevTransition;
946
- }
947
- };
948
- exports.unstable_useCacheRefresh = function() {
949
- return ReactSharedInternals.H.useCacheRefresh();
950
- };
951
- exports.use = function(usable) {
952
- return ReactSharedInternals.H.use(usable);
953
- };
954
- exports.useActionState = function(action, initialState, permalink) {
955
- return ReactSharedInternals.H.useActionState(action, initialState, permalink);
956
- };
957
- exports.useCallback = function(callback, deps) {
958
- return ReactSharedInternals.H.useCallback(callback, deps);
959
- };
960
- exports.useContext = function(Context) {
961
- return ReactSharedInternals.H.useContext(Context);
962
- };
963
- exports.useDebugValue = function() {
964
- };
965
- exports.useDeferredValue = function(value, initialValue) {
966
- return ReactSharedInternals.H.useDeferredValue(value, initialValue);
967
- };
968
- exports.useEffect = function(create, createDeps, update) {
969
- var dispatcher = ReactSharedInternals.H;
970
- if ("function" === typeof update)
971
- throw Error(
972
- "useEffect CRUD overload is not enabled in this build of React."
973
- );
974
- return dispatcher.useEffect(create, createDeps);
975
- };
976
- exports.useId = function() {
977
- return ReactSharedInternals.H.useId();
978
- };
979
- exports.useImperativeHandle = function(ref, create, deps) {
980
- return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
981
- };
982
- exports.useInsertionEffect = function(create, deps) {
983
- return ReactSharedInternals.H.useInsertionEffect(create, deps);
984
- };
985
- exports.useLayoutEffect = function(create, deps) {
986
- return ReactSharedInternals.H.useLayoutEffect(create, deps);
987
- };
988
- exports.useMemo = function(create, deps) {
989
- return ReactSharedInternals.H.useMemo(create, deps);
990
- };
991
- exports.useOptimistic = function(passthrough, reducer) {
992
- return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
993
- };
994
- exports.useReducer = function(reducer, initialArg, init) {
995
- return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
996
- };
997
- exports.useRef = function(initialValue) {
998
- return ReactSharedInternals.H.useRef(initialValue);
999
- };
1000
- exports.useState = function(initialState) {
1001
- return ReactSharedInternals.H.useState(initialState);
1002
- };
1003
- exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1004
- return ReactSharedInternals.H.useSyncExternalStore(
1005
- subscribe,
1006
- getSnapshot,
1007
- getServerSnapshot
1008
- );
1009
- };
1010
- exports.useTransition = function() {
1011
- return ReactSharedInternals.H.useTransition();
1012
- };
1013
- exports.version = "19.1.0";
1014
- }
1015
- });
1016
-
1017
- // ../../node_modules/react/cjs/react.development.js
1018
- var require_react_development = __commonJS({
1019
- "../../node_modules/react/cjs/react.development.js"(exports, module) {
1020
- "use strict";
1021
- "production" !== process.env.NODE_ENV && function() {
1022
- function defineDeprecationWarning(methodName, info) {
1023
- Object.defineProperty(Component.prototype, methodName, {
1024
- get: function() {
1025
- console.warn(
1026
- "%s(...) is deprecated in plain JavaScript React classes. %s",
1027
- info[0],
1028
- info[1]
1029
- );
1030
- }
1031
- });
1032
- }
1033
- function getIteratorFn(maybeIterable) {
1034
- if (null === maybeIterable || "object" !== typeof maybeIterable)
1035
- return null;
1036
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
1037
- return "function" === typeof maybeIterable ? maybeIterable : null;
1038
- }
1039
- function warnNoop(publicInstance, callerName) {
1040
- publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
1041
- var warningKey = publicInstance + "." + callerName;
1042
- didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
1043
- "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
1044
- callerName,
1045
- publicInstance
1046
- ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
1047
- }
1048
- function Component(props, context, updater) {
1049
- this.props = props;
1050
- this.context = context;
1051
- this.refs = emptyObject;
1052
- this.updater = updater || ReactNoopUpdateQueue;
1053
- }
1054
- function ComponentDummy() {
1055
- }
1056
- function PureComponent(props, context, updater) {
1057
- this.props = props;
1058
- this.context = context;
1059
- this.refs = emptyObject;
1060
- this.updater = updater || ReactNoopUpdateQueue;
1061
- }
1062
- function testStringCoercion(value) {
1063
- return "" + value;
1064
- }
1065
- function checkKeyStringCoercion(value) {
1066
- try {
1067
- testStringCoercion(value);
1068
- var JSCompiler_inline_result = false;
1069
- } catch (e) {
1070
- JSCompiler_inline_result = true;
1071
- }
1072
- if (JSCompiler_inline_result) {
1073
- JSCompiler_inline_result = console;
1074
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
1075
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
1076
- JSCompiler_temp_const.call(
1077
- JSCompiler_inline_result,
1078
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1079
- JSCompiler_inline_result$jscomp$0
1080
- );
1081
- return testStringCoercion(value);
1082
- }
1083
- }
1084
- function getComponentNameFromType(type) {
1085
- if (null == type) return null;
1086
- if ("function" === typeof type)
1087
- return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
1088
- if ("string" === typeof type) return type;
1089
- switch (type) {
1090
- case REACT_FRAGMENT_TYPE:
1091
- return "Fragment";
1092
- case REACT_PROFILER_TYPE:
1093
- return "Profiler";
1094
- case REACT_STRICT_MODE_TYPE:
1095
- return "StrictMode";
1096
- case REACT_SUSPENSE_TYPE:
1097
- return "Suspense";
1098
- case REACT_SUSPENSE_LIST_TYPE:
1099
- return "SuspenseList";
1100
- case REACT_ACTIVITY_TYPE:
1101
- return "Activity";
1102
- }
1103
- if ("object" === typeof type)
1104
- switch ("number" === typeof type.tag && console.error(
1105
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1106
- ), type.$$typeof) {
1107
- case REACT_PORTAL_TYPE:
1108
- return "Portal";
1109
- case REACT_CONTEXT_TYPE:
1110
- return (type.displayName || "Context") + ".Provider";
1111
- case REACT_CONSUMER_TYPE:
1112
- return (type._context.displayName || "Context") + ".Consumer";
1113
- case REACT_FORWARD_REF_TYPE:
1114
- var innerType = type.render;
1115
- type = type.displayName;
1116
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
1117
- return type;
1118
- case REACT_MEMO_TYPE:
1119
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
1120
- case REACT_LAZY_TYPE:
1121
- innerType = type._payload;
1122
- type = type._init;
1123
- try {
1124
- return getComponentNameFromType(type(innerType));
1125
- } catch (x) {
1126
- }
1127
- }
1128
- return null;
1129
- }
1130
- function getTaskName(type) {
1131
- if (type === REACT_FRAGMENT_TYPE) return "<>";
1132
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
1133
- return "<...>";
1134
- try {
1135
- var name = getComponentNameFromType(type);
1136
- return name ? "<" + name + ">" : "<...>";
1137
- } catch (x) {
1138
- return "<...>";
1139
- }
1140
- }
1141
- function getOwner() {
1142
- var dispatcher = ReactSharedInternals.A;
1143
- return null === dispatcher ? null : dispatcher.getOwner();
1144
- }
1145
- function UnknownOwner() {
1146
- return Error("react-stack-top-frame");
1147
- }
1148
- function hasValidKey(config) {
1149
- if (hasOwnProperty.call(config, "key")) {
1150
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1151
- if (getter && getter.isReactWarning) return false;
1152
- }
1153
- return void 0 !== config.key;
1154
- }
1155
- function defineKeyPropWarningGetter(props, displayName) {
1156
- function warnAboutAccessingKey() {
1157
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
1158
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
1159
- displayName
1160
- ));
609
+ return void 0 !== config.key;
610
+ }
611
+ function defineKeyPropWarningGetter(props, displayName) {
612
+ function warnAboutAccessingKey() {
613
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
614
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
615
+ displayName
616
+ ));
1161
617
  }
1162
618
  warnAboutAccessingKey.isReactWarning = true;
1163
619
  Object.defineProperty(props, "key", {
@@ -1484,484 +940,1028 @@ var require_react_development = __commonJS({
1484
940
  Component.prototype.setState = function(partialState, callback) {
1485
941
  if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
1486
942
  throw Error(
1487
- "takes an object of state variables to update or a function which returns an object of state variables."
943
+ "takes an object of state variables to update or a function which returns an object of state variables."
944
+ );
945
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
946
+ };
947
+ Component.prototype.forceUpdate = function(callback) {
948
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
949
+ };
950
+ var deprecatedAPIs = {
951
+ isMounted: [
952
+ "isMounted",
953
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
954
+ ],
955
+ replaceState: [
956
+ "replaceState",
957
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
958
+ ]
959
+ }, fnName;
960
+ for (fnName in deprecatedAPIs)
961
+ deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
962
+ ComponentDummy.prototype = Component.prototype;
963
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
964
+ deprecatedAPIs.constructor = PureComponent;
965
+ assign(deprecatedAPIs, Component.prototype);
966
+ deprecatedAPIs.isPureReactComponent = true;
967
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
968
+ H: null,
969
+ A: null,
970
+ T: null,
971
+ S: null,
972
+ V: null,
973
+ actQueue: null,
974
+ isBatchingLegacy: false,
975
+ didScheduleLegacyUpdate: false,
976
+ didUsePromise: false,
977
+ thrownErrors: [],
978
+ getCurrentStack: null,
979
+ recentlyCreatedOwnerStacks: 0
980
+ }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
981
+ return null;
982
+ };
983
+ deprecatedAPIs = {
984
+ "react-stack-bottom-frame": function(callStackForError) {
985
+ return callStackForError();
986
+ }
987
+ };
988
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
989
+ var didWarnAboutElementRef = {};
990
+ var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
991
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
992
+ var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
993
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
994
+ var event = new window.ErrorEvent("error", {
995
+ bubbles: true,
996
+ cancelable: true,
997
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
998
+ error
999
+ });
1000
+ if (!window.dispatchEvent(event)) return;
1001
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
1002
+ process.emit("uncaughtException", error);
1003
+ return;
1004
+ }
1005
+ console.error(error);
1006
+ }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1007
+ queueMicrotask(function() {
1008
+ return queueMicrotask(callback);
1009
+ });
1010
+ } : enqueueTask;
1011
+ deprecatedAPIs = Object.freeze({
1012
+ __proto__: null,
1013
+ c: function(size) {
1014
+ return resolveDispatcher().useMemoCache(size);
1015
+ }
1016
+ });
1017
+ exports.Children = {
1018
+ map: mapChildren,
1019
+ forEach: function(children, forEachFunc, forEachContext) {
1020
+ mapChildren(
1021
+ children,
1022
+ function() {
1023
+ forEachFunc.apply(this, arguments);
1024
+ },
1025
+ forEachContext
1026
+ );
1027
+ },
1028
+ count: function(children) {
1029
+ var n = 0;
1030
+ mapChildren(children, function() {
1031
+ n++;
1032
+ });
1033
+ return n;
1034
+ },
1035
+ toArray: function(children) {
1036
+ return mapChildren(children, function(child) {
1037
+ return child;
1038
+ }) || [];
1039
+ },
1040
+ only: function(children) {
1041
+ if (!isValidElement(children))
1042
+ throw Error(
1043
+ "React.Children.only expected to receive a single React element child."
1044
+ );
1045
+ return children;
1046
+ }
1047
+ };
1048
+ exports.Component = Component;
1049
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1050
+ exports.Profiler = REACT_PROFILER_TYPE;
1051
+ exports.PureComponent = PureComponent;
1052
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
1053
+ exports.Suspense = REACT_SUSPENSE_TYPE;
1054
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1055
+ exports.__COMPILER_RUNTIME = deprecatedAPIs;
1056
+ exports.act = function(callback) {
1057
+ var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1058
+ actScopeDepth++;
1059
+ var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1060
+ try {
1061
+ var result = callback();
1062
+ } catch (error) {
1063
+ ReactSharedInternals.thrownErrors.push(error);
1064
+ }
1065
+ if (0 < ReactSharedInternals.thrownErrors.length)
1066
+ throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1067
+ if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1068
+ var thenable = result;
1069
+ queueSeveralMicrotasks(function() {
1070
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1071
+ "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
1072
+ ));
1073
+ });
1074
+ return {
1075
+ then: function(resolve, reject) {
1076
+ didAwaitActCall = true;
1077
+ thenable.then(
1078
+ function(returnValue) {
1079
+ popActScope(prevActQueue, prevActScopeDepth);
1080
+ if (0 === prevActScopeDepth) {
1081
+ try {
1082
+ flushActQueue(queue), enqueueTask(function() {
1083
+ return recursivelyFlushAsyncActWork(
1084
+ returnValue,
1085
+ resolve,
1086
+ reject
1087
+ );
1088
+ });
1089
+ } catch (error$0) {
1090
+ ReactSharedInternals.thrownErrors.push(error$0);
1091
+ }
1092
+ if (0 < ReactSharedInternals.thrownErrors.length) {
1093
+ var _thrownError = aggregateErrors(
1094
+ ReactSharedInternals.thrownErrors
1095
+ );
1096
+ ReactSharedInternals.thrownErrors.length = 0;
1097
+ reject(_thrownError);
1098
+ }
1099
+ } else resolve(returnValue);
1100
+ },
1101
+ function(error) {
1102
+ popActScope(prevActQueue, prevActScopeDepth);
1103
+ 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1104
+ ReactSharedInternals.thrownErrors
1105
+ ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1106
+ }
1107
+ );
1108
+ }
1109
+ };
1110
+ }
1111
+ var returnValue$jscomp$0 = result;
1112
+ popActScope(prevActQueue, prevActScopeDepth);
1113
+ 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1114
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1115
+ "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1116
+ ));
1117
+ }), ReactSharedInternals.actQueue = null);
1118
+ if (0 < ReactSharedInternals.thrownErrors.length)
1119
+ throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1120
+ return {
1121
+ then: function(resolve, reject) {
1122
+ didAwaitActCall = true;
1123
+ 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1124
+ return recursivelyFlushAsyncActWork(
1125
+ returnValue$jscomp$0,
1126
+ resolve,
1127
+ reject
1128
+ );
1129
+ })) : resolve(returnValue$jscomp$0);
1130
+ }
1131
+ };
1132
+ };
1133
+ exports.cache = function(fn) {
1134
+ return function() {
1135
+ return fn.apply(null, arguments);
1136
+ };
1137
+ };
1138
+ exports.captureOwnerStack = function() {
1139
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
1140
+ return null === getCurrentStack ? null : getCurrentStack();
1141
+ };
1142
+ exports.cloneElement = function(element, config, children) {
1143
+ if (null === element || void 0 === element)
1144
+ throw Error(
1145
+ "The argument must be a React element, but you passed " + element + "."
1146
+ );
1147
+ var props = assign({}, element.props), key = element.key, owner = element._owner;
1148
+ if (null != config) {
1149
+ var JSCompiler_inline_result;
1150
+ a: {
1151
+ if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1152
+ config,
1153
+ "ref"
1154
+ ).get) && JSCompiler_inline_result.isReactWarning) {
1155
+ JSCompiler_inline_result = false;
1156
+ break a;
1157
+ }
1158
+ JSCompiler_inline_result = void 0 !== config.ref;
1159
+ }
1160
+ JSCompiler_inline_result && (owner = getOwner());
1161
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1162
+ for (propName in config)
1163
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1164
+ }
1165
+ var propName = arguments.length - 2;
1166
+ if (1 === propName) props.children = children;
1167
+ else if (1 < propName) {
1168
+ JSCompiler_inline_result = Array(propName);
1169
+ for (var i = 0; i < propName; i++)
1170
+ JSCompiler_inline_result[i] = arguments[i + 2];
1171
+ props.children = JSCompiler_inline_result;
1172
+ }
1173
+ props = ReactElement(
1174
+ element.type,
1175
+ key,
1176
+ void 0,
1177
+ void 0,
1178
+ owner,
1179
+ props,
1180
+ element._debugStack,
1181
+ element._debugTask
1182
+ );
1183
+ for (key = 2; key < arguments.length; key++)
1184
+ owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
1185
+ return props;
1186
+ };
1187
+ exports.createContext = function(defaultValue) {
1188
+ defaultValue = {
1189
+ $$typeof: REACT_CONTEXT_TYPE,
1190
+ _currentValue: defaultValue,
1191
+ _currentValue2: defaultValue,
1192
+ _threadCount: 0,
1193
+ Provider: null,
1194
+ Consumer: null
1195
+ };
1196
+ defaultValue.Provider = defaultValue;
1197
+ defaultValue.Consumer = {
1198
+ $$typeof: REACT_CONSUMER_TYPE,
1199
+ _context: defaultValue
1200
+ };
1201
+ defaultValue._currentRenderer = null;
1202
+ defaultValue._currentRenderer2 = null;
1203
+ return defaultValue;
1204
+ };
1205
+ exports.createElement = function(type, config, children) {
1206
+ for (var i = 2; i < arguments.length; i++) {
1207
+ var node = arguments[i];
1208
+ isValidElement(node) && node._store && (node._store.validated = 1);
1209
+ }
1210
+ i = {};
1211
+ node = null;
1212
+ if (null != config)
1213
+ for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1214
+ "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1215
+ )), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
1216
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1217
+ var childrenLength = arguments.length - 2;
1218
+ if (1 === childrenLength) i.children = children;
1219
+ else if (1 < childrenLength) {
1220
+ for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1221
+ childArray[_i] = arguments[_i + 2];
1222
+ Object.freeze && Object.freeze(childArray);
1223
+ i.children = childArray;
1224
+ }
1225
+ if (type && type.defaultProps)
1226
+ for (propName in childrenLength = type.defaultProps, childrenLength)
1227
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1228
+ node && defineKeyPropWarningGetter(
1229
+ i,
1230
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1231
+ );
1232
+ var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1233
+ return ReactElement(
1234
+ type,
1235
+ node,
1236
+ void 0,
1237
+ void 0,
1238
+ getOwner(),
1239
+ i,
1240
+ propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1241
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1242
+ );
1243
+ };
1244
+ exports.createRef = function() {
1245
+ var refObject = { current: null };
1246
+ Object.seal(refObject);
1247
+ return refObject;
1248
+ };
1249
+ exports.forwardRef = function(render) {
1250
+ null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1251
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1252
+ ) : "function" !== typeof render ? console.error(
1253
+ "forwardRef requires a render function but was given %s.",
1254
+ null === render ? "null" : typeof render
1255
+ ) : 0 !== render.length && 2 !== render.length && console.error(
1256
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1257
+ 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1258
+ );
1259
+ null != render && null != render.defaultProps && console.error(
1260
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1261
+ );
1262
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1263
+ Object.defineProperty(elementType, "displayName", {
1264
+ enumerable: false,
1265
+ configurable: true,
1266
+ get: function() {
1267
+ return ownName;
1268
+ },
1269
+ set: function(name) {
1270
+ ownName = name;
1271
+ render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1272
+ }
1273
+ });
1274
+ return elementType;
1275
+ };
1276
+ exports.isValidElement = isValidElement;
1277
+ exports.lazy = function(ctor) {
1278
+ return {
1279
+ $$typeof: REACT_LAZY_TYPE,
1280
+ _payload: { _status: -1, _result: ctor },
1281
+ _init: lazyInitializer
1282
+ };
1283
+ };
1284
+ exports.memo = function(type, compare) {
1285
+ null == type && console.error(
1286
+ "memo: The first argument must be a component. Instead received: %s",
1287
+ null === type ? "null" : typeof type
1288
+ );
1289
+ compare = {
1290
+ $$typeof: REACT_MEMO_TYPE,
1291
+ type,
1292
+ compare: void 0 === compare ? null : compare
1293
+ };
1294
+ var ownName;
1295
+ Object.defineProperty(compare, "displayName", {
1296
+ enumerable: false,
1297
+ configurable: true,
1298
+ get: function() {
1299
+ return ownName;
1300
+ },
1301
+ set: function(name) {
1302
+ ownName = name;
1303
+ type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1304
+ }
1305
+ });
1306
+ return compare;
1307
+ };
1308
+ exports.startTransition = function(scope) {
1309
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
1310
+ ReactSharedInternals.T = currentTransition;
1311
+ currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1312
+ try {
1313
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1314
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1315
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
1316
+ } catch (error) {
1317
+ reportGlobalError(error);
1318
+ } finally {
1319
+ null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1320
+ "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1321
+ )), ReactSharedInternals.T = prevTransition;
1322
+ }
1323
+ };
1324
+ exports.unstable_useCacheRefresh = function() {
1325
+ return resolveDispatcher().useCacheRefresh();
1326
+ };
1327
+ exports.use = function(usable) {
1328
+ return resolveDispatcher().use(usable);
1329
+ };
1330
+ exports.useActionState = function(action, initialState, permalink) {
1331
+ return resolveDispatcher().useActionState(
1332
+ action,
1333
+ initialState,
1334
+ permalink
1335
+ );
1336
+ };
1337
+ exports.useCallback = function(callback, deps) {
1338
+ return resolveDispatcher().useCallback(callback, deps);
1339
+ };
1340
+ exports.useContext = function(Context) {
1341
+ var dispatcher = resolveDispatcher();
1342
+ Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1343
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1344
+ );
1345
+ return dispatcher.useContext(Context);
1346
+ };
1347
+ exports.useDebugValue = function(value, formatterFn) {
1348
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1349
+ };
1350
+ exports.useDeferredValue = function(value, initialValue) {
1351
+ return resolveDispatcher().useDeferredValue(value, initialValue);
1352
+ };
1353
+ exports.useEffect = function(create, createDeps, update) {
1354
+ null == create && console.warn(
1355
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1356
+ );
1357
+ var dispatcher = resolveDispatcher();
1358
+ if ("function" === typeof update)
1359
+ throw Error(
1360
+ "useEffect CRUD overload is not enabled in this build of React."
1488
1361
  );
1489
- this.updater.enqueueSetState(this, partialState, callback, "setState");
1362
+ return dispatcher.useEffect(create, createDeps);
1490
1363
  };
1491
- Component.prototype.forceUpdate = function(callback) {
1492
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1364
+ exports.useId = function() {
1365
+ return resolveDispatcher().useId();
1493
1366
  };
1494
- var deprecatedAPIs = {
1495
- isMounted: [
1496
- "isMounted",
1497
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1498
- ],
1499
- replaceState: [
1500
- "replaceState",
1501
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1502
- ]
1503
- }, fnName;
1504
- for (fnName in deprecatedAPIs)
1505
- deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1506
- ComponentDummy.prototype = Component.prototype;
1507
- deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1508
- deprecatedAPIs.constructor = PureComponent;
1509
- assign(deprecatedAPIs, Component.prototype);
1510
- deprecatedAPIs.isPureReactComponent = true;
1511
- var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
1512
- H: null,
1513
- A: null,
1514
- T: null,
1515
- S: null,
1516
- V: null,
1517
- actQueue: null,
1518
- isBatchingLegacy: false,
1519
- didScheduleLegacyUpdate: false,
1520
- didUsePromise: false,
1521
- thrownErrors: [],
1522
- getCurrentStack: null,
1523
- recentlyCreatedOwnerStacks: 0
1524
- }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
1525
- return null;
1367
+ exports.useImperativeHandle = function(ref, create, deps) {
1368
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1526
1369
  };
1527
- deprecatedAPIs = {
1528
- "react-stack-bottom-frame": function(callStackForError) {
1529
- return callStackForError();
1530
- }
1370
+ exports.useInsertionEffect = function(create, deps) {
1371
+ null == create && console.warn(
1372
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1373
+ );
1374
+ return resolveDispatcher().useInsertionEffect(create, deps);
1531
1375
  };
1532
- var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1533
- var didWarnAboutElementRef = {};
1534
- var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
1535
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1536
- var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1537
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1538
- var event = new window.ErrorEvent("error", {
1539
- bubbles: true,
1540
- cancelable: true,
1541
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1542
- error
1543
- });
1544
- if (!window.dispatchEvent(event)) return;
1545
- } else if ("object" === typeof process && "function" === typeof process.emit) {
1546
- process.emit("uncaughtException", error);
1547
- return;
1548
- }
1549
- console.error(error);
1550
- }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1551
- queueMicrotask(function() {
1552
- return queueMicrotask(callback);
1553
- });
1554
- } : enqueueTask;
1555
- deprecatedAPIs = Object.freeze({
1556
- __proto__: null,
1557
- c: function(size) {
1558
- return resolveDispatcher().useMemoCache(size);
1559
- }
1560
- });
1561
- exports.Children = {
1562
- map: mapChildren,
1563
- forEach: function(children, forEachFunc, forEachContext) {
1564
- mapChildren(
1565
- children,
1566
- function() {
1567
- forEachFunc.apply(this, arguments);
1568
- },
1569
- forEachContext
1570
- );
1571
- },
1572
- count: function(children) {
1573
- var n = 0;
1574
- mapChildren(children, function() {
1575
- n++;
1576
- });
1577
- return n;
1578
- },
1579
- toArray: function(children) {
1580
- return mapChildren(children, function(child) {
1581
- return child;
1582
- }) || [];
1583
- },
1584
- only: function(children) {
1585
- if (!isValidElement(children))
1586
- throw Error(
1587
- "React.Children.only expected to receive a single React element child."
1588
- );
1589
- return children;
1376
+ exports.useLayoutEffect = function(create, deps) {
1377
+ null == create && console.warn(
1378
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1379
+ );
1380
+ return resolveDispatcher().useLayoutEffect(create, deps);
1381
+ };
1382
+ exports.useMemo = function(create, deps) {
1383
+ return resolveDispatcher().useMemo(create, deps);
1384
+ };
1385
+ exports.useOptimistic = function(passthrough, reducer) {
1386
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
1387
+ };
1388
+ exports.useReducer = function(reducer, initialArg, init) {
1389
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1390
+ };
1391
+ exports.useRef = function(initialValue) {
1392
+ return resolveDispatcher().useRef(initialValue);
1393
+ };
1394
+ exports.useState = function(initialState) {
1395
+ return resolveDispatcher().useState(initialState);
1396
+ };
1397
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1398
+ return resolveDispatcher().useSyncExternalStore(
1399
+ subscribe,
1400
+ getSnapshot,
1401
+ getServerSnapshot
1402
+ );
1403
+ };
1404
+ exports.useTransition = function() {
1405
+ return resolveDispatcher().useTransition();
1406
+ };
1407
+ exports.version = "19.1.0";
1408
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1409
+ }();
1410
+ }
1411
+ });
1412
+
1413
+ // ../../node_modules/react/index.js
1414
+ var require_react = __commonJS({
1415
+ "../../node_modules/react/index.js"(exports, module) {
1416
+ "use strict";
1417
+ if (process.env.NODE_ENV === "production") {
1418
+ module.exports = require_react_production();
1419
+ } else {
1420
+ module.exports = require_react_development();
1421
+ }
1422
+ }
1423
+ });
1424
+
1425
+ // ../../node_modules/scheduler/cjs/scheduler.production.js
1426
+ var require_scheduler_production = __commonJS({
1427
+ "../../node_modules/scheduler/cjs/scheduler.production.js"(exports) {
1428
+ "use strict";
1429
+ function push(heap, node) {
1430
+ var index = heap.length;
1431
+ heap.push(node);
1432
+ a: for (; 0 < index; ) {
1433
+ var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
1434
+ if (0 < compare(parent, node))
1435
+ heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
1436
+ else break a;
1437
+ }
1438
+ }
1439
+ function peek(heap) {
1440
+ return 0 === heap.length ? null : heap[0];
1441
+ }
1442
+ function pop(heap) {
1443
+ if (0 === heap.length) return null;
1444
+ var first = heap[0], last = heap.pop();
1445
+ if (last !== first) {
1446
+ heap[0] = last;
1447
+ a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
1448
+ var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
1449
+ if (0 > compare(left, last))
1450
+ rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
1451
+ else if (rightIndex < length && 0 > compare(right, last))
1452
+ heap[index] = right, heap[rightIndex] = last, index = rightIndex;
1453
+ else break a;
1590
1454
  }
1455
+ }
1456
+ return first;
1457
+ }
1458
+ function compare(a, b) {
1459
+ var diff = a.sortIndex - b.sortIndex;
1460
+ return 0 !== diff ? diff : a.id - b.id;
1461
+ }
1462
+ exports.unstable_now = void 0;
1463
+ if ("object" === typeof performance && "function" === typeof performance.now) {
1464
+ localPerformance = performance;
1465
+ exports.unstable_now = function() {
1466
+ return localPerformance.now();
1591
1467
  };
1592
- exports.Component = Component;
1593
- exports.Fragment = REACT_FRAGMENT_TYPE;
1594
- exports.Profiler = REACT_PROFILER_TYPE;
1595
- exports.PureComponent = PureComponent;
1596
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
1597
- exports.Suspense = REACT_SUSPENSE_TYPE;
1598
- exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1599
- exports.__COMPILER_RUNTIME = deprecatedAPIs;
1600
- exports.act = function(callback) {
1601
- var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1602
- actScopeDepth++;
1603
- var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1604
- try {
1605
- var result = callback();
1606
- } catch (error) {
1607
- ReactSharedInternals.thrownErrors.push(error);
1468
+ } else {
1469
+ localDate = Date, initialTime = localDate.now();
1470
+ exports.unstable_now = function() {
1471
+ return localDate.now() - initialTime;
1472
+ };
1473
+ }
1474
+ var localPerformance;
1475
+ var localDate;
1476
+ var initialTime;
1477
+ var taskQueue = [];
1478
+ var timerQueue = [];
1479
+ var taskIdCounter = 1;
1480
+ var currentTask = null;
1481
+ var currentPriorityLevel = 3;
1482
+ var isPerformingWork = false;
1483
+ var isHostCallbackScheduled = false;
1484
+ var isHostTimeoutScheduled = false;
1485
+ var needsPaint = false;
1486
+ var localSetTimeout = "function" === typeof setTimeout ? setTimeout : null;
1487
+ var localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null;
1488
+ var localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
1489
+ function advanceTimers(currentTime) {
1490
+ for (var timer = peek(timerQueue); null !== timer; ) {
1491
+ if (null === timer.callback) pop(timerQueue);
1492
+ else if (timer.startTime <= currentTime)
1493
+ pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
1494
+ else break;
1495
+ timer = peek(timerQueue);
1496
+ }
1497
+ }
1498
+ function handleTimeout(currentTime) {
1499
+ isHostTimeoutScheduled = false;
1500
+ advanceTimers(currentTime);
1501
+ if (!isHostCallbackScheduled)
1502
+ if (null !== peek(taskQueue))
1503
+ isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
1504
+ else {
1505
+ var firstTimer = peek(timerQueue);
1506
+ null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
1608
1507
  }
1609
- if (0 < ReactSharedInternals.thrownErrors.length)
1610
- throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1611
- if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1612
- var thenable = result;
1613
- queueSeveralMicrotasks(function() {
1614
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1615
- "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
1616
- ));
1617
- });
1618
- return {
1619
- then: function(resolve, reject) {
1620
- didAwaitActCall = true;
1621
- thenable.then(
1622
- function(returnValue) {
1623
- popActScope(prevActQueue, prevActScopeDepth);
1624
- if (0 === prevActScopeDepth) {
1625
- try {
1626
- flushActQueue(queue), enqueueTask(function() {
1627
- return recursivelyFlushAsyncActWork(
1628
- returnValue,
1629
- resolve,
1630
- reject
1631
- );
1632
- });
1633
- } catch (error$0) {
1634
- ReactSharedInternals.thrownErrors.push(error$0);
1635
- }
1636
- if (0 < ReactSharedInternals.thrownErrors.length) {
1637
- var _thrownError = aggregateErrors(
1638
- ReactSharedInternals.thrownErrors
1639
- );
1640
- ReactSharedInternals.thrownErrors.length = 0;
1641
- reject(_thrownError);
1508
+ }
1509
+ var isMessageLoopRunning = false;
1510
+ var taskTimeoutID = -1;
1511
+ var frameInterval = 5;
1512
+ var startTime = -1;
1513
+ function shouldYieldToHost() {
1514
+ return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
1515
+ }
1516
+ function performWorkUntilDeadline() {
1517
+ needsPaint = false;
1518
+ if (isMessageLoopRunning) {
1519
+ var currentTime = exports.unstable_now();
1520
+ startTime = currentTime;
1521
+ var hasMoreWork = true;
1522
+ try {
1523
+ a: {
1524
+ isHostCallbackScheduled = false;
1525
+ isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
1526
+ isPerformingWork = true;
1527
+ var previousPriorityLevel = currentPriorityLevel;
1528
+ try {
1529
+ b: {
1530
+ advanceTimers(currentTime);
1531
+ for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
1532
+ var callback = currentTask.callback;
1533
+ if ("function" === typeof callback) {
1534
+ currentTask.callback = null;
1535
+ currentPriorityLevel = currentTask.priorityLevel;
1536
+ var continuationCallback = callback(
1537
+ currentTask.expirationTime <= currentTime
1538
+ );
1539
+ currentTime = exports.unstable_now();
1540
+ if ("function" === typeof continuationCallback) {
1541
+ currentTask.callback = continuationCallback;
1542
+ advanceTimers(currentTime);
1543
+ hasMoreWork = true;
1544
+ break b;
1642
1545
  }
1643
- } else resolve(returnValue);
1644
- },
1645
- function(error) {
1646
- popActScope(prevActQueue, prevActScopeDepth);
1647
- 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1648
- ReactSharedInternals.thrownErrors
1649
- ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1546
+ currentTask === peek(taskQueue) && pop(taskQueue);
1547
+ advanceTimers(currentTime);
1548
+ } else pop(taskQueue);
1549
+ currentTask = peek(taskQueue);
1650
1550
  }
1651
- );
1551
+ if (null !== currentTask) hasMoreWork = true;
1552
+ else {
1553
+ var firstTimer = peek(timerQueue);
1554
+ null !== firstTimer && requestHostTimeout(
1555
+ handleTimeout,
1556
+ firstTimer.startTime - currentTime
1557
+ );
1558
+ hasMoreWork = false;
1559
+ }
1560
+ }
1561
+ break a;
1562
+ } finally {
1563
+ currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
1652
1564
  }
1653
- };
1654
- }
1655
- var returnValue$jscomp$0 = result;
1656
- popActScope(prevActQueue, prevActScopeDepth);
1657
- 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1658
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1659
- "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1660
- ));
1661
- }), ReactSharedInternals.actQueue = null);
1662
- if (0 < ReactSharedInternals.thrownErrors.length)
1663
- throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1664
- return {
1665
- then: function(resolve, reject) {
1666
- didAwaitActCall = true;
1667
- 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1668
- return recursivelyFlushAsyncActWork(
1669
- returnValue$jscomp$0,
1670
- resolve,
1671
- reject
1672
- );
1673
- })) : resolve(returnValue$jscomp$0);
1565
+ hasMoreWork = void 0;
1674
1566
  }
1675
- };
1567
+ } finally {
1568
+ hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
1569
+ }
1570
+ }
1571
+ }
1572
+ var schedulePerformWorkUntilDeadline;
1573
+ if ("function" === typeof localSetImmediate)
1574
+ schedulePerformWorkUntilDeadline = function() {
1575
+ localSetImmediate(performWorkUntilDeadline);
1676
1576
  };
1677
- exports.cache = function(fn) {
1678
- return function() {
1679
- return fn.apply(null, arguments);
1680
- };
1577
+ else if ("undefined" !== typeof MessageChannel) {
1578
+ channel = new MessageChannel(), port = channel.port2;
1579
+ channel.port1.onmessage = performWorkUntilDeadline;
1580
+ schedulePerformWorkUntilDeadline = function() {
1581
+ port.postMessage(null);
1681
1582
  };
1682
- exports.captureOwnerStack = function() {
1683
- var getCurrentStack = ReactSharedInternals.getCurrentStack;
1684
- return null === getCurrentStack ? null : getCurrentStack();
1583
+ } else
1584
+ schedulePerformWorkUntilDeadline = function() {
1585
+ localSetTimeout(performWorkUntilDeadline, 0);
1586
+ };
1587
+ var channel;
1588
+ var port;
1589
+ function requestHostTimeout(callback, ms) {
1590
+ taskTimeoutID = localSetTimeout(function() {
1591
+ callback(exports.unstable_now());
1592
+ }, ms);
1593
+ }
1594
+ exports.unstable_IdlePriority = 5;
1595
+ exports.unstable_ImmediatePriority = 1;
1596
+ exports.unstable_LowPriority = 4;
1597
+ exports.unstable_NormalPriority = 3;
1598
+ exports.unstable_Profiling = null;
1599
+ exports.unstable_UserBlockingPriority = 2;
1600
+ exports.unstable_cancelCallback = function(task) {
1601
+ task.callback = null;
1602
+ };
1603
+ exports.unstable_forceFrameRate = function(fps) {
1604
+ 0 > fps || 125 < fps ? console.error(
1605
+ "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
1606
+ ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
1607
+ };
1608
+ exports.unstable_getCurrentPriorityLevel = function() {
1609
+ return currentPriorityLevel;
1610
+ };
1611
+ exports.unstable_next = function(eventHandler) {
1612
+ switch (currentPriorityLevel) {
1613
+ case 1:
1614
+ case 2:
1615
+ case 3:
1616
+ var priorityLevel = 3;
1617
+ break;
1618
+ default:
1619
+ priorityLevel = currentPriorityLevel;
1620
+ }
1621
+ var previousPriorityLevel = currentPriorityLevel;
1622
+ currentPriorityLevel = priorityLevel;
1623
+ try {
1624
+ return eventHandler();
1625
+ } finally {
1626
+ currentPriorityLevel = previousPriorityLevel;
1627
+ }
1628
+ };
1629
+ exports.unstable_requestPaint = function() {
1630
+ needsPaint = true;
1631
+ };
1632
+ exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
1633
+ switch (priorityLevel) {
1634
+ case 1:
1635
+ case 2:
1636
+ case 3:
1637
+ case 4:
1638
+ case 5:
1639
+ break;
1640
+ default:
1641
+ priorityLevel = 3;
1642
+ }
1643
+ var previousPriorityLevel = currentPriorityLevel;
1644
+ currentPriorityLevel = priorityLevel;
1645
+ try {
1646
+ return eventHandler();
1647
+ } finally {
1648
+ currentPriorityLevel = previousPriorityLevel;
1649
+ }
1650
+ };
1651
+ exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
1652
+ var currentTime = exports.unstable_now();
1653
+ "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
1654
+ switch (priorityLevel) {
1655
+ case 1:
1656
+ var timeout = -1;
1657
+ break;
1658
+ case 2:
1659
+ timeout = 250;
1660
+ break;
1661
+ case 5:
1662
+ timeout = 1073741823;
1663
+ break;
1664
+ case 4:
1665
+ timeout = 1e4;
1666
+ break;
1667
+ default:
1668
+ timeout = 5e3;
1669
+ }
1670
+ timeout = options + timeout;
1671
+ priorityLevel = {
1672
+ id: taskIdCounter++,
1673
+ callback,
1674
+ priorityLevel,
1675
+ startTime: options,
1676
+ expirationTime: timeout,
1677
+ sortIndex: -1
1678
+ };
1679
+ options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
1680
+ return priorityLevel;
1681
+ };
1682
+ exports.unstable_shouldYield = shouldYieldToHost;
1683
+ exports.unstable_wrapCallback = function(callback) {
1684
+ var parentPriorityLevel = currentPriorityLevel;
1685
+ return function() {
1686
+ var previousPriorityLevel = currentPriorityLevel;
1687
+ currentPriorityLevel = parentPriorityLevel;
1688
+ try {
1689
+ return callback.apply(this, arguments);
1690
+ } finally {
1691
+ currentPriorityLevel = previousPriorityLevel;
1692
+ }
1685
1693
  };
1686
- exports.cloneElement = function(element, config, children) {
1687
- if (null === element || void 0 === element)
1688
- throw Error(
1689
- "The argument must be a React element, but you passed " + element + "."
1690
- );
1691
- var props = assign({}, element.props), key = element.key, owner = element._owner;
1692
- if (null != config) {
1693
- var JSCompiler_inline_result;
1694
- a: {
1695
- if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1696
- config,
1697
- "ref"
1698
- ).get) && JSCompiler_inline_result.isReactWarning) {
1699
- JSCompiler_inline_result = false;
1700
- break a;
1694
+ };
1695
+ }
1696
+ });
1697
+
1698
+ // ../../node_modules/scheduler/cjs/scheduler.development.js
1699
+ var require_scheduler_development = __commonJS({
1700
+ "../../node_modules/scheduler/cjs/scheduler.development.js"(exports) {
1701
+ "use strict";
1702
+ "production" !== process.env.NODE_ENV && function() {
1703
+ function performWorkUntilDeadline() {
1704
+ needsPaint = false;
1705
+ if (isMessageLoopRunning) {
1706
+ var currentTime = exports.unstable_now();
1707
+ startTime = currentTime;
1708
+ var hasMoreWork = true;
1709
+ try {
1710
+ a: {
1711
+ isHostCallbackScheduled = false;
1712
+ isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
1713
+ isPerformingWork = true;
1714
+ var previousPriorityLevel = currentPriorityLevel;
1715
+ try {
1716
+ b: {
1717
+ advanceTimers(currentTime);
1718
+ for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
1719
+ var callback = currentTask.callback;
1720
+ if ("function" === typeof callback) {
1721
+ currentTask.callback = null;
1722
+ currentPriorityLevel = currentTask.priorityLevel;
1723
+ var continuationCallback = callback(
1724
+ currentTask.expirationTime <= currentTime
1725
+ );
1726
+ currentTime = exports.unstable_now();
1727
+ if ("function" === typeof continuationCallback) {
1728
+ currentTask.callback = continuationCallback;
1729
+ advanceTimers(currentTime);
1730
+ hasMoreWork = true;
1731
+ break b;
1732
+ }
1733
+ currentTask === peek(taskQueue) && pop(taskQueue);
1734
+ advanceTimers(currentTime);
1735
+ } else pop(taskQueue);
1736
+ currentTask = peek(taskQueue);
1737
+ }
1738
+ if (null !== currentTask) hasMoreWork = true;
1739
+ else {
1740
+ var firstTimer = peek(timerQueue);
1741
+ null !== firstTimer && requestHostTimeout(
1742
+ handleTimeout,
1743
+ firstTimer.startTime - currentTime
1744
+ );
1745
+ hasMoreWork = false;
1746
+ }
1747
+ }
1748
+ break a;
1749
+ } finally {
1750
+ currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
1751
+ }
1752
+ hasMoreWork = void 0;
1701
1753
  }
1702
- JSCompiler_inline_result = void 0 !== config.ref;
1754
+ } finally {
1755
+ hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
1703
1756
  }
1704
- JSCompiler_inline_result && (owner = getOwner());
1705
- hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1706
- for (propName in config)
1707
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1708
1757
  }
1709
- var propName = arguments.length - 2;
1710
- if (1 === propName) props.children = children;
1711
- else if (1 < propName) {
1712
- JSCompiler_inline_result = Array(propName);
1713
- for (var i = 0; i < propName; i++)
1714
- JSCompiler_inline_result[i] = arguments[i + 2];
1715
- props.children = JSCompiler_inline_result;
1758
+ }
1759
+ function push(heap, node) {
1760
+ var index = heap.length;
1761
+ heap.push(node);
1762
+ a: for (; 0 < index; ) {
1763
+ var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
1764
+ if (0 < compare(parent, node))
1765
+ heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
1766
+ else break a;
1716
1767
  }
1717
- props = ReactElement(
1718
- element.type,
1719
- key,
1720
- void 0,
1721
- void 0,
1722
- owner,
1723
- props,
1724
- element._debugStack,
1725
- element._debugTask
1726
- );
1727
- for (key = 2; key < arguments.length; key++)
1728
- owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
1729
- return props;
1730
- };
1731
- exports.createContext = function(defaultValue) {
1732
- defaultValue = {
1733
- $$typeof: REACT_CONTEXT_TYPE,
1734
- _currentValue: defaultValue,
1735
- _currentValue2: defaultValue,
1736
- _threadCount: 0,
1737
- Provider: null,
1738
- Consumer: null
1739
- };
1740
- defaultValue.Provider = defaultValue;
1741
- defaultValue.Consumer = {
1742
- $$typeof: REACT_CONSUMER_TYPE,
1743
- _context: defaultValue
1744
- };
1745
- defaultValue._currentRenderer = null;
1746
- defaultValue._currentRenderer2 = null;
1747
- return defaultValue;
1748
- };
1749
- exports.createElement = function(type, config, children) {
1750
- for (var i = 2; i < arguments.length; i++) {
1751
- var node = arguments[i];
1752
- isValidElement(node) && node._store && (node._store.validated = 1);
1768
+ }
1769
+ function peek(heap) {
1770
+ return 0 === heap.length ? null : heap[0];
1771
+ }
1772
+ function pop(heap) {
1773
+ if (0 === heap.length) return null;
1774
+ var first = heap[0], last = heap.pop();
1775
+ if (last !== first) {
1776
+ heap[0] = last;
1777
+ a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
1778
+ var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
1779
+ if (0 > compare(left, last))
1780
+ rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
1781
+ else if (rightIndex < length && 0 > compare(right, last))
1782
+ heap[index] = right, heap[rightIndex] = last, index = rightIndex;
1783
+ else break a;
1784
+ }
1753
1785
  }
1754
- i = {};
1755
- node = null;
1756
- if (null != config)
1757
- for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1758
- "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1759
- )), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
1760
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1761
- var childrenLength = arguments.length - 2;
1762
- if (1 === childrenLength) i.children = children;
1763
- else if (1 < childrenLength) {
1764
- for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1765
- childArray[_i] = arguments[_i + 2];
1766
- Object.freeze && Object.freeze(childArray);
1767
- i.children = childArray;
1786
+ return first;
1787
+ }
1788
+ function compare(a, b) {
1789
+ var diff = a.sortIndex - b.sortIndex;
1790
+ return 0 !== diff ? diff : a.id - b.id;
1791
+ }
1792
+ function advanceTimers(currentTime) {
1793
+ for (var timer = peek(timerQueue); null !== timer; ) {
1794
+ if (null === timer.callback) pop(timerQueue);
1795
+ else if (timer.startTime <= currentTime)
1796
+ pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
1797
+ else break;
1798
+ timer = peek(timerQueue);
1768
1799
  }
1769
- if (type && type.defaultProps)
1770
- for (propName in childrenLength = type.defaultProps, childrenLength)
1771
- void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1772
- node && defineKeyPropWarningGetter(
1773
- i,
1774
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1775
- );
1776
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1777
- return ReactElement(
1778
- type,
1779
- node,
1780
- void 0,
1781
- void 0,
1782
- getOwner(),
1783
- i,
1784
- propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1785
- propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1786
- );
1787
- };
1788
- exports.createRef = function() {
1789
- var refObject = { current: null };
1790
- Object.seal(refObject);
1791
- return refObject;
1792
- };
1793
- exports.forwardRef = function(render) {
1794
- null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1795
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1796
- ) : "function" !== typeof render ? console.error(
1797
- "forwardRef requires a render function but was given %s.",
1798
- null === render ? "null" : typeof render
1799
- ) : 0 !== render.length && 2 !== render.length && console.error(
1800
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1801
- 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1802
- );
1803
- null != render && null != render.defaultProps && console.error(
1804
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1805
- );
1806
- var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1807
- Object.defineProperty(elementType, "displayName", {
1808
- enumerable: false,
1809
- configurable: true,
1810
- get: function() {
1811
- return ownName;
1812
- },
1813
- set: function(name) {
1814
- ownName = name;
1815
- render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1800
+ }
1801
+ function handleTimeout(currentTime) {
1802
+ isHostTimeoutScheduled = false;
1803
+ advanceTimers(currentTime);
1804
+ if (!isHostCallbackScheduled)
1805
+ if (null !== peek(taskQueue))
1806
+ isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
1807
+ else {
1808
+ var firstTimer = peek(timerQueue);
1809
+ null !== firstTimer && requestHostTimeout(
1810
+ handleTimeout,
1811
+ firstTimer.startTime - currentTime
1812
+ );
1816
1813
  }
1817
- });
1818
- return elementType;
1819
- };
1820
- exports.isValidElement = isValidElement;
1821
- exports.lazy = function(ctor) {
1822
- return {
1823
- $$typeof: REACT_LAZY_TYPE,
1824
- _payload: { _status: -1, _result: ctor },
1825
- _init: lazyInitializer
1814
+ }
1815
+ function shouldYieldToHost() {
1816
+ return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
1817
+ }
1818
+ function requestHostTimeout(callback, ms) {
1819
+ taskTimeoutID = localSetTimeout(function() {
1820
+ callback(exports.unstable_now());
1821
+ }, ms);
1822
+ }
1823
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1824
+ exports.unstable_now = void 0;
1825
+ if ("object" === typeof performance && "function" === typeof performance.now) {
1826
+ var localPerformance = performance;
1827
+ exports.unstable_now = function() {
1828
+ return localPerformance.now();
1826
1829
  };
1827
- };
1828
- exports.memo = function(type, compare) {
1829
- null == type && console.error(
1830
- "memo: The first argument must be a component. Instead received: %s",
1831
- null === type ? "null" : typeof type
1832
- );
1833
- compare = {
1834
- $$typeof: REACT_MEMO_TYPE,
1835
- type,
1836
- compare: void 0 === compare ? null : compare
1830
+ } else {
1831
+ var localDate = Date, initialTime = localDate.now();
1832
+ exports.unstable_now = function() {
1833
+ return localDate.now() - initialTime;
1837
1834
  };
1838
- var ownName;
1839
- Object.defineProperty(compare, "displayName", {
1840
- enumerable: false,
1841
- configurable: true,
1842
- get: function() {
1843
- return ownName;
1844
- },
1845
- set: function(name) {
1846
- ownName = name;
1847
- type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1848
- }
1849
- });
1850
- return compare;
1835
+ }
1836
+ var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = false, isHostCallbackScheduled = false, isHostTimeoutScheduled = false, needsPaint = false, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null, isMessageLoopRunning = false, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
1837
+ if ("function" === typeof localSetImmediate)
1838
+ var schedulePerformWorkUntilDeadline = function() {
1839
+ localSetImmediate(performWorkUntilDeadline);
1840
+ };
1841
+ else if ("undefined" !== typeof MessageChannel) {
1842
+ var channel = new MessageChannel(), port = channel.port2;
1843
+ channel.port1.onmessage = performWorkUntilDeadline;
1844
+ schedulePerformWorkUntilDeadline = function() {
1845
+ port.postMessage(null);
1846
+ };
1847
+ } else
1848
+ schedulePerformWorkUntilDeadline = function() {
1849
+ localSetTimeout(performWorkUntilDeadline, 0);
1850
+ };
1851
+ exports.unstable_IdlePriority = 5;
1852
+ exports.unstable_ImmediatePriority = 1;
1853
+ exports.unstable_LowPriority = 4;
1854
+ exports.unstable_NormalPriority = 3;
1855
+ exports.unstable_Profiling = null;
1856
+ exports.unstable_UserBlockingPriority = 2;
1857
+ exports.unstable_cancelCallback = function(task) {
1858
+ task.callback = null;
1851
1859
  };
1852
- exports.startTransition = function(scope) {
1853
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
1854
- ReactSharedInternals.T = currentTransition;
1855
- currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1860
+ exports.unstable_forceFrameRate = function(fps) {
1861
+ 0 > fps || 125 < fps ? console.error(
1862
+ "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
1863
+ ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
1864
+ };
1865
+ exports.unstable_getCurrentPriorityLevel = function() {
1866
+ return currentPriorityLevel;
1867
+ };
1868
+ exports.unstable_next = function(eventHandler) {
1869
+ switch (currentPriorityLevel) {
1870
+ case 1:
1871
+ case 2:
1872
+ case 3:
1873
+ var priorityLevel = 3;
1874
+ break;
1875
+ default:
1876
+ priorityLevel = currentPriorityLevel;
1877
+ }
1878
+ var previousPriorityLevel = currentPriorityLevel;
1879
+ currentPriorityLevel = priorityLevel;
1856
1880
  try {
1857
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1858
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1859
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
1860
- } catch (error) {
1861
- reportGlobalError(error);
1881
+ return eventHandler();
1862
1882
  } finally {
1863
- null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1864
- "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1865
- )), ReactSharedInternals.T = prevTransition;
1883
+ currentPriorityLevel = previousPriorityLevel;
1866
1884
  }
1867
1885
  };
1868
- exports.unstable_useCacheRefresh = function() {
1869
- return resolveDispatcher().useCacheRefresh();
1870
- };
1871
- exports.use = function(usable) {
1872
- return resolveDispatcher().use(usable);
1873
- };
1874
- exports.useActionState = function(action, initialState, permalink) {
1875
- return resolveDispatcher().useActionState(
1876
- action,
1877
- initialState,
1878
- permalink
1879
- );
1880
- };
1881
- exports.useCallback = function(callback, deps) {
1882
- return resolveDispatcher().useCallback(callback, deps);
1883
- };
1884
- exports.useContext = function(Context) {
1885
- var dispatcher = resolveDispatcher();
1886
- Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1887
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1888
- );
1889
- return dispatcher.useContext(Context);
1890
- };
1891
- exports.useDebugValue = function(value, formatterFn) {
1892
- return resolveDispatcher().useDebugValue(value, formatterFn);
1893
- };
1894
- exports.useDeferredValue = function(value, initialValue) {
1895
- return resolveDispatcher().useDeferredValue(value, initialValue);
1896
- };
1897
- exports.useEffect = function(create, createDeps, update) {
1898
- null == create && console.warn(
1899
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1900
- );
1901
- var dispatcher = resolveDispatcher();
1902
- if ("function" === typeof update)
1903
- throw Error(
1904
- "useEffect CRUD overload is not enabled in this build of React."
1905
- );
1906
- return dispatcher.useEffect(create, createDeps);
1907
- };
1908
- exports.useId = function() {
1909
- return resolveDispatcher().useId();
1910
- };
1911
- exports.useImperativeHandle = function(ref, create, deps) {
1912
- return resolveDispatcher().useImperativeHandle(ref, create, deps);
1913
- };
1914
- exports.useInsertionEffect = function(create, deps) {
1915
- null == create && console.warn(
1916
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1917
- );
1918
- return resolveDispatcher().useInsertionEffect(create, deps);
1919
- };
1920
- exports.useLayoutEffect = function(create, deps) {
1921
- null == create && console.warn(
1922
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1923
- );
1924
- return resolveDispatcher().useLayoutEffect(create, deps);
1925
- };
1926
- exports.useMemo = function(create, deps) {
1927
- return resolveDispatcher().useMemo(create, deps);
1928
- };
1929
- exports.useOptimistic = function(passthrough, reducer) {
1930
- return resolveDispatcher().useOptimistic(passthrough, reducer);
1931
- };
1932
- exports.useReducer = function(reducer, initialArg, init) {
1933
- return resolveDispatcher().useReducer(reducer, initialArg, init);
1934
- };
1935
- exports.useRef = function(initialValue) {
1936
- return resolveDispatcher().useRef(initialValue);
1886
+ exports.unstable_requestPaint = function() {
1887
+ needsPaint = true;
1937
1888
  };
1938
- exports.useState = function(initialState) {
1939
- return resolveDispatcher().useState(initialState);
1889
+ exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
1890
+ switch (priorityLevel) {
1891
+ case 1:
1892
+ case 2:
1893
+ case 3:
1894
+ case 4:
1895
+ case 5:
1896
+ break;
1897
+ default:
1898
+ priorityLevel = 3;
1899
+ }
1900
+ var previousPriorityLevel = currentPriorityLevel;
1901
+ currentPriorityLevel = priorityLevel;
1902
+ try {
1903
+ return eventHandler();
1904
+ } finally {
1905
+ currentPriorityLevel = previousPriorityLevel;
1906
+ }
1940
1907
  };
1941
- exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1942
- return resolveDispatcher().useSyncExternalStore(
1943
- subscribe,
1944
- getSnapshot,
1945
- getServerSnapshot
1946
- );
1908
+ exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
1909
+ var currentTime = exports.unstable_now();
1910
+ "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
1911
+ switch (priorityLevel) {
1912
+ case 1:
1913
+ var timeout = -1;
1914
+ break;
1915
+ case 2:
1916
+ timeout = 250;
1917
+ break;
1918
+ case 5:
1919
+ timeout = 1073741823;
1920
+ break;
1921
+ case 4:
1922
+ timeout = 1e4;
1923
+ break;
1924
+ default:
1925
+ timeout = 5e3;
1926
+ }
1927
+ timeout = options + timeout;
1928
+ priorityLevel = {
1929
+ id: taskIdCounter++,
1930
+ callback,
1931
+ priorityLevel,
1932
+ startTime: options,
1933
+ expirationTime: timeout,
1934
+ sortIndex: -1
1935
+ };
1936
+ options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
1937
+ return priorityLevel;
1947
1938
  };
1948
- exports.useTransition = function() {
1949
- return resolveDispatcher().useTransition();
1939
+ exports.unstable_shouldYield = shouldYieldToHost;
1940
+ exports.unstable_wrapCallback = function(callback) {
1941
+ var parentPriorityLevel = currentPriorityLevel;
1942
+ return function() {
1943
+ var previousPriorityLevel = currentPriorityLevel;
1944
+ currentPriorityLevel = parentPriorityLevel;
1945
+ try {
1946
+ return callback.apply(this, arguments);
1947
+ } finally {
1948
+ currentPriorityLevel = previousPriorityLevel;
1949
+ }
1950
+ };
1950
1951
  };
1951
- exports.version = "19.1.0";
1952
1952
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1953
1953
  }();
1954
1954
  }
1955
1955
  });
1956
1956
 
1957
- // ../../node_modules/react/index.js
1958
- var require_react = __commonJS({
1959
- "../../node_modules/react/index.js"(exports, module) {
1957
+ // ../../node_modules/scheduler/index.js
1958
+ var require_scheduler = __commonJS({
1959
+ "../../node_modules/scheduler/index.js"(exports, module) {
1960
1960
  "use strict";
1961
1961
  if (process.env.NODE_ENV === "production") {
1962
- module.exports = require_react_production();
1962
+ module.exports = require_scheduler_production();
1963
1963
  } else {
1964
- module.exports = require_react_development();
1964
+ module.exports = require_scheduler_development();
1965
1965
  }
1966
1966
  }
1967
1967
  });
@@ -1970,7 +1970,7 @@ var require_react = __commonJS({
1970
1970
  var require_react_dom_production = __commonJS({
1971
1971
  "../../node_modules/react-dom/cjs/react-dom.production.js"(exports) {
1972
1972
  "use strict";
1973
- var React7 = require_react();
1973
+ var React8 = require_react();
1974
1974
  function formatProdErrorMessage(code) {
1975
1975
  var url = "https://react.dev/errors/" + code;
1976
1976
  if (1 < arguments.length) {
@@ -2010,7 +2010,7 @@ var require_react_dom_production = __commonJS({
2010
2010
  implementation
2011
2011
  };
2012
2012
  }
2013
- var ReactSharedInternals = React7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2013
+ var ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2014
2014
  function getCrossOriginStringAs(as, input) {
2015
2015
  if ("font" === as) return "";
2016
2016
  if ("string" === typeof input)
@@ -2164,7 +2164,7 @@ var require_react_dom_development = __commonJS({
2164
2164
  return dispatcher;
2165
2165
  }
2166
2166
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
2167
- var React7 = require_react(), Internals = {
2167
+ var React8 = require_react(), Internals = {
2168
2168
  d: {
2169
2169
  f: noop,
2170
2170
  r: function() {
@@ -2182,7 +2182,7 @@ var require_react_dom_development = __commonJS({
2182
2182
  },
2183
2183
  p: 0,
2184
2184
  findDOMNode: null
2185
- }, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2185
+ }, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2186
2186
  "function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
2187
2187
  "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
2188
2188
  );
@@ -2390,7 +2390,7 @@ var require_react_dom_client_production = __commonJS({
2390
2390
  "../../node_modules/react-dom/cjs/react-dom-client.production.js"(exports) {
2391
2391
  "use strict";
2392
2392
  var Scheduler = require_scheduler();
2393
- var React7 = require_react();
2393
+ var React8 = require_react();
2394
2394
  var ReactDOM = require_react_dom();
2395
2395
  function formatProdErrorMessage(code) {
2396
2396
  var url = "https://react.dev/errors/" + code;
@@ -2578,7 +2578,7 @@ var require_react_dom_client_production = __commonJS({
2578
2578
  return null;
2579
2579
  }
2580
2580
  var isArrayImpl = Array.isArray;
2581
- var ReactSharedInternals = React7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2581
+ var ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2582
2582
  var ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2583
2583
  var sharedNotPendingObject = {
2584
2584
  pending: false,
@@ -13570,7 +13570,7 @@ var require_react_dom_client_production = __commonJS({
13570
13570
  0 === i && attemptExplicitHydrationTarget(target);
13571
13571
  }
13572
13572
  };
13573
- var isomorphicReactPackageVersion$jscomp$inline_1785 = React7.version;
13573
+ var isomorphicReactPackageVersion$jscomp$inline_1785 = React8.version;
13574
13574
  if ("19.1.0" !== isomorphicReactPackageVersion$jscomp$inline_1785)
13575
13575
  throw Error(
13576
13576
  formatProdErrorMessage(
@@ -15021,7 +15021,7 @@ var require_react_dom_client_development = __commonJS({
15021
15021
  "number" === type && getActiveElement(node.ownerDocument) === node || node.defaultValue === "" + value || (node.defaultValue = "" + value);
15022
15022
  }
15023
15023
  function validateOptionProps(element, props) {
15024
- null == props.value && ("object" === typeof props.children && null !== props.children ? React7.Children.forEach(props.children, function(child) {
15024
+ null == props.value && ("object" === typeof props.children && null !== props.children ? React8.Children.forEach(props.children, function(child) {
15025
15025
  null == child || "string" === typeof child || "number" === typeof child || "bigint" === typeof child || didWarnInvalidChild || (didWarnInvalidChild = true, console.error(
15026
15026
  "Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."
15027
15027
  ));
@@ -28603,14 +28603,14 @@ var require_react_dom_client_development = __commonJS({
28603
28603
  ));
28604
28604
  }
28605
28605
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
28606
- var Scheduler = require_scheduler(), React7 = require_react(), ReactDOM = require_react_dom(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
28606
+ var Scheduler = require_scheduler(), React8 = require_react(), ReactDOM = require_react_dom(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
28607
28607
  Symbol.for("react.scope");
28608
28608
  var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
28609
28609
  Symbol.for("react.legacy_hidden");
28610
28610
  Symbol.for("react.tracing_marker");
28611
28611
  var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
28612
28612
  Symbol.for("react.view_transition");
28613
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, NotPending = Object.freeze({
28613
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, NotPending = Object.freeze({
28614
28614
  pending: false,
28615
28615
  data: null,
28616
28616
  method: null,
@@ -31324,7 +31324,7 @@ var require_react_dom_client_development = __commonJS({
31324
31324
  }
31325
31325
  };
31326
31326
  (function() {
31327
- var isomorphicReactPackageVersion = React7.version;
31327
+ var isomorphicReactPackageVersion = React8.version;
31328
31328
  if ("19.1.0" !== isomorphicReactPackageVersion)
31329
31329
  throw Error(
31330
31330
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.1.0\nLearn more: https://react.dev/warnings/version-mismatch")
@@ -31720,20 +31720,20 @@ var require_react_jsx_runtime_development = __commonJS({
31720
31720
  function validateChildKeys(node) {
31721
31721
  "object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
31722
31722
  }
31723
- var React7 = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
31723
+ var React8 = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
31724
31724
  Symbol.for("react.provider");
31725
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
31725
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
31726
31726
  return null;
31727
31727
  };
31728
- React7 = {
31728
+ React8 = {
31729
31729
  "react-stack-bottom-frame": function(callStackForError) {
31730
31730
  return callStackForError();
31731
31731
  }
31732
31732
  };
31733
31733
  var specialPropKeyWarningShown;
31734
31734
  var didWarnAboutElementRef = {};
31735
- var unknownOwnerDebugStack = React7["react-stack-bottom-frame"].bind(
31736
- React7,
31735
+ var unknownOwnerDebugStack = React8["react-stack-bottom-frame"].bind(
31736
+ React8,
31737
31737
  UnknownOwner
31738
31738
  )();
31739
31739
  var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
@@ -31782,12 +31782,14 @@ var require_jsx_runtime = __commonJS({
31782
31782
  });
31783
31783
 
31784
31784
  // src/inspector/custom-element.tsx
31785
+ var import_react20 = __toESM(require_react(), 1);
31785
31786
  var import_client = __toESM(require_client(), 1);
31787
+ import { setup } from "goober";
31786
31788
  import { Account } from "jazz-tools";
31787
31789
 
31788
31790
  // src/inspector/viewer/new-app.tsx
31789
- var import_react17 = __toESM(require_react(), 1);
31790
- import { styled as styled19 } from "goober";
31791
+ var import_react19 = __toESM(require_react(), 1);
31792
+ import { styled as styled20 } from "goober";
31791
31793
 
31792
31794
  // src/inspector/ui/button.tsx
31793
31795
  var import_react = __toESM(require_react(), 1);
@@ -31962,11 +31964,11 @@ var Breadcrumbs = ({
31962
31964
  };
31963
31965
 
31964
31966
  // src/inspector/viewer/page-stack.tsx
31965
- import { styled as styled15 } from "goober";
31967
+ import { styled as styled17 } from "goober";
31966
31968
 
31967
31969
  // src/inspector/viewer/page.tsx
31968
- var import_react12 = __toESM(require_react(), 1);
31969
- import { styled as styled14 } from "goober";
31970
+ var import_react15 = __toESM(require_react(), 1);
31971
+ import { styled as styled16 } from "goober";
31970
31972
 
31971
31973
  // src/inspector/ui/badge.tsx
31972
31974
  var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
@@ -33055,6 +33057,9 @@ function CoPlainTextView({ data }) {
33055
33057
  ] });
33056
33058
  }
33057
33059
 
33060
+ // src/inspector/viewer/group-view.tsx
33061
+ var import_react13 = __toESM(require_react(), 1);
33062
+
33058
33063
  // src/inspector/ui/table.tsx
33059
33064
  var import_react10 = __toESM(require_react(), 1);
33060
33065
  var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1);
@@ -33095,49 +33100,442 @@ var TableRow = import_react10.default.forwardRef(({ children, ...props }, ref) =
33095
33100
  var TableHeader = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StyledTh, { ref, ...props, children }));
33096
33101
  var TableCell = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StyledTd, { ref, ...props, children }));
33097
33102
 
33098
- // src/inspector/viewer/group-view.tsx
33103
+ // src/inspector/ui/modal.tsx
33104
+ var import_react11 = __toESM(require_react(), 1);
33105
+ import { styled as styled13 } from "goober";
33099
33106
  var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
33107
+ var ModalContent = styled13("dialog")`
33108
+ background-color: var(--j-background);
33109
+ border-radius: var(--j-radius-lg);
33110
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
33111
+ border: 1px solid var(--j-border-color);
33112
+ max-width: 32rem;
33113
+ margin-block: auto;
33114
+ margin-inline: auto;
33115
+ &::backdrop {
33116
+ background-color: rgba(0, 0, 0, 0.7);
33117
+ }
33118
+
33119
+ `;
33120
+ var ModalHeader = styled13("div")`
33121
+ display: flex;
33122
+ justify-content: space-between;
33123
+ align-items: flex-start;
33124
+ padding: 1.5rem 1.5rem 0 1.5rem;
33125
+ gap: 1rem;
33126
+ `;
33127
+ var ModalBody = styled13("div")`
33128
+ padding: 1rem 1.5rem;
33129
+ flex: 1;
33130
+ `;
33131
+ var ModalFooter = styled13("div")`
33132
+ display: flex;
33133
+ justify-content: flex-end;
33134
+ gap: 0.75rem;
33135
+ padding: 0 1.5rem 1.5rem 1.5rem;
33136
+ `;
33137
+ var CloseButton = styled13("button")`
33138
+ background: none;
33139
+ border: none;
33140
+ cursor: pointer;
33141
+ padding: 0.25rem;
33142
+ border-radius: var(--j-radius-sm);
33143
+ color: var(--j-text-color);
33144
+ font-size: 1.25rem;
33145
+ line-height: 1;
33146
+ display: flex;
33147
+ align-items: center;
33148
+ justify-content: center;
33149
+ min-width: 2rem;
33150
+ min-height: 2rem;
33151
+
33152
+ &:hover {
33153
+ background-color: var(--j-foreground);
33154
+ }
33155
+
33156
+ &:focus-visible {
33157
+ outline: 2px solid var(--j-border-focus);
33158
+ outline-offset: 2px;
33159
+ }
33160
+ `;
33161
+ var Modal = (0, import_react11.forwardRef)(
33162
+ ({
33163
+ isOpen,
33164
+ onClose,
33165
+ heading,
33166
+ text,
33167
+ children,
33168
+ confirmText = "Confirm",
33169
+ cancelText = "Cancel",
33170
+ onConfirm,
33171
+ onCancel,
33172
+ showButtons = true,
33173
+ className
33174
+ }, ref) => {
33175
+ const modalRef = (0, import_react11.useRef)(null);
33176
+ (0, import_react11.useEffect)(() => {
33177
+ if (isOpen) {
33178
+ modalRef.current?.showModal();
33179
+ } else {
33180
+ onClose();
33181
+ modalRef.current?.close();
33182
+ }
33183
+ }, [isOpen, onClose]);
33184
+ const handleConfirm = () => {
33185
+ onConfirm?.();
33186
+ onClose();
33187
+ };
33188
+ const handleCancel = () => {
33189
+ onCancel?.();
33190
+ onClose();
33191
+ };
33192
+ if (!isOpen) return null;
33193
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
33194
+ ModalContent,
33195
+ {
33196
+ ref: ref || modalRef,
33197
+ className,
33198
+ role: "dialog",
33199
+ "aria-labelledby": "modal-heading",
33200
+ onClose,
33201
+ children: [
33202
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(ModalHeader, { children: [
33203
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Heading, { id: "modal-heading", children: heading }),
33204
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CloseButton, { onClick: onClose, "aria-label": "Close modal", type: "button", children: "\xD7" })
33205
+ ] }),
33206
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(ModalBody, { children: [
33207
+ text && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { style: { margin: "0 0 1rem 0", color: "var(--j-text-color)" }, children: text }),
33208
+ children
33209
+ ] }),
33210
+ showButtons && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(ModalFooter, { children: [
33211
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { variant: "secondary", onClick: handleCancel, children: cancelText }),
33212
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { variant: "primary", onClick: handleConfirm, children: confirmText })
33213
+ ] })
33214
+ ]
33215
+ }
33216
+ );
33217
+ }
33218
+ );
33219
+ Modal.displayName = "Modal";
33220
+
33221
+ // src/inspector/ui/select.tsx
33222
+ var import_react12 = __toESM(require_react(), 1);
33223
+ import { styled as styled14 } from "goober";
33224
+ var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
33225
+ var SelectContainer = styled14("div")`
33226
+ display: grid;
33227
+ gap: 0.25rem;
33228
+ `;
33229
+ var SelectWrapper = styled14("div")`
33230
+ position: relative;
33231
+ display: flex;
33232
+ align-items: center;
33233
+ `;
33234
+ var StyledSelect = styled14("select")`
33235
+ width: 100%;
33236
+ border-radius: var(--j-radius-md);
33237
+ border: 1px solid var(--j-border-color);
33238
+ padding: 0.5rem 0.875rem 0.5rem 0.875rem;
33239
+ padding-right: 2rem;
33240
+ box-shadow: var(--j-shadow-sm);
33241
+ font-weight: 500;
33242
+ color: var(--j-text-color-strong);
33243
+ appearance: none;
33244
+ overflow: hidden;
33245
+ text-overflow: ellipsis;
33246
+ white-space: nowrap;
33247
+
33248
+ @media (prefers-color-scheme: dark) {
33249
+ background-color: var(--j-foreground);
33250
+ }
33251
+ `;
33252
+ var SelectIcon = styled14("span")`
33253
+ position: absolute;
33254
+ right: 0.5em;
33255
+ color: var(--j-neutral-400);
33256
+ pointer-events: none;
33257
+
33258
+ @media (prefers-color-scheme: dark) {
33259
+ color: var(--j-neutral-900);
33260
+ }
33261
+ `;
33262
+ function Select(props) {
33263
+ const { label, hideLabel, id: customId, className, ...selectProps } = props;
33264
+ const generatedId = (0, import_react12.useId)();
33265
+ const id = customId || generatedId;
33266
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(SelectContainer, { className, children: [
33267
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { htmlFor: id, className: hideLabel ? "j-sr-only" : "", children: label }),
33268
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(SelectWrapper, { children: [
33269
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StyledSelect, { ...selectProps, id, children: props.children }),
33270
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { name: "chevronDown", size: "sm" }) })
33271
+ ] })
33272
+ ] });
33273
+ }
33274
+
33275
+ // src/inspector/viewer/group-view.tsx
33276
+ var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
33277
+ function partitionMembers(data) {
33278
+ const everyone = Object.entries(data).filter(([key]) => key === "everyone").map(([key, value]) => ({
33279
+ id: key,
33280
+ role: value
33281
+ }));
33282
+ const members = Object.entries(data).filter(([key]) => isCoId(key)).map(([key, value]) => ({
33283
+ id: key,
33284
+ role: value
33285
+ }));
33286
+ const parentGroups = Object.entries(data).filter(([key]) => key.startsWith("parent_co_")).map(([key, value]) => ({
33287
+ id: key.slice(7),
33288
+ role: value
33289
+ }));
33290
+ const childGroups = Object.entries(data).filter(
33291
+ ([key, value]) => key.startsWith("child_co_") && value !== "revoked"
33292
+ ).map(([key, value]) => ({
33293
+ id: key.slice(6),
33294
+ role: value
33295
+ }));
33296
+ return { everyone, members, parentGroups, childGroups };
33297
+ }
33100
33298
  function GroupView({
33299
+ coValue,
33101
33300
  data,
33102
33301
  onNavigate,
33103
33302
  node
33104
33303
  }) {
33105
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
33106
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text, { strong: true, children: "Members" }),
33107
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Table, { children: [
33108
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(TableRow, { children: [
33109
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableHeader, { children: "Account" }),
33110
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableHeader, { children: "Permission" })
33304
+ const [addMemberType, setAddMemberType] = (0, import_react13.useState)(null);
33305
+ const { everyone, members, parentGroups, childGroups } = partitionMembers(
33306
+ data
33307
+ );
33308
+ const onRemoveMember = async (id) => {
33309
+ if (confirm("Are you sure you want to remove this member?") === false) {
33310
+ return;
33311
+ }
33312
+ try {
33313
+ const group = await node.load(coValue.id);
33314
+ if (group === "unavailable") {
33315
+ throw new Error("Group not found");
33316
+ }
33317
+ const rawGroup = group;
33318
+ rawGroup.removeMember(id);
33319
+ } catch (error) {
33320
+ console.error(error);
33321
+ throw error;
33322
+ }
33323
+ };
33324
+ const onRemoveGroup = async (id) => {
33325
+ if (confirm("Are you sure you want to remove this group?") === false) {
33326
+ return;
33327
+ }
33328
+ try {
33329
+ const group = await node.load(coValue.id);
33330
+ if (group === "unavailable") {
33331
+ throw new Error("Group not found");
33332
+ }
33333
+ const rawGroup = group;
33334
+ const targetGroup = await node.load(id);
33335
+ if (targetGroup === "unavailable") {
33336
+ throw new Error("Group not found");
33337
+ }
33338
+ const rawTargetGroup = targetGroup;
33339
+ rawGroup.revokeExtend(rawTargetGroup);
33340
+ } catch (error) {
33341
+ console.error(error);
33342
+ throw error;
33343
+ }
33344
+ };
33345
+ const handleAddMemberSubmit = async (event) => {
33346
+ event.preventDefault();
33347
+ const form = event.currentTarget;
33348
+ const memberId = form.elements.namedItem("memberId")?.value;
33349
+ const role = form.elements.namedItem("role")?.value;
33350
+ try {
33351
+ const group = await node.load(coValue.id);
33352
+ if (group === "unavailable") {
33353
+ throw new Error("Group not found");
33354
+ }
33355
+ const rawGroup = group;
33356
+ if (addMemberType === "account") {
33357
+ let rawAccount = "everyone";
33358
+ if (memberId !== "everyone") {
33359
+ const account = await node.load(memberId);
33360
+ if (account === "unavailable") {
33361
+ throw new Error("Account not found");
33362
+ }
33363
+ rawAccount = account;
33364
+ }
33365
+ rawGroup.addMember(rawAccount, role);
33366
+ } else if (addMemberType === "group") {
33367
+ const targetGroup = await node.load(memberId);
33368
+ if (targetGroup === "unavailable") {
33369
+ throw new Error("Group not found");
33370
+ }
33371
+ const rawTargetGroup = targetGroup;
33372
+ rawGroup.extend(
33373
+ rawTargetGroup,
33374
+ role
33375
+ );
33376
+ }
33377
+ setAddMemberType(null);
33378
+ } catch (error) {
33379
+ console.error(error);
33380
+ alert(`Failed to add ${addMemberType}: ${error.message}`);
33381
+ }
33382
+ };
33383
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
33384
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Table, { children: [
33385
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33386
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { children: "Member" }),
33387
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { children: "Permission" }),
33388
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, {})
33111
33389
  ] }) }),
33112
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(TableBody, { children: [
33113
- "everyone" in data && typeof data.everyone === "string" ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(TableRow, { children: [
33114
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableCell, { children: "everyone" }),
33115
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableCell, { children: data.everyone })
33116
- ] }) : null,
33117
- Object.entries(data).map(
33118
- ([key, value]) => isCoId(key) ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(TableRow, { children: [
33119
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
33120
- AccountOrGroupText,
33121
- {
33122
- coId: key,
33123
- node,
33124
- showId: true,
33125
- onClick: () => {
33126
- onNavigate([{ coId: key, name: key }]);
33127
- }
33390
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableBody, { children: [
33391
+ everyone.map((member) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33392
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: member.id }),
33393
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: member.role }),
33394
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: member.role !== "revoked" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33395
+ Button,
33396
+ {
33397
+ variant: "secondary",
33398
+ onClick: () => onRemoveMember(member.id),
33399
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { name: "delete" })
33400
+ }
33401
+ ) })
33402
+ ] }, member.id)),
33403
+ members.map((member) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33404
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33405
+ AccountOrGroupText,
33406
+ {
33407
+ coId: member.id,
33408
+ node,
33409
+ showId: true,
33410
+ onClick: () => {
33411
+ onNavigate([{ coId: member.id, name: member.id }]);
33128
33412
  }
33129
- ) }),
33130
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableCell, { children: value })
33131
- ] }, key) : null
33132
- )
33413
+ }
33414
+ ) }),
33415
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: member.role }),
33416
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: member.role !== "revoked" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33417
+ Button,
33418
+ {
33419
+ variant: "secondary",
33420
+ onClick: () => onRemoveMember(member.id),
33421
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { name: "delete" })
33422
+ }
33423
+ ) })
33424
+ ] }, member.id)),
33425
+ parentGroups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33426
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33427
+ AccountOrGroupText,
33428
+ {
33429
+ coId: group.id,
33430
+ node,
33431
+ showId: true,
33432
+ onClick: () => {
33433
+ onNavigate([{ coId: group.id, name: group.id }]);
33434
+ }
33435
+ }
33436
+ ) }),
33437
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: group.role }),
33438
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: group.role !== "revoked" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33439
+ Button,
33440
+ {
33441
+ variant: "secondary",
33442
+ onClick: () => onRemoveGroup(group.id),
33443
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { name: "delete" })
33444
+ }
33445
+ ) })
33446
+ ] }, group.id))
33133
33447
  ] })
33134
33448
  ] }),
33135
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(RawDataCard, { data })
33449
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
33450
+ "div",
33451
+ {
33452
+ style: {
33453
+ display: "flex",
33454
+ justifyContent: "flex-end",
33455
+ gap: "0.75rem",
33456
+ marginTop: "1rem"
33457
+ },
33458
+ children: [
33459
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { variant: "primary", onClick: () => setAddMemberType("account"), children: "Add Account" }),
33460
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { variant: "primary", onClick: () => setAddMemberType("group"), children: "Add Group" })
33461
+ ]
33462
+ }
33463
+ ),
33464
+ childGroups.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Table, { children: [
33465
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { children: "Member of" }) }) }),
33466
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableBody, { children: childGroups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33467
+ AccountOrGroupText,
33468
+ {
33469
+ coId: group.id,
33470
+ node,
33471
+ showId: true,
33472
+ onClick: () => {
33473
+ onNavigate([{ coId: group.id, name: group.id }]);
33474
+ }
33475
+ }
33476
+ ) }) }, group.id)) })
33477
+ ] }),
33478
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(RawDataCard, { data }),
33479
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33480
+ Modal,
33481
+ {
33482
+ isOpen: addMemberType !== null,
33483
+ onClose: () => setAddMemberType(null),
33484
+ heading: addMemberType === "account" ? "Add Account" : "Add Group",
33485
+ showButtons: false,
33486
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("form", { onSubmit: handleAddMemberSubmit, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
33487
+ "div",
33488
+ {
33489
+ style: { display: "flex", flexDirection: "column", gap: "1rem" },
33490
+ children: [
33491
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33492
+ Input,
33493
+ {
33494
+ name: "memberId",
33495
+ label: addMemberType === "account" ? "Account ID" : "Group ID",
33496
+ placeholder: addMemberType === "account" ? "Enter account ID" : "Enter group ID",
33497
+ required: true
33498
+ }
33499
+ ),
33500
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Select, { name: "role", label: "Role", children: [
33501
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("option", { value: "reader", children: "Reader" }),
33502
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("option", { value: "writer", children: "Writer" }),
33503
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("option", { value: "admin", children: "Admin" }),
33504
+ addMemberType === "account" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("option", { value: "writeOnly", children: "Write Only" }) }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("option", { value: "inherit", children: "Inherit" }) })
33505
+ ] }),
33506
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
33507
+ "div",
33508
+ {
33509
+ style: {
33510
+ display: "flex",
33511
+ gap: "0.75rem",
33512
+ justifyContent: "flex-end",
33513
+ marginTop: "0.5rem"
33514
+ },
33515
+ children: [
33516
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33517
+ Button,
33518
+ {
33519
+ type: "button",
33520
+ variant: "secondary",
33521
+ onClick: () => setAddMemberType(null),
33522
+ children: "Cancel"
33523
+ }
33524
+ ),
33525
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { type: "submit", variant: "primary", children: "Add" })
33526
+ ]
33527
+ }
33528
+ )
33529
+ ]
33530
+ }
33531
+ ) })
33532
+ }
33533
+ )
33136
33534
  ] });
33137
33535
  }
33138
33536
 
33139
33537
  // src/inspector/viewer/role-display.tsx
33140
- var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
33538
+ var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
33141
33539
  function RoleDisplay({
33142
33540
  node,
33143
33541
  value
@@ -33156,24 +33554,24 @@ function RoleDisplay({
33156
33554
  } else {
33157
33555
  role = "unauthorized";
33158
33556
  }
33159
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Text, { children: [
33557
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Text, { children: [
33160
33558
  "Role: ",
33161
33559
  role
33162
33560
  ] });
33163
33561
  }
33164
33562
 
33165
33563
  // src/inspector/viewer/table-viewer.tsx
33166
- var import_react11 = __toESM(require_react(), 1);
33167
- import { styled as styled13 } from "goober";
33168
- var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
33169
- var PaginationContainer = styled13("div")`
33564
+ var import_react14 = __toESM(require_react(), 1);
33565
+ import { styled as styled15 } from "goober";
33566
+ var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
33567
+ var PaginationContainer = styled15("div")`
33170
33568
  padding: 1rem 0;
33171
33569
  display: flex;
33172
33570
  align-items: center;
33173
33571
  justify-content: space-between;
33174
33572
  gap: 0.5rem;
33175
33573
  `;
33176
- var RedTooltip = styled13("span")`
33574
+ var RedTooltip = styled15("span")`
33177
33575
  position:relative; /* making the .tooltip span a container for the tooltip text */
33178
33576
  border-bottom:1px dashed #000; /* little indicater to indicate it's hoverable */
33179
33577
 
@@ -33210,8 +33608,8 @@ function CoValuesTableView({
33210
33608
  onNavigate,
33211
33609
  onRemove
33212
33610
  }) {
33213
- const [visibleRowsCount, setVisibleRowsCount] = (0, import_react11.useState)(10);
33214
- const [coIdArray, visibleRows] = (0, import_react11.useMemo)(() => {
33611
+ const [visibleRowsCount, setVisibleRowsCount] = (0, import_react14.useState)(10);
33612
+ const [coIdArray, visibleRows] = (0, import_react14.useMemo)(() => {
33215
33613
  const coIdArray2 = Array.isArray(data) ? data : Object.values(data).every((k) => typeof k === "string" && isCoId(k)) ? Object.values(data).map((k) => k) : [];
33216
33614
  const visibleRows2 = coIdArray2.slice(0, visibleRowsCount);
33217
33615
  return [coIdArray2, visibleRows2];
@@ -33219,10 +33617,10 @@ function CoValuesTableView({
33219
33617
  const resolvedRows = useResolvedCoValues(visibleRows, node);
33220
33618
  const hasMore = visibleRowsCount < coIdArray.length;
33221
33619
  if (!coIdArray.length) {
33222
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { children: "No data to display" });
33620
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { children: "No data to display" });
33223
33621
  }
33224
33622
  if (resolvedRows.length === 0) {
33225
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { children: "Loading..." });
33623
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { children: "Loading..." });
33226
33624
  }
33227
33625
  const keys = Array.from(
33228
33626
  new Set(
@@ -33232,15 +33630,15 @@ function CoValuesTableView({
33232
33630
  const loadMore = () => {
33233
33631
  setVisibleRowsCount((prevVisibleRows) => prevVisibleRows + 10);
33234
33632
  };
33235
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
33236
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Table, { children: [
33237
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33238
- ["ID", ...keys, "Action"].map((key) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { children: key }, key)),
33239
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, {})
33633
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
33634
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Table, { children: [
33635
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(TableRow, { children: [
33636
+ ["ID", ...keys, "Action"].map((key) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableHeader, { children: key }, key)),
33637
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableHeader, {})
33240
33638
  ] }) }),
33241
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableBody, { children: resolvedRows.slice(0, visibleRowsCount).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33242
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { mono: true, children: item.snapshot === "unavailable" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(RedTooltip, { "data-text": "Unavailable", children: [
33243
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33639
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableBody, { children: resolvedRows.slice(0, visibleRowsCount).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(TableRow, { children: [
33640
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text, { mono: true, children: item.snapshot === "unavailable" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(RedTooltip, { "data-text": "Unavailable", children: [
33641
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
33244
33642
  Icon,
33245
33643
  {
33246
33644
  name: "caution",
@@ -33253,7 +33651,7 @@ function CoValuesTableView({
33253
33651
  ),
33254
33652
  visibleRows[index]
33255
33653
  ] }) : visibleRows[index] }) }),
33256
- keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: item.snapshot !== "unavailable" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33654
+ keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableCell, { children: item.snapshot !== "unavailable" && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
33257
33655
  ValueRenderer,
33258
33656
  {
33259
33657
  json: item.snapshot[key],
@@ -33274,7 +33672,7 @@ function CoValuesTableView({
33274
33672
  }
33275
33673
  }
33276
33674
  ) }, key)),
33277
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33675
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
33278
33676
  Button,
33279
33677
  {
33280
33678
  variant: "secondary",
@@ -33287,18 +33685,18 @@ function CoValuesTableView({
33287
33685
  children: "View"
33288
33686
  }
33289
33687
  ) }),
33290
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { variant: "secondary", onClick: () => onRemove(index), children: "Remove" }) })
33688
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Button, { variant: "secondary", onClick: () => onRemove(index), children: "Remove" }) })
33291
33689
  ] }, index)) })
33292
33690
  ] }),
33293
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(PaginationContainer, { children: [
33294
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { muted: true, small: true, children: [
33691
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(PaginationContainer, { children: [
33692
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Text, { muted: true, small: true, children: [
33295
33693
  "Showing ",
33296
33694
  Math.min(visibleRowsCount, coIdArray.length),
33297
33695
  " of",
33298
33696
  " ",
33299
33697
  coIdArray.length
33300
33698
  ] }),
33301
- hasMore && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { variant: "secondary", onClick: loadMore, children: "Load more" })
33699
+ hasMore && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Button, { variant: "secondary", onClick: loadMore, children: "Load more" })
33302
33700
  ] })
33303
33701
  ] });
33304
33702
  }
@@ -33308,11 +33706,11 @@ function TableView({
33308
33706
  onNavigate,
33309
33707
  onRemove
33310
33708
  }) {
33311
- const isListOfCoValues = (0, import_react11.useMemo)(() => {
33709
+ const isListOfCoValues = (0, import_react14.useMemo)(() => {
33312
33710
  return Array.isArray(data) && data.every((k) => isCoId(k));
33313
33711
  }, [data]);
33314
33712
  if (isListOfCoValues) {
33315
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33713
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
33316
33714
  CoValuesTableView,
33317
33715
  {
33318
33716
  data,
@@ -33322,26 +33720,26 @@ function TableView({
33322
33720
  }
33323
33721
  );
33324
33722
  }
33325
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Table, { children: [
33326
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33327
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { style: { width: "5rem" }, children: "Index" }),
33328
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { children: "Value" }),
33329
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { children: "Action" })
33723
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Table, { children: [
33724
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(TableRow, { children: [
33725
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableHeader, { style: { width: "5rem" }, children: "Index" }),
33726
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableHeader, { children: "Value" }),
33727
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableHeader, { children: "Action" })
33330
33728
  ] }) }),
33331
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableBody, { children: Array.isArray(data) && data?.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33332
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { mono: true, children: index }) }),
33333
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ValueRenderer, { json: value }) }),
33334
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { variant: "secondary", onClick: () => onRemove(index), children: "Remove" }) })
33729
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableBody, { children: Array.isArray(data) && data?.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(TableRow, { children: [
33730
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text, { mono: true, children: index }) }),
33731
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ValueRenderer, { json: value }) }),
33732
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Button, { variant: "secondary", onClick: () => onRemove(index), children: "Remove" }) })
33335
33733
  ] }, index)) })
33336
33734
  ] });
33337
33735
  }
33338
33736
 
33339
33737
  // src/inspector/viewer/page.tsx
33340
- var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
33341
- var BasePageContainer = import_react12.default.forwardRef(
33342
- ({ isTopLevel, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, ...rest })
33738
+ var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
33739
+ var BasePageContainer = import_react15.default.forwardRef(
33740
+ ({ isTopLevel, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { ref, ...rest })
33343
33741
  );
33344
- var PageContainer = styled14(BasePageContainer)`
33742
+ var PageContainer = styled16(BasePageContainer)`
33345
33743
  position: absolute;
33346
33744
  z-index: 10;
33347
33745
  inset: 0;
@@ -33349,36 +33747,36 @@ var PageContainer = styled14(BasePageContainer)`
33349
33747
  height: 100%;
33350
33748
  padding: 0 0.75rem;
33351
33749
  `;
33352
- var BackButton = styled14("div")`
33750
+ var BackButton = styled16("div")`
33353
33751
  position: absolute;
33354
33752
  left: 0;
33355
33753
  right: 0;
33356
33754
  top: 0;
33357
33755
  height: 2.5rem;
33358
33756
  `;
33359
- var HeaderContainer = styled14("div")`
33757
+ var HeaderContainer = styled16("div")`
33360
33758
  display: flex;
33361
33759
  justify-content: space-between;
33362
33760
  align-items: center;
33363
33761
  margin-bottom: 1rem;
33364
33762
  `;
33365
- var TitleContainer = styled14("div")`
33763
+ var TitleContainer = styled16("div")`
33366
33764
  display: flex;
33367
33765
  align-items: center;
33368
33766
  gap: 0.75rem;
33369
33767
  `;
33370
- var Title = styled14(Heading)`
33768
+ var Title = styled16(Heading)`
33371
33769
  display: flex;
33372
33770
  flex-direction: column;
33373
33771
  align-items: flex-start;
33374
33772
  gap: 0.25rem;
33375
33773
  `;
33376
- var BadgeContainer = styled14("div")`
33774
+ var BadgeContainer = styled16("div")`
33377
33775
  display: flex;
33378
33776
  align-items: center;
33379
33777
  gap: 0.75rem;
33380
33778
  `;
33381
- var ContentContainer = styled14("div")`
33779
+ var ContentContainer = styled16("div")`
33382
33780
  overflow: auto;
33383
33781
  display: flex;
33384
33782
  flex-direction: column;
@@ -33399,7 +33797,7 @@ function View(props) {
33399
33797
  const { node, onNavigate } = props;
33400
33798
  if (!snapshot || snapshot === "unavailable") return;
33401
33799
  if (type === "costream") {
33402
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
33800
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
33403
33801
  CoStreamView,
33404
33802
  {
33405
33803
  data: snapshot,
@@ -33410,13 +33808,21 @@ function View(props) {
33410
33808
  );
33411
33809
  }
33412
33810
  if (extendedType === "group") {
33413
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GroupView, { data: snapshot, node, onNavigate });
33811
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
33812
+ GroupView,
33813
+ {
33814
+ coValue: value,
33815
+ data: snapshot,
33816
+ node,
33817
+ onNavigate
33818
+ }
33819
+ );
33414
33820
  }
33415
33821
  if (extendedType === "account") {
33416
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AccountView, { data: snapshot, node, onNavigate });
33822
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AccountView, { data: snapshot, node, onNavigate });
33417
33823
  }
33418
33824
  if (type === "coplaintext") {
33419
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CoPlainTextView, { data: snapshot });
33825
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CoPlainTextView, { data: snapshot });
33420
33826
  }
33421
33827
  if (type === "colist") {
33422
33828
  const handleRemove = (index) => {
@@ -33425,7 +33831,7 @@ function View(props) {
33425
33831
  list.delete(index);
33426
33832
  }
33427
33833
  };
33428
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
33834
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
33429
33835
  TableView,
33430
33836
  {
33431
33837
  data: snapshot,
@@ -33436,9 +33842,9 @@ function View(props) {
33436
33842
  );
33437
33843
  }
33438
33844
  if (extendedType === "record") {
33439
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TableView, { data: snapshot, node, onNavigate });
33845
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TableView, { data: snapshot, node, onNavigate });
33440
33846
  }
33441
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GridView, { data: snapshot, onNavigate, node });
33847
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(GridView, { data: snapshot, onNavigate, node });
33442
33848
  }
33443
33849
  function Page(props) {
33444
33850
  const {
@@ -33454,13 +33860,13 @@ function Page(props) {
33454
33860
  const coValue = useResolvedCoValue(coId, node);
33455
33861
  const { value, snapshot, type, extendedType } = coValue;
33456
33862
  if (snapshot === "unavailable") {
33457
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style, children: "Data unavailable" });
33863
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { style, children: "Data unavailable" });
33458
33864
  }
33459
33865
  if (!snapshot) {
33460
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style });
33866
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { style });
33461
33867
  }
33462
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(PageContainer, { style, className, isTopLevel, children: [
33463
- !isTopLevel && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
33868
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(PageContainer, { style, className, isTopLevel, children: [
33869
+ !isTopLevel && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
33464
33870
  BackButton,
33465
33871
  {
33466
33872
  "aria-label": "Back",
@@ -33470,27 +33876,27 @@ function Page(props) {
33470
33876
  "aria-hidden": "true"
33471
33877
  }
33472
33878
  ),
33473
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(HeaderContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(TitleContainer, { children: [
33474
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Title, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { children: [
33879
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(HeaderContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(TitleContainer, { children: [
33880
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Title, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { children: [
33475
33881
  name,
33476
- typeof snapshot === "object" && "name" in snapshot ? /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { style: { color: "#57534e", fontWeight: 500 }, children: [
33882
+ typeof snapshot === "object" && "name" in snapshot ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { style: { color: "#57534e", fontWeight: 500 }, children: [
33477
33883
  " ",
33478
33884
  snapshot.name
33479
33885
  ] }) : null
33480
33886
  ] }) }),
33481
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(BadgeContainer, { children: [
33482
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Badge, { children: type && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TypeIcon, { type, extendedType }) }),
33483
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Badge, { children: coId })
33887
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(BadgeContainer, { children: [
33888
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Badge, { children: type && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TypeIcon, { type, extendedType }) }),
33889
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Badge, { children: coId })
33484
33890
  ] })
33485
33891
  ] }) }),
33486
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(ContentContainer, { children: [
33487
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(View, { ...props, coValue }),
33488
- extendedType !== "account" && extendedType !== "group" && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
33489
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(RoleDisplay, { node, value }),
33490
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Text, { muted: true, children: [
33892
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(ContentContainer, { children: [
33893
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(View, { ...props, coValue }),
33894
+ extendedType !== "account" && extendedType !== "group" && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
33895
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(RoleDisplay, { node, value }),
33896
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Text, { muted: true, children: [
33491
33897
  "Owned by",
33492
33898
  " ",
33493
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
33899
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
33494
33900
  AccountOrGroupText,
33495
33901
  {
33496
33902
  coId: value.group.id,
@@ -33508,8 +33914,8 @@ function Page(props) {
33508
33914
  }
33509
33915
 
33510
33916
  // src/inspector/viewer/page-stack.tsx
33511
- var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
33512
- var PageStackContainer = styled15("div")`
33917
+ var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
33918
+ var PageStackContainer = styled17("div")`
33513
33919
  position: relative;
33514
33920
  padding: 0 0.75rem;
33515
33921
  overflow-y: auto;
@@ -33526,9 +33932,9 @@ function PageStack({
33526
33932
  }) {
33527
33933
  const page = path[path.length - 1];
33528
33934
  const index = path.length - 1;
33529
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(PageStackContainer, { children: [
33935
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(PageStackContainer, { children: [
33530
33936
  children,
33531
- node && page && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
33937
+ node && page && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
33532
33938
  Page,
33533
33939
  {
33534
33940
  coId: page.coId,
@@ -33543,10 +33949,10 @@ function PageStack({
33543
33949
  }
33544
33950
 
33545
33951
  // src/inspector/viewer/use-page-path.ts
33546
- var import_react13 = __toESM(require_react(), 1);
33952
+ var import_react16 = __toESM(require_react(), 1);
33547
33953
  var STORAGE_KEY = "jazz-inspector-paths";
33548
33954
  function usePagePath(defaultPath) {
33549
- const [path, setPath] = (0, import_react13.useState)(() => {
33955
+ const [path, setPath] = (0, import_react16.useState)(() => {
33550
33956
  if (typeof window === "undefined") return [];
33551
33957
  const stored = localStorage.getItem(STORAGE_KEY);
33552
33958
  if (stored) {
@@ -33558,34 +33964,34 @@ function usePagePath(defaultPath) {
33558
33964
  }
33559
33965
  return defaultPath || [];
33560
33966
  });
33561
- const updatePath = (0, import_react13.useCallback)((newPath) => {
33967
+ const updatePath = (0, import_react16.useCallback)((newPath) => {
33562
33968
  setPath(newPath);
33563
33969
  localStorage.setItem(STORAGE_KEY, JSON.stringify(newPath));
33564
33970
  }, []);
33565
- (0, import_react13.useEffect)(() => {
33971
+ (0, import_react16.useEffect)(() => {
33566
33972
  if (defaultPath && JSON.stringify(path) !== JSON.stringify(defaultPath)) {
33567
33973
  updatePath(defaultPath);
33568
33974
  }
33569
33975
  }, [defaultPath, path, updatePath]);
33570
- const addPages = (0, import_react13.useCallback)(
33976
+ const addPages = (0, import_react16.useCallback)(
33571
33977
  (newPages) => {
33572
33978
  updatePath([...path, ...newPages]);
33573
33979
  },
33574
33980
  [path, updatePath]
33575
33981
  );
33576
- const goToIndex = (0, import_react13.useCallback)(
33982
+ const goToIndex = (0, import_react16.useCallback)(
33577
33983
  (index) => {
33578
33984
  updatePath(path.slice(0, index + 1));
33579
33985
  },
33580
33986
  [path, updatePath]
33581
33987
  );
33582
- const setPage = (0, import_react13.useCallback)(
33988
+ const setPage = (0, import_react16.useCallback)(
33583
33989
  (coId) => {
33584
33990
  updatePath([{ coId, name: "Root" }]);
33585
33991
  },
33586
33992
  [updatePath]
33587
33993
  );
33588
- const goBack = (0, import_react13.useCallback)(() => {
33994
+ const goBack = (0, import_react16.useCallback)(() => {
33589
33995
  if (path.length > 1) {
33590
33996
  updatePath(path.slice(0, path.length - 1));
33591
33997
  }
@@ -33600,8 +34006,8 @@ function usePagePath(defaultPath) {
33600
34006
  }
33601
34007
 
33602
34008
  // src/inspector/ui/global-styles.tsx
33603
- import { styled as styled16 } from "goober";
33604
- var GlobalStyles = styled16("div")`
34009
+ import { styled as styled18 } from "goober";
34010
+ var GlobalStyles = styled18("div")`
33605
34011
  /* Colors */
33606
34012
  --j-primary-color: #146AFF;
33607
34013
  --j-link-color: var(--j-primary-color);
@@ -33675,9 +34081,9 @@ var GlobalStyles = styled16("div")`
33675
34081
  `;
33676
34082
 
33677
34083
  // src/inspector/viewer/inspector-button.tsx
33678
- var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
33679
- import { styled as styled17 } from "goober";
33680
- var StyledInspectorButton = styled17("button")`
34084
+ var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
34085
+ import { styled as styled19 } from "goober";
34086
+ var StyledInspectorButton = styled19("button")`
33681
34087
  position: fixed;
33682
34088
  width: 2.5rem;
33683
34089
  height: 2.5rem;
@@ -33708,7 +34114,7 @@ var StyledInspectorButton = styled17("button")`
33708
34114
  }
33709
34115
  }}
33710
34116
  `;
33711
- var JazzIcon = styled17("svg")`
34117
+ var JazzIcon = styled19("svg")`
33712
34118
  width: 100%;
33713
34119
  height: auto;
33714
34120
  position: relative;
@@ -33719,8 +34125,8 @@ function InspectorButton({
33719
34125
  position = "right",
33720
34126
  ...buttonProps
33721
34127
  }) {
33722
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(StyledInspectorButton, { position, ...buttonProps, children: [
33723
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
34128
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(StyledInspectorButton, { position, ...buttonProps, children: [
34129
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
33724
34130
  JazzIcon,
33725
34131
  {
33726
34132
  xmlns: "http://www.w3.org/2000/svg",
@@ -33728,7 +34134,7 @@ function InspectorButton({
33728
34134
  height: "115",
33729
34135
  viewBox: "0 0 119 115",
33730
34136
  fill: "none",
33731
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
34137
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
33732
34138
  "path",
33733
34139
  {
33734
34140
  fillRule: "evenodd",
@@ -33739,7 +34145,7 @@ function InspectorButton({
33739
34145
  )
33740
34146
  }
33741
34147
  ),
33742
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
34148
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
33743
34149
  "span",
33744
34150
  {
33745
34151
  style: {
@@ -33760,148 +34166,30 @@ function InspectorButton({
33760
34166
  }
33761
34167
 
33762
34168
  // src/inspector/viewer/use-open-inspector.ts
33763
- var import_react14 = __toESM(require_react(), 1);
34169
+ var import_react17 = __toESM(require_react(), 1);
33764
34170
  var STORAGE_KEY2 = "jazz-inspector-open";
33765
34171
  function useOpenInspector() {
33766
- const [open, setOpen] = (0, import_react14.useState)(() => {
34172
+ const [open, setOpen] = (0, import_react17.useState)(() => {
33767
34173
  if (typeof window === "undefined") return false;
33768
34174
  const stored = localStorage.getItem(STORAGE_KEY2);
33769
34175
  return stored ? JSON.parse(stored) : false;
33770
34176
  });
33771
- (0, import_react14.useEffect)(() => {
34177
+ (0, import_react17.useEffect)(() => {
33772
34178
  localStorage.setItem(STORAGE_KEY2, JSON.stringify(open));
33773
34179
  }, [open]);
33774
34180
  return [open, setOpen];
33775
34181
  }
33776
34182
 
33777
- // src/inspector/ui/modal.tsx
33778
- var import_react15 = __toESM(require_react(), 1);
33779
- import { styled as styled18 } from "goober";
33780
- var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
33781
- var ModalContent = styled18("dialog")`
33782
- background-color: var(--j-background);
33783
- border-radius: var(--j-radius-lg);
33784
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
33785
- border: 1px solid var(--j-border-color);
33786
- max-width: 32rem;
33787
- margin-block: auto;
33788
- margin-inline: auto;
33789
- &::backdrop {
33790
- background-color: rgba(0, 0, 0, 0.7);
33791
- }
33792
-
33793
- `;
33794
- var ModalHeader = styled18("div")`
33795
- display: flex;
33796
- justify-content: space-between;
33797
- align-items: flex-start;
33798
- padding: 1.5rem 1.5rem 0 1.5rem;
33799
- gap: 1rem;
33800
- `;
33801
- var ModalBody = styled18("div")`
33802
- padding: 1rem 1.5rem;
33803
- flex: 1;
33804
- `;
33805
- var ModalFooter = styled18("div")`
33806
- display: flex;
33807
- justify-content: flex-end;
33808
- gap: 0.75rem;
33809
- padding: 0 1.5rem 1.5rem 1.5rem;
33810
- `;
33811
- var CloseButton = styled18("button")`
33812
- background: none;
33813
- border: none;
33814
- cursor: pointer;
33815
- padding: 0.25rem;
33816
- border-radius: var(--j-radius-sm);
33817
- color: var(--j-text-color);
33818
- font-size: 1.25rem;
33819
- line-height: 1;
33820
- display: flex;
33821
- align-items: center;
33822
- justify-content: center;
33823
- min-width: 2rem;
33824
- min-height: 2rem;
33825
-
33826
- &:hover {
33827
- background-color: var(--j-foreground);
33828
- }
33829
-
33830
- &:focus-visible {
33831
- outline: 2px solid var(--j-border-focus);
33832
- outline-offset: 2px;
33833
- }
33834
- `;
33835
- var Modal = (0, import_react15.forwardRef)(
33836
- ({
33837
- isOpen,
33838
- onClose,
33839
- heading,
33840
- text,
33841
- children,
33842
- confirmText = "Confirm",
33843
- cancelText = "Cancel",
33844
- onConfirm,
33845
- onCancel,
33846
- showButtons = true,
33847
- className
33848
- }, ref) => {
33849
- const modalRef = (0, import_react15.useRef)(null);
33850
- (0, import_react15.useEffect)(() => {
33851
- if (isOpen) {
33852
- modalRef.current?.showModal();
33853
- } else {
33854
- onClose();
33855
- modalRef.current?.close();
33856
- }
33857
- }, [isOpen, onClose]);
33858
- const handleConfirm = () => {
33859
- onConfirm?.();
33860
- onClose();
33861
- };
33862
- const handleCancel = () => {
33863
- onCancel?.();
33864
- onClose();
33865
- };
33866
- if (!isOpen) return null;
33867
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
33868
- ModalContent,
33869
- {
33870
- ref: ref || modalRef,
33871
- className,
33872
- role: "dialog",
33873
- "aria-labelledby": "modal-heading",
33874
- onClose,
33875
- children: [
33876
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(ModalHeader, { children: [
33877
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading, { id: "modal-heading", children: heading }),
33878
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CloseButton, { onClick: onClose, "aria-label": "Close modal", type: "button", children: "\xD7" })
33879
- ] }),
33880
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(ModalBody, { children: [
33881
- text && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { style: { margin: "0 0 1rem 0", color: "var(--j-text-color)" }, children: text }),
33882
- children
33883
- ] }),
33884
- showButtons && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(ModalFooter, { children: [
33885
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button, { variant: "secondary", onClick: handleCancel, children: cancelText }),
33886
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button, { variant: "primary", onClick: handleConfirm, children: confirmText })
33887
- ] })
33888
- ]
33889
- }
33890
- );
33891
- }
33892
- );
33893
- Modal.displayName = "Modal";
33894
-
33895
34183
  // src/inspector/viewer/delete-local-data.tsx
33896
- var import_react16 = __toESM(require_react(), 1);
33897
- var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
34184
+ var import_react18 = __toESM(require_react(), 1);
34185
+ var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
33898
34186
  var DELETE_LOCAL_DATA_STRING = "delete my local data";
33899
34187
  function DeleteLocalData() {
33900
- const [showDeleteModal, setShowDeleteModal] = (0, import_react16.useState)(false);
33901
- const [confirmDeleteString, setConfirmDeleteString] = (0, import_react16.useState)("");
33902
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
33903
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { variant: "destructive", onClick: () => setShowDeleteModal(true), children: "Delete my local data" }),
33904
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
34188
+ const [showDeleteModal, setShowDeleteModal] = (0, import_react18.useState)(false);
34189
+ const [confirmDeleteString, setConfirmDeleteString] = (0, import_react18.useState)("");
34190
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
34191
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { variant: "destructive", onClick: () => setShowDeleteModal(true), children: "Delete my local data" }),
34192
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
33905
34193
  Modal,
33906
34194
  {
33907
34195
  isOpen: showDeleteModal,
@@ -33909,7 +34197,7 @@ function DeleteLocalData() {
33909
34197
  heading: "Delete Local Data",
33910
34198
  showButtons: false,
33911
34199
  children: [
33912
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
34200
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
33913
34201
  "div",
33914
34202
  {
33915
34203
  style: {
@@ -33920,33 +34208,33 @@ function DeleteLocalData() {
33920
34208
  gap: "0.5rem"
33921
34209
  },
33922
34210
  children: [
33923
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("p", { children: [
34211
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("p", { children: [
33924
34212
  "This action ",
33925
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("strong", { children: "cannot" }),
34213
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("strong", { children: "cannot" }),
33926
34214
  " be undone."
33927
34215
  ] }),
33928
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("p", { children: [
34216
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("p", { children: [
33929
34217
  "Be aware that the following data will be",
33930
34218
  " ",
33931
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("strong", { children: "permanently" }),
34219
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("strong", { children: "permanently" }),
33932
34220
  " deleted:"
33933
34221
  ] }),
33934
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("ul", { style: { listStyleType: "disc", paddingLeft: "1rem" }, children: [
33935
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("li", { children: [
34222
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("ul", { style: { listStyleType: "disc", paddingLeft: "1rem" }, children: [
34223
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("li", { children: [
33936
34224
  "Unsynced data for ",
33937
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("strong", { children: "all apps" }),
34225
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("strong", { children: "all apps" }),
33938
34226
  " on",
33939
34227
  " ",
33940
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("code", { children: window.location.origin })
34228
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("code", { children: window.location.origin })
33941
34229
  ] }),
33942
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", { children: "Accounts" }),
33943
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", { children: "Logged in sessions" })
34230
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("li", { children: "Accounts" }),
34231
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("li", { children: "Logged in sessions" })
33944
34232
  ] }),
33945
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", {})
34233
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", {})
33946
34234
  ]
33947
34235
  }
33948
34236
  ),
33949
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
34237
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
33950
34238
  Input,
33951
34239
  {
33952
34240
  label: `Type "${DELETE_LOCAL_DATA_STRING}" to confirm`,
@@ -33957,7 +34245,7 @@ function DeleteLocalData() {
33957
34245
  }
33958
34246
  }
33959
34247
  ),
33960
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
34248
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
33961
34249
  "p",
33962
34250
  {
33963
34251
  style: {
@@ -33967,14 +34255,14 @@ function DeleteLocalData() {
33967
34255
  flexDirection: "column",
33968
34256
  gap: "0.5rem"
33969
34257
  },
33970
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("small", { children: [
34258
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("small", { children: [
33971
34259
  "Data synced to a sync server will ",
33972
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("strong", { children: "not" }),
34260
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("strong", { children: "not" }),
33973
34261
  " be deleted, and will be synced when you log in again."
33974
34262
  ] })
33975
34263
  }
33976
34264
  ),
33977
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
34265
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
33978
34266
  "div",
33979
34267
  {
33980
34268
  style: {
@@ -33984,8 +34272,8 @@ function DeleteLocalData() {
33984
34272
  gap: "0.5rem"
33985
34273
  },
33986
34274
  children: [
33987
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { variant: "secondary", onClick: () => setShowDeleteModal(false), children: "Cancel" }),
33988
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
34275
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { variant: "secondary", onClick: () => setShowDeleteModal(false), children: "Cancel" }),
34276
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
33989
34277
  Button,
33990
34278
  {
33991
34279
  variant: "destructive",
@@ -34012,8 +34300,8 @@ function DeleteLocalData() {
34012
34300
  }
34013
34301
 
34014
34302
  // src/inspector/viewer/new-app.tsx
34015
- var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
34016
- var InspectorContainer = styled19("div")`
34303
+ var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
34304
+ var InspectorContainer = styled20("div")`
34017
34305
  position: fixed;
34018
34306
  height: 50vh;
34019
34307
  max-height: 800px;
@@ -34030,17 +34318,17 @@ var InspectorContainer = styled19("div")`
34030
34318
  background-color: var(--j-background);
34031
34319
  }
34032
34320
  `;
34033
- var HeaderContainer2 = styled19("div")`
34321
+ var HeaderContainer2 = styled20("div")`
34034
34322
  display: flex;
34035
34323
  align-items: center;
34036
34324
  gap: 1rem;
34037
34325
  padding: 0 0.75rem;
34038
34326
  margin: 0.75rem 0;
34039
34327
  `;
34040
- var Form = styled19("form")`
34328
+ var Form = styled20("form")`
34041
34329
  width: 24rem;
34042
34330
  `;
34043
- var InitialForm = styled19("form")`
34331
+ var InitialForm = styled20("form")`
34044
34332
  display: flex;
34045
34333
  flex-direction: column;
34046
34334
  position: relative;
@@ -34052,7 +34340,7 @@ var InitialForm = styled19("form")`
34052
34340
  max-width: 24rem;
34053
34341
  margin: 0 auto;
34054
34342
  `;
34055
- var OrText = styled19("p")`
34343
+ var OrText = styled20("p")`
34056
34344
  text-align: center;
34057
34345
  `;
34058
34346
  function JazzInspectorInternal({
@@ -34061,7 +34349,7 @@ function JazzInspectorInternal({
34061
34349
  accountId
34062
34350
  }) {
34063
34351
  const [open, setOpen] = useOpenInspector();
34064
- const [coValueId, setCoValueId] = (0, import_react17.useState)("");
34352
+ const [coValueId, setCoValueId] = (0, import_react19.useState)("");
34065
34353
  const { path, addPages, goToIndex, goBack, setPage } = usePagePath();
34066
34354
  const handleCoValueIdSubmit = (e) => {
34067
34355
  e.preventDefault();
@@ -34071,12 +34359,12 @@ function JazzInspectorInternal({
34071
34359
  setCoValueId("");
34072
34360
  };
34073
34361
  if (!open) {
34074
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InspectorButton, { position, onClick: () => setOpen(true) });
34362
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(InspectorButton, { position, onClick: () => setOpen(true) });
34075
34363
  }
34076
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(InspectorContainer, { as: GlobalStyles, style: { zIndex: 999 }, children: [
34077
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(HeaderContainer2, { children: [
34078
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Breadcrumbs, { path, onBreadcrumbClick: goToIndex }),
34079
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Form, { onSubmit: handleCoValueIdSubmit, children: path.length !== 0 && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
34364
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(InspectorContainer, { as: GlobalStyles, style: { zIndex: 999 }, children: [
34365
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(HeaderContainer2, { children: [
34366
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Breadcrumbs, { path, onBreadcrumbClick: goToIndex }),
34367
+ path.length !== 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Form, { onSubmit: handleCoValueIdSubmit, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
34080
34368
  Input,
34081
34369
  {
34082
34370
  label: "CoValue ID",
@@ -34087,24 +34375,24 @@ function JazzInspectorInternal({
34087
34375
  onChange: (e) => setCoValueId(e.target.value)
34088
34376
  }
34089
34377
  ) }),
34090
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DeleteLocalData, {}),
34091
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { variant: "plain", type: "button", onClick: () => setOpen(false), children: "Close" })
34378
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DeleteLocalData, {}),
34379
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { variant: "plain", type: "button", onClick: () => setOpen(false), children: "Close" })
34092
34380
  ] }),
34093
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
34381
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
34094
34382
  PageStack,
34095
34383
  {
34096
34384
  path,
34097
34385
  node: localNode,
34098
34386
  goBack,
34099
34387
  addPages,
34100
- children: path.length <= 0 && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
34388
+ children: path.length <= 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
34101
34389
  InitialForm,
34102
34390
  {
34103
34391
  onSubmit: handleCoValueIdSubmit,
34104
34392
  "aria-hidden": path.length !== 0,
34105
34393
  children: [
34106
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Heading, { children: "Jazz CoValue Inspector" }),
34107
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
34394
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Heading, { children: "Jazz CoValue Inspector" }),
34395
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
34108
34396
  Input,
34109
34397
  {
34110
34398
  label: "CoValue ID",
@@ -34115,10 +34403,10 @@ function JazzInspectorInternal({
34115
34403
  onChange: (e) => setCoValueId(e.target.value)
34116
34404
  }
34117
34405
  ),
34118
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { type: "submit", variant: "primary", children: "Inspect CoValue" }),
34119
- accountId && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
34120
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(OrText, { children: "or" }),
34121
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
34406
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { type: "submit", variant: "primary", children: "Inspect CoValue" }),
34407
+ accountId && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
34408
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(OrText, { children: "or" }),
34409
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
34122
34410
  Button,
34123
34411
  {
34124
34412
  variant: "secondary",
@@ -34139,7 +34427,8 @@ function JazzInspectorInternal({
34139
34427
  }
34140
34428
 
34141
34429
  // src/inspector/custom-element.tsx
34142
- var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
34430
+ var import_jsx_runtime32 = __toESM(require_jsx_runtime(), 1);
34431
+ setup(import_react20.default.createElement);
34143
34432
  var JazzInspectorElement = class extends HTMLElement {
34144
34433
  constructor() {
34145
34434
  super(...arguments);
@@ -34181,7 +34470,7 @@ var JazzInspectorElement = class extends HTMLElement {
34181
34470
  return;
34182
34471
  }
34183
34472
  this.root?.render(
34184
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
34473
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
34185
34474
  JazzInspectorInternal,
34186
34475
  {
34187
34476
  localNode: this.account.$jazz.localNode,
@@ -34197,10 +34486,10 @@ export {
34197
34486
  };
34198
34487
  /*! Bundled license information:
34199
34488
 
34200
- scheduler/cjs/scheduler.production.js:
34489
+ react/cjs/react.production.js:
34201
34490
  (**
34202
34491
  * @license React
34203
- * scheduler.production.js
34492
+ * react.production.js
34204
34493
  *
34205
34494
  * Copyright (c) Meta Platforms, Inc. and affiliates.
34206
34495
  *
@@ -34208,10 +34497,10 @@ scheduler/cjs/scheduler.production.js:
34208
34497
  * LICENSE file in the root directory of this source tree.
34209
34498
  *)
34210
34499
 
34211
- scheduler/cjs/scheduler.development.js:
34500
+ react/cjs/react.development.js:
34212
34501
  (**
34213
34502
  * @license React
34214
- * scheduler.development.js
34503
+ * react.development.js
34215
34504
  *
34216
34505
  * Copyright (c) Meta Platforms, Inc. and affiliates.
34217
34506
  *
@@ -34219,10 +34508,10 @@ scheduler/cjs/scheduler.development.js:
34219
34508
  * LICENSE file in the root directory of this source tree.
34220
34509
  *)
34221
34510
 
34222
- react/cjs/react.production.js:
34511
+ scheduler/cjs/scheduler.production.js:
34223
34512
  (**
34224
34513
  * @license React
34225
- * react.production.js
34514
+ * scheduler.production.js
34226
34515
  *
34227
34516
  * Copyright (c) Meta Platforms, Inc. and affiliates.
34228
34517
  *
@@ -34230,10 +34519,10 @@ react/cjs/react.production.js:
34230
34519
  * LICENSE file in the root directory of this source tree.
34231
34520
  *)
34232
34521
 
34233
- react/cjs/react.development.js:
34522
+ scheduler/cjs/scheduler.development.js:
34234
34523
  (**
34235
34524
  * @license React
34236
- * react.development.js
34525
+ * scheduler.development.js
34237
34526
  *
34238
34527
  * Copyright (c) Meta Platforms, Inc. and affiliates.
34239
34528
  *
@@ -34307,4 +34596,4 @@ react/cjs/react-jsx-runtime.development.js:
34307
34596
  * LICENSE file in the root directory of this source tree.
34308
34597
  *)
34309
34598
  */
34310
- //# sourceMappingURL=custom-element-A7UAELEG.js.map
34599
+ //# sourceMappingURL=custom-element-RQTLPAPJ.js.map