@timardex/cluemart-server-shared 1.1.39 → 2.0.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.
package/dist/index.mjs CHANGED
@@ -1,3 +1,1490 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ // node_modules/react/cjs/react.production.js
28
+ var require_react_production = __commonJS({
29
+ "node_modules/react/cjs/react.production.js"(exports) {
30
+ "use strict";
31
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
32
+ var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
33
+ var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
34
+ var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
35
+ var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
36
+ var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
37
+ var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
38
+ var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
39
+ var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
40
+ var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
41
+ var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
42
+ var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
43
+ var REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition");
44
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
45
+ function getIteratorFn(maybeIterable) {
46
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
47
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
48
+ return "function" === typeof maybeIterable ? maybeIterable : null;
49
+ }
50
+ var ReactNoopUpdateQueue = {
51
+ isMounted: function() {
52
+ return false;
53
+ },
54
+ enqueueForceUpdate: function() {
55
+ },
56
+ enqueueReplaceState: function() {
57
+ },
58
+ enqueueSetState: function() {
59
+ }
60
+ };
61
+ var assign = Object.assign;
62
+ var emptyObject = {};
63
+ function Component(props, context, updater) {
64
+ this.props = props;
65
+ this.context = context;
66
+ this.refs = emptyObject;
67
+ this.updater = updater || ReactNoopUpdateQueue;
68
+ }
69
+ Component.prototype.isReactComponent = {};
70
+ Component.prototype.setState = function(partialState, callback) {
71
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
72
+ throw Error(
73
+ "takes an object of state variables to update or a function which returns an object of state variables."
74
+ );
75
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
76
+ };
77
+ Component.prototype.forceUpdate = function(callback) {
78
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
79
+ };
80
+ function ComponentDummy() {
81
+ }
82
+ ComponentDummy.prototype = Component.prototype;
83
+ function PureComponent(props, context, updater) {
84
+ this.props = props;
85
+ this.context = context;
86
+ this.refs = emptyObject;
87
+ this.updater = updater || ReactNoopUpdateQueue;
88
+ }
89
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
90
+ pureComponentPrototype.constructor = PureComponent;
91
+ assign(pureComponentPrototype, Component.prototype);
92
+ pureComponentPrototype.isPureReactComponent = true;
93
+ var isArrayImpl = Array.isArray;
94
+ function noop() {
95
+ }
96
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null };
97
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
98
+ function ReactElement(type, key, props) {
99
+ var refProp = props.ref;
100
+ return {
101
+ $$typeof: REACT_ELEMENT_TYPE,
102
+ type,
103
+ key,
104
+ ref: void 0 !== refProp ? refProp : null,
105
+ props
106
+ };
107
+ }
108
+ function cloneAndReplaceKey(oldElement, newKey) {
109
+ return ReactElement(oldElement.type, newKey, oldElement.props);
110
+ }
111
+ function isValidElement(object) {
112
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
113
+ }
114
+ function escape(key) {
115
+ var escaperLookup = { "=": "=0", ":": "=2" };
116
+ return "$" + key.replace(/[=:]/g, function(match) {
117
+ return escaperLookup[match];
118
+ });
119
+ }
120
+ var userProvidedKeyEscapeRegex = /\/+/g;
121
+ function getElementKey(element, index) {
122
+ return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
123
+ }
124
+ function resolveThenable(thenable) {
125
+ switch (thenable.status) {
126
+ case "fulfilled":
127
+ return thenable.value;
128
+ case "rejected":
129
+ throw thenable.reason;
130
+ default:
131
+ switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
132
+ function(fulfilledValue) {
133
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
134
+ },
135
+ function(error) {
136
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
137
+ }
138
+ )), thenable.status) {
139
+ case "fulfilled":
140
+ return thenable.value;
141
+ case "rejected":
142
+ throw thenable.reason;
143
+ }
144
+ }
145
+ throw thenable;
146
+ }
147
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
148
+ var type = typeof children;
149
+ if ("undefined" === type || "boolean" === type) children = null;
150
+ var invokeCallback = false;
151
+ if (null === children) invokeCallback = true;
152
+ else
153
+ switch (type) {
154
+ case "bigint":
155
+ case "string":
156
+ case "number":
157
+ invokeCallback = true;
158
+ break;
159
+ case "object":
160
+ switch (children.$$typeof) {
161
+ case REACT_ELEMENT_TYPE:
162
+ case REACT_PORTAL_TYPE:
163
+ invokeCallback = true;
164
+ break;
165
+ case REACT_LAZY_TYPE:
166
+ return invokeCallback = children._init, mapIntoArray(
167
+ invokeCallback(children._payload),
168
+ array,
169
+ escapedPrefix,
170
+ nameSoFar,
171
+ callback
172
+ );
173
+ }
174
+ }
175
+ if (invokeCallback)
176
+ return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
177
+ return c;
178
+ })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
179
+ callback,
180
+ escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
181
+ userProvidedKeyEscapeRegex,
182
+ "$&/"
183
+ ) + "/") + invokeCallback
184
+ )), array.push(callback)), 1;
185
+ invokeCallback = 0;
186
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
187
+ if (isArrayImpl(children))
188
+ for (var i = 0; i < children.length; i++)
189
+ nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
190
+ nameSoFar,
191
+ array,
192
+ escapedPrefix,
193
+ type,
194
+ callback
195
+ );
196
+ else if (i = getIteratorFn(children), "function" === typeof i)
197
+ for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
198
+ nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
199
+ nameSoFar,
200
+ array,
201
+ escapedPrefix,
202
+ type,
203
+ callback
204
+ );
205
+ else if ("object" === type) {
206
+ if ("function" === typeof children.then)
207
+ return mapIntoArray(
208
+ resolveThenable(children),
209
+ array,
210
+ escapedPrefix,
211
+ nameSoFar,
212
+ callback
213
+ );
214
+ array = String(children);
215
+ throw Error(
216
+ "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
217
+ );
218
+ }
219
+ return invokeCallback;
220
+ }
221
+ function mapChildren(children, func, context) {
222
+ if (null == children) return children;
223
+ var result = [], count = 0;
224
+ mapIntoArray(children, result, "", "", function(child) {
225
+ return func.call(context, child, count++);
226
+ });
227
+ return result;
228
+ }
229
+ function lazyInitializer(payload) {
230
+ if (-1 === payload._status) {
231
+ var ctor = payload._result, thenable = ctor();
232
+ thenable.then(
233
+ function(moduleObject) {
234
+ if (0 === payload._status || -1 === payload._status)
235
+ payload._status = 1, payload._result = moduleObject, void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
236
+ },
237
+ function(error) {
238
+ if (0 === payload._status || -1 === payload._status)
239
+ payload._status = 2, payload._result = error, void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
240
+ }
241
+ );
242
+ -1 === payload._status && (payload._status = 0, payload._result = thenable);
243
+ }
244
+ if (1 === payload._status) return payload._result.default;
245
+ throw payload._result;
246
+ }
247
+ var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
248
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
249
+ var event = new window.ErrorEvent("error", {
250
+ bubbles: true,
251
+ cancelable: true,
252
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
253
+ error
254
+ });
255
+ if (!window.dispatchEvent(event)) return;
256
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
257
+ process.emit("uncaughtException", error);
258
+ return;
259
+ }
260
+ console.error(error);
261
+ };
262
+ function startTransition(scope) {
263
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
264
+ currentTransition.types = null !== prevTransition ? prevTransition.types : null;
265
+ ReactSharedInternals.T = currentTransition;
266
+ try {
267
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
268
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
269
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
270
+ } catch (error) {
271
+ reportGlobalError(error);
272
+ } finally {
273
+ null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
274
+ }
275
+ }
276
+ function addTransitionType(type) {
277
+ var transition = ReactSharedInternals.T;
278
+ if (null !== transition) {
279
+ var transitionTypes = transition.types;
280
+ null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
281
+ } else startTransition(addTransitionType.bind(null, type));
282
+ }
283
+ var Children = {
284
+ map: mapChildren,
285
+ forEach: function(children, forEachFunc, forEachContext) {
286
+ mapChildren(
287
+ children,
288
+ function() {
289
+ forEachFunc.apply(this, arguments);
290
+ },
291
+ forEachContext
292
+ );
293
+ },
294
+ count: function(children) {
295
+ var n = 0;
296
+ mapChildren(children, function() {
297
+ n++;
298
+ });
299
+ return n;
300
+ },
301
+ toArray: function(children) {
302
+ return mapChildren(children, function(child) {
303
+ return child;
304
+ }) || [];
305
+ },
306
+ only: function(children) {
307
+ if (!isValidElement(children))
308
+ throw Error(
309
+ "React.Children.only expected to receive a single React element child."
310
+ );
311
+ return children;
312
+ }
313
+ };
314
+ exports.Activity = REACT_ACTIVITY_TYPE;
315
+ exports.Children = Children;
316
+ exports.Component = Component;
317
+ exports.Fragment = REACT_FRAGMENT_TYPE;
318
+ exports.Profiler = REACT_PROFILER_TYPE;
319
+ exports.PureComponent = PureComponent;
320
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
321
+ exports.Suspense = REACT_SUSPENSE_TYPE;
322
+ exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
323
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
324
+ exports.__COMPILER_RUNTIME = {
325
+ __proto__: null,
326
+ c: function(size) {
327
+ return ReactSharedInternals.H.useMemoCache(size);
328
+ }
329
+ };
330
+ exports.addTransitionType = addTransitionType;
331
+ exports.cache = function(fn) {
332
+ return function() {
333
+ return fn.apply(null, arguments);
334
+ };
335
+ };
336
+ exports.cacheSignal = function() {
337
+ return null;
338
+ };
339
+ exports.cloneElement = function(element, config, children) {
340
+ if (null === element || void 0 === element)
341
+ throw Error(
342
+ "The argument must be a React element, but you passed " + element + "."
343
+ );
344
+ var props = assign({}, element.props), key = element.key;
345
+ if (null != config)
346
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
347
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
348
+ var propName = arguments.length - 2;
349
+ if (1 === propName) props.children = children;
350
+ else if (1 < propName) {
351
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
352
+ childArray[i] = arguments[i + 2];
353
+ props.children = childArray;
354
+ }
355
+ return ReactElement(element.type, key, props);
356
+ };
357
+ exports.createContext = function(defaultValue) {
358
+ defaultValue = {
359
+ $$typeof: REACT_CONTEXT_TYPE,
360
+ _currentValue: defaultValue,
361
+ _currentValue2: defaultValue,
362
+ _threadCount: 0,
363
+ Provider: null,
364
+ Consumer: null
365
+ };
366
+ defaultValue.Provider = defaultValue;
367
+ defaultValue.Consumer = {
368
+ $$typeof: REACT_CONSUMER_TYPE,
369
+ _context: defaultValue
370
+ };
371
+ return defaultValue;
372
+ };
373
+ exports.createElement = function(type, config, children) {
374
+ var propName, props = {}, key = null;
375
+ if (null != config)
376
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
377
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
378
+ var childrenLength = arguments.length - 2;
379
+ if (1 === childrenLength) props.children = children;
380
+ else if (1 < childrenLength) {
381
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
382
+ childArray[i] = arguments[i + 2];
383
+ props.children = childArray;
384
+ }
385
+ if (type && type.defaultProps)
386
+ for (propName in childrenLength = type.defaultProps, childrenLength)
387
+ void 0 === props[propName] && (props[propName] = childrenLength[propName]);
388
+ return ReactElement(type, key, props);
389
+ };
390
+ exports.createRef = function() {
391
+ return { current: null };
392
+ };
393
+ exports.forwardRef = function(render) {
394
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render };
395
+ };
396
+ exports.isValidElement = isValidElement;
397
+ exports.lazy = function(ctor) {
398
+ return {
399
+ $$typeof: REACT_LAZY_TYPE,
400
+ _payload: { _status: -1, _result: ctor },
401
+ _init: lazyInitializer
402
+ };
403
+ };
404
+ exports.memo = function(type, compare) {
405
+ return {
406
+ $$typeof: REACT_MEMO_TYPE,
407
+ type,
408
+ compare: void 0 === compare ? null : compare
409
+ };
410
+ };
411
+ exports.startTransition = startTransition;
412
+ exports.unstable_useCacheRefresh = function() {
413
+ return ReactSharedInternals.H.useCacheRefresh();
414
+ };
415
+ exports.use = function(usable) {
416
+ return ReactSharedInternals.H.use(usable);
417
+ };
418
+ exports.useActionState = function(action, initialState, permalink) {
419
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
420
+ };
421
+ exports.useCallback = function(callback, deps) {
422
+ return ReactSharedInternals.H.useCallback(callback, deps);
423
+ };
424
+ exports.useContext = function(Context) {
425
+ return ReactSharedInternals.H.useContext(Context);
426
+ };
427
+ exports.useDebugValue = function() {
428
+ };
429
+ exports.useDeferredValue = function(value, initialValue) {
430
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
431
+ };
432
+ exports.useEffect = function(create, deps) {
433
+ return ReactSharedInternals.H.useEffect(create, deps);
434
+ };
435
+ exports.useEffectEvent = function(callback) {
436
+ return ReactSharedInternals.H.useEffectEvent(callback);
437
+ };
438
+ exports.useId = function() {
439
+ return ReactSharedInternals.H.useId();
440
+ };
441
+ exports.useImperativeHandle = function(ref, create, deps) {
442
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
443
+ };
444
+ exports.useInsertionEffect = function(create, deps) {
445
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
446
+ };
447
+ exports.useLayoutEffect = function(create, deps) {
448
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
449
+ };
450
+ exports.useMemo = function(create, deps) {
451
+ return ReactSharedInternals.H.useMemo(create, deps);
452
+ };
453
+ exports.useOptimistic = function(passthrough, reducer) {
454
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
455
+ };
456
+ exports.useReducer = function(reducer, initialArg, init) {
457
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
458
+ };
459
+ exports.useRef = function(initialValue) {
460
+ return ReactSharedInternals.H.useRef(initialValue);
461
+ };
462
+ exports.useState = function(initialState) {
463
+ return ReactSharedInternals.H.useState(initialState);
464
+ };
465
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
466
+ return ReactSharedInternals.H.useSyncExternalStore(
467
+ subscribe,
468
+ getSnapshot,
469
+ getServerSnapshot
470
+ );
471
+ };
472
+ exports.useTransition = function() {
473
+ return ReactSharedInternals.H.useTransition();
474
+ };
475
+ exports.version = "19.3.0";
476
+ }
477
+ });
478
+
479
+ // node_modules/react/cjs/react.development.js
480
+ var require_react_development = __commonJS({
481
+ "node_modules/react/cjs/react.development.js"(exports, module) {
482
+ "use strict";
483
+ "production" !== process.env.NODE_ENV && (function() {
484
+ function defineDeprecationWarning(methodName, info) {
485
+ Object.defineProperty(Component.prototype, methodName, {
486
+ get: function() {
487
+ console.warn(
488
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
489
+ info[0],
490
+ info[1]
491
+ );
492
+ }
493
+ });
494
+ }
495
+ function getIteratorFn(maybeIterable) {
496
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
497
+ return null;
498
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
499
+ return "function" === typeof maybeIterable ? maybeIterable : null;
500
+ }
501
+ function warnNoop(publicInstance, callerName) {
502
+ publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
503
+ var warningKey = publicInstance + "." + callerName;
504
+ didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
505
+ "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
506
+ callerName,
507
+ publicInstance
508
+ ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
509
+ }
510
+ function Component(props, context, updater) {
511
+ this.props = props;
512
+ this.context = context;
513
+ this.refs = emptyObject;
514
+ this.updater = updater || ReactNoopUpdateQueue;
515
+ }
516
+ function ComponentDummy() {
517
+ }
518
+ function PureComponent(props, context, updater) {
519
+ this.props = props;
520
+ this.context = context;
521
+ this.refs = emptyObject;
522
+ this.updater = updater || ReactNoopUpdateQueue;
523
+ }
524
+ function noop() {
525
+ }
526
+ function testStringCoercion(value) {
527
+ return "" + value;
528
+ }
529
+ function checkKeyStringCoercion(value) {
530
+ try {
531
+ testStringCoercion(value);
532
+ var JSCompiler_inline_result = false;
533
+ } catch (e) {
534
+ JSCompiler_inline_result = true;
535
+ }
536
+ if (JSCompiler_inline_result) {
537
+ JSCompiler_inline_result = console;
538
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
539
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
540
+ JSCompiler_temp_const.call(
541
+ JSCompiler_inline_result,
542
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
543
+ JSCompiler_inline_result$jscomp$0
544
+ );
545
+ return testStringCoercion(value);
546
+ }
547
+ }
548
+ function getComponentNameFromType(type) {
549
+ if (null == type) return null;
550
+ if ("function" === typeof type)
551
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
552
+ if ("string" === typeof type) return type;
553
+ switch (type) {
554
+ case REACT_FRAGMENT_TYPE:
555
+ return "Fragment";
556
+ case REACT_PROFILER_TYPE:
557
+ return "Profiler";
558
+ case REACT_STRICT_MODE_TYPE:
559
+ return "StrictMode";
560
+ case REACT_SUSPENSE_TYPE:
561
+ return "Suspense";
562
+ case REACT_SUSPENSE_LIST_TYPE:
563
+ return "SuspenseList";
564
+ case REACT_ACTIVITY_TYPE:
565
+ return "Activity";
566
+ case REACT_VIEW_TRANSITION_TYPE:
567
+ return "ViewTransition";
568
+ }
569
+ if ("object" === typeof type)
570
+ switch ("number" === typeof type.tag && console.error(
571
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
572
+ ), type.$$typeof) {
573
+ case REACT_PORTAL_TYPE:
574
+ return "Portal";
575
+ case REACT_CONTEXT_TYPE:
576
+ return type.displayName || "Context";
577
+ case REACT_CONSUMER_TYPE:
578
+ return (type._context.displayName || "Context") + ".Consumer";
579
+ case REACT_FORWARD_REF_TYPE:
580
+ var innerType = type.render;
581
+ type = type.displayName;
582
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
583
+ return type;
584
+ case REACT_MEMO_TYPE:
585
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
586
+ case REACT_LAZY_TYPE:
587
+ innerType = type._payload;
588
+ type = type._init;
589
+ try {
590
+ return getComponentNameFromType(type(innerType));
591
+ } catch (x) {
592
+ }
593
+ }
594
+ return null;
595
+ }
596
+ function getTaskName(type) {
597
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
598
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
599
+ return "<...>";
600
+ try {
601
+ var name = getComponentNameFromType(type);
602
+ return name ? "<" + name + ">" : "<...>";
603
+ } catch (x) {
604
+ return "<...>";
605
+ }
606
+ }
607
+ function getOwner() {
608
+ var dispatcher = ReactSharedInternals.A;
609
+ return null === dispatcher ? null : dispatcher.getOwner();
610
+ }
611
+ function UnknownOwner() {
612
+ return Error("react-stack-top-frame");
613
+ }
614
+ function hasValidKey(config) {
615
+ if (hasOwnProperty.call(config, "key")) {
616
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
617
+ if (getter && getter.isReactWarning) return false;
618
+ }
619
+ return void 0 !== config.key;
620
+ }
621
+ function defineKeyPropWarningGetter(props, displayName) {
622
+ function warnAboutAccessingKey() {
623
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
624
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
625
+ displayName
626
+ ));
627
+ }
628
+ warnAboutAccessingKey.isReactWarning = true;
629
+ Object.defineProperty(props, "key", {
630
+ get: warnAboutAccessingKey,
631
+ configurable: true
632
+ });
633
+ }
634
+ function elementRefGetterWithDeprecationWarning() {
635
+ var componentName = getComponentNameFromType(this.type);
636
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
637
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
638
+ ));
639
+ componentName = this.props.ref;
640
+ return void 0 !== componentName ? componentName : null;
641
+ }
642
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
643
+ var refProp = props.ref;
644
+ type = {
645
+ $$typeof: REACT_ELEMENT_TYPE,
646
+ type,
647
+ key,
648
+ props,
649
+ _owner: owner
650
+ };
651
+ null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
652
+ enumerable: false,
653
+ get: elementRefGetterWithDeprecationWarning
654
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
655
+ type._store = {};
656
+ Object.defineProperty(type._store, "validated", {
657
+ configurable: false,
658
+ enumerable: false,
659
+ writable: true,
660
+ value: 0
661
+ });
662
+ Object.defineProperty(type, "_debugInfo", {
663
+ configurable: false,
664
+ enumerable: false,
665
+ writable: true,
666
+ value: null
667
+ });
668
+ Object.defineProperty(type, "_debugStack", {
669
+ configurable: false,
670
+ enumerable: false,
671
+ writable: true,
672
+ value: debugStack
673
+ });
674
+ Object.defineProperty(type, "_debugTask", {
675
+ configurable: false,
676
+ enumerable: false,
677
+ writable: true,
678
+ value: debugTask
679
+ });
680
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
681
+ return type;
682
+ }
683
+ function cloneAndReplaceKey(oldElement, newKey) {
684
+ newKey = ReactElement(
685
+ oldElement.type,
686
+ newKey,
687
+ oldElement.props,
688
+ oldElement._owner,
689
+ oldElement._debugStack,
690
+ oldElement._debugTask
691
+ );
692
+ oldElement._store && (newKey._store.validated = oldElement._store.validated);
693
+ return newKey;
694
+ }
695
+ function validateChildKeys(node) {
696
+ isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
697
+ }
698
+ function isValidElement(object) {
699
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
700
+ }
701
+ function escape(key) {
702
+ var escaperLookup = { "=": "=0", ":": "=2" };
703
+ return "$" + key.replace(/[=:]/g, function(match) {
704
+ return escaperLookup[match];
705
+ });
706
+ }
707
+ function getElementKey(element, index) {
708
+ return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
709
+ }
710
+ function resolveThenable(thenable) {
711
+ switch (thenable.status) {
712
+ case "fulfilled":
713
+ return thenable.value;
714
+ case "rejected":
715
+ throw thenable.reason;
716
+ default:
717
+ switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
718
+ function(fulfilledValue) {
719
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
720
+ },
721
+ function(error) {
722
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
723
+ }
724
+ )), thenable.status) {
725
+ case "fulfilled":
726
+ return thenable.value;
727
+ case "rejected":
728
+ throw thenable.reason;
729
+ }
730
+ }
731
+ throw thenable;
732
+ }
733
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
734
+ var type = typeof children;
735
+ if ("undefined" === type || "boolean" === type) children = null;
736
+ var invokeCallback = false;
737
+ if (null === children) invokeCallback = true;
738
+ else
739
+ switch (type) {
740
+ case "bigint":
741
+ case "string":
742
+ case "number":
743
+ invokeCallback = true;
744
+ break;
745
+ case "object":
746
+ switch (children.$$typeof) {
747
+ case REACT_ELEMENT_TYPE:
748
+ case REACT_PORTAL_TYPE:
749
+ invokeCallback = true;
750
+ break;
751
+ case REACT_LAZY_TYPE:
752
+ return invokeCallback = children._init, mapIntoArray(
753
+ invokeCallback(children._payload),
754
+ array,
755
+ escapedPrefix,
756
+ nameSoFar,
757
+ callback
758
+ );
759
+ }
760
+ }
761
+ if (invokeCallback) {
762
+ invokeCallback = children;
763
+ callback = callback(invokeCallback);
764
+ var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
765
+ isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
766
+ return c;
767
+ })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
768
+ callback,
769
+ escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
770
+ userProvidedKeyEscapeRegex,
771
+ "$&/"
772
+ ) + "/") + childKey
773
+ ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
774
+ return 1;
775
+ }
776
+ invokeCallback = 0;
777
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
778
+ if (isArrayImpl(children))
779
+ for (var i = 0; i < children.length; i++)
780
+ nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
781
+ nameSoFar,
782
+ array,
783
+ escapedPrefix,
784
+ type,
785
+ callback
786
+ );
787
+ else if (i = getIteratorFn(children), "function" === typeof i)
788
+ for (i === children.entries && (didWarnAboutMaps || console.warn(
789
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
790
+ ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
791
+ nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
792
+ nameSoFar,
793
+ array,
794
+ escapedPrefix,
795
+ type,
796
+ callback
797
+ );
798
+ else if ("object" === type) {
799
+ if ("function" === typeof children.then)
800
+ return mapIntoArray(
801
+ resolveThenable(children),
802
+ array,
803
+ escapedPrefix,
804
+ nameSoFar,
805
+ callback
806
+ );
807
+ array = String(children);
808
+ throw Error(
809
+ "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
810
+ );
811
+ }
812
+ return invokeCallback;
813
+ }
814
+ function mapChildren(children, func, context) {
815
+ if (null == children) return children;
816
+ var result = [], count = 0;
817
+ mapIntoArray(children, result, "", "", function(child) {
818
+ return func.call(context, child, count++);
819
+ });
820
+ return result;
821
+ }
822
+ function lazyInitializer(payload) {
823
+ if (-1 === payload._status) {
824
+ var resolveDebugValue = null, rejectDebugValue = null, ioInfo = payload._ioInfo;
825
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now(), ioInfo.value = new Promise(function(resolve, reject) {
826
+ resolveDebugValue = resolve;
827
+ rejectDebugValue = reject;
828
+ }));
829
+ ioInfo = payload._result;
830
+ var thenable = ioInfo();
831
+ thenable.then(
832
+ function(moduleObject) {
833
+ if (0 === payload._status || -1 === payload._status) {
834
+ payload._status = 1;
835
+ payload._result = moduleObject;
836
+ var _ioInfo = payload._ioInfo;
837
+ if (null != _ioInfo) {
838
+ _ioInfo.end = performance.now();
839
+ var debugValue = null == moduleObject ? void 0 : moduleObject.default;
840
+ resolveDebugValue(debugValue);
841
+ _ioInfo.value.status = "fulfilled";
842
+ _ioInfo.value.value = debugValue;
843
+ }
844
+ void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
845
+ }
846
+ },
847
+ function(error) {
848
+ if (0 === payload._status || -1 === payload._status) {
849
+ payload._status = 2;
850
+ payload._result = error;
851
+ var _ioInfo2 = payload._ioInfo;
852
+ null != _ioInfo2 && (_ioInfo2.end = performance.now(), _ioInfo2.value.then(noop, noop), rejectDebugValue(error), _ioInfo2.value.status = "rejected", _ioInfo2.value.reason = error);
853
+ void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
854
+ }
855
+ }
856
+ );
857
+ ioInfo = payload._ioInfo;
858
+ if (null != ioInfo) {
859
+ var displayName = thenable.displayName;
860
+ "string" === typeof displayName && (ioInfo.name = displayName);
861
+ }
862
+ -1 === payload._status && (payload._status = 0, payload._result = thenable);
863
+ }
864
+ if (1 === payload._status)
865
+ return ioInfo = payload._result, void 0 === ioInfo && console.error(
866
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
867
+ ioInfo
868
+ ), "default" in ioInfo || console.error(
869
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
870
+ ioInfo
871
+ ), ioInfo.default;
872
+ throw payload._result;
873
+ }
874
+ function resolveDispatcher() {
875
+ var dispatcher = ReactSharedInternals.H;
876
+ null === dispatcher && console.error(
877
+ "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
878
+ );
879
+ return dispatcher;
880
+ }
881
+ function releaseAsyncTransition() {
882
+ ReactSharedInternals.asyncTransitions--;
883
+ }
884
+ function startTransition(scope) {
885
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
886
+ currentTransition.types = null !== prevTransition ? prevTransition.types : null;
887
+ currentTransition._updatedFibers = /* @__PURE__ */ new Set();
888
+ ReactSharedInternals.T = currentTransition;
889
+ try {
890
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
891
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
892
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
893
+ } catch (error) {
894
+ reportGlobalError(error);
895
+ } finally {
896
+ null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
897
+ "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
898
+ )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
899
+ "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
900
+ ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
901
+ }
902
+ }
903
+ function addTransitionType(type) {
904
+ var transition = ReactSharedInternals.T;
905
+ if (null !== transition) {
906
+ var transitionTypes = transition.types;
907
+ null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
908
+ } else
909
+ 0 === ReactSharedInternals.asyncTransitions && console.error(
910
+ "addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
911
+ ), startTransition(addTransitionType.bind(null, type));
912
+ }
913
+ function enqueueTask(task) {
914
+ if (null === enqueueTaskImpl)
915
+ try {
916
+ var requireString = ("require" + Math.random()).slice(0, 7);
917
+ enqueueTaskImpl = (module && module[requireString]).call(
918
+ module,
919
+ "timers"
920
+ ).setImmediate;
921
+ } catch (_err) {
922
+ enqueueTaskImpl = function(callback) {
923
+ false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
924
+ "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
925
+ ));
926
+ var channel = new MessageChannel();
927
+ channel.port1.onmessage = callback;
928
+ channel.port2.postMessage(void 0);
929
+ };
930
+ }
931
+ return enqueueTaskImpl(task);
932
+ }
933
+ function aggregateErrors(errors) {
934
+ return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
935
+ }
936
+ function popActScope(prevActQueue, prevActScopeDepth) {
937
+ prevActScopeDepth !== actScopeDepth - 1 && console.error(
938
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
939
+ );
940
+ actScopeDepth = prevActScopeDepth;
941
+ }
942
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
943
+ var queue = ReactSharedInternals.actQueue;
944
+ if (null !== queue)
945
+ if (0 !== queue.length)
946
+ try {
947
+ flushActQueue(queue);
948
+ enqueueTask(function() {
949
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
950
+ });
951
+ return;
952
+ } catch (error) {
953
+ ReactSharedInternals.thrownErrors.push(error);
954
+ }
955
+ else ReactSharedInternals.actQueue = null;
956
+ 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
957
+ }
958
+ function flushActQueue(queue) {
959
+ if (!isFlushing) {
960
+ isFlushing = true;
961
+ var i = 0;
962
+ try {
963
+ for (; i < queue.length; i++) {
964
+ var callback = queue[i];
965
+ do {
966
+ ReactSharedInternals.didUsePromise = false;
967
+ var continuation = callback(false);
968
+ if (null !== continuation) {
969
+ if (ReactSharedInternals.didUsePromise) {
970
+ queue[i] = callback;
971
+ queue.splice(0, i);
972
+ return;
973
+ }
974
+ callback = continuation;
975
+ } else break;
976
+ } while (1);
977
+ }
978
+ queue.length = 0;
979
+ } catch (error) {
980
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
981
+ } finally {
982
+ isFlushing = false;
983
+ }
984
+ }
985
+ }
986
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
987
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
988
+ isMounted: function() {
989
+ return false;
990
+ },
991
+ enqueueForceUpdate: function(publicInstance) {
992
+ warnNoop(publicInstance, "forceUpdate");
993
+ },
994
+ enqueueReplaceState: function(publicInstance) {
995
+ warnNoop(publicInstance, "replaceState");
996
+ },
997
+ enqueueSetState: function(publicInstance) {
998
+ warnNoop(publicInstance, "setState");
999
+ }
1000
+ }, assign = Object.assign, emptyObject = {};
1001
+ Object.freeze(emptyObject);
1002
+ Component.prototype.isReactComponent = {};
1003
+ Component.prototype.setState = function(partialState, callback) {
1004
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
1005
+ throw Error(
1006
+ "takes an object of state variables to update or a function which returns an object of state variables."
1007
+ );
1008
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
1009
+ };
1010
+ Component.prototype.forceUpdate = function(callback) {
1011
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1012
+ };
1013
+ var deprecatedAPIs = {
1014
+ isMounted: [
1015
+ "isMounted",
1016
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1017
+ ],
1018
+ replaceState: [
1019
+ "replaceState",
1020
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1021
+ ]
1022
+ };
1023
+ for (fnName in deprecatedAPIs)
1024
+ deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1025
+ ComponentDummy.prototype = Component.prototype;
1026
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1027
+ deprecatedAPIs.constructor = PureComponent;
1028
+ assign(deprecatedAPIs, Component.prototype);
1029
+ deprecatedAPIs.isPureReactComponent = true;
1030
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
1031
+ H: null,
1032
+ A: null,
1033
+ T: null,
1034
+ S: null,
1035
+ actQueue: null,
1036
+ asyncTransitions: 0,
1037
+ isBatchingLegacy: false,
1038
+ didScheduleLegacyUpdate: false,
1039
+ didUsePromise: false,
1040
+ thrownErrors: [],
1041
+ getCurrentStack: null,
1042
+ recentlyCreatedOwnerStacks: 0
1043
+ }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
1044
+ return null;
1045
+ };
1046
+ deprecatedAPIs = {
1047
+ react_stack_bottom_frame: function(callStackForError) {
1048
+ return callStackForError();
1049
+ }
1050
+ };
1051
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1052
+ var didWarnAboutElementRef = {};
1053
+ var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
1054
+ deprecatedAPIs,
1055
+ UnknownOwner
1056
+ )();
1057
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1058
+ var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1059
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1060
+ var event = new window.ErrorEvent("error", {
1061
+ bubbles: true,
1062
+ cancelable: true,
1063
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1064
+ error
1065
+ });
1066
+ if (!window.dispatchEvent(event)) return;
1067
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
1068
+ process.emit("uncaughtException", error);
1069
+ return;
1070
+ }
1071
+ console.error(error);
1072
+ }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1073
+ queueMicrotask(function() {
1074
+ return queueMicrotask(callback);
1075
+ });
1076
+ } : enqueueTask;
1077
+ deprecatedAPIs = Object.freeze({
1078
+ __proto__: null,
1079
+ c: function(size) {
1080
+ return resolveDispatcher().useMemoCache(size);
1081
+ }
1082
+ });
1083
+ var fnName = {
1084
+ map: mapChildren,
1085
+ forEach: function(children, forEachFunc, forEachContext) {
1086
+ mapChildren(
1087
+ children,
1088
+ function() {
1089
+ forEachFunc.apply(this, arguments);
1090
+ },
1091
+ forEachContext
1092
+ );
1093
+ },
1094
+ count: function(children) {
1095
+ var n = 0;
1096
+ mapChildren(children, function() {
1097
+ n++;
1098
+ });
1099
+ return n;
1100
+ },
1101
+ toArray: function(children) {
1102
+ return mapChildren(children, function(child) {
1103
+ return child;
1104
+ }) || [];
1105
+ },
1106
+ only: function(children) {
1107
+ if (!isValidElement(children))
1108
+ throw Error(
1109
+ "React.Children.only expected to receive a single React element child."
1110
+ );
1111
+ return children;
1112
+ }
1113
+ };
1114
+ exports.Activity = REACT_ACTIVITY_TYPE;
1115
+ exports.Children = fnName;
1116
+ exports.Component = Component;
1117
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1118
+ exports.Profiler = REACT_PROFILER_TYPE;
1119
+ exports.PureComponent = PureComponent;
1120
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
1121
+ exports.Suspense = REACT_SUSPENSE_TYPE;
1122
+ exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
1123
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1124
+ exports.__COMPILER_RUNTIME = deprecatedAPIs;
1125
+ exports.act = function(callback) {
1126
+ var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1127
+ actScopeDepth++;
1128
+ var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1129
+ try {
1130
+ var result = callback();
1131
+ } catch (error) {
1132
+ ReactSharedInternals.thrownErrors.push(error);
1133
+ }
1134
+ if (0 < ReactSharedInternals.thrownErrors.length)
1135
+ throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1136
+ if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1137
+ var thenable = result;
1138
+ queueSeveralMicrotasks(function() {
1139
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1140
+ "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
1141
+ ));
1142
+ });
1143
+ return {
1144
+ then: function(resolve, reject) {
1145
+ didAwaitActCall = true;
1146
+ thenable.then(
1147
+ function(returnValue) {
1148
+ popActScope(prevActQueue, prevActScopeDepth);
1149
+ if (0 === prevActScopeDepth) {
1150
+ try {
1151
+ flushActQueue(queue), enqueueTask(function() {
1152
+ return recursivelyFlushAsyncActWork(
1153
+ returnValue,
1154
+ resolve,
1155
+ reject
1156
+ );
1157
+ });
1158
+ } catch (error$0) {
1159
+ ReactSharedInternals.thrownErrors.push(error$0);
1160
+ }
1161
+ if (0 < ReactSharedInternals.thrownErrors.length) {
1162
+ var _thrownError = aggregateErrors(
1163
+ ReactSharedInternals.thrownErrors
1164
+ );
1165
+ ReactSharedInternals.thrownErrors.length = 0;
1166
+ reject(_thrownError);
1167
+ }
1168
+ } else resolve(returnValue);
1169
+ },
1170
+ function(error) {
1171
+ popActScope(prevActQueue, prevActScopeDepth);
1172
+ 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1173
+ ReactSharedInternals.thrownErrors
1174
+ ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1175
+ }
1176
+ );
1177
+ }
1178
+ };
1179
+ }
1180
+ var returnValue$jscomp$0 = result;
1181
+ popActScope(prevActQueue, prevActScopeDepth);
1182
+ 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1183
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1184
+ "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1185
+ ));
1186
+ }), ReactSharedInternals.actQueue = null);
1187
+ if (0 < ReactSharedInternals.thrownErrors.length)
1188
+ throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1189
+ return {
1190
+ then: function(resolve, reject) {
1191
+ didAwaitActCall = true;
1192
+ 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1193
+ return recursivelyFlushAsyncActWork(
1194
+ returnValue$jscomp$0,
1195
+ resolve,
1196
+ reject
1197
+ );
1198
+ })) : resolve(returnValue$jscomp$0);
1199
+ }
1200
+ };
1201
+ };
1202
+ exports.addTransitionType = addTransitionType;
1203
+ exports.cache = function(fn) {
1204
+ return function() {
1205
+ return fn.apply(null, arguments);
1206
+ };
1207
+ };
1208
+ exports.cacheSignal = function() {
1209
+ return null;
1210
+ };
1211
+ exports.captureOwnerStack = function() {
1212
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
1213
+ return null === getCurrentStack ? null : getCurrentStack();
1214
+ };
1215
+ exports.cloneElement = function(element, config, children) {
1216
+ if (null === element || void 0 === element)
1217
+ throw Error(
1218
+ "The argument must be a React element, but you passed " + element + "."
1219
+ );
1220
+ var props = assign({}, element.props), key = element.key, owner = element._owner;
1221
+ if (null != config) {
1222
+ var JSCompiler_inline_result;
1223
+ a: {
1224
+ if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1225
+ config,
1226
+ "ref"
1227
+ ).get) && JSCompiler_inline_result.isReactWarning) {
1228
+ JSCompiler_inline_result = false;
1229
+ break a;
1230
+ }
1231
+ JSCompiler_inline_result = void 0 !== config.ref;
1232
+ }
1233
+ JSCompiler_inline_result && (owner = getOwner());
1234
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1235
+ for (propName in config)
1236
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1237
+ }
1238
+ var propName = arguments.length - 2;
1239
+ if (1 === propName) props.children = children;
1240
+ else if (1 < propName) {
1241
+ JSCompiler_inline_result = Array(propName);
1242
+ for (var i = 0; i < propName; i++)
1243
+ JSCompiler_inline_result[i] = arguments[i + 2];
1244
+ props.children = JSCompiler_inline_result;
1245
+ }
1246
+ props = ReactElement(
1247
+ element.type,
1248
+ key,
1249
+ props,
1250
+ owner,
1251
+ element._debugStack,
1252
+ element._debugTask
1253
+ );
1254
+ for (key = 2; key < arguments.length; key++)
1255
+ validateChildKeys(arguments[key]);
1256
+ return props;
1257
+ };
1258
+ exports.createContext = function(defaultValue) {
1259
+ defaultValue = {
1260
+ $$typeof: REACT_CONTEXT_TYPE,
1261
+ _currentValue: defaultValue,
1262
+ _currentValue2: defaultValue,
1263
+ _threadCount: 0,
1264
+ Provider: null,
1265
+ Consumer: null
1266
+ };
1267
+ defaultValue.Provider = defaultValue;
1268
+ defaultValue.Consumer = {
1269
+ $$typeof: REACT_CONSUMER_TYPE,
1270
+ _context: defaultValue
1271
+ };
1272
+ defaultValue._currentRenderer = null;
1273
+ defaultValue._currentRenderer2 = null;
1274
+ return defaultValue;
1275
+ };
1276
+ exports.createElement = function(type, config, children) {
1277
+ for (var i = 2; i < arguments.length; i++)
1278
+ validateChildKeys(arguments[i]);
1279
+ var propName;
1280
+ i = {};
1281
+ var key = null;
1282
+ if (null != config)
1283
+ for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1284
+ "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1285
+ )), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
1286
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1287
+ var childrenLength = arguments.length - 2;
1288
+ if (1 === childrenLength) i.children = children;
1289
+ else if (1 < childrenLength) {
1290
+ for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1291
+ childArray[_i] = arguments[_i + 2];
1292
+ Object.freeze && Object.freeze(childArray);
1293
+ i.children = childArray;
1294
+ }
1295
+ if (type && type.defaultProps)
1296
+ for (propName in childrenLength = type.defaultProps, childrenLength)
1297
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1298
+ key && defineKeyPropWarningGetter(
1299
+ i,
1300
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1301
+ );
1302
+ (propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++) ? (childArray = Error.stackTraceLimit, Error.stackTraceLimit = 10, childrenLength = Error("react-stack-top-frame"), Error.stackTraceLimit = childArray) : childrenLength = unknownOwnerDebugStack;
1303
+ return ReactElement(
1304
+ type,
1305
+ key,
1306
+ i,
1307
+ getOwner(),
1308
+ childrenLength,
1309
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1310
+ );
1311
+ };
1312
+ exports.createRef = function() {
1313
+ var refObject = { current: null };
1314
+ Object.seal(refObject);
1315
+ return refObject;
1316
+ };
1317
+ exports.forwardRef = function(render) {
1318
+ null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1319
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1320
+ ) : "function" !== typeof render ? console.error(
1321
+ "forwardRef requires a render function but was given %s.",
1322
+ null === render ? "null" : typeof render
1323
+ ) : 0 !== render.length && 2 !== render.length && console.error(
1324
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1325
+ 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1326
+ );
1327
+ null != render && null != render.defaultProps && console.error(
1328
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1329
+ );
1330
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1331
+ Object.defineProperty(elementType, "displayName", {
1332
+ enumerable: false,
1333
+ configurable: true,
1334
+ get: function() {
1335
+ return ownName;
1336
+ },
1337
+ set: function(name) {
1338
+ ownName = name;
1339
+ render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1340
+ }
1341
+ });
1342
+ return elementType;
1343
+ };
1344
+ exports.isValidElement = isValidElement;
1345
+ exports.lazy = function(ctor) {
1346
+ ctor = { _status: -1, _result: ctor };
1347
+ var lazyType = {
1348
+ $$typeof: REACT_LAZY_TYPE,
1349
+ _payload: ctor,
1350
+ _init: lazyInitializer
1351
+ }, ioInfo = {
1352
+ name: "lazy",
1353
+ start: -1,
1354
+ end: -1,
1355
+ value: null,
1356
+ owner: null,
1357
+ debugStack: Error("react-stack-top-frame"),
1358
+ debugTask: console.createTask ? console.createTask("lazy()") : null
1359
+ };
1360
+ ctor._ioInfo = ioInfo;
1361
+ lazyType._debugInfo = [{ awaited: ioInfo }];
1362
+ return lazyType;
1363
+ };
1364
+ exports.memo = function(type, compare) {
1365
+ null == type && console.error(
1366
+ "memo: The first argument must be a component. Instead received: %s",
1367
+ null === type ? "null" : typeof type
1368
+ );
1369
+ compare = {
1370
+ $$typeof: REACT_MEMO_TYPE,
1371
+ type,
1372
+ compare: void 0 === compare ? null : compare
1373
+ };
1374
+ var ownName;
1375
+ Object.defineProperty(compare, "displayName", {
1376
+ enumerable: false,
1377
+ configurable: true,
1378
+ get: function() {
1379
+ return ownName;
1380
+ },
1381
+ set: function(name) {
1382
+ ownName = name;
1383
+ type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1384
+ }
1385
+ });
1386
+ return compare;
1387
+ };
1388
+ exports.startTransition = startTransition;
1389
+ exports.unstable_useCacheRefresh = function() {
1390
+ return resolveDispatcher().useCacheRefresh();
1391
+ };
1392
+ exports.use = function(usable) {
1393
+ return resolveDispatcher().use(usable);
1394
+ };
1395
+ exports.useActionState = function(action, initialState, permalink) {
1396
+ return resolveDispatcher().useActionState(
1397
+ action,
1398
+ initialState,
1399
+ permalink
1400
+ );
1401
+ };
1402
+ exports.useCallback = function(callback, deps) {
1403
+ return resolveDispatcher().useCallback(callback, deps);
1404
+ };
1405
+ exports.useContext = function(Context) {
1406
+ var dispatcher = resolveDispatcher();
1407
+ Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1408
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1409
+ );
1410
+ return dispatcher.useContext(Context);
1411
+ };
1412
+ exports.useDebugValue = function(value, formatterFn) {
1413
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1414
+ };
1415
+ exports.useDeferredValue = function(value, initialValue) {
1416
+ return resolveDispatcher().useDeferredValue(value, initialValue);
1417
+ };
1418
+ exports.useEffect = function(create, deps) {
1419
+ null == create && console.warn(
1420
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1421
+ );
1422
+ return resolveDispatcher().useEffect(create, deps);
1423
+ };
1424
+ exports.useEffectEvent = function(callback) {
1425
+ return resolveDispatcher().useEffectEvent(callback);
1426
+ };
1427
+ exports.useId = function() {
1428
+ return resolveDispatcher().useId();
1429
+ };
1430
+ exports.useImperativeHandle = function(ref, create, deps) {
1431
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1432
+ };
1433
+ exports.useInsertionEffect = function(create, deps) {
1434
+ null == create && console.warn(
1435
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1436
+ );
1437
+ return resolveDispatcher().useInsertionEffect(create, deps);
1438
+ };
1439
+ exports.useLayoutEffect = function(create, deps) {
1440
+ null == create && console.warn(
1441
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1442
+ );
1443
+ return resolveDispatcher().useLayoutEffect(create, deps);
1444
+ };
1445
+ exports.useMemo = function(create, deps) {
1446
+ return resolveDispatcher().useMemo(create, deps);
1447
+ };
1448
+ exports.useOptimistic = function(passthrough, reducer) {
1449
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
1450
+ };
1451
+ exports.useReducer = function(reducer, initialArg, init) {
1452
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1453
+ };
1454
+ exports.useRef = function(initialValue) {
1455
+ return resolveDispatcher().useRef(initialValue);
1456
+ };
1457
+ exports.useState = function(initialState) {
1458
+ return resolveDispatcher().useState(initialState);
1459
+ };
1460
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1461
+ return resolveDispatcher().useSyncExternalStore(
1462
+ subscribe,
1463
+ getSnapshot,
1464
+ getServerSnapshot
1465
+ );
1466
+ };
1467
+ exports.useTransition = function() {
1468
+ return resolveDispatcher().useTransition();
1469
+ };
1470
+ exports.version = "19.3.0";
1471
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1472
+ })();
1473
+ }
1474
+ });
1475
+
1476
+ // node_modules/react/index.js
1477
+ var require_react = __commonJS({
1478
+ "node_modules/react/index.js"(exports, module) {
1479
+ "use strict";
1480
+ if (process.env.NODE_ENV === "production") {
1481
+ module.exports = require_react_production();
1482
+ } else {
1483
+ module.exports = require_react_development();
1484
+ }
1485
+ }
1486
+ });
1487
+
1
1488
  // node_modules/@timardex/cluemart-shared/dist/index.mjs
