@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/{Affiliate-CBp0M850.d.ts → Affiliate-CMJdECzs.d.mts} +28 -28
- package/dist/{Affiliate-BLh0EcNI.d.mts → Affiliate-VLZdlt5K.d.ts} +28 -28
- package/dist/chunk-3QS3WKRC.mjs +31 -0
- package/dist/chunk-3QS3WKRC.mjs.map +1 -0
- package/dist/{chunk-6RUQHYTK.mjs → chunk-EGUFWI7R.mjs} +1682 -112
- package/dist/chunk-EGUFWI7R.mjs.map +1 -0
- package/dist/{index-zC8a3adw.d.mts → index-Bq-lT7a2.d.mts} +2 -2
- package/dist/{index-zC8a3adw.d.ts → index-Bq-lT7a2.d.ts} +2 -2
- package/dist/index.cjs +1681 -113
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +49 -29
- package/dist/index.d.ts +49 -29
- package/dist/index.mjs +1704 -113
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +1679 -111
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +28 -8
- package/dist/mongoose/index.d.ts +28 -8
- package/dist/mongoose/index.mjs +2 -1
- package/dist/service/index.cjs +1681 -113
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +2 -2
- package/dist/service/index.d.ts +2 -2
- package/dist/service/index.mjs +4 -3
- package/dist/service/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -0
- package/package.json +2 -2
- package/dist/chunk-6RUQHYTK.mjs.map +0 -1
package/dist/service/index.cjs
CHANGED
|
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
8
11
|
var __export = (target, all) => {
|
|
9
12
|
for (var name in all)
|
|
10
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -27,6 +30,1467 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
30
|
));
|
|
28
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
32
|
|
|
33
|
+
// node_modules/react/cjs/react.production.js
|
|
34
|
+
var require_react_production = __commonJS({
|
|
35
|
+
"node_modules/react/cjs/react.production.js"(exports2) {
|
|
36
|
+
"use strict";
|
|
37
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
38
|
+
var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
|
|
39
|
+
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
40
|
+
var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
|
|
41
|
+
var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
|
|
42
|
+
var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
|
|
43
|
+
var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
|
|
44
|
+
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
45
|
+
var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
|
|
46
|
+
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
47
|
+
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
48
|
+
var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
|
|
49
|
+
var REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition");
|
|
50
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
51
|
+
function getIteratorFn(maybeIterable) {
|
|
52
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
53
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
54
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
55
|
+
}
|
|
56
|
+
var ReactNoopUpdateQueue = {
|
|
57
|
+
isMounted: function() {
|
|
58
|
+
return false;
|
|
59
|
+
},
|
|
60
|
+
enqueueForceUpdate: function() {
|
|
61
|
+
},
|
|
62
|
+
enqueueReplaceState: function() {
|
|
63
|
+
},
|
|
64
|
+
enqueueSetState: function() {
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
var assign = Object.assign;
|
|
68
|
+
var emptyObject = {};
|
|
69
|
+
function Component(props, context, updater) {
|
|
70
|
+
this.props = props;
|
|
71
|
+
this.context = context;
|
|
72
|
+
this.refs = emptyObject;
|
|
73
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
74
|
+
}
|
|
75
|
+
Component.prototype.isReactComponent = {};
|
|
76
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
77
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
78
|
+
throw Error(
|
|
79
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
80
|
+
);
|
|
81
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
82
|
+
};
|
|
83
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
84
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
85
|
+
};
|
|
86
|
+
function ComponentDummy() {
|
|
87
|
+
}
|
|
88
|
+
ComponentDummy.prototype = Component.prototype;
|
|
89
|
+
function PureComponent(props, context, updater) {
|
|
90
|
+
this.props = props;
|
|
91
|
+
this.context = context;
|
|
92
|
+
this.refs = emptyObject;
|
|
93
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
94
|
+
}
|
|
95
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
96
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
97
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
98
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
99
|
+
var isArrayImpl = Array.isArray;
|
|
100
|
+
function noop() {
|
|
101
|
+
}
|
|
102
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null };
|
|
103
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
104
|
+
function ReactElement(type, key, props) {
|
|
105
|
+
var refProp = props.ref;
|
|
106
|
+
return {
|
|
107
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
108
|
+
type,
|
|
109
|
+
key,
|
|
110
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
111
|
+
props
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
115
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
116
|
+
}
|
|
117
|
+
function isValidElement(object) {
|
|
118
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
119
|
+
}
|
|
120
|
+
function escape(key) {
|
|
121
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
122
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
123
|
+
return escaperLookup[match];
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
127
|
+
function getElementKey(element, index) {
|
|
128
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
129
|
+
}
|
|
130
|
+
function resolveThenable(thenable) {
|
|
131
|
+
switch (thenable.status) {
|
|
132
|
+
case "fulfilled":
|
|
133
|
+
return thenable.value;
|
|
134
|
+
case "rejected":
|
|
135
|
+
throw thenable.reason;
|
|
136
|
+
default:
|
|
137
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
138
|
+
function(fulfilledValue) {
|
|
139
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
140
|
+
},
|
|
141
|
+
function(error) {
|
|
142
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
143
|
+
}
|
|
144
|
+
)), thenable.status) {
|
|
145
|
+
case "fulfilled":
|
|
146
|
+
return thenable.value;
|
|
147
|
+
case "rejected":
|
|
148
|
+
throw thenable.reason;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
throw thenable;
|
|
152
|
+
}
|
|
153
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
154
|
+
var type = typeof children;
|
|
155
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
156
|
+
var invokeCallback = false;
|
|
157
|
+
if (null === children) invokeCallback = true;
|
|
158
|
+
else
|
|
159
|
+
switch (type) {
|
|
160
|
+
case "bigint":
|
|
161
|
+
case "string":
|
|
162
|
+
case "number":
|
|
163
|
+
invokeCallback = true;
|
|
164
|
+
break;
|
|
165
|
+
case "object":
|
|
166
|
+
switch (children.$$typeof) {
|
|
167
|
+
case REACT_ELEMENT_TYPE:
|
|
168
|
+
case REACT_PORTAL_TYPE:
|
|
169
|
+
invokeCallback = true;
|
|
170
|
+
break;
|
|
171
|
+
case REACT_LAZY_TYPE:
|
|
172
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
173
|
+
invokeCallback(children._payload),
|
|
174
|
+
array,
|
|
175
|
+
escapedPrefix,
|
|
176
|
+
nameSoFar,
|
|
177
|
+
callback
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
if (invokeCallback)
|
|
182
|
+
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) {
|
|
183
|
+
return c;
|
|
184
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
185
|
+
callback,
|
|
186
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
187
|
+
userProvidedKeyEscapeRegex,
|
|
188
|
+
"$&/"
|
|
189
|
+
) + "/") + invokeCallback
|
|
190
|
+
)), array.push(callback)), 1;
|
|
191
|
+
invokeCallback = 0;
|
|
192
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
193
|
+
if (isArrayImpl(children))
|
|
194
|
+
for (var i = 0; i < children.length; i++)
|
|
195
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
196
|
+
nameSoFar,
|
|
197
|
+
array,
|
|
198
|
+
escapedPrefix,
|
|
199
|
+
type,
|
|
200
|
+
callback
|
|
201
|
+
);
|
|
202
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
203
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
204
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
205
|
+
nameSoFar,
|
|
206
|
+
array,
|
|
207
|
+
escapedPrefix,
|
|
208
|
+
type,
|
|
209
|
+
callback
|
|
210
|
+
);
|
|
211
|
+
else if ("object" === type) {
|
|
212
|
+
if ("function" === typeof children.then)
|
|
213
|
+
return mapIntoArray(
|
|
214
|
+
resolveThenable(children),
|
|
215
|
+
array,
|
|
216
|
+
escapedPrefix,
|
|
217
|
+
nameSoFar,
|
|
218
|
+
callback
|
|
219
|
+
);
|
|
220
|
+
array = String(children);
|
|
221
|
+
throw Error(
|
|
222
|
+
"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."
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
return invokeCallback;
|
|
226
|
+
}
|
|
227
|
+
function mapChildren(children, func, context) {
|
|
228
|
+
if (null == children) return children;
|
|
229
|
+
var result = [], count = 0;
|
|
230
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
231
|
+
return func.call(context, child, count++);
|
|
232
|
+
});
|
|
233
|
+
return result;
|
|
234
|
+
}
|
|
235
|
+
function lazyInitializer(payload) {
|
|
236
|
+
if (-1 === payload._status) {
|
|
237
|
+
var ctor = payload._result, thenable = ctor();
|
|
238
|
+
thenable.then(
|
|
239
|
+
function(moduleObject) {
|
|
240
|
+
if (0 === payload._status || -1 === payload._status)
|
|
241
|
+
payload._status = 1, payload._result = moduleObject, void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
242
|
+
},
|
|
243
|
+
function(error) {
|
|
244
|
+
if (0 === payload._status || -1 === payload._status)
|
|
245
|
+
payload._status = 2, payload._result = error, void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
249
|
+
}
|
|
250
|
+
if (1 === payload._status) return payload._result.default;
|
|
251
|
+
throw payload._result;
|
|
252
|
+
}
|
|
253
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
254
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
255
|
+
var event = new window.ErrorEvent("error", {
|
|
256
|
+
bubbles: true,
|
|
257
|
+
cancelable: true,
|
|
258
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
259
|
+
error
|
|
260
|
+
});
|
|
261
|
+
if (!window.dispatchEvent(event)) return;
|
|
262
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
263
|
+
process.emit("uncaughtException", error);
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
console.error(error);
|
|
267
|
+
};
|
|
268
|
+
function startTransition(scope) {
|
|
269
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
270
|
+
currentTransition.types = null !== prevTransition ? prevTransition.types : null;
|
|
271
|
+
ReactSharedInternals.T = currentTransition;
|
|
272
|
+
try {
|
|
273
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
274
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
275
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
276
|
+
} catch (error) {
|
|
277
|
+
reportGlobalError(error);
|
|
278
|
+
} finally {
|
|
279
|
+
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function addTransitionType(type) {
|
|
283
|
+
var transition = ReactSharedInternals.T;
|
|
284
|
+
if (null !== transition) {
|
|
285
|
+
var transitionTypes = transition.types;
|
|
286
|
+
null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
|
|
287
|
+
} else startTransition(addTransitionType.bind(null, type));
|
|
288
|
+
}
|
|
289
|
+
var Children = {
|
|
290
|
+
map: mapChildren,
|
|
291
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
292
|
+
mapChildren(
|
|
293
|
+
children,
|
|
294
|
+
function() {
|
|
295
|
+
forEachFunc.apply(this, arguments);
|
|
296
|
+
},
|
|
297
|
+
forEachContext
|
|
298
|
+
);
|
|
299
|
+
},
|
|
300
|
+
count: function(children) {
|
|
301
|
+
var n = 0;
|
|
302
|
+
mapChildren(children, function() {
|
|
303
|
+
n++;
|
|
304
|
+
});
|
|
305
|
+
return n;
|
|
306
|
+
},
|
|
307
|
+
toArray: function(children) {
|
|
308
|
+
return mapChildren(children, function(child) {
|
|
309
|
+
return child;
|
|
310
|
+
}) || [];
|
|
311
|
+
},
|
|
312
|
+
only: function(children) {
|
|
313
|
+
if (!isValidElement(children))
|
|
314
|
+
throw Error(
|
|
315
|
+
"React.Children.only expected to receive a single React element child."
|
|
316
|
+
);
|
|
317
|
+
return children;
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
exports2.Activity = REACT_ACTIVITY_TYPE;
|
|
321
|
+
exports2.Children = Children;
|
|
322
|
+
exports2.Component = Component;
|
|
323
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
324
|
+
exports2.Profiler = REACT_PROFILER_TYPE;
|
|
325
|
+
exports2.PureComponent = PureComponent;
|
|
326
|
+
exports2.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
327
|
+
exports2.Suspense = REACT_SUSPENSE_TYPE;
|
|
328
|
+
exports2.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
329
|
+
exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
330
|
+
exports2.__COMPILER_RUNTIME = {
|
|
331
|
+
__proto__: null,
|
|
332
|
+
c: function(size) {
|
|
333
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
exports2.addTransitionType = addTransitionType;
|
|
337
|
+
exports2.cache = function(fn) {
|
|
338
|
+
return function() {
|
|
339
|
+
return fn.apply(null, arguments);
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
exports2.cacheSignal = function() {
|
|
343
|
+
return null;
|
|
344
|
+
};
|
|
345
|
+
exports2.cloneElement = function(element, config, children) {
|
|
346
|
+
if (null === element || void 0 === element)
|
|
347
|
+
throw Error(
|
|
348
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
349
|
+
);
|
|
350
|
+
var props = assign({}, element.props), key = element.key;
|
|
351
|
+
if (null != config)
|
|
352
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
353
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
354
|
+
var propName = arguments.length - 2;
|
|
355
|
+
if (1 === propName) props.children = children;
|
|
356
|
+
else if (1 < propName) {
|
|
357
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
358
|
+
childArray[i] = arguments[i + 2];
|
|
359
|
+
props.children = childArray;
|
|
360
|
+
}
|
|
361
|
+
return ReactElement(element.type, key, props);
|
|
362
|
+
};
|
|
363
|
+
exports2.createContext = function(defaultValue) {
|
|
364
|
+
defaultValue = {
|
|
365
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
366
|
+
_currentValue: defaultValue,
|
|
367
|
+
_currentValue2: defaultValue,
|
|
368
|
+
_threadCount: 0,
|
|
369
|
+
Provider: null,
|
|
370
|
+
Consumer: null
|
|
371
|
+
};
|
|
372
|
+
defaultValue.Provider = defaultValue;
|
|
373
|
+
defaultValue.Consumer = {
|
|
374
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
375
|
+
_context: defaultValue
|
|
376
|
+
};
|
|
377
|
+
return defaultValue;
|
|
378
|
+
};
|
|
379
|
+
exports2.createElement = function(type, config, children) {
|
|
380
|
+
var propName, props = {}, key = null;
|
|
381
|
+
if (null != config)
|
|
382
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
383
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
384
|
+
var childrenLength = arguments.length - 2;
|
|
385
|
+
if (1 === childrenLength) props.children = children;
|
|
386
|
+
else if (1 < childrenLength) {
|
|
387
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
388
|
+
childArray[i] = arguments[i + 2];
|
|
389
|
+
props.children = childArray;
|
|
390
|
+
}
|
|
391
|
+
if (type && type.defaultProps)
|
|
392
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
393
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
394
|
+
return ReactElement(type, key, props);
|
|
395
|
+
};
|
|
396
|
+
exports2.createRef = function() {
|
|
397
|
+
return { current: null };
|
|
398
|
+
};
|
|
399
|
+
exports2.forwardRef = function(render) {
|
|
400
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
401
|
+
};
|
|
402
|
+
exports2.isValidElement = isValidElement;
|
|
403
|
+
exports2.lazy = function(ctor) {
|
|
404
|
+
return {
|
|
405
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
406
|
+
_payload: { _status: -1, _result: ctor },
|
|
407
|
+
_init: lazyInitializer
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
exports2.memo = function(type, compare) {
|
|
411
|
+
return {
|
|
412
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
413
|
+
type,
|
|
414
|
+
compare: void 0 === compare ? null : compare
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
exports2.startTransition = startTransition;
|
|
418
|
+
exports2.unstable_useCacheRefresh = function() {
|
|
419
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
420
|
+
};
|
|
421
|
+
exports2.use = function(usable) {
|
|
422
|
+
return ReactSharedInternals.H.use(usable);
|
|
423
|
+
};
|
|
424
|
+
exports2.useActionState = function(action, initialState, permalink) {
|
|
425
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
426
|
+
};
|
|
427
|
+
exports2.useCallback = function(callback, deps) {
|
|
428
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
429
|
+
};
|
|
430
|
+
exports2.useContext = function(Context) {
|
|
431
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
432
|
+
};
|
|
433
|
+
exports2.useDebugValue = function() {
|
|
434
|
+
};
|
|
435
|
+
exports2.useDeferredValue = function(value, initialValue) {
|
|
436
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
437
|
+
};
|
|
438
|
+
exports2.useEffect = function(create, deps) {
|
|
439
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
440
|
+
};
|
|
441
|
+
exports2.useEffectEvent = function(callback) {
|
|
442
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
443
|
+
};
|
|
444
|
+
exports2.useId = function() {
|
|
445
|
+
return ReactSharedInternals.H.useId();
|
|
446
|
+
};
|
|
447
|
+
exports2.useImperativeHandle = function(ref, create, deps) {
|
|
448
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
449
|
+
};
|
|
450
|
+
exports2.useInsertionEffect = function(create, deps) {
|
|
451
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
452
|
+
};
|
|
453
|
+
exports2.useLayoutEffect = function(create, deps) {
|
|
454
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
455
|
+
};
|
|
456
|
+
exports2.useMemo = function(create, deps) {
|
|
457
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
458
|
+
};
|
|
459
|
+
exports2.useOptimistic = function(passthrough, reducer) {
|
|
460
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
461
|
+
};
|
|
462
|
+
exports2.useReducer = function(reducer, initialArg, init) {
|
|
463
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
464
|
+
};
|
|
465
|
+
exports2.useRef = function(initialValue) {
|
|
466
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
467
|
+
};
|
|
468
|
+
exports2.useState = function(initialState) {
|
|
469
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
470
|
+
};
|
|
471
|
+
exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
472
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
473
|
+
subscribe,
|
|
474
|
+
getSnapshot,
|
|
475
|
+
getServerSnapshot
|
|
476
|
+
);
|
|
477
|
+
};
|
|
478
|
+
exports2.useTransition = function() {
|
|
479
|
+
return ReactSharedInternals.H.useTransition();
|
|
480
|
+
};
|
|
481
|
+
exports2.version = "19.3.0";
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
// node_modules/react/cjs/react.development.js
|
|
486
|
+
var require_react_development = __commonJS({
|
|
487
|
+
"node_modules/react/cjs/react.development.js"(exports2, module2) {
|
|
488
|
+
"use strict";
|
|
489
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
490
|
+
function defineDeprecationWarning(methodName, info) {
|
|
491
|
+
Object.defineProperty(Component.prototype, methodName, {
|
|
492
|
+
get: function() {
|
|
493
|
+
console.warn(
|
|
494
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
495
|
+
info[0],
|
|
496
|
+
info[1]
|
|
497
|
+
);
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
function getIteratorFn(maybeIterable) {
|
|
502
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
503
|
+
return null;
|
|
504
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
505
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
506
|
+
}
|
|
507
|
+
function warnNoop(publicInstance, callerName) {
|
|
508
|
+
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
509
|
+
var warningKey = publicInstance + "." + callerName;
|
|
510
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
|
511
|
+
"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.",
|
|
512
|
+
callerName,
|
|
513
|
+
publicInstance
|
|
514
|
+
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
515
|
+
}
|
|
516
|
+
function Component(props, context, updater) {
|
|
517
|
+
this.props = props;
|
|
518
|
+
this.context = context;
|
|
519
|
+
this.refs = emptyObject;
|
|
520
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
521
|
+
}
|
|
522
|
+
function ComponentDummy() {
|
|
523
|
+
}
|
|
524
|
+
function PureComponent(props, context, updater) {
|
|
525
|
+
this.props = props;
|
|
526
|
+
this.context = context;
|
|
527
|
+
this.refs = emptyObject;
|
|
528
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
529
|
+
}
|
|
530
|
+
function noop() {
|
|
531
|
+
}
|
|
532
|
+
function testStringCoercion(value) {
|
|
533
|
+
return "" + value;
|
|
534
|
+
}
|
|
535
|
+
function checkKeyStringCoercion(value) {
|
|
536
|
+
try {
|
|
537
|
+
testStringCoercion(value);
|
|
538
|
+
var JSCompiler_inline_result = false;
|
|
539
|
+
} catch (e) {
|
|
540
|
+
JSCompiler_inline_result = true;
|
|
541
|
+
}
|
|
542
|
+
if (JSCompiler_inline_result) {
|
|
543
|
+
JSCompiler_inline_result = console;
|
|
544
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
545
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
546
|
+
JSCompiler_temp_const.call(
|
|
547
|
+
JSCompiler_inline_result,
|
|
548
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
549
|
+
JSCompiler_inline_result$jscomp$0
|
|
550
|
+
);
|
|
551
|
+
return testStringCoercion(value);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
function getComponentNameFromType(type) {
|
|
555
|
+
if (null == type) return null;
|
|
556
|
+
if ("function" === typeof type)
|
|
557
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
558
|
+
if ("string" === typeof type) return type;
|
|
559
|
+
switch (type) {
|
|
560
|
+
case REACT_FRAGMENT_TYPE:
|
|
561
|
+
return "Fragment";
|
|
562
|
+
case REACT_PROFILER_TYPE:
|
|
563
|
+
return "Profiler";
|
|
564
|
+
case REACT_STRICT_MODE_TYPE:
|
|
565
|
+
return "StrictMode";
|
|
566
|
+
case REACT_SUSPENSE_TYPE:
|
|
567
|
+
return "Suspense";
|
|
568
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
569
|
+
return "SuspenseList";
|
|
570
|
+
case REACT_ACTIVITY_TYPE:
|
|
571
|
+
return "Activity";
|
|
572
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
573
|
+
return "ViewTransition";
|
|
574
|
+
}
|
|
575
|
+
if ("object" === typeof type)
|
|
576
|
+
switch ("number" === typeof type.tag && console.error(
|
|
577
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
578
|
+
), type.$$typeof) {
|
|
579
|
+
case REACT_PORTAL_TYPE:
|
|
580
|
+
return "Portal";
|
|
581
|
+
case REACT_CONTEXT_TYPE:
|
|
582
|
+
return type.displayName || "Context";
|
|
583
|
+
case REACT_CONSUMER_TYPE:
|
|
584
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
585
|
+
case REACT_FORWARD_REF_TYPE:
|
|
586
|
+
var innerType = type.render;
|
|
587
|
+
type = type.displayName;
|
|
588
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
589
|
+
return type;
|
|
590
|
+
case REACT_MEMO_TYPE:
|
|
591
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
592
|
+
case REACT_LAZY_TYPE:
|
|
593
|
+
innerType = type._payload;
|
|
594
|
+
type = type._init;
|
|
595
|
+
try {
|
|
596
|
+
return getComponentNameFromType(type(innerType));
|
|
597
|
+
} catch (x) {
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
return null;
|
|
601
|
+
}
|
|
602
|
+
function getTaskName(type) {
|
|
603
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
604
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
605
|
+
return "<...>";
|
|
606
|
+
try {
|
|
607
|
+
var name = getComponentNameFromType(type);
|
|
608
|
+
return name ? "<" + name + ">" : "<...>";
|
|
609
|
+
} catch (x) {
|
|
610
|
+
return "<...>";
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
function getOwner() {
|
|
614
|
+
var dispatcher = ReactSharedInternals.A;
|
|
615
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
616
|
+
}
|
|
617
|
+
function UnknownOwner() {
|
|
618
|
+
return Error("react-stack-top-frame");
|
|
619
|
+
}
|
|
620
|
+
function hasValidKey(config) {
|
|
621
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
622
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
623
|
+
if (getter && getter.isReactWarning) return false;
|
|
624
|
+
}
|
|
625
|
+
return void 0 !== config.key;
|
|
626
|
+
}
|
|
627
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
628
|
+
function warnAboutAccessingKey() {
|
|
629
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
630
|
+
"%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)",
|
|
631
|
+
displayName
|
|
632
|
+
));
|
|
633
|
+
}
|
|
634
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
635
|
+
Object.defineProperty(props, "key", {
|
|
636
|
+
get: warnAboutAccessingKey,
|
|
637
|
+
configurable: true
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
641
|
+
var componentName = getComponentNameFromType(this.type);
|
|
642
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
643
|
+
"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."
|
|
644
|
+
));
|
|
645
|
+
componentName = this.props.ref;
|
|
646
|
+
return void 0 !== componentName ? componentName : null;
|
|
647
|
+
}
|
|
648
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
649
|
+
var refProp = props.ref;
|
|
650
|
+
type = {
|
|
651
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
652
|
+
type,
|
|
653
|
+
key,
|
|
654
|
+
props,
|
|
655
|
+
_owner: owner
|
|
656
|
+
};
|
|
657
|
+
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
658
|
+
enumerable: false,
|
|
659
|
+
get: elementRefGetterWithDeprecationWarning
|
|
660
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
661
|
+
type._store = {};
|
|
662
|
+
Object.defineProperty(type._store, "validated", {
|
|
663
|
+
configurable: false,
|
|
664
|
+
enumerable: false,
|
|
665
|
+
writable: true,
|
|
666
|
+
value: 0
|
|
667
|
+
});
|
|
668
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
669
|
+
configurable: false,
|
|
670
|
+
enumerable: false,
|
|
671
|
+
writable: true,
|
|
672
|
+
value: null
|
|
673
|
+
});
|
|
674
|
+
Object.defineProperty(type, "_debugStack", {
|
|
675
|
+
configurable: false,
|
|
676
|
+
enumerable: false,
|
|
677
|
+
writable: true,
|
|
678
|
+
value: debugStack
|
|
679
|
+
});
|
|
680
|
+
Object.defineProperty(type, "_debugTask", {
|
|
681
|
+
configurable: false,
|
|
682
|
+
enumerable: false,
|
|
683
|
+
writable: true,
|
|
684
|
+
value: debugTask
|
|
685
|
+
});
|
|
686
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
687
|
+
return type;
|
|
688
|
+
}
|
|
689
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
690
|
+
newKey = ReactElement(
|
|
691
|
+
oldElement.type,
|
|
692
|
+
newKey,
|
|
693
|
+
oldElement.props,
|
|
694
|
+
oldElement._owner,
|
|
695
|
+
oldElement._debugStack,
|
|
696
|
+
oldElement._debugTask
|
|
697
|
+
);
|
|
698
|
+
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
699
|
+
return newKey;
|
|
700
|
+
}
|
|
701
|
+
function validateChildKeys(node) {
|
|
702
|
+
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));
|
|
703
|
+
}
|
|
704
|
+
function isValidElement(object) {
|
|
705
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
706
|
+
}
|
|
707
|
+
function escape(key) {
|
|
708
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
709
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
710
|
+
return escaperLookup[match];
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
function getElementKey(element, index) {
|
|
714
|
+
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
715
|
+
}
|
|
716
|
+
function resolveThenable(thenable) {
|
|
717
|
+
switch (thenable.status) {
|
|
718
|
+
case "fulfilled":
|
|
719
|
+
return thenable.value;
|
|
720
|
+
case "rejected":
|
|
721
|
+
throw thenable.reason;
|
|
722
|
+
default:
|
|
723
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
724
|
+
function(fulfilledValue) {
|
|
725
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
726
|
+
},
|
|
727
|
+
function(error) {
|
|
728
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
729
|
+
}
|
|
730
|
+
)), thenable.status) {
|
|
731
|
+
case "fulfilled":
|
|
732
|
+
return thenable.value;
|
|
733
|
+
case "rejected":
|
|
734
|
+
throw thenable.reason;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
throw thenable;
|
|
738
|
+
}
|
|
739
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
740
|
+
var type = typeof children;
|
|
741
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
742
|
+
var invokeCallback = false;
|
|
743
|
+
if (null === children) invokeCallback = true;
|
|
744
|
+
else
|
|
745
|
+
switch (type) {
|
|
746
|
+
case "bigint":
|
|
747
|
+
case "string":
|
|
748
|
+
case "number":
|
|
749
|
+
invokeCallback = true;
|
|
750
|
+
break;
|
|
751
|
+
case "object":
|
|
752
|
+
switch (children.$$typeof) {
|
|
753
|
+
case REACT_ELEMENT_TYPE:
|
|
754
|
+
case REACT_PORTAL_TYPE:
|
|
755
|
+
invokeCallback = true;
|
|
756
|
+
break;
|
|
757
|
+
case REACT_LAZY_TYPE:
|
|
758
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
759
|
+
invokeCallback(children._payload),
|
|
760
|
+
array,
|
|
761
|
+
escapedPrefix,
|
|
762
|
+
nameSoFar,
|
|
763
|
+
callback
|
|
764
|
+
);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
if (invokeCallback) {
|
|
768
|
+
invokeCallback = children;
|
|
769
|
+
callback = callback(invokeCallback);
|
|
770
|
+
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
771
|
+
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
772
|
+
return c;
|
|
773
|
+
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
774
|
+
callback,
|
|
775
|
+
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
776
|
+
userProvidedKeyEscapeRegex,
|
|
777
|
+
"$&/"
|
|
778
|
+
) + "/") + childKey
|
|
779
|
+
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
780
|
+
return 1;
|
|
781
|
+
}
|
|
782
|
+
invokeCallback = 0;
|
|
783
|
+
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
784
|
+
if (isArrayImpl(children))
|
|
785
|
+
for (var i = 0; i < children.length; i++)
|
|
786
|
+
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
787
|
+
nameSoFar,
|
|
788
|
+
array,
|
|
789
|
+
escapedPrefix,
|
|
790
|
+
type,
|
|
791
|
+
callback
|
|
792
|
+
);
|
|
793
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
794
|
+
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
795
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
796
|
+
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
797
|
+
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
798
|
+
nameSoFar,
|
|
799
|
+
array,
|
|
800
|
+
escapedPrefix,
|
|
801
|
+
type,
|
|
802
|
+
callback
|
|
803
|
+
);
|
|
804
|
+
else if ("object" === type) {
|
|
805
|
+
if ("function" === typeof children.then)
|
|
806
|
+
return mapIntoArray(
|
|
807
|
+
resolveThenable(children),
|
|
808
|
+
array,
|
|
809
|
+
escapedPrefix,
|
|
810
|
+
nameSoFar,
|
|
811
|
+
callback
|
|
812
|
+
);
|
|
813
|
+
array = String(children);
|
|
814
|
+
throw Error(
|
|
815
|
+
"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."
|
|
816
|
+
);
|
|
817
|
+
}
|
|
818
|
+
return invokeCallback;
|
|
819
|
+
}
|
|
820
|
+
function mapChildren(children, func, context) {
|
|
821
|
+
if (null == children) return children;
|
|
822
|
+
var result = [], count = 0;
|
|
823
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
824
|
+
return func.call(context, child, count++);
|
|
825
|
+
});
|
|
826
|
+
return result;
|
|
827
|
+
}
|
|
828
|
+
function lazyInitializer(payload) {
|
|
829
|
+
if (-1 === payload._status) {
|
|
830
|
+
var resolveDebugValue = null, rejectDebugValue = null, ioInfo = payload._ioInfo;
|
|
831
|
+
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now(), ioInfo.value = new Promise(function(resolve, reject) {
|
|
832
|
+
resolveDebugValue = resolve;
|
|
833
|
+
rejectDebugValue = reject;
|
|
834
|
+
}));
|
|
835
|
+
ioInfo = payload._result;
|
|
836
|
+
var thenable = ioInfo();
|
|
837
|
+
thenable.then(
|
|
838
|
+
function(moduleObject) {
|
|
839
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
840
|
+
payload._status = 1;
|
|
841
|
+
payload._result = moduleObject;
|
|
842
|
+
var _ioInfo = payload._ioInfo;
|
|
843
|
+
if (null != _ioInfo) {
|
|
844
|
+
_ioInfo.end = performance.now();
|
|
845
|
+
var debugValue = null == moduleObject ? void 0 : moduleObject.default;
|
|
846
|
+
resolveDebugValue(debugValue);
|
|
847
|
+
_ioInfo.value.status = "fulfilled";
|
|
848
|
+
_ioInfo.value.value = debugValue;
|
|
849
|
+
}
|
|
850
|
+
void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
function(error) {
|
|
854
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
855
|
+
payload._status = 2;
|
|
856
|
+
payload._result = error;
|
|
857
|
+
var _ioInfo2 = payload._ioInfo;
|
|
858
|
+
null != _ioInfo2 && (_ioInfo2.end = performance.now(), _ioInfo2.value.then(noop, noop), rejectDebugValue(error), _ioInfo2.value.status = "rejected", _ioInfo2.value.reason = error);
|
|
859
|
+
void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
);
|
|
863
|
+
ioInfo = payload._ioInfo;
|
|
864
|
+
if (null != ioInfo) {
|
|
865
|
+
var displayName = thenable.displayName;
|
|
866
|
+
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
867
|
+
}
|
|
868
|
+
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
869
|
+
}
|
|
870
|
+
if (1 === payload._status)
|
|
871
|
+
return ioInfo = payload._result, void 0 === ioInfo && console.error(
|
|
872
|
+
"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?",
|
|
873
|
+
ioInfo
|
|
874
|
+
), "default" in ioInfo || console.error(
|
|
875
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
876
|
+
ioInfo
|
|
877
|
+
), ioInfo.default;
|
|
878
|
+
throw payload._result;
|
|
879
|
+
}
|
|
880
|
+
function resolveDispatcher() {
|
|
881
|
+
var dispatcher = ReactSharedInternals.H;
|
|
882
|
+
null === dispatcher && console.error(
|
|
883
|
+
"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."
|
|
884
|
+
);
|
|
885
|
+
return dispatcher;
|
|
886
|
+
}
|
|
887
|
+
function releaseAsyncTransition() {
|
|
888
|
+
ReactSharedInternals.asyncTransitions--;
|
|
889
|
+
}
|
|
890
|
+
function startTransition(scope) {
|
|
891
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
892
|
+
currentTransition.types = null !== prevTransition ? prevTransition.types : null;
|
|
893
|
+
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
894
|
+
ReactSharedInternals.T = currentTransition;
|
|
895
|
+
try {
|
|
896
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
897
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
898
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
|
|
899
|
+
} catch (error) {
|
|
900
|
+
reportGlobalError(error);
|
|
901
|
+
} finally {
|
|
902
|
+
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
903
|
+
"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."
|
|
904
|
+
)), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
|
|
905
|
+
"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."
|
|
906
|
+
), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
function addTransitionType(type) {
|
|
910
|
+
var transition = ReactSharedInternals.T;
|
|
911
|
+
if (null !== transition) {
|
|
912
|
+
var transitionTypes = transition.types;
|
|
913
|
+
null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
|
|
914
|
+
} else
|
|
915
|
+
0 === ReactSharedInternals.asyncTransitions && console.error(
|
|
916
|
+
"addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
|
|
917
|
+
), startTransition(addTransitionType.bind(null, type));
|
|
918
|
+
}
|
|
919
|
+
function enqueueTask(task) {
|
|
920
|
+
if (null === enqueueTaskImpl)
|
|
921
|
+
try {
|
|
922
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
923
|
+
enqueueTaskImpl = (module2 && module2[requireString]).call(
|
|
924
|
+
module2,
|
|
925
|
+
"timers"
|
|
926
|
+
).setImmediate;
|
|
927
|
+
} catch (_err) {
|
|
928
|
+
enqueueTaskImpl = function(callback) {
|
|
929
|
+
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
930
|
+
"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."
|
|
931
|
+
));
|
|
932
|
+
var channel = new MessageChannel();
|
|
933
|
+
channel.port1.onmessage = callback;
|
|
934
|
+
channel.port2.postMessage(void 0);
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
return enqueueTaskImpl(task);
|
|
938
|
+
}
|
|
939
|
+
function aggregateErrors(errors) {
|
|
940
|
+
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
941
|
+
}
|
|
942
|
+
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
943
|
+
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
944
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
945
|
+
);
|
|
946
|
+
actScopeDepth = prevActScopeDepth;
|
|
947
|
+
}
|
|
948
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
949
|
+
var queue = ReactSharedInternals.actQueue;
|
|
950
|
+
if (null !== queue)
|
|
951
|
+
if (0 !== queue.length)
|
|
952
|
+
try {
|
|
953
|
+
flushActQueue(queue);
|
|
954
|
+
enqueueTask(function() {
|
|
955
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
956
|
+
});
|
|
957
|
+
return;
|
|
958
|
+
} catch (error) {
|
|
959
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
960
|
+
}
|
|
961
|
+
else ReactSharedInternals.actQueue = null;
|
|
962
|
+
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
963
|
+
}
|
|
964
|
+
function flushActQueue(queue) {
|
|
965
|
+
if (!isFlushing) {
|
|
966
|
+
isFlushing = true;
|
|
967
|
+
var i = 0;
|
|
968
|
+
try {
|
|
969
|
+
for (; i < queue.length; i++) {
|
|
970
|
+
var callback = queue[i];
|
|
971
|
+
do {
|
|
972
|
+
ReactSharedInternals.didUsePromise = false;
|
|
973
|
+
var continuation = callback(false);
|
|
974
|
+
if (null !== continuation) {
|
|
975
|
+
if (ReactSharedInternals.didUsePromise) {
|
|
976
|
+
queue[i] = callback;
|
|
977
|
+
queue.splice(0, i);
|
|
978
|
+
return;
|
|
979
|
+
}
|
|
980
|
+
callback = continuation;
|
|
981
|
+
} else break;
|
|
982
|
+
} while (1);
|
|
983
|
+
}
|
|
984
|
+
queue.length = 0;
|
|
985
|
+
} catch (error) {
|
|
986
|
+
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
987
|
+
} finally {
|
|
988
|
+
isFlushing = false;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
993
|
+
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 = {
|
|
994
|
+
isMounted: function() {
|
|
995
|
+
return false;
|
|
996
|
+
},
|
|
997
|
+
enqueueForceUpdate: function(publicInstance) {
|
|
998
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
999
|
+
},
|
|
1000
|
+
enqueueReplaceState: function(publicInstance) {
|
|
1001
|
+
warnNoop(publicInstance, "replaceState");
|
|
1002
|
+
},
|
|
1003
|
+
enqueueSetState: function(publicInstance) {
|
|
1004
|
+
warnNoop(publicInstance, "setState");
|
|
1005
|
+
}
|
|
1006
|
+
}, assign = Object.assign, emptyObject = {};
|
|
1007
|
+
Object.freeze(emptyObject);
|
|
1008
|
+
Component.prototype.isReactComponent = {};
|
|
1009
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
1010
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
1011
|
+
throw Error(
|
|
1012
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1013
|
+
);
|
|
1014
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
1015
|
+
};
|
|
1016
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
1017
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
1018
|
+
};
|
|
1019
|
+
var deprecatedAPIs = {
|
|
1020
|
+
isMounted: [
|
|
1021
|
+
"isMounted",
|
|
1022
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1023
|
+
],
|
|
1024
|
+
replaceState: [
|
|
1025
|
+
"replaceState",
|
|
1026
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1027
|
+
]
|
|
1028
|
+
};
|
|
1029
|
+
for (fnName in deprecatedAPIs)
|
|
1030
|
+
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1031
|
+
ComponentDummy.prototype = Component.prototype;
|
|
1032
|
+
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1033
|
+
deprecatedAPIs.constructor = PureComponent;
|
|
1034
|
+
assign(deprecatedAPIs, Component.prototype);
|
|
1035
|
+
deprecatedAPIs.isPureReactComponent = true;
|
|
1036
|
+
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
1037
|
+
H: null,
|
|
1038
|
+
A: null,
|
|
1039
|
+
T: null,
|
|
1040
|
+
S: null,
|
|
1041
|
+
actQueue: null,
|
|
1042
|
+
asyncTransitions: 0,
|
|
1043
|
+
isBatchingLegacy: false,
|
|
1044
|
+
didScheduleLegacyUpdate: false,
|
|
1045
|
+
didUsePromise: false,
|
|
1046
|
+
thrownErrors: [],
|
|
1047
|
+
getCurrentStack: null,
|
|
1048
|
+
recentlyCreatedOwnerStacks: 0
|
|
1049
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1050
|
+
return null;
|
|
1051
|
+
};
|
|
1052
|
+
deprecatedAPIs = {
|
|
1053
|
+
react_stack_bottom_frame: function(callStackForError) {
|
|
1054
|
+
return callStackForError();
|
|
1055
|
+
}
|
|
1056
|
+
};
|
|
1057
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1058
|
+
var didWarnAboutElementRef = {};
|
|
1059
|
+
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
1060
|
+
deprecatedAPIs,
|
|
1061
|
+
UnknownOwner
|
|
1062
|
+
)();
|
|
1063
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1064
|
+
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1065
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1066
|
+
var event = new window.ErrorEvent("error", {
|
|
1067
|
+
bubbles: true,
|
|
1068
|
+
cancelable: true,
|
|
1069
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1070
|
+
error
|
|
1071
|
+
});
|
|
1072
|
+
if (!window.dispatchEvent(event)) return;
|
|
1073
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1074
|
+
process.emit("uncaughtException", error);
|
|
1075
|
+
return;
|
|
1076
|
+
}
|
|
1077
|
+
console.error(error);
|
|
1078
|
+
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
1079
|
+
queueMicrotask(function() {
|
|
1080
|
+
return queueMicrotask(callback);
|
|
1081
|
+
});
|
|
1082
|
+
} : enqueueTask;
|
|
1083
|
+
deprecatedAPIs = Object.freeze({
|
|
1084
|
+
__proto__: null,
|
|
1085
|
+
c: function(size) {
|
|
1086
|
+
return resolveDispatcher().useMemoCache(size);
|
|
1087
|
+
}
|
|
1088
|
+
});
|
|
1089
|
+
var fnName = {
|
|
1090
|
+
map: mapChildren,
|
|
1091
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
1092
|
+
mapChildren(
|
|
1093
|
+
children,
|
|
1094
|
+
function() {
|
|
1095
|
+
forEachFunc.apply(this, arguments);
|
|
1096
|
+
},
|
|
1097
|
+
forEachContext
|
|
1098
|
+
);
|
|
1099
|
+
},
|
|
1100
|
+
count: function(children) {
|
|
1101
|
+
var n = 0;
|
|
1102
|
+
mapChildren(children, function() {
|
|
1103
|
+
n++;
|
|
1104
|
+
});
|
|
1105
|
+
return n;
|
|
1106
|
+
},
|
|
1107
|
+
toArray: function(children) {
|
|
1108
|
+
return mapChildren(children, function(child) {
|
|
1109
|
+
return child;
|
|
1110
|
+
}) || [];
|
|
1111
|
+
},
|
|
1112
|
+
only: function(children) {
|
|
1113
|
+
if (!isValidElement(children))
|
|
1114
|
+
throw Error(
|
|
1115
|
+
"React.Children.only expected to receive a single React element child."
|
|
1116
|
+
);
|
|
1117
|
+
return children;
|
|
1118
|
+
}
|
|
1119
|
+
};
|
|
1120
|
+
exports2.Activity = REACT_ACTIVITY_TYPE;
|
|
1121
|
+
exports2.Children = fnName;
|
|
1122
|
+
exports2.Component = Component;
|
|
1123
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
1124
|
+
exports2.Profiler = REACT_PROFILER_TYPE;
|
|
1125
|
+
exports2.PureComponent = PureComponent;
|
|
1126
|
+
exports2.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1127
|
+
exports2.Suspense = REACT_SUSPENSE_TYPE;
|
|
1128
|
+
exports2.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
1129
|
+
exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1130
|
+
exports2.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1131
|
+
exports2.act = function(callback) {
|
|
1132
|
+
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1133
|
+
actScopeDepth++;
|
|
1134
|
+
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1135
|
+
try {
|
|
1136
|
+
var result = callback();
|
|
1137
|
+
} catch (error) {
|
|
1138
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
1139
|
+
}
|
|
1140
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1141
|
+
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1142
|
+
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
1143
|
+
var thenable = result;
|
|
1144
|
+
queueSeveralMicrotasks(function() {
|
|
1145
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1146
|
+
"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 () => ...);"
|
|
1147
|
+
));
|
|
1148
|
+
});
|
|
1149
|
+
return {
|
|
1150
|
+
then: function(resolve, reject) {
|
|
1151
|
+
didAwaitActCall = true;
|
|
1152
|
+
thenable.then(
|
|
1153
|
+
function(returnValue) {
|
|
1154
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1155
|
+
if (0 === prevActScopeDepth) {
|
|
1156
|
+
try {
|
|
1157
|
+
flushActQueue(queue), enqueueTask(function() {
|
|
1158
|
+
return recursivelyFlushAsyncActWork(
|
|
1159
|
+
returnValue,
|
|
1160
|
+
resolve,
|
|
1161
|
+
reject
|
|
1162
|
+
);
|
|
1163
|
+
});
|
|
1164
|
+
} catch (error$0) {
|
|
1165
|
+
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1166
|
+
}
|
|
1167
|
+
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1168
|
+
var _thrownError = aggregateErrors(
|
|
1169
|
+
ReactSharedInternals.thrownErrors
|
|
1170
|
+
);
|
|
1171
|
+
ReactSharedInternals.thrownErrors.length = 0;
|
|
1172
|
+
reject(_thrownError);
|
|
1173
|
+
}
|
|
1174
|
+
} else resolve(returnValue);
|
|
1175
|
+
},
|
|
1176
|
+
function(error) {
|
|
1177
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1178
|
+
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
1179
|
+
ReactSharedInternals.thrownErrors
|
|
1180
|
+
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
1181
|
+
}
|
|
1182
|
+
);
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
var returnValue$jscomp$0 = result;
|
|
1187
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1188
|
+
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
1189
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1190
|
+
"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(() => ...)"
|
|
1191
|
+
));
|
|
1192
|
+
}), ReactSharedInternals.actQueue = null);
|
|
1193
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1194
|
+
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1195
|
+
return {
|
|
1196
|
+
then: function(resolve, reject) {
|
|
1197
|
+
didAwaitActCall = true;
|
|
1198
|
+
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
1199
|
+
return recursivelyFlushAsyncActWork(
|
|
1200
|
+
returnValue$jscomp$0,
|
|
1201
|
+
resolve,
|
|
1202
|
+
reject
|
|
1203
|
+
);
|
|
1204
|
+
})) : resolve(returnValue$jscomp$0);
|
|
1205
|
+
}
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
exports2.addTransitionType = addTransitionType;
|
|
1209
|
+
exports2.cache = function(fn) {
|
|
1210
|
+
return function() {
|
|
1211
|
+
return fn.apply(null, arguments);
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
exports2.cacheSignal = function() {
|
|
1215
|
+
return null;
|
|
1216
|
+
};
|
|
1217
|
+
exports2.captureOwnerStack = function() {
|
|
1218
|
+
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1219
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
|
1220
|
+
};
|
|
1221
|
+
exports2.cloneElement = function(element, config, children) {
|
|
1222
|
+
if (null === element || void 0 === element)
|
|
1223
|
+
throw Error(
|
|
1224
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
1225
|
+
);
|
|
1226
|
+
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1227
|
+
if (null != config) {
|
|
1228
|
+
var JSCompiler_inline_result;
|
|
1229
|
+
a: {
|
|
1230
|
+
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1231
|
+
config,
|
|
1232
|
+
"ref"
|
|
1233
|
+
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1234
|
+
JSCompiler_inline_result = false;
|
|
1235
|
+
break a;
|
|
1236
|
+
}
|
|
1237
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1238
|
+
}
|
|
1239
|
+
JSCompiler_inline_result && (owner = getOwner());
|
|
1240
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1241
|
+
for (propName in config)
|
|
1242
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1243
|
+
}
|
|
1244
|
+
var propName = arguments.length - 2;
|
|
1245
|
+
if (1 === propName) props.children = children;
|
|
1246
|
+
else if (1 < propName) {
|
|
1247
|
+
JSCompiler_inline_result = Array(propName);
|
|
1248
|
+
for (var i = 0; i < propName; i++)
|
|
1249
|
+
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1250
|
+
props.children = JSCompiler_inline_result;
|
|
1251
|
+
}
|
|
1252
|
+
props = ReactElement(
|
|
1253
|
+
element.type,
|
|
1254
|
+
key,
|
|
1255
|
+
props,
|
|
1256
|
+
owner,
|
|
1257
|
+
element._debugStack,
|
|
1258
|
+
element._debugTask
|
|
1259
|
+
);
|
|
1260
|
+
for (key = 2; key < arguments.length; key++)
|
|
1261
|
+
validateChildKeys(arguments[key]);
|
|
1262
|
+
return props;
|
|
1263
|
+
};
|
|
1264
|
+
exports2.createContext = function(defaultValue) {
|
|
1265
|
+
defaultValue = {
|
|
1266
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1267
|
+
_currentValue: defaultValue,
|
|
1268
|
+
_currentValue2: defaultValue,
|
|
1269
|
+
_threadCount: 0,
|
|
1270
|
+
Provider: null,
|
|
1271
|
+
Consumer: null
|
|
1272
|
+
};
|
|
1273
|
+
defaultValue.Provider = defaultValue;
|
|
1274
|
+
defaultValue.Consumer = {
|
|
1275
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
1276
|
+
_context: defaultValue
|
|
1277
|
+
};
|
|
1278
|
+
defaultValue._currentRenderer = null;
|
|
1279
|
+
defaultValue._currentRenderer2 = null;
|
|
1280
|
+
return defaultValue;
|
|
1281
|
+
};
|
|
1282
|
+
exports2.createElement = function(type, config, children) {
|
|
1283
|
+
for (var i = 2; i < arguments.length; i++)
|
|
1284
|
+
validateChildKeys(arguments[i]);
|
|
1285
|
+
var propName;
|
|
1286
|
+
i = {};
|
|
1287
|
+
var key = null;
|
|
1288
|
+
if (null != config)
|
|
1289
|
+
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
1290
|
+
"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"
|
|
1291
|
+
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
|
|
1292
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1293
|
+
var childrenLength = arguments.length - 2;
|
|
1294
|
+
if (1 === childrenLength) i.children = children;
|
|
1295
|
+
else if (1 < childrenLength) {
|
|
1296
|
+
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
1297
|
+
childArray[_i] = arguments[_i + 2];
|
|
1298
|
+
Object.freeze && Object.freeze(childArray);
|
|
1299
|
+
i.children = childArray;
|
|
1300
|
+
}
|
|
1301
|
+
if (type && type.defaultProps)
|
|
1302
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1303
|
+
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1304
|
+
key && defineKeyPropWarningGetter(
|
|
1305
|
+
i,
|
|
1306
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1307
|
+
);
|
|
1308
|
+
(propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++) ? (childArray = Error.stackTraceLimit, Error.stackTraceLimit = 10, childrenLength = Error("react-stack-top-frame"), Error.stackTraceLimit = childArray) : childrenLength = unknownOwnerDebugStack;
|
|
1309
|
+
return ReactElement(
|
|
1310
|
+
type,
|
|
1311
|
+
key,
|
|
1312
|
+
i,
|
|
1313
|
+
getOwner(),
|
|
1314
|
+
childrenLength,
|
|
1315
|
+
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1316
|
+
);
|
|
1317
|
+
};
|
|
1318
|
+
exports2.createRef = function() {
|
|
1319
|
+
var refObject = { current: null };
|
|
1320
|
+
Object.seal(refObject);
|
|
1321
|
+
return refObject;
|
|
1322
|
+
};
|
|
1323
|
+
exports2.forwardRef = function(render) {
|
|
1324
|
+
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1325
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1326
|
+
) : "function" !== typeof render ? console.error(
|
|
1327
|
+
"forwardRef requires a render function but was given %s.",
|
|
1328
|
+
null === render ? "null" : typeof render
|
|
1329
|
+
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1330
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1331
|
+
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1332
|
+
);
|
|
1333
|
+
null != render && null != render.defaultProps && console.error(
|
|
1334
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1335
|
+
);
|
|
1336
|
+
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1337
|
+
Object.defineProperty(elementType, "displayName", {
|
|
1338
|
+
enumerable: false,
|
|
1339
|
+
configurable: true,
|
|
1340
|
+
get: function() {
|
|
1341
|
+
return ownName;
|
|
1342
|
+
},
|
|
1343
|
+
set: function(name) {
|
|
1344
|
+
ownName = name;
|
|
1345
|
+
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
1346
|
+
}
|
|
1347
|
+
});
|
|
1348
|
+
return elementType;
|
|
1349
|
+
};
|
|
1350
|
+
exports2.isValidElement = isValidElement;
|
|
1351
|
+
exports2.lazy = function(ctor) {
|
|
1352
|
+
ctor = { _status: -1, _result: ctor };
|
|
1353
|
+
var lazyType = {
|
|
1354
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1355
|
+
_payload: ctor,
|
|
1356
|
+
_init: lazyInitializer
|
|
1357
|
+
}, ioInfo = {
|
|
1358
|
+
name: "lazy",
|
|
1359
|
+
start: -1,
|
|
1360
|
+
end: -1,
|
|
1361
|
+
value: null,
|
|
1362
|
+
owner: null,
|
|
1363
|
+
debugStack: Error("react-stack-top-frame"),
|
|
1364
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1365
|
+
};
|
|
1366
|
+
ctor._ioInfo = ioInfo;
|
|
1367
|
+
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
1368
|
+
return lazyType;
|
|
1369
|
+
};
|
|
1370
|
+
exports2.memo = function(type, compare) {
|
|
1371
|
+
null == type && console.error(
|
|
1372
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
1373
|
+
null === type ? "null" : typeof type
|
|
1374
|
+
);
|
|
1375
|
+
compare = {
|
|
1376
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1377
|
+
type,
|
|
1378
|
+
compare: void 0 === compare ? null : compare
|
|
1379
|
+
};
|
|
1380
|
+
var ownName;
|
|
1381
|
+
Object.defineProperty(compare, "displayName", {
|
|
1382
|
+
enumerable: false,
|
|
1383
|
+
configurable: true,
|
|
1384
|
+
get: function() {
|
|
1385
|
+
return ownName;
|
|
1386
|
+
},
|
|
1387
|
+
set: function(name) {
|
|
1388
|
+
ownName = name;
|
|
1389
|
+
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
1390
|
+
}
|
|
1391
|
+
});
|
|
1392
|
+
return compare;
|
|
1393
|
+
};
|
|
1394
|
+
exports2.startTransition = startTransition;
|
|
1395
|
+
exports2.unstable_useCacheRefresh = function() {
|
|
1396
|
+
return resolveDispatcher().useCacheRefresh();
|
|
1397
|
+
};
|
|
1398
|
+
exports2.use = function(usable) {
|
|
1399
|
+
return resolveDispatcher().use(usable);
|
|
1400
|
+
};
|
|
1401
|
+
exports2.useActionState = function(action, initialState, permalink) {
|
|
1402
|
+
return resolveDispatcher().useActionState(
|
|
1403
|
+
action,
|
|
1404
|
+
initialState,
|
|
1405
|
+
permalink
|
|
1406
|
+
);
|
|
1407
|
+
};
|
|
1408
|
+
exports2.useCallback = function(callback, deps) {
|
|
1409
|
+
return resolveDispatcher().useCallback(callback, deps);
|
|
1410
|
+
};
|
|
1411
|
+
exports2.useContext = function(Context) {
|
|
1412
|
+
var dispatcher = resolveDispatcher();
|
|
1413
|
+
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1414
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1415
|
+
);
|
|
1416
|
+
return dispatcher.useContext(Context);
|
|
1417
|
+
};
|
|
1418
|
+
exports2.useDebugValue = function(value, formatterFn) {
|
|
1419
|
+
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1420
|
+
};
|
|
1421
|
+
exports2.useDeferredValue = function(value, initialValue) {
|
|
1422
|
+
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1423
|
+
};
|
|
1424
|
+
exports2.useEffect = function(create, deps) {
|
|
1425
|
+
null == create && console.warn(
|
|
1426
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1427
|
+
);
|
|
1428
|
+
return resolveDispatcher().useEffect(create, deps);
|
|
1429
|
+
};
|
|
1430
|
+
exports2.useEffectEvent = function(callback) {
|
|
1431
|
+
return resolveDispatcher().useEffectEvent(callback);
|
|
1432
|
+
};
|
|
1433
|
+
exports2.useId = function() {
|
|
1434
|
+
return resolveDispatcher().useId();
|
|
1435
|
+
};
|
|
1436
|
+
exports2.useImperativeHandle = function(ref, create, deps) {
|
|
1437
|
+
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1438
|
+
};
|
|
1439
|
+
exports2.useInsertionEffect = function(create, deps) {
|
|
1440
|
+
null == create && console.warn(
|
|
1441
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1442
|
+
);
|
|
1443
|
+
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1444
|
+
};
|
|
1445
|
+
exports2.useLayoutEffect = function(create, deps) {
|
|
1446
|
+
null == create && console.warn(
|
|
1447
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1448
|
+
);
|
|
1449
|
+
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1450
|
+
};
|
|
1451
|
+
exports2.useMemo = function(create, deps) {
|
|
1452
|
+
return resolveDispatcher().useMemo(create, deps);
|
|
1453
|
+
};
|
|
1454
|
+
exports2.useOptimistic = function(passthrough, reducer) {
|
|
1455
|
+
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1456
|
+
};
|
|
1457
|
+
exports2.useReducer = function(reducer, initialArg, init) {
|
|
1458
|
+
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1459
|
+
};
|
|
1460
|
+
exports2.useRef = function(initialValue) {
|
|
1461
|
+
return resolveDispatcher().useRef(initialValue);
|
|
1462
|
+
};
|
|
1463
|
+
exports2.useState = function(initialState) {
|
|
1464
|
+
return resolveDispatcher().useState(initialState);
|
|
1465
|
+
};
|
|
1466
|
+
exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1467
|
+
return resolveDispatcher().useSyncExternalStore(
|
|
1468
|
+
subscribe,
|
|
1469
|
+
getSnapshot,
|
|
1470
|
+
getServerSnapshot
|
|
1471
|
+
);
|
|
1472
|
+
};
|
|
1473
|
+
exports2.useTransition = function() {
|
|
1474
|
+
return resolveDispatcher().useTransition();
|
|
1475
|
+
};
|
|
1476
|
+
exports2.version = "19.3.0";
|
|
1477
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1478
|
+
})();
|
|
1479
|
+
}
|
|
1480
|
+
});
|
|
1481
|
+
|
|
1482
|
+
// node_modules/react/index.js
|
|
1483
|
+
var require_react = __commonJS({
|
|
1484
|
+
"node_modules/react/index.js"(exports2, module2) {
|
|
1485
|
+
"use strict";
|
|
1486
|
+
if (process.env.NODE_ENV === "production") {
|
|
1487
|
+
module2.exports = require_react_production();
|
|
1488
|
+
} else {
|
|
1489
|
+
module2.exports = require_react_development();
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
});
|
|
1493
|
+
|
|
30
1494
|
// src/service/index.ts
|
|
31
1495
|
var service_exports = {};
|
|
32
1496
|
__export(service_exports, {
|
|
@@ -304,6 +1768,7 @@ setVerbosity(globalThis.__DEV__ !== false ? "log" : "silent");
|
|
|
304
1768
|
|
|
305
1769
|
// node_modules/@timardex/cluemart-shared/dist/index.mjs
|
|
306
1770
|
var import_graphql2 = require("graphql");
|
|
1771
|
+
var import_react = __toESM(require_react(), 1);
|
|
307
1772
|
var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus22) => {
|
|
308
1773
|
EnumInviteStatus22["ACCEPTED"] = "Accepted";
|
|
309
1774
|
EnumInviteStatus22["COMPLETED"] = "Completed";
|
|
@@ -2549,8 +4014,11 @@ var EVENT = gql`
|
|
|
2549
4014
|
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
2550
4015
|
`;
|
|
2551
4016
|
var GET_EVENTS = gql`
|
|
2552
|
-
query getEvents(
|
|
2553
|
-
|
|
4017
|
+
query getEvents(
|
|
4018
|
+
$dateStatus: EventDateStatusEnumType
|
|
4019
|
+
$options: PaginationOptions
|
|
4020
|
+
) {
|
|
4021
|
+
events(dateStatus: $dateStatus, options: $options) {
|
|
2554
4022
|
...EventListItemFields
|
|
2555
4023
|
}
|
|
2556
4024
|
}
|
|
@@ -2852,8 +4320,8 @@ var UNREGISTERED_VENDOR = gql`
|
|
|
2852
4320
|
${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
|
|
2853
4321
|
`;
|
|
2854
4322
|
var GET_VENDORS = gql`
|
|
2855
|
-
query getVendors {
|
|
2856
|
-
vendors {
|
|
4323
|
+
query getVendors($options: PaginationOptions) {
|
|
4324
|
+
vendors(options: $options) {
|
|
2857
4325
|
...VendorFields
|
|
2858
4326
|
}
|
|
2859
4327
|
}
|
|
@@ -3090,8 +4558,8 @@ var PARTNER = gql`
|
|
|
3090
4558
|
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
3091
4559
|
`;
|
|
3092
4560
|
var GET_PARTNERS = gql`
|
|
3093
|
-
query getPartners {
|
|
3094
|
-
partners {
|
|
4561
|
+
query getPartners($options: PaginationOptions) {
|
|
4562
|
+
partners(options: $options) {
|
|
3095
4563
|
...PartnerFields
|
|
3096
4564
|
}
|
|
3097
4565
|
}
|
|
@@ -3296,8 +4764,8 @@ var POST_FIELDS_FRAGMENT = gql`
|
|
|
3296
4764
|
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
3297
4765
|
`;
|
|
3298
4766
|
var GET_POSTS = gql`
|
|
3299
|
-
query getPosts {
|
|
3300
|
-
posts {
|
|
4767
|
+
query getPosts($options: PaginationOptions) {
|
|
4768
|
+
posts(options: $options) {
|
|
3301
4769
|
...PostFields
|
|
3302
4770
|
}
|
|
3303
4771
|
}
|
|
@@ -3312,13 +4780,114 @@ var GET_POST = gql`
|
|
|
3312
4780
|
${POST_FIELDS_FRAGMENT}
|
|
3313
4781
|
`;
|
|
3314
4782
|
var GET_POSTS_BY_TYPE = gql`
|
|
3315
|
-
query getPostsByType($postType: PostTypeEnum
|
|
3316
|
-
postsByType(postType: $postType) {
|
|
4783
|
+
query getPostsByType($postType: PostTypeEnum!, $options: PaginationOptions) {
|
|
4784
|
+
postsByType(postType: $postType, options: $options) {
|
|
3317
4785
|
...PostFields
|
|
3318
4786
|
}
|
|
3319
4787
|
}
|
|
3320
4788
|
${POST_FIELDS_FRAGMENT}
|
|
3321
4789
|
`;
|
|
4790
|
+
var GET_USERS = gql`
|
|
4791
|
+
query getUsers($options: PaginationOptions) {
|
|
4792
|
+
users(options: $options) {
|
|
4793
|
+
...UserFields
|
|
4794
|
+
}
|
|
4795
|
+
}
|
|
4796
|
+
${USER_FIELDS_FRAGMENT}
|
|
4797
|
+
`;
|
|
4798
|
+
var GET_USER = gql`
|
|
4799
|
+
query getUser($_id: ID!) {
|
|
4800
|
+
user(_id: $_id) {
|
|
4801
|
+
...UserFields
|
|
4802
|
+
}
|
|
4803
|
+
}
|
|
4804
|
+
${USER_FIELDS_FRAGMENT}
|
|
4805
|
+
`;
|
|
4806
|
+
var GET_USER_EVENTS = gql`
|
|
4807
|
+
query getUserEvents {
|
|
4808
|
+
userEvents {
|
|
4809
|
+
...EventFields
|
|
4810
|
+
}
|
|
4811
|
+
}
|
|
4812
|
+
${EVENT}
|
|
4813
|
+
`;
|
|
4814
|
+
var GET_USER_VENDORS = gql`
|
|
4815
|
+
query getUserVendors {
|
|
4816
|
+
userVendors {
|
|
4817
|
+
...VendorFields
|
|
4818
|
+
}
|
|
4819
|
+
}
|
|
4820
|
+
${VENDOR}
|
|
4821
|
+
`;
|
|
4822
|
+
var GET_USER_PARTNERS = gql`
|
|
4823
|
+
query getUserPartners {
|
|
4824
|
+
userPartners {
|
|
4825
|
+
...PartnerFields
|
|
4826
|
+
}
|
|
4827
|
+
}
|
|
4828
|
+
${PARTNER}
|
|
4829
|
+
`;
|
|
4830
|
+
var GET_USER_ACTIVITIES = gql`
|
|
4831
|
+
query getUserActivities {
|
|
4832
|
+
userActivities {
|
|
4833
|
+
favourites {
|
|
4834
|
+
events {
|
|
4835
|
+
...EventListItemFields
|
|
4836
|
+
}
|
|
4837
|
+
partners {
|
|
4838
|
+
...PartnerFields
|
|
4839
|
+
}
|
|
4840
|
+
vendors {
|
|
4841
|
+
...VendorFields
|
|
4842
|
+
}
|
|
4843
|
+
}
|
|
4844
|
+
going {
|
|
4845
|
+
events {
|
|
4846
|
+
...EventListItemFields
|
|
4847
|
+
}
|
|
4848
|
+
}
|
|
4849
|
+
interested {
|
|
4850
|
+
events {
|
|
4851
|
+
...EventListItemFields
|
|
4852
|
+
}
|
|
4853
|
+
}
|
|
4854
|
+
present {
|
|
4855
|
+
events {
|
|
4856
|
+
...EventListItemFields
|
|
4857
|
+
}
|
|
4858
|
+
}
|
|
4859
|
+
}
|
|
4860
|
+
}
|
|
4861
|
+
${EVENT_LIST_ITEM}
|
|
4862
|
+
${VENDOR}
|
|
4863
|
+
${PARTNER}
|
|
4864
|
+
`;
|
|
4865
|
+
var GET_USER_RESOURCES = gql`
|
|
4866
|
+
query getUserResources($userId: ID!) {
|
|
4867
|
+
userResources(userId: $userId) {
|
|
4868
|
+
resources {
|
|
4869
|
+
_id
|
|
4870
|
+
logo
|
|
4871
|
+
name
|
|
4872
|
+
resourceType
|
|
4873
|
+
}
|
|
4874
|
+
}
|
|
4875
|
+
}
|
|
4876
|
+
`;
|
|
4877
|
+
var GET_USERS_BY_PROMO_CODE = gql`
|
|
4878
|
+
query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
|
|
4879
|
+
usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
|
|
4880
|
+
active
|
|
4881
|
+
avatar {
|
|
4882
|
+
...ResourceImageFields
|
|
4883
|
+
}
|
|
4884
|
+
deletedAt
|
|
4885
|
+
nickName
|
|
4886
|
+
userId
|
|
4887
|
+
}
|
|
4888
|
+
}
|
|
4889
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
4890
|
+
`;
|
|
3322
4891
|
var GET_EVENT_BY_SLUG = gql`
|
|
3323
4892
|
query getEventBySlug($slug: String!) {
|
|
3324
4893
|
eventBySlug(slug: $slug) {
|
|
@@ -3783,107 +5352,6 @@ var UPDATE_EVENT_INFO_MUTATION = gql`
|
|
|
3783
5352
|
}
|
|
3784
5353
|
${EVENT_INFO}
|
|
3785
5354
|
`;
|
|
3786
|
-
var GET_USERS = gql`
|
|
3787
|
-
query getUsers {
|
|
3788
|
-
users {
|
|
3789
|
-
...UserFields
|
|
3790
|
-
}
|
|
3791
|
-
}
|
|
3792
|
-
${USER_FIELDS_FRAGMENT}
|
|
3793
|
-
`;
|
|
3794
|
-
var GET_USER = gql`
|
|
3795
|
-
query getUser($_id: ID!) {
|
|
3796
|
-
user(_id: $_id) {
|
|
3797
|
-
...UserFields
|
|
3798
|
-
}
|
|
3799
|
-
}
|
|
3800
|
-
${USER_FIELDS_FRAGMENT}
|
|
3801
|
-
`;
|
|
3802
|
-
var GET_USER_EVENTS = gql`
|
|
3803
|
-
query getUserEvents {
|
|
3804
|
-
userEvents {
|
|
3805
|
-
...EventFields
|
|
3806
|
-
}
|
|
3807
|
-
}
|
|
3808
|
-
${EVENT}
|
|
3809
|
-
`;
|
|
3810
|
-
var GET_USER_VENDORS = gql`
|
|
3811
|
-
query getUserVendors {
|
|
3812
|
-
userVendors {
|
|
3813
|
-
...VendorFields
|
|
3814
|
-
}
|
|
3815
|
-
}
|
|
3816
|
-
${VENDOR}
|
|
3817
|
-
`;
|
|
3818
|
-
var GET_USER_PARTNERS = gql`
|
|
3819
|
-
query getUserPartners {
|
|
3820
|
-
userPartners {
|
|
3821
|
-
...PartnerFields
|
|
3822
|
-
}
|
|
3823
|
-
}
|
|
3824
|
-
${PARTNER}
|
|
3825
|
-
`;
|
|
3826
|
-
var GET_USER_ACTIVITIES = gql`
|
|
3827
|
-
query getUserActivities {
|
|
3828
|
-
userActivities {
|
|
3829
|
-
favourites {
|
|
3830
|
-
events {
|
|
3831
|
-
...EventListItemFields
|
|
3832
|
-
}
|
|
3833
|
-
partners {
|
|
3834
|
-
...PartnerFields
|
|
3835
|
-
}
|
|
3836
|
-
vendors {
|
|
3837
|
-
...VendorFields
|
|
3838
|
-
}
|
|
3839
|
-
}
|
|
3840
|
-
going {
|
|
3841
|
-
events {
|
|
3842
|
-
...EventListItemFields
|
|
3843
|
-
}
|
|
3844
|
-
}
|
|
3845
|
-
interested {
|
|
3846
|
-
events {
|
|
3847
|
-
...EventListItemFields
|
|
3848
|
-
}
|
|
3849
|
-
}
|
|
3850
|
-
present {
|
|
3851
|
-
events {
|
|
3852
|
-
...EventListItemFields
|
|
3853
|
-
}
|
|
3854
|
-
}
|
|
3855
|
-
}
|
|
3856
|
-
}
|
|
3857
|
-
${EVENT_LIST_ITEM}
|
|
3858
|
-
${VENDOR}
|
|
3859
|
-
${PARTNER}
|
|
3860
|
-
`;
|
|
3861
|
-
var GET_USER_RESOURCES = gql`
|
|
3862
|
-
query getUserResources($userId: ID!) {
|
|
3863
|
-
userResources(userId: $userId) {
|
|
3864
|
-
resources {
|
|
3865
|
-
_id
|
|
3866
|
-
logo
|
|
3867
|
-
name
|
|
3868
|
-
resourceType
|
|
3869
|
-
}
|
|
3870
|
-
}
|
|
3871
|
-
}
|
|
3872
|
-
`;
|
|
3873
|
-
var GET_USERS_BY_PROMO_CODE = gql`
|
|
3874
|
-
query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
|
|
3875
|
-
usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
|
|
3876
|
-
active
|
|
3877
|
-
avatar {
|
|
3878
|
-
...ResourceImageFields
|
|
3879
|
-
}
|
|
3880
|
-
deletedAt
|
|
3881
|
-
nickName
|
|
3882
|
-
userId
|
|
3883
|
-
}
|
|
3884
|
-
}
|
|
3885
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
3886
|
-
`;
|
|
3887
5355
|
var NOTIFICATION_FRAGMENT = gql`
|
|
3888
5356
|
fragment NotificationFields on Notification {
|
|
3889
5357
|
_id
|
|
@@ -5785,6 +7253,7 @@ var schema3 = new MongooseSchema5(
|
|
|
5785
7253
|
},
|
|
5786
7254
|
{ timestamps: true }
|
|
5787
7255
|
);
|
|
7256
|
+
schema3.index({ eventId: 1 });
|
|
5788
7257
|
var EventInfoModel = import_mongoose5.default.models.EventInfo || import_mongoose5.default.model("EventInfo", schema3);
|
|
5789
7258
|
|
|
5790
7259
|
// src/mongoose/Relation.ts
|
|
@@ -6087,6 +7556,61 @@ var baseResourceFields = {
|
|
|
6087
7556
|
|
|
6088
7557
|
// src/mongoose/GoogleImportedMarket.ts
|
|
6089
7558
|
var import_mongoose8 = __toESM(require("mongoose"));
|
|
7559
|
+
|
|
7560
|
+
// src/mongoose/searchNamePlugin.ts
|
|
7561
|
+
function deriveSearchName(name) {
|
|
7562
|
+
return typeof name === "string" ? name.trim().toLowerCase() : "";
|
|
7563
|
+
}
|
|
7564
|
+
function searchNamePlugin(schema20) {
|
|
7565
|
+
schema20.add({ searchName: { default: "", required: false, type: String } });
|
|
7566
|
+
schema20.index({ searchName: 1 });
|
|
7567
|
+
schema20.pre("save", function syncSearchNameOnSave(next) {
|
|
7568
|
+
const doc = this;
|
|
7569
|
+
doc.searchName = deriveSearchName(doc.name);
|
|
7570
|
+
next();
|
|
7571
|
+
});
|
|
7572
|
+
schema20.pre("insertMany", function syncSearchNameOnInsertMany(next, docs) {
|
|
7573
|
+
const list = Array.isArray(docs) ? docs : [docs];
|
|
7574
|
+
for (const doc of list) {
|
|
7575
|
+
if (doc && typeof doc.name === "string") {
|
|
7576
|
+
doc.searchName = deriveSearchName(doc.name);
|
|
7577
|
+
}
|
|
7578
|
+
}
|
|
7579
|
+
next();
|
|
7580
|
+
});
|
|
7581
|
+
schema20.pre("bulkWrite", function syncSearchNameOnBulkWrite(next, ops) {
|
|
7582
|
+
for (const op of ops) {
|
|
7583
|
+
const doc = op.insertOne?.document ?? op.replaceOne?.replacement;
|
|
7584
|
+
if (doc && typeof doc.name === "string") {
|
|
7585
|
+
doc.searchName = deriveSearchName(doc.name);
|
|
7586
|
+
}
|
|
7587
|
+
const $set = op.updateOne?.update?.$set;
|
|
7588
|
+
if ($set && typeof $set.name === "string") {
|
|
7589
|
+
$set.searchName = deriveSearchName($set.name);
|
|
7590
|
+
}
|
|
7591
|
+
}
|
|
7592
|
+
next();
|
|
7593
|
+
});
|
|
7594
|
+
const syncSearchNameOnUpdate = function(next) {
|
|
7595
|
+
const update = this.getUpdate();
|
|
7596
|
+
if (update && typeof update === "object" && "$set" in update) {
|
|
7597
|
+
const $set = update.$set;
|
|
7598
|
+
if ($set && typeof $set.name === "string") {
|
|
7599
|
+
this.setUpdate({
|
|
7600
|
+
...update,
|
|
7601
|
+
$set: { ...$set, searchName: deriveSearchName($set.name) }
|
|
7602
|
+
});
|
|
7603
|
+
}
|
|
7604
|
+
}
|
|
7605
|
+
next();
|
|
7606
|
+
};
|
|
7607
|
+
schema20.pre(
|
|
7608
|
+
["findOneAndUpdate", "updateOne", "updateMany"],
|
|
7609
|
+
syncSearchNameOnUpdate
|
|
7610
|
+
);
|
|
7611
|
+
}
|
|
7612
|
+
|
|
7613
|
+
// src/mongoose/GoogleImportedMarket.ts
|
|
6090
7614
|
var MongooseSchema8 = import_mongoose8.default.Schema;
|
|
6091
7615
|
var addressComponentSchema = new MongooseSchema8(
|
|
6092
7616
|
{
|
|
@@ -6165,6 +7689,8 @@ schema4.index({ region: 1 });
|
|
|
6165
7689
|
schema4.index({ deletedAt: 1 });
|
|
6166
7690
|
schema4.index({ "dateTime.dateStatus": 1 });
|
|
6167
7691
|
schema4.index({ slug: 1 });
|
|
7692
|
+
schema4.index({ name: "text", description: "text" });
|
|
7693
|
+
schema4.plugin(searchNamePlugin);
|
|
6168
7694
|
var GoogleImportedMarketModel = import_mongoose8.default.models.GoogleImportedMarket || import_mongoose8.default.model("GoogleImportedMarket", schema4);
|
|
6169
7695
|
|
|
6170
7696
|
// src/mongoose/Notification.ts
|
|
@@ -6583,6 +8109,7 @@ var schema8 = new MongooseSchema12(
|
|
|
6583
8109
|
);
|
|
6584
8110
|
schema8.index({ "licences.expiryDate": 1 });
|
|
6585
8111
|
schema8.index({ "licences.licenceType": 1 });
|
|
8112
|
+
schema8.index({ promoCodes: 1, active: 1, deletedAt: 1 });
|
|
6586
8113
|
var UserModel = import_mongoose12.default.models.User || import_mongoose12.default.model("User", schema8);
|
|
6587
8114
|
|
|
6588
8115
|
// src/mongoose/VerificationToken.ts
|
|
@@ -6668,6 +8195,7 @@ var schema10 = new MongooseSchema14(
|
|
|
6668
8195
|
type: calendarWrapperSchema
|
|
6669
8196
|
},
|
|
6670
8197
|
categories: { required: true, type: [CategorySchema] },
|
|
8198
|
+
categoriesNames: { default: [], required: false, type: [String] },
|
|
6671
8199
|
claimed: { default: true, required: false, type: Boolean },
|
|
6672
8200
|
foodTruck: { required: true, type: Boolean },
|
|
6673
8201
|
products: { required: false, type: productWrapperSchema },
|
|
@@ -6700,6 +8228,13 @@ schema10.index({ description: 1 });
|
|
|
6700
8228
|
schema10.index({ region: 1 });
|
|
6701
8229
|
schema10.index({ "categories.name": 1 });
|
|
6702
8230
|
schema10.index({ slug: 1 });
|
|
8231
|
+
schema10.index({
|
|
8232
|
+
name: "text",
|
|
8233
|
+
description: "text",
|
|
8234
|
+
categoriesNames: "text"
|
|
8235
|
+
});
|
|
8236
|
+
schema10.index({ "owner.userId": 1, deletedAt: 1 });
|
|
8237
|
+
schema10.plugin(searchNamePlugin);
|
|
6703
8238
|
var VendorModel = import_mongoose14.default.models.Vendor || import_mongoose14.default.model("Vendor", schema10);
|
|
6704
8239
|
|
|
6705
8240
|
// src/mongoose/vendor/VendorInfo.ts
|
|
@@ -6752,6 +8287,7 @@ var schema11 = new MongooseSchema15(
|
|
|
6752
8287
|
},
|
|
6753
8288
|
{ timestamps: true }
|
|
6754
8289
|
);
|
|
8290
|
+
schema11.index({ vendorId: 1 });
|
|
6755
8291
|
var VendorInfoModel = import_mongoose15.default.models.VendorInfo || import_mongoose15.default.model("VendorInfo", schema11);
|
|
6756
8292
|
|
|
6757
8293
|
// src/mongoose/vendor/UnregisteredVendor.ts
|
|
@@ -6843,6 +8379,9 @@ schema13.index({ tags: 1 });
|
|
|
6843
8379
|
schema13.index({ deletedAt: 1 });
|
|
6844
8380
|
schema13.index({ "dateTime.dateStatus": 1 });
|
|
6845
8381
|
schema13.index({ slug: 1 });
|
|
8382
|
+
schema13.index({ name: "text", description: "text", tags: "text" });
|
|
8383
|
+
schema13.index({ "owner.userId": 1, deletedAt: 1 });
|
|
8384
|
+
schema13.plugin(searchNamePlugin);
|
|
6846
8385
|
var EventModel = import_mongoose17.default.models.Event || import_mongoose17.default.model("Event", schema13);
|
|
6847
8386
|
|
|
6848
8387
|
// src/mongoose/Partner.ts
|
|
@@ -6869,6 +8408,9 @@ schema14.index({ description: 1 });
|
|
|
6869
8408
|
schema14.index({ region: 1 });
|
|
6870
8409
|
schema14.index({ "location.geo": "2dsphere" });
|
|
6871
8410
|
schema14.index({ slug: 1 });
|
|
8411
|
+
schema14.index({ name: "text", description: "text" });
|
|
8412
|
+
schema14.index({ "owner.userId": 1, deletedAt: 1 });
|
|
8413
|
+
schema14.plugin(searchNamePlugin);
|
|
6872
8414
|
var PartnerModel = import_mongoose18.default.models.Partner || import_mongoose18.default.model("Partner", schema14);
|
|
6873
8415
|
|
|
6874
8416
|
// src/mongoose/Post.ts
|
|
@@ -7402,6 +8944,8 @@ var schema19 = new MongooseSchema27(
|
|
|
7402
8944
|
},
|
|
7403
8945
|
{ timestamps: true }
|
|
7404
8946
|
);
|
|
8947
|
+
schema19.index({ active: 1, deletedAt: 1, "owner.userId": 1 });
|
|
8948
|
+
schema19.index({ "couponData.participantUsers.userId": 1 });
|
|
7405
8949
|
var CouponModel = import_mongoose27.default.models.Coupon || import_mongoose27.default.model("Coupon", schema19);
|
|
7406
8950
|
|
|
7407
8951
|
// src/service/promoCode/constants.ts
|
|
@@ -7492,7 +9036,7 @@ var SHARE_RESOURCE_LABEL2 = {
|
|
|
7492
9036
|
school: "School"
|
|
7493
9037
|
};
|
|
7494
9038
|
|
|
7495
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
9039
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-JJQL6LZE.mjs
|
|
7496
9040
|
var PROMO_CODE_PREFIX2 = "CM-";
|
|
7497
9041
|
var OBJECT_ID_PATH_SEGMENT2 = "[a-f0-9]{24}";
|
|
7498
9042
|
var OBJECT_ID_PATH_SEGMENT_END2 = `${OBJECT_ID_PATH_SEGMENT2}$`;
|
|
@@ -7604,7 +9148,7 @@ var gameScreenIdentifierList2 = [
|
|
|
7604
9148
|
}
|
|
7605
9149
|
];
|
|
7606
9150
|
|
|
7607
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
9151
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-L3SNS6OJ.mjs
|
|
7608
9152
|
var import_dayjs4 = __toESM(require("dayjs"), 1);
|
|
7609
9153
|
var statusOptions2 = [
|
|
7610
9154
|
...Object.values(EnumInviteStatus2).map((status) => ({
|
|
@@ -10402,4 +11946,28 @@ async function remindUsersAboutLicenseExpiration() {
|
|
|
10402
11946
|
vendorLicences,
|
|
10403
11947
|
vendorOwnerHasProLicence
|
|
10404
11948
|
});
|
|
11949
|
+
/*! Bundled license information:
|
|
11950
|
+
|
|
11951
|
+
react/cjs/react.production.js:
|
|
11952
|
+
(**
|
|
11953
|
+
* @license React
|
|
11954
|
+
* react.production.js
|
|
11955
|
+
*
|
|
11956
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
11957
|
+
*
|
|
11958
|
+
* This source code is licensed under the MIT license found in the
|
|
11959
|
+
* LICENSE file in the root directory of this source tree.
|
|
11960
|
+
*)
|
|
11961
|
+
|
|
11962
|
+
react/cjs/react.development.js:
|
|
11963
|
+
(**
|
|
11964
|
+
* @license React
|
|
11965
|
+
* react.development.js
|
|
11966
|
+
*
|
|
11967
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
11968
|
+
*
|
|
11969
|
+
* This source code is licensed under the MIT license found in the
|
|
11970
|
+
* LICENSE file in the root directory of this source tree.
|
|
11971
|
+
*)
|
|
11972
|
+
*/
|
|
10405
11973
|
//# sourceMappingURL=index.cjs.map
|