@wix/editor-react-components 1.2384.0 → 1.2386.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,543 +23,508 @@ function require_overArg() {
23
23
  _overArg = overArg;
24
24
  return _overArg;
25
25
  }
26
- function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
27
- return function handleEvent(event) {
28
- originalEventHandler == null ? void 0 : originalEventHandler(event);
29
- if (checkForDefaultPrevented === false || !event.defaultPrevented) {
30
- return ourEventHandler == null ? void 0 : ourEventHandler(event);
26
+ var _baseTimes;
27
+ var hasRequired_baseTimes;
28
+ function require_baseTimes() {
29
+ if (hasRequired_baseTimes) return _baseTimes;
30
+ hasRequired_baseTimes = 1;
31
+ function baseTimes(n, iteratee) {
32
+ var index = -1, result = Array(n);
33
+ while (++index < n) {
34
+ result[index] = iteratee(index);
31
35
  }
32
- };
36
+ return result;
37
+ }
38
+ _baseTimes = baseTimes;
39
+ return _baseTimes;
33
40
  }
34
- function setRef(ref, value) {
35
- if (typeof ref === "function") {
36
- return ref(value);
37
- } else if (ref !== null && ref !== void 0) {
38
- ref.current = value;
41
+ var _listCacheClear;
42
+ var hasRequired_listCacheClear;
43
+ function require_listCacheClear() {
44
+ if (hasRequired_listCacheClear) return _listCacheClear;
45
+ hasRequired_listCacheClear = 1;
46
+ function listCacheClear() {
47
+ this.__data__ = [];
48
+ this.size = 0;
39
49
  }
50
+ _listCacheClear = listCacheClear;
51
+ return _listCacheClear;
40
52
  }
41
- function composeRefs(...refs) {
42
- return (node) => {
43
- let hasCleanup = false;
44
- const cleanups = refs.map((ref) => {
45
- const cleanup = setRef(ref, node);
46
- if (!hasCleanup && typeof cleanup == "function") {
47
- hasCleanup = true;
53
+ var _assocIndexOf;
54
+ var hasRequired_assocIndexOf;
55
+ function require_assocIndexOf() {
56
+ if (hasRequired_assocIndexOf) return _assocIndexOf;
57
+ hasRequired_assocIndexOf = 1;
58
+ var eq = requireEq();
59
+ function assocIndexOf(array, key) {
60
+ var length = array.length;
61
+ while (length--) {
62
+ if (eq(array[length][0], key)) {
63
+ return length;
48
64
  }
49
- return cleanup;
50
- });
51
- if (hasCleanup) {
52
- return () => {
53
- for (let i = 0; i < cleanups.length; i++) {
54
- const cleanup = cleanups[i];
55
- if (typeof cleanup == "function") {
56
- cleanup();
57
- } else {
58
- setRef(refs[i], null);
59
- }
60
- }
61
- };
62
65
  }
63
- };
64
- }
65
- function useComposedRefs(...refs) {
66
- return React.useCallback(composeRefs(...refs), refs);
66
+ return -1;
67
+ }
68
+ _assocIndexOf = assocIndexOf;
69
+ return _assocIndexOf;
67
70
  }
68
- function createContextScope(scopeName, createContextScopeDeps = []) {
69
- let defaultContexts = [];
70
- function createContext3(rootComponentName, defaultContext) {
71
- const BaseContext = React.createContext(defaultContext);
72
- const index = defaultContexts.length;
73
- defaultContexts = [...defaultContexts, defaultContext];
74
- const Provider = (props) => {
75
- var _a;
76
- const { scope, children, ...context } = props;
77
- const Context = ((_a = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a[index]) || BaseContext;
78
- const value = React.useMemo(() => context, Object.values(context));
79
- return /* @__PURE__ */ jsx(Context.Provider, { value, children });
80
- };
81
- Provider.displayName = rootComponentName + "Provider";
82
- function useContext2(consumerName, scope) {
83
- var _a;
84
- const Context = ((_a = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a[index]) || BaseContext;
85
- const context = React.useContext(Context);
86
- if (context) return context;
87
- if (defaultContext !== void 0) return defaultContext;
88
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
71
+ var _listCacheDelete;
72
+ var hasRequired_listCacheDelete;
73
+ function require_listCacheDelete() {
74
+ if (hasRequired_listCacheDelete) return _listCacheDelete;
75
+ hasRequired_listCacheDelete = 1;
76
+ var assocIndexOf = require_assocIndexOf();
77
+ var arrayProto = Array.prototype;
78
+ var splice = arrayProto.splice;
79
+ function listCacheDelete(key) {
80
+ var data = this.__data__, index = assocIndexOf(data, key);
81
+ if (index < 0) {
82
+ return false;
89
83
  }
90
- return [Provider, useContext2];
84
+ var lastIndex = data.length - 1;
85
+ if (index == lastIndex) {
86
+ data.pop();
87
+ } else {
88
+ splice.call(data, index, 1);
89
+ }
90
+ --this.size;
91
+ return true;
91
92
  }
92
- const createScope = () => {
93
- const scopeContexts = defaultContexts.map((defaultContext) => {
94
- return React.createContext(defaultContext);
95
- });
96
- return function useScope(scope) {
97
- const contexts = (scope == null ? void 0 : scope[scopeName]) || scopeContexts;
98
- return React.useMemo(
99
- () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
100
- [scope, contexts]
101
- );
102
- };
103
- };
104
- createScope.scopeName = scopeName;
105
- return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
106
- }
107
- function composeContextScopes(...scopes) {
108
- const baseScope = scopes[0];
109
- if (scopes.length === 1) return baseScope;
110
- const createScope = () => {
111
- const scopeHooks = scopes.map((createScope2) => ({
112
- useScope: createScope2(),
113
- scopeName: createScope2.scopeName
114
- }));
115
- return function useComposedScopes(overrideScopes) {
116
- const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
117
- const scopeProps = useScope(overrideScopes);
118
- const currentScope = scopeProps[`__scope${scopeName}`];
119
- return { ...nextScopes2, ...currentScope };
120
- }, {});
121
- return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
122
- };
123
- };
124
- createScope.scopeName = baseScope.scopeName;
125
- return createScope;
93
+ _listCacheDelete = listCacheDelete;
94
+ return _listCacheDelete;
126
95
  }
127
- var useLayoutEffect2 = (globalThis == null ? void 0 : globalThis.document) ? React.useLayoutEffect : () => {
128
- };
129
- var useReactId = React[" useId ".trim().toString()] || (() => void 0);
130
- var count = 0;
131
- function useId(deterministicId) {
132
- const [id, setId] = React.useState(useReactId());
133
- useLayoutEffect2(() => {
134
- setId((reactId) => reactId ?? String(count++));
135
- }, [deterministicId]);
136
- return id ? `radix-${id}` : "";
96
+ var _listCacheGet;
97
+ var hasRequired_listCacheGet;
98
+ function require_listCacheGet() {
99
+ if (hasRequired_listCacheGet) return _listCacheGet;
100
+ hasRequired_listCacheGet = 1;
101
+ var assocIndexOf = require_assocIndexOf();
102
+ function listCacheGet(key) {
103
+ var data = this.__data__, index = assocIndexOf(data, key);
104
+ return index < 0 ? void 0 : data[index][1];
105
+ }
106
+ _listCacheGet = listCacheGet;
107
+ return _listCacheGet;
137
108
  }
138
- var useInsertionEffect = React[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
139
- function useControllableState({
140
- prop,
141
- defaultProp,
142
- onChange = () => {
143
- },
144
- caller
145
- }) {
146
- const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
147
- defaultProp,
148
- onChange
149
- });
150
- const isControlled = prop !== void 0;
151
- const value = isControlled ? prop : uncontrolledProp;
152
- {
153
- const isControlledRef = React.useRef(prop !== void 0);
154
- React.useEffect(() => {
155
- const wasControlled = isControlledRef.current;
156
- if (wasControlled !== isControlled) {
157
- const from = wasControlled ? "controlled" : "uncontrolled";
158
- const to = isControlled ? "controlled" : "uncontrolled";
159
- console.warn(
160
- `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
161
- );
162
- }
163
- isControlledRef.current = isControlled;
164
- }, [isControlled, caller]);
109
+ var _listCacheHas;
110
+ var hasRequired_listCacheHas;
111
+ function require_listCacheHas() {
112
+ if (hasRequired_listCacheHas) return _listCacheHas;
113
+ hasRequired_listCacheHas = 1;
114
+ var assocIndexOf = require_assocIndexOf();
115
+ function listCacheHas(key) {
116
+ return assocIndexOf(this.__data__, key) > -1;
165
117
  }
166
- const setValue = React.useCallback(
167
- (nextValue) => {
168
- var _a;
169
- if (isControlled) {
170
- const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
171
- if (value2 !== prop) {
172
- (_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value2);
173
- }
174
- } else {
175
- setUncontrolledProp(nextValue);
176
- }
177
- },
178
- [isControlled, prop, setUncontrolledProp, onChangeRef]
179
- );
180
- return [value, setValue];
118
+ _listCacheHas = listCacheHas;
119
+ return _listCacheHas;
181
120
  }
182
- function useUncontrolledState({
183
- defaultProp,
184
- onChange
185
- }) {
186
- const [value, setValue] = React.useState(defaultProp);
187
- const prevValueRef = React.useRef(value);
188
- const onChangeRef = React.useRef(onChange);
189
- useInsertionEffect(() => {
190
- onChangeRef.current = onChange;
191
- }, [onChange]);
192
- React.useEffect(() => {
193
- var _a;
194
- if (prevValueRef.current !== value) {
195
- (_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value);
196
- prevValueRef.current = value;
121
+ var _listCacheSet;
122
+ var hasRequired_listCacheSet;
123
+ function require_listCacheSet() {
124
+ if (hasRequired_listCacheSet) return _listCacheSet;
125
+ hasRequired_listCacheSet = 1;
126
+ var assocIndexOf = require_assocIndexOf();
127
+ function listCacheSet(key, value) {
128
+ var data = this.__data__, index = assocIndexOf(data, key);
129
+ if (index < 0) {
130
+ ++this.size;
131
+ data.push([key, value]);
132
+ } else {
133
+ data[index][1] = value;
197
134
  }
198
- }, [value, prevValueRef]);
199
- return [value, setValue, onChangeRef];
200
- }
201
- function isFunction(value) {
202
- return typeof value === "function";
203
- }
204
- // @__NO_SIDE_EFFECTS__
205
- function createSlot(ownerName) {
206
- const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
207
- const Slot2 = React.forwardRef((props, forwardedRef) => {
208
- const { children, ...slotProps } = props;
209
- const childrenArray = React.Children.toArray(children);
210
- const slottable = childrenArray.find(isSlottable);
211
- if (slottable) {
212
- const newElement = slottable.props.children;
213
- const newChildren = childrenArray.map((child) => {
214
- if (child === slottable) {
215
- if (React.Children.count(newElement) > 1) return React.Children.only(null);
216
- return React.isValidElement(newElement) ? newElement.props.children : null;
217
- } else {
218
- return child;
219
- }
220
- });
221
- return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
222
- }
223
- return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
224
- });
225
- Slot2.displayName = `${ownerName}.Slot`;
226
- return Slot2;
135
+ return this;
136
+ }
137
+ _listCacheSet = listCacheSet;
138
+ return _listCacheSet;
227
139
  }
228
- // @__NO_SIDE_EFFECTS__
229
- function createSlotClone(ownerName) {
230
- const SlotClone = React.forwardRef((props, forwardedRef) => {
231
- const { children, ...slotProps } = props;
232
- if (React.isValidElement(children)) {
233
- const childrenRef = getElementRef$1(children);
234
- const props2 = mergeProps(slotProps, children.props);
235
- if (children.type !== React.Fragment) {
236
- props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
237
- }
238
- return React.cloneElement(children, props2);
140
+ var _ListCache;
141
+ var hasRequired_ListCache;
142
+ function require_ListCache() {
143
+ if (hasRequired_ListCache) return _ListCache;
144
+ hasRequired_ListCache = 1;
145
+ var listCacheClear = require_listCacheClear(), listCacheDelete = require_listCacheDelete(), listCacheGet = require_listCacheGet(), listCacheHas = require_listCacheHas(), listCacheSet = require_listCacheSet();
146
+ function ListCache(entries) {
147
+ var index = -1, length = entries == null ? 0 : entries.length;
148
+ this.clear();
149
+ while (++index < length) {
150
+ var entry = entries[index];
151
+ this.set(entry[0], entry[1]);
239
152
  }
240
- return React.Children.count(children) > 1 ? React.Children.only(null) : null;
241
- });
242
- SlotClone.displayName = `${ownerName}.SlotClone`;
243
- return SlotClone;
153
+ }
154
+ ListCache.prototype.clear = listCacheClear;
155
+ ListCache.prototype["delete"] = listCacheDelete;
156
+ ListCache.prototype.get = listCacheGet;
157
+ ListCache.prototype.has = listCacheHas;
158
+ ListCache.prototype.set = listCacheSet;
159
+ _ListCache = ListCache;
160
+ return _ListCache;
244
161
  }
245
- var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
246
- function isSlottable(child) {
247
- return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
162
+ var _stackClear;
163
+ var hasRequired_stackClear;
164
+ function require_stackClear() {
165
+ if (hasRequired_stackClear) return _stackClear;
166
+ hasRequired_stackClear = 1;
167
+ var ListCache = require_ListCache();
168
+ function stackClear() {
169
+ this.__data__ = new ListCache();
170
+ this.size = 0;
171
+ }
172
+ _stackClear = stackClear;
173
+ return _stackClear;
248
174
  }
249
- function mergeProps(slotProps, childProps) {
250
- const overrideProps = { ...childProps };
251
- for (const propName in childProps) {
252
- const slotPropValue = slotProps[propName];
253
- const childPropValue = childProps[propName];
254
- const isHandler = /^on[A-Z]/.test(propName);
255
- if (isHandler) {
256
- if (slotPropValue && childPropValue) {
257
- overrideProps[propName] = (...args) => {
258
- const result = childPropValue(...args);
259
- slotPropValue(...args);
260
- return result;
261
- };
262
- } else if (slotPropValue) {
263
- overrideProps[propName] = slotPropValue;
264
- }
265
- } else if (propName === "style") {
266
- overrideProps[propName] = { ...slotPropValue, ...childPropValue };
267
- } else if (propName === "className") {
268
- overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
269
- }
175
+ var _stackDelete;
176
+ var hasRequired_stackDelete;
177
+ function require_stackDelete() {
178
+ if (hasRequired_stackDelete) return _stackDelete;
179
+ hasRequired_stackDelete = 1;
180
+ function stackDelete(key) {
181
+ var data = this.__data__, result = data["delete"](key);
182
+ this.size = data.size;
183
+ return result;
270
184
  }
271
- return { ...slotProps, ...overrideProps };
185
+ _stackDelete = stackDelete;
186
+ return _stackDelete;
272
187
  }
273
- function getElementRef$1(element) {
274
- var _a, _b;
275
- let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
276
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
277
- if (mayWarn) {
278
- return element.ref;
188
+ var _stackGet;
189
+ var hasRequired_stackGet;
190
+ function require_stackGet() {
191
+ if (hasRequired_stackGet) return _stackGet;
192
+ hasRequired_stackGet = 1;
193
+ function stackGet(key) {
194
+ return this.__data__.get(key);
279
195
  }
280
- getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
281
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
282
- if (mayWarn) {
283
- return element.props.ref;
196
+ _stackGet = stackGet;
197
+ return _stackGet;
198
+ }
199
+ var _stackHas;
200
+ var hasRequired_stackHas;
201
+ function require_stackHas() {
202
+ if (hasRequired_stackHas) return _stackHas;
203
+ hasRequired_stackHas = 1;
204
+ function stackHas(key) {
205
+ return this.__data__.has(key);
284
206
  }
285
- return element.props.ref || element.ref;
207
+ _stackHas = stackHas;
208
+ return _stackHas;
286
209
  }
287
- var NODES = [
288
- "a",
289
- "button",
290
- "div",
291
- "form",
292
- "h2",
293
- "h3",
294
- "img",
295
- "input",
296
- "label",
297
- "li",
298
- "nav",
299
- "ol",
300
- "p",
301
- "select",
302
- "span",
303
- "svg",
304
- "ul"
305
- ];
306
- var Primitive = NODES.reduce((primitive, node) => {
307
- const Slot = /* @__PURE__ */ createSlot(`Primitive.${node}`);
308
- const Node = React.forwardRef((props, forwardedRef) => {
309
- const { asChild, ...primitiveProps } = props;
310
- const Comp = asChild ? Slot : node;
311
- if (typeof window !== "undefined") {
312
- window[Symbol.for("radix-ui")] = true;
313
- }
314
- return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
315
- });
316
- Node.displayName = `Primitive.${node}`;
317
- return { ...primitive, [node]: Node };
318
- }, {});
319
- function useStateMachine(initialState, machine) {
320
- return React.useReducer((state, event) => {
321
- const nextState = machine[state][event];
322
- return nextState ?? state;
323
- }, initialState);
210
+ var _coreJsData;
211
+ var hasRequired_coreJsData;
212
+ function require_coreJsData() {
213
+ if (hasRequired_coreJsData) return _coreJsData;
214
+ hasRequired_coreJsData = 1;
215
+ var root = require_root();
216
+ var coreJsData = root["__core-js_shared__"];
217
+ _coreJsData = coreJsData;
218
+ return _coreJsData;
324
219
  }
325
- var Presence = (props) => {
326
- const { present, children } = props;
327
- const presence = usePresence(present);
328
- const child = typeof children === "function" ? children({ present: presence.isPresent }) : React.Children.only(children);
329
- const ref = useComposedRefs(presence.ref, getElementRef(child));
330
- const forceMount = typeof children === "function";
331
- return forceMount || presence.isPresent ? React.cloneElement(child, { ref }) : null;
332
- };
333
- Presence.displayName = "Presence";
334
- function usePresence(present) {
335
- const [node, setNode] = React.useState();
336
- const stylesRef = React.useRef(null);
337
- const prevPresentRef = React.useRef(present);
338
- const prevAnimationNameRef = React.useRef("none");
339
- const initialState = present ? "mounted" : "unmounted";
340
- const [state, send] = useStateMachine(initialState, {
341
- mounted: {
342
- UNMOUNT: "unmounted",
343
- ANIMATION_OUT: "unmountSuspended"
344
- },
345
- unmountSuspended: {
346
- MOUNT: "mounted",
347
- ANIMATION_END: "unmounted"
348
- },
349
- unmounted: {
350
- MOUNT: "mounted"
351
- }
352
- });
353
- React.useEffect(() => {
354
- const currentAnimationName = getAnimationName(stylesRef.current);
355
- prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
356
- }, [state]);
357
- useLayoutEffect2(() => {
358
- const styles2 = stylesRef.current;
359
- const wasPresent = prevPresentRef.current;
360
- const hasPresentChanged = wasPresent !== present;
361
- if (hasPresentChanged) {
362
- const prevAnimationName = prevAnimationNameRef.current;
363
- const currentAnimationName = getAnimationName(styles2);
364
- if (present) {
365
- send("MOUNT");
366
- } else if (currentAnimationName === "none" || (styles2 == null ? void 0 : styles2.display) === "none") {
367
- send("UNMOUNT");
368
- } else {
369
- const isAnimating = prevAnimationName !== currentAnimationName;
370
- if (wasPresent && isAnimating) {
371
- send("ANIMATION_OUT");
372
- } else {
373
- send("UNMOUNT");
374
- }
375
- }
376
- prevPresentRef.current = present;
377
- }
378
- }, [present, send]);
379
- useLayoutEffect2(() => {
380
- if (node) {
381
- let timeoutId;
382
- const ownerWindow = node.ownerDocument.defaultView ?? window;
383
- const handleAnimationEnd = (event) => {
384
- const currentAnimationName = getAnimationName(stylesRef.current);
385
- const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));
386
- if (event.target === node && isCurrentAnimation) {
387
- send("ANIMATION_END");
388
- if (!prevPresentRef.current) {
389
- const currentFillMode = node.style.animationFillMode;
390
- node.style.animationFillMode = "forwards";
391
- timeoutId = ownerWindow.setTimeout(() => {
392
- if (node.style.animationFillMode === "forwards") {
393
- node.style.animationFillMode = currentFillMode;
394
- }
395
- });
396
- }
397
- }
398
- };
399
- const handleAnimationStart = (event) => {
400
- if (event.target === node) {
401
- prevAnimationNameRef.current = getAnimationName(stylesRef.current);
402
- }
403
- };
404
- node.addEventListener("animationstart", handleAnimationStart);
405
- node.addEventListener("animationcancel", handleAnimationEnd);
406
- node.addEventListener("animationend", handleAnimationEnd);
407
- return () => {
408
- ownerWindow.clearTimeout(timeoutId);
409
- node.removeEventListener("animationstart", handleAnimationStart);
410
- node.removeEventListener("animationcancel", handleAnimationEnd);
411
- node.removeEventListener("animationend", handleAnimationEnd);
412
- };
413
- } else {
414
- send("ANIMATION_END");
220
+ var _isMasked;
221
+ var hasRequired_isMasked;
222
+ function require_isMasked() {
223
+ if (hasRequired_isMasked) return _isMasked;
224
+ hasRequired_isMasked = 1;
225
+ var coreJsData = require_coreJsData();
226
+ var maskSrcKey = (function() {
227
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
228
+ return uid ? "Symbol(src)_1." + uid : "";
229
+ })();
230
+ function isMasked(func) {
231
+ return !!maskSrcKey && maskSrcKey in func;
232
+ }
233
+ _isMasked = isMasked;
234
+ return _isMasked;
235
+ }
236
+ var _toSource;
237
+ var hasRequired_toSource;
238
+ function require_toSource() {
239
+ if (hasRequired_toSource) return _toSource;
240
+ hasRequired_toSource = 1;
241
+ var funcProto = Function.prototype;
242
+ var funcToString = funcProto.toString;
243
+ function toSource(func) {
244
+ if (func != null) {
245
+ try {
246
+ return funcToString.call(func);
247
+ } catch (e) {
248
+ }
249
+ try {
250
+ return func + "";
251
+ } catch (e) {
252
+ }
415
253
  }
416
- }, [node, send]);
417
- return {
418
- isPresent: ["mounted", "unmountSuspended"].includes(state),
419
- ref: React.useCallback((node2) => {
420
- stylesRef.current = node2 ? getComputedStyle(node2) : null;
421
- setNode(node2);
422
- }, [])
423
- };
254
+ return "";
255
+ }
256
+ _toSource = toSource;
257
+ return _toSource;
424
258
  }
425
- function getAnimationName(styles2) {
426
- return (styles2 == null ? void 0 : styles2.animationName) || "none";
259
+ var _baseIsNative;
260
+ var hasRequired_baseIsNative;
261
+ function require_baseIsNative() {
262
+ if (hasRequired_baseIsNative) return _baseIsNative;
263
+ hasRequired_baseIsNative = 1;
264
+ var isFunction2 = requireIsFunction(), isMasked = require_isMasked(), isObject = requireIsObject(), toSource = require_toSource();
265
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
266
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
267
+ var funcProto = Function.prototype, objectProto = Object.prototype;
268
+ var funcToString = funcProto.toString;
269
+ var hasOwnProperty = objectProto.hasOwnProperty;
270
+ var reIsNative = RegExp(
271
+ "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
272
+ );
273
+ function baseIsNative(value) {
274
+ if (!isObject(value) || isMasked(value)) {
275
+ return false;
276
+ }
277
+ var pattern = isFunction2(value) ? reIsNative : reIsHostCtor;
278
+ return pattern.test(toSource(value));
279
+ }
280
+ _baseIsNative = baseIsNative;
281
+ return _baseIsNative;
427
282
  }
428
- function getElementRef(element) {
429
- var _a, _b;
430
- let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
431
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
432
- if (mayWarn) {
433
- return element.ref;
283
+ var _getValue;
284
+ var hasRequired_getValue;
285
+ function require_getValue() {
286
+ if (hasRequired_getValue) return _getValue;
287
+ hasRequired_getValue = 1;
288
+ function getValue(object, key) {
289
+ return object == null ? void 0 : object[key];
434
290
  }
435
- getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
436
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
437
- if (mayWarn) {
438
- return element.props.ref;
291
+ _getValue = getValue;
292
+ return _getValue;
293
+ }
294
+ var _getNative;
295
+ var hasRequired_getNative;
296
+ function require_getNative() {
297
+ if (hasRequired_getNative) return _getNative;
298
+ hasRequired_getNative = 1;
299
+ var baseIsNative = require_baseIsNative(), getValue = require_getValue();
300
+ function getNative(object, key) {
301
+ var value = getValue(object, key);
302
+ return baseIsNative(value) ? value : void 0;
439
303
  }
440
- return element.props.ref || element.ref;
304
+ _getNative = getNative;
305
+ return _getNative;
441
306
  }
442
- var _baseTimes;
443
- var hasRequired_baseTimes;
444
- function require_baseTimes() {
445
- if (hasRequired_baseTimes) return _baseTimes;
446
- hasRequired_baseTimes = 1;
447
- function baseTimes(n, iteratee) {
448
- var index = -1, result = Array(n);
449
- while (++index < n) {
450
- result[index] = iteratee(index);
451
- }
307
+ var _Map;
308
+ var hasRequired_Map;
309
+ function require_Map() {
310
+ if (hasRequired_Map) return _Map;
311
+ hasRequired_Map = 1;
312
+ var getNative = require_getNative(), root = require_root();
313
+ var Map2 = getNative(root, "Map");
314
+ _Map = Map2;
315
+ return _Map;
316
+ }
317
+ var _nativeCreate;
318
+ var hasRequired_nativeCreate;
319
+ function require_nativeCreate() {
320
+ if (hasRequired_nativeCreate) return _nativeCreate;
321
+ hasRequired_nativeCreate = 1;
322
+ var getNative = require_getNative();
323
+ var nativeCreate = getNative(Object, "create");
324
+ _nativeCreate = nativeCreate;
325
+ return _nativeCreate;
326
+ }
327
+ var _hashClear;
328
+ var hasRequired_hashClear;
329
+ function require_hashClear() {
330
+ if (hasRequired_hashClear) return _hashClear;
331
+ hasRequired_hashClear = 1;
332
+ var nativeCreate = require_nativeCreate();
333
+ function hashClear() {
334
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
335
+ this.size = 0;
336
+ }
337
+ _hashClear = hashClear;
338
+ return _hashClear;
339
+ }
340
+ var _hashDelete;
341
+ var hasRequired_hashDelete;
342
+ function require_hashDelete() {
343
+ if (hasRequired_hashDelete) return _hashDelete;
344
+ hasRequired_hashDelete = 1;
345
+ function hashDelete(key) {
346
+ var result = this.has(key) && delete this.__data__[key];
347
+ this.size -= result ? 1 : 0;
452
348
  return result;
453
349
  }
454
- _baseTimes = baseTimes;
455
- return _baseTimes;
350
+ _hashDelete = hashDelete;
351
+ return _hashDelete;
456
352
  }
457
- var _listCacheClear;
458
- var hasRequired_listCacheClear;
459
- function require_listCacheClear() {
460
- if (hasRequired_listCacheClear) return _listCacheClear;
461
- hasRequired_listCacheClear = 1;
462
- function listCacheClear() {
463
- this.__data__ = [];
464
- this.size = 0;
353
+ var _hashGet;
354
+ var hasRequired_hashGet;
355
+ function require_hashGet() {
356
+ if (hasRequired_hashGet) return _hashGet;
357
+ hasRequired_hashGet = 1;
358
+ var nativeCreate = require_nativeCreate();
359
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
360
+ var objectProto = Object.prototype;
361
+ var hasOwnProperty = objectProto.hasOwnProperty;
362
+ function hashGet(key) {
363
+ var data = this.__data__;
364
+ if (nativeCreate) {
365
+ var result = data[key];
366
+ return result === HASH_UNDEFINED ? void 0 : result;
367
+ }
368
+ return hasOwnProperty.call(data, key) ? data[key] : void 0;
465
369
  }
466
- _listCacheClear = listCacheClear;
467
- return _listCacheClear;
370
+ _hashGet = hashGet;
371
+ return _hashGet;
468
372
  }
469
- var _assocIndexOf;
470
- var hasRequired_assocIndexOf;
471
- function require_assocIndexOf() {
472
- if (hasRequired_assocIndexOf) return _assocIndexOf;
473
- hasRequired_assocIndexOf = 1;
474
- var eq = requireEq();
475
- function assocIndexOf(array, key) {
476
- var length = array.length;
477
- while (length--) {
478
- if (eq(array[length][0], key)) {
479
- return length;
480
- }
373
+ var _hashHas;
374
+ var hasRequired_hashHas;
375
+ function require_hashHas() {
376
+ if (hasRequired_hashHas) return _hashHas;
377
+ hasRequired_hashHas = 1;
378
+ var nativeCreate = require_nativeCreate();
379
+ var objectProto = Object.prototype;
380
+ var hasOwnProperty = objectProto.hasOwnProperty;
381
+ function hashHas(key) {
382
+ var data = this.__data__;
383
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
384
+ }
385
+ _hashHas = hashHas;
386
+ return _hashHas;
387
+ }
388
+ var _hashSet;
389
+ var hasRequired_hashSet;
390
+ function require_hashSet() {
391
+ if (hasRequired_hashSet) return _hashSet;
392
+ hasRequired_hashSet = 1;
393
+ var nativeCreate = require_nativeCreate();
394
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
395
+ function hashSet(key, value) {
396
+ var data = this.__data__;
397
+ this.size += this.has(key) ? 0 : 1;
398
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
399
+ return this;
400
+ }
401
+ _hashSet = hashSet;
402
+ return _hashSet;
403
+ }
404
+ var _Hash;
405
+ var hasRequired_Hash;
406
+ function require_Hash() {
407
+ if (hasRequired_Hash) return _Hash;
408
+ hasRequired_Hash = 1;
409
+ var hashClear = require_hashClear(), hashDelete = require_hashDelete(), hashGet = require_hashGet(), hashHas = require_hashHas(), hashSet = require_hashSet();
410
+ function Hash(entries) {
411
+ var index = -1, length = entries == null ? 0 : entries.length;
412
+ this.clear();
413
+ while (++index < length) {
414
+ var entry = entries[index];
415
+ this.set(entry[0], entry[1]);
481
416
  }
482
- return -1;
483
417
  }
484
- _assocIndexOf = assocIndexOf;
485
- return _assocIndexOf;
418
+ Hash.prototype.clear = hashClear;
419
+ Hash.prototype["delete"] = hashDelete;
420
+ Hash.prototype.get = hashGet;
421
+ Hash.prototype.has = hashHas;
422
+ Hash.prototype.set = hashSet;
423
+ _Hash = Hash;
424
+ return _Hash;
425
+ }
426
+ var _mapCacheClear;
427
+ var hasRequired_mapCacheClear;
428
+ function require_mapCacheClear() {
429
+ if (hasRequired_mapCacheClear) return _mapCacheClear;
430
+ hasRequired_mapCacheClear = 1;
431
+ var Hash = require_Hash(), ListCache = require_ListCache(), Map2 = require_Map();
432
+ function mapCacheClear() {
433
+ this.size = 0;
434
+ this.__data__ = {
435
+ "hash": new Hash(),
436
+ "map": new (Map2 || ListCache)(),
437
+ "string": new Hash()
438
+ };
439
+ }
440
+ _mapCacheClear = mapCacheClear;
441
+ return _mapCacheClear;
442
+ }
443
+ var _isKeyable;
444
+ var hasRequired_isKeyable;
445
+ function require_isKeyable() {
446
+ if (hasRequired_isKeyable) return _isKeyable;
447
+ hasRequired_isKeyable = 1;
448
+ function isKeyable(value) {
449
+ var type = typeof value;
450
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
451
+ }
452
+ _isKeyable = isKeyable;
453
+ return _isKeyable;
486
454
  }
487
- var _listCacheDelete;
488
- var hasRequired_listCacheDelete;
489
- function require_listCacheDelete() {
490
- if (hasRequired_listCacheDelete) return _listCacheDelete;
491
- hasRequired_listCacheDelete = 1;
492
- var assocIndexOf = require_assocIndexOf();
493
- var arrayProto = Array.prototype;
494
- var splice = arrayProto.splice;
495
- function listCacheDelete(key) {
496
- var data = this.__data__, index = assocIndexOf(data, key);
497
- if (index < 0) {
498
- return false;
499
- }
500
- var lastIndex = data.length - 1;
501
- if (index == lastIndex) {
502
- data.pop();
503
- } else {
504
- splice.call(data, index, 1);
505
- }
506
- --this.size;
507
- return true;
455
+ var _getMapData;
456
+ var hasRequired_getMapData;
457
+ function require_getMapData() {
458
+ if (hasRequired_getMapData) return _getMapData;
459
+ hasRequired_getMapData = 1;
460
+ var isKeyable = require_isKeyable();
461
+ function getMapData(map, key) {
462
+ var data = map.__data__;
463
+ return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
508
464
  }
509
- _listCacheDelete = listCacheDelete;
510
- return _listCacheDelete;
465
+ _getMapData = getMapData;
466
+ return _getMapData;
511
467
  }
512
- var _listCacheGet;
513
- var hasRequired_listCacheGet;
514
- function require_listCacheGet() {
515
- if (hasRequired_listCacheGet) return _listCacheGet;
516
- hasRequired_listCacheGet = 1;
517
- var assocIndexOf = require_assocIndexOf();
518
- function listCacheGet(key) {
519
- var data = this.__data__, index = assocIndexOf(data, key);
520
- return index < 0 ? void 0 : data[index][1];
468
+ var _mapCacheDelete;
469
+ var hasRequired_mapCacheDelete;
470
+ function require_mapCacheDelete() {
471
+ if (hasRequired_mapCacheDelete) return _mapCacheDelete;
472
+ hasRequired_mapCacheDelete = 1;
473
+ var getMapData = require_getMapData();
474
+ function mapCacheDelete(key) {
475
+ var result = getMapData(this, key)["delete"](key);
476
+ this.size -= result ? 1 : 0;
477
+ return result;
521
478
  }
522
- _listCacheGet = listCacheGet;
523
- return _listCacheGet;
479
+ _mapCacheDelete = mapCacheDelete;
480
+ return _mapCacheDelete;
524
481
  }
525
- var _listCacheHas;
526
- var hasRequired_listCacheHas;
527
- function require_listCacheHas() {
528
- if (hasRequired_listCacheHas) return _listCacheHas;
529
- hasRequired_listCacheHas = 1;
530
- var assocIndexOf = require_assocIndexOf();
531
- function listCacheHas(key) {
532
- return assocIndexOf(this.__data__, key) > -1;
482
+ var _mapCacheGet;
483
+ var hasRequired_mapCacheGet;
484
+ function require_mapCacheGet() {
485
+ if (hasRequired_mapCacheGet) return _mapCacheGet;
486
+ hasRequired_mapCacheGet = 1;
487
+ var getMapData = require_getMapData();
488
+ function mapCacheGet(key) {
489
+ return getMapData(this, key).get(key);
533
490
  }
534
- _listCacheHas = listCacheHas;
535
- return _listCacheHas;
491
+ _mapCacheGet = mapCacheGet;
492
+ return _mapCacheGet;
536
493
  }
537
- var _listCacheSet;
538
- var hasRequired_listCacheSet;
539
- function require_listCacheSet() {
540
- if (hasRequired_listCacheSet) return _listCacheSet;
541
- hasRequired_listCacheSet = 1;
542
- var assocIndexOf = require_assocIndexOf();
543
- function listCacheSet(key, value) {
544
- var data = this.__data__, index = assocIndexOf(data, key);
545
- if (index < 0) {
546
- ++this.size;
547
- data.push([key, value]);
548
- } else {
549
- data[index][1] = value;
550
- }
494
+ var _mapCacheHas;
495
+ var hasRequired_mapCacheHas;
496
+ function require_mapCacheHas() {
497
+ if (hasRequired_mapCacheHas) return _mapCacheHas;
498
+ hasRequired_mapCacheHas = 1;
499
+ var getMapData = require_getMapData();
500
+ function mapCacheHas(key) {
501
+ return getMapData(this, key).has(key);
502
+ }
503
+ _mapCacheHas = mapCacheHas;
504
+ return _mapCacheHas;
505
+ }
506
+ var _mapCacheSet;
507
+ var hasRequired_mapCacheSet;
508
+ function require_mapCacheSet() {
509
+ if (hasRequired_mapCacheSet) return _mapCacheSet;
510
+ hasRequired_mapCacheSet = 1;
511
+ var getMapData = require_getMapData();
512
+ function mapCacheSet(key, value) {
513
+ var data = getMapData(this, key), size = data.size;
514
+ data.set(key, value);
515
+ this.size += data.size == size ? 0 : 1;
551
516
  return this;
552
517
  }
553
- _listCacheSet = listCacheSet;
554
- return _listCacheSet;
518
+ _mapCacheSet = mapCacheSet;
519
+ return _mapCacheSet;
555
520
  }
556
- var _ListCache;
557
- var hasRequired_ListCache;
558
- function require_ListCache() {
559
- if (hasRequired_ListCache) return _ListCache;
560
- hasRequired_ListCache = 1;
561
- var listCacheClear = require_listCacheClear(), listCacheDelete = require_listCacheDelete(), listCacheGet = require_listCacheGet(), listCacheHas = require_listCacheHas(), listCacheSet = require_listCacheSet();
562
- function ListCache(entries) {
521
+ var _MapCache;
522
+ var hasRequired_MapCache;
523
+ function require_MapCache() {
524
+ if (hasRequired_MapCache) return _MapCache;
525
+ hasRequired_MapCache = 1;
526
+ var mapCacheClear = require_mapCacheClear(), mapCacheDelete = require_mapCacheDelete(), mapCacheGet = require_mapCacheGet(), mapCacheHas = require_mapCacheHas(), mapCacheSet = require_mapCacheSet();
527
+ function MapCache(entries) {
563
528
  var index = -1, length = entries == null ? 0 : entries.length;
564
529
  this.clear();
565
530
  while (++index < length) {
@@ -567,1222 +532,1535 @@ function require_ListCache() {
567
532
  this.set(entry[0], entry[1]);
568
533
  }
569
534
  }
570
- ListCache.prototype.clear = listCacheClear;
571
- ListCache.prototype["delete"] = listCacheDelete;
572
- ListCache.prototype.get = listCacheGet;
573
- ListCache.prototype.has = listCacheHas;
574
- ListCache.prototype.set = listCacheSet;
575
- _ListCache = ListCache;
576
- return _ListCache;
535
+ MapCache.prototype.clear = mapCacheClear;
536
+ MapCache.prototype["delete"] = mapCacheDelete;
537
+ MapCache.prototype.get = mapCacheGet;
538
+ MapCache.prototype.has = mapCacheHas;
539
+ MapCache.prototype.set = mapCacheSet;
540
+ _MapCache = MapCache;
541
+ return _MapCache;
577
542
  }
578
- var _stackClear;
579
- var hasRequired_stackClear;
580
- function require_stackClear() {
581
- if (hasRequired_stackClear) return _stackClear;
582
- hasRequired_stackClear = 1;
583
- var ListCache = require_ListCache();
584
- function stackClear() {
585
- this.__data__ = new ListCache();
586
- this.size = 0;
543
+ var _stackSet;
544
+ var hasRequired_stackSet;
545
+ function require_stackSet() {
546
+ if (hasRequired_stackSet) return _stackSet;
547
+ hasRequired_stackSet = 1;
548
+ var ListCache = require_ListCache(), Map2 = require_Map(), MapCache = require_MapCache();
549
+ var LARGE_ARRAY_SIZE = 200;
550
+ function stackSet(key, value) {
551
+ var data = this.__data__;
552
+ if (data instanceof ListCache) {
553
+ var pairs = data.__data__;
554
+ if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
555
+ pairs.push([key, value]);
556
+ this.size = ++data.size;
557
+ return this;
558
+ }
559
+ data = this.__data__ = new MapCache(pairs);
560
+ }
561
+ data.set(key, value);
562
+ this.size = data.size;
563
+ return this;
587
564
  }
588
- _stackClear = stackClear;
589
- return _stackClear;
565
+ _stackSet = stackSet;
566
+ return _stackSet;
590
567
  }
591
- var _stackDelete;
592
- var hasRequired_stackDelete;
593
- function require_stackDelete() {
594
- if (hasRequired_stackDelete) return _stackDelete;
595
- hasRequired_stackDelete = 1;
596
- function stackDelete(key) {
597
- var data = this.__data__, result = data["delete"](key);
568
+ var _Stack;
569
+ var hasRequired_Stack;
570
+ function require_Stack() {
571
+ if (hasRequired_Stack) return _Stack;
572
+ hasRequired_Stack = 1;
573
+ var ListCache = require_ListCache(), stackClear = require_stackClear(), stackDelete = require_stackDelete(), stackGet = require_stackGet(), stackHas = require_stackHas(), stackSet = require_stackSet();
574
+ function Stack(entries) {
575
+ var data = this.__data__ = new ListCache(entries);
598
576
  this.size = data.size;
599
- return result;
600
577
  }
601
- _stackDelete = stackDelete;
602
- return _stackDelete;
578
+ Stack.prototype.clear = stackClear;
579
+ Stack.prototype["delete"] = stackDelete;
580
+ Stack.prototype.get = stackGet;
581
+ Stack.prototype.has = stackHas;
582
+ Stack.prototype.set = stackSet;
583
+ _Stack = Stack;
584
+ return _Stack;
603
585
  }
604
- var _stackGet;
605
- var hasRequired_stackGet;
606
- function require_stackGet() {
607
- if (hasRequired_stackGet) return _stackGet;
608
- hasRequired_stackGet = 1;
609
- function stackGet(key) {
610
- return this.__data__.get(key);
586
+ var _setCacheAdd;
587
+ var hasRequired_setCacheAdd;
588
+ function require_setCacheAdd() {
589
+ if (hasRequired_setCacheAdd) return _setCacheAdd;
590
+ hasRequired_setCacheAdd = 1;
591
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
592
+ function setCacheAdd(value) {
593
+ this.__data__.set(value, HASH_UNDEFINED);
594
+ return this;
611
595
  }
612
- _stackGet = stackGet;
613
- return _stackGet;
596
+ _setCacheAdd = setCacheAdd;
597
+ return _setCacheAdd;
614
598
  }
615
- var _stackHas;
616
- var hasRequired_stackHas;
617
- function require_stackHas() {
618
- if (hasRequired_stackHas) return _stackHas;
619
- hasRequired_stackHas = 1;
620
- function stackHas(key) {
621
- return this.__data__.has(key);
599
+ var _setCacheHas;
600
+ var hasRequired_setCacheHas;
601
+ function require_setCacheHas() {
602
+ if (hasRequired_setCacheHas) return _setCacheHas;
603
+ hasRequired_setCacheHas = 1;
604
+ function setCacheHas(value) {
605
+ return this.__data__.has(value);
606
+ }
607
+ _setCacheHas = setCacheHas;
608
+ return _setCacheHas;
609
+ }
610
+ var _SetCache;
611
+ var hasRequired_SetCache;
612
+ function require_SetCache() {
613
+ if (hasRequired_SetCache) return _SetCache;
614
+ hasRequired_SetCache = 1;
615
+ var MapCache = require_MapCache(), setCacheAdd = require_setCacheAdd(), setCacheHas = require_setCacheHas();
616
+ function SetCache(values) {
617
+ var index = -1, length = values == null ? 0 : values.length;
618
+ this.__data__ = new MapCache();
619
+ while (++index < length) {
620
+ this.add(values[index]);
621
+ }
622
622
  }
623
- _stackHas = stackHas;
624
- return _stackHas;
623
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
624
+ SetCache.prototype.has = setCacheHas;
625
+ _SetCache = SetCache;
626
+ return _SetCache;
625
627
  }
626
- var _coreJsData;
627
- var hasRequired_coreJsData;
628
- function require_coreJsData() {
629
- if (hasRequired_coreJsData) return _coreJsData;
630
- hasRequired_coreJsData = 1;
631
- var root = require_root();
632
- var coreJsData = root["__core-js_shared__"];
633
- _coreJsData = coreJsData;
634
- return _coreJsData;
628
+ var _arraySome;
629
+ var hasRequired_arraySome;
630
+ function require_arraySome() {
631
+ if (hasRequired_arraySome) return _arraySome;
632
+ hasRequired_arraySome = 1;
633
+ function arraySome(array, predicate) {
634
+ var index = -1, length = array == null ? 0 : array.length;
635
+ while (++index < length) {
636
+ if (predicate(array[index], index, array)) {
637
+ return true;
638
+ }
639
+ }
640
+ return false;
641
+ }
642
+ _arraySome = arraySome;
643
+ return _arraySome;
635
644
  }
636
- var _isMasked;
637
- var hasRequired_isMasked;
638
- function require_isMasked() {
639
- if (hasRequired_isMasked) return _isMasked;
640
- hasRequired_isMasked = 1;
641
- var coreJsData = require_coreJsData();
642
- var maskSrcKey = (function() {
643
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
644
- return uid ? "Symbol(src)_1." + uid : "";
645
- })();
646
- function isMasked(func) {
647
- return !!maskSrcKey && maskSrcKey in func;
645
+ var _cacheHas;
646
+ var hasRequired_cacheHas;
647
+ function require_cacheHas() {
648
+ if (hasRequired_cacheHas) return _cacheHas;
649
+ hasRequired_cacheHas = 1;
650
+ function cacheHas(cache, key) {
651
+ return cache.has(key);
648
652
  }
649
- _isMasked = isMasked;
650
- return _isMasked;
653
+ _cacheHas = cacheHas;
654
+ return _cacheHas;
651
655
  }
652
- var _toSource;
653
- var hasRequired_toSource;
654
- function require_toSource() {
655
- if (hasRequired_toSource) return _toSource;
656
- hasRequired_toSource = 1;
657
- var funcProto = Function.prototype;
658
- var funcToString = funcProto.toString;
659
- function toSource(func) {
660
- if (func != null) {
661
- try {
662
- return funcToString.call(func);
663
- } catch (e) {
656
+ var _equalArrays;
657
+ var hasRequired_equalArrays;
658
+ function require_equalArrays() {
659
+ if (hasRequired_equalArrays) return _equalArrays;
660
+ hasRequired_equalArrays = 1;
661
+ var SetCache = require_SetCache(), arraySome = require_arraySome(), cacheHas = require_cacheHas();
662
+ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
663
+ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
664
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
665
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
666
+ return false;
667
+ }
668
+ var arrStacked = stack.get(array);
669
+ var othStacked = stack.get(other);
670
+ if (arrStacked && othStacked) {
671
+ return arrStacked == other && othStacked == array;
672
+ }
673
+ var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
674
+ stack.set(array, other);
675
+ stack.set(other, array);
676
+ while (++index < arrLength) {
677
+ var arrValue = array[index], othValue = other[index];
678
+ if (customizer) {
679
+ var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
664
680
  }
665
- try {
666
- return func + "";
667
- } catch (e) {
681
+ if (compared !== void 0) {
682
+ if (compared) {
683
+ continue;
684
+ }
685
+ result = false;
686
+ break;
687
+ }
688
+ if (seen) {
689
+ if (!arraySome(other, function(othValue2, othIndex) {
690
+ if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
691
+ return seen.push(othIndex);
692
+ }
693
+ })) {
694
+ result = false;
695
+ break;
696
+ }
697
+ } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
698
+ result = false;
699
+ break;
668
700
  }
669
701
  }
670
- return "";
702
+ stack["delete"](array);
703
+ stack["delete"](other);
704
+ return result;
671
705
  }
672
- _toSource = toSource;
673
- return _toSource;
706
+ _equalArrays = equalArrays;
707
+ return _equalArrays;
674
708
  }
675
- var _baseIsNative;
676
- var hasRequired_baseIsNative;
677
- function require_baseIsNative() {
678
- if (hasRequired_baseIsNative) return _baseIsNative;
679
- hasRequired_baseIsNative = 1;
680
- var isFunction2 = requireIsFunction(), isMasked = require_isMasked(), isObject = requireIsObject(), toSource = require_toSource();
681
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
682
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
683
- var funcProto = Function.prototype, objectProto = Object.prototype;
684
- var funcToString = funcProto.toString;
685
- var hasOwnProperty = objectProto.hasOwnProperty;
686
- var reIsNative = RegExp(
687
- "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
688
- );
689
- function baseIsNative(value) {
690
- if (!isObject(value) || isMasked(value)) {
691
- return false;
692
- }
693
- var pattern = isFunction2(value) ? reIsNative : reIsHostCtor;
694
- return pattern.test(toSource(value));
709
+ var _Uint8Array;
710
+ var hasRequired_Uint8Array;
711
+ function require_Uint8Array() {
712
+ if (hasRequired_Uint8Array) return _Uint8Array;
713
+ hasRequired_Uint8Array = 1;
714
+ var root = require_root();
715
+ var Uint8Array = root.Uint8Array;
716
+ _Uint8Array = Uint8Array;
717
+ return _Uint8Array;
718
+ }
719
+ var _mapToArray;
720
+ var hasRequired_mapToArray;
721
+ function require_mapToArray() {
722
+ if (hasRequired_mapToArray) return _mapToArray;
723
+ hasRequired_mapToArray = 1;
724
+ function mapToArray(map) {
725
+ var index = -1, result = Array(map.size);
726
+ map.forEach(function(value, key) {
727
+ result[++index] = [key, value];
728
+ });
729
+ return result;
695
730
  }
696
- _baseIsNative = baseIsNative;
697
- return _baseIsNative;
731
+ _mapToArray = mapToArray;
732
+ return _mapToArray;
698
733
  }
699
- var _getValue;
700
- var hasRequired_getValue;
701
- function require_getValue() {
702
- if (hasRequired_getValue) return _getValue;
703
- hasRequired_getValue = 1;
704
- function getValue(object, key) {
705
- return object == null ? void 0 : object[key];
734
+ var _setToArray;
735
+ var hasRequired_setToArray;
736
+ function require_setToArray() {
737
+ if (hasRequired_setToArray) return _setToArray;
738
+ hasRequired_setToArray = 1;
739
+ function setToArray(set) {
740
+ var index = -1, result = Array(set.size);
741
+ set.forEach(function(value) {
742
+ result[++index] = value;
743
+ });
744
+ return result;
706
745
  }
707
- _getValue = getValue;
708
- return _getValue;
746
+ _setToArray = setToArray;
747
+ return _setToArray;
709
748
  }
710
- var _getNative;
711
- var hasRequired_getNative;
712
- function require_getNative() {
713
- if (hasRequired_getNative) return _getNative;
714
- hasRequired_getNative = 1;
715
- var baseIsNative = require_baseIsNative(), getValue = require_getValue();
716
- function getNative(object, key) {
717
- var value = getValue(object, key);
718
- return baseIsNative(value) ? value : void 0;
749
+ var _equalByTag;
750
+ var hasRequired_equalByTag;
751
+ function require_equalByTag() {
752
+ if (hasRequired_equalByTag) return _equalByTag;
753
+ hasRequired_equalByTag = 1;
754
+ var Symbol2 = require_Symbol(), Uint8Array = require_Uint8Array(), eq = requireEq(), equalArrays = require_equalArrays(), mapToArray = require_mapToArray(), setToArray = require_setToArray();
755
+ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
756
+ var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
757
+ var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
758
+ var symbolProto = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
759
+ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
760
+ switch (tag) {
761
+ case dataViewTag:
762
+ if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
763
+ return false;
764
+ }
765
+ object = object.buffer;
766
+ other = other.buffer;
767
+ case arrayBufferTag:
768
+ if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
769
+ return false;
770
+ }
771
+ return true;
772
+ case boolTag:
773
+ case dateTag:
774
+ case numberTag:
775
+ return eq(+object, +other);
776
+ case errorTag:
777
+ return object.name == other.name && object.message == other.message;
778
+ case regexpTag:
779
+ case stringTag:
780
+ return object == other + "";
781
+ case mapTag:
782
+ var convert = mapToArray;
783
+ case setTag:
784
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
785
+ convert || (convert = setToArray);
786
+ if (object.size != other.size && !isPartial) {
787
+ return false;
788
+ }
789
+ var stacked = stack.get(object);
790
+ if (stacked) {
791
+ return stacked == other;
792
+ }
793
+ bitmask |= COMPARE_UNORDERED_FLAG;
794
+ stack.set(object, other);
795
+ var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
796
+ stack["delete"](object);
797
+ return result;
798
+ case symbolTag:
799
+ if (symbolValueOf) {
800
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
801
+ }
802
+ }
803
+ return false;
719
804
  }
720
- _getNative = getNative;
721
- return _getNative;
722
- }
723
- var _Map;
724
- var hasRequired_Map;
725
- function require_Map() {
726
- if (hasRequired_Map) return _Map;
727
- hasRequired_Map = 1;
728
- var getNative = require_getNative(), root = require_root();
729
- var Map2 = getNative(root, "Map");
730
- _Map = Map2;
731
- return _Map;
805
+ _equalByTag = equalByTag;
806
+ return _equalByTag;
732
807
  }
733
- var _nativeCreate;
734
- var hasRequired_nativeCreate;
735
- function require_nativeCreate() {
736
- if (hasRequired_nativeCreate) return _nativeCreate;
737
- hasRequired_nativeCreate = 1;
738
- var getNative = require_getNative();
739
- var nativeCreate = getNative(Object, "create");
740
- _nativeCreate = nativeCreate;
741
- return _nativeCreate;
808
+ var _arrayPush;
809
+ var hasRequired_arrayPush;
810
+ function require_arrayPush() {
811
+ if (hasRequired_arrayPush) return _arrayPush;
812
+ hasRequired_arrayPush = 1;
813
+ function arrayPush(array, values) {
814
+ var index = -1, length = values.length, offset = array.length;
815
+ while (++index < length) {
816
+ array[offset + index] = values[index];
817
+ }
818
+ return array;
819
+ }
820
+ _arrayPush = arrayPush;
821
+ return _arrayPush;
742
822
  }
743
- var _hashClear;
744
- var hasRequired_hashClear;
745
- function require_hashClear() {
746
- if (hasRequired_hashClear) return _hashClear;
747
- hasRequired_hashClear = 1;
748
- var nativeCreate = require_nativeCreate();
749
- function hashClear() {
750
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
751
- this.size = 0;
823
+ var _baseGetAllKeys;
824
+ var hasRequired_baseGetAllKeys;
825
+ function require_baseGetAllKeys() {
826
+ if (hasRequired_baseGetAllKeys) return _baseGetAllKeys;
827
+ hasRequired_baseGetAllKeys = 1;
828
+ var arrayPush = require_arrayPush(), isArray = requireIsArray();
829
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
830
+ var result = keysFunc(object);
831
+ return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
752
832
  }
753
- _hashClear = hashClear;
754
- return _hashClear;
833
+ _baseGetAllKeys = baseGetAllKeys;
834
+ return _baseGetAllKeys;
755
835
  }
756
- var _hashDelete;
757
- var hasRequired_hashDelete;
758
- function require_hashDelete() {
759
- if (hasRequired_hashDelete) return _hashDelete;
760
- hasRequired_hashDelete = 1;
761
- function hashDelete(key) {
762
- var result = this.has(key) && delete this.__data__[key];
763
- this.size -= result ? 1 : 0;
836
+ var _arrayFilter;
837
+ var hasRequired_arrayFilter;
838
+ function require_arrayFilter() {
839
+ if (hasRequired_arrayFilter) return _arrayFilter;
840
+ hasRequired_arrayFilter = 1;
841
+ function arrayFilter(array, predicate) {
842
+ var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
843
+ while (++index < length) {
844
+ var value = array[index];
845
+ if (predicate(value, index, array)) {
846
+ result[resIndex++] = value;
847
+ }
848
+ }
764
849
  return result;
765
850
  }
766
- _hashDelete = hashDelete;
767
- return _hashDelete;
851
+ _arrayFilter = arrayFilter;
852
+ return _arrayFilter;
768
853
  }
769
- var _hashGet;
770
- var hasRequired_hashGet;
771
- function require_hashGet() {
772
- if (hasRequired_hashGet) return _hashGet;
773
- hasRequired_hashGet = 1;
774
- var nativeCreate = require_nativeCreate();
775
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
854
+ var stubArray_1;
855
+ var hasRequiredStubArray;
856
+ function requireStubArray() {
857
+ if (hasRequiredStubArray) return stubArray_1;
858
+ hasRequiredStubArray = 1;
859
+ function stubArray() {
860
+ return [];
861
+ }
862
+ stubArray_1 = stubArray;
863
+ return stubArray_1;
864
+ }
865
+ var _getSymbols;
866
+ var hasRequired_getSymbols;
867
+ function require_getSymbols() {
868
+ if (hasRequired_getSymbols) return _getSymbols;
869
+ hasRequired_getSymbols = 1;
870
+ var arrayFilter = require_arrayFilter(), stubArray = requireStubArray();
776
871
  var objectProto = Object.prototype;
777
- var hasOwnProperty = objectProto.hasOwnProperty;
778
- function hashGet(key) {
779
- var data = this.__data__;
780
- if (nativeCreate) {
781
- var result = data[key];
782
- return result === HASH_UNDEFINED ? void 0 : result;
872
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
873
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
874
+ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
875
+ if (object == null) {
876
+ return [];
783
877
  }
784
- return hasOwnProperty.call(data, key) ? data[key] : void 0;
878
+ object = Object(object);
879
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
880
+ return propertyIsEnumerable.call(object, symbol);
881
+ });
882
+ };
883
+ _getSymbols = getSymbols;
884
+ return _getSymbols;
885
+ }
886
+ var _baseIsArguments;
887
+ var hasRequired_baseIsArguments;
888
+ function require_baseIsArguments() {
889
+ if (hasRequired_baseIsArguments) return _baseIsArguments;
890
+ hasRequired_baseIsArguments = 1;
891
+ var baseGetTag = require_baseGetTag(), isObjectLike = requireIsObjectLike();
892
+ var argsTag = "[object Arguments]";
893
+ function baseIsArguments(value) {
894
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
785
895
  }
786
- _hashGet = hashGet;
787
- return _hashGet;
896
+ _baseIsArguments = baseIsArguments;
897
+ return _baseIsArguments;
788
898
  }
789
- var _hashHas;
790
- var hasRequired_hashHas;
791
- function require_hashHas() {
792
- if (hasRequired_hashHas) return _hashHas;
793
- hasRequired_hashHas = 1;
794
- var nativeCreate = require_nativeCreate();
899
+ var isArguments_1;
900
+ var hasRequiredIsArguments;
901
+ function requireIsArguments() {
902
+ if (hasRequiredIsArguments) return isArguments_1;
903
+ hasRequiredIsArguments = 1;
904
+ var baseIsArguments = require_baseIsArguments(), isObjectLike = requireIsObjectLike();
795
905
  var objectProto = Object.prototype;
796
906
  var hasOwnProperty = objectProto.hasOwnProperty;
797
- function hashHas(key) {
798
- var data = this.__data__;
799
- return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
800
- }
801
- _hashHas = hashHas;
802
- return _hashHas;
907
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
908
+ var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
909
+ return arguments;
910
+ })()) ? baseIsArguments : function(value) {
911
+ return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
912
+ };
913
+ isArguments_1 = isArguments;
914
+ return isArguments_1;
803
915
  }
804
- var _hashSet;
805
- var hasRequired_hashSet;
806
- function require_hashSet() {
807
- if (hasRequired_hashSet) return _hashSet;
808
- hasRequired_hashSet = 1;
809
- var nativeCreate = require_nativeCreate();
810
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
811
- function hashSet(key, value) {
812
- var data = this.__data__;
813
- this.size += this.has(key) ? 0 : 1;
814
- data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
815
- return this;
916
+ var isBuffer = { exports: {} };
917
+ var stubFalse_1;
918
+ var hasRequiredStubFalse;
919
+ function requireStubFalse() {
920
+ if (hasRequiredStubFalse) return stubFalse_1;
921
+ hasRequiredStubFalse = 1;
922
+ function stubFalse() {
923
+ return false;
816
924
  }
817
- _hashSet = hashSet;
818
- return _hashSet;
925
+ stubFalse_1 = stubFalse;
926
+ return stubFalse_1;
819
927
  }
820
- var _Hash;
821
- var hasRequired_Hash;
822
- function require_Hash() {
823
- if (hasRequired_Hash) return _Hash;
824
- hasRequired_Hash = 1;
825
- var hashClear = require_hashClear(), hashDelete = require_hashDelete(), hashGet = require_hashGet(), hashHas = require_hashHas(), hashSet = require_hashSet();
826
- function Hash(entries) {
827
- var index = -1, length = entries == null ? 0 : entries.length;
828
- this.clear();
829
- while (++index < length) {
830
- var entry = entries[index];
831
- this.set(entry[0], entry[1]);
832
- }
833
- }
834
- Hash.prototype.clear = hashClear;
835
- Hash.prototype["delete"] = hashDelete;
836
- Hash.prototype.get = hashGet;
837
- Hash.prototype.has = hashHas;
838
- Hash.prototype.set = hashSet;
839
- _Hash = Hash;
840
- return _Hash;
928
+ isBuffer.exports;
929
+ var hasRequiredIsBuffer;
930
+ function requireIsBuffer() {
931
+ if (hasRequiredIsBuffer) return isBuffer.exports;
932
+ hasRequiredIsBuffer = 1;
933
+ (function(module, exports$1) {
934
+ var root = require_root(), stubFalse = requireStubFalse();
935
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
936
+ var freeModule = freeExports && true && module && !module.nodeType && module;
937
+ var moduleExports = freeModule && freeModule.exports === freeExports;
938
+ var Buffer = moduleExports ? root.Buffer : void 0;
939
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
940
+ var isBuffer2 = nativeIsBuffer || stubFalse;
941
+ module.exports = isBuffer2;
942
+ })(isBuffer, isBuffer.exports);
943
+ return isBuffer.exports;
841
944
  }
842
- var _mapCacheClear;
843
- var hasRequired_mapCacheClear;
844
- function require_mapCacheClear() {
845
- if (hasRequired_mapCacheClear) return _mapCacheClear;
846
- hasRequired_mapCacheClear = 1;
847
- var Hash = require_Hash(), ListCache = require_ListCache(), Map2 = require_Map();
848
- function mapCacheClear() {
849
- this.size = 0;
850
- this.__data__ = {
851
- "hash": new Hash(),
852
- "map": new (Map2 || ListCache)(),
853
- "string": new Hash()
945
+ var _baseIsTypedArray;
946
+ var hasRequired_baseIsTypedArray;
947
+ function require_baseIsTypedArray() {
948
+ if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
949
+ hasRequired_baseIsTypedArray = 1;
950
+ var baseGetTag = require_baseGetTag(), isLength = requireIsLength(), isObjectLike = requireIsObjectLike();
951
+ var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", weakMapTag = "[object WeakMap]";
952
+ var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
953
+ var typedArrayTags = {};
954
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
955
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
956
+ function baseIsTypedArray(value) {
957
+ return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
958
+ }
959
+ _baseIsTypedArray = baseIsTypedArray;
960
+ return _baseIsTypedArray;
961
+ }
962
+ var _baseUnary;
963
+ var hasRequired_baseUnary;
964
+ function require_baseUnary() {
965
+ if (hasRequired_baseUnary) return _baseUnary;
966
+ hasRequired_baseUnary = 1;
967
+ function baseUnary(func) {
968
+ return function(value) {
969
+ return func(value);
854
970
  };
855
971
  }
856
- _mapCacheClear = mapCacheClear;
857
- return _mapCacheClear;
972
+ _baseUnary = baseUnary;
973
+ return _baseUnary;
858
974
  }
859
- var _isKeyable;
860
- var hasRequired_isKeyable;
861
- function require_isKeyable() {
862
- if (hasRequired_isKeyable) return _isKeyable;
863
- hasRequired_isKeyable = 1;
864
- function isKeyable(value) {
865
- var type = typeof value;
866
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
867
- }
868
- _isKeyable = isKeyable;
869
- return _isKeyable;
975
+ var _nodeUtil = { exports: {} };
976
+ _nodeUtil.exports;
977
+ var hasRequired_nodeUtil;
978
+ function require_nodeUtil() {
979
+ if (hasRequired_nodeUtil) return _nodeUtil.exports;
980
+ hasRequired_nodeUtil = 1;
981
+ (function(module, exports$1) {
982
+ var freeGlobal = require_freeGlobal();
983
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
984
+ var freeModule = freeExports && true && module && !module.nodeType && module;
985
+ var moduleExports = freeModule && freeModule.exports === freeExports;
986
+ var freeProcess = moduleExports && freeGlobal.process;
987
+ var nodeUtil = (function() {
988
+ try {
989
+ var types = freeModule && freeModule.require && freeModule.require("util").types;
990
+ if (types) {
991
+ return types;
992
+ }
993
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
994
+ } catch (e) {
995
+ }
996
+ })();
997
+ module.exports = nodeUtil;
998
+ })(_nodeUtil, _nodeUtil.exports);
999
+ return _nodeUtil.exports;
870
1000
  }
871
- var _getMapData;
872
- var hasRequired_getMapData;
873
- function require_getMapData() {
874
- if (hasRequired_getMapData) return _getMapData;
875
- hasRequired_getMapData = 1;
876
- var isKeyable = require_isKeyable();
877
- function getMapData(map, key) {
878
- var data = map.__data__;
879
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
880
- }
881
- _getMapData = getMapData;
882
- return _getMapData;
1001
+ var isTypedArray_1;
1002
+ var hasRequiredIsTypedArray;
1003
+ function requireIsTypedArray() {
1004
+ if (hasRequiredIsTypedArray) return isTypedArray_1;
1005
+ hasRequiredIsTypedArray = 1;
1006
+ var baseIsTypedArray = require_baseIsTypedArray(), baseUnary = require_baseUnary(), nodeUtil = require_nodeUtil();
1007
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
1008
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1009
+ isTypedArray_1 = isTypedArray;
1010
+ return isTypedArray_1;
883
1011
  }
884
- var _mapCacheDelete;
885
- var hasRequired_mapCacheDelete;
886
- function require_mapCacheDelete() {
887
- if (hasRequired_mapCacheDelete) return _mapCacheDelete;
888
- hasRequired_mapCacheDelete = 1;
889
- var getMapData = require_getMapData();
890
- function mapCacheDelete(key) {
891
- var result = getMapData(this, key)["delete"](key);
892
- this.size -= result ? 1 : 0;
1012
+ var _arrayLikeKeys;
1013
+ var hasRequired_arrayLikeKeys;
1014
+ function require_arrayLikeKeys() {
1015
+ if (hasRequired_arrayLikeKeys) return _arrayLikeKeys;
1016
+ hasRequired_arrayLikeKeys = 1;
1017
+ var baseTimes = require_baseTimes(), isArguments = requireIsArguments(), isArray = requireIsArray(), isBuffer2 = requireIsBuffer(), isIndex = require_isIndex(), isTypedArray = requireIsTypedArray();
1018
+ var objectProto = Object.prototype;
1019
+ var hasOwnProperty = objectProto.hasOwnProperty;
1020
+ function arrayLikeKeys(value, inherited) {
1021
+ var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer2(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
1022
+ for (var key in value) {
1023
+ if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
1024
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1025
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1026
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
1027
+ isIndex(key, length)))) {
1028
+ result.push(key);
1029
+ }
1030
+ }
893
1031
  return result;
894
1032
  }
895
- _mapCacheDelete = mapCacheDelete;
896
- return _mapCacheDelete;
1033
+ _arrayLikeKeys = arrayLikeKeys;
1034
+ return _arrayLikeKeys;
897
1035
  }
898
- var _mapCacheGet;
899
- var hasRequired_mapCacheGet;
900
- function require_mapCacheGet() {
901
- if (hasRequired_mapCacheGet) return _mapCacheGet;
902
- hasRequired_mapCacheGet = 1;
903
- var getMapData = require_getMapData();
904
- function mapCacheGet(key) {
905
- return getMapData(this, key).get(key);
1036
+ var _isPrototype;
1037
+ var hasRequired_isPrototype;
1038
+ function require_isPrototype() {
1039
+ if (hasRequired_isPrototype) return _isPrototype;
1040
+ hasRequired_isPrototype = 1;
1041
+ var objectProto = Object.prototype;
1042
+ function isPrototype(value) {
1043
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
1044
+ return value === proto;
906
1045
  }
907
- _mapCacheGet = mapCacheGet;
908
- return _mapCacheGet;
1046
+ _isPrototype = isPrototype;
1047
+ return _isPrototype;
909
1048
  }
910
- var _mapCacheHas;
911
- var hasRequired_mapCacheHas;
912
- function require_mapCacheHas() {
913
- if (hasRequired_mapCacheHas) return _mapCacheHas;
914
- hasRequired_mapCacheHas = 1;
915
- var getMapData = require_getMapData();
916
- function mapCacheHas(key) {
917
- return getMapData(this, key).has(key);
1049
+ var _nativeKeys;
1050
+ var hasRequired_nativeKeys;
1051
+ function require_nativeKeys() {
1052
+ if (hasRequired_nativeKeys) return _nativeKeys;
1053
+ hasRequired_nativeKeys = 1;
1054
+ var overArg = require_overArg();
1055
+ var nativeKeys = overArg(Object.keys, Object);
1056
+ _nativeKeys = nativeKeys;
1057
+ return _nativeKeys;
1058
+ }
1059
+ var _baseKeys;
1060
+ var hasRequired_baseKeys;
1061
+ function require_baseKeys() {
1062
+ if (hasRequired_baseKeys) return _baseKeys;
1063
+ hasRequired_baseKeys = 1;
1064
+ var isPrototype = require_isPrototype(), nativeKeys = require_nativeKeys();
1065
+ var objectProto = Object.prototype;
1066
+ var hasOwnProperty = objectProto.hasOwnProperty;
1067
+ function baseKeys(object) {
1068
+ if (!isPrototype(object)) {
1069
+ return nativeKeys(object);
1070
+ }
1071
+ var result = [];
1072
+ for (var key in Object(object)) {
1073
+ if (hasOwnProperty.call(object, key) && key != "constructor") {
1074
+ result.push(key);
1075
+ }
1076
+ }
1077
+ return result;
918
1078
  }
919
- _mapCacheHas = mapCacheHas;
920
- return _mapCacheHas;
1079
+ _baseKeys = baseKeys;
1080
+ return _baseKeys;
921
1081
  }
922
- var _mapCacheSet;
923
- var hasRequired_mapCacheSet;
924
- function require_mapCacheSet() {
925
- if (hasRequired_mapCacheSet) return _mapCacheSet;
926
- hasRequired_mapCacheSet = 1;
927
- var getMapData = require_getMapData();
928
- function mapCacheSet(key, value) {
929
- var data = getMapData(this, key), size = data.size;
930
- data.set(key, value);
931
- this.size += data.size == size ? 0 : 1;
932
- return this;
1082
+ var keys_1;
1083
+ var hasRequiredKeys;
1084
+ function requireKeys() {
1085
+ if (hasRequiredKeys) return keys_1;
1086
+ hasRequiredKeys = 1;
1087
+ var arrayLikeKeys = require_arrayLikeKeys(), baseKeys = require_baseKeys(), isArrayLike = requireIsArrayLike();
1088
+ function keys(object) {
1089
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
933
1090
  }
934
- _mapCacheSet = mapCacheSet;
935
- return _mapCacheSet;
1091
+ keys_1 = keys;
1092
+ return keys_1;
936
1093
  }
937
- var _MapCache;
938
- var hasRequired_MapCache;
939
- function require_MapCache() {
940
- if (hasRequired_MapCache) return _MapCache;
941
- hasRequired_MapCache = 1;
942
- var mapCacheClear = require_mapCacheClear(), mapCacheDelete = require_mapCacheDelete(), mapCacheGet = require_mapCacheGet(), mapCacheHas = require_mapCacheHas(), mapCacheSet = require_mapCacheSet();
943
- function MapCache(entries) {
944
- var index = -1, length = entries == null ? 0 : entries.length;
945
- this.clear();
946
- while (++index < length) {
947
- var entry = entries[index];
948
- this.set(entry[0], entry[1]);
949
- }
1094
+ var _getAllKeys;
1095
+ var hasRequired_getAllKeys;
1096
+ function require_getAllKeys() {
1097
+ if (hasRequired_getAllKeys) return _getAllKeys;
1098
+ hasRequired_getAllKeys = 1;
1099
+ var baseGetAllKeys = require_baseGetAllKeys(), getSymbols = require_getSymbols(), keys = requireKeys();
1100
+ function getAllKeys(object) {
1101
+ return baseGetAllKeys(object, keys, getSymbols);
950
1102
  }
951
- MapCache.prototype.clear = mapCacheClear;
952
- MapCache.prototype["delete"] = mapCacheDelete;
953
- MapCache.prototype.get = mapCacheGet;
954
- MapCache.prototype.has = mapCacheHas;
955
- MapCache.prototype.set = mapCacheSet;
956
- _MapCache = MapCache;
957
- return _MapCache;
1103
+ _getAllKeys = getAllKeys;
1104
+ return _getAllKeys;
958
1105
  }
959
- var _stackSet;
960
- var hasRequired_stackSet;
961
- function require_stackSet() {
962
- if (hasRequired_stackSet) return _stackSet;
963
- hasRequired_stackSet = 1;
964
- var ListCache = require_ListCache(), Map2 = require_Map(), MapCache = require_MapCache();
965
- var LARGE_ARRAY_SIZE = 200;
966
- function stackSet(key, value) {
967
- var data = this.__data__;
968
- if (data instanceof ListCache) {
969
- var pairs = data.__data__;
970
- if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
971
- pairs.push([key, value]);
972
- this.size = ++data.size;
973
- return this;
1106
+ var _equalObjects;
1107
+ var hasRequired_equalObjects;
1108
+ function require_equalObjects() {
1109
+ if (hasRequired_equalObjects) return _equalObjects;
1110
+ hasRequired_equalObjects = 1;
1111
+ var getAllKeys = require_getAllKeys();
1112
+ var COMPARE_PARTIAL_FLAG = 1;
1113
+ var objectProto = Object.prototype;
1114
+ var hasOwnProperty = objectProto.hasOwnProperty;
1115
+ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1116
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
1117
+ if (objLength != othLength && !isPartial) {
1118
+ return false;
1119
+ }
1120
+ var index = objLength;
1121
+ while (index--) {
1122
+ var key = objProps[index];
1123
+ if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
1124
+ return false;
1125
+ }
1126
+ }
1127
+ var objStacked = stack.get(object);
1128
+ var othStacked = stack.get(other);
1129
+ if (objStacked && othStacked) {
1130
+ return objStacked == other && othStacked == object;
1131
+ }
1132
+ var result = true;
1133
+ stack.set(object, other);
1134
+ stack.set(other, object);
1135
+ var skipCtor = isPartial;
1136
+ while (++index < objLength) {
1137
+ key = objProps[index];
1138
+ var objValue = object[key], othValue = other[key];
1139
+ if (customizer) {
1140
+ var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
974
1141
  }
975
- data = this.__data__ = new MapCache(pairs);
1142
+ if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
1143
+ result = false;
1144
+ break;
1145
+ }
1146
+ skipCtor || (skipCtor = key == "constructor");
976
1147
  }
977
- data.set(key, value);
978
- this.size = data.size;
979
- return this;
1148
+ if (result && !skipCtor) {
1149
+ var objCtor = object.constructor, othCtor = other.constructor;
1150
+ if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
1151
+ result = false;
1152
+ }
1153
+ }
1154
+ stack["delete"](object);
1155
+ stack["delete"](other);
1156
+ return result;
980
1157
  }
981
- _stackSet = stackSet;
982
- return _stackSet;
1158
+ _equalObjects = equalObjects;
1159
+ return _equalObjects;
983
1160
  }
984
- var _Stack;
985
- var hasRequired_Stack;
986
- function require_Stack() {
987
- if (hasRequired_Stack) return _Stack;
988
- hasRequired_Stack = 1;
989
- var ListCache = require_ListCache(), stackClear = require_stackClear(), stackDelete = require_stackDelete(), stackGet = require_stackGet(), stackHas = require_stackHas(), stackSet = require_stackSet();
990
- function Stack(entries) {
991
- var data = this.__data__ = new ListCache(entries);
992
- this.size = data.size;
993
- }
994
- Stack.prototype.clear = stackClear;
995
- Stack.prototype["delete"] = stackDelete;
996
- Stack.prototype.get = stackGet;
997
- Stack.prototype.has = stackHas;
998
- Stack.prototype.set = stackSet;
999
- _Stack = Stack;
1000
- return _Stack;
1161
+ var _DataView;
1162
+ var hasRequired_DataView;
1163
+ function require_DataView() {
1164
+ if (hasRequired_DataView) return _DataView;
1165
+ hasRequired_DataView = 1;
1166
+ var getNative = require_getNative(), root = require_root();
1167
+ var DataView = getNative(root, "DataView");
1168
+ _DataView = DataView;
1169
+ return _DataView;
1001
1170
  }
1002
- var _setCacheAdd;
1003
- var hasRequired_setCacheAdd;
1004
- function require_setCacheAdd() {
1005
- if (hasRequired_setCacheAdd) return _setCacheAdd;
1006
- hasRequired_setCacheAdd = 1;
1007
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
1008
- function setCacheAdd(value) {
1009
- this.__data__.set(value, HASH_UNDEFINED);
1010
- return this;
1171
+ var _Promise;
1172
+ var hasRequired_Promise;
1173
+ function require_Promise() {
1174
+ if (hasRequired_Promise) return _Promise;
1175
+ hasRequired_Promise = 1;
1176
+ var getNative = require_getNative(), root = require_root();
1177
+ var Promise2 = getNative(root, "Promise");
1178
+ _Promise = Promise2;
1179
+ return _Promise;
1180
+ }
1181
+ var _Set;
1182
+ var hasRequired_Set;
1183
+ function require_Set() {
1184
+ if (hasRequired_Set) return _Set;
1185
+ hasRequired_Set = 1;
1186
+ var getNative = require_getNative(), root = require_root();
1187
+ var Set = getNative(root, "Set");
1188
+ _Set = Set;
1189
+ return _Set;
1190
+ }
1191
+ var _WeakMap;
1192
+ var hasRequired_WeakMap;
1193
+ function require_WeakMap() {
1194
+ if (hasRequired_WeakMap) return _WeakMap;
1195
+ hasRequired_WeakMap = 1;
1196
+ var getNative = require_getNative(), root = require_root();
1197
+ var WeakMap = getNative(root, "WeakMap");
1198
+ _WeakMap = WeakMap;
1199
+ return _WeakMap;
1200
+ }
1201
+ var _getTag;
1202
+ var hasRequired_getTag;
1203
+ function require_getTag() {
1204
+ if (hasRequired_getTag) return _getTag;
1205
+ hasRequired_getTag = 1;
1206
+ var DataView = require_DataView(), Map2 = require_Map(), Promise2 = require_Promise(), Set = require_Set(), WeakMap = require_WeakMap(), baseGetTag = require_baseGetTag(), toSource = require_toSource();
1207
+ var mapTag = "[object Map]", objectTag = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
1208
+ var dataViewTag = "[object DataView]";
1209
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
1210
+ var getTag = baseGetTag;
1211
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
1212
+ getTag = function(value) {
1213
+ var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
1214
+ if (ctorString) {
1215
+ switch (ctorString) {
1216
+ case dataViewCtorString:
1217
+ return dataViewTag;
1218
+ case mapCtorString:
1219
+ return mapTag;
1220
+ case promiseCtorString:
1221
+ return promiseTag;
1222
+ case setCtorString:
1223
+ return setTag;
1224
+ case weakMapCtorString:
1225
+ return weakMapTag;
1226
+ }
1227
+ }
1228
+ return result;
1229
+ };
1011
1230
  }
1012
- _setCacheAdd = setCacheAdd;
1013
- return _setCacheAdd;
1231
+ _getTag = getTag;
1232
+ return _getTag;
1014
1233
  }
1015
- var _setCacheHas;
1016
- var hasRequired_setCacheHas;
1017
- function require_setCacheHas() {
1018
- if (hasRequired_setCacheHas) return _setCacheHas;
1019
- hasRequired_setCacheHas = 1;
1020
- function setCacheHas(value) {
1021
- return this.__data__.has(value);
1234
+ var _baseIsEqualDeep;
1235
+ var hasRequired_baseIsEqualDeep;
1236
+ function require_baseIsEqualDeep() {
1237
+ if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep;
1238
+ hasRequired_baseIsEqualDeep = 1;
1239
+ var Stack = require_Stack(), equalArrays = require_equalArrays(), equalByTag = require_equalByTag(), equalObjects = require_equalObjects(), getTag = require_getTag(), isArray = requireIsArray(), isBuffer2 = requireIsBuffer(), isTypedArray = requireIsTypedArray();
1240
+ var COMPARE_PARTIAL_FLAG = 1;
1241
+ var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
1242
+ var objectProto = Object.prototype;
1243
+ var hasOwnProperty = objectProto.hasOwnProperty;
1244
+ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
1245
+ var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
1246
+ objTag = objTag == argsTag ? objectTag : objTag;
1247
+ othTag = othTag == argsTag ? objectTag : othTag;
1248
+ var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
1249
+ if (isSameTag && isBuffer2(object)) {
1250
+ if (!isBuffer2(other)) {
1251
+ return false;
1252
+ }
1253
+ objIsArr = true;
1254
+ objIsObj = false;
1255
+ }
1256
+ if (isSameTag && !objIsObj) {
1257
+ stack || (stack = new Stack());
1258
+ return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
1259
+ }
1260
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
1261
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
1262
+ if (objIsWrapped || othIsWrapped) {
1263
+ var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
1264
+ stack || (stack = new Stack());
1265
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
1266
+ }
1267
+ }
1268
+ if (!isSameTag) {
1269
+ return false;
1270
+ }
1271
+ stack || (stack = new Stack());
1272
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
1022
1273
  }
1023
- _setCacheHas = setCacheHas;
1024
- return _setCacheHas;
1274
+ _baseIsEqualDeep = baseIsEqualDeep;
1275
+ return _baseIsEqualDeep;
1025
1276
  }
1026
- var _SetCache;
1027
- var hasRequired_SetCache;
1028
- function require_SetCache() {
1029
- if (hasRequired_SetCache) return _SetCache;
1030
- hasRequired_SetCache = 1;
1031
- var MapCache = require_MapCache(), setCacheAdd = require_setCacheAdd(), setCacheHas = require_setCacheHas();
1032
- function SetCache(values) {
1033
- var index = -1, length = values == null ? 0 : values.length;
1034
- this.__data__ = new MapCache();
1035
- while (++index < length) {
1036
- this.add(values[index]);
1277
+ var _baseIsEqual;
1278
+ var hasRequired_baseIsEqual;
1279
+ function require_baseIsEqual() {
1280
+ if (hasRequired_baseIsEqual) return _baseIsEqual;
1281
+ hasRequired_baseIsEqual = 1;
1282
+ var baseIsEqualDeep = require_baseIsEqualDeep(), isObjectLike = requireIsObjectLike();
1283
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
1284
+ if (value === other) {
1285
+ return true;
1286
+ }
1287
+ if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
1288
+ return value !== value && other !== other;
1037
1289
  }
1290
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
1038
1291
  }
1039
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
1040
- SetCache.prototype.has = setCacheHas;
1041
- _SetCache = SetCache;
1042
- return _SetCache;
1292
+ _baseIsEqual = baseIsEqual;
1293
+ return _baseIsEqual;
1043
1294
  }
1044
- var _arraySome;
1045
- var hasRequired_arraySome;
1046
- function require_arraySome() {
1047
- if (hasRequired_arraySome) return _arraySome;
1048
- hasRequired_arraySome = 1;
1049
- function arraySome(array, predicate) {
1050
- var index = -1, length = array == null ? 0 : array.length;
1051
- while (++index < length) {
1052
- if (predicate(array[index], index, array)) {
1053
- return true;
1054
- }
1295
+ var isEqual_1;
1296
+ var hasRequiredIsEqual;
1297
+ function requireIsEqual() {
1298
+ if (hasRequiredIsEqual) return isEqual_1;
1299
+ hasRequiredIsEqual = 1;
1300
+ var baseIsEqual = require_baseIsEqual();
1301
+ function isEqual2(value, other) {
1302
+ return baseIsEqual(value, other);
1303
+ }
1304
+ isEqual_1 = isEqual2;
1305
+ return isEqual_1;
1306
+ }
1307
+ var isEqualExports = requireIsEqual();
1308
+ const isEqual = /* @__PURE__ */ getDefaultExportFromCjs(isEqualExports);
1309
+ function createContextScope(scopeName, createContextScopeDeps = []) {
1310
+ let defaultContexts = [];
1311
+ function createContext3(rootComponentName, defaultContext) {
1312
+ const BaseContext = React.createContext(defaultContext);
1313
+ const index = defaultContexts.length;
1314
+ defaultContexts = [...defaultContexts, defaultContext];
1315
+ const Provider = (props) => {
1316
+ var _a;
1317
+ const { scope, children, ...context } = props;
1318
+ const Context = ((_a = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a[index]) || BaseContext;
1319
+ const value = React.useMemo(() => context, Object.values(context));
1320
+ return /* @__PURE__ */ jsx(Context.Provider, { value, children });
1321
+ };
1322
+ Provider.displayName = rootComponentName + "Provider";
1323
+ function useContext2(consumerName, scope) {
1324
+ var _a;
1325
+ const Context = ((_a = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a[index]) || BaseContext;
1326
+ const context = React.useContext(Context);
1327
+ if (context) return context;
1328
+ if (defaultContext !== void 0) return defaultContext;
1329
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
1055
1330
  }
1056
- return false;
1331
+ return [Provider, useContext2];
1057
1332
  }
1058
- _arraySome = arraySome;
1059
- return _arraySome;
1333
+ const createScope = () => {
1334
+ const scopeContexts = defaultContexts.map((defaultContext) => {
1335
+ return React.createContext(defaultContext);
1336
+ });
1337
+ return function useScope(scope) {
1338
+ const contexts = (scope == null ? void 0 : scope[scopeName]) || scopeContexts;
1339
+ return React.useMemo(
1340
+ () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
1341
+ [scope, contexts]
1342
+ );
1343
+ };
1344
+ };
1345
+ createScope.scopeName = scopeName;
1346
+ return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
1060
1347
  }
1061
- var _cacheHas;
1062
- var hasRequired_cacheHas;
1063
- function require_cacheHas() {
1064
- if (hasRequired_cacheHas) return _cacheHas;
1065
- hasRequired_cacheHas = 1;
1066
- function cacheHas(cache, key) {
1067
- return cache.has(key);
1348
+ function composeContextScopes(...scopes) {
1349
+ const baseScope = scopes[0];
1350
+ if (scopes.length === 1) return baseScope;
1351
+ const createScope = () => {
1352
+ const scopeHooks = scopes.map((createScope2) => ({
1353
+ useScope: createScope2(),
1354
+ scopeName: createScope2.scopeName
1355
+ }));
1356
+ return function useComposedScopes(overrideScopes) {
1357
+ const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
1358
+ const scopeProps = useScope(overrideScopes);
1359
+ const currentScope = scopeProps[`__scope${scopeName}`];
1360
+ return { ...nextScopes2, ...currentScope };
1361
+ }, {});
1362
+ return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
1363
+ };
1364
+ };
1365
+ createScope.scopeName = baseScope.scopeName;
1366
+ return createScope;
1367
+ }
1368
+ function setRef$2(ref, value) {
1369
+ if (typeof ref === "function") {
1370
+ return ref(value);
1371
+ } else if (ref !== null && ref !== void 0) {
1372
+ ref.current = value;
1068
1373
  }
1069
- _cacheHas = cacheHas;
1070
- return _cacheHas;
1071
1374
  }
1072
- var _equalArrays;
1073
- var hasRequired_equalArrays;
1074
- function require_equalArrays() {
1075
- if (hasRequired_equalArrays) return _equalArrays;
1076
- hasRequired_equalArrays = 1;
1077
- var SetCache = require_SetCache(), arraySome = require_arraySome(), cacheHas = require_cacheHas();
1078
- var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
1079
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
1080
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
1081
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
1082
- return false;
1083
- }
1084
- var arrStacked = stack.get(array);
1085
- var othStacked = stack.get(other);
1086
- if (arrStacked && othStacked) {
1087
- return arrStacked == other && othStacked == array;
1088
- }
1089
- var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
1090
- stack.set(array, other);
1091
- stack.set(other, array);
1092
- while (++index < arrLength) {
1093
- var arrValue = array[index], othValue = other[index];
1094
- if (customizer) {
1095
- var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
1096
- }
1097
- if (compared !== void 0) {
1098
- if (compared) {
1099
- continue;
1100
- }
1101
- result = false;
1102
- break;
1375
+ function composeRefs$2(...refs) {
1376
+ return (node) => {
1377
+ let hasCleanup = false;
1378
+ const cleanups = refs.map((ref) => {
1379
+ const cleanup = setRef$2(ref, node);
1380
+ if (!hasCleanup && typeof cleanup == "function") {
1381
+ hasCleanup = true;
1103
1382
  }
1104
- if (seen) {
1105
- if (!arraySome(other, function(othValue2, othIndex) {
1106
- if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
1107
- return seen.push(othIndex);
1383
+ return cleanup;
1384
+ });
1385
+ if (hasCleanup) {
1386
+ return () => {
1387
+ for (let i = 0; i < cleanups.length; i++) {
1388
+ const cleanup = cleanups[i];
1389
+ if (typeof cleanup == "function") {
1390
+ cleanup();
1391
+ } else {
1392
+ setRef$2(refs[i], null);
1108
1393
  }
1109
- })) {
1110
- result = false;
1111
- break;
1112
1394
  }
1113
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
1114
- result = false;
1115
- break;
1116
- }
1395
+ };
1117
1396
  }
1118
- stack["delete"](array);
1119
- stack["delete"](other);
1120
- return result;
1121
- }
1122
- _equalArrays = equalArrays;
1123
- return _equalArrays;
1397
+ };
1124
1398
  }
1125
- var _Uint8Array;
1126
- var hasRequired_Uint8Array;
1127
- function require_Uint8Array() {
1128
- if (hasRequired_Uint8Array) return _Uint8Array;
1129
- hasRequired_Uint8Array = 1;
1130
- var root = require_root();
1131
- var Uint8Array = root.Uint8Array;
1132
- _Uint8Array = Uint8Array;
1133
- return _Uint8Array;
1399
+ function useComposedRefs$2(...refs) {
1400
+ return React.useCallback(composeRefs$2(...refs), refs);
1134
1401
  }
1135
- var _mapToArray;
1136
- var hasRequired_mapToArray;
1137
- function require_mapToArray() {
1138
- if (hasRequired_mapToArray) return _mapToArray;
1139
- hasRequired_mapToArray = 1;
1140
- function mapToArray(map) {
1141
- var index = -1, result = Array(map.size);
1142
- map.forEach(function(value, key) {
1143
- result[++index] = [key, value];
1144
- });
1145
- return result;
1146
- }
1147
- _mapToArray = mapToArray;
1148
- return _mapToArray;
1402
+ // @__NO_SIDE_EFFECTS__
1403
+ function createSlot$2(ownerName) {
1404
+ const SlotClone = /* @__PURE__ */ createSlotClone$2(ownerName);
1405
+ const Slot2 = React.forwardRef((props, forwardedRef) => {
1406
+ const { children, ...slotProps } = props;
1407
+ const childrenArray = React.Children.toArray(children);
1408
+ const slottable = childrenArray.find(isSlottable$2);
1409
+ if (slottable) {
1410
+ const newElement = slottable.props.children;
1411
+ const newChildren = childrenArray.map((child) => {
1412
+ if (child === slottable) {
1413
+ if (React.Children.count(newElement) > 1) return React.Children.only(null);
1414
+ return React.isValidElement(newElement) ? newElement.props.children : null;
1415
+ } else {
1416
+ return child;
1417
+ }
1418
+ });
1419
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
1420
+ }
1421
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
1422
+ });
1423
+ Slot2.displayName = `${ownerName}.Slot`;
1424
+ return Slot2;
1149
1425
  }
1150
- var _setToArray;
1151
- var hasRequired_setToArray;
1152
- function require_setToArray() {
1153
- if (hasRequired_setToArray) return _setToArray;
1154
- hasRequired_setToArray = 1;
1155
- function setToArray(set) {
1156
- var index = -1, result = Array(set.size);
1157
- set.forEach(function(value) {
1158
- result[++index] = value;
1159
- });
1160
- return result;
1161
- }
1162
- _setToArray = setToArray;
1163
- return _setToArray;
1426
+ // @__NO_SIDE_EFFECTS__
1427
+ function createSlotClone$2(ownerName) {
1428
+ const SlotClone = React.forwardRef((props, forwardedRef) => {
1429
+ const { children, ...slotProps } = props;
1430
+ if (React.isValidElement(children)) {
1431
+ const childrenRef = getElementRef$3(children);
1432
+ const props2 = mergeProps$2(slotProps, children.props);
1433
+ if (children.type !== React.Fragment) {
1434
+ props2.ref = forwardedRef ? composeRefs$2(forwardedRef, childrenRef) : childrenRef;
1435
+ }
1436
+ return React.cloneElement(children, props2);
1437
+ }
1438
+ return React.Children.count(children) > 1 ? React.Children.only(null) : null;
1439
+ });
1440
+ SlotClone.displayName = `${ownerName}.SlotClone`;
1441
+ return SlotClone;
1164
1442
  }
1165
- var _equalByTag;
1166
- var hasRequired_equalByTag;
1167
- function require_equalByTag() {
1168
- if (hasRequired_equalByTag) return _equalByTag;
1169
- hasRequired_equalByTag = 1;
1170
- var Symbol2 = require_Symbol(), Uint8Array = require_Uint8Array(), eq = requireEq(), equalArrays = require_equalArrays(), mapToArray = require_mapToArray(), setToArray = require_setToArray();
1171
- var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
1172
- var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
1173
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
1174
- var symbolProto = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
1175
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1176
- switch (tag) {
1177
- case dataViewTag:
1178
- if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
1179
- return false;
1180
- }
1181
- object = object.buffer;
1182
- other = other.buffer;
1183
- case arrayBufferTag:
1184
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
1185
- return false;
1186
- }
1187
- return true;
1188
- case boolTag:
1189
- case dateTag:
1190
- case numberTag:
1191
- return eq(+object, +other);
1192
- case errorTag:
1193
- return object.name == other.name && object.message == other.message;
1194
- case regexpTag:
1195
- case stringTag:
1196
- return object == other + "";
1197
- case mapTag:
1198
- var convert = mapToArray;
1199
- case setTag:
1200
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
1201
- convert || (convert = setToArray);
1202
- if (object.size != other.size && !isPartial) {
1203
- return false;
1204
- }
1205
- var stacked = stack.get(object);
1206
- if (stacked) {
1207
- return stacked == other;
1208
- }
1209
- bitmask |= COMPARE_UNORDERED_FLAG;
1210
- stack.set(object, other);
1211
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1212
- stack["delete"](object);
1213
- return result;
1214
- case symbolTag:
1215
- if (symbolValueOf) {
1216
- return symbolValueOf.call(object) == symbolValueOf.call(other);
1217
- }
1443
+ var SLOTTABLE_IDENTIFIER$2 = Symbol("radix.slottable");
1444
+ function isSlottable$2(child) {
1445
+ return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$2;
1446
+ }
1447
+ function mergeProps$2(slotProps, childProps) {
1448
+ const overrideProps = { ...childProps };
1449
+ for (const propName in childProps) {
1450
+ const slotPropValue = slotProps[propName];
1451
+ const childPropValue = childProps[propName];
1452
+ const isHandler = /^on[A-Z]/.test(propName);
1453
+ if (isHandler) {
1454
+ if (slotPropValue && childPropValue) {
1455
+ overrideProps[propName] = (...args) => {
1456
+ const result = childPropValue(...args);
1457
+ slotPropValue(...args);
1458
+ return result;
1459
+ };
1460
+ } else if (slotPropValue) {
1461
+ overrideProps[propName] = slotPropValue;
1462
+ }
1463
+ } else if (propName === "style") {
1464
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
1465
+ } else if (propName === "className") {
1466
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
1218
1467
  }
1219
- return false;
1220
1468
  }
1221
- _equalByTag = equalByTag;
1222
- return _equalByTag;
1469
+ return { ...slotProps, ...overrideProps };
1223
1470
  }
1224
- var _arrayPush;
1225
- var hasRequired_arrayPush;
1226
- function require_arrayPush() {
1227
- if (hasRequired_arrayPush) return _arrayPush;
1228
- hasRequired_arrayPush = 1;
1229
- function arrayPush(array, values) {
1230
- var index = -1, length = values.length, offset = array.length;
1231
- while (++index < length) {
1232
- array[offset + index] = values[index];
1233
- }
1234
- return array;
1471
+ function getElementRef$3(element) {
1472
+ var _a, _b;
1473
+ let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
1474
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1475
+ if (mayWarn) {
1476
+ return element.ref;
1235
1477
  }
1236
- _arrayPush = arrayPush;
1237
- return _arrayPush;
1238
- }
1239
- var _baseGetAllKeys;
1240
- var hasRequired_baseGetAllKeys;
1241
- function require_baseGetAllKeys() {
1242
- if (hasRequired_baseGetAllKeys) return _baseGetAllKeys;
1243
- hasRequired_baseGetAllKeys = 1;
1244
- var arrayPush = require_arrayPush(), isArray = requireIsArray();
1245
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1246
- var result = keysFunc(object);
1247
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
1478
+ getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
1479
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1480
+ if (mayWarn) {
1481
+ return element.props.ref;
1248
1482
  }
1249
- _baseGetAllKeys = baseGetAllKeys;
1250
- return _baseGetAllKeys;
1483
+ return element.props.ref || element.ref;
1251
1484
  }
1252
- var _arrayFilter;
1253
- var hasRequired_arrayFilter;
1254
- function require_arrayFilter() {
1255
- if (hasRequired_arrayFilter) return _arrayFilter;
1256
- hasRequired_arrayFilter = 1;
1257
- function arrayFilter(array, predicate) {
1258
- var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
1259
- while (++index < length) {
1260
- var value = array[index];
1261
- if (predicate(value, index, array)) {
1262
- result[resIndex++] = value;
1263
- }
1485
+ function createCollection(name) {
1486
+ const PROVIDER_NAME = name + "CollectionProvider";
1487
+ const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME);
1488
+ const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
1489
+ PROVIDER_NAME,
1490
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
1491
+ );
1492
+ const CollectionProvider = (props) => {
1493
+ const { scope, children } = props;
1494
+ const ref = React__default.useRef(null);
1495
+ const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
1496
+ return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
1497
+ };
1498
+ CollectionProvider.displayName = PROVIDER_NAME;
1499
+ const COLLECTION_SLOT_NAME = name + "CollectionSlot";
1500
+ const CollectionSlotImpl = /* @__PURE__ */ createSlot$2(COLLECTION_SLOT_NAME);
1501
+ const CollectionSlot = React__default.forwardRef(
1502
+ (props, forwardedRef) => {
1503
+ const { scope, children } = props;
1504
+ const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
1505
+ const composedRefs = useComposedRefs$2(forwardedRef, context.collectionRef);
1506
+ return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });
1264
1507
  }
1265
- return result;
1508
+ );
1509
+ CollectionSlot.displayName = COLLECTION_SLOT_NAME;
1510
+ const ITEM_SLOT_NAME = name + "CollectionItemSlot";
1511
+ const ITEM_DATA_ATTR = "data-radix-collection-item";
1512
+ const CollectionItemSlotImpl = /* @__PURE__ */ createSlot$2(ITEM_SLOT_NAME);
1513
+ const CollectionItemSlot = React__default.forwardRef(
1514
+ (props, forwardedRef) => {
1515
+ const { scope, children, ...itemData } = props;
1516
+ const ref = React__default.useRef(null);
1517
+ const composedRefs = useComposedRefs$2(forwardedRef, ref);
1518
+ const context = useCollectionContext(ITEM_SLOT_NAME, scope);
1519
+ React__default.useEffect(() => {
1520
+ context.itemMap.set(ref, { ref, ...itemData });
1521
+ return () => void context.itemMap.delete(ref);
1522
+ });
1523
+ return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
1524
+ }
1525
+ );
1526
+ CollectionItemSlot.displayName = ITEM_SLOT_NAME;
1527
+ function useCollection2(scope) {
1528
+ const context = useCollectionContext(name + "CollectionConsumer", scope);
1529
+ const getItems = React__default.useCallback(() => {
1530
+ const collectionNode = context.collectionRef.current;
1531
+ if (!collectionNode) return [];
1532
+ const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
1533
+ const items = Array.from(context.itemMap.values());
1534
+ const orderedItems = items.sort(
1535
+ (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
1536
+ );
1537
+ return orderedItems;
1538
+ }, [context.collectionRef, context.itemMap]);
1539
+ return getItems;
1266
1540
  }
1267
- _arrayFilter = arrayFilter;
1268
- return _arrayFilter;
1541
+ return [
1542
+ { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
1543
+ useCollection2,
1544
+ createCollectionScope2
1545
+ ];
1269
1546
  }
1270
- var stubArray_1;
1271
- var hasRequiredStubArray;
1272
- function requireStubArray() {
1273
- if (hasRequiredStubArray) return stubArray_1;
1274
- hasRequiredStubArray = 1;
1275
- function stubArray() {
1276
- return [];
1547
+ function setRef$1(ref, value) {
1548
+ if (typeof ref === "function") {
1549
+ return ref(value);
1550
+ } else if (ref !== null && ref !== void 0) {
1551
+ ref.current = value;
1277
1552
  }
1278
- stubArray_1 = stubArray;
1279
- return stubArray_1;
1280
1553
  }
1281
- var _getSymbols;
1282
- var hasRequired_getSymbols;
1283
- function require_getSymbols() {
1284
- if (hasRequired_getSymbols) return _getSymbols;
1285
- hasRequired_getSymbols = 1;
1286
- var arrayFilter = require_arrayFilter(), stubArray = requireStubArray();
1287
- var objectProto = Object.prototype;
1288
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
1289
- var nativeGetSymbols = Object.getOwnPropertySymbols;
1290
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
1291
- if (object == null) {
1292
- return [];
1293
- }
1294
- object = Object(object);
1295
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
1296
- return propertyIsEnumerable.call(object, symbol);
1554
+ function composeRefs$1(...refs) {
1555
+ return (node) => {
1556
+ let hasCleanup = false;
1557
+ const cleanups = refs.map((ref) => {
1558
+ const cleanup = setRef$1(ref, node);
1559
+ if (!hasCleanup && typeof cleanup == "function") {
1560
+ hasCleanup = true;
1561
+ }
1562
+ return cleanup;
1297
1563
  });
1564
+ if (hasCleanup) {
1565
+ return () => {
1566
+ for (let i = 0; i < cleanups.length; i++) {
1567
+ const cleanup = cleanups[i];
1568
+ if (typeof cleanup == "function") {
1569
+ cleanup();
1570
+ } else {
1571
+ setRef$1(refs[i], null);
1572
+ }
1573
+ }
1574
+ };
1575
+ }
1298
1576
  };
1299
- _getSymbols = getSymbols;
1300
- return _getSymbols;
1301
1577
  }
1302
- var _baseIsArguments;
1303
- var hasRequired_baseIsArguments;
1304
- function require_baseIsArguments() {
1305
- if (hasRequired_baseIsArguments) return _baseIsArguments;
1306
- hasRequired_baseIsArguments = 1;
1307
- var baseGetTag = require_baseGetTag(), isObjectLike = requireIsObjectLike();
1308
- var argsTag = "[object Arguments]";
1309
- function baseIsArguments(value) {
1310
- return isObjectLike(value) && baseGetTag(value) == argsTag;
1311
- }
1312
- _baseIsArguments = baseIsArguments;
1313
- return _baseIsArguments;
1578
+ function useComposedRefs$1(...refs) {
1579
+ return React.useCallback(composeRefs$1(...refs), refs);
1314
1580
  }
1315
- var isArguments_1;
1316
- var hasRequiredIsArguments;
1317
- function requireIsArguments() {
1318
- if (hasRequiredIsArguments) return isArguments_1;
1319
- hasRequiredIsArguments = 1;
1320
- var baseIsArguments = require_baseIsArguments(), isObjectLike = requireIsObjectLike();
1321
- var objectProto = Object.prototype;
1322
- var hasOwnProperty = objectProto.hasOwnProperty;
1323
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
1324
- var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
1325
- return arguments;
1326
- })()) ? baseIsArguments : function(value) {
1327
- return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
1581
+ function composeEventHandlers$1(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
1582
+ return function handleEvent(event) {
1583
+ originalEventHandler == null ? void 0 : originalEventHandler(event);
1584
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) {
1585
+ return ourEventHandler == null ? void 0 : ourEventHandler(event);
1586
+ }
1328
1587
  };
1329
- isArguments_1 = isArguments;
1330
- return isArguments_1;
1331
- }
1332
- var isBuffer = { exports: {} };
1333
- var stubFalse_1;
1334
- var hasRequiredStubFalse;
1335
- function requireStubFalse() {
1336
- if (hasRequiredStubFalse) return stubFalse_1;
1337
- hasRequiredStubFalse = 1;
1338
- function stubFalse() {
1339
- return false;
1340
- }
1341
- stubFalse_1 = stubFalse;
1342
- return stubFalse_1;
1343
- }
1344
- isBuffer.exports;
1345
- var hasRequiredIsBuffer;
1346
- function requireIsBuffer() {
1347
- if (hasRequiredIsBuffer) return isBuffer.exports;
1348
- hasRequiredIsBuffer = 1;
1349
- (function(module, exports$1) {
1350
- var root = require_root(), stubFalse = requireStubFalse();
1351
- var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1352
- var freeModule = freeExports && true && module && !module.nodeType && module;
1353
- var moduleExports = freeModule && freeModule.exports === freeExports;
1354
- var Buffer = moduleExports ? root.Buffer : void 0;
1355
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
1356
- var isBuffer2 = nativeIsBuffer || stubFalse;
1357
- module.exports = isBuffer2;
1358
- })(isBuffer, isBuffer.exports);
1359
- return isBuffer.exports;
1360
1588
  }
1361
- var _baseIsTypedArray;
1362
- var hasRequired_baseIsTypedArray;
1363
- function require_baseIsTypedArray() {
1364
- if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
1365
- hasRequired_baseIsTypedArray = 1;
1366
- var baseGetTag = require_baseGetTag(), isLength = requireIsLength(), isObjectLike = requireIsObjectLike();
1367
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", weakMapTag = "[object WeakMap]";
1368
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
1369
- var typedArrayTags = {};
1370
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
1371
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
1372
- function baseIsTypedArray(value) {
1373
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
1589
+ var useLayoutEffect2$2 = (globalThis == null ? void 0 : globalThis.document) ? React.useLayoutEffect : () => {
1590
+ };
1591
+ var useInsertionEffect = React[" useInsertionEffect ".trim().toString()] || useLayoutEffect2$2;
1592
+ function useControllableState({
1593
+ prop,
1594
+ defaultProp,
1595
+ onChange = () => {
1596
+ },
1597
+ caller
1598
+ }) {
1599
+ const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
1600
+ defaultProp,
1601
+ onChange
1602
+ });
1603
+ const isControlled = prop !== void 0;
1604
+ const value = isControlled ? prop : uncontrolledProp;
1605
+ {
1606
+ const isControlledRef = React.useRef(prop !== void 0);
1607
+ React.useEffect(() => {
1608
+ const wasControlled = isControlledRef.current;
1609
+ if (wasControlled !== isControlled) {
1610
+ const from = wasControlled ? "controlled" : "uncontrolled";
1611
+ const to = isControlled ? "controlled" : "uncontrolled";
1612
+ console.warn(
1613
+ `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
1614
+ );
1615
+ }
1616
+ isControlledRef.current = isControlled;
1617
+ }, [isControlled, caller]);
1374
1618
  }
1375
- _baseIsTypedArray = baseIsTypedArray;
1376
- return _baseIsTypedArray;
1619
+ const setValue = React.useCallback(
1620
+ (nextValue) => {
1621
+ var _a;
1622
+ if (isControlled) {
1623
+ const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
1624
+ if (value2 !== prop) {
1625
+ (_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value2);
1626
+ }
1627
+ } else {
1628
+ setUncontrolledProp(nextValue);
1629
+ }
1630
+ },
1631
+ [isControlled, prop, setUncontrolledProp, onChangeRef]
1632
+ );
1633
+ return [value, setValue];
1377
1634
  }
1378
- var _baseUnary;
1379
- var hasRequired_baseUnary;
1380
- function require_baseUnary() {
1381
- if (hasRequired_baseUnary) return _baseUnary;
1382
- hasRequired_baseUnary = 1;
1383
- function baseUnary(func) {
1384
- return function(value) {
1385
- return func(value);
1386
- };
1387
- }
1388
- _baseUnary = baseUnary;
1389
- return _baseUnary;
1635
+ function useUncontrolledState({
1636
+ defaultProp,
1637
+ onChange
1638
+ }) {
1639
+ const [value, setValue] = React.useState(defaultProp);
1640
+ const prevValueRef = React.useRef(value);
1641
+ const onChangeRef = React.useRef(onChange);
1642
+ useInsertionEffect(() => {
1643
+ onChangeRef.current = onChange;
1644
+ }, [onChange]);
1645
+ React.useEffect(() => {
1646
+ var _a;
1647
+ if (prevValueRef.current !== value) {
1648
+ (_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value);
1649
+ prevValueRef.current = value;
1650
+ }
1651
+ }, [value, prevValueRef]);
1652
+ return [value, setValue, onChangeRef];
1390
1653
  }
1391
- var _nodeUtil = { exports: {} };
1392
- _nodeUtil.exports;
1393
- var hasRequired_nodeUtil;
1394
- function require_nodeUtil() {
1395
- if (hasRequired_nodeUtil) return _nodeUtil.exports;
1396
- hasRequired_nodeUtil = 1;
1397
- (function(module, exports$1) {
1398
- var freeGlobal = require_freeGlobal();
1399
- var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1400
- var freeModule = freeExports && true && module && !module.nodeType && module;
1401
- var moduleExports = freeModule && freeModule.exports === freeExports;
1402
- var freeProcess = moduleExports && freeGlobal.process;
1403
- var nodeUtil = (function() {
1404
- try {
1405
- var types = freeModule && freeModule.require && freeModule.require("util").types;
1406
- if (types) {
1407
- return types;
1654
+ function isFunction(value) {
1655
+ return typeof value === "function";
1656
+ }
1657
+ // @__NO_SIDE_EFFECTS__
1658
+ function createSlot$1(ownerName) {
1659
+ const SlotClone = /* @__PURE__ */ createSlotClone$1(ownerName);
1660
+ const Slot2 = React.forwardRef((props, forwardedRef) => {
1661
+ const { children, ...slotProps } = props;
1662
+ const childrenArray = React.Children.toArray(children);
1663
+ const slottable = childrenArray.find(isSlottable$1);
1664
+ if (slottable) {
1665
+ const newElement = slottable.props.children;
1666
+ const newChildren = childrenArray.map((child) => {
1667
+ if (child === slottable) {
1668
+ if (React.Children.count(newElement) > 1) return React.Children.only(null);
1669
+ return React.isValidElement(newElement) ? newElement.props.children : null;
1670
+ } else {
1671
+ return child;
1408
1672
  }
1409
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
1410
- } catch (e) {
1673
+ });
1674
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
1675
+ }
1676
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
1677
+ });
1678
+ Slot2.displayName = `${ownerName}.Slot`;
1679
+ return Slot2;
1680
+ }
1681
+ // @__NO_SIDE_EFFECTS__
1682
+ function createSlotClone$1(ownerName) {
1683
+ const SlotClone = React.forwardRef((props, forwardedRef) => {
1684
+ const { children, ...slotProps } = props;
1685
+ if (React.isValidElement(children)) {
1686
+ const childrenRef = getElementRef$2(children);
1687
+ const props2 = mergeProps$1(slotProps, children.props);
1688
+ if (children.type !== React.Fragment) {
1689
+ props2.ref = forwardedRef ? composeRefs$1(forwardedRef, childrenRef) : childrenRef;
1411
1690
  }
1412
- })();
1413
- module.exports = nodeUtil;
1414
- })(_nodeUtil, _nodeUtil.exports);
1415
- return _nodeUtil.exports;
1691
+ return React.cloneElement(children, props2);
1692
+ }
1693
+ return React.Children.count(children) > 1 ? React.Children.only(null) : null;
1694
+ });
1695
+ SlotClone.displayName = `${ownerName}.SlotClone`;
1696
+ return SlotClone;
1416
1697
  }
1417
- var isTypedArray_1;
1418
- var hasRequiredIsTypedArray;
1419
- function requireIsTypedArray() {
1420
- if (hasRequiredIsTypedArray) return isTypedArray_1;
1421
- hasRequiredIsTypedArray = 1;
1422
- var baseIsTypedArray = require_baseIsTypedArray(), baseUnary = require_baseUnary(), nodeUtil = require_nodeUtil();
1423
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
1424
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1425
- isTypedArray_1 = isTypedArray;
1426
- return isTypedArray_1;
1698
+ var SLOTTABLE_IDENTIFIER$1 = Symbol("radix.slottable");
1699
+ function isSlottable$1(child) {
1700
+ return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$1;
1427
1701
  }
1428
- var _arrayLikeKeys;
1429
- var hasRequired_arrayLikeKeys;
1430
- function require_arrayLikeKeys() {
1431
- if (hasRequired_arrayLikeKeys) return _arrayLikeKeys;
1432
- hasRequired_arrayLikeKeys = 1;
1433
- var baseTimes = require_baseTimes(), isArguments = requireIsArguments(), isArray = requireIsArray(), isBuffer2 = requireIsBuffer(), isIndex = require_isIndex(), isTypedArray = requireIsTypedArray();
1434
- var objectProto = Object.prototype;
1435
- var hasOwnProperty = objectProto.hasOwnProperty;
1436
- function arrayLikeKeys(value, inherited) {
1437
- var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer2(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
1438
- for (var key in value) {
1439
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
1440
- (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1441
- isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1442
- isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
1443
- isIndex(key, length)))) {
1444
- result.push(key);
1702
+ function mergeProps$1(slotProps, childProps) {
1703
+ const overrideProps = { ...childProps };
1704
+ for (const propName in childProps) {
1705
+ const slotPropValue = slotProps[propName];
1706
+ const childPropValue = childProps[propName];
1707
+ const isHandler = /^on[A-Z]/.test(propName);
1708
+ if (isHandler) {
1709
+ if (slotPropValue && childPropValue) {
1710
+ overrideProps[propName] = (...args) => {
1711
+ const result = childPropValue(...args);
1712
+ slotPropValue(...args);
1713
+ return result;
1714
+ };
1715
+ } else if (slotPropValue) {
1716
+ overrideProps[propName] = slotPropValue;
1445
1717
  }
1718
+ } else if (propName === "style") {
1719
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
1720
+ } else if (propName === "className") {
1721
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
1446
1722
  }
1447
- return result;
1448
1723
  }
1449
- _arrayLikeKeys = arrayLikeKeys;
1450
- return _arrayLikeKeys;
1724
+ return { ...slotProps, ...overrideProps };
1451
1725
  }
1452
- var _isPrototype;
1453
- var hasRequired_isPrototype;
1454
- function require_isPrototype() {
1455
- if (hasRequired_isPrototype) return _isPrototype;
1456
- hasRequired_isPrototype = 1;
1457
- var objectProto = Object.prototype;
1458
- function isPrototype(value) {
1459
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
1460
- return value === proto;
1726
+ function getElementRef$2(element) {
1727
+ var _a, _b;
1728
+ let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
1729
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1730
+ if (mayWarn) {
1731
+ return element.ref;
1461
1732
  }
1462
- _isPrototype = isPrototype;
1463
- return _isPrototype;
1464
- }
1465
- var _nativeKeys;
1466
- var hasRequired_nativeKeys;
1467
- function require_nativeKeys() {
1468
- if (hasRequired_nativeKeys) return _nativeKeys;
1469
- hasRequired_nativeKeys = 1;
1470
- var overArg = require_overArg();
1471
- var nativeKeys = overArg(Object.keys, Object);
1472
- _nativeKeys = nativeKeys;
1473
- return _nativeKeys;
1733
+ getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
1734
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1735
+ if (mayWarn) {
1736
+ return element.props.ref;
1737
+ }
1738
+ return element.props.ref || element.ref;
1474
1739
  }
1475
- var _baseKeys;
1476
- var hasRequired_baseKeys;
1477
- function require_baseKeys() {
1478
- if (hasRequired_baseKeys) return _baseKeys;
1479
- hasRequired_baseKeys = 1;
1480
- var isPrototype = require_isPrototype(), nativeKeys = require_nativeKeys();
1481
- var objectProto = Object.prototype;
1482
- var hasOwnProperty = objectProto.hasOwnProperty;
1483
- function baseKeys(object) {
1484
- if (!isPrototype(object)) {
1485
- return nativeKeys(object);
1740
+ var NODES$1 = [
1741
+ "a",
1742
+ "button",
1743
+ "div",
1744
+ "form",
1745
+ "h2",
1746
+ "h3",
1747
+ "img",
1748
+ "input",
1749
+ "label",
1750
+ "li",
1751
+ "nav",
1752
+ "ol",
1753
+ "p",
1754
+ "select",
1755
+ "span",
1756
+ "svg",
1757
+ "ul"
1758
+ ];
1759
+ var Primitive$1 = NODES$1.reduce((primitive, node) => {
1760
+ const Slot = /* @__PURE__ */ createSlot$1(`Primitive.${node}`);
1761
+ const Node = React.forwardRef((props, forwardedRef) => {
1762
+ const { asChild, ...primitiveProps } = props;
1763
+ const Comp = asChild ? Slot : node;
1764
+ if (typeof window !== "undefined") {
1765
+ window[Symbol.for("radix-ui")] = true;
1486
1766
  }
1487
- var result = [];
1488
- for (var key in Object(object)) {
1489
- if (hasOwnProperty.call(object, key) && key != "constructor") {
1490
- result.push(key);
1491
- }
1767
+ return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
1768
+ });
1769
+ Node.displayName = `Primitive.${node}`;
1770
+ return { ...primitive, [node]: Node };
1771
+ }, {});
1772
+ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
1773
+ return function handleEvent(event) {
1774
+ originalEventHandler == null ? void 0 : originalEventHandler(event);
1775
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) {
1776
+ return ourEventHandler == null ? void 0 : ourEventHandler(event);
1492
1777
  }
1493
- return result;
1494
- }
1495
- _baseKeys = baseKeys;
1496
- return _baseKeys;
1497
- }
1498
- var keys_1;
1499
- var hasRequiredKeys;
1500
- function requireKeys() {
1501
- if (hasRequiredKeys) return keys_1;
1502
- hasRequiredKeys = 1;
1503
- var arrayLikeKeys = require_arrayLikeKeys(), baseKeys = require_baseKeys(), isArrayLike = requireIsArrayLike();
1504
- function keys(object) {
1505
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
1506
- }
1507
- keys_1 = keys;
1508
- return keys_1;
1778
+ };
1509
1779
  }
1510
- var _getAllKeys;
1511
- var hasRequired_getAllKeys;
1512
- function require_getAllKeys() {
1513
- if (hasRequired_getAllKeys) return _getAllKeys;
1514
- hasRequired_getAllKeys = 1;
1515
- var baseGetAllKeys = require_baseGetAllKeys(), getSymbols = require_getSymbols(), keys = requireKeys();
1516
- function getAllKeys(object) {
1517
- return baseGetAllKeys(object, keys, getSymbols);
1780
+ var useLayoutEffect2$1 = (globalThis == null ? void 0 : globalThis.document) ? React.useLayoutEffect : () => {
1781
+ };
1782
+ function setRef(ref, value) {
1783
+ if (typeof ref === "function") {
1784
+ return ref(value);
1785
+ } else if (ref !== null && ref !== void 0) {
1786
+ ref.current = value;
1518
1787
  }
1519
- _getAllKeys = getAllKeys;
1520
- return _getAllKeys;
1521
1788
  }
1522
- var _equalObjects;
1523
- var hasRequired_equalObjects;
1524
- function require_equalObjects() {
1525
- if (hasRequired_equalObjects) return _equalObjects;
1526
- hasRequired_equalObjects = 1;
1527
- var getAllKeys = require_getAllKeys();
1528
- var COMPARE_PARTIAL_FLAG = 1;
1529
- var objectProto = Object.prototype;
1530
- var hasOwnProperty = objectProto.hasOwnProperty;
1531
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1532
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
1533
- if (objLength != othLength && !isPartial) {
1534
- return false;
1535
- }
1536
- var index = objLength;
1537
- while (index--) {
1538
- var key = objProps[index];
1539
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
1540
- return false;
1789
+ function composeRefs(...refs) {
1790
+ return (node) => {
1791
+ let hasCleanup = false;
1792
+ const cleanups = refs.map((ref) => {
1793
+ const cleanup = setRef(ref, node);
1794
+ if (!hasCleanup && typeof cleanup == "function") {
1795
+ hasCleanup = true;
1541
1796
  }
1797
+ return cleanup;
1798
+ });
1799
+ if (hasCleanup) {
1800
+ return () => {
1801
+ for (let i = 0; i < cleanups.length; i++) {
1802
+ const cleanup = cleanups[i];
1803
+ if (typeof cleanup == "function") {
1804
+ cleanup();
1805
+ } else {
1806
+ setRef(refs[i], null);
1807
+ }
1808
+ }
1809
+ };
1542
1810
  }
1543
- var objStacked = stack.get(object);
1544
- var othStacked = stack.get(other);
1545
- if (objStacked && othStacked) {
1546
- return objStacked == other && othStacked == object;
1811
+ };
1812
+ }
1813
+ function useComposedRefs(...refs) {
1814
+ return React.useCallback(composeRefs(...refs), refs);
1815
+ }
1816
+ // @__NO_SIDE_EFFECTS__
1817
+ function createSlot(ownerName) {
1818
+ const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
1819
+ const Slot2 = React.forwardRef((props, forwardedRef) => {
1820
+ const { children, ...slotProps } = props;
1821
+ const childrenArray = React.Children.toArray(children);
1822
+ const slottable = childrenArray.find(isSlottable);
1823
+ if (slottable) {
1824
+ const newElement = slottable.props.children;
1825
+ const newChildren = childrenArray.map((child) => {
1826
+ if (child === slottable) {
1827
+ if (React.Children.count(newElement) > 1) return React.Children.only(null);
1828
+ return React.isValidElement(newElement) ? newElement.props.children : null;
1829
+ } else {
1830
+ return child;
1831
+ }
1832
+ });
1833
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
1547
1834
  }
1548
- var result = true;
1549
- stack.set(object, other);
1550
- stack.set(other, object);
1551
- var skipCtor = isPartial;
1552
- while (++index < objLength) {
1553
- key = objProps[index];
1554
- var objValue = object[key], othValue = other[key];
1555
- if (customizer) {
1556
- var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
1557
- }
1558
- if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
1559
- result = false;
1560
- break;
1835
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
1836
+ });
1837
+ Slot2.displayName = `${ownerName}.Slot`;
1838
+ return Slot2;
1839
+ }
1840
+ // @__NO_SIDE_EFFECTS__
1841
+ function createSlotClone(ownerName) {
1842
+ const SlotClone = React.forwardRef((props, forwardedRef) => {
1843
+ const { children, ...slotProps } = props;
1844
+ if (React.isValidElement(children)) {
1845
+ const childrenRef = getElementRef$1(children);
1846
+ const props2 = mergeProps(slotProps, children.props);
1847
+ if (children.type !== React.Fragment) {
1848
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
1561
1849
  }
1562
- skipCtor || (skipCtor = key == "constructor");
1850
+ return React.cloneElement(children, props2);
1563
1851
  }
1564
- if (result && !skipCtor) {
1565
- var objCtor = object.constructor, othCtor = other.constructor;
1566
- if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
1567
- result = false;
1852
+ return React.Children.count(children) > 1 ? React.Children.only(null) : null;
1853
+ });
1854
+ SlotClone.displayName = `${ownerName}.SlotClone`;
1855
+ return SlotClone;
1856
+ }
1857
+ var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
1858
+ function isSlottable(child) {
1859
+ return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
1860
+ }
1861
+ function mergeProps(slotProps, childProps) {
1862
+ const overrideProps = { ...childProps };
1863
+ for (const propName in childProps) {
1864
+ const slotPropValue = slotProps[propName];
1865
+ const childPropValue = childProps[propName];
1866
+ const isHandler = /^on[A-Z]/.test(propName);
1867
+ if (isHandler) {
1868
+ if (slotPropValue && childPropValue) {
1869
+ overrideProps[propName] = (...args) => {
1870
+ const result = childPropValue(...args);
1871
+ slotPropValue(...args);
1872
+ return result;
1873
+ };
1874
+ } else if (slotPropValue) {
1875
+ overrideProps[propName] = slotPropValue;
1568
1876
  }
1877
+ } else if (propName === "style") {
1878
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
1879
+ } else if (propName === "className") {
1880
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
1569
1881
  }
1570
- stack["delete"](object);
1571
- stack["delete"](other);
1572
- return result;
1573
1882
  }
1574
- _equalObjects = equalObjects;
1575
- return _equalObjects;
1576
- }
1577
- var _DataView;
1578
- var hasRequired_DataView;
1579
- function require_DataView() {
1580
- if (hasRequired_DataView) return _DataView;
1581
- hasRequired_DataView = 1;
1582
- var getNative = require_getNative(), root = require_root();
1583
- var DataView = getNative(root, "DataView");
1584
- _DataView = DataView;
1585
- return _DataView;
1586
- }
1587
- var _Promise;
1588
- var hasRequired_Promise;
1589
- function require_Promise() {
1590
- if (hasRequired_Promise) return _Promise;
1591
- hasRequired_Promise = 1;
1592
- var getNative = require_getNative(), root = require_root();
1593
- var Promise2 = getNative(root, "Promise");
1594
- _Promise = Promise2;
1595
- return _Promise;
1596
- }
1597
- var _Set;
1598
- var hasRequired_Set;
1599
- function require_Set() {
1600
- if (hasRequired_Set) return _Set;
1601
- hasRequired_Set = 1;
1602
- var getNative = require_getNative(), root = require_root();
1603
- var Set = getNative(root, "Set");
1604
- _Set = Set;
1605
- return _Set;
1606
- }
1607
- var _WeakMap;
1608
- var hasRequired_WeakMap;
1609
- function require_WeakMap() {
1610
- if (hasRequired_WeakMap) return _WeakMap;
1611
- hasRequired_WeakMap = 1;
1612
- var getNative = require_getNative(), root = require_root();
1613
- var WeakMap = getNative(root, "WeakMap");
1614
- _WeakMap = WeakMap;
1615
- return _WeakMap;
1883
+ return { ...slotProps, ...overrideProps };
1616
1884
  }
1617
- var _getTag;
1618
- var hasRequired_getTag;
1619
- function require_getTag() {
1620
- if (hasRequired_getTag) return _getTag;
1621
- hasRequired_getTag = 1;
1622
- var DataView = require_DataView(), Map2 = require_Map(), Promise2 = require_Promise(), Set = require_Set(), WeakMap = require_WeakMap(), baseGetTag = require_baseGetTag(), toSource = require_toSource();
1623
- var mapTag = "[object Map]", objectTag = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
1624
- var dataViewTag = "[object DataView]";
1625
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
1626
- var getTag = baseGetTag;
1627
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
1628
- getTag = function(value) {
1629
- var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
1630
- if (ctorString) {
1631
- switch (ctorString) {
1632
- case dataViewCtorString:
1633
- return dataViewTag;
1634
- case mapCtorString:
1635
- return mapTag;
1636
- case promiseCtorString:
1637
- return promiseTag;
1638
- case setCtorString:
1639
- return setTag;
1640
- case weakMapCtorString:
1641
- return weakMapTag;
1642
- }
1643
- }
1644
- return result;
1645
- };
1885
+ function getElementRef$1(element) {
1886
+ var _a, _b;
1887
+ let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
1888
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1889
+ if (mayWarn) {
1890
+ return element.ref;
1646
1891
  }
1647
- _getTag = getTag;
1648
- return _getTag;
1892
+ getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
1893
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1894
+ if (mayWarn) {
1895
+ return element.props.ref;
1896
+ }
1897
+ return element.props.ref || element.ref;
1649
1898
  }
1650
- var _baseIsEqualDeep;
1651
- var hasRequired_baseIsEqualDeep;
1652
- function require_baseIsEqualDeep() {
1653
- if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep;
1654
- hasRequired_baseIsEqualDeep = 1;
1655
- var Stack = require_Stack(), equalArrays = require_equalArrays(), equalByTag = require_equalByTag(), equalObjects = require_equalObjects(), getTag = require_getTag(), isArray = requireIsArray(), isBuffer2 = requireIsBuffer(), isTypedArray = requireIsTypedArray();
1656
- var COMPARE_PARTIAL_FLAG = 1;
1657
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
1658
- var objectProto = Object.prototype;
1659
- var hasOwnProperty = objectProto.hasOwnProperty;
1660
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
1661
- var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
1662
- objTag = objTag == argsTag ? objectTag : objTag;
1663
- othTag = othTag == argsTag ? objectTag : othTag;
1664
- var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
1665
- if (isSameTag && isBuffer2(object)) {
1666
- if (!isBuffer2(other)) {
1667
- return false;
1668
- }
1669
- objIsArr = true;
1670
- objIsObj = false;
1899
+ var NODES = [
1900
+ "a",
1901
+ "button",
1902
+ "div",
1903
+ "form",
1904
+ "h2",
1905
+ "h3",
1906
+ "img",
1907
+ "input",
1908
+ "label",
1909
+ "li",
1910
+ "nav",
1911
+ "ol",
1912
+ "p",
1913
+ "select",
1914
+ "span",
1915
+ "svg",
1916
+ "ul"
1917
+ ];
1918
+ var Primitive = NODES.reduce((primitive, node) => {
1919
+ const Slot = /* @__PURE__ */ createSlot(`Primitive.${node}`);
1920
+ const Node = React.forwardRef((props, forwardedRef) => {
1921
+ const { asChild, ...primitiveProps } = props;
1922
+ const Comp = asChild ? Slot : node;
1923
+ if (typeof window !== "undefined") {
1924
+ window[Symbol.for("radix-ui")] = true;
1671
1925
  }
1672
- if (isSameTag && !objIsObj) {
1673
- stack || (stack = new Stack());
1674
- return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
1926
+ return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
1927
+ });
1928
+ Node.displayName = `Primitive.${node}`;
1929
+ return { ...primitive, [node]: Node };
1930
+ }, {});
1931
+ function useStateMachine(initialState, machine) {
1932
+ return React.useReducer((state, event) => {
1933
+ const nextState = machine[state][event];
1934
+ return nextState ?? state;
1935
+ }, initialState);
1936
+ }
1937
+ var Presence = (props) => {
1938
+ const { present, children } = props;
1939
+ const presence = usePresence(present);
1940
+ const child = typeof children === "function" ? children({ present: presence.isPresent }) : React.Children.only(children);
1941
+ const ref = useComposedRefs(presence.ref, getElementRef(child));
1942
+ const forceMount = typeof children === "function";
1943
+ return forceMount || presence.isPresent ? React.cloneElement(child, { ref }) : null;
1944
+ };
1945
+ Presence.displayName = "Presence";
1946
+ function usePresence(present) {
1947
+ const [node, setNode] = React.useState();
1948
+ const stylesRef = React.useRef(null);
1949
+ const prevPresentRef = React.useRef(present);
1950
+ const prevAnimationNameRef = React.useRef("none");
1951
+ const initialState = present ? "mounted" : "unmounted";
1952
+ const [state, send] = useStateMachine(initialState, {
1953
+ mounted: {
1954
+ UNMOUNT: "unmounted",
1955
+ ANIMATION_OUT: "unmountSuspended"
1956
+ },
1957
+ unmountSuspended: {
1958
+ MOUNT: "mounted",
1959
+ ANIMATION_END: "unmounted"
1960
+ },
1961
+ unmounted: {
1962
+ MOUNT: "mounted"
1675
1963
  }
1676
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
1677
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
1678
- if (objIsWrapped || othIsWrapped) {
1679
- var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
1680
- stack || (stack = new Stack());
1681
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
1964
+ });
1965
+ React.useEffect(() => {
1966
+ const currentAnimationName = getAnimationName(stylesRef.current);
1967
+ prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
1968
+ }, [state]);
1969
+ useLayoutEffect2$1(() => {
1970
+ const styles2 = stylesRef.current;
1971
+ const wasPresent = prevPresentRef.current;
1972
+ const hasPresentChanged = wasPresent !== present;
1973
+ if (hasPresentChanged) {
1974
+ const prevAnimationName = prevAnimationNameRef.current;
1975
+ const currentAnimationName = getAnimationName(styles2);
1976
+ if (present) {
1977
+ send("MOUNT");
1978
+ } else if (currentAnimationName === "none" || (styles2 == null ? void 0 : styles2.display) === "none") {
1979
+ send("UNMOUNT");
1980
+ } else {
1981
+ const isAnimating = prevAnimationName !== currentAnimationName;
1982
+ if (wasPresent && isAnimating) {
1983
+ send("ANIMATION_OUT");
1984
+ } else {
1985
+ send("UNMOUNT");
1986
+ }
1682
1987
  }
1988
+ prevPresentRef.current = present;
1683
1989
  }
1684
- if (!isSameTag) {
1685
- return false;
1990
+ }, [present, send]);
1991
+ useLayoutEffect2$1(() => {
1992
+ if (node) {
1993
+ let timeoutId;
1994
+ const ownerWindow = node.ownerDocument.defaultView ?? window;
1995
+ const handleAnimationEnd = (event) => {
1996
+ const currentAnimationName = getAnimationName(stylesRef.current);
1997
+ const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));
1998
+ if (event.target === node && isCurrentAnimation) {
1999
+ send("ANIMATION_END");
2000
+ if (!prevPresentRef.current) {
2001
+ const currentFillMode = node.style.animationFillMode;
2002
+ node.style.animationFillMode = "forwards";
2003
+ timeoutId = ownerWindow.setTimeout(() => {
2004
+ if (node.style.animationFillMode === "forwards") {
2005
+ node.style.animationFillMode = currentFillMode;
2006
+ }
2007
+ });
2008
+ }
2009
+ }
2010
+ };
2011
+ const handleAnimationStart = (event) => {
2012
+ if (event.target === node) {
2013
+ prevAnimationNameRef.current = getAnimationName(stylesRef.current);
2014
+ }
2015
+ };
2016
+ node.addEventListener("animationstart", handleAnimationStart);
2017
+ node.addEventListener("animationcancel", handleAnimationEnd);
2018
+ node.addEventListener("animationend", handleAnimationEnd);
2019
+ return () => {
2020
+ ownerWindow.clearTimeout(timeoutId);
2021
+ node.removeEventListener("animationstart", handleAnimationStart);
2022
+ node.removeEventListener("animationcancel", handleAnimationEnd);
2023
+ node.removeEventListener("animationend", handleAnimationEnd);
2024
+ };
2025
+ } else {
2026
+ send("ANIMATION_END");
1686
2027
  }
1687
- stack || (stack = new Stack());
1688
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
1689
- }
1690
- _baseIsEqualDeep = baseIsEqualDeep;
1691
- return _baseIsEqualDeep;
2028
+ }, [node, send]);
2029
+ return {
2030
+ isPresent: ["mounted", "unmountSuspended"].includes(state),
2031
+ ref: React.useCallback((node2) => {
2032
+ stylesRef.current = node2 ? getComputedStyle(node2) : null;
2033
+ setNode(node2);
2034
+ }, [])
2035
+ };
1692
2036
  }
1693
- var _baseIsEqual;
1694
- var hasRequired_baseIsEqual;
1695
- function require_baseIsEqual() {
1696
- if (hasRequired_baseIsEqual) return _baseIsEqual;
1697
- hasRequired_baseIsEqual = 1;
1698
- var baseIsEqualDeep = require_baseIsEqualDeep(), isObjectLike = requireIsObjectLike();
1699
- function baseIsEqual(value, other, bitmask, customizer, stack) {
1700
- if (value === other) {
1701
- return true;
1702
- }
1703
- if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
1704
- return value !== value && other !== other;
1705
- }
1706
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
1707
- }
1708
- _baseIsEqual = baseIsEqual;
1709
- return _baseIsEqual;
2037
+ function getAnimationName(styles2) {
2038
+ return (styles2 == null ? void 0 : styles2.animationName) || "none";
1710
2039
  }
1711
- var isEqual_1;
1712
- var hasRequiredIsEqual;
1713
- function requireIsEqual() {
1714
- if (hasRequiredIsEqual) return isEqual_1;
1715
- hasRequiredIsEqual = 1;
1716
- var baseIsEqual = require_baseIsEqual();
1717
- function isEqual2(value, other) {
1718
- return baseIsEqual(value, other);
2040
+ function getElementRef(element) {
2041
+ var _a, _b;
2042
+ let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
2043
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
2044
+ if (mayWarn) {
2045
+ return element.ref;
1719
2046
  }
1720
- isEqual_1 = isEqual2;
1721
- return isEqual_1;
1722
- }
1723
- var isEqualExports = requireIsEqual();
1724
- const isEqual = /* @__PURE__ */ getDefaultExportFromCjs(isEqualExports);
1725
- function createCollection(name) {
1726
- const PROVIDER_NAME = name + "CollectionProvider";
1727
- const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME);
1728
- const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
1729
- PROVIDER_NAME,
1730
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
1731
- );
1732
- const CollectionProvider = (props) => {
1733
- const { scope, children } = props;
1734
- const ref = React__default.useRef(null);
1735
- const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
1736
- return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
1737
- };
1738
- CollectionProvider.displayName = PROVIDER_NAME;
1739
- const COLLECTION_SLOT_NAME = name + "CollectionSlot";
1740
- const CollectionSlotImpl = /* @__PURE__ */ createSlot(COLLECTION_SLOT_NAME);
1741
- const CollectionSlot = React__default.forwardRef(
1742
- (props, forwardedRef) => {
1743
- const { scope, children } = props;
1744
- const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
1745
- const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
1746
- return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });
1747
- }
1748
- );
1749
- CollectionSlot.displayName = COLLECTION_SLOT_NAME;
1750
- const ITEM_SLOT_NAME = name + "CollectionItemSlot";
1751
- const ITEM_DATA_ATTR = "data-radix-collection-item";
1752
- const CollectionItemSlotImpl = /* @__PURE__ */ createSlot(ITEM_SLOT_NAME);
1753
- const CollectionItemSlot = React__default.forwardRef(
1754
- (props, forwardedRef) => {
1755
- const { scope, children, ...itemData } = props;
1756
- const ref = React__default.useRef(null);
1757
- const composedRefs = useComposedRefs(forwardedRef, ref);
1758
- const context = useCollectionContext(ITEM_SLOT_NAME, scope);
1759
- React__default.useEffect(() => {
1760
- context.itemMap.set(ref, { ref, ...itemData });
1761
- return () => void context.itemMap.delete(ref);
1762
- });
1763
- return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
1764
- }
1765
- );
1766
- CollectionItemSlot.displayName = ITEM_SLOT_NAME;
1767
- function useCollection2(scope) {
1768
- const context = useCollectionContext(name + "CollectionConsumer", scope);
1769
- const getItems = React__default.useCallback(() => {
1770
- const collectionNode = context.collectionRef.current;
1771
- if (!collectionNode) return [];
1772
- const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
1773
- const items = Array.from(context.itemMap.values());
1774
- const orderedItems = items.sort(
1775
- (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
1776
- );
1777
- return orderedItems;
1778
- }, [context.collectionRef, context.itemMap]);
1779
- return getItems;
2047
+ getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
2048
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
2049
+ if (mayWarn) {
2050
+ return element.props.ref;
1780
2051
  }
1781
- return [
1782
- { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
1783
- useCollection2,
1784
- createCollectionScope2
1785
- ];
2052
+ return element.props.ref || element.ref;
2053
+ }
2054
+ var useLayoutEffect2 = (globalThis == null ? void 0 : globalThis.document) ? React.useLayoutEffect : () => {
2055
+ };
2056
+ var useReactId = React[" useId ".trim().toString()] || (() => void 0);
2057
+ var count = 0;
2058
+ function useId(deterministicId) {
2059
+ const [id, setId] = React.useState(useReactId());
2060
+ useLayoutEffect2(() => {
2061
+ setId((reactId) => reactId ?? String(count++));
2062
+ }, [deterministicId]);
2063
+ return id ? `radix-${id}` : "";
1786
2064
  }
1787
2065
  var COLLAPSIBLE_NAME = "Collapsible";
1788
2066
  var [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
@@ -1873,7 +2151,7 @@ var CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {
1873
2151
  const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
1874
2152
  return () => cancelAnimationFrame(rAF);
1875
2153
  }, []);
1876
- useLayoutEffect2(() => {
2154
+ useLayoutEffect2$1(() => {
1877
2155
  const node = ref.current;
1878
2156
  if (node) {
1879
2157
  originalStylesRef.current = originalStylesRef.current || {
@@ -2009,11 +2287,11 @@ var AccordionImpl = React__default.forwardRef(
2009
2287
  (props, forwardedRef) => {
2010
2288
  const { __scopeAccordion, disabled, dir, orientation = "vertical", ...accordionProps } = props;
2011
2289
  const accordionRef = React__default.useRef(null);
2012
- const composedRefs = useComposedRefs(accordionRef, forwardedRef);
2290
+ const composedRefs = useComposedRefs$1(accordionRef, forwardedRef);
2013
2291
  const getItems = useCollection(__scopeAccordion);
2014
2292
  const direction = useDirection(dir);
2015
2293
  const isDirectionLTR = direction === "ltr";
2016
- const handleKeyDown = composeEventHandlers(props.onKeyDown, (event) => {
2294
+ const handleKeyDown = composeEventHandlers$1(props.onKeyDown, (event) => {
2017
2295
  var _a;
2018
2296
  if (!ACCORDION_KEYS.includes(event.key)) return;
2019
2297
  const target = event.target;
@@ -2087,7 +2365,7 @@ var AccordionImpl = React__default.forwardRef(
2087
2365
  direction: dir,
2088
2366
  orientation,
2089
2367
  children: /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(
2090
- Primitive.div,
2368
+ Primitive$1.div,
2091
2369
  {
2092
2370
  ...accordionProps,
2093
2371
  "data-orientation": orientation,
@@ -2148,7 +2426,7 @@ var AccordionHeader = React__default.forwardRef(
2148
2426
  const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
2149
2427
  const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);
2150
2428
  return /* @__PURE__ */ jsx(
2151
- Primitive.h3,
2429
+ Primitive$1.h3,
2152
2430
  {
2153
2431
  "data-orientation": accordionContext.orientation,
2154
2432
  "data-state": getState(itemContext.open),