2
1489
  import dayjs from "dayjs";
3
1490
  import customParseFormat from "dayjs/plugin/customParseFormat.js";
@@ -207,6 +1694,7 @@ setVerbosity(globalThis.__DEV__ !== false ? "log" : "silent");
207
1694
 
208
1695
  // node_modules/@timardex/cluemart-shared/dist/index.mjs
209
1696
  import { print } from "graphql";
1697
+ var import_react = __toESM(require_react(), 1);
210
1698
  var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus22) => {
211
1699
  EnumInviteStatus22["ACCEPTED"] = "Accepted";
212
1700
  EnumInviteStatus22["COMPLETED"] = "Completed";
@@ -2490,8 +3978,11 @@ var EVENT = gql`
2490
3978
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
2491
3979
  `;
2492
3980
  var GET_EVENTS = gql`
2493
- query getEvents($dateStatus: EventDateStatusEnumType) {
2494
- events(dateStatus: $dateStatus) {
3981
+ query getEvents(
3982
+ $dateStatus: EventDateStatusEnumType
3983
+ $options: PaginationOptions
3984
+ ) {
3985
+ events(dateStatus: $dateStatus, options: $options) {
2495
3986
  ...EventListItemFields
2496
3987
  }
2497
3988
  }
@@ -2793,8 +4284,8 @@ var UNREGISTERED_VENDOR = gql`
2793
4284
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
2794
4285
  `;
2795
4286
  var GET_VENDORS = gql`
2796
- query getVendors {
2797
- vendors {
4287
+ query getVendors($options: PaginationOptions) {
4288
+ vendors(options: $options) {
2798
4289
  ...VendorFields
2799
4290
  }
2800
4291
  }
@@ -3031,8 +4522,8 @@ var PARTNER = gql`
3031
4522
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
3032
4523
  `;
3033
4524
  var GET_PARTNERS = gql`
3034
- query getPartners {
3035
- partners {
4525
+ query getPartners($options: PaginationOptions) {
4526
+ partners(options: $options) {
3036
4527
  ...PartnerFields
3037
4528
  }
3038
4529
  }
@@ -3237,8 +4728,8 @@ var POST_FIELDS_FRAGMENT = gql`
3237
4728
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
3238
4729
  `;
3239
4730
  var GET_POSTS = gql`
3240
- query getPosts {
3241
- posts {
4731
+ query getPosts($options: PaginationOptions) {
4732
+ posts(options: $options) {
3242
4733
  ...PostFields
3243
4734
  }
3244
4735
  }
@@ -3253,13 +4744,114 @@ var GET_POST = gql`
3253
4744
  ${POST_FIELDS_FRAGMENT}
3254
4745
  `;
3255
4746
  var GET_POSTS_BY_TYPE = gql`
3256
- query getPostsByType($postType: PostTypeEnum!) {
3257
- postsByType(postType: $postType) {
4747
+ query getPostsByType($postType: PostTypeEnum!, $options: PaginationOptions) {
4748
+ postsByType(postType: $postType, options: $options) {
3258
4749
  ...PostFields
3259
4750
  }
3260
4751
  }
3261
4752
  ${POST_FIELDS_FRAGMENT}
3262
4753
  `;
4754
+ var GET_USERS = gql`
4755
+ query getUsers($options: PaginationOptions) {
4756
+ users(options: $options) {
4757
+ ...UserFields
4758
+ }
4759
+ }
4760
+ ${USER_FIELDS_FRAGMENT}
4761
+ `;
4762
+ var GET_USER = gql`
4763
+ query getUser($_id: ID!) {
4764
+ user(_id: $_id) {
4765
+ ...UserFields
4766
+ }
4767
+ }
4768
+ ${USER_FIELDS_FRAGMENT}
4769
+ `;
4770
+ var GET_USER_EVENTS = gql`
4771
+ query getUserEvents {
4772
+ userEvents {
4773
+ ...EventFields
4774
+ }
4775
+ }
4776
+ ${EVENT}
4777
+ `;
4778
+ var GET_USER_VENDORS = gql`
4779
+ query getUserVendors {
4780
+ userVendors {
4781
+ ...VendorFields
4782
+ }
4783
+ }
4784
+ ${VENDOR}
4785
+ `;
4786
+ var GET_USER_PARTNERS = gql`
4787
+ query getUserPartners {
4788
+ userPartners {
4789
+ ...PartnerFields
4790
+ }
4791
+ }
4792
+ ${PARTNER}
4793
+ `;
4794
+ var GET_USER_ACTIVITIES = gql`
4795
+ query getUserActivities {
4796
+ userActivities {
4797
+ favourites {
4798
+ events {
4799
+ ...EventListItemFields
4800
+ }
4801
+ partners {
4802
+ ...PartnerFields
4803
+ }
4804
+ vendors {
4805
+ ...VendorFields
4806
+ }
4807
+ }
4808
+ going {
4809
+ events {
4810
+ ...EventListItemFields
4811
+ }
4812
+ }
4813
+ interested {
4814
+ events {
4815
+ ...EventListItemFields
4816
+ }
4817
+ }
4818
+ present {
4819
+ events {
4820
+ ...EventListItemFields
4821
+ }
4822
+ }
4823
+ }
4824
+ }
4825
+ ${EVENT_LIST_ITEM}
4826
+ ${VENDOR}
4827
+ ${PARTNER}
4828
+ `;
4829
+ var GET_USER_RESOURCES = gql`
4830
+ query getUserResources($userId: ID!) {
4831
+ userResources(userId: $userId) {
4832
+ resources {
4833
+ _id
4834
+ logo
4835
+ name
4836
+ resourceType
4837
+ }
4838
+ }
4839
+ }
4840
+ `;
4841
+ var GET_USERS_BY_PROMO_CODE = gql`
4842
+ query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
4843
+ usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
4844
+ active
4845
+ avatar {
4846
+ ...ResourceImageFields
4847
+ }
4848
+ deletedAt
4849
+ nickName
4850
+ userId
4851
+ }
4852
+ }
4853
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4854
+ `;
3263
4855
  var GET_EVENT_BY_SLUG = gql`
3264
4856
  query getEventBySlug($slug: String!) {
3265
4857
  eventBySlug(slug: $slug) {
@@ -3724,107 +5316,6 @@ var UPDATE_EVENT_INFO_MUTATION = gql`
3724
5316
  }
3725
5317
  ${EVENT_INFO}
3726
5318
  `;
3727
- var GET_USERS = gql`
3728
- query getUsers {
3729
- users {
3730
- ...UserFields
3731
- }
3732
- }
3733
- ${USER_FIELDS_FRAGMENT}
3734
- `;
3735
- var GET_USER = gql`
3736
- query getUser($_id: ID!) {
3737
- user(_id: $_id) {
3738
- ...UserFields
3739
- }
3740
- }
3741
- ${USER_FIELDS_FRAGMENT}
3742
- `;
3743
- var GET_USER_EVENTS = gql`
3744
- query getUserEvents {
3745
- userEvents {
3746
- ...EventFields
3747
- }
3748
- }
3749
- ${EVENT}
3750
- `;
3751
- var GET_USER_VENDORS = gql`
3752
- query getUserVendors {
3753
- userVendors {
3754
- ...VendorFields
3755
- }
3756
- }
3757
- ${VENDOR}
3758
- `;
3759
- var GET_USER_PARTNERS = gql`
3760
- query getUserPartners {
3761
- userPartners {
3762
- ...PartnerFields
3763
- }
3764
- }
3765
- ${PARTNER}
3766
- `;
3767
- var GET_USER_ACTIVITIES = gql`
3768
- query getUserActivities {
3769
- userActivities {
3770
- favourites {
3771
- events {
3772
- ...EventListItemFields
3773
- }
3774
- partners {
3775
- ...PartnerFields
3776
- }
3777
- vendors {
3778
- ...VendorFields
3779
- }
3780
- }
3781
- going {
3782
- events {
3783
- ...EventListItemFields
3784
- }
3785
- }
3786
- interested {
3787
- events {
3788
- ...EventListItemFields
3789
- }
3790
- }
3791
- present {
3792
- events {
3793
- ...EventListItemFields
3794
- }
3795
- }
3796
- }
3797
- }
3798
- ${EVENT_LIST_ITEM}
3799
- ${VENDOR}
3800
- ${PARTNER}
3801
- `;
3802
- var GET_USER_RESOURCES = gql`
3803
- query getUserResources($userId: ID!) {
3804
- userResources(userId: $userId) {
3805
- resources {
3806
- _id
3807
- logo
3808
- name
3809
- resourceType
3810
- }
3811
- }
3812
- }
3813
- `;
3814
- var GET_USERS_BY_PROMO_CODE = gql`
3815
- query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
3816
- usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
3817
- active
3818
- avatar {
3819
- ...ResourceImageFields
3820
- }
3821
- deletedAt
3822
- nickName
3823
- userId
3824
- }
3825
- }
3826
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3827
- `;
3828
5319
  var NOTIFICATION_FRAGMENT = gql`
3829
5320
  fragment NotificationFields on Notification {
3830
5321
  _id
@@ -5746,6 +7237,7 @@ var schema3 = new MongooseSchema5(
5746
7237
  },
5747
7238
  { timestamps: true }
5748
7239
  );
7240
+ schema3.index({ eventId: 1 });
5749
7241
  var EventInfoModel = mongoose5.models.EventInfo || mongoose5.model("EventInfo", schema3);
5750
7242
 
5751
7243
  // src/mongoose/Relation.ts
@@ -6048,6 +7540,61 @@ var baseResourceFields = {
6048
7540
 
6049
7541
  // src/mongoose/GoogleImportedMarket.ts
6050
7542
  import mongoose8 from "mongoose";
7543
+
7544
+ // src/mongoose/searchNamePlugin.ts
7545
+ function deriveSearchName(name) {
7546
+ return typeof name === "string" ? name.trim().toLowerCase() : "";
7547
+ }
7548
+ function searchNamePlugin(schema20) {
7549
+ schema20.add({ searchName: { default: "", required: false, type: String } });
7550
+ schema20.index({ searchName: 1 });
7551
+ schema20.pre("save", function syncSearchNameOnSave(next) {
7552
+ const doc = this;
7553
+ doc.searchName = deriveSearchName(doc.name);
7554
+ next();
7555
+ });
7556
+ schema20.pre("insertMany", function syncSearchNameOnInsertMany(next, docs) {
7557
+ const list = Array.isArray(docs) ? docs : [docs];
7558
+ for (const doc of list) {
7559
+ if (doc && typeof doc.name === "string") {
7560
+ doc.searchName = deriveSearchName(doc.name);
7561
+ }
7562
+ }
7563
+ next();
7564
+ });
7565
+ schema20.pre("bulkWrite", function syncSearchNameOnBulkWrite(next, ops) {
7566
+ for (const op of ops) {
7567
+ const doc = op.insertOne?.document ?? op.replaceOne?.replacement;
7568
+ if (doc && typeof doc.name === "string") {
7569
+ doc.searchName = deriveSearchName(doc.name);
7570
+ }
7571
+ const $set = op.updateOne?.update?.$set;
7572
+ if ($set && typeof $set.name === "string") {
7573
+ $set.searchName = deriveSearchName($set.name);
7574
+ }
7575
+ }
7576
+ next();
7577
+ });
7578
+ const syncSearchNameOnUpdate = function(next) {
7579
+ const update = this.getUpdate();
7580
+ if (update && typeof update === "object" && "$set" in update) {
7581
+ const $set = update.$set;
7582
+ if ($set && typeof $set.name === "string") {
7583
+ this.setUpdate({
7584
+ ...update,
7585
+ $set: { ...$set, searchName: deriveSearchName($set.name) }
7586
+ });
7587
+ }
7588
+ }
7589
+ next();
7590
+ };
7591
+ schema20.pre(
7592
+ ["findOneAndUpdate", "updateOne", "updateMany"],
7593
+ syncSearchNameOnUpdate
7594
+ );
7595
+ }
7596
+
7597
+ // src/mongoose/GoogleImportedMarket.ts
6051
7598
  var MongooseSchema8 = mongoose8.Schema;
6052
7599
  var addressComponentSchema = new MongooseSchema8(
6053
7600
  {
@@ -6126,6 +7673,8 @@ schema4.index({ region: 1 });
6126
7673
  schema4.index({ deletedAt: 1 });
6127
7674
  schema4.index({ "dateTime.dateStatus": 1 });
6128
7675
  schema4.index({ slug: 1 });
7676
+ schema4.index({ name: "text", description: "text" });
7677
+ schema4.plugin(searchNamePlugin);
6129
7678
  var GoogleImportedMarketModel = mongoose8.models.GoogleImportedMarket || mongoose8.model("GoogleImportedMarket", schema4);
6130
7679
 
6131
7680
  // src/mongoose/Notification.ts
@@ -6544,6 +8093,7 @@ var schema8 = new MongooseSchema12(
6544
8093
  );
6545
8094
  schema8.index({ "licences.expiryDate": 1 });
6546
8095
  schema8.index({ "licences.licenceType": 1 });
8096
+ schema8.index({ promoCodes: 1, active: 1, deletedAt: 1 });
6547
8097
  var UserModel = mongoose12.models.User || mongoose12.model("User", schema8);
6548
8098
 
6549
8099
  // src/mongoose/VerificationToken.ts
@@ -6629,6 +8179,7 @@ var schema10 = new MongooseSchema14(
6629
8179
  type: calendarWrapperSchema
6630
8180
  },
6631
8181
  categories: { required: true, type: [CategorySchema] },
8182
+ categoriesNames: { default: [], required: false, type: [String] },
6632
8183
  claimed: { default: true, required: false, type: Boolean },
6633
8184
  foodTruck: { required: true, type: Boolean },
6634
8185
  products: { required: false, type: productWrapperSchema },
@@ -6661,6 +8212,13 @@ schema10.index({ description: 1 });
6661
8212
  schema10.index({ region: 1 });
6662
8213
  schema10.index({ "categories.name": 1 });
6663
8214
  schema10.index({ slug: 1 });
8215
+ schema10.index({
8216
+ name: "text",
8217
+ description: "text",
8218
+ categoriesNames: "text"
8219
+ });
8220
+ schema10.index({ "owner.userId": 1, deletedAt: 1 });
8221
+ schema10.plugin(searchNamePlugin);
6664
8222
  var VendorModel = mongoose14.models.Vendor || mongoose14.model("Vendor", schema10);
6665
8223
 
6666
8224
  // src/mongoose/vendor/VendorInfo.ts
@@ -6713,6 +8271,7 @@ var schema11 = new MongooseSchema15(
6713
8271
  },
6714
8272
  { timestamps: true }
6715
8273
  );
8274
+ schema11.index({ vendorId: 1 });
6716
8275
  var VendorInfoModel = mongoose15.models.VendorInfo || mongoose15.model("VendorInfo", schema11);
6717
8276
 
6718
8277
  // src/mongoose/vendor/UnregisteredVendor.ts
@@ -6804,6 +8363,9 @@ schema13.index({ tags: 1 });
6804
8363
  schema13.index({ deletedAt: 1 });
6805
8364
  schema13.index({ "dateTime.dateStatus": 1 });
6806
8365
  schema13.index({ slug: 1 });
8366
+ schema13.index({ name: "text", description: "text", tags: "text" });
8367
+ schema13.index({ "owner.userId": 1, deletedAt: 1 });
8368
+ schema13.plugin(searchNamePlugin);
6807
8369
  var EventModel = mongoose17.models.Event || mongoose17.model("Event", schema13);
6808
8370
 
6809
8371
  // src/mongoose/Partner.ts
@@ -6830,6 +8392,9 @@ schema14.index({ description: 1 });
6830
8392
  schema14.index({ region: 1 });
6831
8393
  schema14.index({ "location.geo": "2dsphere" });
6832
8394
  schema14.index({ slug: 1 });
8395
+ schema14.index({ name: "text", description: "text" });
8396
+ schema14.index({ "owner.userId": 1, deletedAt: 1 });
8397
+ schema14.plugin(searchNamePlugin);
6833
8398
  var PartnerModel = mongoose18.models.Partner || mongoose18.model("Partner", schema14);
6834
8399
 
6835
8400
  // src/mongoose/Post.ts
@@ -7363,6 +8928,8 @@ var schema19 = new MongooseSchema27(
7363
8928
  },
7364
8929
  { timestamps: true }
7365
8930
  );
8931
+ schema19.index({ active: 1, deletedAt: 1, "owner.userId": 1 });
8932
+ schema19.index({ "couponData.participantUsers.userId": 1 });
7366
8933
  var CouponModel = mongoose27.models.Coupon || mongoose27.model("Coupon", schema19);
7367
8934
 
7368
8935
  // src/service/promoCode/constants.ts
@@ -7453,7 +9020,7 @@ var SHARE_RESOURCE_LABEL2 = {
7453
9020
  school: "School"
7454
9021
  };
7455
9022
 
7456
- // node_modules/@timardex/cluemart-shared/dist/chunk-STNE7PMX.mjs
9023
+ // node_modules/@timardex/cluemart-shared/dist/chunk-JJQL6LZE.mjs
7457
9024
  var PROMO_CODE_PREFIX2 = "CM-";
7458
9025
  var OBJECT_ID_PATH_SEGMENT2 = "[a-f0-9]{24}";
7459
9026
  var OBJECT_ID_PATH_SEGMENT_END2 = `${OBJECT_ID_PATH_SEGMENT2}$`;
@@ -7565,7 +9132,7 @@ var gameScreenIdentifierList2 = [
7565
9132
  }
7566
9133
  ];
7567
9134
 
7568
- // node_modules/@timardex/cluemart-shared/dist/chunk-3ZPHXVUT.mjs
9135
+ // node_modules/@timardex/cluemart-shared/dist/chunk-L3SNS6OJ.mjs
7569
9136
  import dayjs4 from "dayjs";
7570
9137
  var statusOptions2 = [
7571
9138
  ...Object.values(EnumInviteStatus2).map((status) => ({
@@ -10418,4 +11985,28 @@ export {
10418
11985
  vendorOwnerHasProLicence,
10419
11986
  vendorProductTypeSchema
10420
11987
  };
11988
+ /*! Bundled license information:
11989
+
11990
+ react/cjs/react.production.js:
11991
+ (**
11992
+ * @license React
11993
+ * react.production.js
11994
+ *
11995
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
11996
+ *
11997
+ * This source code is licensed under the MIT license found in the
11998
+ * LICENSE file in the root directory of this source tree.
11999
+ *)
12000
+
12001
+ react/cjs/react.development.js:
12002
+ (**
12003
+ * @license React
12004
+ * react.development.js
12005
+ *
12006
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
12007
+ *
12008
+ * This source code is licensed under the MIT license found in the
12009
+ * LICENSE file in the root directory of this source tree.
12010
+ *)
12011
+ */
10421
12012
  //# sourceMappingURL=index.mjs.map