PluginProbe
Elementor Website Builder – more than just a page builder / 3.24.4
Elementor Website Builder – more than just a page builder v3.24.4
4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 All 455 releases
← All changes | assets/js/admin-notifications.js +8267 -1412 4.3.0 → 3.24.4 View file →
@@ -1,1463 +1,8318 @@
1 -(function(react, _elementor_ui, _elementor_query, _wordpress_i18n, _elementor_icons) {
1 +/*! elementor - v3.24.0 - 23-09-2024 */
2 +/******/ (() => { // webpackBootstrap
3 +/******/ var __webpack_modules__ = ({
2 4
3 -//#region \0rolldown/runtime.js
4 - var __create = Object.create;
5 - var __defProp = Object.defineProperty;
6 - var __name = (target, value) => __defProp(target, "name", {
7 - value,
8 - configurable: true
9 - });
10 - var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11 - var __getOwnPropNames = Object.getOwnPropertyNames;
12 - var __getProtoOf = Object.getPrototypeOf;
13 - var __hasOwnProp = Object.prototype.hasOwnProperty;
14 - var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
15 - var __copyProps = (to, from, except, desc) => {
16 - if (from && typeof from === "object" || typeof from === "function") {
17 - for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18 - key = keys[i];
19 - if (!__hasOwnProp.call(to, key) && key !== except) {
20 - __defProp(to, key, {
21 - get: ((k) => from[k]).bind(null, key),
22 - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23 - });
24 - }
25 - }
5 +/***/ "../node_modules/@elementor/query/dist/index.js":
6 +/*!******************************************************!*\
7 + !*** ../node_modules/@elementor/query/dist/index.js ***!
8 + \******************************************************/
9 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10 +
11 +"use strict";
12 +
13 +var __defProp = Object.defineProperty;
14 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15 +var __getOwnPropNames = Object.getOwnPropertyNames;
16 +var __hasOwnProp = Object.prototype.hasOwnProperty;
17 +var __export = (target, all) => {
18 + for (var name in all)
19 + __defProp(target, name, { get: all[name], enumerable: true });
20 +};
21 +var __copyProps = (to, from, except, desc) => {
22 + if (from && typeof from === "object" || typeof from === "function") {
23 + for (let key of __getOwnPropNames(from))
24 + if (!__hasOwnProp.call(to, key) && key !== except)
25 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26 + }
27 + return to;
28 +};
29 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30 +
31 +// src/index.ts
32 +var src_exports = {};
33 +__export(src_exports, {
34 + QueryClient: () => import_react_query2.QueryClient,
35 + QueryClientProvider: () => import_react_query2.QueryClientProvider,
36 + createQueryClient: () => createQueryClient,
37 + useInfiniteQuery: () => import_react_query2.useInfiniteQuery,
38 + useMutation: () => import_react_query2.useMutation,
39 + useQuery: () => import_react_query2.useQuery,
40 + useQueryClient: () => import_react_query2.useQueryClient
41 +});
42 +module.exports = __toCommonJS(src_exports);
43 +var import_react_query = __webpack_require__(/*! @tanstack/react-query */ "../node_modules/@tanstack/react-query/build/modern/index.cjs");
44 +var import_react_query2 = __webpack_require__(/*! @tanstack/react-query */ "../node_modules/@tanstack/react-query/build/modern/index.cjs");
45 +function createQueryClient() {
46 + return new import_react_query.QueryClient({
47 + defaultOptions: {
48 + queries: {
49 + refetchOnWindowFocus: false,
50 + refetchOnReconnect: false
51 + }
52 + }
53 + });
54 +}
55 +// Annotate the CommonJS export names for ESM import in node:
56 +0 && (0);
57 +//# sourceMappingURL=index.js.map
58 +
59 +/***/ }),
60 +
61 +/***/ "../modules/notifications/assets/js/api/index.js":
62 +/*!*******************************************************!*\
63 + !*** ../modules/notifications/assets/js/api/index.js ***!
64 + \*******************************************************/
65 +/***/ ((__unused_webpack_module, exports) => {
66 +
67 +"use strict";
68 +
69 +
70 +Object.defineProperty(exports, "__esModule", ({
71 + value: true
72 +}));
73 +exports.getNotifications = void 0;
74 +var request = function request(endpoint) {
75 + var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
76 + return new Promise(function (resolve, reject) {
77 + elementorCommon.ajax.addRequest(endpoint, {
78 + success: resolve,
79 + error: reject,
80 + data: data
81 + });
82 + });
83 +};
84 +var getNotifications = function getNotifications() {
85 + return request('notifications_get');
86 +};
87 +exports.getNotifications = getNotifications;
88 +
89 +/***/ }),
90 +
91 +/***/ "../modules/notifications/assets/js/components/bar-button-notification.js":
92 +/*!********************************************************************************!*\
93 + !*** ../modules/notifications/assets/js/components/bar-button-notification.js ***!
94 + \********************************************************************************/
95 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
96 +
97 +"use strict";
98 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
99 +
100 +
101 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
102 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
103 +Object.defineProperty(exports, "__esModule", ({
104 + value: true
105 +}));
106 +exports.BarButtonNotification = void 0;
107 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
108 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
109 +var _whatsNew = __webpack_require__(/*! ./whats-new */ "../modules/notifications/assets/js/components/whats-new.js");
110 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
111 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
112 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
113 +var BarButtonNotification = function BarButtonNotification(props) {
114 + var defaultIsRead = props.defaultIsRead;
115 + var _useState = (0, _react.useState)(false),
116 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
117 + isOpen = _useState2[0],
118 + setIsOpen = _useState2[1];
119 + var _useState3 = (0, _react.useState)(defaultIsRead),
120 + _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
121 + isRead = _useState4[0],
122 + setIsRead = _useState4[1];
123 +
124 + // TODO: This is a temporary solution until we have a proper admin bar component.
125 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("button", {
126 + className: "e-admin-top-bar__bar-button",
127 + style: {
128 + backgroundColor: 'transparent',
129 + border: 'none'
130 + },
131 + onClick: function onClick(event) {
132 + event.preventDefault();
133 + setIsOpen(true);
134 + }
135 + }, /*#__PURE__*/_react.default.createElement(_ui.Badge, {
136 + color: "primary",
137 + variant: "dot",
138 + invisible: isRead,
139 + sx: {
140 + mx: 0.5
141 + }
142 + }, /*#__PURE__*/_react.default.createElement("i", {
143 + className: "e-admin-top-bar__bar-button-icon eicon-speakerphone"
144 + })), /*#__PURE__*/_react.default.createElement("span", {
145 + className: "e-admin-top-bar__bar-button-title"
146 + }, props.children)), /*#__PURE__*/_react.default.createElement(_whatsNew.WhatsNew, {
147 + isOpen: isOpen,
148 + setIsOpen: setIsOpen,
149 + setIsRead: setIsRead
150 + }));
151 +};
152 +exports.BarButtonNotification = BarButtonNotification;
153 +BarButtonNotification.propTypes = {
154 + defaultIsRead: PropTypes.bool,
155 + children: PropTypes.any.isRequired
156 +};
157 +
158 +/***/ }),
159 +
160 +/***/ "../modules/notifications/assets/js/components/whats-new-drawer-content.js":
161 +/*!*********************************************************************************!*\
162 + !*** ../modules/notifications/assets/js/components/whats-new-drawer-content.js ***!
163 + \*********************************************************************************/
164 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
165 +
166 +"use strict";
167 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
168 +
169 +
170 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
171 +Object.defineProperty(exports, "__esModule", ({
172 + value: true
173 +}));
174 +exports.WhatsNewDrawerContent = void 0;
175 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
176 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
177 +var _api = __webpack_require__(/*! ../api */ "../modules/notifications/assets/js/api/index.js");
178 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
179 +var _whatsNewItem = __webpack_require__(/*! ./whats-new-item */ "../modules/notifications/assets/js/components/whats-new-item.js");
180 +var WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
181 + var setIsOpen = _ref.setIsOpen;
182 + var _useQuery = (0, _query.useQuery)({
183 + queryKey: ['e-notifications'],
184 + queryFn: _api.getNotifications
185 + }),
186 + isPending = _useQuery.isPending,
187 + error = _useQuery.error,
188 + items = _useQuery.data;
189 + if (isPending) {
190 + return /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.LinearProgress, {
191 + color: "secondary"
192 + }));
193 + }
194 + if (error) {
195 + return /*#__PURE__*/_react.default.createElement(_ui.Box, null, "An error has occurred: ", error);
196 + }
197 + return items.map(function (item, itemIndex) {
198 + return /*#__PURE__*/_react.default.createElement(_whatsNewItem.WhatsNewItem, {
199 + key: itemIndex,
200 + item: item,
201 + itemIndex: itemIndex,
202 + itemsLength: items.length,
203 + setIsOpen: setIsOpen
204 + });
205 + });
206 +};
207 +exports.WhatsNewDrawerContent = WhatsNewDrawerContent;
208 +WhatsNewDrawerContent.propTypes = {
209 + setIsOpen: PropTypes.func.isRequired
210 +};
211 +
212 +/***/ }),
213 +
214 +/***/ "../modules/notifications/assets/js/components/whats-new-item-chips.js":
215 +/*!*****************************************************************************!*\
216 + !*** ../modules/notifications/assets/js/components/whats-new-item-chips.js ***!
217 + \*****************************************************************************/
218 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
219 +
220 +"use strict";
221 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
222 +
223 +
224 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
225 +Object.defineProperty(exports, "__esModule", ({
226 + value: true
227 +}));
228 +exports.WhatsNewItemChips = void 0;
229 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
230 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
231 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
232 +var WhatsNewItemChips = function WhatsNewItemChips(_ref) {
233 + var chipPlan = _ref.chipPlan,
234 + chipTags = _ref.chipTags,
235 + itemIndex = _ref.itemIndex;
236 + var chips = [];
237 + if (chipPlan) {
238 + chips.push({
239 + color: 'promotion',
240 + size: 'small',
241 + label: chipPlan
242 + });
243 + }
244 + if (chipTags) {
245 + chipTags.forEach(function (chipTag) {
246 + chips.push({
247 + variant: 'outlined',
248 + size: 'small',
249 + label: chipTag
250 + });
251 + });
252 + }
253 + if (!chips.length) {
254 + return null;
255 + }
256 + return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
257 + direction: "row",
258 + flexWrap: "wrap",
259 + gap: 1,
260 + sx: {
261 + pb: 1
262 + }
263 + }, chips.map(function (chip, chipIndex) {
264 + return /*#__PURE__*/_react.default.createElement(_ui.Chip, (0, _extends2.default)({
265 + key: "chip-".concat(itemIndex).concat(chipIndex)
266 + }, chip));
267 + }));
268 +};
269 +exports.WhatsNewItemChips = WhatsNewItemChips;
270 +WhatsNewItemChips.propTypes = {
271 + chipPlan: PropTypes.string,
272 + chipTags: PropTypes.array,
273 + itemIndex: PropTypes.number.isRequired
274 +};
275 +
276 +/***/ }),
277 +
278 +/***/ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js":
279 +/*!*********************************************************************************!*\
280 + !*** ../modules/notifications/assets/js/components/whats-new-item-thumbnail.js ***!
281 + \*********************************************************************************/
282 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
283 +
284 +"use strict";
285 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
286 +
287 +
288 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
289 +Object.defineProperty(exports, "__esModule", ({
290 + value: true
291 +}));
292 +exports.WhatsNewItemThumbnail = void 0;
293 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
294 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
295 +var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
296 +var WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
297 + var imageSrc = _ref.imageSrc,
298 + title = _ref.title,
299 + link = _ref.link;
300 + return /*#__PURE__*/_react.default.createElement(_ui.Box, {
301 + sx: {
302 + pb: 2
303 + }
304 + }, /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
305 + link: link
306 + }, /*#__PURE__*/_react.default.createElement("img", {
307 + src: imageSrc,
308 + alt: title,
309 + style: {
310 + maxWidth: '100%'
311 + }
312 + })));
313 +};
314 +exports.WhatsNewItemThumbnail = WhatsNewItemThumbnail;
315 +WhatsNewItemThumbnail.propTypes = {
316 + imageSrc: PropTypes.string.isRequired,
317 + title: PropTypes.string.isRequired,
318 + link: PropTypes.string
319 +};
320 +
321 +/***/ }),
322 +
323 +/***/ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js":
324 +/*!**********************************************************************************!*\
325 + !*** ../modules/notifications/assets/js/components/whats-new-item-topic-line.js ***!
326 + \**********************************************************************************/
327 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
328 +
329 +"use strict";
330 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
331 +
332 +
333 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
334 +Object.defineProperty(exports, "__esModule", ({
335 + value: true
336 +}));
337 +exports.WhatsNewItemTopicLine = void 0;
338 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
339 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
340 +var WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
341 + var topic = _ref.topic,
342 + date = _ref.date;
343 + return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
344 + direction: "row",
345 + divider: /*#__PURE__*/_react.default.createElement(_ui.Divider, {
346 + orientation: "vertical",
347 + flexItem: true
348 + }),
349 + spacing: 1,
350 + color: "text.tertiary",
351 + sx: {
352 + pb: 1
353 + }
354 + }, topic && /*#__PURE__*/_react.default.createElement(_ui.Box, null, topic), date && /*#__PURE__*/_react.default.createElement(_ui.Box, null, date));
355 +};
356 +exports.WhatsNewItemTopicLine = WhatsNewItemTopicLine;
357 +WhatsNewItemTopicLine.propTypes = {
358 + topic: PropTypes.string,
359 + date: PropTypes.string
360 +};
361 +
362 +/***/ }),
363 +
364 +/***/ "../modules/notifications/assets/js/components/whats-new-item.js":
365 +/*!***********************************************************************!*\
366 + !*** ../modules/notifications/assets/js/components/whats-new-item.js ***!
367 + \***********************************************************************/
368 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
369 +
370 +"use strict";
371 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
372 +
373 +
374 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
375 +Object.defineProperty(exports, "__esModule", ({
376 + value: true
377 +}));
378 +exports.WhatsNewItem = void 0;
379 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
380 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
381 +var _whatsNewItemTopicLine = __webpack_require__(/*! ./whats-new-item-topic-line */ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js");
382 +var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
383 +var _whatsNewItemThumbnail = __webpack_require__(/*! ./whats-new-item-thumbnail */ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js");
384 +var _whatsNewItemChips = __webpack_require__(/*! ./whats-new-item-chips */ "../modules/notifications/assets/js/components/whats-new-item-chips.js");
385 +var WhatsNewItem = function WhatsNewItem(_ref) {
386 + var item = _ref.item,
387 + itemIndex = _ref.itemIndex,
388 + itemsLength = _ref.itemsLength,
389 + setIsOpen = _ref.setIsOpen;
390 + return /*#__PURE__*/_react.default.createElement(_ui.Box, {
391 + key: itemIndex,
392 + display: "flex",
393 + flexDirection: "column",
394 + sx: {
395 + pt: 2
396 + }
397 + }, (item.topic || item.date) && /*#__PURE__*/_react.default.createElement(_whatsNewItemTopicLine.WhatsNewItemTopicLine, {
398 + topic: item.topic,
399 + date: item.date
400 + }), /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
401 + link: item.link
402 + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
403 + variant: "subtitle1",
404 + sx: {
405 + pb: 2
406 + }
407 + }, item.title)), item.imageSrc && /*#__PURE__*/_react.default.createElement(_whatsNewItemThumbnail.WhatsNewItemThumbnail, {
408 + imageSrc: item.imageSrc,
409 + link: item.link,
410 + title: item.title
411 + }), /*#__PURE__*/_react.default.createElement(_whatsNewItemChips.WhatsNewItemChips, {
412 + chipPlan: item.chipPlan,
413 + chipTags: item.chipTags,
414 + itemIndex: itemIndex
415 + }), item.description && /*#__PURE__*/_react.default.createElement(_ui.Typography, {
416 + variant: "body2",
417 + color: "text.secondary",
418 + sx: {
419 + pb: 2
420 + }
421 + }, item.description, item.readMoreText && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ' ', /*#__PURE__*/_react.default.createElement(_ui.Link, {
422 + href: item.link,
423 + color: "info.main",
424 + target: "_blank"
425 + }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/_react.default.createElement(_ui.Box, {
426 + sx: {
427 + pb: 2
428 + }
429 + }, /*#__PURE__*/_react.default.createElement(_ui.Button, {
430 + href: item.ctaLink,
431 + target: item.ctaLink.startsWith('#') ? '_self' : '_blank',
432 + variant: "contained",
433 + size: "small",
434 + color: "promotion",
435 + onClick: item.ctaLink.startsWith('#') ? function () {
436 + return setIsOpen(false);
437 + } : function () {}
438 + }, item.cta)), itemIndex !== itemsLength - 1 && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
439 + sx: {
440 + my: 1
441 + }
442 + }));
443 +};
444 +exports.WhatsNewItem = WhatsNewItem;
445 +WhatsNewItem.propTypes = {
446 + item: PropTypes.object.isRequired,
447 + itemIndex: PropTypes.number.isRequired,
448 + itemsLength: PropTypes.number.isRequired,
449 + setIsOpen: PropTypes.func.isRequired
450 +};
451 +
452 +/***/ }),
453 +
454 +/***/ "../modules/notifications/assets/js/components/whats-new-top-bar.js":
455 +/*!**************************************************************************!*\
456 + !*** ../modules/notifications/assets/js/components/whats-new-top-bar.js ***!
457 + \**************************************************************************/
458 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
459 +
460 +"use strict";
461 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
462 +
463 +
464 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
465 +Object.defineProperty(exports, "__esModule", ({
466 + value: true
467 +}));
468 +exports.WhatsNewTopBar = void 0;
469 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
470 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
471 +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
472 +var _xIcon = __webpack_require__(/*! ../icons/x-icon */ "../modules/notifications/assets/js/icons/x-icon.js");
473 +var WhatsNewTopBar = function WhatsNewTopBar(props) {
474 + var setIsOpen = props.setIsOpen;
475 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.AppBar, {
476 + elevation: 0,
477 + position: "sticky",
478 + sx: {
479 + backgroundColor: 'background.default'
480 + }
481 + }, /*#__PURE__*/_react.default.createElement(_ui.Toolbar, {
482 + variant: "dense"
483 + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
484 + variant: "overline",
485 + sx: {
486 + flexGrow: 1
487 + }
488 + }, (0, _i18n.__)('What\'s New', 'elementor')), /*#__PURE__*/_react.default.createElement(_ui.IconButton, {
489 + "aria-label": 'close',
490 + size: "small",
491 + onClick: function onClick() {
492 + return setIsOpen(false);
493 + }
494 + }, /*#__PURE__*/_react.default.createElement(_xIcon.XIcon, null)))), /*#__PURE__*/_react.default.createElement(_ui.Divider, null));
495 +};
496 +exports.WhatsNewTopBar = WhatsNewTopBar;
497 +WhatsNewTopBar.propTypes = {
498 + setIsOpen: PropTypes.func.isRequired
499 +};
500 +
501 +/***/ }),
502 +
503 +/***/ "../modules/notifications/assets/js/components/whats-new.js":
504 +/*!******************************************************************!*\
505 + !*** ../modules/notifications/assets/js/components/whats-new.js ***!
506 + \******************************************************************/
507 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
508 +
509 +"use strict";
510 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
511 +
512 +
513 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
514 +Object.defineProperty(exports, "__esModule", ({
515 + value: true
516 +}));
517 +exports.WhatsNew = void 0;
518 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
519 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
520 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
521 +var _whatsNewTopBar = __webpack_require__(/*! ./whats-new-top-bar */ "../modules/notifications/assets/js/components/whats-new-top-bar.js");
522 +var _whatsNewDrawerContent = __webpack_require__(/*! ./whats-new-drawer-content */ "../modules/notifications/assets/js/components/whats-new-drawer-content.js");
523 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
524 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
525 +var queryClient = new _query.QueryClient({
526 + defaultOptions: {
527 + queries: {
528 + refetchOnWindowFocus: false,
529 + retry: false,
530 + staleTime: 1000 * 60 * 30 // 30 minutes
531 + }
532 + }
533 +});
534 +
535 +var WhatsNew = function WhatsNew(props) {
536 + var _window$elementor, _window$elementor$get;
537 + var isOpen = props.isOpen,
538 + setIsOpen = props.setIsOpen,
539 + setIsRead = props.setIsRead,
540 + _props$anchorPosition = props.anchorPosition,
541 + anchorPosition = _props$anchorPosition === void 0 ? 'right' : _props$anchorPosition;
542 + (0, _react.useEffect)(function () {
543 + if (!isOpen) {
544 + return;
545 + }
546 + setIsRead(true);
547 + }, [isOpen, setIsRead]);
548 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_query.QueryClientProvider, {
549 + client: queryClient
550 + }, /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
551 + rtl: elementorCommon.config.isRTL
552 + }, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
553 + colorScheme: ((_window$elementor = window.elementor) === null || _window$elementor === void 0 ? void 0 : (_window$elementor$get = _window$elementor.getPreferences) === null || _window$elementor$get === void 0 ? void 0 : _window$elementor$get.call(_window$elementor, 'ui_theme')) || 'auto'
554 + }, /*#__PURE__*/_react.default.createElement(_ui.Drawer, {
555 + anchor: anchorPosition,
556 + open: isOpen,
557 + onClose: function onClose() {
558 + return setIsOpen(false);
559 + },
560 + ModalProps: {
561 + style: {
562 + // Above the WordPress Admin Top Bar.
563 + zIndex: 999999
564 + }
565 + }
566 + }, /*#__PURE__*/_react.default.createElement(_ui.Box, {
567 + sx: {
568 + width: 320,
569 + backgroundColor: 'background.default'
570 + },
571 + role: "presentation"
572 + }, /*#__PURE__*/_react.default.createElement(_whatsNewTopBar.WhatsNewTopBar, {
573 + setIsOpen: setIsOpen
574 + }), /*#__PURE__*/_react.default.createElement(_ui.Box, {
575 + sx: {
576 + padding: '16px'
577 + }
578 + }, /*#__PURE__*/_react.default.createElement(_whatsNewDrawerContent.WhatsNewDrawerContent, {
579 + setIsOpen: setIsOpen
580 + }))))))));
581 +};
582 +exports.WhatsNew = WhatsNew;
583 +WhatsNew.propTypes = {
584 + isOpen: PropTypes.bool.isRequired,
585 + setIsOpen: PropTypes.func.isRequired,
586 + setIsRead: PropTypes.func.isRequired,
587 + anchorPosition: PropTypes.oneOf(['left', 'top', 'right', 'bottom'])
588 +};
589 +
590 +/***/ }),
591 +
592 +/***/ "../modules/notifications/assets/js/components/wrapper-with-link.js":
593 +/*!**************************************************************************!*\
594 + !*** ../modules/notifications/assets/js/components/wrapper-with-link.js ***!
595 + \**************************************************************************/
596 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
597 +
598 +"use strict";
599 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
600 +
601 +
602 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
603 +Object.defineProperty(exports, "__esModule", ({
604 + value: true
605 +}));
606 +exports.WrapperWithLink = void 0;
607 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
608 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
609 +var WrapperWithLink = function WrapperWithLink(props) {
610 + var link = props.link,
611 + children = props.children;
612 + if (!link) {
613 + return children;
614 + }
615 + return /*#__PURE__*/_react.default.createElement(_ui.Link, {
616 + href: link,
617 + target: "_blank",
618 + underline: "none",
619 + color: "inherit",
620 + sx: {
621 + '&:hover': {
622 + color: 'inherit'
623 + }
624 + }
625 + }, children);
626 +};
627 +exports.WrapperWithLink = WrapperWithLink;
628 +WrapperWithLink.propTypes = {
629 + link: PropTypes.string,
630 + children: PropTypes.any.isRequired
631 +};
632 +
633 +/***/ }),
634 +
635 +/***/ "../modules/notifications/assets/js/icons/x-icon.js":
636 +/*!**********************************************************!*\
637 + !*** ../modules/notifications/assets/js/icons/x-icon.js ***!
638 + \**********************************************************/
639 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
640 +
641 +"use strict";
642 +
643 +
644 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
645 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
646 +Object.defineProperty(exports, "__esModule", ({
647 + value: true
648 +}));
649 +exports.XIcon = void 0;
650 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
651 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
652 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
653 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
654 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
655 +var XIcon = (0, _react.forwardRef)(function (props, ref) {
656 + return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
657 + viewBox: "0 0 24 24"
658 + }, props, {
659 + ref: ref
660 + }), /*#__PURE__*/_react.default.createElement("path", {
661 + fillRule: "evenodd",
662 + clipRule: "evenodd",
663 + d: "M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"
664 + }), /*#__PURE__*/_react.default.createElement("path", {
665 + fillRule: "evenodd",
666 + clipRule: "evenodd",
667 + d: "M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"
668 + }));
669 +});
670 +exports.XIcon = XIcon;
671 +
672 +/***/ }),
673 +
674 +/***/ "../node_modules/object-assign/index.js":
675 +/*!**********************************************!*\
676 + !*** ../node_modules/object-assign/index.js ***!
677 + \**********************************************/
678 +/***/ ((module) => {
679 +
680 +"use strict";
681 +/*
682 +object-assign
683 +(c) Sindre Sorhus
684 +@license MIT
685 +*/
686 +
687 +
688 +/* eslint-disable no-unused-vars */
689 +var getOwnPropertySymbols = Object.getOwnPropertySymbols;
690 +var hasOwnProperty = Object.prototype.hasOwnProperty;
691 +var propIsEnumerable = Object.prototype.propertyIsEnumerable;
692 +
693 +function toObject(val) {
694 + if (val === null || val === undefined) {
695 + throw new TypeError('Object.assign cannot be called with null or undefined');
696 + }
697 +
698 + return Object(val);
699 +}
700 +
701 +function shouldUseNative() {
702 + try {
703 + if (!Object.assign) {
704 + return false;
26 705 }
27 - return to;
28 - };
29 - var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30 - value: mod,
31 - enumerable: true
32 - }) : target, mod));
33 706
34 -//#endregion
35 -react = __toESM(react);
707 + // Detect buggy property enumeration order in older V8 versions.
36 708
37 -//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
38 -/** @license React v16.13.1
39 - * react-is.development.js
40 - *
41 - * Copyright (c) Facebook, Inc. and its affiliates.
42 - *
43 - * This source code is licensed under the MIT license found in the
44 - * LICENSE file in the root directory of this source tree.
45 - */
46 - var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
47 - (function() {
48 - "use strict";
49 - var hasSymbol = typeof Symbol === "function" && Symbol.for;
50 - var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
51 - var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
52 - var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
53 - var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
54 - var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
55 - var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
56 - var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
57 - var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
58 - var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
59 - var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
60 - var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
61 - var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
62 - var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
63 - var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
64 - var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
65 - var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
66 - var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
67 - var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
68 - function isValidElementType(type) {
69 - return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
70 - }
71 - function typeOf(object) {
72 - if (typeof object === "object" && object !== null) {
73 - var $$typeof = object.$$typeof;
74 - switch ($$typeof) {
75 - case REACT_ELEMENT_TYPE:
76 - var type = object.type;
77 - switch (type) {
78 - case REACT_ASYNC_MODE_TYPE:
79 - case REACT_CONCURRENT_MODE_TYPE:
80 - case REACT_FRAGMENT_TYPE:
81 - case REACT_PROFILER_TYPE:
82 - case REACT_STRICT_MODE_TYPE:
83 - case REACT_SUSPENSE_TYPE: return type;
84 - default:
85 - var $$typeofType = type && type.$$typeof;
86 - switch ($$typeofType) {
87 - case REACT_CONTEXT_TYPE:
88 - case REACT_FORWARD_REF_TYPE:
89 - case REACT_LAZY_TYPE:
90 - case REACT_MEMO_TYPE:
91 - case REACT_PROVIDER_TYPE: return $$typeofType;
92 - default: return $$typeof;
93 - }
94 - }
95 - case REACT_PORTAL_TYPE: return $$typeof;
96 - }
97 - }
98 - }
99 - var AsyncMode = REACT_ASYNC_MODE_TYPE;
100 - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
101 - var ContextConsumer = REACT_CONTEXT_TYPE;
102 - var ContextProvider = REACT_PROVIDER_TYPE;
103 - var Element = REACT_ELEMENT_TYPE;
104 - var ForwardRef = REACT_FORWARD_REF_TYPE;
105 - var Fragment = REACT_FRAGMENT_TYPE;
106 - var Lazy = REACT_LAZY_TYPE;
107 - var Memo = REACT_MEMO_TYPE;
108 - var Portal = REACT_PORTAL_TYPE;
109 - var Profiler = REACT_PROFILER_TYPE;
110 - var StrictMode = REACT_STRICT_MODE_TYPE;
111 - var Suspense = REACT_SUSPENSE_TYPE;
112 - var hasWarnedAboutDeprecatedIsAsyncMode = false;
113 - function isAsyncMode(object) {
114 - if (!hasWarnedAboutDeprecatedIsAsyncMode) {
115 - hasWarnedAboutDeprecatedIsAsyncMode = true;
116 - console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
117 - }
118 - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
119 - }
120 - function isConcurrentMode(object) {
121 - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
122 - }
123 - function isContextConsumer(object) {
124 - return typeOf(object) === REACT_CONTEXT_TYPE;
125 - }
126 - function isContextProvider(object) {
127 - return typeOf(object) === REACT_PROVIDER_TYPE;
128 - }
129 - function isElement(object) {
130 - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
131 - }
132 - function isForwardRef(object) {
133 - return typeOf(object) === REACT_FORWARD_REF_TYPE;
134 - }
135 - function isFragment(object) {
136 - return typeOf(object) === REACT_FRAGMENT_TYPE;
137 - }
138 - function isLazy(object) {
139 - return typeOf(object) === REACT_LAZY_TYPE;
140 - }
141 - function isMemo(object) {
142 - return typeOf(object) === REACT_MEMO_TYPE;
143 - }
144 - function isPortal(object) {
145 - return typeOf(object) === REACT_PORTAL_TYPE;
146 - }
147 - function isProfiler(object) {
148 - return typeOf(object) === REACT_PROFILER_TYPE;
149 - }
150 - function isStrictMode(object) {
151 - return typeOf(object) === REACT_STRICT_MODE_TYPE;
152 - }
153 - function isSuspense(object) {
154 - return typeOf(object) === REACT_SUSPENSE_TYPE;
155 - }
156 - exports.AsyncMode = AsyncMode;
157 - exports.ConcurrentMode = ConcurrentMode;
158 - exports.ContextConsumer = ContextConsumer;
159 - exports.ContextProvider = ContextProvider;
160 - exports.Element = Element;
161 - exports.ForwardRef = ForwardRef;
162 - exports.Fragment = Fragment;
163 - exports.Lazy = Lazy;
164 - exports.Memo = Memo;
165 - exports.Portal = Portal;
166 - exports.Profiler = Profiler;
167 - exports.StrictMode = StrictMode;
168 - exports.Suspense = Suspense;
169 - exports.isAsyncMode = isAsyncMode;
170 - exports.isConcurrentMode = isConcurrentMode;
171 - exports.isContextConsumer = isContextConsumer;
172 - exports.isContextProvider = isContextProvider;
173 - exports.isElement = isElement;
174 - exports.isForwardRef = isForwardRef;
175 - exports.isFragment = isFragment;
176 - exports.isLazy = isLazy;
177 - exports.isMemo = isMemo;
178 - exports.isPortal = isPortal;
179 - exports.isProfiler = isProfiler;
180 - exports.isStrictMode = isStrictMode;
181 - exports.isSuspense = isSuspense;
182 - exports.isValidElementType = isValidElementType;
183 - exports.typeOf = typeOf;
184 - })();
185 - }));
709 + // https://bugs.chromium.org/p/v8/issues/detail?id=4118
710 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
711 + test1[5] = 'de';
712 + if (Object.getOwnPropertyNames(test1)[0] === '5') {
713 + return false;
714 + }
186 715
187 -//#endregion
188 -//#region node_modules/prop-types/node_modules/react-is/index.js
189 - var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
190 - module.exports = require_react_is_development();
191 - }));
716 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
717 + var test2 = {};
718 + for (var i = 0; i < 10; i++) {
719 + test2['_' + String.fromCharCode(i)] = i;
720 + }
721 + var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
722 + return test2[n];
723 + });
724 + if (order2.join('') !== '0123456789') {
725 + return false;
726 + }
192 727
193 -//#endregion
194 -//#region node_modules/object-assign/index.js
195 -/*
196 - object-assign
197 - (c) Sindre Sorhus
198 - @license MIT
199 - */
200 - var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
201 - var getOwnPropertySymbols = Object.getOwnPropertySymbols;
202 - var hasOwnProperty = Object.prototype.hasOwnProperty;
203 - var propIsEnumerable = Object.prototype.propertyIsEnumerable;
204 - function toObject(val) {
205 - if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined");
206 - return Object(val);
728 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
729 + var test3 = {};
730 + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
731 + test3[letter] = letter;
732 + });
733 + if (Object.keys(Object.assign({}, test3)).join('') !==
734 + 'abcdefghijklmnopqrst') {
735 + return false;
207 736 }
208 - function shouldUseNative() {
209 - try {
210 - if (!Object.assign) return false;
211 - var test1 = /* @__PURE__ */ new String("abc");
212 - test1[5] = "de";
213 - if (Object.getOwnPropertyNames(test1)[0] === "5") return false;
214 - var test2 = {};
215 - for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i;
216 - if (Object.getOwnPropertyNames(test2).map(function(n) {
217 - return test2[n];
218 - }).join("") !== "0123456789") return false;
219 - var test3 = {};
220 - "abcdefghijklmnopqrst".split("").forEach(function(letter) {
221 - test3[letter] = letter;
222 - });
223 - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false;
224 - return true;
225 - } catch (err) {
226 - return false;
737 +
738 + return true;
739 + } catch (err) {
740 + // We don't expect any of the above to throw, but better to be safe.
741 + return false;
742 + }
743 +}
744 +
745 +module.exports = shouldUseNative() ? Object.assign : function (target, source) {
746 + var from;
747 + var to = toObject(target);
748 + var symbols;
749 +
750 + for (var s = 1; s < arguments.length; s++) {
751 + from = Object(arguments[s]);
752 +
753 + for (var key in from) {
754 + if (hasOwnProperty.call(from, key)) {
755 + to[key] = from[key];
227 756 }
228 757 }
229 - module.exports = shouldUseNative() ? Object.assign : function(target, source) {
230 - var from;
231 - var to = toObject(target);
232 - var symbols;
233 - for (var s = 1; s < arguments.length; s++) {
234 - from = Object(arguments[s]);
235 - for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key];
236 - if (getOwnPropertySymbols) {
237 - symbols = getOwnPropertySymbols(from);
238 - for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]];
758 +
759 + if (getOwnPropertySymbols) {
760 + symbols = getOwnPropertySymbols(from);
761 + for (var i = 0; i < symbols.length; i++) {
762 + if (propIsEnumerable.call(from, symbols[i])) {
763 + to[symbols[i]] = from[symbols[i]];
239 764 }
240 765 }
241 - return to;
242 - };
243 - }));
766 + }
767 + }
244 768
245 -//#endregion
246 -//#region node_modules/prop-types/lib/ReactPropTypesSecret.js
769 + return to;
770 +};
771 +
772 +
773 +/***/ }),
774 +
775 +/***/ "../node_modules/prop-types/checkPropTypes.js":
776 +/*!****************************************************!*\
777 + !*** ../node_modules/prop-types/checkPropTypes.js ***!
778 + \****************************************************/
779 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
780 +
781 +"use strict";
247 782 /**
248 - * Copyright (c) 2013-present, Facebook, Inc.
249 - *
250 - * This source code is licensed under the MIT license found in the
251 - * LICENSE file in the root directory of this source tree.
252 - */
253 - var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => {
254 - var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
255 - module.exports = ReactPropTypesSecret;
256 - }));
783 + * Copyright (c) 2013-present, Facebook, Inc.
784 + *
785 + * This source code is licensed under the MIT license found in the
786 + * LICENSE file in the root directory of this source tree.
787 + */
257 788
258 -//#endregion
259 -//#region node_modules/prop-types/lib/has.js
260 - var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => {
261 - module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
262 - }));
263 789
264 -//#endregion
265 -//#region node_modules/prop-types/checkPropTypes.js
790 +
791 +var printWarning = function() {};
792 +
793 +if (true) {
794 + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
795 + var loggedTypeFailures = {};
796 + var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
797 +
798 + printWarning = function(text) {
799 + var message = 'Warning: ' + text;
800 + if (typeof console !== 'undefined') {
801 + console.error(message);
802 + }
803 + try {
804 + // --- Welcome to debugging React ---
805 + // This error was thrown as a convenience so that you can use this stack
806 + // to find the callsite that caused this warning to fire.
807 + throw new Error(message);
808 + } catch (x) { /**/ }
809 + };
810 +}
811 +
266 812 /**
267 - * Copyright (c) 2013-present, Facebook, Inc.
268 - *
269 - * This source code is licensed under the MIT license found in the
270 - * LICENSE file in the root directory of this source tree.
271 - */
272 - var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
273 - var printWarning = function() {};
274 - var ReactPropTypesSecret = require_ReactPropTypesSecret();
275 - var loggedTypeFailures = {};
276 - var has = require_has();
277 - printWarning = function(text) {
278 - var message = "Warning: " + text;
279 - if (typeof console !== "undefined") console.error(message);
280 - try {
281 - throw new Error(message);
282 - } catch (x) {}
283 - };
284 - /**
285 - * Assert that the values match with the type specs.
286 - * Error messages are memorized and will only be shown once.
287 - *
288 - * @param {object} typeSpecs Map of name to a ReactPropType
289 - * @param {object} values Runtime values that need to be type-checked
290 - * @param {string} location e.g. "prop", "context", "child context"
291 - * @param {string} componentName Name of the component for error messages.
292 - * @param {?Function} getStack Returns the component stack.
293 - * @private
294 - */
295 - function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
296 - for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) {
297 - var error;
298 - try {
299 - if (typeof typeSpecs[typeSpecName] !== "function") {
300 - var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
301 - err.name = "Invariant Violation";
302 - throw err;
303 - }
304 - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
305 - } catch (ex) {
306 - error = ex;
307 - }
308 - if (error && !(error instanceof Error)) printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).");
309 - if (error instanceof Error && !(error.message in loggedTypeFailures)) {
310 - loggedTypeFailures[error.message] = true;
311 - var stack = getStack ? getStack() : "";
312 - printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
313 - }
314 - }
315 - }
316 - /**
317 - * Resets warning cache when testing.
318 - *
319 - * @private
320 - */
321 - checkPropTypes.resetWarningCache = function() {
322 - loggedTypeFailures = {};
323 - };
324 - module.exports = checkPropTypes;
325 - }));
813 + * Assert that the values match with the type specs.
814 + * Error messages are memorized and will only be shown once.
815 + *
816 + * @param {object} typeSpecs Map of name to a ReactPropType
817 + * @param {object} values Runtime values that need to be type-checked
818 + * @param {string} location e.g. "prop", "context", "child context"
819 + * @param {string} componentName Name of the component for error messages.
820 + * @param {?Function} getStack Returns the component stack.
821 + * @private
822 + */
823 +function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
824 + if (true) {
825 + for (var typeSpecName in typeSpecs) {
826 + if (has(typeSpecs, typeSpecName)) {
827 + var error;
828 + // Prop type validation may throw. In case they do, we don't want to
829 + // fail the render phase where it didn't fail before. So we log it.
830 + // After these have been cleaned up, we'll let them throw.
831 + try {
832 + // This is intentionally an invariant that gets caught. It's the same
833 + // behavior as without this statement except with a better message.
834 + if (typeof typeSpecs[typeSpecName] !== 'function') {
835 + var err = Error(
836 + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
837 + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
838 + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
839 + );
840 + err.name = 'Invariant Violation';
841 + throw err;
842 + }
843 + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
844 + } catch (ex) {
845 + error = ex;
846 + }
847 + if (error && !(error instanceof Error)) {
848 + printWarning(
849 + (componentName || 'React class') + ': type specification of ' +
850 + location + ' `' + typeSpecName + '` is invalid; the type checker ' +
851 + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
852 + 'You may have forgotten to pass an argument to the type checker ' +
853 + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
854 + 'shape all require an argument).'
855 + );
856 + }
857 + if (error instanceof Error && !(error.message in loggedTypeFailures)) {
858 + // Only monitor this failure once because there tends to be a lot of the
859 + // same error.
860 + loggedTypeFailures[error.message] = true;
326 861
327 -//#endregion
328 -//#region node_modules/prop-types/factoryWithTypeCheckers.js
862 + var stack = getStack ? getStack() : '';
863 +
864 + printWarning(
865 + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
866 + );
867 + }
868 + }
869 + }
870 + }
871 +}
872 +
329 873 /**
330 - * Copyright (c) 2013-present, Facebook, Inc.
331 - *
332 - * This source code is licensed under the MIT license found in the
333 - * LICENSE file in the root directory of this source tree.
334 - */
335 - var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
336 - var ReactIs = require_react_is();
337 - var assign = require_object_assign();
338 - var ReactPropTypesSecret = require_ReactPropTypesSecret();
339 - var has = require_has();
340 - var checkPropTypes = require_checkPropTypes();
341 - var printWarning = function() {};
342 - printWarning = function(text) {
343 - var message = "Warning: " + text;
344 - if (typeof console !== "undefined") console.error(message);
345 - try {
346 - throw new Error(message);
347 - } catch (x) {}
348 - };
349 - function emptyFunctionThatReturnsNull() {
350 - return null;
351 - }
352 - module.exports = function(isValidElement, throwOnDirectAccess) {
353 - var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
354 - var FAUX_ITERATOR_SYMBOL = "@@iterator";
355 - /**
356 - * Returns the iterator method function contained on the iterable object.
357 - *
358 - * Be sure to invoke the function with the iterable as context:
359 - *
360 - * var iteratorFn = getIteratorFn(myIterable);
361 - * if (iteratorFn) {
362 - * var iterator = iteratorFn.call(myIterable);
363 - * ...
364 - * }
365 - *
366 - * @param {?object} maybeIterable
367 - * @return {?function}
368 - */
369 - function getIteratorFn(maybeIterable) {
370 - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
371 - if (typeof iteratorFn === "function") return iteratorFn;
372 - }
373 - /**
374 - * Collection of methods that allow declaration and validation of props that are
375 - * supplied to React components. Example usage:
376 - *
377 - * var Props = require('ReactPropTypes');
378 - * var MyArticle = React.createClass({
379 - * propTypes: {
380 - * // An optional string prop named "description".
381 - * description: Props.string,
382 - *
383 - * // A required enum prop named "category".
384 - * category: Props.oneOf(['News','Photos']).isRequired,
385 - *
386 - * // A prop named "dialog" that requires an instance of Dialog.
387 - * dialog: Props.instanceOf(Dialog).isRequired
388 - * },
389 - * render: function() { ... }
390 - * });
391 - *
392 - * A more formal specification of how these methods are used:
393 - *
394 - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
395 - * decl := ReactPropTypes.{type}(.isRequired)?
396 - *
397 - * Each and every declaration produces a function with the same signature. This
398 - * allows the creation of custom validation functions. For example:
399 - *
400 - * var MyLink = React.createClass({
401 - * propTypes: {
402 - * // An optional string or URI prop named "href".
403 - * href: function(props, propName, componentName) {
404 - * var propValue = props[propName];
405 - * if (propValue != null && typeof propValue !== 'string' &&
406 - * !(propValue instanceof URI)) {
407 - * return new Error(
408 - * 'Expected a string or an URI for ' + propName + ' in ' +
409 - * componentName
410 - * );
411 - * }
412 - * }
413 - * },
414 - * render: function() {...}
415 - * });
416 - *
417 - * @internal
418 - */
419 - var ANONYMOUS = "<<anonymous>>";
420 - var ReactPropTypes = {
421 - array: createPrimitiveTypeChecker("array"),
422 - bigint: createPrimitiveTypeChecker("bigint"),
423 - bool: createPrimitiveTypeChecker("boolean"),
424 - func: createPrimitiveTypeChecker("function"),
425 - number: createPrimitiveTypeChecker("number"),
426 - object: createPrimitiveTypeChecker("object"),
427 - string: createPrimitiveTypeChecker("string"),
428 - symbol: createPrimitiveTypeChecker("symbol"),
429 - any: createAnyTypeChecker(),
430 - arrayOf: createArrayOfTypeChecker,
431 - element: createElementTypeChecker(),
432 - elementType: createElementTypeTypeChecker(),
433 - instanceOf: createInstanceTypeChecker,
434 - node: createNodeChecker(),
435 - objectOf: createObjectOfTypeChecker,
436 - oneOf: createEnumTypeChecker,
437 - oneOfType: createUnionTypeChecker,
438 - shape: createShapeTypeChecker,
439 - exact: createStrictShapeTypeChecker
440 - };
441 - /**
442 - * inlined Object.is polyfill to avoid requiring consumers ship their own
443 - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
444 - */
445 - function is(x, y) {
446 - if (x === y) return x !== 0 || 1 / x === 1 / y;
447 - else return x !== x && y !== y;
448 - }
449 - /**
450 - * We use an Error-like object for backward compatibility as people may call
451 - * PropTypes directly and inspect their output. However, we don't use real
452 - * Errors anymore. We don't inspect their stack anyway, and creating them
453 - * is prohibitively expensive if they are created too often, such as what
454 - * happens in oneOfType() for any type before the one that matched.
455 - */
456 - function PropTypeError(message, data) {
457 - this.message = message;
458 - this.data = data && typeof data === "object" ? data : {};
459 - this.stack = "";
460 - }
461 - PropTypeError.prototype = Error.prototype;
462 - function createChainableTypeChecker(validate) {
463 - var manualPropTypeCallCache = {};
464 - var manualPropTypeWarningCount = 0;
465 - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
466 - componentName = componentName || ANONYMOUS;
467 - propFullName = propFullName || propName;
468 - if (secret !== ReactPropTypesSecret) {
469 - if (throwOnDirectAccess) {
470 - var err = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
471 - err.name = "Invariant Violation";
472 - throw err;
473 - } else if (typeof console !== "undefined") {
474 - var cacheKey = componentName + ":" + propName;
475 - if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
476 - printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.");
477 - manualPropTypeCallCache[cacheKey] = true;
478 - manualPropTypeWarningCount++;
479 - }
480 - }
481 - }
482 - if (props[propName] == null) {
483 - if (isRequired) {
484 - if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
485 - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
486 - }
487 - return null;
488 - } else return validate(props, propName, componentName, location, propFullName);
489 - }
490 - var chainedCheckType = checkType.bind(null, false);
491 - chainedCheckType.isRequired = checkType.bind(null, true);
492 - return chainedCheckType;
493 - }
494 - function createPrimitiveTypeChecker(expectedType) {
495 - function validate(props, propName, componentName, location, propFullName, secret) {
496 - var propValue = props[propName];
497 - if (getPropType(propValue) !== expectedType) {
498 - var preciseType = getPreciseType(propValue);
499 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType });
500 - }
501 - return null;
502 - }
503 - return createChainableTypeChecker(validate);
504 - }
505 - function createAnyTypeChecker() {
506 - return createChainableTypeChecker(emptyFunctionThatReturnsNull);
507 - }
508 - function createArrayOfTypeChecker(typeChecker) {
509 - function validate(props, propName, componentName, location, propFullName) {
510 - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
511 - var propValue = props[propName];
512 - if (!Array.isArray(propValue)) {
513 - var propType = getPropType(propValue);
514 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
515 - }
516 - for (var i = 0; i < propValue.length; i++) {
517 - var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
518 - if (error instanceof Error) return error;
519 - }
520 - return null;
521 - }
522 - return createChainableTypeChecker(validate);
523 - }
524 - function createElementTypeChecker() {
525 - function validate(props, propName, componentName, location, propFullName) {
526 - var propValue = props[propName];
527 - if (!isValidElement(propValue)) {
528 - var propType = getPropType(propValue);
529 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
530 - }
531 - return null;
532 - }
533 - return createChainableTypeChecker(validate);
534 - }
535 - function createElementTypeTypeChecker() {
536 - function validate(props, propName, componentName, location, propFullName) {
537 - var propValue = props[propName];
538 - if (!ReactIs.isValidElementType(propValue)) {
539 - var propType = getPropType(propValue);
540 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
541 - }
542 - return null;
543 - }
544 - return createChainableTypeChecker(validate);
545 - }
546 - function createInstanceTypeChecker(expectedClass) {
547 - function validate(props, propName, componentName, location, propFullName) {
548 - if (!(props[propName] instanceof expectedClass)) {
549 - var expectedClassName = expectedClass.name || ANONYMOUS;
550 - var actualClassName = getClassName(props[propName]);
551 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
552 - }
553 - return null;
554 - }
555 - return createChainableTypeChecker(validate);
556 - }
557 - function createEnumTypeChecker(expectedValues) {
558 - if (!Array.isArray(expectedValues)) {
559 - if (arguments.length > 1) printWarning("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).");
560 - else printWarning("Invalid argument supplied to oneOf, expected an array.");
561 - return emptyFunctionThatReturnsNull;
562 - }
563 - function validate(props, propName, componentName, location, propFullName) {
564 - var propValue = props[propName];
565 - for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null;
566 - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
567 - if (getPreciseType(value) === "symbol") return String(value);
568 - return value;
569 - });
570 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
571 - }
572 - return createChainableTypeChecker(validate);
573 - }
574 - function createObjectOfTypeChecker(typeChecker) {
575 - function validate(props, propName, componentName, location, propFullName) {
576 - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
577 - var propValue = props[propName];
578 - var propType = getPropType(propValue);
579 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
580 - for (var key in propValue) if (has(propValue, key)) {
581 - var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
582 - if (error instanceof Error) return error;
583 - }
584 - return null;
585 - }
586 - return createChainableTypeChecker(validate);
587 - }
588 - function createUnionTypeChecker(arrayOfTypeCheckers) {
589 - if (!Array.isArray(arrayOfTypeCheckers)) {
590 - printWarning("Invalid argument supplied to oneOfType, expected an instance of array.");
591 - return emptyFunctionThatReturnsNull;
592 - }
593 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
594 - var checker = arrayOfTypeCheckers[i];
595 - if (typeof checker !== "function") {
596 - printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + ".");
597 - return emptyFunctionThatReturnsNull;
598 - }
599 - }
600 - function validate(props, propName, componentName, location, propFullName) {
601 - var expectedTypes = [];
602 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
603 - var checker = arrayOfTypeCheckers[i];
604 - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
605 - if (checkerResult == null) return null;
606 - if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType);
607 - }
608 - var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
609 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
610 - }
611 - return createChainableTypeChecker(validate);
612 - }
613 - function createNodeChecker() {
614 - function validate(props, propName, componentName, location, propFullName) {
615 - if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
616 - return null;
617 - }
618 - return createChainableTypeChecker(validate);
619 - }
620 - function invalidValidatorError(componentName, location, propFullName, key, type) {
621 - return new PropTypeError((componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`.");
622 - }
623 - function createShapeTypeChecker(shapeTypes) {
624 - function validate(props, propName, componentName, location, propFullName) {
625 - var propValue = props[propName];
626 - var propType = getPropType(propValue);
627 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
628 - for (var key in shapeTypes) {
629 - var checker = shapeTypes[key];
630 - if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
631 - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
632 - if (error) return error;
633 - }
634 - return null;
635 - }
636 - return createChainableTypeChecker(validate);
637 - }
638 - function createStrictShapeTypeChecker(shapeTypes) {
639 - function validate(props, propName, componentName, location, propFullName) {
640 - var propValue = props[propName];
641 - var propType = getPropType(propValue);
642 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
643 - for (var key in assign({}, props[propName], shapeTypes)) {
644 - var checker = shapeTypes[key];
645 - if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
646 - if (!checker) return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " "));
647 - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
648 - if (error) return error;
649 - }
650 - return null;
651 - }
652 - return createChainableTypeChecker(validate);
653 - }
654 - function isNode(propValue) {
655 - switch (typeof propValue) {
656 - case "number":
657 - case "string":
658 - case "undefined": return true;
659 - case "boolean": return !propValue;
660 - case "object":
661 - if (Array.isArray(propValue)) return propValue.every(isNode);
662 - if (propValue === null || isValidElement(propValue)) return true;
663 - var iteratorFn = getIteratorFn(propValue);
664 - if (iteratorFn) {
665 - var iterator = iteratorFn.call(propValue);
666 - var step;
667 - if (iteratorFn !== propValue.entries) {
668 - while (!(step = iterator.next()).done) if (!isNode(step.value)) return false;
669 - } else while (!(step = iterator.next()).done) {
670 - var entry = step.value;
671 - if (entry) {
672 - if (!isNode(entry[1])) return false;
673 - }
674 - }
675 - } else return false;
676 - return true;
677 - default: return false;
678 - }
679 - }
680 - function isSymbol(propType, propValue) {
681 - if (propType === "symbol") return true;
682 - if (!propValue) return false;
683 - if (propValue["@@toStringTag"] === "Symbol") return true;
684 - if (typeof Symbol === "function" && propValue instanceof Symbol) return true;
685 - return false;
686 - }
687 - function getPropType(propValue) {
688 - var propType = typeof propValue;
689 - if (Array.isArray(propValue)) return "array";
690 - if (propValue instanceof RegExp) return "object";
691 - if (isSymbol(propType, propValue)) return "symbol";
692 - return propType;
693 - }
694 - function getPreciseType(propValue) {
695 - if (typeof propValue === "undefined" || propValue === null) return "" + propValue;
696 - var propType = getPropType(propValue);
697 - if (propType === "object") {
698 - if (propValue instanceof Date) return "date";
699 - else if (propValue instanceof RegExp) return "regexp";
700 - }
701 - return propType;
702 - }
703 - function getPostfixForTypeWarning(value) {
704 - var type = getPreciseType(value);
705 - switch (type) {
706 - case "array":
707 - case "object": return "an " + type;
708 - case "boolean":
709 - case "date":
710 - case "regexp": return "a " + type;
711 - default: return type;
712 - }
713 - }
714 - function getClassName(propValue) {
715 - if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS;
716 - return propValue.constructor.name;
717 - }
718 - ReactPropTypes.checkPropTypes = checkPropTypes;
719 - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
720 - ReactPropTypes.PropTypes = ReactPropTypes;
721 - return ReactPropTypes;
722 - };
723 - }));
874 + * Resets warning cache when testing.
875 + *
876 + * @private
877 + */
878 +checkPropTypes.resetWarningCache = function() {
879 + if (true) {
880 + loggedTypeFailures = {};
881 + }
882 +}
724 883
725 -//#endregion
726 -//#region node_modules/prop-types/index.js
727 - var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => {
728 - var ReactIs = require_react_is();
729 - var throwOnDirectAccess = true;
730 - module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
731 - }));
884 +module.exports = checkPropTypes;
732 885
733 -//#endregion
734 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
735 -var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types());
736 - function _arrayWithHoles(r) {
737 - if (Array.isArray(r)) return r;
738 - }
739 886
740 -//#endregion
741 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
742 - function _iterableToArrayLimit(r, l) {
743 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
744 - if (null != t) {
745 - var e;
746 - var n;
747 - var i;
748 - var u;
749 - var a = [];
750 - var f = !0;
751 - var o = !1;
752 - try {
753 - if (i = (t = t.call(r)).next, 0 === l) {
754 - if (Object(t) !== t) return;
755 - f = !1;
756 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
757 - } catch (r) {
758 - o = !0, n = r;
759 - } finally {
760 - try {
761 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
762 - } finally {
763 - if (o) throw n;
764 - }
765 - }
766 - return a;
767 - }
768 - }
887 +/***/ }),
769 888
770 -//#endregion
771 -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
772 - function _arrayLikeToArray(r, a) {
773 - (null == a || a > r.length) && (a = r.length);
774 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
775 - return n;
776 - }
889 +/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
890 +/*!*************************************************************!*\
891 + !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
892 + \*************************************************************/
893 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
777 894
778 -//#endregion
779 -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
780 - function _unsupportedIterableToArray(r, a) {
781 - if (r) {
782 - if ("string" == typeof r) return _arrayLikeToArray(r, a);
783 - var t = {}.toString.call(r).slice(8, -1);
784 - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
785 - }
786 - }
895 +"use strict";
896 +/**
897 + * Copyright (c) 2013-present, Facebook, Inc.
898 + *
899 + * This source code is licensed under the MIT license found in the
900 + * LICENSE file in the root directory of this source tree.
901 + */
787 902
788 -//#endregion
789 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
790 - function _nonIterableRest() {
791 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
792 - }
793 903
794 -//#endregion
795 -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js
796 - function _slicedToArray(r, e) {
797 - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
798 - }
799 904
800 -//#endregion
801 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
802 - function _arrayWithoutHoles(r) {
803 - if (Array.isArray(r)) return _arrayLikeToArray(r);
804 - }
905 +var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
906 +var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
805 907
806 -//#endregion
807 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArray.js
808 - function _iterableToArray(r) {
809 - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
810 - }
908 +var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
909 +var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
910 +var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
811 911
812 -//#endregion
813 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
814 - function _nonIterableSpread() {
815 - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
816 - }
912 +var printWarning = function() {};
817 913
818 -//#endregion
819 -//#region node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
820 - function _toConsumableArray(r) {
821 - return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
822 - }
914 +if (true) {
915 + printWarning = function(text) {
916 + var message = 'Warning: ' + text;
917 + if (typeof console !== 'undefined') {
918 + console.error(message);
919 + }
920 + try {
921 + // --- Welcome to debugging React ---
922 + // This error was thrown as a convenience so that you can use this stack
923 + // to find the callsite that caused this warning to fire.
924 + throw new Error(message);
925 + } catch (x) {}
926 + };
927 +}
823 928
824 -//#endregion
825 -//#region node_modules/@babel/runtime/helpers/esm/extends.js
826 - function _extends() {
827 - return _extends = Object.assign ? Object.assign.bind() : function(n) {
828 - for (var e = 1; e < arguments.length; e++) {
829 - var t = arguments[e];
830 - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
831 - }
832 - return n;
833 - }, _extends.apply(null, arguments);
834 - }
929 +function emptyFunctionThatReturnsNull() {
930 + return null;
931 +}
835 932
836 -//#endregion
837 -//#region modules/notifications/assets/js/icons/x-icon.js
838 - var XIcon = (0, react.forwardRef)(function(props, ref) {
839 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.SvgIcon, _extends({ viewBox: "0 0 24 24" }, props, { ref }), /*#__PURE__*/ react.default.createElement("path", {
840 - fillRule: "evenodd",
841 - clipRule: "evenodd",
842 - d: "M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"
843 - }), /*#__PURE__*/ react.default.createElement("path", {
844 - fillRule: "evenodd",
845 - clipRule: "evenodd",
846 - d: "M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"
847 - }));
848 - });
933 +module.exports = function(isValidElement, throwOnDirectAccess) {
934 + /* global Symbol */
935 + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
936 + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
849 937
850 -//#endregion
851 -//#region modules/notifications/assets/js/components/whats-new-top-bar.js
852 - var WhatsNewTopBar = function WhatsNewTopBar(props) {
853 - var setIsOpen = props.setIsOpen;
854 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.AppBar, {
855 - elevation: 0,
856 - position: "sticky",
857 - sx: { backgroundColor: "background.default" }
858 - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Toolbar, { variant: "dense" }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
859 - variant: "overline",
860 - sx: { flexGrow: 1 }
861 - }, (0, _wordpress_i18n.__)("What's New", "elementor")), /*#__PURE__*/ react.default.createElement(_elementor_ui.IconButton, {
862 - "aria-label": "close",
863 - size: "small",
864 - onClick: function onClick() {
865 - return setIsOpen(false);
866 - }
867 - }, /*#__PURE__*/ react.default.createElement(XIcon, null)))), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null));
868 - };
869 - WhatsNewTopBar.propTypes = { setIsOpen: import_prop_types.default.func.isRequired };
938 + /**
939 + * Returns the iterator method function contained on the iterable object.
940 + *
941 + * Be sure to invoke the function with the iterable as context:
942 + *
943 + * var iteratorFn = getIteratorFn(myIterable);
944 + * if (iteratorFn) {
945 + * var iterator = iteratorFn.call(myIterable);
946 + * ...
947 + * }
948 + *
949 + * @param {?object} maybeIterable
950 + * @return {?function}
951 + */
952 + function getIteratorFn(maybeIterable) {
953 + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
954 + if (typeof iteratorFn === 'function') {
955 + return iteratorFn;
956 + }
957 + }
870 958
871 -//#endregion
872 -//#region modules/notifications/assets/js/api/index.js
873 - var request = function request(endpoint) {
874 - var data = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
875 - return new Promise(function(resolve, reject) {
876 - elementorCommon.ajax.addRequest(endpoint, {
877 - success: resolve,
878 - error: reject,
879 - data
880 - });
881 - });
882 - };
883 - var getNotifications = function getNotifications() {
884 - return request("notifications_get");
885 - };
959 + /**
960 + * Collection of methods that allow declaration and validation of props that are
961 + * supplied to React components. Example usage:
962 + *
963 + * var Props = require('ReactPropTypes');
964 + * var MyArticle = React.createClass({
965 + * propTypes: {
966 + * // An optional string prop named "description".
967 + * description: Props.string,
968 + *
969 + * // A required enum prop named "category".
970 + * category: Props.oneOf(['News','Photos']).isRequired,
971 + *
972 + * // A prop named "dialog" that requires an instance of Dialog.
973 + * dialog: Props.instanceOf(Dialog).isRequired
974 + * },
975 + * render: function() { ... }
976 + * });
977 + *
978 + * A more formal specification of how these methods are used:
979 + *
980 + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
981 + * decl := ReactPropTypes.{type}(.isRequired)?
982 + *
983 + * Each and every declaration produces a function with the same signature. This
984 + * allows the creation of custom validation functions. For example:
985 + *
986 + * var MyLink = React.createClass({
987 + * propTypes: {
988 + * // An optional string or URI prop named "href".
989 + * href: function(props, propName, componentName) {
990 + * var propValue = props[propName];
991 + * if (propValue != null && typeof propValue !== 'string' &&
992 + * !(propValue instanceof URI)) {
993 + * return new Error(
994 + * 'Expected a string or an URI for ' + propName + ' in ' +
995 + * componentName
996 + * );
997 + * }
998 + * }
999 + * },
1000 + * render: function() {...}
1001 + * });
1002 + *
1003 + * @internal
1004 + */
886 1005
887 -//#endregion
888 -//#region node_modules/@babel/runtime/helpers/esm/typeof.js
889 - function _typeof(o) {
890 - "@babel/helpers - typeof";
891 - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
892 - return typeof o;
893 - } : function(o) {
894 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
895 - }, _typeof(o);
896 - }
1006 + var ANONYMOUS = '<<anonymous>>';
897 1007
898 -//#endregion
899 -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
900 - function toPrimitive(t, r) {
901 - if ("object" != _typeof(t) || !t) return t;
902 - var e = t[Symbol.toPrimitive];
903 - if (void 0 !== e) {
904 - var i = e.call(t, r || "default");
905 - if ("object" != _typeof(i)) return i;
906 - throw new TypeError("@@toPrimitive must return a primitive value.");
907 - }
908 - return ("string" === r ? String : Number)(t);
909 - }
1008 + // Important!
1009 + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1010 + var ReactPropTypes = {
1011 + array: createPrimitiveTypeChecker('array'),
1012 + bigint: createPrimitiveTypeChecker('bigint'),
1013 + bool: createPrimitiveTypeChecker('boolean'),
1014 + func: createPrimitiveTypeChecker('function'),
1015 + number: createPrimitiveTypeChecker('number'),
1016 + object: createPrimitiveTypeChecker('object'),
1017 + string: createPrimitiveTypeChecker('string'),
1018 + symbol: createPrimitiveTypeChecker('symbol'),
910 1019
911 -//#endregion
912 -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
913 - function toPropertyKey(t) {
914 - var i = toPrimitive(t, "string");
915 - return "symbol" == _typeof(i) ? i : i + "";
916 - }
1020 + any: createAnyTypeChecker(),
1021 + arrayOf: createArrayOfTypeChecker,
1022 + element: createElementTypeChecker(),
1023 + elementType: createElementTypeTypeChecker(),
1024 + instanceOf: createInstanceTypeChecker,
1025 + node: createNodeChecker(),
1026 + objectOf: createObjectOfTypeChecker,
1027 + oneOf: createEnumTypeChecker,
1028 + oneOfType: createUnionTypeChecker,
1029 + shape: createShapeTypeChecker,
1030 + exact: createStrictShapeTypeChecker,
1031 + };
917 1032
918 -//#endregion
919 -//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
920 - function _defineProperty(e, r, t) {
921 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
922 - value: t,
923 - enumerable: !0,
924 - configurable: !0,
925 - writable: !0
926 - }) : e[r] = t, e;
927 - }
1033 + /**
1034 + * inlined Object.is polyfill to avoid requiring consumers ship their own
1035 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1036 + */
1037 + /*eslint-disable no-self-compare*/
1038 + function is(x, y) {
1039 + // SameValue algorithm
1040 + if (x === y) {
1041 + // Steps 1-5, 7-10
1042 + // Steps 6.b-6.e: +0 != -0
1043 + return x !== 0 || 1 / x === 1 / y;
1044 + } else {
1045 + // Step 6.a: NaN == NaN
1046 + return x !== x && y !== y;
1047 + }
1048 + }
1049 + /*eslint-enable no-self-compare*/
928 1050
929 -//#endregion
930 -//#region modules/notifications/assets/js/components/whats-new-item-topic-line.js
931 - var WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
932 - var topic = _ref.topic;
933 - var date = _ref.date;
934 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, {
935 - direction: "row",
936 - divider: /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, {
937 - orientation: "vertical",
938 - flexItem: true
939 - }),
940 - spacing: 1,
941 - color: "text.tertiary",
942 - sx: { pb: 1 }
943 - }, topic && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, topic), date && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, date));
944 - };
945 - WhatsNewItemTopicLine.propTypes = {
946 - topic: import_prop_types.default.string,
947 - date: import_prop_types.default.string
948 - };
1051 + /**
1052 + * We use an Error-like object for backward compatibility as people may call
1053 + * PropTypes directly and inspect their output. However, we don't use real
1054 + * Errors anymore. We don't inspect their stack anyway, and creating them
1055 + * is prohibitively expensive if they are created too often, such as what
1056 + * happens in oneOfType() for any type before the one that matched.
1057 + */
1058 + function PropTypeError(message, data) {
1059 + this.message = message;
1060 + this.data = data && typeof data === 'object' ? data: {};
1061 + this.stack = '';
1062 + }
1063 + // Make `instanceof Error` still work for returned errors.
1064 + PropTypeError.prototype = Error.prototype;
949 1065
950 -//#endregion
951 -//#region modules/notifications/assets/js/components/wrapper-with-link.js
952 - var WrapperWithLink = function WrapperWithLink(props) {
953 - var link = props.link;
954 - var children = props.children;
955 - if (!link) return children;
956 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, {
957 - href: link,
958 - target: "_blank",
959 - underline: "none",
960 - color: "inherit",
961 - sx: { "&:hover": { color: "inherit" } }
962 - }, children);
963 - };
964 - WrapperWithLink.propTypes = {
965 - link: import_prop_types.default.string,
966 - children: import_prop_types.default.any.isRequired
967 - };
1066 + function createChainableTypeChecker(validate) {
1067 + if (true) {
1068 + var manualPropTypeCallCache = {};
1069 + var manualPropTypeWarningCount = 0;
1070 + }
1071 + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1072 + componentName = componentName || ANONYMOUS;
1073 + propFullName = propFullName || propName;
968 1074
969 -//#endregion
970 -//#region modules/notifications/assets/js/components/whats-new-item-thumbnail.js
971 - var WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
972 - var imageSrc = _ref.imageSrc;
973 - var title = _ref.title;
974 - var link = _ref.link;
975 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(WrapperWithLink, { link }, /*#__PURE__*/ react.default.createElement("img", {
976 - src: imageSrc,
977 - alt: title || "",
978 - style: { maxWidth: "100%" }
979 - })));
980 - };
981 - WhatsNewItemThumbnail.propTypes = {
982 - imageSrc: import_prop_types.default.string.isRequired,
983 - title: import_prop_types.default.string,
984 - link: import_prop_types.default.string
985 - };
1075 + if (secret !== ReactPropTypesSecret) {
1076 + if (throwOnDirectAccess) {
1077 + // New behavior only for users of `prop-types` package
1078 + var err = new Error(
1079 + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1080 + 'Use `PropTypes.checkPropTypes()` to call them. ' +
1081 + 'Read more at http://fb.me/use-check-prop-types'
1082 + );
1083 + err.name = 'Invariant Violation';
1084 + throw err;
1085 + } else if ( true && typeof console !== 'undefined') {
1086 + // Old behavior for people using React.PropTypes
1087 + var cacheKey = componentName + ':' + propName;
1088 + if (
1089 + !manualPropTypeCallCache[cacheKey] &&
1090 + // Avoid spamming the console because they are often not actionable except for lib authors
1091 + manualPropTypeWarningCount < 3
1092 + ) {
1093 + printWarning(
1094 + 'You are manually calling a React.PropTypes validation ' +
1095 + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1096 + 'and will throw in the standalone `prop-types` package. ' +
1097 + 'You may be seeing this warning due to a third-party PropTypes ' +
1098 + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
1099 + );
1100 + manualPropTypeCallCache[cacheKey] = true;
1101 + manualPropTypeWarningCount++;
1102 + }
1103 + }
1104 + }
1105 + if (props[propName] == null) {
1106 + if (isRequired) {
1107 + if (props[propName] === null) {
1108 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1109 + }
1110 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1111 + }
1112 + return null;
1113 + } else {
1114 + return validate(props, propName, componentName, location, propFullName);
1115 + }
1116 + }
986 1117
987 -//#endregion
988 -//#region modules/notifications/assets/js/components/whats-new-item-media.js
989 - var WhatsNewItemMedia = function WhatsNewItemMedia(_ref) {
990 - var item = _ref.item;
991 - if (item.youtubeEmbedId) {
992 - var videoId = item.youtubeEmbedId.split("?")[0];
993 - var src = "https://www.youtube.com/embed/".concat(videoId).concat(item.youtubeAutoplay ? "?autoplay=1&mute=1" : "");
994 - var allow = "encrypted-media; picture-in-picture".concat(item.youtubeAutoplay ? "; autoplay" : "");
995 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
996 - component: "iframe",
997 - src,
998 - title: item.title || "Video",
999 - allow,
1000 - allowFullScreen: true,
1001 - sx: {
1002 - aspectRatio: "16/9",
1003 - width: "100%",
1004 - display: "block",
1005 - border: "none"
1006 - }
1007 - }));
1008 - }
1009 - var mediaSrc = item.gifSrc || item.imageSrc;
1010 - if (!mediaSrc) return null;
1011 - return /*#__PURE__*/ react.default.createElement(WhatsNewItemThumbnail, {
1012 - imageSrc: mediaSrc,
1013 - link: item.link,
1014 - title: item.title
1015 - });
1016 - };
1118 + var chainedCheckType = checkType.bind(null, false);
1119 + chainedCheckType.isRequired = checkType.bind(null, true);
1017 1120
1018 -//#endregion
1019 -//#region modules/notifications/assets/js/components/whats-new-item-chips.js
1020 - var WhatsNewItemChips = function WhatsNewItemChips(_ref) {
1021 - var chipPlan = _ref.chipPlan;
1022 - var chipTags = _ref.chipTags;
1023 - var itemIndex = _ref.itemIndex;
1024 - var chips = [];
1025 - if (chipPlan) chips.push({
1026 - color: "promotion",
1027 - size: "small",
1028 - label: chipPlan
1029 - });
1030 - if (chipTags) chipTags.forEach(function(chipTag) {
1031 - chips.push({
1032 - variant: "outlined",
1033 - size: "small",
1034 - label: chipTag
1035 - });
1036 - });
1037 - if (!chips.length) return null;
1038 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, {
1039 - direction: "row",
1040 - flexWrap: "wrap",
1041 - gap: 1,
1042 - sx: { pb: 1 }
1043 - }, chips.map(function(chip, chipIndex) {
1044 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Chip, _extends({ key: "chip-".concat(itemIndex).concat(chipIndex) }, chip));
1045 - }));
1046 - };
1047 - WhatsNewItemChips.propTypes = {
1048 - chipPlan: import_prop_types.default.string,
1049 - chipTags: import_prop_types.default.array,
1050 - itemIndex: import_prop_types.default.number.isRequired
1051 - };
1121 + return chainedCheckType;
1122 + }
1052 1123
1053 -//#endregion
1054 -//#region modules/notifications/assets/js/components/is-image-only.js
1055 - var isImageOnly = function isImageOnly(item) {
1056 - return !item.title && !item.description && (item.imageSrc || item.gifSrc || item.youtubeEmbedId);
1057 - };
1124 + function createPrimitiveTypeChecker(expectedType) {
1125 + function validate(props, propName, componentName, location, propFullName, secret) {
1126 + var propValue = props[propName];
1127 + var propType = getPropType(propValue);
1128 + if (propType !== expectedType) {
1129 + // `propValue` being instance of, say, date/regexp, pass the 'object'
1130 + // check, but we can offer a more precise error message here rather than
1131 + // 'of type `object`'.
1132 + var preciseType = getPreciseType(propValue);
1058 1133
1059 -//#endregion
1060 -//#region modules/notifications/assets/js/components/whats-new-item.js
1061 - function ownKeys(e, r) {
1062 - var t = Object.keys(e);
1063 - if (Object.getOwnPropertySymbols) {
1064 - var o = Object.getOwnPropertySymbols(e);
1065 - r && (o = o.filter(function(r) {
1066 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
1067 - })), t.push.apply(t, o);
1068 - }
1069 - return t;
1070 - }
1071 - function _objectSpread(e) {
1072 - for (var r = 1; r < arguments.length; r++) {
1073 - var t = null != arguments[r] ? arguments[r] : {};
1074 - r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
1075 - _defineProperty(e, r, t[r]);
1076 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
1077 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
1078 - });
1079 - }
1080 - return e;
1081 - }
1082 - var WhatsNewItem = function WhatsNewItem(_ref) {
1083 - var item = _ref.item;
1084 - var itemIndex = _ref.itemIndex;
1085 - var itemsLength = _ref.itemsLength;
1086 - var setIsOpen = _ref.setIsOpen;
1087 - var _ref$featured = _ref.featured;
1088 - var featured = _ref$featured === void 0 ? false : _ref$featured;
1089 - var hasMedia = item.imageSrc || item.gifSrc || item.youtubeEmbedId;
1090 - if (isImageOnly(item)) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1091 - key: itemIndex,
1092 - display: "flex",
1093 - flexDirection: "column",
1094 - sx: _objectSpread({ pt: 2 }, featured && { px: 1 })
1095 - }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), itemIndex !== itemsLength - 1 && /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1 } }));
1096 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1097 - key: itemIndex,
1098 - display: "flex",
1099 - flexDirection: "column",
1100 - sx: _objectSpread({ pt: 2 }, featured && { px: 1 })
1101 - }, (item.topic || item.date) && /*#__PURE__*/ react.default.createElement(WhatsNewItemTopicLine, {
1102 - topic: item.topic,
1103 - date: item.date
1104 - }), /*#__PURE__*/ react.default.createElement(WrapperWithLink, { link: item.link }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1105 - variant: featured ? "h6" : "subtitle1",
1106 - sx: { pb: 2 }
1107 - }, item.title)), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { position: "relative" } }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), featured && item.chipPlan && hasMedia && /*#__PURE__*/ react.default.createElement(_elementor_ui.Chip, {
1108 - label: item.chipPlan,
1109 - color: "promotion",
1110 - size: "small",
1111 - sx: {
1112 - position: "absolute",
1113 - top: 8,
1114 - insetInlineStart: 8
1115 - }
1116 - })), /*#__PURE__*/ react.default.createElement(WhatsNewItemChips, {
1117 - chipPlan: featured && hasMedia ? null : item.chipPlan,
1118 - chipTags: item.chipTags,
1119 - itemIndex
1120 - }), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1121 - variant: "body2",
1122 - color: "text.secondary",
1123 - sx: { pb: 2 }
1124 - }, item.description, item.readMoreText && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, " ", /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, {
1125 - href: item.link,
1126 - color: "info.main",
1127 - target: "_blank"
1128 - }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, {
1129 - href: item.ctaLink,
1130 - target: item.ctaLink.startsWith("#") ? "_self" : "_blank",
1131 - variant: "contained",
1132 - size: "small",
1133 - color: "promotion",
1134 - onClick: item.ctaLink.startsWith("#") ? function() {
1135 - return setIsOpen(false);
1136 - } : void 0
1137 - }, item.cta)), itemIndex !== itemsLength - 1 && /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1 } }));
1138 - };
1139 - WhatsNewItem.propTypes = {
1140 - item: import_prop_types.default.object.isRequired,
1141 - itemIndex: import_prop_types.default.number.isRequired,
1142 - itemsLength: import_prop_types.default.number.isRequired,
1143 - setIsOpen: import_prop_types.default.func.isRequired,
1144 - featured: import_prop_types.default.bool
1145 - };
1134 + return new PropTypeError(
1135 + 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
1136 + {expectedType: expectedType}
1137 + );
1138 + }
1139 + return null;
1140 + }
1141 + return createChainableTypeChecker(validate);
1142 + }
1146 1143
1147 -//#endregion
1148 -//#region modules/notifications/assets/js/components/whats-new-item-collapsed.js
1149 - var WhatsNewItemCollapsed = function WhatsNewItemCollapsed(_ref) {
1150 - var item = _ref.item;
1151 - var itemIndex = _ref.itemIndex;
1152 - var isNew = _ref.isNew;
1153 - var onSeen = _ref.onSeen;
1154 - var setIsOpen = _ref.setIsOpen;
1155 - var _useState2 = _slicedToArray((0, react.useState)(false), 2);
1156 - var expanded = _useState2[0];
1157 - var setExpanded = _useState2[1];
1158 - var handleToggle = function handleToggle() {
1159 - if (!expanded && isNew && onSeen) onSeen(item.id);
1160 - setExpanded(!expanded);
1161 - };
1162 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1163 - role: "button",
1164 - tabIndex: 0,
1165 - "aria-expanded": expanded,
1166 - onClick: handleToggle,
1167 - onKeyDown: function handleKeyDown(event) {
1168 - if ("Enter" === event.key || " " === event.key) {
1169 - event.preventDefault();
1170 - handleToggle();
1171 - }
1172 - },
1173 - sx: {
1174 - position: "relative",
1175 - display: "flex",
1176 - alignItems: "flex-start",
1177 - gap: 1,
1178 - cursor: "pointer",
1179 - py: 2,
1180 - paddingInlineStart: 1
1181 - }
1182 - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1183 - component: "span",
1184 - sx: {
1185 - position: "absolute",
1186 - insetInlineStart: "-6px",
1187 - top: "23px",
1188 - width: 6,
1189 - height: 6,
1190 - borderRadius: "50%",
1191 - backgroundColor: "primary.main",
1192 - opacity: isNew ? 1 : 0,
1193 - transition: "opacity 0.2s ease",
1194 - pointerEvents: "none"
1195 - }
1196 - }), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: {
1197 - flex: 1,
1198 - minWidth: 0
1199 - } }, item.topic && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1200 - variant: "caption",
1201 - color: "text.tertiary",
1202 - display: "block"
1203 - }, item.topic), /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1204 - variant: "subtitle2",
1205 - noWrap: true
1206 - }, item.title), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: {
1207 - maxHeight: expanded ? 0 : "3em",
1208 - opacity: expanded ? 0 : 1,
1209 - overflow: "hidden",
1210 - transition: "max-height 0.2s ease, opacity 0.15s ease"
1211 - } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1212 - variant: "caption",
1213 - color: "text.secondary",
1214 - sx: {
1215 - display: "-webkit-box",
1216 - WebkitLineClamp: 2,
1217 - WebkitBoxOrient: "vertical",
1218 - overflow: "hidden"
1219 - }
1220 - }, item.description))), /*#__PURE__*/ react.default.createElement(_elementor_icons.ChevronDownIcon, { sx: {
1221 - flexShrink: 0,
1222 - color: "secondary.main",
1223 - fontSize: "small",
1224 - mt: .25,
1225 - transform: expanded ? "rotate(180deg)" : "rotate(0deg)",
1226 - transition: "transform 0.2s"
1227 - } })), /*#__PURE__*/ react.default.createElement(_elementor_ui.Collapse, { in: expanded }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: {
1228 - pb: 2,
1229 - paddingInlineStart: 1
1230 - } }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), /*#__PURE__*/ react.default.createElement(WhatsNewItemChips, {
1231 - chipPlan: item.chipPlan,
1232 - chipTags: item.chipTags,
1233 - itemIndex
1234 - }), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1235 - variant: "body2",
1236 - color: "text.secondary",
1237 - sx: { pb: 2 }
1238 - }, item.description, item.readMoreText && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, " ", /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, {
1239 - href: item.link,
1240 - color: "info.main",
1241 - target: "_blank"
1242 - }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, {
1243 - href: item.ctaLink,
1244 - target: item.ctaLink.startsWith("#") ? "_self" : "_blank",
1245 - variant: "contained",
1246 - size: "small",
1247 - color: "promotion",
1248 - onClick: item.ctaLink.startsWith("#") ? function() {
1249 - return setIsOpen === null || setIsOpen === void 0 ? void 0 : setIsOpen(false);
1250 - } : void 0
1251 - }, item.cta)))), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null));
1252 - };
1253 - WhatsNewItemCollapsed.propTypes = {
1254 - item: import_prop_types.default.object.isRequired,
1255 - itemIndex: import_prop_types.default.number.isRequired,
1256 - isNew: import_prop_types.default.bool,
1257 - onSeen: import_prop_types.default.func,
1258 - setIsOpen: import_prop_types.default.func
1259 - };
1144 + function createAnyTypeChecker() {
1145 + return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1146 + }
1260 1147
1261 -//#endregion
1262 -//#region modules/notifications/assets/js/components/whats-new-drawer-content.js
1263 - var WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
1264 - var _items$find$listLabel;
1265 - var _items$find;
1266 - var setIsOpen = _ref.setIsOpen;
1267 - var seenItemIds = _ref.seenItemIds;
1268 - var onSeen = _ref.onSeen;
1269 - var initialHasUnread = _ref.initialHasUnread;
1270 - var _useQuery = (0, _elementor_query.useQuery)({
1271 - queryKey: ["e-notifications"],
1272 - queryFn: getNotifications
1273 - });
1274 - var isPending = _useQuery.isPending;
1275 - var error = _useQuery.error;
1276 - var items = _useQuery.data;
1277 - var seenItemIdsRef = (0, react.useRef)(seenItemIds);
1278 - seenItemIdsRef.current = seenItemIds;
1279 - (0, react.useEffect)(function() {
1280 - if (!items) return;
1281 - (items.some(function(item) {
1282 - return item.featured;
1283 - }) ? items.filter(function(item) {
1284 - return item.featured;
1285 - }) : items).filter(function(item) {
1286 - return !seenItemIdsRef.current.has(item.id);
1287 - }).forEach(function(item) {
1288 - return onSeen(item.id);
1289 - });
1290 - }, [items, onSeen]);
1291 - if (isPending) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.LinearProgress, { color: "secondary" }));
1292 - if (error) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, "An error has occurred: ", error);
1293 - var featuredItems = items.filter(function(item) {
1294 - return item.featured;
1295 - });
1296 - var nonFeaturedItems = items.filter(function(item) {
1297 - return !item.featured && !isImageOnly(item);
1298 - });
1299 - var listLabel = (_items$find$listLabel = (_items$find = items.find(function(item) {
1300 - return item.listLabel;
1301 - })) === null || _items$find === void 0 ? void 0 : _items$find.listLabel) !== null && _items$find$listLabel !== void 0 ? _items$find$listLabel : null;
1302 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, featuredItems.map(function(item, index) {
1303 - return /*#__PURE__*/ react.default.createElement(WhatsNewItem, {
1304 - key: item.id,
1305 - item,
1306 - itemIndex: index,
1307 - itemsLength: featuredItems.length,
1308 - setIsOpen,
1309 - featured: true
1310 - });
1311 - }), featuredItems.length > 0 && nonFeaturedItems.length > 0 && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, listLabel ? /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1.5 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1312 - variant: "caption",
1313 - color: "text.secondary",
1314 - sx: {
1315 - px: 1,
1316 - textTransform: "uppercase",
1317 - letterSpacing: "0.08em"
1318 - }
1319 - }, listLabel)) : /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1.5 } }), nonFeaturedItems.map(function(item, index) {
1320 - return /*#__PURE__*/ react.default.createElement(WhatsNewItemCollapsed, {
1321 - key: item.id,
1322 - item,
1323 - itemIndex: index,
1324 - isNew: initialHasUnread && !seenItemIds.has(item.id),
1325 - onSeen,
1326 - setIsOpen
1327 - });
1328 - })), 0 === featuredItems.length && nonFeaturedItems.map(function(item, itemIndex) {
1329 - return /*#__PURE__*/ react.default.createElement(WhatsNewItem, {
1330 - key: item.id,
1331 - item,
1332 - itemIndex,
1333 - itemsLength: nonFeaturedItems.length,
1334 - setIsOpen
1335 - });
1336 - }));
1337 - };
1338 - WhatsNewDrawerContent.propTypes = {
1339 - setIsOpen: import_prop_types.default.func.isRequired,
1340 - seenItemIds: import_prop_types.default.instanceOf(Set).isRequired,
1341 - onSeen: import_prop_types.default.func.isRequired,
1342 - initialHasUnread: import_prop_types.default.bool.isRequired
1343 - };
1148 + function createArrayOfTypeChecker(typeChecker) {
1149 + function validate(props, propName, componentName, location, propFullName) {
1150 + if (typeof typeChecker !== 'function') {
1151 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1152 + }
1153 + var propValue = props[propName];
1154 + if (!Array.isArray(propValue)) {
1155 + var propType = getPropType(propValue);
1156 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1157 + }
1158 + for (var i = 0; i < propValue.length; i++) {
1159 + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1160 + if (error instanceof Error) {
1161 + return error;
1162 + }
1163 + }
1164 + return null;
1165 + }
1166 + return createChainableTypeChecker(validate);
1167 + }
1344 1168
1345 -//#endregion
1346 -//#region modules/notifications/assets/js/components/whats-new.js
1347 - var _window$elementorNoti;
1348 - var _window$elementorNoti2;
1349 - var queryClient = new _elementor_query.QueryClient({ defaultOptions: { queries: {
1350 - refetchOnWindowFocus: false,
1351 - retry: false,
1352 - staleTime: 1e3 * 60 * 30
1353 - } } });
1354 - var initialHasUnread = ((_window$elementorNoti = (_window$elementorNoti2 = window.elementorNotifications) === null || _window$elementorNoti2 === void 0 ? void 0 : _window$elementorNoti2.unread_count) !== null && _window$elementorNoti !== void 0 ? _window$elementorNoti : 0) > 0;
1355 - var WhatsNew = function WhatsNew(props) {
1356 - var _window$elementor;
1357 - var _window$elementor$get;
1358 - var isOpen = props.isOpen;
1359 - var setIsOpen = props.setIsOpen;
1360 - var _props$setIsRead = props.setIsRead;
1361 - var setIsRead = _props$setIsRead === void 0 ? function() {} : _props$setIsRead;
1362 - var _props$anchorPosition = props.anchorPosition;
1363 - var anchorPosition = _props$anchorPosition === void 0 ? "right" : _props$anchorPosition;
1364 - var _useState2 = _slicedToArray((0, react.useState)(function() {
1365 - return /* @__PURE__ */ new Set();
1366 - }), 2);
1367 - var seenItemIds = _useState2[0];
1368 - var setSeenItemIds = _useState2[1];
1369 - (0, react.useEffect)(function() {
1370 - if (!isOpen) return;
1371 - setIsRead(true);
1372 - }, [isOpen, setIsRead]);
1373 - var handleSeen = (0, react.useCallback)(function(itemId) {
1374 - setSeenItemIds(function(prev) {
1375 - if (prev.has(itemId)) return prev;
1376 - window.dispatchEvent(new CustomEvent("e-notification-item-seen"));
1377 - return new Set([].concat(_toConsumableArray(prev), [itemId]));
1378 - });
1379 - }, []);
1380 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement(_elementor_query.QueryClientProvider, { client: queryClient }, /*#__PURE__*/ react.default.createElement(_elementor_ui.DirectionProvider, { rtl: elementorCommon.config.isRTL }, /*#__PURE__*/ react.default.createElement(_elementor_ui.ThemeProvider, { colorScheme: ((_window$elementor = window.elementor) === null || _window$elementor === void 0 || (_window$elementor$get = _window$elementor.getPreferences) === null || _window$elementor$get === void 0 ? void 0 : _window$elementor$get.call(_window$elementor, "ui_theme")) || "auto" }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Drawer, {
1381 - anchor: anchorPosition,
1382 - open: isOpen,
1383 - onClose: function onClose() {
1384 - return setIsOpen(false);
1385 - },
1386 - BackdropProps: { invisible: true },
1387 - ModalProps: { style: { zIndex: 999999 } }
1388 - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1389 - sx: {
1390 - width: 360,
1391 - backgroundColor: "background.default"
1392 - },
1393 - role: "presentation"
1394 - }, /*#__PURE__*/ react.default.createElement(WhatsNewTopBar, { setIsOpen }), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { padding: "16px" } }, /*#__PURE__*/ react.default.createElement(WhatsNewDrawerContent, {
1395 - setIsOpen,
1396 - seenItemIds,
1397 - onSeen: handleSeen,
1398 - initialHasUnread
1399 - }))))))));
1400 - };
1401 - WhatsNew.propTypes = {
1402 - isOpen: import_prop_types.default.bool.isRequired,
1403 - setIsOpen: import_prop_types.default.func.isRequired,
1404 - setIsRead: import_prop_types.default.func,
1405 - anchorPosition: import_prop_types.default.oneOf([
1406 - "left",
1407 - "top",
1408 - "right",
1409 - "bottom"
1410 - ])
1411 - };
1169 + function createElementTypeChecker() {
1170 + function validate(props, propName, componentName, location, propFullName) {
1171 + var propValue = props[propName];
1172 + if (!isValidElement(propValue)) {
1173 + var propType = getPropType(propValue);
1174 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1175 + }
1176 + return null;
1177 + }
1178 + return createChainableTypeChecker(validate);
1179 + }
1412 1180
1413 -//#endregion
1414 -//#region modules/notifications/assets/js/components/bar-button-notification.js
1415 - var BarButtonNotification = function BarButtonNotification(_ref) {
1416 - var _window$elementorNoti;
1417 - var children = _ref.children;
1418 - var _useState2 = _slicedToArray((0, react.useState)(false), 2);
1419 - var isOpen = _useState2[0];
1420 - var setIsOpen = _useState2[1];
1421 - var _useState4 = _slicedToArray((0, react.useState)(parseInt((_window$elementorNoti = window.elementorNotifications) === null || _window$elementorNoti === void 0 ? void 0 : _window$elementorNoti.unread_count, 10) || 0), 2);
1422 - var unreadCount = _useState4[0];
1423 - var setUnreadCount = _useState4[1];
1424 - (0, react.useEffect)(function() {
1425 - var handler = function handler() {
1426 - return setUnreadCount(function(prev) {
1427 - return Math.max(0, prev - 1);
1428 - });
1429 - };
1430 - window.addEventListener("e-notification-item-seen", handler);
1431 - return function() {
1432 - return window.removeEventListener("e-notification-item-seen", handler);
1433 - };
1434 - }, []);
1435 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement("button", {
1436 - className: "e-admin-top-bar__bar-button",
1437 - style: {
1438 - backgroundColor: "transparent",
1439 - border: "none"
1440 - },
1441 - onClick: function handleOpen(event) {
1442 - event.preventDefault();
1443 - setIsOpen(true);
1444 - }
1445 - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Badge, {
1446 - color: "primary",
1447 - badgeContent: unreadCount,
1448 - invisible: 0 === unreadCount,
1449 - sx: { mx: .5 }
1450 - }, /*#__PURE__*/ react.default.createElement("i", { className: "e-admin-top-bar__bar-button-icon eicon-speakerphone" })), /*#__PURE__*/ react.default.createElement("span", { className: "e-admin-top-bar__bar-button-title" }, children)), /*#__PURE__*/ react.default.createElement(WhatsNew, {
1451 - isOpen,
1452 - setIsOpen
1453 - }));
1454 - };
1455 - BarButtonNotification.propTypes = { children: import_prop_types.default.node.isRequired };
1181 + function createElementTypeTypeChecker() {
1182 + function validate(props, propName, componentName, location, propFullName) {
1183 + var propValue = props[propName];
1184 + if (!ReactIs.isValidElementType(propValue)) {
1185 + var propType = getPropType(propValue);
1186 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1187 + }
1188 + return null;
1189 + }
1190 + return createChainableTypeChecker(validate);
1191 + }
1456 1192
1457 -//#endregion
1458 -//#region modules/notifications/assets/js/admin.js
1459 - window.elementorNotificationCenter = { BarButtonNotification };
1193 + function createInstanceTypeChecker(expectedClass) {
1194 + function validate(props, propName, componentName, location, propFullName) {
1195 + if (!(props[propName] instanceof expectedClass)) {
1196 + var expectedClassName = expectedClass.name || ANONYMOUS;
1197 + var actualClassName = getClassName(props[propName]);
1198 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1199 + }
1200 + return null;
1201 + }
1202 + return createChainableTypeChecker(validate);
1203 + }
1460 1204
1461 -//#endregion
1462 -})(React, elementorV2.ui, elementorV2.query, wp.i18n, elementorV2.icons);
1205 + function createEnumTypeChecker(expectedValues) {
1206 + if (!Array.isArray(expectedValues)) {
1207 + if (true) {
1208 + if (arguments.length > 1) {
1209 + printWarning(
1210 + 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1211 + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1212 + );
1213 + } else {
1214 + printWarning('Invalid argument supplied to oneOf, expected an array.');
1215 + }
1216 + }
1217 + return emptyFunctionThatReturnsNull;
1218 + }
1219 +
1220 + function validate(props, propName, componentName, location, propFullName) {
1221 + var propValue = props[propName];
1222 + for (var i = 0; i < expectedValues.length; i++) {
1223 + if (is(propValue, expectedValues[i])) {
1224 + return null;
1225 + }
1226 + }
1227 +
1228 + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1229 + var type = getPreciseType(value);
1230 + if (type === 'symbol') {
1231 + return String(value);
1232 + }
1233 + return value;
1234 + });
1235 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1236 + }
1237 + return createChainableTypeChecker(validate);
1238 + }
1239 +
1240 + function createObjectOfTypeChecker(typeChecker) {
1241 + function validate(props, propName, componentName, location, propFullName) {
1242 + if (typeof typeChecker !== 'function') {
1243 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1244 + }
1245 + var propValue = props[propName];
1246 + var propType = getPropType(propValue);
1247 + if (propType !== 'object') {
1248 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1249 + }
1250 + for (var key in propValue) {
1251 + if (has(propValue, key)) {
1252 + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1253 + if (error instanceof Error) {
1254 + return error;
1255 + }
1256 + }
1257 + }
1258 + return null;
1259 + }
1260 + return createChainableTypeChecker(validate);
1261 + }
1262 +
1263 + function createUnionTypeChecker(arrayOfTypeCheckers) {
1264 + if (!Array.isArray(arrayOfTypeCheckers)) {
1265 + true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
1266 + return emptyFunctionThatReturnsNull;
1267 + }
1268 +
1269 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1270 + var checker = arrayOfTypeCheckers[i];
1271 + if (typeof checker !== 'function') {
1272 + printWarning(
1273 + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1274 + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1275 + );
1276 + return emptyFunctionThatReturnsNull;
1277 + }
1278 + }
1279 +
1280 + function validate(props, propName, componentName, location, propFullName) {
1281 + var expectedTypes = [];
1282 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1283 + var checker = arrayOfTypeCheckers[i];
1284 + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1285 + if (checkerResult == null) {
1286 + return null;
1287 + }
1288 + if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1289 + expectedTypes.push(checkerResult.data.expectedType);
1290 + }
1291 + }
1292 + var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1293 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1294 + }
1295 + return createChainableTypeChecker(validate);
1296 + }
1297 +
1298 + function createNodeChecker() {
1299 + function validate(props, propName, componentName, location, propFullName) {
1300 + if (!isNode(props[propName])) {
1301 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1302 + }
1303 + return null;
1304 + }
1305 + return createChainableTypeChecker(validate);
1306 + }
1307 +
1308 + function invalidValidatorError(componentName, location, propFullName, key, type) {
1309 + return new PropTypeError(
1310 + (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1311 + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1312 + );
1313 + }
1314 +
1315 + function createShapeTypeChecker(shapeTypes) {
1316 + function validate(props, propName, componentName, location, propFullName) {
1317 + var propValue = props[propName];
1318 + var propType = getPropType(propValue);
1319 + if (propType !== 'object') {
1320 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1321 + }
1322 + for (var key in shapeTypes) {
1323 + var checker = shapeTypes[key];
1324 + if (typeof checker !== 'function') {
1325 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1326 + }
1327 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1328 + if (error) {
1329 + return error;
1330 + }
1331 + }
1332 + return null;
1333 + }
1334 + return createChainableTypeChecker(validate);
1335 + }
1336 +
1337 + function createStrictShapeTypeChecker(shapeTypes) {
1338 + function validate(props, propName, componentName, location, propFullName) {
1339 + var propValue = props[propName];
1340 + var propType = getPropType(propValue);
1341 + if (propType !== 'object') {
1342 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1343 + }
1344 + // We need to check all keys in case some are required but missing from props.
1345 + var allKeys = assign({}, props[propName], shapeTypes);
1346 + for (var key in allKeys) {
1347 + var checker = shapeTypes[key];
1348 + if (has(shapeTypes, key) && typeof checker !== 'function') {
1349 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1350 + }
1351 + if (!checker) {
1352 + return new PropTypeError(
1353 + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1354 + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1355 + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1356 + );
1357 + }
1358 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1359 + if (error) {
1360 + return error;
1361 + }
1362 + }
1363 + return null;
1364 + }
1365 +
1366 + return createChainableTypeChecker(validate);
1367 + }
1368 +
1369 + function isNode(propValue) {
1370 + switch (typeof propValue) {
1371 + case 'number':
1372 + case 'string':
1373 + case 'undefined':
1374 + return true;
1375 + case 'boolean':
1376 + return !propValue;
1377 + case 'object':
1378 + if (Array.isArray(propValue)) {
1379 + return propValue.every(isNode);
1380 + }
1381 + if (propValue === null || isValidElement(propValue)) {
1382 + return true;
1383 + }
1384 +
1385 + var iteratorFn = getIteratorFn(propValue);
1386 + if (iteratorFn) {
1387 + var iterator = iteratorFn.call(propValue);
1388 + var step;
1389 + if (iteratorFn !== propValue.entries) {
1390 + while (!(step = iterator.next()).done) {
1391 + if (!isNode(step.value)) {
1392 + return false;
1393 + }
1394 + }
1395 + } else {
1396 + // Iterator will provide entry [k,v] tuples rather than values.
1397 + while (!(step = iterator.next()).done) {
1398 + var entry = step.value;
1399 + if (entry) {
1400 + if (!isNode(entry[1])) {
1401 + return false;
1402 + }
1403 + }
1404 + }
1405 + }
1406 + } else {
1407 + return false;
1408 + }
1409 +
1410 + return true;
1411 + default:
1412 + return false;
1413 + }
1414 + }
1415 +
1416 + function isSymbol(propType, propValue) {
1417 + // Native Symbol.
1418 + if (propType === 'symbol') {
1419 + return true;
1420 + }
1421 +
1422 + // falsy value can't be a Symbol
1423 + if (!propValue) {
1424 + return false;
1425 + }
1426 +
1427 + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1428 + if (propValue['@@toStringTag'] === 'Symbol') {
1429 + return true;
1430 + }
1431 +
1432 + // Fallback for non-spec compliant Symbols which are polyfilled.
1433 + if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1434 + return true;
1435 + }
1436 +
1437 + return false;
1438 + }
1439 +
1440 + // Equivalent of `typeof` but with special handling for array and regexp.
1441 + function getPropType(propValue) {
1442 + var propType = typeof propValue;
1443 + if (Array.isArray(propValue)) {
1444 + return 'array';
1445 + }
1446 + if (propValue instanceof RegExp) {
1447 + // Old webkits (at least until Android 4.0) return 'function' rather than
1448 + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1449 + // passes PropTypes.object.
1450 + return 'object';
1451 + }
1452 + if (isSymbol(propType, propValue)) {
1453 + return 'symbol';
1454 + }
1455 + return propType;
1456 + }
1457 +
1458 + // This handles more types than `getPropType`. Only used for error messages.
1459 + // See `createPrimitiveTypeChecker`.
1460 + function getPreciseType(propValue) {
1461 + if (typeof propValue === 'undefined' || propValue === null) {
1462 + return '' + propValue;
1463 + }
1464 + var propType = getPropType(propValue);
1465 + if (propType === 'object') {
1466 + if (propValue instanceof Date) {
1467 + return 'date';
1468 + } else if (propValue instanceof RegExp) {
1469 + return 'regexp';
1470 + }
1471 + }
1472 + return propType;
1473 + }
1474 +
1475 + // Returns a string that is postfixed to a warning about an invalid type.
1476 + // For example, "undefined" or "of type array"
1477 + function getPostfixForTypeWarning(value) {
1478 + var type = getPreciseType(value);
1479 + switch (type) {
1480 + case 'array':
1481 + case 'object':
1482 + return 'an ' + type;
1483 + case 'boolean':
1484 + case 'date':
1485 + case 'regexp':
1486 + return 'a ' + type;
1487 + default:
1488 + return type;
1489 + }
1490 + }
1491 +
1492 + // Returns class name of the object, if any.
1493 + function getClassName(propValue) {
1494 + if (!propValue.constructor || !propValue.constructor.name) {
1495 + return ANONYMOUS;
1496 + }
1497 + return propValue.constructor.name;
1498 + }
1499 +
1500 + ReactPropTypes.checkPropTypes = checkPropTypes;
1501 + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1502 + ReactPropTypes.PropTypes = ReactPropTypes;
1503 +
1504 + return ReactPropTypes;
1505 +};
1506 +
1507 +
1508 +/***/ }),
1509 +
1510 +/***/ "../node_modules/prop-types/index.js":
1511 +/*!*******************************************!*\
1512 + !*** ../node_modules/prop-types/index.js ***!
1513 + \*******************************************/
1514 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1515 +
1516 +/**
1517 + * Copyright (c) 2013-present, Facebook, Inc.
1518 + *
1519 + * This source code is licensed under the MIT license found in the
1520 + * LICENSE file in the root directory of this source tree.
1521 + */
1522 +
1523 +if (true) {
1524 + var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1525 +
1526 + // By explicitly using `prop-types` you are opting into new development behavior.
1527 + // http://fb.me/prop-types-in-prod
1528 + var throwOnDirectAccess = true;
1529 + module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1530 +} else {}
1531 +
1532 +
1533 +/***/ }),
1534 +
1535 +/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
1536 +/*!**************************************************************!*\
1537 + !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
1538 + \**************************************************************/
1539 +/***/ ((module) => {
1540 +
1541 +"use strict";
1542 +/**
1543 + * Copyright (c) 2013-present, Facebook, Inc.
1544 + *
1545 + * This source code is licensed under the MIT license found in the
1546 + * LICENSE file in the root directory of this source tree.
1547 + */
1548 +
1549 +
1550 +
1551 +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1552 +
1553 +module.exports = ReactPropTypesSecret;
1554 +
1555 +
1556 +/***/ }),
1557 +
1558 +/***/ "../node_modules/prop-types/lib/has.js":
1559 +/*!*********************************************!*\
1560 + !*** ../node_modules/prop-types/lib/has.js ***!
1561 + \*********************************************/
1562 +/***/ ((module) => {
1563 +
1564 +module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
1565 +
1566 +
1567 +/***/ }),
1568 +
1569 +/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
1570 +/*!************************************************************************************!*\
1571 + !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
1572 + \************************************************************************************/
1573 +/***/ ((__unused_webpack_module, exports) => {
1574 +
1575 +"use strict";
1576 +/** @license React v16.13.1
1577 + * react-is.development.js
1578 + *
1579 + * Copyright (c) Facebook, Inc. and its affiliates.
1580 + *
1581 + * This source code is licensed under the MIT license found in the
1582 + * LICENSE file in the root directory of this source tree.
1583 + */
1584 +
1585 +
1586 +
1587 +
1588 +
1589 +if (true) {
1590 + (function() {
1591 +'use strict';
1592 +
1593 +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1594 +// nor polyfill, then a plain number is used for performance.
1595 +var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1596 +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1597 +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1598 +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1599 +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1600 +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1601 +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1602 +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1603 +// (unstable) APIs that have been removed. Can we remove the symbols?
1604 +
1605 +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1606 +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1607 +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1608 +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1609 +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1610 +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1611 +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1612 +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1613 +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1614 +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1615 +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1616 +
1617 +function isValidElementType(type) {
1618 + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1619 + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1620 +}
1621 +
1622 +function typeOf(object) {
1623 + if (typeof object === 'object' && object !== null) {
1624 + var $$typeof = object.$$typeof;
1625 +
1626 + switch ($$typeof) {
1627 + case REACT_ELEMENT_TYPE:
1628 + var type = object.type;
1629 +
1630 + switch (type) {
1631 + case REACT_ASYNC_MODE_TYPE:
1632 + case REACT_CONCURRENT_MODE_TYPE:
1633 + case REACT_FRAGMENT_TYPE:
1634 + case REACT_PROFILER_TYPE:
1635 + case REACT_STRICT_MODE_TYPE:
1636 + case REACT_SUSPENSE_TYPE:
1637 + return type;
1638 +
1639 + default:
1640 + var $$typeofType = type && type.$$typeof;
1641 +
1642 + switch ($$typeofType) {
1643 + case REACT_CONTEXT_TYPE:
1644 + case REACT_FORWARD_REF_TYPE:
1645 + case REACT_LAZY_TYPE:
1646 + case REACT_MEMO_TYPE:
1647 + case REACT_PROVIDER_TYPE:
1648 + return $$typeofType;
1649 +
1650 + default:
1651 + return $$typeof;
1652 + }
1653 +
1654 + }
1655 +
1656 + case REACT_PORTAL_TYPE:
1657 + return $$typeof;
1658 + }
1659 + }
1660 +
1661 + return undefined;
1662 +} // AsyncMode is deprecated along with isAsyncMode
1663 +
1664 +var AsyncMode = REACT_ASYNC_MODE_TYPE;
1665 +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1666 +var ContextConsumer = REACT_CONTEXT_TYPE;
1667 +var ContextProvider = REACT_PROVIDER_TYPE;
1668 +var Element = REACT_ELEMENT_TYPE;
1669 +var ForwardRef = REACT_FORWARD_REF_TYPE;
1670 +var Fragment = REACT_FRAGMENT_TYPE;
1671 +var Lazy = REACT_LAZY_TYPE;
1672 +var Memo = REACT_MEMO_TYPE;
1673 +var Portal = REACT_PORTAL_TYPE;
1674 +var Profiler = REACT_PROFILER_TYPE;
1675 +var StrictMode = REACT_STRICT_MODE_TYPE;
1676 +var Suspense = REACT_SUSPENSE_TYPE;
1677 +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1678 +
1679 +function isAsyncMode(object) {
1680 + {
1681 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1682 + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1683 +
1684 + console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
1685 + }
1686 + }
1687 +
1688 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1689 +}
1690 +function isConcurrentMode(object) {
1691 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1692 +}
1693 +function isContextConsumer(object) {
1694 + return typeOf(object) === REACT_CONTEXT_TYPE;
1695 +}
1696 +function isContextProvider(object) {
1697 + return typeOf(object) === REACT_PROVIDER_TYPE;
1698 +}
1699 +function isElement(object) {
1700 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1701 +}
1702 +function isForwardRef(object) {
1703 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
1704 +}
1705 +function isFragment(object) {
1706 + return typeOf(object) === REACT_FRAGMENT_TYPE;
1707 +}
1708 +function isLazy(object) {
1709 + return typeOf(object) === REACT_LAZY_TYPE;
1710 +}
1711 +function isMemo(object) {
1712 + return typeOf(object) === REACT_MEMO_TYPE;
1713 +}
1714 +function isPortal(object) {
1715 + return typeOf(object) === REACT_PORTAL_TYPE;
1716 +}
1717 +function isProfiler(object) {
1718 + return typeOf(object) === REACT_PROFILER_TYPE;
1719 +}
1720 +function isStrictMode(object) {
1721 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
1722 +}
1723 +function isSuspense(object) {
1724 + return typeOf(object) === REACT_SUSPENSE_TYPE;
1725 +}
1726 +
1727 +exports.AsyncMode = AsyncMode;
1728 +exports.ConcurrentMode = ConcurrentMode;
1729 +exports.ContextConsumer = ContextConsumer;
1730 +exports.ContextProvider = ContextProvider;
1731 +exports.Element = Element;
1732 +exports.ForwardRef = ForwardRef;
1733 +exports.Fragment = Fragment;
1734 +exports.Lazy = Lazy;
1735 +exports.Memo = Memo;
1736 +exports.Portal = Portal;
1737 +exports.Profiler = Profiler;
1738 +exports.StrictMode = StrictMode;
1739 +exports.Suspense = Suspense;
1740 +exports.isAsyncMode = isAsyncMode;
1741 +exports.isConcurrentMode = isConcurrentMode;
1742 +exports.isContextConsumer = isContextConsumer;
1743 +exports.isContextProvider = isContextProvider;
1744 +exports.isElement = isElement;
1745 +exports.isForwardRef = isForwardRef;
1746 +exports.isFragment = isFragment;
1747 +exports.isLazy = isLazy;
1748 +exports.isMemo = isMemo;
1749 +exports.isPortal = isPortal;
1750 +exports.isProfiler = isProfiler;
1751 +exports.isStrictMode = isStrictMode;
1752 +exports.isSuspense = isSuspense;
1753 +exports.isValidElementType = isValidElementType;
1754 +exports.typeOf = typeOf;
1755 + })();
1756 +}
1757 +
1758 +
1759 +/***/ }),
1760 +
1761 +/***/ "../node_modules/prop-types/node_modules/react-is/index.js":
1762 +/*!*****************************************************************!*\
1763 + !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
1764 + \*****************************************************************/
1765 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1766 +
1767 +"use strict";
1768 +
1769 +
1770 +if (false) {} else {
1771 + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1772 +}
1773 +
1774 +
1775 +/***/ }),
1776 +
1777 +/***/ "../node_modules/react/cjs/react-jsx-runtime.development.js":
1778 +/*!******************************************************************!*\
1779 + !*** ../node_modules/react/cjs/react-jsx-runtime.development.js ***!
1780 + \******************************************************************/
1781 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1782 +
1783 +"use strict";
1784 +/**
1785 + * @license React
1786 + * react-jsx-runtime.development.js
1787 + *
1788 + * Copyright (c) Facebook, Inc. and its affiliates.
1789 + *
1790 + * This source code is licensed under the MIT license found in the
1791 + * LICENSE file in the root directory of this source tree.
1792 + */
1793 +
1794 +
1795 +
1796 +if (true) {
1797 + (function() {
1798 +'use strict';
1799 +
1800 +var React = __webpack_require__(/*! react */ "react");
1801 +
1802 +// ATTENTION
1803 +// When adding new symbols to this file,
1804 +// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
1805 +// The Symbol used to tag the ReactElement-like types.
1806 +var REACT_ELEMENT_TYPE = Symbol.for('react.element');
1807 +var REACT_PORTAL_TYPE = Symbol.for('react.portal');
1808 +var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
1809 +var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
1810 +var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
1811 +var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
1812 +var REACT_CONTEXT_TYPE = Symbol.for('react.context');
1813 +var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
1814 +var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
1815 +var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
1816 +var REACT_MEMO_TYPE = Symbol.for('react.memo');
1817 +var REACT_LAZY_TYPE = Symbol.for('react.lazy');
1818 +var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
1819 +var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
1820 +var FAUX_ITERATOR_SYMBOL = '@@iterator';
1821 +function getIteratorFn(maybeIterable) {
1822 + if (maybeIterable === null || typeof maybeIterable !== 'object') {
1823 + return null;
1824 + }
1825 +
1826 + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
1827 +
1828 + if (typeof maybeIterator === 'function') {
1829 + return maybeIterator;
1830 + }
1831 +
1832 + return null;
1833 +}
1834 +
1835 +var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1836 +
1837 +function error(format) {
1838 + {
1839 + {
1840 + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1841 + args[_key2 - 1] = arguments[_key2];
1842 + }
1843 +
1844 + printWarning('error', format, args);
1845 + }
1846 + }
1847 +}
1848 +
1849 +function printWarning(level, format, args) {
1850 + // When changing this logic, you might want to also
1851 + // update consoleWithStackDev.www.js as well.
1852 + {
1853 + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
1854 + var stack = ReactDebugCurrentFrame.getStackAddendum();
1855 +
1856 + if (stack !== '') {
1857 + format += '%s';
1858 + args = args.concat([stack]);
1859 + } // eslint-disable-next-line react-internal/safe-string-coercion
1860 +
1861 +
1862 + var argsWithFormat = args.map(function (item) {
1863 + return String(item);
1864 + }); // Careful: RN currently depends on this prefix
1865 +
1866 + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
1867 + // breaks IE9: https://github.com/facebook/react/issues/13610
1868 + // eslint-disable-next-line react-internal/no-production-logging
1869 +
1870 + Function.prototype.apply.call(console[level], console, argsWithFormat);
1871 + }
1872 +}
1873 +
1874 +// -----------------------------------------------------------------------------
1875 +
1876 +var enableScopeAPI = false; // Experimental Create Event Handle API.
1877 +var enableCacheElement = false;
1878 +var enableTransitionTracing = false; // No known bugs, but needs performance testing
1879 +
1880 +var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
1881 +// stuff. Intended to enable React core members to more easily debug scheduling
1882 +// issues in DEV builds.
1883 +
1884 +var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
1885 +
1886 +var REACT_MODULE_REFERENCE;
1887 +
1888 +{
1889 + REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
1890 +}
1891 +
1892 +function isValidElementType(type) {
1893 + if (typeof type === 'string' || typeof type === 'function') {
1894 + return true;
1895 + } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1896 +
1897 +
1898 + if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
1899 + return true;
1900 + }
1901 +
1902 + if (typeof type === 'object' && type !== null) {
1903 + if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1904 + // types supported by any Flight configuration anywhere since
1905 + // we don't know which Flight build this will end up being used
1906 + // with.
1907 + type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
1908 + return true;
1909 + }
1910 + }
1911 +
1912 + return false;
1913 +}
1914 +
1915 +function getWrappedName(outerType, innerType, wrapperName) {
1916 + var displayName = outerType.displayName;
1917 +
1918 + if (displayName) {
1919 + return displayName;
1920 + }
1921 +
1922 + var functionName = innerType.displayName || innerType.name || '';
1923 + return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
1924 +} // Keep in sync with react-reconciler/getComponentNameFromFiber
1925 +
1926 +
1927 +function getContextName(type) {
1928 + return type.displayName || 'Context';
1929 +} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
1930 +
1931 +
1932 +function getComponentNameFromType(type) {
1933 + if (type == null) {
1934 + // Host root, text node or just invalid type.
1935 + return null;
1936 + }
1937 +
1938 + {
1939 + if (typeof type.tag === 'number') {
1940 + error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
1941 + }
1942 + }
1943 +
1944 + if (typeof type === 'function') {
1945 + return type.displayName || type.name || null;
1946 + }
1947 +
1948 + if (typeof type === 'string') {
1949 + return type;
1950 + }
1951 +
1952 + switch (type) {
1953 + case REACT_FRAGMENT_TYPE:
1954 + return 'Fragment';
1955 +
1956 + case REACT_PORTAL_TYPE:
1957 + return 'Portal';
1958 +
1959 + case REACT_PROFILER_TYPE:
1960 + return 'Profiler';
1961 +
1962 + case REACT_STRICT_MODE_TYPE:
1963 + return 'StrictMode';
1964 +
1965 + case REACT_SUSPENSE_TYPE:
1966 + return 'Suspense';
1967 +
1968 + case REACT_SUSPENSE_LIST_TYPE:
1969 + return 'SuspenseList';
1970 +
1971 + }
1972 +
1973 + if (typeof type === 'object') {
1974 + switch (type.$$typeof) {
1975 + case REACT_CONTEXT_TYPE:
1976 + var context = type;
1977 + return getContextName(context) + '.Consumer';
1978 +
1979 + case REACT_PROVIDER_TYPE:
1980 + var provider = type;
1981 + return getContextName(provider._context) + '.Provider';
1982 +
1983 + case REACT_FORWARD_REF_TYPE:
1984 + return getWrappedName(type, type.render, 'ForwardRef');
1985 +
1986 + case REACT_MEMO_TYPE:
1987 + var outerName = type.displayName || null;
1988 +
1989 + if (outerName !== null) {
1990 + return outerName;
1991 + }
1992 +
1993 + return getComponentNameFromType(type.type) || 'Memo';
1994 +
1995 + case REACT_LAZY_TYPE:
1996 + {
1997 + var lazyComponent = type;
1998 + var payload = lazyComponent._payload;
1999 + var init = lazyComponent._init;
2000 +
2001 + try {
2002 + return getComponentNameFromType(init(payload));
2003 + } catch (x) {
2004 + return null;
2005 + }
2006 + }
2007 +
2008 + // eslint-disable-next-line no-fallthrough
2009 + }
2010 + }
2011 +
2012 + return null;
2013 +}
2014 +
2015 +var assign = Object.assign;
2016 +
2017 +// Helpers to patch console.logs to avoid logging during side-effect free
2018 +// replaying on render function. This currently only patches the object
2019 +// lazily which won't cover if the log function was extracted eagerly.
2020 +// We could also eagerly patch the method.
2021 +var disabledDepth = 0;
2022 +var prevLog;
2023 +var prevInfo;
2024 +var prevWarn;
2025 +var prevError;
2026 +var prevGroup;
2027 +var prevGroupCollapsed;
2028 +var prevGroupEnd;
2029 +
2030 +function disabledLog() {}
2031 +
2032 +disabledLog.__reactDisabledLog = true;
2033 +function disableLogs() {
2034 + {
2035 + if (disabledDepth === 0) {
2036 + /* eslint-disable react-internal/no-production-logging */
2037 + prevLog = console.log;
2038 + prevInfo = console.info;
2039 + prevWarn = console.warn;
2040 + prevError = console.error;
2041 + prevGroup = console.group;
2042 + prevGroupCollapsed = console.groupCollapsed;
2043 + prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
2044 +
2045 + var props = {
2046 + configurable: true,
2047 + enumerable: true,
2048 + value: disabledLog,
2049 + writable: true
2050 + }; // $FlowFixMe Flow thinks console is immutable.
2051 +
2052 + Object.defineProperties(console, {
2053 + info: props,
2054 + log: props,
2055 + warn: props,
2056 + error: props,
2057 + group: props,
2058 + groupCollapsed: props,
2059 + groupEnd: props
2060 + });
2061 + /* eslint-enable react-internal/no-production-logging */
2062 + }
2063 +
2064 + disabledDepth++;
2065 + }
2066 +}
2067 +function reenableLogs() {
2068 + {
2069 + disabledDepth--;
2070 +
2071 + if (disabledDepth === 0) {
2072 + /* eslint-disable react-internal/no-production-logging */
2073 + var props = {
2074 + configurable: true,
2075 + enumerable: true,
2076 + writable: true
2077 + }; // $FlowFixMe Flow thinks console is immutable.
2078 +
2079 + Object.defineProperties(console, {
2080 + log: assign({}, props, {
2081 + value: prevLog
2082 + }),
2083 + info: assign({}, props, {
2084 + value: prevInfo
2085 + }),
2086 + warn: assign({}, props, {
2087 + value: prevWarn
2088 + }),
2089 + error: assign({}, props, {
2090 + value: prevError
2091 + }),
2092 + group: assign({}, props, {
2093 + value: prevGroup
2094 + }),
2095 + groupCollapsed: assign({}, props, {
2096 + value: prevGroupCollapsed
2097 + }),
2098 + groupEnd: assign({}, props, {
2099 + value: prevGroupEnd
2100 + })
2101 + });
2102 + /* eslint-enable react-internal/no-production-logging */
2103 + }
2104 +
2105 + if (disabledDepth < 0) {
2106 + error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
2107 + }
2108 + }
2109 +}
2110 +
2111 +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2112 +var prefix;
2113 +function describeBuiltInComponentFrame(name, source, ownerFn) {
2114 + {
2115 + if (prefix === undefined) {
2116 + // Extract the VM specific prefix used by each line.
2117 + try {
2118 + throw Error();
2119 + } catch (x) {
2120 + var match = x.stack.trim().match(/\n( *(at )?)/);
2121 + prefix = match && match[1] || '';
2122 + }
2123 + } // We use the prefix to ensure our stacks line up with native stack frames.
2124 +
2125 +
2126 + return '\n' + prefix + name;
2127 + }
2128 +}
2129 +var reentry = false;
2130 +var componentFrameCache;
2131 +
2132 +{
2133 + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
2134 + componentFrameCache = new PossiblyWeakMap();
2135 +}
2136 +
2137 +function describeNativeComponentFrame(fn, construct) {
2138 + // If something asked for a stack inside a fake render, it should get ignored.
2139 + if ( !fn || reentry) {
2140 + return '';
2141 + }
2142 +
2143 + {
2144 + var frame = componentFrameCache.get(fn);
2145 +
2146 + if (frame !== undefined) {
2147 + return frame;
2148 + }
2149 + }
2150 +
2151 + var control;
2152 + reentry = true;
2153 + var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
2154 +
2155 + Error.prepareStackTrace = undefined;
2156 + var previousDispatcher;
2157 +
2158 + {
2159 + previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
2160 + // for warnings.
2161 +
2162 + ReactCurrentDispatcher.current = null;
2163 + disableLogs();
2164 + }
2165 +
2166 + try {
2167 + // This should throw.
2168 + if (construct) {
2169 + // Something should be setting the props in the constructor.
2170 + var Fake = function () {
2171 + throw Error();
2172 + }; // $FlowFixMe
2173 +
2174 +
2175 + Object.defineProperty(Fake.prototype, 'props', {
2176 + set: function () {
2177 + // We use a throwing setter instead of frozen or non-writable props
2178 + // because that won't throw in a non-strict mode function.
2179 + throw Error();
2180 + }
2181 + });
2182 +
2183 + if (typeof Reflect === 'object' && Reflect.construct) {
2184 + // We construct a different control for this case to include any extra
2185 + // frames added by the construct call.
2186 + try {
2187 + Reflect.construct(Fake, []);
2188 + } catch (x) {
2189 + control = x;
2190 + }
2191 +
2192 + Reflect.construct(fn, [], Fake);
2193 + } else {
2194 + try {
2195 + Fake.call();
2196 + } catch (x) {
2197 + control = x;
2198 + }
2199 +
2200 + fn.call(Fake.prototype);
2201 + }
2202 + } else {
2203 + try {
2204 + throw Error();
2205 + } catch (x) {
2206 + control = x;
2207 + }
2208 +
2209 + fn();
2210 + }
2211 + } catch (sample) {
2212 + // This is inlined manually because closure doesn't do it for us.
2213 + if (sample && control && typeof sample.stack === 'string') {
2214 + // This extracts the first frame from the sample that isn't also in the control.
2215 + // Skipping one frame that we assume is the frame that calls the two.
2216 + var sampleLines = sample.stack.split('\n');
2217 + var controlLines = control.stack.split('\n');
2218 + var s = sampleLines.length - 1;
2219 + var c = controlLines.length - 1;
2220 +
2221 + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2222 + // We expect at least one stack frame to be shared.
2223 + // Typically this will be the root most one. However, stack frames may be
2224 + // cut off due to maximum stack limits. In this case, one maybe cut off
2225 + // earlier than the other. We assume that the sample is longer or the same
2226 + // and there for cut off earlier. So we should find the root most frame in
2227 + // the sample somewhere in the control.
2228 + c--;
2229 + }
2230 +
2231 + for (; s >= 1 && c >= 0; s--, c--) {
2232 + // Next we find the first one that isn't the same which should be the
2233 + // frame that called our sample function and the control.
2234 + if (sampleLines[s] !== controlLines[c]) {
2235 + // In V8, the first line is describing the message but other VMs don't.
2236 + // If we're about to return the first line, and the control is also on the same
2237 + // line, that's a pretty good indicator that our sample threw at same line as
2238 + // the control. I.e. before we entered the sample frame. So we ignore this result.
2239 + // This can happen if you passed a class to function component, or non-function.
2240 + if (s !== 1 || c !== 1) {
2241 + do {
2242 + s--;
2243 + c--; // We may still have similar intermediate frames from the construct call.
2244 + // The next one that isn't the same should be our match though.
2245 +
2246 + if (c < 0 || sampleLines[s] !== controlLines[c]) {
2247 + // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
2248 + var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
2249 + // but we have a user-provided "displayName"
2250 + // splice it in to make the stack more readable.
2251 +
2252 +
2253 + if (fn.displayName && _frame.includes('<anonymous>')) {
2254 + _frame = _frame.replace('<anonymous>', fn.displayName);
2255 + }
2256 +
2257 + {
2258 + if (typeof fn === 'function') {
2259 + componentFrameCache.set(fn, _frame);
2260 + }
2261 + } // Return the line we found.
2262 +
2263 +
2264 + return _frame;
2265 + }
2266 + } while (s >= 1 && c >= 0);
2267 + }
2268 +
2269 + break;
2270 + }
2271 + }
2272 + }
2273 + } finally {
2274 + reentry = false;
2275 +
2276 + {
2277 + ReactCurrentDispatcher.current = previousDispatcher;
2278 + reenableLogs();
2279 + }
2280 +
2281 + Error.prepareStackTrace = previousPrepareStackTrace;
2282 + } // Fallback to just using the name if we couldn't make it throw.
2283 +
2284 +
2285 + var name = fn ? fn.displayName || fn.name : '';
2286 + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
2287 +
2288 + {
2289 + if (typeof fn === 'function') {
2290 + componentFrameCache.set(fn, syntheticFrame);
2291 + }
2292 + }
2293 +
2294 + return syntheticFrame;
2295 +}
2296 +function describeFunctionComponentFrame(fn, source, ownerFn) {
2297 + {
2298 + return describeNativeComponentFrame(fn, false);
2299 + }
2300 +}
2301 +
2302 +function shouldConstruct(Component) {
2303 + var prototype = Component.prototype;
2304 + return !!(prototype && prototype.isReactComponent);
2305 +}
2306 +
2307 +function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2308 +
2309 + if (type == null) {
2310 + return '';
2311 + }
2312 +
2313 + if (typeof type === 'function') {
2314 + {
2315 + return describeNativeComponentFrame(type, shouldConstruct(type));
2316 + }
2317 + }
2318 +
2319 + if (typeof type === 'string') {
2320 + return describeBuiltInComponentFrame(type);
2321 + }
2322 +
2323 + switch (type) {
2324 + case REACT_SUSPENSE_TYPE:
2325 + return describeBuiltInComponentFrame('Suspense');
2326 +
2327 + case REACT_SUSPENSE_LIST_TYPE:
2328 + return describeBuiltInComponentFrame('SuspenseList');
2329 + }
2330 +
2331 + if (typeof type === 'object') {
2332 + switch (type.$$typeof) {
2333 + case REACT_FORWARD_REF_TYPE:
2334 + return describeFunctionComponentFrame(type.render);
2335 +
2336 + case REACT_MEMO_TYPE:
2337 + // Memo may contain any component type so we recursively resolve it.
2338 + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2339 +
2340 + case REACT_LAZY_TYPE:
2341 + {
2342 + var lazyComponent = type;
2343 + var payload = lazyComponent._payload;
2344 + var init = lazyComponent._init;
2345 +
2346 + try {
2347 + // Lazy may contain any component type so we recursively resolve it.
2348 + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2349 + } catch (x) {}
2350 + }
2351 + }
2352 + }
2353 +
2354 + return '';
2355 +}
2356 +
2357 +var hasOwnProperty = Object.prototype.hasOwnProperty;
2358 +
2359 +var loggedTypeFailures = {};
2360 +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2361 +
2362 +function setCurrentlyValidatingElement(element) {
2363 + {
2364 + if (element) {
2365 + var owner = element._owner;
2366 + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2367 + ReactDebugCurrentFrame.setExtraStackFrame(stack);
2368 + } else {
2369 + ReactDebugCurrentFrame.setExtraStackFrame(null);
2370 + }
2371 + }
2372 +}
2373 +
2374 +function checkPropTypes(typeSpecs, values, location, componentName, element) {
2375 + {
2376 + // $FlowFixMe This is okay but Flow doesn't know it.
2377 + var has = Function.call.bind(hasOwnProperty);
2378 +
2379 + for (var typeSpecName in typeSpecs) {
2380 + if (has(typeSpecs, typeSpecName)) {
2381 + var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2382 + // fail the render phase where it didn't fail before. So we log it.
2383 + // After these have been cleaned up, we'll let them throw.
2384 +
2385 + try {
2386 + // This is intentionally an invariant that gets caught. It's the same
2387 + // behavior as without this statement except with a better message.
2388 + if (typeof typeSpecs[typeSpecName] !== 'function') {
2389 + // eslint-disable-next-line react-internal/prod-error-codes
2390 + var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2391 + err.name = 'Invariant Violation';
2392 + throw err;
2393 + }
2394 +
2395 + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2396 + } catch (ex) {
2397 + error$1 = ex;
2398 + }
2399 +
2400 + if (error$1 && !(error$1 instanceof Error)) {
2401 + setCurrentlyValidatingElement(element);
2402 +
2403 + error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
2404 +
2405 + setCurrentlyValidatingElement(null);
2406 + }
2407 +
2408 + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2409 + // Only monitor this failure once because there tends to be a lot of the
2410 + // same error.
2411 + loggedTypeFailures[error$1.message] = true;
2412 + setCurrentlyValidatingElement(element);
2413 +
2414 + error('Failed %s type: %s', location, error$1.message);
2415 +
2416 + setCurrentlyValidatingElement(null);
2417 + }
2418 + }
2419 + }
2420 + }
2421 +}
2422 +
2423 +var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
2424 +
2425 +function isArray(a) {
2426 + return isArrayImpl(a);
2427 +}
2428 +
2429 +/*
2430 + * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
2431 + * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
2432 + *
2433 + * The functions in this module will throw an easier-to-understand,
2434 + * easier-to-debug exception with a clear errors message message explaining the
2435 + * problem. (Instead of a confusing exception thrown inside the implementation
2436 + * of the `value` object).
2437 + */
2438 +// $FlowFixMe only called in DEV, so void return is not possible.
2439 +function typeName(value) {
2440 + {
2441 + // toStringTag is needed for namespaced types like Temporal.Instant
2442 + var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
2443 + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
2444 + return type;
2445 + }
2446 +} // $FlowFixMe only called in DEV, so void return is not possible.
2447 +
2448 +
2449 +function willCoercionThrow(value) {
2450 + {
2451 + try {
2452 + testStringCoercion(value);
2453 + return false;
2454 + } catch (e) {
2455 + return true;
2456 + }
2457 + }
2458 +}
2459 +
2460 +function testStringCoercion(value) {
2461 + // If you ended up here by following an exception call stack, here's what's
2462 + // happened: you supplied an object or symbol value to React (as a prop, key,
2463 + // DOM attribute, CSS property, string ref, etc.) and when React tried to
2464 + // coerce it to a string using `'' + value`, an exception was thrown.
2465 + //
2466 + // The most common types that will cause this exception are `Symbol` instances
2467 + // and Temporal objects like `Temporal.Instant`. But any object that has a
2468 + // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
2469 + // exception. (Library authors do this to prevent users from using built-in
2470 + // numeric operators like `+` or comparison operators like `>=` because custom
2471 + // methods are needed to perform accurate arithmetic or comparison.)
2472 + //
2473 + // To fix the problem, coerce this object or symbol value to a string before
2474 + // passing it to React. The most reliable way is usually `String(value)`.
2475 + //
2476 + // To find which value is throwing, check the browser or debugger console.
2477 + // Before this exception was thrown, there should be `console.error` output
2478 + // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
2479 + // problem and how that type was used: key, atrribute, input value prop, etc.
2480 + // In most cases, this console output also shows the component and its
2481 + // ancestor components where the exception happened.
2482 + //
2483 + // eslint-disable-next-line react-internal/safe-string-coercion
2484 + return '' + value;
2485 +}
2486 +function checkKeyStringCoercion(value) {
2487 + {
2488 + if (willCoercionThrow(value)) {
2489 + error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
2490 +
2491 + return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
2492 + }
2493 + }
2494 +}
2495 +
2496 +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2497 +var RESERVED_PROPS = {
2498 + key: true,
2499 + ref: true,
2500 + __self: true,
2501 + __source: true
2502 +};
2503 +var specialPropKeyWarningShown;
2504 +var specialPropRefWarningShown;
2505 +var didWarnAboutStringRefs;
2506 +
2507 +{
2508 + didWarnAboutStringRefs = {};
2509 +}
2510 +
2511 +function hasValidRef(config) {
2512 + {
2513 + if (hasOwnProperty.call(config, 'ref')) {
2514 + var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
2515 +
2516 + if (getter && getter.isReactWarning) {
2517 + return false;
2518 + }
2519 + }
2520 + }
2521 +
2522 + return config.ref !== undefined;
2523 +}
2524 +
2525 +function hasValidKey(config) {
2526 + {
2527 + if (hasOwnProperty.call(config, 'key')) {
2528 + var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
2529 +
2530 + if (getter && getter.isReactWarning) {
2531 + return false;
2532 + }
2533 + }
2534 + }
2535 +
2536 + return config.key !== undefined;
2537 +}
2538 +
2539 +function warnIfStringRefCannotBeAutoConverted(config, self) {
2540 + {
2541 + if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2542 + var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2543 +
2544 + if (!didWarnAboutStringRefs[componentName]) {
2545 + error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
2546 +
2547 + didWarnAboutStringRefs[componentName] = true;
2548 + }
2549 + }
2550 + }
2551 +}
2552 +
2553 +function defineKeyPropWarningGetter(props, displayName) {
2554 + {
2555 + var warnAboutAccessingKey = function () {
2556 + if (!specialPropKeyWarningShown) {
2557 + specialPropKeyWarningShown = true;
2558 +
2559 + error('%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://reactjs.org/link/special-props)', displayName);
2560 + }
2561 + };
2562 +
2563 + warnAboutAccessingKey.isReactWarning = true;
2564 + Object.defineProperty(props, 'key', {
2565 + get: warnAboutAccessingKey,
2566 + configurable: true
2567 + });
2568 + }
2569 +}
2570 +
2571 +function defineRefPropWarningGetter(props, displayName) {
2572 + {
2573 + var warnAboutAccessingRef = function () {
2574 + if (!specialPropRefWarningShown) {
2575 + specialPropRefWarningShown = true;
2576 +
2577 + error('%s: `ref` 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://reactjs.org/link/special-props)', displayName);
2578 + }
2579 + };
2580 +
2581 + warnAboutAccessingRef.isReactWarning = true;
2582 + Object.defineProperty(props, 'ref', {
2583 + get: warnAboutAccessingRef,
2584 + configurable: true
2585 + });
2586 + }
2587 +}
2588 +/**
2589 + * Factory method to create a new React element. This no longer adheres to
2590 + * the class pattern, so do not use new to call it. Also, instanceof check
2591 + * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
2592 + * if something is a React Element.
2593 + *
2594 + * @param {*} type
2595 + * @param {*} props
2596 + * @param {*} key
2597 + * @param {string|object} ref
2598 + * @param {*} owner
2599 + * @param {*} self A *temporary* helper to detect places where `this` is
2600 + * different from the `owner` when React.createElement is called, so that we
2601 + * can warn. We want to get rid of owner and replace string `ref`s with arrow
2602 + * functions, and as long as `this` and owner are the same, there will be no
2603 + * change in behavior.
2604 + * @param {*} source An annotation object (added by a transpiler or otherwise)
2605 + * indicating filename, line number, and/or other information.
2606 + * @internal
2607 + */
2608 +
2609 +
2610 +var ReactElement = function (type, key, ref, self, source, owner, props) {
2611 + var element = {
2612 + // This tag allows us to uniquely identify this as a React Element
2613 + $$typeof: REACT_ELEMENT_TYPE,
2614 + // Built-in properties that belong on the element
2615 + type: type,
2616 + key: key,
2617 + ref: ref,
2618 + props: props,
2619 + // Record the component responsible for creating this element.
2620 + _owner: owner
2621 + };
2622 +
2623 + {
2624 + // The validation flag is currently mutative. We put it on
2625 + // an external backing store so that we can freeze the whole object.
2626 + // This can be replaced with a WeakMap once they are implemented in
2627 + // commonly used development environments.
2628 + element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
2629 + // the validation flag non-enumerable (where possible, which should
2630 + // include every environment we run tests in), so the test framework
2631 + // ignores it.
2632 +
2633 + Object.defineProperty(element._store, 'validated', {
2634 + configurable: false,
2635 + enumerable: false,
2636 + writable: true,
2637 + value: false
2638 + }); // self and source are DEV only properties.
2639 +
2640 + Object.defineProperty(element, '_self', {
2641 + configurable: false,
2642 + enumerable: false,
2643 + writable: false,
2644 + value: self
2645 + }); // Two elements created in two different places should be considered
2646 + // equal for testing purposes and therefore we hide it from enumeration.
2647 +
2648 + Object.defineProperty(element, '_source', {
2649 + configurable: false,
2650 + enumerable: false,
2651 + writable: false,
2652 + value: source
2653 + });
2654 +
2655 + if (Object.freeze) {
2656 + Object.freeze(element.props);
2657 + Object.freeze(element);
2658 + }
2659 + }
2660 +
2661 + return element;
2662 +};
2663 +/**
2664 + * https://github.com/reactjs/rfcs/pull/107
2665 + * @param {*} type
2666 + * @param {object} props
2667 + * @param {string} key
2668 + */
2669 +
2670 +function jsxDEV(type, config, maybeKey, source, self) {
2671 + {
2672 + var propName; // Reserved names are extracted
2673 +
2674 + var props = {};
2675 + var key = null;
2676 + var ref = null; // Currently, key can be spread in as a prop. This causes a potential
2677 + // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
2678 + // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
2679 + // but as an intermediary step, we will use jsxDEV for everything except
2680 + // <div {...props} key="Hi" />, because we aren't currently able to tell if
2681 + // key is explicitly declared to be undefined or not.
2682 +
2683 + if (maybeKey !== undefined) {
2684 + {
2685 + checkKeyStringCoercion(maybeKey);
2686 + }
2687 +
2688 + key = '' + maybeKey;
2689 + }
2690 +
2691 + if (hasValidKey(config)) {
2692 + {
2693 + checkKeyStringCoercion(config.key);
2694 + }
2695 +
2696 + key = '' + config.key;
2697 + }
2698 +
2699 + if (hasValidRef(config)) {
2700 + ref = config.ref;
2701 + warnIfStringRefCannotBeAutoConverted(config, self);
2702 + } // Remaining properties are added to a new props object
2703 +
2704 +
2705 + for (propName in config) {
2706 + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2707 + props[propName] = config[propName];
2708 + }
2709 + } // Resolve default props
2710 +
2711 +
2712 + if (type && type.defaultProps) {
2713 + var defaultProps = type.defaultProps;
2714 +
2715 + for (propName in defaultProps) {
2716 + if (props[propName] === undefined) {
2717 + props[propName] = defaultProps[propName];
2718 + }
2719 + }
2720 + }
2721 +
2722 + if (key || ref) {
2723 + var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
2724 +
2725 + if (key) {
2726 + defineKeyPropWarningGetter(props, displayName);
2727 + }
2728 +
2729 + if (ref) {
2730 + defineRefPropWarningGetter(props, displayName);
2731 + }
2732 + }
2733 +
2734 + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2735 + }
2736 +}
2737 +
2738 +var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2739 +var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2740 +
2741 +function setCurrentlyValidatingElement$1(element) {
2742 + {
2743 + if (element) {
2744 + var owner = element._owner;
2745 + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2746 + ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2747 + } else {
2748 + ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2749 + }
2750 + }
2751 +}
2752 +
2753 +var propTypesMisspellWarningShown;
2754 +
2755 +{
2756 + propTypesMisspellWarningShown = false;
2757 +}
2758 +/**
2759 + * Verifies the object is a ReactElement.
2760 + * See https://reactjs.org/docs/react-api.html#isvalidelement
2761 + * @param {?object} object
2762 + * @return {boolean} True if `object` is a ReactElement.
2763 + * @final
2764 + */
2765 +
2766 +
2767 +function isValidElement(object) {
2768 + {
2769 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2770 + }
2771 +}
2772 +
2773 +function getDeclarationErrorAddendum() {
2774 + {
2775 + if (ReactCurrentOwner$1.current) {
2776 + var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2777 +
2778 + if (name) {
2779 + return '\n\nCheck the render method of `' + name + '`.';
2780 + }
2781 + }
2782 +
2783 + return '';
2784 + }
2785 +}
2786 +
2787 +function getSourceInfoErrorAddendum(source) {
2788 + {
2789 + if (source !== undefined) {
2790 + var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2791 + var lineNumber = source.lineNumber;
2792 + return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2793 + }
2794 +
2795 + return '';
2796 + }
2797 +}
2798 +/**
2799 + * Warn if there's no key explicitly set on dynamic arrays of children or
2800 + * object keys are not valid. This allows us to keep track of children between
2801 + * updates.
2802 + */
2803 +
2804 +
2805 +var ownerHasKeyUseWarning = {};
2806 +
2807 +function getCurrentComponentErrorInfo(parentType) {
2808 + {
2809 + var info = getDeclarationErrorAddendum();
2810 +
2811 + if (!info) {
2812 + var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
2813 +
2814 + if (parentName) {
2815 + info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2816 + }
2817 + }
2818 +
2819 + return info;
2820 + }
2821 +}
2822 +/**
2823 + * Warn if the element doesn't have an explicit key assigned to it.
2824 + * This element is in an array. The array could grow and shrink or be
2825 + * reordered. All children that haven't already been validated are required to
2826 + * have a "key" property assigned to it. Error statuses are cached so a warning
2827 + * will only be shown once.
2828 + *
2829 + * @internal
2830 + * @param {ReactElement} element Element that requires a key.
2831 + * @param {*} parentType element's parent's type.
2832 + */
2833 +
2834 +
2835 +function validateExplicitKey(element, parentType) {
2836 + {
2837 + if (!element._store || element._store.validated || element.key != null) {
2838 + return;
2839 + }
2840 +
2841 + element._store.validated = true;
2842 + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2843 +
2844 + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2845 + return;
2846 + }
2847 +
2848 + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
2849 + // property, it may be the creator of the child that's responsible for
2850 + // assigning it a key.
2851 +
2852 + var childOwner = '';
2853 +
2854 + if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2855 + // Give the component that originally created this child.
2856 + childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2857 + }
2858 +
2859 + setCurrentlyValidatingElement$1(element);
2860 +
2861 + error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2862 +
2863 + setCurrentlyValidatingElement$1(null);
2864 + }
2865 +}
2866 +/**
2867 + * Ensure that every element either is passed in a static location, in an
2868 + * array with an explicit keys property defined, or in an object literal
2869 + * with valid key property.
2870 + *
2871 + * @internal
2872 + * @param {ReactNode} node Statically passed child of any type.
2873 + * @param {*} parentType node's parent's type.
2874 + */
2875 +
2876 +
2877 +function validateChildKeys(node, parentType) {
2878 + {
2879 + if (typeof node !== 'object') {
2880 + return;
2881 + }
2882 +
2883 + if (isArray(node)) {
2884 + for (var i = 0; i < node.length; i++) {
2885 + var child = node[i];
2886 +
2887 + if (isValidElement(child)) {
2888 + validateExplicitKey(child, parentType);
2889 + }
2890 + }
2891 + } else if (isValidElement(node)) {
2892 + // This element was passed in a valid location.
2893 + if (node._store) {
2894 + node._store.validated = true;
2895 + }
2896 + } else if (node) {
2897 + var iteratorFn = getIteratorFn(node);
2898 +
2899 + if (typeof iteratorFn === 'function') {
2900 + // Entry iterators used to provide implicit keys,
2901 + // but now we print a separate warning for them later.
2902 + if (iteratorFn !== node.entries) {
2903 + var iterator = iteratorFn.call(node);
2904 + var step;
2905 +
2906 + while (!(step = iterator.next()).done) {
2907 + if (isValidElement(step.value)) {
2908 + validateExplicitKey(step.value, parentType);
2909 + }
2910 + }
2911 + }
2912 + }
2913 + }
2914 + }
2915 +}
2916 +/**
2917 + * Given an element, validate that its props follow the propTypes definition,
2918 + * provided by the type.
2919 + *
2920 + * @param {ReactElement} element
2921 + */
2922 +
2923 +
2924 +function validatePropTypes(element) {
2925 + {
2926 + var type = element.type;
2927 +
2928 + if (type === null || type === undefined || typeof type === 'string') {
2929 + return;
2930 + }
2931 +
2932 + var propTypes;
2933 +
2934 + if (typeof type === 'function') {
2935 + propTypes = type.propTypes;
2936 + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2937 + // Inner props are checked in the reconciler.
2938 + type.$$typeof === REACT_MEMO_TYPE)) {
2939 + propTypes = type.propTypes;
2940 + } else {
2941 + return;
2942 + }
2943 +
2944 + if (propTypes) {
2945 + // Intentionally inside to avoid triggering lazy initializers:
2946 + var name = getComponentNameFromType(type);
2947 + checkPropTypes(propTypes, element.props, 'prop', name, element);
2948 + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
2949 + propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
2950 +
2951 + var _name = getComponentNameFromType(type);
2952 +
2953 + error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
2954 + }
2955 +
2956 + if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2957 + error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2958 + }
2959 + }
2960 +}
2961 +/**
2962 + * Given a fragment, validate that it can only be provided with fragment props
2963 + * @param {ReactElement} fragment
2964 + */
2965 +
2966 +
2967 +function validateFragmentProps(fragment) {
2968 + {
2969 + var keys = Object.keys(fragment.props);
2970 +
2971 + for (var i = 0; i < keys.length; i++) {
2972 + var key = keys[i];
2973 +
2974 + if (key !== 'children' && key !== 'key') {
2975 + setCurrentlyValidatingElement$1(fragment);
2976 +
2977 + error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2978 +
2979 + setCurrentlyValidatingElement$1(null);
2980 + break;
2981 + }
2982 + }
2983 +
2984 + if (fragment.ref !== null) {
2985 + setCurrentlyValidatingElement$1(fragment);
2986 +
2987 + error('Invalid attribute `ref` supplied to `React.Fragment`.');
2988 +
2989 + setCurrentlyValidatingElement$1(null);
2990 + }
2991 + }
2992 +}
2993 +
2994 +var didWarnAboutKeySpread = {};
2995 +function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
2996 + {
2997 + var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2998 + // succeed and there will likely be errors in render.
2999 +
3000 + if (!validType) {
3001 + var info = '';
3002 +
3003 + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
3004 + info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
3005 + }
3006 +
3007 + var sourceInfo = getSourceInfoErrorAddendum(source);
3008 +
3009 + if (sourceInfo) {
3010 + info += sourceInfo;
3011 + } else {
3012 + info += getDeclarationErrorAddendum();
3013 + }
3014 +
3015 + var typeString;
3016 +
3017 + if (type === null) {
3018 + typeString = 'null';
3019 + } else if (isArray(type)) {
3020 + typeString = 'array';
3021 + } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
3022 + typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
3023 + info = ' Did you accidentally export a JSX literal instead of a component?';
3024 + } else {
3025 + typeString = typeof type;
3026 + }
3027 +
3028 + error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
3029 + }
3030 +
3031 + var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
3032 + // TODO: Drop this when these are no longer allowed as the type argument.
3033 +
3034 + if (element == null) {
3035 + return element;
3036 + } // Skip key warning if the type isn't valid since our key validation logic
3037 + // doesn't expect a non-string/function type and can throw confusing errors.
3038 + // We don't want exception behavior to differ between dev and prod.
3039 + // (Rendering will throw with a helpful message and as soon as the type is
3040 + // fixed, the key warnings will appear.)
3041 +
3042 +
3043 + if (validType) {
3044 + var children = props.children;
3045 +
3046 + if (children !== undefined) {
3047 + if (isStaticChildren) {
3048 + if (isArray(children)) {
3049 + for (var i = 0; i < children.length; i++) {
3050 + validateChildKeys(children[i], type);
3051 + }
3052 +
3053 + if (Object.freeze) {
3054 + Object.freeze(children);
3055 + }
3056 + } else {
3057 + error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
3058 + }
3059 + } else {
3060 + validateChildKeys(children, type);
3061 + }
3062 + }
3063 + }
3064 +
3065 + {
3066 + if (hasOwnProperty.call(props, 'key')) {
3067 + var componentName = getComponentNameFromType(type);
3068 + var keys = Object.keys(props).filter(function (k) {
3069 + return k !== 'key';
3070 + });
3071 + var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
3072 +
3073 + if (!didWarnAboutKeySpread[componentName + beforeExample]) {
3074 + var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
3075 +
3076 + error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
3077 +
3078 + didWarnAboutKeySpread[componentName + beforeExample] = true;
3079 + }
3080 + }
3081 + }
3082 +
3083 + if (type === REACT_FRAGMENT_TYPE) {
3084 + validateFragmentProps(element);
3085 + } else {
3086 + validatePropTypes(element);
3087 + }
3088 +
3089 + return element;
3090 + }
3091 +} // These two functions exist to still get child warnings in dev
3092 +// even with the prod transform. This means that jsxDEV is purely
3093 +// opt-in behavior for better messages but that we won't stop
3094 +// giving you warnings if you use production apis.
3095 +
3096 +function jsxWithValidationStatic(type, props, key) {
3097 + {
3098 + return jsxWithValidation(type, props, key, true);
3099 + }
3100 +}
3101 +function jsxWithValidationDynamic(type, props, key) {
3102 + {
3103 + return jsxWithValidation(type, props, key, false);
3104 + }
3105 +}
3106 +
3107 +var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
3108 +// for now we can ship identical prod functions
3109 +
3110 +var jsxs = jsxWithValidationStatic ;
3111 +
3112 +exports.Fragment = REACT_FRAGMENT_TYPE;
3113 +exports.jsx = jsx;
3114 +exports.jsxs = jsxs;
3115 + })();
3116 +}
3117 +
3118 +
3119 +/***/ }),
3120 +
3121 +/***/ "../node_modules/react/jsx-runtime.js":
3122 +/*!********************************************!*\
3123 + !*** ../node_modules/react/jsx-runtime.js ***!
3124 + \********************************************/
3125 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3126 +
3127 +"use strict";
3128 +
3129 +
3130 +if (false) {} else {
3131 + module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "../node_modules/react/cjs/react-jsx-runtime.development.js");
3132 +}
3133 +
3134 +
3135 +/***/ }),
3136 +
3137 +/***/ "react":
3138 +/*!************************!*\
3139 + !*** external "React" ***!
3140 + \************************/
3141 +/***/ ((module) => {
3142 +
3143 +"use strict";
3144 +module.exports = React;
3145 +
3146 +/***/ }),
3147 +
3148 +/***/ "@elementor/ui":
3149 +/*!*********************************!*\
3150 + !*** external "elementorV2.ui" ***!
3151 + \*********************************/
3152 +/***/ ((module) => {
3153 +
3154 +"use strict";
3155 +module.exports = elementorV2.ui;
3156 +
3157 +/***/ }),
3158 +
3159 +/***/ "@wordpress/i18n":
3160 +/*!**************************!*\
3161 + !*** external "wp.i18n" ***!
3162 + \**************************/
3163 +/***/ ((module) => {
3164 +
3165 +"use strict";
3166 +module.exports = wp.i18n;
3167 +
3168 +/***/ }),
3169 +
3170 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
3171 +/*!******************************************************************!*\
3172 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
3173 + \******************************************************************/
3174 +/***/ ((module) => {
3175 +
3176 +function _arrayLikeToArray(arr, len) {
3177 + if (len == null || len > arr.length) len = arr.length;
3178 + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
3179 + return arr2;
3180 +}
3181 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3182 +
3183 +/***/ }),
3184 +
3185 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
3186 +/*!****************************************************************!*\
3187 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
3188 + \****************************************************************/
3189 +/***/ ((module) => {
3190 +
3191 +function _arrayWithHoles(arr) {
3192 + if (Array.isArray(arr)) return arr;
3193 +}
3194 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
3195 +
3196 +/***/ }),
3197 +
3198 +/***/ "../node_modules/@babel/runtime/helpers/extends.js":
3199 +/*!*********************************************************!*\
3200 + !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
3201 + \*********************************************************/
3202 +/***/ ((module) => {
3203 +
3204 +function _extends() {
3205 + module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
3206 + for (var i = 1; i < arguments.length; i++) {
3207 + var source = arguments[i];
3208 + for (var key in source) {
3209 + if (Object.prototype.hasOwnProperty.call(source, key)) {
3210 + target[key] = source[key];
3211 + }
3212 + }
3213 + }
3214 + return target;
3215 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
3216 + return _extends.apply(this, arguments);
3217 +}
3218 +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
3219 +
3220 +/***/ }),
3221 +
3222 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
3223 +/*!***********************************************************************!*\
3224 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
3225 + \***********************************************************************/
3226 +/***/ ((module) => {
3227 +
3228 +function _interopRequireDefault(obj) {
3229 + return obj && obj.__esModule ? obj : {
3230 + "default": obj
3231 + };
3232 +}
3233 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
3234 +
3235 +/***/ }),
3236 +
3237 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
3238 +/*!**********************************************************************!*\
3239 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
3240 + \**********************************************************************/
3241 +/***/ ((module) => {
3242 +
3243 +function _iterableToArrayLimit(r, l) {
3244 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3245 + if (null != t) {
3246 + var e,
3247 + n,
3248 + i,
3249 + u,
3250 + a = [],
3251 + f = !0,
3252 + o = !1;
3253 + try {
3254 + if (i = (t = t.call(r)).next, 0 === l) {
3255 + if (Object(t) !== t) return;
3256 + f = !1;
3257 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
3258 + } catch (r) {
3259 + o = !0, n = r;
3260 + } finally {
3261 + try {
3262 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
3263 + } finally {
3264 + if (o) throw n;
3265 + }
3266 + }
3267 + return a;
3268 + }
3269 +}
3270 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
3271 +
3272 +/***/ }),
3273 +
3274 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
3275 +/*!*****************************************************************!*\
3276 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
3277 + \*****************************************************************/
3278 +/***/ ((module) => {
3279 +
3280 +function _nonIterableRest() {
3281 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3282 +}
3283 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
3284 +
3285 +/***/ }),
3286 +
3287 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
3288 +/*!***************************************************************!*\
3289 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
3290 + \***************************************************************/
3291 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3292 +
3293 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
3294 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
3295 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
3296 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
3297 +function _slicedToArray(arr, i) {
3298 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
3299 +}
3300 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3301 +
3302 +/***/ }),
3303 +
3304 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
3305 +/*!********************************************************!*\
3306 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
3307 + \********************************************************/
3308 +/***/ ((module) => {
3309 +
3310 +function _typeof(o) {
3311 + "@babel/helpers - typeof";
3312 +
3313 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
3314 + return typeof o;
3315 + } : function (o) {
3316 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
3317 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
3318 +}
3319 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
3320 +
3321 +/***/ }),
3322 +
3323 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
3324 +/*!****************************************************************************!*\
3325 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
3326 + \****************************************************************************/
3327 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3328 +
3329 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
3330 +function _unsupportedIterableToArray(o, minLen) {
3331 + if (!o) return;
3332 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
3333 + var n = Object.prototype.toString.call(o).slice(8, -1);
3334 + if (n === "Object" && o.constructor) n = o.constructor.name;
3335 + if (n === "Map" || n === "Set") return Array.from(o);
3336 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
3337 +}
3338 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3339 +
3340 +/***/ }),
3341 +
3342 +/***/ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs":
3343 +/*!**************************************************************************!*\
3344 + !*** ../node_modules/@tanstack/query-core/build/modern/focusManager.cjs ***!
3345 + \**************************************************************************/
3346 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3347 +
3348 +"use strict";
3349 +
3350 +var __defProp = Object.defineProperty;
3351 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3352 +var __getOwnPropNames = Object.getOwnPropertyNames;
3353 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3354 +var __export = (target, all) => {
3355 + for (var name in all)
3356 + __defProp(target, name, { get: all[name], enumerable: true });
3357 +};
3358 +var __copyProps = (to, from, except, desc) => {
3359 + if (from && typeof from === "object" || typeof from === "function") {
3360 + for (let key of __getOwnPropNames(from))
3361 + if (!__hasOwnProp.call(to, key) && key !== except)
3362 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3363 + }
3364 + return to;
3365 +};
3366 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3367 +
3368 +// src/focusManager.ts
3369 +var focusManager_exports = {};
3370 +__export(focusManager_exports, {
3371 + FocusManager: () => FocusManager,
3372 + focusManager: () => focusManager
3373 +});
3374 +module.exports = __toCommonJS(focusManager_exports);
3375 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3376 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3377 +var FocusManager = class extends import_subscribable.Subscribable {
3378 + #focused;
3379 + #cleanup;
3380 + #setup;
3381 + constructor() {
3382 + super();
3383 + this.#setup = (onFocus) => {
3384 + if (!import_utils.isServer && window.addEventListener) {
3385 + const listener = () => onFocus();
3386 + window.addEventListener("visibilitychange", listener, false);
3387 + return () => {
3388 + window.removeEventListener("visibilitychange", listener);
3389 + };
3390 + }
3391 + return;
3392 + };
3393 + }
3394 + onSubscribe() {
3395 + if (!this.#cleanup) {
3396 + this.setEventListener(this.#setup);
3397 + }
3398 + }
3399 + onUnsubscribe() {
3400 + if (!this.hasListeners()) {
3401 + this.#cleanup?.();
3402 + this.#cleanup = void 0;
3403 + }
3404 + }
3405 + setEventListener(setup) {
3406 + this.#setup = setup;
3407 + this.#cleanup?.();
3408 + this.#cleanup = setup((focused) => {
3409 + if (typeof focused === "boolean") {
3410 + this.setFocused(focused);
3411 + } else {
3412 + this.onFocus();
3413 + }
3414 + });
3415 + }
3416 + setFocused(focused) {
3417 + const changed = this.#focused !== focused;
3418 + if (changed) {
3419 + this.#focused = focused;
3420 + this.onFocus();
3421 + }
3422 + }
3423 + onFocus() {
3424 + const isFocused = this.isFocused();
3425 + this.listeners.forEach((listener) => {
3426 + listener(isFocused);
3427 + });
3428 + }
3429 + isFocused() {
3430 + if (typeof this.#focused === "boolean") {
3431 + return this.#focused;
3432 + }
3433 + return globalThis.document?.visibilityState !== "hidden";
3434 + }
3435 +};
3436 +var focusManager = new FocusManager();
3437 +// Annotate the CommonJS export names for ESM import in node:
3438 +0 && (0);
3439 +//# sourceMappingURL=focusManager.cjs.map
3440 +
3441 +/***/ }),
3442 +
3443 +/***/ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs":
3444 +/*!***********************************************************************!*\
3445 + !*** ../node_modules/@tanstack/query-core/build/modern/hydration.cjs ***!
3446 + \***********************************************************************/
3447 +/***/ ((module) => {
3448 +
3449 +"use strict";
3450 +
3451 +var __defProp = Object.defineProperty;
3452 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3453 +var __getOwnPropNames = Object.getOwnPropertyNames;
3454 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3455 +var __export = (target, all) => {
3456 + for (var name in all)
3457 + __defProp(target, name, { get: all[name], enumerable: true });
3458 +};
3459 +var __copyProps = (to, from, except, desc) => {
3460 + if (from && typeof from === "object" || typeof from === "function") {
3461 + for (let key of __getOwnPropNames(from))
3462 + if (!__hasOwnProp.call(to, key) && key !== except)
3463 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3464 + }
3465 + return to;
3466 +};
3467 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3468 +
3469 +// src/hydration.ts
3470 +var hydration_exports = {};
3471 +__export(hydration_exports, {
3472 + defaultShouldDehydrateMutation: () => defaultShouldDehydrateMutation,
3473 + defaultShouldDehydrateQuery: () => defaultShouldDehydrateQuery,
3474 + dehydrate: () => dehydrate,
3475 + hydrate: () => hydrate
3476 +});
3477 +module.exports = __toCommonJS(hydration_exports);
3478 +function defaultTransformerFn(data) {
3479 + return data;
3480 +}
3481 +function dehydrateMutation(mutation) {
3482 + return {
3483 + mutationKey: mutation.options.mutationKey,
3484 + state: mutation.state,
3485 + ...mutation.options.scope && { scope: mutation.options.scope },
3486 + ...mutation.meta && { meta: mutation.meta }
3487 + };
3488 +}
3489 +function dehydrateQuery(query, serializeData) {
3490 + return {
3491 + state: {
3492 + ...query.state,
3493 + ...query.state.data !== void 0 && {
3494 + data: serializeData(query.state.data)
3495 + }
3496 + },
3497 + queryKey: query.queryKey,
3498 + queryHash: query.queryHash,
3499 + ...query.state.status === "pending" && {
3500 + promise: query.promise?.then(serializeData).catch((error) => {
3501 + if (true) {
3502 + console.error(
3503 + `A query that was dehydrated as pending ended up rejecting. [${query.queryHash}]: ${error}; The error will be redacted in production builds`
3504 + );
3505 + }
3506 + return Promise.reject(new Error("redacted"));
3507 + })
3508 + },
3509 + ...query.meta && { meta: query.meta }
3510 + };
3511 +}
3512 +function defaultShouldDehydrateMutation(mutation) {
3513 + return mutation.state.isPaused;
3514 +}
3515 +function defaultShouldDehydrateQuery(query) {
3516 + return query.state.status === "success";
3517 +}
3518 +function dehydrate(client, options = {}) {
3519 + const filterMutation = options.shouldDehydrateMutation ?? client.getDefaultOptions().dehydrate?.shouldDehydrateMutation ?? defaultShouldDehydrateMutation;
3520 + const mutations = client.getMutationCache().getAll().flatMap(
3521 + (mutation) => filterMutation(mutation) ? [dehydrateMutation(mutation)] : []
3522 + );
3523 + const filterQuery = options.shouldDehydrateQuery ?? client.getDefaultOptions().dehydrate?.shouldDehydrateQuery ?? defaultShouldDehydrateQuery;
3524 + const serializeData = options.serializeData ?? client.getDefaultOptions().dehydrate?.serializeData ?? defaultTransformerFn;
3525 + const queries = client.getQueryCache().getAll().flatMap(
3526 + (query) => filterQuery(query) ? [dehydrateQuery(query, serializeData)] : []
3527 + );
3528 + return { mutations, queries };
3529 +}
3530 +function hydrate(client, dehydratedState, options) {
3531 + if (typeof dehydratedState !== "object" || dehydratedState === null) {
3532 + return;
3533 + }
3534 + const mutationCache = client.getMutationCache();
3535 + const queryCache = client.getQueryCache();
3536 + const deserializeData = options?.defaultOptions?.deserializeData ?? client.getDefaultOptions().hydrate?.deserializeData ?? defaultTransformerFn;
3537 + const mutations = dehydratedState.mutations || [];
3538 + const queries = dehydratedState.queries || [];
3539 + mutations.forEach(({ state, ...mutationOptions }) => {
3540 + mutationCache.build(
3541 + client,
3542 + {
3543 + ...client.getDefaultOptions().hydrate?.mutations,
3544 + ...options?.defaultOptions?.mutations,
3545 + ...mutationOptions
3546 + },
3547 + state
3548 + );
3549 + });
3550 + queries.forEach(({ queryKey, state, queryHash, meta, promise }) => {
3551 + let query = queryCache.get(queryHash);
3552 + const data = state.data === void 0 ? state.data : deserializeData(state.data);
3553 + if (query) {
3554 + if (query.state.dataUpdatedAt < state.dataUpdatedAt) {
3555 + const { fetchStatus: _ignored, ...serializedState } = state;
3556 + query.setState({
3557 + ...serializedState,
3558 + data
3559 + });
3560 + }
3561 + } else {
3562 + query = queryCache.build(
3563 + client,
3564 + {
3565 + ...client.getDefaultOptions().hydrate?.queries,
3566 + ...options?.defaultOptions?.queries,
3567 + queryKey,
3568 + queryHash,
3569 + meta
3570 + },
3571 + // Reset fetch status to idle to avoid
3572 + // query being stuck in fetching state upon hydration
3573 + {
3574 + ...state,
3575 + data,
3576 + fetchStatus: "idle"
3577 + }
3578 + );
3579 + }
3580 + if (promise) {
3581 + const initialPromise = Promise.resolve(promise).then(deserializeData);
3582 + void query.fetch(void 0, { initialPromise });
3583 + }
3584 + });
3585 +}
3586 +// Annotate the CommonJS export names for ESM import in node:
3587 +0 && (0);
3588 +//# sourceMappingURL=hydration.cjs.map
3589 +
3590 +/***/ }),
3591 +
3592 +/***/ "../node_modules/@tanstack/query-core/build/modern/index.cjs":
3593 +/*!*******************************************************************!*\
3594 + !*** ../node_modules/@tanstack/query-core/build/modern/index.cjs ***!
3595 + \*******************************************************************/
3596 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3597 +
3598 +"use strict";
3599 +
3600 +var __defProp = Object.defineProperty;
3601 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3602 +var __getOwnPropNames = Object.getOwnPropertyNames;
3603 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3604 +var __export = (target, all) => {
3605 + for (var name in all)
3606 + __defProp(target, name, { get: all[name], enumerable: true });
3607 +};
3608 +var __copyProps = (to, from, except, desc) => {
3609 + if (from && typeof from === "object" || typeof from === "function") {
3610 + for (let key of __getOwnPropNames(from))
3611 + if (!__hasOwnProp.call(to, key) && key !== except)
3612 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3613 + }
3614 + return to;
3615 +};
3616 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
3617 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3618 +
3619 +// src/index.ts
3620 +var src_exports = {};
3621 +__export(src_exports, {
3622 + CancelledError: () => import_retryer.CancelledError,
3623 + InfiniteQueryObserver: () => import_infiniteQueryObserver.InfiniteQueryObserver,
3624 + MutationCache: () => import_mutationCache.MutationCache,
3625 + MutationObserver: () => import_mutationObserver.MutationObserver,
3626 + QueriesObserver: () => import_queriesObserver.QueriesObserver,
3627 + Query: () => import_query.Query,
3628 + QueryCache: () => import_queryCache.QueryCache,
3629 + QueryClient: () => import_queryClient.QueryClient,
3630 + QueryObserver: () => import_queryObserver.QueryObserver,
3631 + defaultShouldDehydrateMutation: () => import_hydration.defaultShouldDehydrateMutation,
3632 + defaultShouldDehydrateQuery: () => import_hydration.defaultShouldDehydrateQuery,
3633 + dehydrate: () => import_hydration.dehydrate,
3634 + focusManager: () => import_focusManager.focusManager,
3635 + hashKey: () => import_utils.hashKey,
3636 + hydrate: () => import_hydration.hydrate,
3637 + isCancelledError: () => import_retryer2.isCancelledError,
3638 + isServer: () => import_utils.isServer,
3639 + keepPreviousData: () => import_utils.keepPreviousData,
3640 + matchMutation: () => import_utils.matchMutation,
3641 + matchQuery: () => import_utils.matchQuery,
3642 + notifyManager: () => import_notifyManager.notifyManager,
3643 + onlineManager: () => import_onlineManager.onlineManager,
3644 + replaceEqualDeep: () => import_utils.replaceEqualDeep,
3645 + skipToken: () => import_utils.skipToken
3646 +});
3647 +module.exports = __toCommonJS(src_exports);
3648 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3649 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
3650 +var import_queryClient = __webpack_require__(/*! ./queryClient.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs");
3651 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
3652 +var import_queriesObserver = __webpack_require__(/*! ./queriesObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs");
3653 +var import_infiniteQueryObserver = __webpack_require__(/*! ./infiniteQueryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs");
3654 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
3655 +var import_mutationObserver = __webpack_require__(/*! ./mutationObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs");
3656 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3657 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
3658 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
3659 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3660 +var import_retryer2 = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3661 +var import_hydration = __webpack_require__(/*! ./hydration.cjs */ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs");
3662 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/query-core/build/modern/types.cjs"), module.exports);
3663 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
3664 +// Annotate the CommonJS export names for ESM import in node:
3665 +0 && (0);
3666 +//# sourceMappingURL=index.cjs.map
3667 +
3668 +/***/ }),
3669 +
3670 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs":
3671 +/*!***********************************************************************************!*\
3672 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs ***!
3673 + \***********************************************************************************/
3674 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3675 +
3676 +"use strict";
3677 +
3678 +var __defProp = Object.defineProperty;
3679 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3680 +var __getOwnPropNames = Object.getOwnPropertyNames;
3681 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3682 +var __export = (target, all) => {
3683 + for (var name in all)
3684 + __defProp(target, name, { get: all[name], enumerable: true });
3685 +};
3686 +var __copyProps = (to, from, except, desc) => {
3687 + if (from && typeof from === "object" || typeof from === "function") {
3688 + for (let key of __getOwnPropNames(from))
3689 + if (!__hasOwnProp.call(to, key) && key !== except)
3690 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3691 + }
3692 + return to;
3693 +};
3694 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3695 +
3696 +// src/infiniteQueryBehavior.ts
3697 +var infiniteQueryBehavior_exports = {};
3698 +__export(infiniteQueryBehavior_exports, {
3699 + hasNextPage: () => hasNextPage,
3700 + hasPreviousPage: () => hasPreviousPage,
3701 + infiniteQueryBehavior: () => infiniteQueryBehavior
3702 +});
3703 +module.exports = __toCommonJS(infiniteQueryBehavior_exports);
3704 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3705 +function infiniteQueryBehavior(pages) {
3706 + return {
3707 + onFetch: (context, query) => {
3708 + const fetchFn = async () => {
3709 + const options = context.options;
3710 + const direction = context.fetchOptions?.meta?.fetchMore?.direction;
3711 + const oldPages = context.state.data?.pages || [];
3712 + const oldPageParams = context.state.data?.pageParams || [];
3713 + const empty = { pages: [], pageParams: [] };
3714 + let cancelled = false;
3715 + const addSignalProperty = (object) => {
3716 + Object.defineProperty(object, "signal", {
3717 + enumerable: true,
3718 + get: () => {
3719 + if (context.signal.aborted) {
3720 + cancelled = true;
3721 + } else {
3722 + context.signal.addEventListener("abort", () => {
3723 + cancelled = true;
3724 + });
3725 + }
3726 + return context.signal;
3727 + }
3728 + });
3729 + };
3730 + const queryFn = (0, import_utils.ensureQueryFn)(context.options, context.fetchOptions);
3731 + const fetchPage = async (data, param, previous) => {
3732 + if (cancelled) {
3733 + return Promise.reject();
3734 + }
3735 + if (param == null && data.pages.length) {
3736 + return Promise.resolve(data);
3737 + }
3738 + const queryFnContext = {
3739 + queryKey: context.queryKey,
3740 + pageParam: param,
3741 + direction: previous ? "backward" : "forward",
3742 + meta: context.options.meta
3743 + };
3744 + addSignalProperty(queryFnContext);
3745 + const page = await queryFn(
3746 + queryFnContext
3747 + );
3748 + const { maxPages } = context.options;
3749 + const addTo = previous ? import_utils.addToStart : import_utils.addToEnd;
3750 + return {
3751 + pages: addTo(data.pages, page, maxPages),
3752 + pageParams: addTo(data.pageParams, param, maxPages)
3753 + };
3754 + };
3755 + let result;
3756 + if (direction && oldPages.length) {
3757 + const previous = direction === "backward";
3758 + const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
3759 + const oldData = {
3760 + pages: oldPages,
3761 + pageParams: oldPageParams
3762 + };
3763 + const param = pageParamFn(options, oldData);
3764 + result = await fetchPage(oldData, param, previous);
3765 + } else {
3766 + result = await fetchPage(
3767 + empty,
3768 + oldPageParams[0] ?? options.initialPageParam
3769 + );
3770 + const remainingPages = pages ?? oldPages.length;
3771 + for (let i = 1; i < remainingPages; i++) {
3772 + const param = getNextPageParam(options, result);
3773 + result = await fetchPage(result, param);
3774 + }
3775 + }
3776 + return result;
3777 + };
3778 + if (context.options.persister) {
3779 + context.fetchFn = () => {
3780 + return context.options.persister?.(
3781 + fetchFn,
3782 + {
3783 + queryKey: context.queryKey,
3784 + meta: context.options.meta,
3785 + signal: context.signal
3786 + },
3787 + query
3788 + );
3789 + };
3790 + } else {
3791 + context.fetchFn = fetchFn;
3792 + }
3793 + }
3794 + };
3795 +}
3796 +function getNextPageParam(options, { pages, pageParams }) {
3797 + const lastIndex = pages.length - 1;
3798 + return options.getNextPageParam(
3799 + pages[lastIndex],
3800 + pages,
3801 + pageParams[lastIndex],
3802 + pageParams
3803 + );
3804 +}
3805 +function getPreviousPageParam(options, { pages, pageParams }) {
3806 + return options.getPreviousPageParam?.(
3807 + pages[0],
3808 + pages,
3809 + pageParams[0],
3810 + pageParams
3811 + );
3812 +}
3813 +function hasNextPage(options, data) {
3814 + if (!data)
3815 + return false;
3816 + return getNextPageParam(options, data) != null;
3817 +}
3818 +function hasPreviousPage(options, data) {
3819 + if (!data || !options.getPreviousPageParam)
3820 + return false;
3821 + return getPreviousPageParam(options, data) != null;
3822 +}
3823 +// Annotate the CommonJS export names for ESM import in node:
3824 +0 && (0);
3825 +//# sourceMappingURL=infiniteQueryBehavior.cjs.map
3826 +
3827 +/***/ }),
3828 +
3829 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs":
3830 +/*!***********************************************************************************!*\
3831 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs ***!
3832 + \***********************************************************************************/
3833 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3834 +
3835 +"use strict";
3836 +
3837 +var __defProp = Object.defineProperty;
3838 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3839 +var __getOwnPropNames = Object.getOwnPropertyNames;
3840 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3841 +var __export = (target, all) => {
3842 + for (var name in all)
3843 + __defProp(target, name, { get: all[name], enumerable: true });
3844 +};
3845 +var __copyProps = (to, from, except, desc) => {
3846 + if (from && typeof from === "object" || typeof from === "function") {
3847 + for (let key of __getOwnPropNames(from))
3848 + if (!__hasOwnProp.call(to, key) && key !== except)
3849 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3850 + }
3851 + return to;
3852 +};
3853 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3854 +
3855 +// src/infiniteQueryObserver.ts
3856 +var infiniteQueryObserver_exports = {};
3857 +__export(infiniteQueryObserver_exports, {
3858 + InfiniteQueryObserver: () => InfiniteQueryObserver
3859 +});
3860 +module.exports = __toCommonJS(infiniteQueryObserver_exports);
3861 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
3862 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
3863 +var InfiniteQueryObserver = class extends import_queryObserver.QueryObserver {
3864 + constructor(client, options) {
3865 + super(client, options);
3866 + }
3867 + bindMethods() {
3868 + super.bindMethods();
3869 + this.fetchNextPage = this.fetchNextPage.bind(this);
3870 + this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
3871 + }
3872 + setOptions(options, notifyOptions) {
3873 + super.setOptions(
3874 + {
3875 + ...options,
3876 + behavior: (0, import_infiniteQueryBehavior.infiniteQueryBehavior)()
3877 + },
3878 + notifyOptions
3879 + );
3880 + }
3881 + getOptimisticResult(options) {
3882 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)();
3883 + return super.getOptimisticResult(options);
3884 + }
3885 + fetchNextPage(options) {
3886 + return this.fetch({
3887 + ...options,
3888 + meta: {
3889 + fetchMore: { direction: "forward" }
3890 + }
3891 + });
3892 + }
3893 + fetchPreviousPage(options) {
3894 + return this.fetch({
3895 + ...options,
3896 + meta: {
3897 + fetchMore: { direction: "backward" }
3898 + }
3899 + });
3900 + }
3901 + createResult(query, options) {
3902 + const { state } = query;
3903 + const parentResult = super.createResult(query, options);
3904 + const { isFetching, isRefetching, isError, isRefetchError } = parentResult;
3905 + const fetchDirection = state.fetchMeta?.fetchMore?.direction;
3906 + const isFetchNextPageError = isError && fetchDirection === "forward";
3907 + const isFetchingNextPage = isFetching && fetchDirection === "forward";
3908 + const isFetchPreviousPageError = isError && fetchDirection === "backward";
3909 + const isFetchingPreviousPage = isFetching && fetchDirection === "backward";
3910 + const result = {
3911 + ...parentResult,
3912 + fetchNextPage: this.fetchNextPage,
3913 + fetchPreviousPage: this.fetchPreviousPage,
3914 + hasNextPage: (0, import_infiniteQueryBehavior.hasNextPage)(options, state.data),
3915 + hasPreviousPage: (0, import_infiniteQueryBehavior.hasPreviousPage)(options, state.data),
3916 + isFetchNextPageError,
3917 + isFetchingNextPage,
3918 + isFetchPreviousPageError,
3919 + isFetchingPreviousPage,
3920 + isRefetchError: isRefetchError && !isFetchNextPageError && !isFetchPreviousPageError,
3921 + isRefetching: isRefetching && !isFetchingNextPage && !isFetchingPreviousPage
3922 + };
3923 + return result;
3924 + }
3925 +};
3926 +// Annotate the CommonJS export names for ESM import in node:
3927 +0 && (0);
3928 +//# sourceMappingURL=infiniteQueryObserver.cjs.map
3929 +
3930 +/***/ }),
3931 +
3932 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs":
3933 +/*!**********************************************************************!*\
3934 + !*** ../node_modules/@tanstack/query-core/build/modern/mutation.cjs ***!
3935 + \**********************************************************************/
3936 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3937 +
3938 +"use strict";
3939 +
3940 +var __defProp = Object.defineProperty;
3941 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3942 +var __getOwnPropNames = Object.getOwnPropertyNames;
3943 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3944 +var __export = (target, all) => {
3945 + for (var name in all)
3946 + __defProp(target, name, { get: all[name], enumerable: true });
3947 +};
3948 +var __copyProps = (to, from, except, desc) => {
3949 + if (from && typeof from === "object" || typeof from === "function") {
3950 + for (let key of __getOwnPropNames(from))
3951 + if (!__hasOwnProp.call(to, key) && key !== except)
3952 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3953 + }
3954 + return to;
3955 +};
3956 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3957 +
3958 +// src/mutation.ts
3959 +var mutation_exports = {};
3960 +__export(mutation_exports, {
3961 + Mutation: () => Mutation,
3962 + getDefaultState: () => getDefaultState
3963 +});
3964 +module.exports = __toCommonJS(mutation_exports);
3965 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3966 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
3967 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3968 +var Mutation = class extends import_removable.Removable {
3969 + #observers;
3970 + #mutationCache;
3971 + #retryer;
3972 + constructor(config) {
3973 + super();
3974 + this.mutationId = config.mutationId;
3975 + this.#mutationCache = config.mutationCache;
3976 + this.#observers = [];
3977 + this.state = config.state || getDefaultState();
3978 + this.setOptions(config.options);
3979 + this.scheduleGc();
3980 + }
3981 + setOptions(options) {
3982 + this.options = options;
3983 + this.updateGcTime(this.options.gcTime);
3984 + }
3985 + get meta() {
3986 + return this.options.meta;
3987 + }
3988 + addObserver(observer) {
3989 + if (!this.#observers.includes(observer)) {
3990 + this.#observers.push(observer);
3991 + this.clearGcTimeout();
3992 + this.#mutationCache.notify({
3993 + type: "observerAdded",
3994 + mutation: this,
3995 + observer
3996 + });
3997 + }
3998 + }
3999 + removeObserver(observer) {
4000 + this.#observers = this.#observers.filter((x) => x !== observer);
4001 + this.scheduleGc();
4002 + this.#mutationCache.notify({
4003 + type: "observerRemoved",
4004 + mutation: this,
4005 + observer
4006 + });
4007 + }
4008 + optionalRemove() {
4009 + if (!this.#observers.length) {
4010 + if (this.state.status === "pending") {
4011 + this.scheduleGc();
4012 + } else {
4013 + this.#mutationCache.remove(this);
4014 + }
4015 + }
4016 + }
4017 + continue() {
4018 + return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
4019 + this.execute(this.state.variables);
4020 + }
4021 + async execute(variables) {
4022 + this.#retryer = (0, import_retryer.createRetryer)({
4023 + fn: () => {
4024 + if (!this.options.mutationFn) {
4025 + return Promise.reject(new Error("No mutationFn found"));
4026 + }
4027 + return this.options.mutationFn(variables);
4028 + },
4029 + onFail: (failureCount, error) => {
4030 + this.#dispatch({ type: "failed", failureCount, error });
4031 + },
4032 + onPause: () => {
4033 + this.#dispatch({ type: "pause" });
4034 + },
4035 + onContinue: () => {
4036 + this.#dispatch({ type: "continue" });
4037 + },
4038 + retry: this.options.retry ?? 0,
4039 + retryDelay: this.options.retryDelay,
4040 + networkMode: this.options.networkMode,
4041 + canRun: () => this.#mutationCache.canRun(this)
4042 + });
4043 + const restored = this.state.status === "pending";
4044 + const isPaused = !this.#retryer.canStart();
4045 + try {
4046 + if (!restored) {
4047 + this.#dispatch({ type: "pending", variables, isPaused });
4048 + await this.#mutationCache.config.onMutate?.(
4049 + variables,
4050 + this
4051 + );
4052 + const context = await this.options.onMutate?.(variables);
4053 + if (context !== this.state.context) {
4054 + this.#dispatch({
4055 + type: "pending",
4056 + context,
4057 + variables,
4058 + isPaused
4059 + });
4060 + }
4061 + }
4062 + const data = await this.#retryer.start();
4063 + await this.#mutationCache.config.onSuccess?.(
4064 + data,
4065 + variables,
4066 + this.state.context,
4067 + this
4068 + );
4069 + await this.options.onSuccess?.(data, variables, this.state.context);
4070 + await this.#mutationCache.config.onSettled?.(
4071 + data,
4072 + null,
4073 + this.state.variables,
4074 + this.state.context,
4075 + this
4076 + );
4077 + await this.options.onSettled?.(data, null, variables, this.state.context);
4078 + this.#dispatch({ type: "success", data });
4079 + return data;
4080 + } catch (error) {
4081 + try {
4082 + await this.#mutationCache.config.onError?.(
4083 + error,
4084 + variables,
4085 + this.state.context,
4086 + this
4087 + );
4088 + await this.options.onError?.(
4089 + error,
4090 + variables,
4091 + this.state.context
4092 + );
4093 + await this.#mutationCache.config.onSettled?.(
4094 + void 0,
4095 + error,
4096 + this.state.variables,
4097 + this.state.context,
4098 + this
4099 + );
4100 + await this.options.onSettled?.(
4101 + void 0,
4102 + error,
4103 + variables,
4104 + this.state.context
4105 + );
4106 + throw error;
4107 + } finally {
4108 + this.#dispatch({ type: "error", error });
4109 + }
4110 + } finally {
4111 + this.#mutationCache.runNext(this);
4112 + }
4113 + }
4114 + #dispatch(action) {
4115 + const reducer = (state) => {
4116 + switch (action.type) {
4117 + case "failed":
4118 + return {
4119 + ...state,
4120 + failureCount: action.failureCount,
4121 + failureReason: action.error
4122 + };
4123 + case "pause":
4124 + return {
4125 + ...state,
4126 + isPaused: true
4127 + };
4128 + case "continue":
4129 + return {
4130 + ...state,
4131 + isPaused: false
4132 + };
4133 + case "pending":
4134 + return {
4135 + ...state,
4136 + context: action.context,
4137 + data: void 0,
4138 + failureCount: 0,
4139 + failureReason: null,
4140 + error: null,
4141 + isPaused: action.isPaused,
4142 + status: "pending",
4143 + variables: action.variables,
4144 + submittedAt: Date.now()
4145 + };
4146 + case "success":
4147 + return {
4148 + ...state,
4149 + data: action.data,
4150 + failureCount: 0,
4151 + failureReason: null,
4152 + error: null,
4153 + status: "success",
4154 + isPaused: false
4155 + };
4156 + case "error":
4157 + return {
4158 + ...state,
4159 + data: void 0,
4160 + error: action.error,
4161 + failureCount: state.failureCount + 1,
4162 + failureReason: action.error,
4163 + isPaused: false,
4164 + status: "error"
4165 + };
4166 + }
4167 + };
4168 + this.state = reducer(this.state);
4169 + import_notifyManager.notifyManager.batch(() => {
4170 + this.#observers.forEach((observer) => {
4171 + observer.onMutationUpdate(action);
4172 + });
4173 + this.#mutationCache.notify({
4174 + mutation: this,
4175 + type: "updated",
4176 + action
4177 + });
4178 + });
4179 + }
4180 +};
4181 +function getDefaultState() {
4182 + return {
4183 + context: void 0,
4184 + data: void 0,
4185 + error: null,
4186 + failureCount: 0,
4187 + failureReason: null,
4188 + isPaused: false,
4189 + status: "idle",
4190 + variables: void 0,
4191 + submittedAt: 0
4192 + };
4193 +}
4194 +// Annotate the CommonJS export names for ESM import in node:
4195 +0 && (0);
4196 +//# sourceMappingURL=mutation.cjs.map
4197 +
4198 +/***/ }),
4199 +
4200 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs":
4201 +/*!***************************************************************************!*\
4202 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs ***!
4203 + \***************************************************************************/
4204 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4205 +
4206 +"use strict";
4207 +
4208 +var __defProp = Object.defineProperty;
4209 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4210 +var __getOwnPropNames = Object.getOwnPropertyNames;
4211 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4212 +var __export = (target, all) => {
4213 + for (var name in all)
4214 + __defProp(target, name, { get: all[name], enumerable: true });
4215 +};
4216 +var __copyProps = (to, from, except, desc) => {
4217 + if (from && typeof from === "object" || typeof from === "function") {
4218 + for (let key of __getOwnPropNames(from))
4219 + if (!__hasOwnProp.call(to, key) && key !== except)
4220 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4221 + }
4222 + return to;
4223 +};
4224 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4225 +
4226 +// src/mutationCache.ts
4227 +var mutationCache_exports = {};
4228 +__export(mutationCache_exports, {
4229 + MutationCache: () => MutationCache
4230 +});
4231 +module.exports = __toCommonJS(mutationCache_exports);
4232 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4233 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
4234 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4235 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4236 +var MutationCache = class extends import_subscribable.Subscribable {
4237 + constructor(config = {}) {
4238 + super();
4239 + this.config = config;
4240 + this.#mutations = /* @__PURE__ */ new Map();
4241 + this.#mutationId = Date.now();
4242 + }
4243 + #mutations;
4244 + #mutationId;
4245 + build(client, options, state) {
4246 + const mutation = new import_mutation.Mutation({
4247 + mutationCache: this,
4248 + mutationId: ++this.#mutationId,
4249 + options: client.defaultMutationOptions(options),
4250 + state
4251 + });
4252 + this.add(mutation);
4253 + return mutation;
4254 + }
4255 + add(mutation) {
4256 + const scope = scopeFor(mutation);
4257 + const mutations = this.#mutations.get(scope) ?? [];
4258 + mutations.push(mutation);
4259 + this.#mutations.set(scope, mutations);
4260 + this.notify({ type: "added", mutation });
4261 + }
4262 + remove(mutation) {
4263 + const scope = scopeFor(mutation);
4264 + if (this.#mutations.has(scope)) {
4265 + const mutations = this.#mutations.get(scope)?.filter((x) => x !== mutation);
4266 + if (mutations) {
4267 + if (mutations.length === 0) {
4268 + this.#mutations.delete(scope);
4269 + } else {
4270 + this.#mutations.set(scope, mutations);
4271 + }
4272 + }
4273 + }
4274 + this.notify({ type: "removed", mutation });
4275 + }
4276 + canRun(mutation) {
4277 + const firstPendingMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m.state.status === "pending");
4278 + return !firstPendingMutation || firstPendingMutation === mutation;
4279 + }
4280 + runNext(mutation) {
4281 + const foundMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m !== mutation && m.state.isPaused);
4282 + return foundMutation?.continue() ?? Promise.resolve();
4283 + }
4284 + clear() {
4285 + import_notifyManager.notifyManager.batch(() => {
4286 + this.getAll().forEach((mutation) => {
4287 + this.remove(mutation);
4288 + });
4289 + });
4290 + }
4291 + getAll() {
4292 + return [...this.#mutations.values()].flat();
4293 + }
4294 + find(filters) {
4295 + const defaultedFilters = { exact: true, ...filters };
4296 + return this.getAll().find(
4297 + (mutation) => (0, import_utils.matchMutation)(defaultedFilters, mutation)
4298 + );
4299 + }
4300 + findAll(filters = {}) {
4301 + return this.getAll().filter((mutation) => (0, import_utils.matchMutation)(filters, mutation));
4302 + }
4303 + notify(event) {
4304 + import_notifyManager.notifyManager.batch(() => {
4305 + this.listeners.forEach((listener) => {
4306 + listener(event);
4307 + });
4308 + });
4309 + }
4310 + resumePausedMutations() {
4311 + const pausedMutations = this.getAll().filter((x) => x.state.isPaused);
4312 + return import_notifyManager.notifyManager.batch(
4313 + () => Promise.all(
4314 + pausedMutations.map((mutation) => mutation.continue().catch(import_utils.noop))
4315 + )
4316 + );
4317 + }
4318 +};
4319 +function scopeFor(mutation) {
4320 + return mutation.options.scope?.id ?? String(mutation.mutationId);
4321 +}
4322 +// Annotate the CommonJS export names for ESM import in node:
4323 +0 && (0);
4324 +//# sourceMappingURL=mutationCache.cjs.map
4325 +
4326 +/***/ }),
4327 +
4328 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs":
4329 +/*!******************************************************************************!*\
4330 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs ***!
4331 + \******************************************************************************/
4332 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4333 +
4334 +"use strict";
4335 +
4336 +var __defProp = Object.defineProperty;
4337 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4338 +var __getOwnPropNames = Object.getOwnPropertyNames;
4339 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4340 +var __export = (target, all) => {
4341 + for (var name in all)
4342 + __defProp(target, name, { get: all[name], enumerable: true });
4343 +};
4344 +var __copyProps = (to, from, except, desc) => {
4345 + if (from && typeof from === "object" || typeof from === "function") {
4346 + for (let key of __getOwnPropNames(from))
4347 + if (!__hasOwnProp.call(to, key) && key !== except)
4348 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4349 + }
4350 + return to;
4351 +};
4352 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4353 +
4354 +// src/mutationObserver.ts
4355 +var mutationObserver_exports = {};
4356 +__export(mutationObserver_exports, {
4357 + MutationObserver: () => MutationObserver
4358 +});
4359 +module.exports = __toCommonJS(mutationObserver_exports);
4360 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
4361 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4362 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4363 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4364 +var MutationObserver = class extends import_subscribable.Subscribable {
4365 + #client;
4366 + #currentResult = void 0;
4367 + #currentMutation;
4368 + #mutateOptions;
4369 + constructor(client, options) {
4370 + super();
4371 + this.#client = client;
4372 + this.setOptions(options);
4373 + this.bindMethods();
4374 + this.#updateResult();
4375 + }
4376 + bindMethods() {
4377 + this.mutate = this.mutate.bind(this);
4378 + this.reset = this.reset.bind(this);
4379 + }
4380 + setOptions(options) {
4381 + const prevOptions = this.options;
4382 + this.options = this.#client.defaultMutationOptions(options);
4383 + if (!(0, import_utils.shallowEqualObjects)(this.options, prevOptions)) {
4384 + this.#client.getMutationCache().notify({
4385 + type: "observerOptionsUpdated",
4386 + mutation: this.#currentMutation,
4387 + observer: this
4388 + });
4389 + }
4390 + if (prevOptions?.mutationKey && this.options.mutationKey && (0, import_utils.hashKey)(prevOptions.mutationKey) !== (0, import_utils.hashKey)(this.options.mutationKey)) {
4391 + this.reset();
4392 + } else if (this.#currentMutation?.state.status === "pending") {
4393 + this.#currentMutation.setOptions(this.options);
4394 + }
4395 + }
4396 + onUnsubscribe() {
4397 + if (!this.hasListeners()) {
4398 + this.#currentMutation?.removeObserver(this);
4399 + }
4400 + }
4401 + onMutationUpdate(action) {
4402 + this.#updateResult();
4403 + this.#notify(action);
4404 + }
4405 + getCurrentResult() {
4406 + return this.#currentResult;
4407 + }
4408 + reset() {
4409 + this.#currentMutation?.removeObserver(this);
4410 + this.#currentMutation = void 0;
4411 + this.#updateResult();
4412 + this.#notify();
4413 + }
4414 + mutate(variables, options) {
4415 + this.#mutateOptions = options;
4416 + this.#currentMutation?.removeObserver(this);
4417 + this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);
4418 + this.#currentMutation.addObserver(this);
4419 + return this.#currentMutation.execute(variables);
4420 + }
4421 + #updateResult() {
4422 + const state = this.#currentMutation?.state ?? (0, import_mutation.getDefaultState)();
4423 + this.#currentResult = {
4424 + ...state,
4425 + isPending: state.status === "pending",
4426 + isSuccess: state.status === "success",
4427 + isError: state.status === "error",
4428 + isIdle: state.status === "idle",
4429 + mutate: this.mutate,
4430 + reset: this.reset
4431 + };
4432 + }
4433 + #notify(action) {
4434 + import_notifyManager.notifyManager.batch(() => {
4435 + if (this.#mutateOptions && this.hasListeners()) {
4436 + const variables = this.#currentResult.variables;
4437 + const context = this.#currentResult.context;
4438 + if (action?.type === "success") {
4439 + this.#mutateOptions.onSuccess?.(action.data, variables, context);
4440 + this.#mutateOptions.onSettled?.(action.data, null, variables, context);
4441 + } else if (action?.type === "error") {
4442 + this.#mutateOptions.onError?.(action.error, variables, context);
4443 + this.#mutateOptions.onSettled?.(
4444 + void 0,
4445 + action.error,
4446 + variables,
4447 + context
4448 + );
4449 + }
4450 + }
4451 + this.listeners.forEach((listener) => {
4452 + listener(this.#currentResult);
4453 + });
4454 + });
4455 + }
4456 +};
4457 +// Annotate the CommonJS export names for ESM import in node:
4458 +0 && (0);
4459 +//# sourceMappingURL=mutationObserver.cjs.map
4460 +
4461 +/***/ }),
4462 +
4463 +/***/ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs":
4464 +/*!***************************************************************************!*\
4465 + !*** ../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs ***!
4466 + \***************************************************************************/
4467 +/***/ ((module) => {
4468 +
4469 +"use strict";
4470 +
4471 +var __defProp = Object.defineProperty;
4472 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4473 +var __getOwnPropNames = Object.getOwnPropertyNames;
4474 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4475 +var __export = (target, all) => {
4476 + for (var name in all)
4477 + __defProp(target, name, { get: all[name], enumerable: true });
4478 +};
4479 +var __copyProps = (to, from, except, desc) => {
4480 + if (from && typeof from === "object" || typeof from === "function") {
4481 + for (let key of __getOwnPropNames(from))
4482 + if (!__hasOwnProp.call(to, key) && key !== except)
4483 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4484 + }
4485 + return to;
4486 +};
4487 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4488 +
4489 +// src/notifyManager.ts
4490 +var notifyManager_exports = {};
4491 +__export(notifyManager_exports, {
4492 + createNotifyManager: () => createNotifyManager,
4493 + notifyManager: () => notifyManager
4494 +});
4495 +module.exports = __toCommonJS(notifyManager_exports);
4496 +function createNotifyManager() {
4497 + let queue = [];
4498 + let transactions = 0;
4499 + let notifyFn = (callback) => {
4500 + callback();
4501 + };
4502 + let batchNotifyFn = (callback) => {
4503 + callback();
4504 + };
4505 + let scheduleFn = (cb) => setTimeout(cb, 0);
4506 + const setScheduler = (fn) => {
4507 + scheduleFn = fn;
4508 + };
4509 + const batch = (callback) => {
4510 + let result;
4511 + transactions++;
4512 + try {
4513 + result = callback();
4514 + } finally {
4515 + transactions--;
4516 + if (!transactions) {
4517 + flush();
4518 + }
4519 + }
4520 + return result;
4521 + };
4522 + const schedule = (callback) => {
4523 + if (transactions) {
4524 + queue.push(callback);
4525 + } else {
4526 + scheduleFn(() => {
4527 + notifyFn(callback);
4528 + });
4529 + }
4530 + };
4531 + const batchCalls = (callback) => {
4532 + return (...args) => {
4533 + schedule(() => {
4534 + callback(...args);
4535 + });
4536 + };
4537 + };
4538 + const flush = () => {
4539 + const originalQueue = queue;
4540 + queue = [];
4541 + if (originalQueue.length) {
4542 + scheduleFn(() => {
4543 + batchNotifyFn(() => {
4544 + originalQueue.forEach((callback) => {
4545 + notifyFn(callback);
4546 + });
4547 + });
4548 + });
4549 + }
4550 + };
4551 + const setNotifyFunction = (fn) => {
4552 + notifyFn = fn;
4553 + };
4554 + const setBatchNotifyFunction = (fn) => {
4555 + batchNotifyFn = fn;
4556 + };
4557 + return {
4558 + batch,
4559 + batchCalls,
4560 + schedule,
4561 + setNotifyFunction,
4562 + setBatchNotifyFunction,
4563 + setScheduler
4564 + };
4565 +}
4566 +var notifyManager = createNotifyManager();
4567 +// Annotate the CommonJS export names for ESM import in node:
4568 +0 && (0);
4569 +//# sourceMappingURL=notifyManager.cjs.map
4570 +
4571 +/***/ }),
4572 +
4573 +/***/ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs":
4574 +/*!***************************************************************************!*\
4575 + !*** ../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs ***!
4576 + \***************************************************************************/
4577 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4578 +
4579 +"use strict";
4580 +
4581 +var __defProp = Object.defineProperty;
4582 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4583 +var __getOwnPropNames = Object.getOwnPropertyNames;
4584 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4585 +var __export = (target, all) => {
4586 + for (var name in all)
4587 + __defProp(target, name, { get: all[name], enumerable: true });
4588 +};
4589 +var __copyProps = (to, from, except, desc) => {
4590 + if (from && typeof from === "object" || typeof from === "function") {
4591 + for (let key of __getOwnPropNames(from))
4592 + if (!__hasOwnProp.call(to, key) && key !== except)
4593 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4594 + }
4595 + return to;
4596 +};
4597 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4598 +
4599 +// src/onlineManager.ts
4600 +var onlineManager_exports = {};
4601 +__export(onlineManager_exports, {
4602 + OnlineManager: () => OnlineManager,
4603 + onlineManager: () => onlineManager
4604 +});
4605 +module.exports = __toCommonJS(onlineManager_exports);
4606 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4607 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4608 +var OnlineManager = class extends import_subscribable.Subscribable {
4609 + #online = true;
4610 + #cleanup;
4611 + #setup;
4612 + constructor() {
4613 + super();
4614 + this.#setup = (onOnline) => {
4615 + if (!import_utils.isServer && window.addEventListener) {
4616 + const onlineListener = () => onOnline(true);
4617 + const offlineListener = () => onOnline(false);
4618 + window.addEventListener("online", onlineListener, false);
4619 + window.addEventListener("offline", offlineListener, false);
4620 + return () => {
4621 + window.removeEventListener("online", onlineListener);
4622 + window.removeEventListener("offline", offlineListener);
4623 + };
4624 + }
4625 + return;
4626 + };
4627 + }
4628 + onSubscribe() {
4629 + if (!this.#cleanup) {
4630 + this.setEventListener(this.#setup);
4631 + }
4632 + }
4633 + onUnsubscribe() {
4634 + if (!this.hasListeners()) {
4635 + this.#cleanup?.();
4636 + this.#cleanup = void 0;
4637 + }
4638 + }
4639 + setEventListener(setup) {
4640 + this.#setup = setup;
4641 + this.#cleanup?.();
4642 + this.#cleanup = setup(this.setOnline.bind(this));
4643 + }
4644 + setOnline(online) {
4645 + const changed = this.#online !== online;
4646 + if (changed) {
4647 + this.#online = online;
4648 + this.listeners.forEach((listener) => {
4649 + listener(online);
4650 + });
4651 + }
4652 + }
4653 + isOnline() {
4654 + return this.#online;
4655 + }
4656 +};
4657 +var onlineManager = new OnlineManager();
4658 +// Annotate the CommonJS export names for ESM import in node:
4659 +0 && (0);
4660 +//# sourceMappingURL=onlineManager.cjs.map
4661 +
4662 +/***/ }),
4663 +
4664 +/***/ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs":
4665 +/*!*****************************************************************************!*\
4666 + !*** ../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs ***!
4667 + \*****************************************************************************/
4668 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4669 +
4670 +"use strict";
4671 +
4672 +var __defProp = Object.defineProperty;
4673 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4674 +var __getOwnPropNames = Object.getOwnPropertyNames;
4675 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4676 +var __export = (target, all) => {
4677 + for (var name in all)
4678 + __defProp(target, name, { get: all[name], enumerable: true });
4679 +};
4680 +var __copyProps = (to, from, except, desc) => {
4681 + if (from && typeof from === "object" || typeof from === "function") {
4682 + for (let key of __getOwnPropNames(from))
4683 + if (!__hasOwnProp.call(to, key) && key !== except)
4684 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4685 + }
4686 + return to;
4687 +};
4688 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4689 +
4690 +// src/queriesObserver.ts
4691 +var queriesObserver_exports = {};
4692 +__export(queriesObserver_exports, {
4693 + QueriesObserver: () => QueriesObserver
4694 +});
4695 +module.exports = __toCommonJS(queriesObserver_exports);
4696 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4697 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
4698 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4699 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4700 +function difference(array1, array2) {
4701 + return array1.filter((x) => !array2.includes(x));
4702 +}
4703 +function replaceAt(array, index, value) {
4704 + const copy = array.slice(0);
4705 + copy[index] = value;
4706 + return copy;
4707 +}
4708 +var QueriesObserver = class extends import_subscribable.Subscribable {
4709 + #client;
4710 + #result;
4711 + #queries;
4712 + #observers;
4713 + #combinedResult;
4714 + #lastCombine;
4715 + #lastResult;
4716 + constructor(client, queries, _options) {
4717 + super();
4718 + this.#client = client;
4719 + this.#queries = [];
4720 + this.#observers = [];
4721 + this.#result = [];
4722 + this.setQueries(queries);
4723 + }
4724 + onSubscribe() {
4725 + if (this.listeners.size === 1) {
4726 + this.#observers.forEach((observer) => {
4727 + observer.subscribe((result) => {
4728 + this.#onUpdate(observer, result);
4729 + });
4730 + });
4731 + }
4732 + }
4733 + onUnsubscribe() {
4734 + if (!this.listeners.size) {
4735 + this.destroy();
4736 + }
4737 + }
4738 + destroy() {
4739 + this.listeners = /* @__PURE__ */ new Set();
4740 + this.#observers.forEach((observer) => {
4741 + observer.destroy();
4742 + });
4743 + }
4744 + setQueries(queries, _options, notifyOptions) {
4745 + this.#queries = queries;
4746 + import_notifyManager.notifyManager.batch(() => {
4747 + const prevObservers = this.#observers;
4748 + const newObserverMatches = this.#findMatchingObservers(this.#queries);
4749 + newObserverMatches.forEach(
4750 + (match) => match.observer.setOptions(match.defaultedQueryOptions, notifyOptions)
4751 + );
4752 + const newObservers = newObserverMatches.map((match) => match.observer);
4753 + const newResult = newObservers.map(
4754 + (observer) => observer.getCurrentResult()
4755 + );
4756 + const hasIndexChange = newObservers.some(
4757 + (observer, index) => observer !== prevObservers[index]
4758 + );
4759 + if (prevObservers.length === newObservers.length && !hasIndexChange) {
4760 + return;
4761 + }
4762 + this.#observers = newObservers;
4763 + this.#result = newResult;
4764 + if (!this.hasListeners()) {
4765 + return;
4766 + }
4767 + difference(prevObservers, newObservers).forEach((observer) => {
4768 + observer.destroy();
4769 + });
4770 + difference(newObservers, prevObservers).forEach((observer) => {
4771 + observer.subscribe((result) => {
4772 + this.#onUpdate(observer, result);
4773 + });
4774 + });
4775 + this.#notify();
4776 + });
4777 + }
4778 + getCurrentResult() {
4779 + return this.#result;
4780 + }
4781 + getQueries() {
4782 + return this.#observers.map((observer) => observer.getCurrentQuery());
4783 + }
4784 + getObservers() {
4785 + return this.#observers;
4786 + }
4787 + getOptimisticResult(queries, combine) {
4788 + const matches = this.#findMatchingObservers(queries);
4789 + const result = matches.map(
4790 + (match) => match.observer.getOptimisticResult(match.defaultedQueryOptions)
4791 + );
4792 + return [
4793 + result,
4794 + (r) => {
4795 + return this.#combineResult(r ?? result, combine);
4796 + },
4797 + () => {
4798 + return matches.map((match, index) => {
4799 + const observerResult = result[index];
4800 + return !match.defaultedQueryOptions.notifyOnChangeProps ? match.observer.trackResult(observerResult, (accessedProp) => {
4801 + matches.forEach((m) => {
4802 + m.observer.trackProp(accessedProp);
4803 + });
4804 + }) : observerResult;
4805 + });
4806 + }
4807 + ];
4808 + }
4809 + #combineResult(input, combine) {
4810 + if (combine) {
4811 + if (!this.#combinedResult || this.#result !== this.#lastResult || combine !== this.#lastCombine) {
4812 + this.#lastCombine = combine;
4813 + this.#lastResult = this.#result;
4814 + this.#combinedResult = (0, import_utils.replaceEqualDeep)(
4815 + this.#combinedResult,
4816 + combine(input)
4817 + );
4818 + }
4819 + return this.#combinedResult;
4820 + }
4821 + return input;
4822 + }
4823 + #findMatchingObservers(queries) {
4824 + const prevObservers = this.#observers;
4825 + const prevObserversMap = new Map(
4826 + prevObservers.map((observer) => [observer.options.queryHash, observer])
4827 + );
4828 + const defaultedQueryOptions = queries.map(
4829 + (options) => this.#client.defaultQueryOptions(options)
4830 + );
4831 + const matchingObservers = defaultedQueryOptions.flatMap((defaultedOptions) => {
4832 + const match = prevObserversMap.get(defaultedOptions.queryHash);
4833 + if (match != null) {
4834 + return [{ defaultedQueryOptions: defaultedOptions, observer: match }];
4835 + }
4836 + return [];
4837 + });
4838 + const matchedQueryHashes = new Set(
4839 + matchingObservers.map((match) => match.defaultedQueryOptions.queryHash)
4840 + );
4841 + const unmatchedQueries = defaultedQueryOptions.filter(
4842 + (defaultedOptions) => !matchedQueryHashes.has(defaultedOptions.queryHash)
4843 + );
4844 + const getObserver = (options) => {
4845 + const defaultedOptions = this.#client.defaultQueryOptions(options);
4846 + const currentObserver = this.#observers.find(
4847 + (o) => o.options.queryHash === defaultedOptions.queryHash
4848 + );
4849 + return currentObserver ?? new import_queryObserver.QueryObserver(this.#client, defaultedOptions);
4850 + };
4851 + const newOrReusedObservers = unmatchedQueries.map((options) => {
4852 + return {
4853 + defaultedQueryOptions: options,
4854 + observer: getObserver(options)
4855 + };
4856 + });
4857 + const sortMatchesByOrderOfQueries = (a, b) => defaultedQueryOptions.indexOf(a.defaultedQueryOptions) - defaultedQueryOptions.indexOf(b.defaultedQueryOptions);
4858 + return matchingObservers.concat(newOrReusedObservers).sort(sortMatchesByOrderOfQueries);
4859 + }
4860 + #onUpdate(observer, result) {
4861 + const index = this.#observers.indexOf(observer);
4862 + if (index !== -1) {
4863 + this.#result = replaceAt(this.#result, index, result);
4864 + this.#notify();
4865 + }
4866 + }
4867 + #notify() {
4868 + import_notifyManager.notifyManager.batch(() => {
4869 + this.listeners.forEach((listener) => {
4870 + listener(this.#result);
4871 + });
4872 + });
4873 + }
4874 +};
4875 +// Annotate the CommonJS export names for ESM import in node:
4876 +0 && (0);
4877 +//# sourceMappingURL=queriesObserver.cjs.map
4878 +
4879 +/***/ }),
4880 +
4881 +/***/ "../node_modules/@tanstack/query-core/build/modern/query.cjs":
4882 +/*!*******************************************************************!*\
4883 + !*** ../node_modules/@tanstack/query-core/build/modern/query.cjs ***!
4884 + \*******************************************************************/
4885 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4886 +
4887 +"use strict";
4888 +
4889 +var __defProp = Object.defineProperty;
4890 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4891 +var __getOwnPropNames = Object.getOwnPropertyNames;
4892 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4893 +var __export = (target, all) => {
4894 + for (var name in all)
4895 + __defProp(target, name, { get: all[name], enumerable: true });
4896 +};
4897 +var __copyProps = (to, from, except, desc) => {
4898 + if (from && typeof from === "object" || typeof from === "function") {
4899 + for (let key of __getOwnPropNames(from))
4900 + if (!__hasOwnProp.call(to, key) && key !== except)
4901 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4902 + }
4903 + return to;
4904 +};
4905 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4906 +
4907 +// src/query.ts
4908 +var query_exports = {};
4909 +__export(query_exports, {
4910 + Query: () => Query,
4911 + fetchState: () => fetchState
4912 +});
4913 +module.exports = __toCommonJS(query_exports);
4914 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4915 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4916 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
4917 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
4918 +var Query = class extends import_removable.Removable {
4919 + #initialState;
4920 + #revertState;
4921 + #cache;
4922 + #retryer;
4923 + #defaultOptions;
4924 + #abortSignalConsumed;
4925 + constructor(config) {
4926 + super();
4927 + this.#abortSignalConsumed = false;
4928 + this.#defaultOptions = config.defaultOptions;
4929 + this.setOptions(config.options);
4930 + this.observers = [];
4931 + this.#cache = config.cache;
4932 + this.queryKey = config.queryKey;
4933 + this.queryHash = config.queryHash;
4934 + this.#initialState = config.state || getDefaultState(this.options);
4935 + this.state = this.#initialState;
4936 + this.scheduleGc();
4937 + }
4938 + get meta() {
4939 + return this.options.meta;
4940 + }
4941 + get promise() {
4942 + return this.#retryer?.promise;
4943 + }
4944 + setOptions(options) {
4945 + this.options = { ...this.#defaultOptions, ...options };
4946 + this.updateGcTime(this.options.gcTime);
4947 + }
4948 + optionalRemove() {
4949 + if (!this.observers.length && this.state.fetchStatus === "idle") {
4950 + this.#cache.remove(this);
4951 + }
4952 + }
4953 + setData(newData, options) {
4954 + const data = (0, import_utils.replaceData)(this.state.data, newData, this.options);
4955 + this.#dispatch({
4956 + data,
4957 + type: "success",
4958 + dataUpdatedAt: options?.updatedAt,
4959 + manual: options?.manual
4960 + });
4961 + return data;
4962 + }
4963 + setState(state, setStateOptions) {
4964 + this.#dispatch({ type: "setState", state, setStateOptions });
4965 + }
4966 + cancel(options) {
4967 + const promise = this.#retryer?.promise;
4968 + this.#retryer?.cancel(options);
4969 + return promise ? promise.then(import_utils.noop).catch(import_utils.noop) : Promise.resolve();
4970 + }
4971 + destroy() {
4972 + super.destroy();
4973 + this.cancel({ silent: true });
4974 + }
4975 + reset() {
4976 + this.destroy();
4977 + this.setState(this.#initialState);
4978 + }
4979 + isActive() {
4980 + return this.observers.some(
4981 + (observer) => (0, import_utils.resolveEnabled)(observer.options.enabled, this) !== false
4982 + );
4983 + }
4984 + isDisabled() {
4985 + return this.getObserversCount() > 0 && !this.isActive();
4986 + }
4987 + isStale() {
4988 + if (this.state.isInvalidated) {
4989 + return true;
4990 + }
4991 + if (this.getObserversCount() > 0) {
4992 + return this.observers.some(
4993 + (observer) => observer.getCurrentResult().isStale
4994 + );
4995 + }
4996 + return this.state.data === void 0;
4997 + }
4998 + isStaleByTime(staleTime = 0) {
4999 + return this.state.isInvalidated || this.state.data === void 0 || !(0, import_utils.timeUntilStale)(this.state.dataUpdatedAt, staleTime);
5000 + }
5001 + onFocus() {
5002 + const observer = this.observers.find((x) => x.shouldFetchOnWindowFocus());
5003 + observer?.refetch({ cancelRefetch: false });
5004 + this.#retryer?.continue();
5005 + }
5006 + onOnline() {
5007 + const observer = this.observers.find((x) => x.shouldFetchOnReconnect());
5008 + observer?.refetch({ cancelRefetch: false });
5009 + this.#retryer?.continue();
5010 + }
5011 + addObserver(observer) {
5012 + if (!this.observers.includes(observer)) {
5013 + this.observers.push(observer);
5014 + this.clearGcTimeout();
5015 + this.#cache.notify({ type: "observerAdded", query: this, observer });
5016 + }
5017 + }
5018 + removeObserver(observer) {
5019 + if (this.observers.includes(observer)) {
5020 + this.observers = this.observers.filter((x) => x !== observer);
5021 + if (!this.observers.length) {
5022 + if (this.#retryer) {
5023 + if (this.#abortSignalConsumed) {
5024 + this.#retryer.cancel({ revert: true });
5025 + } else {
5026 + this.#retryer.cancelRetry();
5027 + }
5028 + }
5029 + this.scheduleGc();
5030 + }
5031 + this.#cache.notify({ type: "observerRemoved", query: this, observer });
5032 + }
5033 + }
5034 + getObserversCount() {
5035 + return this.observers.length;
5036 + }
5037 + invalidate() {
5038 + if (!this.state.isInvalidated) {
5039 + this.#dispatch({ type: "invalidate" });
5040 + }
5041 + }
5042 + fetch(options, fetchOptions) {
5043 + if (this.state.fetchStatus !== "idle") {
5044 + if (this.state.data !== void 0 && fetchOptions?.cancelRefetch) {
5045 + this.cancel({ silent: true });
5046 + } else if (this.#retryer) {
5047 + this.#retryer.continueRetry();
5048 + return this.#retryer.promise;
5049 + }
5050 + }
5051 + if (options) {
5052 + this.setOptions(options);
5053 + }
5054 + if (!this.options.queryFn) {
5055 + const observer = this.observers.find((x) => x.options.queryFn);
5056 + if (observer) {
5057 + this.setOptions(observer.options);
5058 + }
5059 + }
5060 + if (true) {
5061 + if (!Array.isArray(this.options.queryKey)) {
5062 + console.error(
5063 + `As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`
5064 + );
5065 + }
5066 + }
5067 + const abortController = new AbortController();
5068 + const addSignalProperty = (object) => {
5069 + Object.defineProperty(object, "signal", {
5070 + enumerable: true,
5071 + get: () => {
5072 + this.#abortSignalConsumed = true;
5073 + return abortController.signal;
5074 + }
5075 + });
5076 + };
5077 + const fetchFn = () => {
5078 + const queryFn = (0, import_utils.ensureQueryFn)(this.options, fetchOptions);
5079 + const queryFnContext = {
5080 + queryKey: this.queryKey,
5081 + meta: this.meta
5082 + };
5083 + addSignalProperty(queryFnContext);
5084 + this.#abortSignalConsumed = false;
5085 + if (this.options.persister) {
5086 + return this.options.persister(
5087 + queryFn,
5088 + queryFnContext,
5089 + this
5090 + );
5091 + }
5092 + return queryFn(queryFnContext);
5093 + };
5094 + const context = {
5095 + fetchOptions,
5096 + options: this.options,
5097 + queryKey: this.queryKey,
5098 + state: this.state,
5099 + fetchFn
5100 + };
5101 + addSignalProperty(context);
5102 + this.options.behavior?.onFetch(
5103 + context,
5104 + this
5105 + );
5106 + this.#revertState = this.state;
5107 + if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== context.fetchOptions?.meta) {
5108 + this.#dispatch({ type: "fetch", meta: context.fetchOptions?.meta });
5109 + }
5110 + const onError = (error) => {
5111 + if (!((0, import_retryer.isCancelledError)(error) && error.silent)) {
5112 + this.#dispatch({
5113 + type: "error",
5114 + error
5115 + });
5116 + }
5117 + if (!(0, import_retryer.isCancelledError)(error)) {
5118 + this.#cache.config.onError?.(
5119 + error,
5120 + this
5121 + );
5122 + this.#cache.config.onSettled?.(
5123 + this.state.data,
5124 + error,
5125 + this
5126 + );
5127 + }
5128 + if (!this.isFetchingOptimistic) {
5129 + this.scheduleGc();
5130 + }
5131 + this.isFetchingOptimistic = false;
5132 + };
5133 + this.#retryer = (0, import_retryer.createRetryer)({
5134 + initialPromise: fetchOptions?.initialPromise,
5135 + fn: context.fetchFn,
5136 + abort: abortController.abort.bind(abortController),
5137 + onSuccess: (data) => {
5138 + if (data === void 0) {
5139 + if (true) {
5140 + console.error(
5141 + `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
5142 + );
5143 + }
5144 + onError(new Error(`${this.queryHash} data is undefined`));
5145 + return;
5146 + }
5147 + this.setData(data);
5148 + this.#cache.config.onSuccess?.(data, this);
5149 + this.#cache.config.onSettled?.(
5150 + data,
5151 + this.state.error,
5152 + this
5153 + );
5154 + if (!this.isFetchingOptimistic) {
5155 + this.scheduleGc();
5156 + }
5157 + this.isFetchingOptimistic = false;
5158 + },
5159 + onError,
5160 + onFail: (failureCount, error) => {
5161 + this.#dispatch({ type: "failed", failureCount, error });
5162 + },
5163 + onPause: () => {
5164 + this.#dispatch({ type: "pause" });
5165 + },
5166 + onContinue: () => {
5167 + this.#dispatch({ type: "continue" });
5168 + },
5169 + retry: context.options.retry,
5170 + retryDelay: context.options.retryDelay,
5171 + networkMode: context.options.networkMode,
5172 + canRun: () => true
5173 + });
5174 + return this.#retryer.start();
5175 + }
5176 + #dispatch(action) {
5177 + const reducer = (state) => {
5178 + switch (action.type) {
5179 + case "failed":
5180 + return {
5181 + ...state,
5182 + fetchFailureCount: action.failureCount,
5183 + fetchFailureReason: action.error
5184 + };
5185 + case "pause":
5186 + return {
5187 + ...state,
5188 + fetchStatus: "paused"
5189 + };
5190 + case "continue":
5191 + return {
5192 + ...state,
5193 + fetchStatus: "fetching"
5194 + };
5195 + case "fetch":
5196 + return {
5197 + ...state,
5198 + ...fetchState(state.data, this.options),
5199 + fetchMeta: action.meta ?? null
5200 + };
5201 + case "success":
5202 + return {
5203 + ...state,
5204 + data: action.data,
5205 + dataUpdateCount: state.dataUpdateCount + 1,
5206 + dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),
5207 + error: null,
5208 + isInvalidated: false,
5209 + status: "success",
5210 + ...!action.manual && {
5211 + fetchStatus: "idle",
5212 + fetchFailureCount: 0,
5213 + fetchFailureReason: null
5214 + }
5215 + };
5216 + case "error":
5217 + const error = action.error;
5218 + if ((0, import_retryer.isCancelledError)(error) && error.revert && this.#revertState) {
5219 + return { ...this.#revertState, fetchStatus: "idle" };
5220 + }
5221 + return {
5222 + ...state,
5223 + error,
5224 + errorUpdateCount: state.errorUpdateCount + 1,
5225 + errorUpdatedAt: Date.now(),
5226 + fetchFailureCount: state.fetchFailureCount + 1,
5227 + fetchFailureReason: error,
5228 + fetchStatus: "idle",
5229 + status: "error"
5230 + };
5231 + case "invalidate":
5232 + return {
5233 + ...state,
5234 + isInvalidated: true
5235 + };
5236 + case "setState":
5237 + return {
5238 + ...state,
5239 + ...action.state
5240 + };
5241 + }
5242 + };
5243 + this.state = reducer(this.state);
5244 + import_notifyManager.notifyManager.batch(() => {
5245 + this.observers.forEach((observer) => {
5246 + observer.onQueryUpdate();
5247 + });
5248 + this.#cache.notify({ query: this, type: "updated", action });
5249 + });
5250 + }
5251 +};
5252 +function fetchState(data, options) {
5253 + return {
5254 + fetchFailureCount: 0,
5255 + fetchFailureReason: null,
5256 + fetchStatus: (0, import_retryer.canFetch)(options.networkMode) ? "fetching" : "paused",
5257 + ...data === void 0 && {
5258 + error: null,
5259 + status: "pending"
5260 + }
5261 + };
5262 +}
5263 +function getDefaultState(options) {
5264 + const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
5265 + const hasData = data !== void 0;
5266 + const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === "function" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
5267 + return {
5268 + data,
5269 + dataUpdateCount: 0,
5270 + dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,
5271 + error: null,
5272 + errorUpdateCount: 0,
5273 + errorUpdatedAt: 0,
5274 + fetchFailureCount: 0,
5275 + fetchFailureReason: null,
5276 + fetchMeta: null,
5277 + isInvalidated: false,
5278 + status: hasData ? "success" : "pending",
5279 + fetchStatus: "idle"
5280 + };
5281 +}
5282 +// Annotate the CommonJS export names for ESM import in node:
5283 +0 && (0);
5284 +//# sourceMappingURL=query.cjs.map
5285 +
5286 +/***/ }),
5287 +
5288 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs":
5289 +/*!************************************************************************!*\
5290 + !*** ../node_modules/@tanstack/query-core/build/modern/queryCache.cjs ***!
5291 + \************************************************************************/
5292 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5293 +
5294 +"use strict";
5295 +
5296 +var __defProp = Object.defineProperty;
5297 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5298 +var __getOwnPropNames = Object.getOwnPropertyNames;
5299 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5300 +var __export = (target, all) => {
5301 + for (var name in all)
5302 + __defProp(target, name, { get: all[name], enumerable: true });
5303 +};
5304 +var __copyProps = (to, from, except, desc) => {
5305 + if (from && typeof from === "object" || typeof from === "function") {
5306 + for (let key of __getOwnPropNames(from))
5307 + if (!__hasOwnProp.call(to, key) && key !== except)
5308 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5309 + }
5310 + return to;
5311 +};
5312 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5313 +
5314 +// src/queryCache.ts
5315 +var queryCache_exports = {};
5316 +__export(queryCache_exports, {
5317 + QueryCache: () => QueryCache
5318 +});
5319 +module.exports = __toCommonJS(queryCache_exports);
5320 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5321 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
5322 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5323 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
5324 +var QueryCache = class extends import_subscribable.Subscribable {
5325 + constructor(config = {}) {
5326 + super();
5327 + this.config = config;
5328 + this.#queries = /* @__PURE__ */ new Map();
5329 + }
5330 + #queries;
5331 + build(client, options, state) {
5332 + const queryKey = options.queryKey;
5333 + const queryHash = options.queryHash ?? (0, import_utils.hashQueryKeyByOptions)(queryKey, options);
5334 + let query = this.get(queryHash);
5335 + if (!query) {
5336 + query = new import_query.Query({
5337 + cache: this,
5338 + queryKey,
5339 + queryHash,
5340 + options: client.defaultQueryOptions(options),
5341 + state,
5342 + defaultOptions: client.getQueryDefaults(queryKey)
5343 + });
5344 + this.add(query);
5345 + }
5346 + return query;
5347 + }
5348 + add(query) {
5349 + if (!this.#queries.has(query.queryHash)) {
5350 + this.#queries.set(query.queryHash, query);
5351 + this.notify({
5352 + type: "added",
5353 + query
5354 + });
5355 + }
5356 + }
5357 + remove(query) {
5358 + const queryInMap = this.#queries.get(query.queryHash);
5359 + if (queryInMap) {
5360 + query.destroy();
5361 + if (queryInMap === query) {
5362 + this.#queries.delete(query.queryHash);
5363 + }
5364 + this.notify({ type: "removed", query });
5365 + }
5366 + }
5367 + clear() {
5368 + import_notifyManager.notifyManager.batch(() => {
5369 + this.getAll().forEach((query) => {
5370 + this.remove(query);
5371 + });
5372 + });
5373 + }
5374 + get(queryHash) {
5375 + return this.#queries.get(queryHash);
5376 + }
5377 + getAll() {
5378 + return [...this.#queries.values()];
5379 + }
5380 + find(filters) {
5381 + const defaultedFilters = { exact: true, ...filters };
5382 + return this.getAll().find(
5383 + (query) => (0, import_utils.matchQuery)(defaultedFilters, query)
5384 + );
5385 + }
5386 + findAll(filters = {}) {
5387 + const queries = this.getAll();
5388 + return Object.keys(filters).length > 0 ? queries.filter((query) => (0, import_utils.matchQuery)(filters, query)) : queries;
5389 + }
5390 + notify(event) {
5391 + import_notifyManager.notifyManager.batch(() => {
5392 + this.listeners.forEach((listener) => {
5393 + listener(event);
5394 + });
5395 + });
5396 + }
5397 + onFocus() {
5398 + import_notifyManager.notifyManager.batch(() => {
5399 + this.getAll().forEach((query) => {
5400 + query.onFocus();
5401 + });
5402 + });
5403 + }
5404 + onOnline() {
5405 + import_notifyManager.notifyManager.batch(() => {
5406 + this.getAll().forEach((query) => {
5407 + query.onOnline();
5408 + });
5409 + });
5410 + }
5411 +};
5412 +// Annotate the CommonJS export names for ESM import in node:
5413 +0 && (0);
5414 +//# sourceMappingURL=queryCache.cjs.map
5415 +
5416 +/***/ }),
5417 +
5418 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs":
5419 +/*!*************************************************************************!*\
5420 + !*** ../node_modules/@tanstack/query-core/build/modern/queryClient.cjs ***!
5421 + \*************************************************************************/
5422 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5423 +
5424 +"use strict";
5425 +
5426 +var __defProp = Object.defineProperty;
5427 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5428 +var __getOwnPropNames = Object.getOwnPropertyNames;
5429 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5430 +var __export = (target, all) => {
5431 + for (var name in all)
5432 + __defProp(target, name, { get: all[name], enumerable: true });
5433 +};
5434 +var __copyProps = (to, from, except, desc) => {
5435 + if (from && typeof from === "object" || typeof from === "function") {
5436 + for (let key of __getOwnPropNames(from))
5437 + if (!__hasOwnProp.call(to, key) && key !== except)
5438 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5439 + }
5440 + return to;
5441 +};
5442 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5443 +
5444 +// src/queryClient.ts
5445 +var queryClient_exports = {};
5446 +__export(queryClient_exports, {
5447 + QueryClient: () => QueryClient
5448 +});
5449 +module.exports = __toCommonJS(queryClient_exports);
5450 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5451 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
5452 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
5453 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
5454 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
5455 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5456 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
5457 +var QueryClient = class {
5458 + #queryCache;
5459 + #mutationCache;
5460 + #defaultOptions;
5461 + #queryDefaults;
5462 + #mutationDefaults;
5463 + #mountCount;
5464 + #unsubscribeFocus;
5465 + #unsubscribeOnline;
5466 + constructor(config = {}) {
5467 + this.#queryCache = config.queryCache || new import_queryCache.QueryCache();
5468 + this.#mutationCache = config.mutationCache || new import_mutationCache.MutationCache();
5469 + this.#defaultOptions = config.defaultOptions || {};
5470 + this.#queryDefaults = /* @__PURE__ */ new Map();
5471 + this.#mutationDefaults = /* @__PURE__ */ new Map();
5472 + this.#mountCount = 0;
5473 + }
5474 + mount() {
5475 + this.#mountCount++;
5476 + if (this.#mountCount !== 1)
5477 + return;
5478 + this.#unsubscribeFocus = import_focusManager.focusManager.subscribe(async (focused) => {
5479 + if (focused) {
5480 + await this.resumePausedMutations();
5481 + this.#queryCache.onFocus();
5482 + }
5483 + });
5484 + this.#unsubscribeOnline = import_onlineManager.onlineManager.subscribe(async (online) => {
5485 + if (online) {
5486 + await this.resumePausedMutations();
5487 + this.#queryCache.onOnline();
5488 + }
5489 + });
5490 + }
5491 + unmount() {
5492 + this.#mountCount--;
5493 + if (this.#mountCount !== 0)
5494 + return;
5495 + this.#unsubscribeFocus?.();
5496 + this.#unsubscribeFocus = void 0;
5497 + this.#unsubscribeOnline?.();
5498 + this.#unsubscribeOnline = void 0;
5499 + }
5500 + isFetching(filters) {
5501 + return this.#queryCache.findAll({ ...filters, fetchStatus: "fetching" }).length;
5502 + }
5503 + isMutating(filters) {
5504 + return this.#mutationCache.findAll({ ...filters, status: "pending" }).length;
5505 + }
5506 + getQueryData(queryKey) {
5507 + const options = this.defaultQueryOptions({ queryKey });
5508 + return this.#queryCache.get(options.queryHash)?.state.data;
5509 + }
5510 + ensureQueryData(options) {
5511 + const cachedData = this.getQueryData(options.queryKey);
5512 + if (cachedData === void 0)
5513 + return this.fetchQuery(options);
5514 + else {
5515 + const defaultedOptions = this.defaultQueryOptions(options);
5516 + const query = this.#queryCache.build(this, defaultedOptions);
5517 + if (options.revalidateIfStale && query.isStaleByTime((0, import_utils.resolveStaleTime)(defaultedOptions.staleTime, query))) {
5518 + void this.prefetchQuery(defaultedOptions);
5519 + }
5520 + return Promise.resolve(cachedData);
5521 + }
5522 + }
5523 + getQueriesData(filters) {
5524 + return this.#queryCache.findAll(filters).map(({ queryKey, state }) => {
5525 + const data = state.data;
5526 + return [queryKey, data];
5527 + });
5528 + }
5529 + setQueryData(queryKey, updater, options) {
5530 + const defaultedOptions = this.defaultQueryOptions({ queryKey });
5531 + const query = this.#queryCache.get(
5532 + defaultedOptions.queryHash
5533 + );
5534 + const prevData = query?.state.data;
5535 + const data = (0, import_utils.functionalUpdate)(updater, prevData);
5536 + if (data === void 0) {
5537 + return void 0;
5538 + }
5539 + return this.#queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true });
5540 + }
5541 + setQueriesData(filters, updater, options) {
5542 + return import_notifyManager.notifyManager.batch(
5543 + () => this.#queryCache.findAll(filters).map(({ queryKey }) => [
5544 + queryKey,
5545 + this.setQueryData(queryKey, updater, options)
5546 + ])
5547 + );
5548 + }
5549 + getQueryState(queryKey) {
5550 + const options = this.defaultQueryOptions({ queryKey });
5551 + return this.#queryCache.get(options.queryHash)?.state;
5552 + }
5553 + removeQueries(filters) {
5554 + const queryCache = this.#queryCache;
5555 + import_notifyManager.notifyManager.batch(() => {
5556 + queryCache.findAll(filters).forEach((query) => {
5557 + queryCache.remove(query);
5558 + });
5559 + });
5560 + }
5561 + resetQueries(filters, options) {
5562 + const queryCache = this.#queryCache;
5563 + const refetchFilters = {
5564 + type: "active",
5565 + ...filters
5566 + };
5567 + return import_notifyManager.notifyManager.batch(() => {
5568 + queryCache.findAll(filters).forEach((query) => {
5569 + query.reset();
5570 + });
5571 + return this.refetchQueries(refetchFilters, options);
5572 + });
5573 + }
5574 + cancelQueries(filters = {}, cancelOptions = {}) {
5575 + const defaultedCancelOptions = { revert: true, ...cancelOptions };
5576 + const promises = import_notifyManager.notifyManager.batch(
5577 + () => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
5578 + );
5579 + return Promise.all(promises).then(import_utils.noop).catch(import_utils.noop);
5580 + }
5581 + invalidateQueries(filters = {}, options = {}) {
5582 + return import_notifyManager.notifyManager.batch(() => {
5583 + this.#queryCache.findAll(filters).forEach((query) => {
5584 + query.invalidate();
5585 + });
5586 + if (filters.refetchType === "none") {
5587 + return Promise.resolve();
5588 + }
5589 + const refetchFilters = {
5590 + ...filters,
5591 + type: filters.refetchType ?? filters.type ?? "active"
5592 + };
5593 + return this.refetchQueries(refetchFilters, options);
5594 + });
5595 + }
5596 + refetchQueries(filters = {}, options) {
5597 + const fetchOptions = {
5598 + ...options,
5599 + cancelRefetch: options?.cancelRefetch ?? true
5600 + };
5601 + const promises = import_notifyManager.notifyManager.batch(
5602 + () => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
5603 + let promise = query.fetch(void 0, fetchOptions);
5604 + if (!fetchOptions.throwOnError) {
5605 + promise = promise.catch(import_utils.noop);
5606 + }
5607 + return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
5608 + })
5609 + );
5610 + return Promise.all(promises).then(import_utils.noop);
5611 + }
5612 + fetchQuery(options) {
5613 + const defaultedOptions = this.defaultQueryOptions(options);
5614 + if (defaultedOptions.retry === void 0) {
5615 + defaultedOptions.retry = false;
5616 + }
5617 + const query = this.#queryCache.build(this, defaultedOptions);
5618 + return query.isStaleByTime(
5619 + (0, import_utils.resolveStaleTime)(defaultedOptions.staleTime, query)
5620 + ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
5621 + }
5622 + prefetchQuery(options) {
5623 + return this.fetchQuery(options).then(import_utils.noop).catch(import_utils.noop);
5624 + }
5625 + fetchInfiniteQuery(options) {
5626 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)(options.pages);
5627 + return this.fetchQuery(options);
5628 + }
5629 + prefetchInfiniteQuery(options) {
5630 + return this.fetchInfiniteQuery(options).then(import_utils.noop).catch(import_utils.noop);
5631 + }
5632 + resumePausedMutations() {
5633 + if (import_onlineManager.onlineManager.isOnline()) {
5634 + return this.#mutationCache.resumePausedMutations();
5635 + }
5636 + return Promise.resolve();
5637 + }
5638 + getQueryCache() {
5639 + return this.#queryCache;
5640 + }
5641 + getMutationCache() {
5642 + return this.#mutationCache;
5643 + }
5644 + getDefaultOptions() {
5645 + return this.#defaultOptions;
5646 + }
5647 + setDefaultOptions(options) {
5648 + this.#defaultOptions = options;
5649 + }
5650 + setQueryDefaults(queryKey, options) {
5651 + this.#queryDefaults.set((0, import_utils.hashKey)(queryKey), {
5652 + queryKey,
5653 + defaultOptions: options
5654 + });
5655 + }
5656 + getQueryDefaults(queryKey) {
5657 + const defaults = [...this.#queryDefaults.values()];
5658 + let result = {};
5659 + defaults.forEach((queryDefault) => {
5660 + if ((0, import_utils.partialMatchKey)(queryKey, queryDefault.queryKey)) {
5661 + result = { ...result, ...queryDefault.defaultOptions };
5662 + }
5663 + });
5664 + return result;
5665 + }
5666 + setMutationDefaults(mutationKey, options) {
5667 + this.#mutationDefaults.set((0, import_utils.hashKey)(mutationKey), {
5668 + mutationKey,
5669 + defaultOptions: options
5670 + });
5671 + }
5672 + getMutationDefaults(mutationKey) {
5673 + const defaults = [...this.#mutationDefaults.values()];
5674 + let result = {};
5675 + defaults.forEach((queryDefault) => {
5676 + if ((0, import_utils.partialMatchKey)(mutationKey, queryDefault.mutationKey)) {
5677 + result = { ...result, ...queryDefault.defaultOptions };
5678 + }
5679 + });
5680 + return result;
5681 + }
5682 + defaultQueryOptions(options) {
5683 + if (options._defaulted) {
5684 + return options;
5685 + }
5686 + const defaultedOptions = {
5687 + ...this.#defaultOptions.queries,
5688 + ...this.getQueryDefaults(options.queryKey),
5689 + ...options,
5690 + _defaulted: true
5691 + };
5692 + if (!defaultedOptions.queryHash) {
5693 + defaultedOptions.queryHash = (0, import_utils.hashQueryKeyByOptions)(
5694 + defaultedOptions.queryKey,
5695 + defaultedOptions
5696 + );
5697 + }
5698 + if (defaultedOptions.refetchOnReconnect === void 0) {
5699 + defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
5700 + }
5701 + if (defaultedOptions.throwOnError === void 0) {
5702 + defaultedOptions.throwOnError = !!defaultedOptions.suspense;
5703 + }
5704 + if (!defaultedOptions.networkMode && defaultedOptions.persister) {
5705 + defaultedOptions.networkMode = "offlineFirst";
5706 + }
5707 + if (defaultedOptions.enabled !== true && defaultedOptions.queryFn === import_utils.skipToken) {
5708 + defaultedOptions.enabled = false;
5709 + }
5710 + return defaultedOptions;
5711 + }
5712 + defaultMutationOptions(options) {
5713 + if (options?._defaulted) {
5714 + return options;
5715 + }
5716 + return {
5717 + ...this.#defaultOptions.mutations,
5718 + ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),
5719 + ...options,
5720 + _defaulted: true
5721 + };
5722 + }
5723 + clear() {
5724 + this.#queryCache.clear();
5725 + this.#mutationCache.clear();
5726 + }
5727 +};
5728 +// Annotate the CommonJS export names for ESM import in node:
5729 +0 && (0);
5730 +//# sourceMappingURL=queryClient.cjs.map
5731 +
5732 +/***/ }),
5733 +
5734 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs":
5735 +/*!***************************************************************************!*\
5736 + !*** ../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs ***!
5737 + \***************************************************************************/
5738 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5739 +
5740 +"use strict";
5741 +
5742 +var __defProp = Object.defineProperty;
5743 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5744 +var __getOwnPropNames = Object.getOwnPropertyNames;
5745 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5746 +var __export = (target, all) => {
5747 + for (var name in all)
5748 + __defProp(target, name, { get: all[name], enumerable: true });
5749 +};
5750 +var __copyProps = (to, from, except, desc) => {
5751 + if (from && typeof from === "object" || typeof from === "function") {
5752 + for (let key of __getOwnPropNames(from))
5753 + if (!__hasOwnProp.call(to, key) && key !== except)
5754 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5755 + }
5756 + return to;
5757 +};
5758 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5759 +
5760 +// src/queryObserver.ts
5761 +var queryObserver_exports = {};
5762 +__export(queryObserver_exports, {
5763 + QueryObserver: () => QueryObserver
5764 +});
5765 +module.exports = __toCommonJS(queryObserver_exports);
5766 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5767 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5768 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
5769 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
5770 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
5771 +var QueryObserver = class extends import_subscribable.Subscribable {
5772 + constructor(client, options) {
5773 + super();
5774 + this.options = options;
5775 + this.#client = client;
5776 + this.#selectError = null;
5777 + this.bindMethods();
5778 + this.setOptions(options);
5779 + }
5780 + #client;
5781 + #currentQuery = void 0;
5782 + #currentQueryInitialState = void 0;
5783 + #currentResult = void 0;
5784 + #currentResultState;
5785 + #currentResultOptions;
5786 + #selectError;
5787 + #selectFn;
5788 + #selectResult;
5789 + // This property keeps track of the last query with defined data.
5790 + // It will be used to pass the previous data and query to the placeholder function between renders.
5791 + #lastQueryWithDefinedData;
5792 + #staleTimeoutId;
5793 + #refetchIntervalId;
5794 + #currentRefetchInterval;
5795 + #trackedProps = /* @__PURE__ */ new Set();
5796 + bindMethods() {
5797 + this.refetch = this.refetch.bind(this);
5798 + }
5799 + onSubscribe() {
5800 + if (this.listeners.size === 1) {
5801 + this.#currentQuery.addObserver(this);
5802 + if (shouldFetchOnMount(this.#currentQuery, this.options)) {
5803 + this.#executeFetch();
5804 + } else {
5805 + this.updateResult();
5806 + }
5807 + this.#updateTimers();
5808 + }
5809 + }
5810 + onUnsubscribe() {
5811 + if (!this.hasListeners()) {
5812 + this.destroy();
5813 + }
5814 + }
5815 + shouldFetchOnReconnect() {
5816 + return shouldFetchOn(
5817 + this.#currentQuery,
5818 + this.options,
5819 + this.options.refetchOnReconnect
5820 + );
5821 + }
5822 + shouldFetchOnWindowFocus() {
5823 + return shouldFetchOn(
5824 + this.#currentQuery,
5825 + this.options,
5826 + this.options.refetchOnWindowFocus
5827 + );
5828 + }
5829 + destroy() {
5830 + this.listeners = /* @__PURE__ */ new Set();
5831 + this.#clearStaleTimeout();
5832 + this.#clearRefetchInterval();
5833 + this.#currentQuery.removeObserver(this);
5834 + }
5835 + setOptions(options, notifyOptions) {
5836 + const prevOptions = this.options;
5837 + const prevQuery = this.#currentQuery;
5838 + this.options = this.#client.defaultQueryOptions(options);
5839 + if (this.options.enabled !== void 0 && typeof this.options.enabled !== "boolean" && typeof this.options.enabled !== "function" && typeof (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) !== "boolean") {
5840 + throw new Error(
5841 + "Expected enabled to be a boolean or a callback that returns a boolean"
5842 + );
5843 + }
5844 + this.#updateQuery();
5845 + this.#currentQuery.setOptions(this.options);
5846 + if (prevOptions._defaulted && !(0, import_utils.shallowEqualObjects)(this.options, prevOptions)) {
5847 + this.#client.getQueryCache().notify({
5848 + type: "observerOptionsUpdated",
5849 + query: this.#currentQuery,
5850 + observer: this
5851 + });
5852 + }
5853 + const mounted = this.hasListeners();
5854 + if (mounted && shouldFetchOptionally(
5855 + this.#currentQuery,
5856 + prevQuery,
5857 + this.options,
5858 + prevOptions
5859 + )) {
5860 + this.#executeFetch();
5861 + }
5862 + this.updateResult(notifyOptions);
5863 + if (mounted && (this.#currentQuery !== prevQuery || (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) !== (0, import_utils.resolveEnabled)(prevOptions.enabled, this.#currentQuery) || (0, import_utils.resolveStaleTime)(this.options.staleTime, this.#currentQuery) !== (0, import_utils.resolveStaleTime)(prevOptions.staleTime, this.#currentQuery))) {
5864 + this.#updateStaleTimeout();
5865 + }
5866 + const nextRefetchInterval = this.#computeRefetchInterval();
5867 + if (mounted && (this.#currentQuery !== prevQuery || (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) !== (0, import_utils.resolveEnabled)(prevOptions.enabled, this.#currentQuery) || nextRefetchInterval !== this.#currentRefetchInterval)) {
5868 + this.#updateRefetchInterval(nextRefetchInterval);
5869 + }
5870 + }
5871 + getOptimisticResult(options) {
5872 + const query = this.#client.getQueryCache().build(this.#client, options);
5873 + const result = this.createResult(query, options);
5874 + if (shouldAssignObserverCurrentProperties(this, result)) {
5875 + this.#currentResult = result;
5876 + this.#currentResultOptions = this.options;
5877 + this.#currentResultState = this.#currentQuery.state;
5878 + }
5879 + return result;
5880 + }
5881 + getCurrentResult() {
5882 + return this.#currentResult;
5883 + }
5884 + trackResult(result, onPropTracked) {
5885 + const trackedResult = {};
5886 + Object.keys(result).forEach((key) => {
5887 + Object.defineProperty(trackedResult, key, {
5888 + configurable: false,
5889 + enumerable: true,
5890 + get: () => {
5891 + this.trackProp(key);
5892 + onPropTracked?.(key);
5893 + return result[key];
5894 + }
5895 + });
5896 + });
5897 + return trackedResult;
5898 + }
5899 + trackProp(key) {
5900 + this.#trackedProps.add(key);
5901 + }
5902 + getCurrentQuery() {
5903 + return this.#currentQuery;
5904 + }
5905 + refetch({ ...options } = {}) {
5906 + return this.fetch({
5907 + ...options
5908 + });
5909 + }
5910 + fetchOptimistic(options) {
5911 + const defaultedOptions = this.#client.defaultQueryOptions(options);
5912 + const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);
5913 + query.isFetchingOptimistic = true;
5914 + return query.fetch().then(() => this.createResult(query, defaultedOptions));
5915 + }
5916 + fetch(fetchOptions) {
5917 + return this.#executeFetch({
5918 + ...fetchOptions,
5919 + cancelRefetch: fetchOptions.cancelRefetch ?? true
5920 + }).then(() => {
5921 + this.updateResult();
5922 + return this.#currentResult;
5923 + });
5924 + }
5925 + #executeFetch(fetchOptions) {
5926 + this.#updateQuery();
5927 + let promise = this.#currentQuery.fetch(
5928 + this.options,
5929 + fetchOptions
5930 + );
5931 + if (!fetchOptions?.throwOnError) {
5932 + promise = promise.catch(import_utils.noop);
5933 + }
5934 + return promise;
5935 + }
5936 + #updateStaleTimeout() {
5937 + this.#clearStaleTimeout();
5938 + const staleTime = (0, import_utils.resolveStaleTime)(
5939 + this.options.staleTime,
5940 + this.#currentQuery
5941 + );
5942 + if (import_utils.isServer || this.#currentResult.isStale || !(0, import_utils.isValidTimeout)(staleTime)) {
5943 + return;
5944 + }
5945 + const time = (0, import_utils.timeUntilStale)(this.#currentResult.dataUpdatedAt, staleTime);
5946 + const timeout = time + 1;
5947 + this.#staleTimeoutId = setTimeout(() => {
5948 + if (!this.#currentResult.isStale) {
5949 + this.updateResult();
5950 + }
5951 + }, timeout);
5952 + }
5953 + #computeRefetchInterval() {
5954 + return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;
5955 + }
5956 + #updateRefetchInterval(nextInterval) {
5957 + this.#clearRefetchInterval();
5958 + this.#currentRefetchInterval = nextInterval;
5959 + if (import_utils.isServer || (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) === false || !(0, import_utils.isValidTimeout)(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) {
5960 + return;
5961 + }
5962 + this.#refetchIntervalId = setInterval(() => {
5963 + if (this.options.refetchIntervalInBackground || import_focusManager.focusManager.isFocused()) {
5964 + this.#executeFetch();
5965 + }
5966 + }, this.#currentRefetchInterval);
5967 + }
5968 + #updateTimers() {
5969 + this.#updateStaleTimeout();
5970 + this.#updateRefetchInterval(this.#computeRefetchInterval());
5971 + }
5972 + #clearStaleTimeout() {
5973 + if (this.#staleTimeoutId) {
5974 + clearTimeout(this.#staleTimeoutId);
5975 + this.#staleTimeoutId = void 0;
5976 + }
5977 + }
5978 + #clearRefetchInterval() {
5979 + if (this.#refetchIntervalId) {
5980 + clearInterval(this.#refetchIntervalId);
5981 + this.#refetchIntervalId = void 0;
5982 + }
5983 + }
5984 + createResult(query, options) {
5985 + const prevQuery = this.#currentQuery;
5986 + const prevOptions = this.options;
5987 + const prevResult = this.#currentResult;
5988 + const prevResultState = this.#currentResultState;
5989 + const prevResultOptions = this.#currentResultOptions;
5990 + const queryChange = query !== prevQuery;
5991 + const queryInitialState = queryChange ? query.state : this.#currentQueryInitialState;
5992 + const { state } = query;
5993 + let newState = { ...state };
5994 + let isPlaceholderData = false;
5995 + let data;
5996 + if (options._optimisticResults) {
5997 + const mounted = this.hasListeners();
5998 + const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
5999 + const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
6000 + if (fetchOnMount || fetchOptionally) {
6001 + newState = {
6002 + ...newState,
6003 + ...(0, import_query.fetchState)(state.data, query.options)
6004 + };
6005 + }
6006 + if (options._optimisticResults === "isRestoring") {
6007 + newState.fetchStatus = "idle";
6008 + }
6009 + }
6010 + let { error, errorUpdatedAt, status } = newState;
6011 + if (options.select && newState.data !== void 0) {
6012 + if (prevResult && newState.data === prevResultState?.data && options.select === this.#selectFn) {
6013 + data = this.#selectResult;
6014 + } else {
6015 + try {
6016 + this.#selectFn = options.select;
6017 + data = options.select(newState.data);
6018 + data = (0, import_utils.replaceData)(prevResult?.data, data, options);
6019 + this.#selectResult = data;
6020 + this.#selectError = null;
6021 + } catch (selectError) {
6022 + this.#selectError = selectError;
6023 + }
6024 + }
6025 + } else {
6026 + data = newState.data;
6027 + }
6028 + if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
6029 + let placeholderData;
6030 + if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {
6031 + placeholderData = prevResult.data;
6032 + } else {
6033 + placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
6034 + this.#lastQueryWithDefinedData?.state.data,
6035 + this.#lastQueryWithDefinedData
6036 + ) : options.placeholderData;
6037 + if (options.select && placeholderData !== void 0) {
6038 + try {
6039 + placeholderData = options.select(placeholderData);
6040 + this.#selectError = null;
6041 + } catch (selectError) {
6042 + this.#selectError = selectError;
6043 + }
6044 + }
6045 + }
6046 + if (placeholderData !== void 0) {
6047 + status = "success";
6048 + data = (0, import_utils.replaceData)(
6049 + prevResult?.data,
6050 + placeholderData,
6051 + options
6052 + );
6053 + isPlaceholderData = true;
6054 + }
6055 + }
6056 + if (this.#selectError) {
6057 + error = this.#selectError;
6058 + data = this.#selectResult;
6059 + errorUpdatedAt = Date.now();
6060 + status = "error";
6061 + }
6062 + const isFetching = newState.fetchStatus === "fetching";
6063 + const isPending = status === "pending";
6064 + const isError = status === "error";
6065 + const isLoading = isPending && isFetching;
6066 + const hasData = data !== void 0;
6067 + const result = {
6068 + status,
6069 + fetchStatus: newState.fetchStatus,
6070 + isPending,
6071 + isSuccess: status === "success",
6072 + isError,
6073 + isInitialLoading: isLoading,
6074 + isLoading,
6075 + data,
6076 + dataUpdatedAt: newState.dataUpdatedAt,
6077 + error,
6078 + errorUpdatedAt,
6079 + failureCount: newState.fetchFailureCount,
6080 + failureReason: newState.fetchFailureReason,
6081 + errorUpdateCount: newState.errorUpdateCount,
6082 + isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,
6083 + isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,
6084 + isFetching,
6085 + isRefetching: isFetching && !isPending,
6086 + isLoadingError: isError && !hasData,
6087 + isPaused: newState.fetchStatus === "paused",
6088 + isPlaceholderData,
6089 + isRefetchError: isError && hasData,
6090 + isStale: isStale(query, options),
6091 + refetch: this.refetch
6092 + };
6093 + return result;
6094 + }
6095 + updateResult(notifyOptions) {
6096 + const prevResult = this.#currentResult;
6097 + const nextResult = this.createResult(this.#currentQuery, this.options);
6098 + this.#currentResultState = this.#currentQuery.state;
6099 + this.#currentResultOptions = this.options;
6100 + if (this.#currentResultState.data !== void 0) {
6101 + this.#lastQueryWithDefinedData = this.#currentQuery;
6102 + }
6103 + if ((0, import_utils.shallowEqualObjects)(nextResult, prevResult)) {
6104 + return;
6105 + }
6106 + this.#currentResult = nextResult;
6107 + const defaultNotifyOptions = {};
6108 + const shouldNotifyListeners = () => {
6109 + if (!prevResult) {
6110 + return true;
6111 + }
6112 + const { notifyOnChangeProps } = this.options;
6113 + const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
6114 + if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !this.#trackedProps.size) {
6115 + return true;
6116 + }
6117 + const includedProps = new Set(
6118 + notifyOnChangePropsValue ?? this.#trackedProps
6119 + );
6120 + if (this.options.throwOnError) {
6121 + includedProps.add("error");
6122 + }
6123 + return Object.keys(this.#currentResult).some((key) => {
6124 + const typedKey = key;
6125 + const changed = this.#currentResult[typedKey] !== prevResult[typedKey];
6126 + return changed && includedProps.has(typedKey);
6127 + });
6128 + };
6129 + if (notifyOptions?.listeners !== false && shouldNotifyListeners()) {
6130 + defaultNotifyOptions.listeners = true;
6131 + }
6132 + this.#notify({ ...defaultNotifyOptions, ...notifyOptions });
6133 + }
6134 + #updateQuery() {
6135 + const query = this.#client.getQueryCache().build(this.#client, this.options);
6136 + if (query === this.#currentQuery) {
6137 + return;
6138 + }
6139 + const prevQuery = this.#currentQuery;
6140 + this.#currentQuery = query;
6141 + this.#currentQueryInitialState = query.state;
6142 + if (this.hasListeners()) {
6143 + prevQuery?.removeObserver(this);
6144 + query.addObserver(this);
6145 + }
6146 + }
6147 + onQueryUpdate() {
6148 + this.updateResult();
6149 + if (this.hasListeners()) {
6150 + this.#updateTimers();
6151 + }
6152 + }
6153 + #notify(notifyOptions) {
6154 + import_notifyManager.notifyManager.batch(() => {
6155 + if (notifyOptions.listeners) {
6156 + this.listeners.forEach((listener) => {
6157 + listener(this.#currentResult);
6158 + });
6159 + }
6160 + this.#client.getQueryCache().notify({
6161 + query: this.#currentQuery,
6162 + type: "observerResultsUpdated"
6163 + });
6164 + });
6165 + }
6166 +};
6167 +function shouldLoadOnMount(query, options) {
6168 + return (0, import_utils.resolveEnabled)(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === "error" && options.retryOnMount === false);
6169 +}
6170 +function shouldFetchOnMount(query, options) {
6171 + return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
6172 +}
6173 +function shouldFetchOn(query, options, field) {
6174 + if ((0, import_utils.resolveEnabled)(options.enabled, query) !== false) {
6175 + const value = typeof field === "function" ? field(query) : field;
6176 + return value === "always" || value !== false && isStale(query, options);
6177 + }
6178 + return false;
6179 +}
6180 +function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
6181 + return (query !== prevQuery || (0, import_utils.resolveEnabled)(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
6182 +}
6183 +function isStale(query, options) {
6184 + return (0, import_utils.resolveEnabled)(options.enabled, query) !== false && query.isStaleByTime((0, import_utils.resolveStaleTime)(options.staleTime, query));
6185 +}
6186 +function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
6187 + if (!(0, import_utils.shallowEqualObjects)(observer.getCurrentResult(), optimisticResult)) {
6188 + return true;
6189 + }
6190 + return false;
6191 +}
6192 +// Annotate the CommonJS export names for ESM import in node:
6193 +0 && (0);
6194 +//# sourceMappingURL=queryObserver.cjs.map
6195 +
6196 +/***/ }),
6197 +
6198 +/***/ "../node_modules/@tanstack/query-core/build/modern/removable.cjs":
6199 +/*!***********************************************************************!*\
6200 + !*** ../node_modules/@tanstack/query-core/build/modern/removable.cjs ***!
6201 + \***********************************************************************/
6202 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6203 +
6204 +"use strict";
6205 +
6206 +var __defProp = Object.defineProperty;
6207 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6208 +var __getOwnPropNames = Object.getOwnPropertyNames;
6209 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6210 +var __export = (target, all) => {
6211 + for (var name in all)
6212 + __defProp(target, name, { get: all[name], enumerable: true });
6213 +};
6214 +var __copyProps = (to, from, except, desc) => {
6215 + if (from && typeof from === "object" || typeof from === "function") {
6216 + for (let key of __getOwnPropNames(from))
6217 + if (!__hasOwnProp.call(to, key) && key !== except)
6218 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6219 + }
6220 + return to;
6221 +};
6222 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6223 +
6224 +// src/removable.ts
6225 +var removable_exports = {};
6226 +__export(removable_exports, {
6227 + Removable: () => Removable
6228 +});
6229 +module.exports = __toCommonJS(removable_exports);
6230 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
6231 +var Removable = class {
6232 + #gcTimeout;
6233 + destroy() {
6234 + this.clearGcTimeout();
6235 + }
6236 + scheduleGc() {
6237 + this.clearGcTimeout();
6238 + if ((0, import_utils.isValidTimeout)(this.gcTime)) {
6239 + this.#gcTimeout = setTimeout(() => {
6240 + this.optionalRemove();
6241 + }, this.gcTime);
6242 + }
6243 + }
6244 + updateGcTime(newGcTime) {
6245 + this.gcTime = Math.max(
6246 + this.gcTime || 0,
6247 + newGcTime ?? (import_utils.isServer ? Infinity : 5 * 60 * 1e3)
6248 + );
6249 + }
6250 + clearGcTimeout() {
6251 + if (this.#gcTimeout) {
6252 + clearTimeout(this.#gcTimeout);
6253 + this.#gcTimeout = void 0;
6254 + }
6255 + }
6256 +};
6257 +// Annotate the CommonJS export names for ESM import in node:
6258 +0 && (0);
6259 +//# sourceMappingURL=removable.cjs.map
6260 +
6261 +/***/ }),
6262 +
6263 +/***/ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs":
6264 +/*!*********************************************************************!*\
6265 + !*** ../node_modules/@tanstack/query-core/build/modern/retryer.cjs ***!
6266 + \*********************************************************************/
6267 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6268 +
6269 +"use strict";
6270 +
6271 +var __defProp = Object.defineProperty;
6272 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6273 +var __getOwnPropNames = Object.getOwnPropertyNames;
6274 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6275 +var __export = (target, all) => {
6276 + for (var name in all)
6277 + __defProp(target, name, { get: all[name], enumerable: true });
6278 +};
6279 +var __copyProps = (to, from, except, desc) => {
6280 + if (from && typeof from === "object" || typeof from === "function") {
6281 + for (let key of __getOwnPropNames(from))
6282 + if (!__hasOwnProp.call(to, key) && key !== except)
6283 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6284 + }
6285 + return to;
6286 +};
6287 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6288 +
6289 +// src/retryer.ts
6290 +var retryer_exports = {};
6291 +__export(retryer_exports, {
6292 + CancelledError: () => CancelledError,
6293 + canFetch: () => canFetch,
6294 + createRetryer: () => createRetryer,
6295 + isCancelledError: () => isCancelledError
6296 +});
6297 +module.exports = __toCommonJS(retryer_exports);
6298 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
6299 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
6300 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
6301 +function defaultRetryDelay(failureCount) {
6302 + return Math.min(1e3 * 2 ** failureCount, 3e4);
6303 +}
6304 +function canFetch(networkMode) {
6305 + return (networkMode ?? "online") === "online" ? import_onlineManager.onlineManager.isOnline() : true;
6306 +}
6307 +var CancelledError = class {
6308 + constructor(options) {
6309 + this.revert = options?.revert;
6310 + this.silent = options?.silent;
6311 + }
6312 +};
6313 +function isCancelledError(value) {
6314 + return value instanceof CancelledError;
6315 +}
6316 +function createRetryer(config) {
6317 + let isRetryCancelled = false;
6318 + let failureCount = 0;
6319 + let isResolved = false;
6320 + let continueFn;
6321 + let promiseResolve;
6322 + let promiseReject;
6323 + const promise = new Promise((outerResolve, outerReject) => {
6324 + promiseResolve = outerResolve;
6325 + promiseReject = outerReject;
6326 + });
6327 + const cancel = (cancelOptions) => {
6328 + if (!isResolved) {
6329 + reject(new CancelledError(cancelOptions));
6330 + config.abort?.();
6331 + }
6332 + };
6333 + const cancelRetry = () => {
6334 + isRetryCancelled = true;
6335 + };
6336 + const continueRetry = () => {
6337 + isRetryCancelled = false;
6338 + };
6339 + const canContinue = () => import_focusManager.focusManager.isFocused() && (config.networkMode === "always" || import_onlineManager.onlineManager.isOnline()) && config.canRun();
6340 + const canStart = () => canFetch(config.networkMode) && config.canRun();
6341 + const resolve = (value) => {
6342 + if (!isResolved) {
6343 + isResolved = true;
6344 + config.onSuccess?.(value);
6345 + continueFn?.();
6346 + promiseResolve(value);
6347 + }
6348 + };
6349 + const reject = (value) => {
6350 + if (!isResolved) {
6351 + isResolved = true;
6352 + config.onError?.(value);
6353 + continueFn?.();
6354 + promiseReject(value);
6355 + }
6356 + };
6357 + const pause = () => {
6358 + return new Promise((continueResolve) => {
6359 + continueFn = (value) => {
6360 + if (isResolved || canContinue()) {
6361 + continueResolve(value);
6362 + }
6363 + };
6364 + config.onPause?.();
6365 + }).then(() => {
6366 + continueFn = void 0;
6367 + if (!isResolved) {
6368 + config.onContinue?.();
6369 + }
6370 + });
6371 + };
6372 + const run = () => {
6373 + if (isResolved) {
6374 + return;
6375 + }
6376 + let promiseOrValue;
6377 + const initialPromise = failureCount === 0 ? config.initialPromise : void 0;
6378 + try {
6379 + promiseOrValue = initialPromise ?? config.fn();
6380 + } catch (error) {
6381 + promiseOrValue = Promise.reject(error);
6382 + }
6383 + Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
6384 + if (isResolved) {
6385 + return;
6386 + }
6387 + const retry = config.retry ?? (import_utils.isServer ? 0 : 3);
6388 + const retryDelay = config.retryDelay ?? defaultRetryDelay;
6389 + const delay = typeof retryDelay === "function" ? retryDelay(failureCount, error) : retryDelay;
6390 + const shouldRetry = retry === true || typeof retry === "number" && failureCount < retry || typeof retry === "function" && retry(failureCount, error);
6391 + if (isRetryCancelled || !shouldRetry) {
6392 + reject(error);
6393 + return;
6394 + }
6395 + failureCount++;
6396 + config.onFail?.(failureCount, error);
6397 + (0, import_utils.sleep)(delay).then(() => {
6398 + return canContinue() ? void 0 : pause();
6399 + }).then(() => {
6400 + if (isRetryCancelled) {
6401 + reject(error);
6402 + } else {
6403 + run();
6404 + }
6405 + });
6406 + });
6407 + };
6408 + return {
6409 + promise,
6410 + cancel,
6411 + continue: () => {
6412 + continueFn?.();
6413 + return promise;
6414 + },
6415 + cancelRetry,
6416 + continueRetry,
6417 + canStart,
6418 + start: () => {
6419 + if (canStart()) {
6420 + run();
6421 + } else {
6422 + pause().then(run);
6423 + }
6424 + return promise;
6425 + }
6426 + };
6427 +}
6428 +// Annotate the CommonJS export names for ESM import in node:
6429 +0 && (0);
6430 +//# sourceMappingURL=retryer.cjs.map
6431 +
6432 +/***/ }),
6433 +
6434 +/***/ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs":
6435 +/*!**************************************************************************!*\
6436 + !*** ../node_modules/@tanstack/query-core/build/modern/subscribable.cjs ***!
6437 + \**************************************************************************/
6438 +/***/ ((module) => {
6439 +
6440 +"use strict";
6441 +
6442 +var __defProp = Object.defineProperty;
6443 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6444 +var __getOwnPropNames = Object.getOwnPropertyNames;
6445 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6446 +var __export = (target, all) => {
6447 + for (var name in all)
6448 + __defProp(target, name, { get: all[name], enumerable: true });
6449 +};
6450 +var __copyProps = (to, from, except, desc) => {
6451 + if (from && typeof from === "object" || typeof from === "function") {
6452 + for (let key of __getOwnPropNames(from))
6453 + if (!__hasOwnProp.call(to, key) && key !== except)
6454 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6455 + }
6456 + return to;
6457 +};
6458 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6459 +
6460 +// src/subscribable.ts
6461 +var subscribable_exports = {};
6462 +__export(subscribable_exports, {
6463 + Subscribable: () => Subscribable
6464 +});
6465 +module.exports = __toCommonJS(subscribable_exports);
6466 +var Subscribable = class {
6467 + constructor() {
6468 + this.listeners = /* @__PURE__ */ new Set();
6469 + this.subscribe = this.subscribe.bind(this);
6470 + }
6471 + subscribe(listener) {
6472 + this.listeners.add(listener);
6473 + this.onSubscribe();
6474 + return () => {
6475 + this.listeners.delete(listener);
6476 + this.onUnsubscribe();
6477 + };
6478 + }
6479 + hasListeners() {
6480 + return this.listeners.size > 0;
6481 + }
6482 + onSubscribe() {
6483 + }
6484 + onUnsubscribe() {
6485 + }
6486 +};
6487 +// Annotate the CommonJS export names for ESM import in node:
6488 +0 && (0);
6489 +//# sourceMappingURL=subscribable.cjs.map
6490 +
6491 +/***/ }),
6492 +
6493 +/***/ "../node_modules/@tanstack/query-core/build/modern/types.cjs":
6494 +/*!*******************************************************************!*\
6495 + !*** ../node_modules/@tanstack/query-core/build/modern/types.cjs ***!
6496 + \*******************************************************************/
6497 +/***/ ((module) => {
6498 +
6499 +"use strict";
6500 +
6501 +var __defProp = Object.defineProperty;
6502 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6503 +var __getOwnPropNames = Object.getOwnPropertyNames;
6504 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6505 +var __copyProps = (to, from, except, desc) => {
6506 + if (from && typeof from === "object" || typeof from === "function") {
6507 + for (let key of __getOwnPropNames(from))
6508 + if (!__hasOwnProp.call(to, key) && key !== except)
6509 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6510 + }
6511 + return to;
6512 +};
6513 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6514 +
6515 +// src/types.ts
6516 +var types_exports = {};
6517 +module.exports = __toCommonJS(types_exports);
6518 +//# sourceMappingURL=types.cjs.map
6519 +
6520 +/***/ }),
6521 +
6522 +/***/ "../node_modules/@tanstack/query-core/build/modern/utils.cjs":
6523 +/*!*******************************************************************!*\
6524 + !*** ../node_modules/@tanstack/query-core/build/modern/utils.cjs ***!
6525 + \*******************************************************************/
6526 +/***/ ((module) => {
6527 +
6528 +"use strict";
6529 +
6530 +var __defProp = Object.defineProperty;
6531 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6532 +var __getOwnPropNames = Object.getOwnPropertyNames;
6533 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6534 +var __export = (target, all) => {
6535 + for (var name in all)
6536 + __defProp(target, name, { get: all[name], enumerable: true });
6537 +};
6538 +var __copyProps = (to, from, except, desc) => {
6539 + if (from && typeof from === "object" || typeof from === "function") {
6540 + for (let key of __getOwnPropNames(from))
6541 + if (!__hasOwnProp.call(to, key) && key !== except)
6542 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6543 + }
6544 + return to;
6545 +};
6546 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6547 +
6548 +// src/utils.ts
6549 +var utils_exports = {};
6550 +__export(utils_exports, {
6551 + addToEnd: () => addToEnd,
6552 + addToStart: () => addToStart,
6553 + ensureQueryFn: () => ensureQueryFn,
6554 + functionalUpdate: () => functionalUpdate,
6555 + hashKey: () => hashKey,
6556 + hashQueryKeyByOptions: () => hashQueryKeyByOptions,
6557 + isPlainArray: () => isPlainArray,
6558 + isPlainObject: () => isPlainObject,
6559 + isServer: () => isServer,
6560 + isValidTimeout: () => isValidTimeout,
6561 + keepPreviousData: () => keepPreviousData,
6562 + matchMutation: () => matchMutation,
6563 + matchQuery: () => matchQuery,
6564 + noop: () => noop,
6565 + partialMatchKey: () => partialMatchKey,
6566 + replaceData: () => replaceData,
6567 + replaceEqualDeep: () => replaceEqualDeep,
6568 + resolveEnabled: () => resolveEnabled,
6569 + resolveStaleTime: () => resolveStaleTime,
6570 + shallowEqualObjects: () => shallowEqualObjects,
6571 + skipToken: () => skipToken,
6572 + sleep: () => sleep,
6573 + timeUntilStale: () => timeUntilStale
6574 +});
6575 +module.exports = __toCommonJS(utils_exports);
6576 +var isServer = typeof window === "undefined" || "Deno" in globalThis;
6577 +function noop() {
6578 + return void 0;
6579 +}
6580 +function functionalUpdate(updater, input) {
6581 + return typeof updater === "function" ? updater(input) : updater;
6582 +}
6583 +function isValidTimeout(value) {
6584 + return typeof value === "number" && value >= 0 && value !== Infinity;
6585 +}
6586 +function timeUntilStale(updatedAt, staleTime) {
6587 + return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
6588 +}
6589 +function resolveStaleTime(staleTime, query) {
6590 + return typeof staleTime === "function" ? staleTime(query) : staleTime;
6591 +}
6592 +function resolveEnabled(enabled, query) {
6593 + return typeof enabled === "function" ? enabled(query) : enabled;
6594 +}
6595 +function matchQuery(filters, query) {
6596 + const {
6597 + type = "all",
6598 + exact,
6599 + fetchStatus,
6600 + predicate,
6601 + queryKey,
6602 + stale
6603 + } = filters;
6604 + if (queryKey) {
6605 + if (exact) {
6606 + if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {
6607 + return false;
6608 + }
6609 + } else if (!partialMatchKey(query.queryKey, queryKey)) {
6610 + return false;
6611 + }
6612 + }
6613 + if (type !== "all") {
6614 + const isActive = query.isActive();
6615 + if (type === "active" && !isActive) {
6616 + return false;
6617 + }
6618 + if (type === "inactive" && isActive) {
6619 + return false;
6620 + }
6621 + }
6622 + if (typeof stale === "boolean" && query.isStale() !== stale) {
6623 + return false;
6624 + }
6625 + if (fetchStatus && fetchStatus !== query.state.fetchStatus) {
6626 + return false;
6627 + }
6628 + if (predicate && !predicate(query)) {
6629 + return false;
6630 + }
6631 + return true;
6632 +}
6633 +function matchMutation(filters, mutation) {
6634 + const { exact, status, predicate, mutationKey } = filters;
6635 + if (mutationKey) {
6636 + if (!mutation.options.mutationKey) {
6637 + return false;
6638 + }
6639 + if (exact) {
6640 + if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {
6641 + return false;
6642 + }
6643 + } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {
6644 + return false;
6645 + }
6646 + }
6647 + if (status && mutation.state.status !== status) {
6648 + return false;
6649 + }
6650 + if (predicate && !predicate(mutation)) {
6651 + return false;
6652 + }
6653 + return true;
6654 +}
6655 +function hashQueryKeyByOptions(queryKey, options) {
6656 + const hashFn = options?.queryKeyHashFn || hashKey;
6657 + return hashFn(queryKey);
6658 +}
6659 +function hashKey(queryKey) {
6660 + return JSON.stringify(
6661 + queryKey,
6662 + (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
6663 + result[key] = val[key];
6664 + return result;
6665 + }, {}) : val
6666 + );
6667 +}
6668 +function partialMatchKey(a, b) {
6669 + if (a === b) {
6670 + return true;
6671 + }
6672 + if (typeof a !== typeof b) {
6673 + return false;
6674 + }
6675 + if (a && b && typeof a === "object" && typeof b === "object") {
6676 + return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
6677 + }
6678 + return false;
6679 +}
6680 +function replaceEqualDeep(a, b) {
6681 + if (a === b) {
6682 + return a;
6683 + }
6684 + const array = isPlainArray(a) && isPlainArray(b);
6685 + if (array || isPlainObject(a) && isPlainObject(b)) {
6686 + const aItems = array ? a : Object.keys(a);
6687 + const aSize = aItems.length;
6688 + const bItems = array ? b : Object.keys(b);
6689 + const bSize = bItems.length;
6690 + const copy = array ? [] : {};
6691 + let equalItems = 0;
6692 + for (let i = 0; i < bSize; i++) {
6693 + const key = array ? i : bItems[i];
6694 + if ((!array && aItems.includes(key) || array) && a[key] === void 0 && b[key] === void 0) {
6695 + copy[key] = void 0;
6696 + equalItems++;
6697 + } else {
6698 + copy[key] = replaceEqualDeep(a[key], b[key]);
6699 + if (copy[key] === a[key] && a[key] !== void 0) {
6700 + equalItems++;
6701 + }
6702 + }
6703 + }
6704 + return aSize === bSize && equalItems === aSize ? a : copy;
6705 + }
6706 + return b;
6707 +}
6708 +function shallowEqualObjects(a, b) {
6709 + if (!b || Object.keys(a).length !== Object.keys(b).length) {
6710 + return false;
6711 + }
6712 + for (const key in a) {
6713 + if (a[key] !== b[key]) {
6714 + return false;
6715 + }
6716 + }
6717 + return true;
6718 +}
6719 +function isPlainArray(value) {
6720 + return Array.isArray(value) && value.length === Object.keys(value).length;
6721 +}
6722 +function isPlainObject(o) {
6723 + if (!hasObjectPrototype(o)) {
6724 + return false;
6725 + }
6726 + const ctor = o.constructor;
6727 + if (ctor === void 0) {
6728 + return true;
6729 + }
6730 + const prot = ctor.prototype;
6731 + if (!hasObjectPrototype(prot)) {
6732 + return false;
6733 + }
6734 + if (!prot.hasOwnProperty("isPrototypeOf")) {
6735 + return false;
6736 + }
6737 + if (Object.getPrototypeOf(o) !== Object.prototype) {
6738 + return false;
6739 + }
6740 + return true;
6741 +}
6742 +function hasObjectPrototype(o) {
6743 + return Object.prototype.toString.call(o) === "[object Object]";
6744 +}
6745 +function sleep(ms) {
6746 + return new Promise((resolve) => {
6747 + setTimeout(resolve, ms);
6748 + });
6749 +}
6750 +function replaceData(prevData, data, options) {
6751 + if (typeof options.structuralSharing === "function") {
6752 + return options.structuralSharing(prevData, data);
6753 + } else if (options.structuralSharing !== false) {
6754 + return replaceEqualDeep(prevData, data);
6755 + }
6756 + return data;
6757 +}
6758 +function keepPreviousData(previousData) {
6759 + return previousData;
6760 +}
6761 +function addToEnd(items, item, max = 0) {
6762 + const newItems = [...items, item];
6763 + return max && newItems.length > max ? newItems.slice(1) : newItems;
6764 +}
6765 +function addToStart(items, item, max = 0) {
6766 + const newItems = [item, ...items];
6767 + return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
6768 +}
6769 +var skipToken = Symbol();
6770 +var ensureQueryFn = (options, fetchOptions) => {
6771 + if (true) {
6772 + if (options.queryFn === skipToken) {
6773 + console.error(
6774 + `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`
6775 + );
6776 + }
6777 + }
6778 + if (!options.queryFn && fetchOptions?.initialPromise) {
6779 + return () => fetchOptions.initialPromise;
6780 + }
6781 + if (!options.queryFn || options.queryFn === skipToken) {
6782 + return () => Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`));
6783 + }
6784 + return options.queryFn;
6785 +};
6786 +// Annotate the CommonJS export names for ESM import in node:
6787 +0 && (0);
6788 +//# sourceMappingURL=utils.cjs.map
6789 +
6790 +/***/ }),
6791 +
6792 +/***/ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs":
6793 +/*!********************************************************************************!*\
6794 + !*** ../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs ***!
6795 + \********************************************************************************/
6796 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6797 +
6798 +"use strict";
6799 +
6800 +"use client";
6801 +var __create = Object.create;
6802 +var __defProp = Object.defineProperty;
6803 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6804 +var __getOwnPropNames = Object.getOwnPropertyNames;
6805 +var __getProtoOf = Object.getPrototypeOf;
6806 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6807 +var __export = (target, all) => {
6808 + for (var name in all)
6809 + __defProp(target, name, { get: all[name], enumerable: true });
6810 +};
6811 +var __copyProps = (to, from, except, desc) => {
6812 + if (from && typeof from === "object" || typeof from === "function") {
6813 + for (let key of __getOwnPropNames(from))
6814 + if (!__hasOwnProp.call(to, key) && key !== except)
6815 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6816 + }
6817 + return to;
6818 +};
6819 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6820 + // If the importer is in node compatibility mode or this is not an ESM
6821 + // file that has been converted to a CommonJS file using a Babel-
6822 + // compatible transform (i.e. "__esModule" has not been set), then set
6823 + // "default" to the CommonJS "module.exports" for node compatibility.
6824 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6825 + mod
6826 +));
6827 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6828 +
6829 +// src/HydrationBoundary.tsx
6830 +var HydrationBoundary_exports = {};
6831 +__export(HydrationBoundary_exports, {
6832 + HydrationBoundary: () => HydrationBoundary
6833 +});
6834 +module.exports = __toCommonJS(HydrationBoundary_exports);
6835 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6836 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6837 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6838 +var HydrationBoundary = ({
6839 + children,
6840 + options = {},
6841 + state,
6842 + queryClient
6843 +}) => {
6844 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6845 + const [hydrationQueue, setHydrationQueue] = React.useState();
6846 + const optionsRef = React.useRef(options);
6847 + optionsRef.current = options;
6848 + React.useMemo(() => {
6849 + if (state) {
6850 + if (typeof state !== "object") {
6851 + return;
6852 + }
6853 + const queryCache = client.getQueryCache();
6854 + const queries = state.queries || [];
6855 + const newQueries = [];
6856 + const existingQueries = [];
6857 + for (const dehydratedQuery of queries) {
6858 + const existingQuery = queryCache.get(dehydratedQuery.queryHash);
6859 + if (!existingQuery) {
6860 + newQueries.push(dehydratedQuery);
6861 + } else {
6862 + const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt;
6863 + const queryAlreadyQueued = hydrationQueue?.find(
6864 + (query) => query.queryHash === dehydratedQuery.queryHash
6865 + );
6866 + if (hydrationIsNewer && (!queryAlreadyQueued || dehydratedQuery.state.dataUpdatedAt > queryAlreadyQueued.state.dataUpdatedAt)) {
6867 + existingQueries.push(dehydratedQuery);
6868 + }
6869 + }
6870 + }
6871 + if (newQueries.length > 0) {
6872 + (0, import_query_core.hydrate)(client, { queries: newQueries }, optionsRef.current);
6873 + }
6874 + if (existingQueries.length > 0) {
6875 + setHydrationQueue(
6876 + (prev) => prev ? [...prev, ...existingQueries] : existingQueries
6877 + );
6878 + }
6879 + }
6880 + }, [client, hydrationQueue, state]);
6881 + React.useEffect(() => {
6882 + if (hydrationQueue) {
6883 + (0, import_query_core.hydrate)(client, { queries: hydrationQueue }, optionsRef.current);
6884 + setHydrationQueue(void 0);
6885 + }
6886 + }, [client, hydrationQueue]);
6887 + return children;
6888 +};
6889 +// Annotate the CommonJS export names for ESM import in node:
6890 +0 && (0);
6891 +//# sourceMappingURL=HydrationBoundary.cjs.map
6892 +
6893 +/***/ }),
6894 +
6895 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs":
6896 +/*!**********************************************************************************!*\
6897 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs ***!
6898 + \**********************************************************************************/
6899 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6900 +
6901 +"use strict";
6902 +
6903 +"use client";
6904 +var __create = Object.create;
6905 +var __defProp = Object.defineProperty;
6906 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6907 +var __getOwnPropNames = Object.getOwnPropertyNames;
6908 +var __getProtoOf = Object.getPrototypeOf;
6909 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6910 +var __export = (target, all) => {
6911 + for (var name in all)
6912 + __defProp(target, name, { get: all[name], enumerable: true });
6913 +};
6914 +var __copyProps = (to, from, except, desc) => {
6915 + if (from && typeof from === "object" || typeof from === "function") {
6916 + for (let key of __getOwnPropNames(from))
6917 + if (!__hasOwnProp.call(to, key) && key !== except)
6918 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6919 + }
6920 + return to;
6921 +};
6922 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6923 + // If the importer is in node compatibility mode or this is not an ESM
6924 + // file that has been converted to a CommonJS file using a Babel-
6925 + // compatible transform (i.e. "__esModule" has not been set), then set
6926 + // "default" to the CommonJS "module.exports" for node compatibility.
6927 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6928 + mod
6929 +));
6930 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6931 +
6932 +// src/QueryClientProvider.tsx
6933 +var QueryClientProvider_exports = {};
6934 +__export(QueryClientProvider_exports, {
6935 + QueryClientContext: () => QueryClientContext,
6936 + QueryClientProvider: () => QueryClientProvider,
6937 + useQueryClient: () => useQueryClient
6938 +});
6939 +module.exports = __toCommonJS(QueryClientProvider_exports);
6940 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6941 +var import_jsx_runtime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
6942 +var QueryClientContext = React.createContext(
6943 + void 0
6944 +);
6945 +var useQueryClient = (queryClient) => {
6946 + const client = React.useContext(QueryClientContext);
6947 + if (queryClient) {
6948 + return queryClient;
6949 + }
6950 + if (!client) {
6951 + throw new Error("No QueryClient set, use QueryClientProvider to set one");
6952 + }
6953 + return client;
6954 +};
6955 +var QueryClientProvider = ({
6956 + client,
6957 + children
6958 +}) => {
6959 + React.useEffect(() => {
6960 + client.mount();
6961 + return () => {
6962 + client.unmount();
6963 + };
6964 + }, [client]);
6965 + return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryClientContext.Provider, { value: client, children });
6966 +};
6967 +// Annotate the CommonJS export names for ESM import in node:
6968 +0 && (0);
6969 +//# sourceMappingURL=QueryClientProvider.cjs.map
6970 +
6971 +/***/ }),
6972 +
6973 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs":
6974 +/*!**************************************************************************************!*\
6975 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs ***!
6976 + \**************************************************************************************/
6977 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6978 +
6979 +"use strict";
6980 +
6981 +"use client";
6982 +var __create = Object.create;
6983 +var __defProp = Object.defineProperty;
6984 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6985 +var __getOwnPropNames = Object.getOwnPropertyNames;
6986 +var __getProtoOf = Object.getPrototypeOf;
6987 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6988 +var __export = (target, all) => {
6989 + for (var name in all)
6990 + __defProp(target, name, { get: all[name], enumerable: true });
6991 +};
6992 +var __copyProps = (to, from, except, desc) => {
6993 + if (from && typeof from === "object" || typeof from === "function") {
6994 + for (let key of __getOwnPropNames(from))
6995 + if (!__hasOwnProp.call(to, key) && key !== except)
6996 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6997 + }
6998 + return to;
6999 +};
7000 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7001 + // If the importer is in node compatibility mode or this is not an ESM
7002 + // file that has been converted to a CommonJS file using a Babel-
7003 + // compatible transform (i.e. "__esModule" has not been set), then set
7004 + // "default" to the CommonJS "module.exports" for node compatibility.
7005 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7006 + mod
7007 +));
7008 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7009 +
7010 +// src/QueryErrorResetBoundary.tsx
7011 +var QueryErrorResetBoundary_exports = {};
7012 +__export(QueryErrorResetBoundary_exports, {
7013 + QueryErrorResetBoundary: () => QueryErrorResetBoundary,
7014 + useQueryErrorResetBoundary: () => useQueryErrorResetBoundary
7015 +});
7016 +module.exports = __toCommonJS(QueryErrorResetBoundary_exports);
7017 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7018 +var import_jsx_runtime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
7019 +function createValue() {
7020 + let isReset = false;
7021 + return {
7022 + clearReset: () => {
7023 + isReset = false;
7024 + },
7025 + reset: () => {
7026 + isReset = true;
7027 + },
7028 + isReset: () => {
7029 + return isReset;
7030 + }
7031 + };
7032 +}
7033 +var QueryErrorResetBoundaryContext = React.createContext(createValue());
7034 +var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);
7035 +var QueryErrorResetBoundary = ({
7036 + children
7037 +}) => {
7038 + const [value] = React.useState(() => createValue());
7039 + return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryErrorResetBoundaryContext.Provider, { value, children: typeof children === "function" ? children(value) : children });
7040 +};
7041 +// Annotate the CommonJS export names for ESM import in node:
7042 +0 && (0);
7043 +//# sourceMappingURL=QueryErrorResetBoundary.cjs.map
7044 +
7045 +/***/ }),
7046 +
7047 +/***/ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs":
7048 +/*!*********************************************************************************!*\
7049 + !*** ../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs ***!
7050 + \*********************************************************************************/
7051 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7052 +
7053 +"use strict";
7054 +
7055 +"use client";
7056 +var __create = Object.create;
7057 +var __defProp = Object.defineProperty;
7058 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7059 +var __getOwnPropNames = Object.getOwnPropertyNames;
7060 +var __getProtoOf = Object.getPrototypeOf;
7061 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7062 +var __export = (target, all) => {
7063 + for (var name in all)
7064 + __defProp(target, name, { get: all[name], enumerable: true });
7065 +};
7066 +var __copyProps = (to, from, except, desc) => {
7067 + if (from && typeof from === "object" || typeof from === "function") {
7068 + for (let key of __getOwnPropNames(from))
7069 + if (!__hasOwnProp.call(to, key) && key !== except)
7070 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7071 + }
7072 + return to;
7073 +};
7074 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7075 + // If the importer is in node compatibility mode or this is not an ESM
7076 + // file that has been converted to a CommonJS file using a Babel-
7077 + // compatible transform (i.e. "__esModule" has not been set), then set
7078 + // "default" to the CommonJS "module.exports" for node compatibility.
7079 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7080 + mod
7081 +));
7082 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7083 +
7084 +// src/errorBoundaryUtils.ts
7085 +var errorBoundaryUtils_exports = {};
7086 +__export(errorBoundaryUtils_exports, {
7087 + ensurePreventErrorBoundaryRetry: () => ensurePreventErrorBoundaryRetry,
7088 + getHasError: () => getHasError,
7089 + useClearResetErrorBoundary: () => useClearResetErrorBoundary
7090 +});
7091 +module.exports = __toCommonJS(errorBoundaryUtils_exports);
7092 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7093 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
7094 +var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
7095 + if (options.suspense || options.throwOnError) {
7096 + if (!errorResetBoundary.isReset()) {
7097 + options.retryOnMount = false;
7098 + }
7099 + }
7100 +};
7101 +var useClearResetErrorBoundary = (errorResetBoundary) => {
7102 + React.useEffect(() => {
7103 + errorResetBoundary.clearReset();
7104 + }, [errorResetBoundary]);
7105 +};
7106 +var getHasError = ({
7107 + result,
7108 + errorResetBoundary,
7109 + throwOnError,
7110 + query
7111 +}) => {
7112 + return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (0, import_utils.shouldThrowError)(throwOnError, [result.error, query]);
7113 +};
7114 +// Annotate the CommonJS export names for ESM import in node:
7115 +0 && (0);
7116 +//# sourceMappingURL=errorBoundaryUtils.cjs.map
7117 +
7118 +/***/ }),
7119 +
7120 +/***/ "../node_modules/@tanstack/react-query/build/modern/index.cjs":
7121 +/*!********************************************************************!*\
7122 + !*** ../node_modules/@tanstack/react-query/build/modern/index.cjs ***!
7123 + \********************************************************************/
7124 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7125 +
7126 +"use strict";
7127 +
7128 +var __defProp = Object.defineProperty;
7129 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7130 +var __getOwnPropNames = Object.getOwnPropertyNames;
7131 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7132 +var __export = (target, all) => {
7133 + for (var name in all)
7134 + __defProp(target, name, { get: all[name], enumerable: true });
7135 +};
7136 +var __copyProps = (to, from, except, desc) => {
7137 + if (from && typeof from === "object" || typeof from === "function") {
7138 + for (let key of __getOwnPropNames(from))
7139 + if (!__hasOwnProp.call(to, key) && key !== except)
7140 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7141 + }
7142 + return to;
7143 +};
7144 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
7145 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7146 +
7147 +// src/index.ts
7148 +var src_exports = {};
7149 +__export(src_exports, {
7150 + HydrationBoundary: () => import_HydrationBoundary.HydrationBoundary,
7151 + IsRestoringProvider: () => import_isRestoring.IsRestoringProvider,
7152 + QueryClientContext: () => import_QueryClientProvider.QueryClientContext,
7153 + QueryClientProvider: () => import_QueryClientProvider.QueryClientProvider,
7154 + QueryErrorResetBoundary: () => import_QueryErrorResetBoundary.QueryErrorResetBoundary,
7155 + infiniteQueryOptions: () => import_infiniteQueryOptions.infiniteQueryOptions,
7156 + queryOptions: () => import_queryOptions.queryOptions,
7157 + useInfiniteQuery: () => import_useInfiniteQuery.useInfiniteQuery,
7158 + useIsFetching: () => import_useIsFetching.useIsFetching,
7159 + useIsMutating: () => import_useMutationState.useIsMutating,
7160 + useIsRestoring: () => import_isRestoring.useIsRestoring,
7161 + useMutation: () => import_useMutation.useMutation,
7162 + useMutationState: () => import_useMutationState.useMutationState,
7163 + usePrefetchInfiniteQuery: () => import_prefetch.usePrefetchInfiniteQuery,
7164 + usePrefetchQuery: () => import_prefetch.usePrefetchQuery,
7165 + useQueries: () => import_useQueries.useQueries,
7166 + useQuery: () => import_useQuery.useQuery,
7167 + useQueryClient: () => import_QueryClientProvider.useQueryClient,
7168 + useQueryErrorResetBoundary: () => import_QueryErrorResetBoundary.useQueryErrorResetBoundary,
7169 + useSuspenseInfiniteQuery: () => import_useSuspenseInfiniteQuery.useSuspenseInfiniteQuery,
7170 + useSuspenseQueries: () => import_useSuspenseQueries.useSuspenseQueries,
7171 + useSuspenseQuery: () => import_useSuspenseQuery.useSuspenseQuery
7172 +});
7173 +module.exports = __toCommonJS(src_exports);
7174 +__reExport(src_exports, __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs"), module.exports);
7175 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/react-query/build/modern/types.cjs"), module.exports);
7176 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
7177 +var import_useQuery = __webpack_require__(/*! ./useQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs");
7178 +var import_useSuspenseQuery = __webpack_require__(/*! ./useSuspenseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs");
7179 +var import_useSuspenseInfiniteQuery = __webpack_require__(/*! ./useSuspenseInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs");
7180 +var import_useSuspenseQueries = __webpack_require__(/*! ./useSuspenseQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs");
7181 +var import_prefetch = __webpack_require__(/*! ./prefetch.cjs */ "../node_modules/@tanstack/react-query/build/modern/prefetch.cjs");
7182 +var import_queryOptions = __webpack_require__(/*! ./queryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs");
7183 +var import_infiniteQueryOptions = __webpack_require__(/*! ./infiniteQueryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs");
7184 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7185 +var import_HydrationBoundary = __webpack_require__(/*! ./HydrationBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs");
7186 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7187 +var import_useIsFetching = __webpack_require__(/*! ./useIsFetching.cjs */ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs");
7188 +var import_useMutationState = __webpack_require__(/*! ./useMutationState.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs");
7189 +var import_useMutation = __webpack_require__(/*! ./useMutation.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs");
7190 +var import_useInfiniteQuery = __webpack_require__(/*! ./useInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs");
7191 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7192 +// Annotate the CommonJS export names for ESM import in node:
7193 +0 && (0);
7194 +//# sourceMappingURL=index.cjs.map
7195 +
7196 +/***/ }),
7197 +
7198 +/***/ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs":
7199 +/*!***********************************************************************************!*\
7200 + !*** ../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs ***!
7201 + \***********************************************************************************/
7202 +/***/ ((module) => {
7203 +
7204 +"use strict";
7205 +
7206 +var __defProp = Object.defineProperty;
7207 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7208 +var __getOwnPropNames = Object.getOwnPropertyNames;
7209 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7210 +var __export = (target, all) => {
7211 + for (var name in all)
7212 + __defProp(target, name, { get: all[name], enumerable: true });
7213 +};
7214 +var __copyProps = (to, from, except, desc) => {
7215 + if (from && typeof from === "object" || typeof from === "function") {
7216 + for (let key of __getOwnPropNames(from))
7217 + if (!__hasOwnProp.call(to, key) && key !== except)
7218 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7219 + }
7220 + return to;
7221 +};
7222 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7223 +
7224 +// src/infiniteQueryOptions.ts
7225 +var infiniteQueryOptions_exports = {};
7226 +__export(infiniteQueryOptions_exports, {
7227 + infiniteQueryOptions: () => infiniteQueryOptions
7228 +});
7229 +module.exports = __toCommonJS(infiniteQueryOptions_exports);
7230 +function infiniteQueryOptions(options) {
7231 + return options;
7232 +}
7233 +// Annotate the CommonJS export names for ESM import in node:
7234 +0 && (0);
7235 +//# sourceMappingURL=infiniteQueryOptions.cjs.map
7236 +
7237 +/***/ }),
7238 +
7239 +/***/ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs":
7240 +/*!**************************************************************************!*\
7241 + !*** ../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs ***!
7242 + \**************************************************************************/
7243 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7244 +
7245 +"use strict";
7246 +
7247 +"use client";
7248 +var __create = Object.create;
7249 +var __defProp = Object.defineProperty;
7250 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7251 +var __getOwnPropNames = Object.getOwnPropertyNames;
7252 +var __getProtoOf = Object.getPrototypeOf;
7253 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7254 +var __export = (target, all) => {
7255 + for (var name in all)
7256 + __defProp(target, name, { get: all[name], enumerable: true });
7257 +};
7258 +var __copyProps = (to, from, except, desc) => {
7259 + if (from && typeof from === "object" || typeof from === "function") {
7260 + for (let key of __getOwnPropNames(from))
7261 + if (!__hasOwnProp.call(to, key) && key !== except)
7262 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7263 + }
7264 + return to;
7265 +};
7266 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7267 + // If the importer is in node compatibility mode or this is not an ESM
7268 + // file that has been converted to a CommonJS file using a Babel-
7269 + // compatible transform (i.e. "__esModule" has not been set), then set
7270 + // "default" to the CommonJS "module.exports" for node compatibility.
7271 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7272 + mod
7273 +));
7274 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7275 +
7276 +// src/isRestoring.ts
7277 +var isRestoring_exports = {};
7278 +__export(isRestoring_exports, {
7279 + IsRestoringProvider: () => IsRestoringProvider,
7280 + useIsRestoring: () => useIsRestoring
7281 +});
7282 +module.exports = __toCommonJS(isRestoring_exports);
7283 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7284 +var IsRestoringContext = React.createContext(false);
7285 +var useIsRestoring = () => React.useContext(IsRestoringContext);
7286 +var IsRestoringProvider = IsRestoringContext.Provider;
7287 +// Annotate the CommonJS export names for ESM import in node:
7288 +0 && (0);
7289 +//# sourceMappingURL=isRestoring.cjs.map
7290 +
7291 +/***/ }),
7292 +
7293 +/***/ "../node_modules/@tanstack/react-query/build/modern/prefetch.cjs":
7294 +/*!***********************************************************************!*\
7295 + !*** ../node_modules/@tanstack/react-query/build/modern/prefetch.cjs ***!
7296 + \***********************************************************************/
7297 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7298 +
7299 +"use strict";
7300 +
7301 +var __defProp = Object.defineProperty;
7302 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7303 +var __getOwnPropNames = Object.getOwnPropertyNames;
7304 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7305 +var __export = (target, all) => {
7306 + for (var name in all)
7307 + __defProp(target, name, { get: all[name], enumerable: true });
7308 +};
7309 +var __copyProps = (to, from, except, desc) => {
7310 + if (from && typeof from === "object" || typeof from === "function") {
7311 + for (let key of __getOwnPropNames(from))
7312 + if (!__hasOwnProp.call(to, key) && key !== except)
7313 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7314 + }
7315 + return to;
7316 +};
7317 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7318 +
7319 +// src/prefetch.ts
7320 +var prefetch_exports = {};
7321 +__export(prefetch_exports, {
7322 + usePrefetchInfiniteQuery: () => usePrefetchInfiniteQuery,
7323 + usePrefetchQuery: () => usePrefetchQuery
7324 +});
7325 +module.exports = __toCommonJS(prefetch_exports);
7326 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7327 +function usePrefetchQuery(options) {
7328 + const queryClient = (0, import_QueryClientProvider.useQueryClient)();
7329 + if (!queryClient.getQueryState(options.queryKey)) {
7330 + queryClient.prefetchQuery(options);
7331 + }
7332 +}
7333 +function usePrefetchInfiniteQuery(options) {
7334 + const queryClient = (0, import_QueryClientProvider.useQueryClient)();
7335 + if (!queryClient.getQueryState(options.queryKey)) {
7336 + queryClient.prefetchInfiniteQuery(options);
7337 + }
7338 +}
7339 +// Annotate the CommonJS export names for ESM import in node:
7340 +0 && (0);
7341 +//# sourceMappingURL=prefetch.cjs.map
7342 +
7343 +/***/ }),
7344 +
7345 +/***/ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs":
7346 +/*!***************************************************************************!*\
7347 + !*** ../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs ***!
7348 + \***************************************************************************/
7349 +/***/ ((module) => {
7350 +
7351 +"use strict";
7352 +
7353 +var __defProp = Object.defineProperty;
7354 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7355 +var __getOwnPropNames = Object.getOwnPropertyNames;
7356 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7357 +var __export = (target, all) => {
7358 + for (var name in all)
7359 + __defProp(target, name, { get: all[name], enumerable: true });
7360 +};
7361 +var __copyProps = (to, from, except, desc) => {
7362 + if (from && typeof from === "object" || typeof from === "function") {
7363 + for (let key of __getOwnPropNames(from))
7364 + if (!__hasOwnProp.call(to, key) && key !== except)
7365 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7366 + }
7367 + return to;
7368 +};
7369 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7370 +
7371 +// src/queryOptions.ts
7372 +var queryOptions_exports = {};
7373 +__export(queryOptions_exports, {
7374 + queryOptions: () => queryOptions
7375 +});
7376 +module.exports = __toCommonJS(queryOptions_exports);
7377 +function queryOptions(options) {
7378 + return options;
7379 +}
7380 +// Annotate the CommonJS export names for ESM import in node:
7381 +0 && (0);
7382 +//# sourceMappingURL=queryOptions.cjs.map
7383 +
7384 +/***/ }),
7385 +
7386 +/***/ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs":
7387 +/*!***********************************************************************!*\
7388 + !*** ../node_modules/@tanstack/react-query/build/modern/suspense.cjs ***!
7389 + \***********************************************************************/
7390 +/***/ ((module) => {
7391 +
7392 +"use strict";
7393 +
7394 +var __defProp = Object.defineProperty;
7395 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7396 +var __getOwnPropNames = Object.getOwnPropertyNames;
7397 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7398 +var __export = (target, all) => {
7399 + for (var name in all)
7400 + __defProp(target, name, { get: all[name], enumerable: true });
7401 +};
7402 +var __copyProps = (to, from, except, desc) => {
7403 + if (from && typeof from === "object" || typeof from === "function") {
7404 + for (let key of __getOwnPropNames(from))
7405 + if (!__hasOwnProp.call(to, key) && key !== except)
7406 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7407 + }
7408 + return to;
7409 +};
7410 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7411 +
7412 +// src/suspense.ts
7413 +var suspense_exports = {};
7414 +__export(suspense_exports, {
7415 + defaultThrowOnError: () => defaultThrowOnError,
7416 + ensureStaleTime: () => ensureStaleTime,
7417 + fetchOptimistic: () => fetchOptimistic,
7418 + shouldSuspend: () => shouldSuspend,
7419 + willFetch: () => willFetch
7420 +});
7421 +module.exports = __toCommonJS(suspense_exports);
7422 +var defaultThrowOnError = (_error, query) => query.state.data === void 0;
7423 +var ensureStaleTime = (defaultedOptions) => {
7424 + if (defaultedOptions.suspense) {
7425 + if (typeof defaultedOptions.staleTime !== "number") {
7426 + defaultedOptions.staleTime = 1e3;
7427 + }
7428 + }
7429 +};
7430 +var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
7431 +var shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;
7432 +var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
7433 + errorResetBoundary.clearReset();
7434 +});
7435 +// Annotate the CommonJS export names for ESM import in node:
7436 +0 && (0);
7437 +//# sourceMappingURL=suspense.cjs.map
7438 +
7439 +/***/ }),
7440 +
7441 +/***/ "../node_modules/@tanstack/react-query/build/modern/types.cjs":
7442 +/*!********************************************************************!*\
7443 + !*** ../node_modules/@tanstack/react-query/build/modern/types.cjs ***!
7444 + \********************************************************************/
7445 +/***/ ((module) => {
7446 +
7447 +"use strict";
7448 +
7449 +var __defProp = Object.defineProperty;
7450 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7451 +var __getOwnPropNames = Object.getOwnPropertyNames;
7452 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7453 +var __copyProps = (to, from, except, desc) => {
7454 + if (from && typeof from === "object" || typeof from === "function") {
7455 + for (let key of __getOwnPropNames(from))
7456 + if (!__hasOwnProp.call(to, key) && key !== except)
7457 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7458 + }
7459 + return to;
7460 +};
7461 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7462 +
7463 +// src/types.ts
7464 +var types_exports = {};
7465 +module.exports = __toCommonJS(types_exports);
7466 +//# sourceMappingURL=types.cjs.map
7467 +
7468 +/***/ }),
7469 +
7470 +/***/ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs":
7471 +/*!***************************************************************************!*\
7472 + !*** ../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs ***!
7473 + \***************************************************************************/
7474 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7475 +
7476 +"use strict";
7477 +
7478 +"use client";
7479 +var __create = Object.create;
7480 +var __defProp = Object.defineProperty;
7481 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7482 +var __getOwnPropNames = Object.getOwnPropertyNames;
7483 +var __getProtoOf = Object.getPrototypeOf;
7484 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7485 +var __export = (target, all) => {
7486 + for (var name in all)
7487 + __defProp(target, name, { get: all[name], enumerable: true });
7488 +};
7489 +var __copyProps = (to, from, except, desc) => {
7490 + if (from && typeof from === "object" || typeof from === "function") {
7491 + for (let key of __getOwnPropNames(from))
7492 + if (!__hasOwnProp.call(to, key) && key !== except)
7493 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7494 + }
7495 + return to;
7496 +};
7497 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7498 + // If the importer is in node compatibility mode or this is not an ESM
7499 + // file that has been converted to a CommonJS file using a Babel-
7500 + // compatible transform (i.e. "__esModule" has not been set), then set
7501 + // "default" to the CommonJS "module.exports" for node compatibility.
7502 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7503 + mod
7504 +));
7505 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7506 +
7507 +// src/useBaseQuery.ts
7508 +var useBaseQuery_exports = {};
7509 +__export(useBaseQuery_exports, {
7510 + useBaseQuery: () => useBaseQuery
7511 +});
7512 +module.exports = __toCommonJS(useBaseQuery_exports);
7513 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7514 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7515 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7516 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7517 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7518 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
7519 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
7520 +function useBaseQuery(options, Observer, queryClient) {
7521 + if (true) {
7522 + if (typeof options !== "object" || Array.isArray(options)) {
7523 + throw new Error(
7524 + 'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
7525 + );
7526 + }
7527 + }
7528 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7529 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
7530 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
7531 + const defaultedOptions = client.defaultQueryOptions(options);
7532 + client.getDefaultOptions().queries?._experimental_beforeQuery?.(
7533 + defaultedOptions
7534 + );
7535 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
7536 + (0, import_suspense.ensureStaleTime)(defaultedOptions);
7537 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(defaultedOptions, errorResetBoundary);
7538 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
7539 + const [observer] = React.useState(
7540 + () => new Observer(
7541 + client,
7542 + defaultedOptions
7543 + )
7544 + );
7545 + const result = observer.getOptimisticResult(defaultedOptions);
7546 + React.useSyncExternalStore(
7547 + React.useCallback(
7548 + (onStoreChange) => {
7549 + const unsubscribe = isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange));
7550 + observer.updateResult();
7551 + return unsubscribe;
7552 + },
7553 + [observer, isRestoring]
7554 + ),
7555 + () => observer.getCurrentResult(),
7556 + () => observer.getCurrentResult()
7557 + );
7558 + React.useEffect(() => {
7559 + observer.setOptions(defaultedOptions, { listeners: false });
7560 + }, [defaultedOptions, observer]);
7561 + if ((0, import_suspense.shouldSuspend)(defaultedOptions, result)) {
7562 + throw (0, import_suspense.fetchOptimistic)(defaultedOptions, observer, errorResetBoundary);
7563 + }
7564 + if ((0, import_errorBoundaryUtils.getHasError)({
7565 + result,
7566 + errorResetBoundary,
7567 + throwOnError: defaultedOptions.throwOnError,
7568 + query: client.getQueryCache().get(defaultedOptions.queryHash)
7569 + })) {
7570 + throw result.error;
7571 + }
7572 + ;
7573 + client.getDefaultOptions().queries?._experimental_afterQuery?.(
7574 + defaultedOptions,
7575 + result
7576 + );
7577 + return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
7578 +}
7579 +// Annotate the CommonJS export names for ESM import in node:
7580 +0 && (0);
7581 +//# sourceMappingURL=useBaseQuery.cjs.map
7582 +
7583 +/***/ }),
7584 +
7585 +/***/ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs":
7586 +/*!*******************************************************************************!*\
7587 + !*** ../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs ***!
7588 + \*******************************************************************************/
7589 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7590 +
7591 +"use strict";
7592 +
7593 +"use client";
7594 +var __defProp = Object.defineProperty;
7595 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7596 +var __getOwnPropNames = Object.getOwnPropertyNames;
7597 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7598 +var __export = (target, all) => {
7599 + for (var name in all)
7600 + __defProp(target, name, { get: all[name], enumerable: true });
7601 +};
7602 +var __copyProps = (to, from, except, desc) => {
7603 + if (from && typeof from === "object" || typeof from === "function") {
7604 + for (let key of __getOwnPropNames(from))
7605 + if (!__hasOwnProp.call(to, key) && key !== except)
7606 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7607 + }
7608 + return to;
7609 +};
7610 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7611 +
7612 +// src/useInfiniteQuery.ts
7613 +var useInfiniteQuery_exports = {};
7614 +__export(useInfiniteQuery_exports, {
7615 + useInfiniteQuery: () => useInfiniteQuery
7616 +});
7617 +module.exports = __toCommonJS(useInfiniteQuery_exports);
7618 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7619 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
7620 +function useInfiniteQuery(options, queryClient) {
7621 + return (0, import_useBaseQuery.useBaseQuery)(
7622 + options,
7623 + import_query_core.InfiniteQueryObserver,
7624 + queryClient
7625 + );
7626 +}
7627 +// Annotate the CommonJS export names for ESM import in node:
7628 +0 && (0);
7629 +//# sourceMappingURL=useInfiniteQuery.cjs.map
7630 +
7631 +/***/ }),
7632 +
7633 +/***/ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs":
7634 +/*!****************************************************************************!*\
7635 + !*** ../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs ***!
7636 + \****************************************************************************/
7637 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7638 +
7639 +"use strict";
7640 +
7641 +"use client";
7642 +var __create = Object.create;
7643 +var __defProp = Object.defineProperty;
7644 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7645 +var __getOwnPropNames = Object.getOwnPropertyNames;
7646 +var __getProtoOf = Object.getPrototypeOf;
7647 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7648 +var __export = (target, all) => {
7649 + for (var name in all)
7650 + __defProp(target, name, { get: all[name], enumerable: true });
7651 +};
7652 +var __copyProps = (to, from, except, desc) => {
7653 + if (from && typeof from === "object" || typeof from === "function") {
7654 + for (let key of __getOwnPropNames(from))
7655 + if (!__hasOwnProp.call(to, key) && key !== except)
7656 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7657 + }
7658 + return to;
7659 +};
7660 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7661 + // If the importer is in node compatibility mode or this is not an ESM
7662 + // file that has been converted to a CommonJS file using a Babel-
7663 + // compatible transform (i.e. "__esModule" has not been set), then set
7664 + // "default" to the CommonJS "module.exports" for node compatibility.
7665 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7666 + mod
7667 +));
7668 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7669 +
7670 +// src/useIsFetching.ts
7671 +var useIsFetching_exports = {};
7672 +__export(useIsFetching_exports, {
7673 + useIsFetching: () => useIsFetching
7674 +});
7675 +module.exports = __toCommonJS(useIsFetching_exports);
7676 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7677 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7678 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7679 +function useIsFetching(filters, queryClient) {
7680 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7681 + const queryCache = client.getQueryCache();
7682 + return React.useSyncExternalStore(
7683 + React.useCallback(
7684 + (onStoreChange) => queryCache.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7685 + [queryCache]
7686 + ),
7687 + () => client.isFetching(filters),
7688 + () => client.isFetching(filters)
7689 + );
7690 +}
7691 +// Annotate the CommonJS export names for ESM import in node:
7692 +0 && (0);
7693 +//# sourceMappingURL=useIsFetching.cjs.map
7694 +
7695 +/***/ }),
7696 +
7697 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs":
7698 +/*!**************************************************************************!*\
7699 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutation.cjs ***!
7700 + \**************************************************************************/
7701 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7702 +
7703 +"use strict";
7704 +
7705 +"use client";
7706 +var __create = Object.create;
7707 +var __defProp = Object.defineProperty;
7708 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7709 +var __getOwnPropNames = Object.getOwnPropertyNames;
7710 +var __getProtoOf = Object.getPrototypeOf;
7711 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7712 +var __export = (target, all) => {
7713 + for (var name in all)
7714 + __defProp(target, name, { get: all[name], enumerable: true });
7715 +};
7716 +var __copyProps = (to, from, except, desc) => {
7717 + if (from && typeof from === "object" || typeof from === "function") {
7718 + for (let key of __getOwnPropNames(from))
7719 + if (!__hasOwnProp.call(to, key) && key !== except)
7720 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7721 + }
7722 + return to;
7723 +};
7724 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7725 + // If the importer is in node compatibility mode or this is not an ESM
7726 + // file that has been converted to a CommonJS file using a Babel-
7727 + // compatible transform (i.e. "__esModule" has not been set), then set
7728 + // "default" to the CommonJS "module.exports" for node compatibility.
7729 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7730 + mod
7731 +));
7732 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7733 +
7734 +// src/useMutation.ts
7735 +var useMutation_exports = {};
7736 +__export(useMutation_exports, {
7737 + useMutation: () => useMutation
7738 +});
7739 +module.exports = __toCommonJS(useMutation_exports);
7740 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7741 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7742 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7743 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
7744 +function useMutation(options, queryClient) {
7745 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7746 + const [observer] = React.useState(
7747 + () => new import_query_core.MutationObserver(
7748 + client,
7749 + options
7750 + )
7751 + );
7752 + React.useEffect(() => {
7753 + observer.setOptions(options);
7754 + }, [observer, options]);
7755 + const result = React.useSyncExternalStore(
7756 + React.useCallback(
7757 + (onStoreChange) => observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7758 + [observer]
7759 + ),
7760 + () => observer.getCurrentResult(),
7761 + () => observer.getCurrentResult()
7762 + );
7763 + const mutate = React.useCallback(
7764 + (variables, mutateOptions) => {
7765 + observer.mutate(variables, mutateOptions).catch(import_utils.noop);
7766 + },
7767 + [observer]
7768 + );
7769 + if (result.error && (0, import_utils.shouldThrowError)(observer.options.throwOnError, [result.error])) {
7770 + throw result.error;
7771 + }
7772 + return { ...result, mutate, mutateAsync: result.mutate };
7773 +}
7774 +// Annotate the CommonJS export names for ESM import in node:
7775 +0 && (0);
7776 +//# sourceMappingURL=useMutation.cjs.map
7777 +
7778 +/***/ }),
7779 +
7780 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs":
7781 +/*!*******************************************************************************!*\
7782 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs ***!
7783 + \*******************************************************************************/
7784 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7785 +
7786 +"use strict";
7787 +
7788 +"use client";
7789 +var __create = Object.create;
7790 +var __defProp = Object.defineProperty;
7791 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7792 +var __getOwnPropNames = Object.getOwnPropertyNames;
7793 +var __getProtoOf = Object.getPrototypeOf;
7794 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7795 +var __export = (target, all) => {
7796 + for (var name in all)
7797 + __defProp(target, name, { get: all[name], enumerable: true });
7798 +};
7799 +var __copyProps = (to, from, except, desc) => {
7800 + if (from && typeof from === "object" || typeof from === "function") {
7801 + for (let key of __getOwnPropNames(from))
7802 + if (!__hasOwnProp.call(to, key) && key !== except)
7803 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7804 + }
7805 + return to;
7806 +};
7807 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7808 + // If the importer is in node compatibility mode or this is not an ESM
7809 + // file that has been converted to a CommonJS file using a Babel-
7810 + // compatible transform (i.e. "__esModule" has not been set), then set
7811 + // "default" to the CommonJS "module.exports" for node compatibility.
7812 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7813 + mod
7814 +));
7815 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7816 +
7817 +// src/useMutationState.ts
7818 +var useMutationState_exports = {};
7819 +__export(useMutationState_exports, {
7820 + useIsMutating: () => useIsMutating,
7821 + useMutationState: () => useMutationState
7822 +});
7823 +module.exports = __toCommonJS(useMutationState_exports);
7824 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7825 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7826 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7827 +function useIsMutating(filters, queryClient) {
7828 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7829 + return useMutationState(
7830 + { filters: { ...filters, status: "pending" } },
7831 + client
7832 + ).length;
7833 +}
7834 +function getResult(mutationCache, options) {
7835 + return mutationCache.findAll(options.filters).map(
7836 + (mutation) => options.select ? options.select(mutation) : mutation.state
7837 + );
7838 +}
7839 +function useMutationState(options = {}, queryClient) {
7840 + const mutationCache = (0, import_QueryClientProvider.useQueryClient)(queryClient).getMutationCache();
7841 + const optionsRef = React.useRef(options);
7842 + const result = React.useRef(null);
7843 + if (!result.current) {
7844 + result.current = getResult(mutationCache, options);
7845 + }
7846 + React.useEffect(() => {
7847 + optionsRef.current = options;
7848 + });
7849 + return React.useSyncExternalStore(
7850 + React.useCallback(
7851 + (onStoreChange) => mutationCache.subscribe(() => {
7852 + const nextResult = (0, import_query_core.replaceEqualDeep)(
7853 + result.current,
7854 + getResult(mutationCache, optionsRef.current)
7855 + );
7856 + if (result.current !== nextResult) {
7857 + result.current = nextResult;
7858 + import_query_core.notifyManager.schedule(onStoreChange);
7859 + }
7860 + }),
7861 + [mutationCache]
7862 + ),
7863 + () => result.current,
7864 + () => result.current
7865 + );
7866 +}
7867 +// Annotate the CommonJS export names for ESM import in node:
7868 +0 && (0);
7869 +//# sourceMappingURL=useMutationState.cjs.map
7870 +
7871 +/***/ }),
7872 +
7873 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs":
7874 +/*!*************************************************************************!*\
7875 + !*** ../node_modules/@tanstack/react-query/build/modern/useQueries.cjs ***!
7876 + \*************************************************************************/
7877 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7878 +
7879 +"use strict";
7880 +
7881 +"use client";
7882 +var __create = Object.create;
7883 +var __defProp = Object.defineProperty;
7884 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7885 +var __getOwnPropNames = Object.getOwnPropertyNames;
7886 +var __getProtoOf = Object.getPrototypeOf;
7887 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7888 +var __export = (target, all) => {
7889 + for (var name in all)
7890 + __defProp(target, name, { get: all[name], enumerable: true });
7891 +};
7892 +var __copyProps = (to, from, except, desc) => {
7893 + if (from && typeof from === "object" || typeof from === "function") {
7894 + for (let key of __getOwnPropNames(from))
7895 + if (!__hasOwnProp.call(to, key) && key !== except)
7896 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7897 + }
7898 + return to;
7899 +};
7900 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7901 + // If the importer is in node compatibility mode or this is not an ESM
7902 + // file that has been converted to a CommonJS file using a Babel-
7903 + // compatible transform (i.e. "__esModule" has not been set), then set
7904 + // "default" to the CommonJS "module.exports" for node compatibility.
7905 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7906 + mod
7907 +));
7908 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7909 +
7910 +// src/useQueries.ts
7911 +var useQueries_exports = {};
7912 +__export(useQueries_exports, {
7913 + useQueries: () => useQueries
7914 +});
7915 +module.exports = __toCommonJS(useQueries_exports);
7916 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7917 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7918 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7919 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7920 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7921 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
7922 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
7923 +function useQueries({
7924 + queries,
7925 + ...options
7926 +}, queryClient) {
7927 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7928 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
7929 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
7930 + const defaultedQueries = React.useMemo(
7931 + () => queries.map((opts) => {
7932 + const defaultedOptions = client.defaultQueryOptions(
7933 + opts
7934 + );
7935 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
7936 + return defaultedOptions;
7937 + }),
7938 + [queries, client, isRestoring]
7939 + );
7940 + defaultedQueries.forEach((query) => {
7941 + (0, import_suspense.ensureStaleTime)(query);
7942 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(query, errorResetBoundary);
7943 + });
7944 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
7945 + const [observer] = React.useState(
7946 + () => new import_query_core.QueriesObserver(
7947 + client,
7948 + defaultedQueries,
7949 + options
7950 + )
7951 + );
7952 + const [optimisticResult, getCombinedResult, trackResult] = observer.getOptimisticResult(
7953 + defaultedQueries,
7954 + options.combine
7955 + );
7956 + React.useSyncExternalStore(
7957 + React.useCallback(
7958 + (onStoreChange) => isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7959 + [observer, isRestoring]
7960 + ),
7961 + () => observer.getCurrentResult(),
7962 + () => observer.getCurrentResult()
7963 + );
7964 + React.useEffect(() => {
7965 + observer.setQueries(
7966 + defaultedQueries,
7967 + options,
7968 + {
7969 + listeners: false
7970 + }
7971 + );
7972 + }, [defaultedQueries, options, observer]);
7973 + const shouldAtLeastOneSuspend = optimisticResult.some(
7974 + (result, index) => (0, import_suspense.shouldSuspend)(defaultedQueries[index], result)
7975 + );
7976 + const suspensePromises = shouldAtLeastOneSuspend ? optimisticResult.flatMap((result, index) => {
7977 + const opts = defaultedQueries[index];
7978 + if (opts) {
7979 + const queryObserver = new import_query_core.QueryObserver(client, opts);
7980 + if ((0, import_suspense.shouldSuspend)(opts, result)) {
7981 + return (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
7982 + } else if ((0, import_suspense.willFetch)(result, isRestoring)) {
7983 + void (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
7984 + }
7985 + }
7986 + return [];
7987 + }) : [];
7988 + if (suspensePromises.length > 0) {
7989 + throw Promise.all(suspensePromises);
7990 + }
7991 + const firstSingleResultWhichShouldThrow = optimisticResult.find(
7992 + (result, index) => {
7993 + const query = defaultedQueries[index];
7994 + return query && (0, import_errorBoundaryUtils.getHasError)({
7995 + result,
7996 + errorResetBoundary,
7997 + throwOnError: query.throwOnError,
7998 + query: client.getQueryCache().get(query.queryHash)
7999 + });
8000 + }
8001 + );
8002 + if (firstSingleResultWhichShouldThrow?.error) {
8003 + throw firstSingleResultWhichShouldThrow.error;
8004 + }
8005 + return getCombinedResult(trackResult());
8006 +}
8007 +// Annotate the CommonJS export names for ESM import in node:
8008 +0 && (0);
8009 +//# sourceMappingURL=useQueries.cjs.map
8010 +
8011 +/***/ }),
8012 +
8013 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs":
8014 +/*!***********************************************************************!*\
8015 + !*** ../node_modules/@tanstack/react-query/build/modern/useQuery.cjs ***!
8016 + \***********************************************************************/
8017 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8018 +
8019 +"use strict";
8020 +
8021 +"use client";
8022 +var __defProp = Object.defineProperty;
8023 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8024 +var __getOwnPropNames = Object.getOwnPropertyNames;
8025 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8026 +var __export = (target, all) => {
8027 + for (var name in all)
8028 + __defProp(target, name, { get: all[name], enumerable: true });
8029 +};
8030 +var __copyProps = (to, from, except, desc) => {
8031 + if (from && typeof from === "object" || typeof from === "function") {
8032 + for (let key of __getOwnPropNames(from))
8033 + if (!__hasOwnProp.call(to, key) && key !== except)
8034 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8035 + }
8036 + return to;
8037 +};
8038 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8039 +
8040 +// src/useQuery.ts
8041 +var useQuery_exports = {};
8042 +__export(useQuery_exports, {
8043 + useQuery: () => useQuery
8044 +});
8045 +module.exports = __toCommonJS(useQuery_exports);
8046 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8047 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8048 +function useQuery(options, queryClient) {
8049 + return (0, import_useBaseQuery.useBaseQuery)(options, import_query_core.QueryObserver, queryClient);
8050 +}
8051 +// Annotate the CommonJS export names for ESM import in node:
8052 +0 && (0);
8053 +//# sourceMappingURL=useQuery.cjs.map
8054 +
8055 +/***/ }),
8056 +
8057 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs":
8058 +/*!***************************************************************************************!*\
8059 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs ***!
8060 + \***************************************************************************************/
8061 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8062 +
8063 +"use strict";
8064 +
8065 +"use client";
8066 +var __defProp = Object.defineProperty;
8067 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8068 +var __getOwnPropNames = Object.getOwnPropertyNames;
8069 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8070 +var __export = (target, all) => {
8071 + for (var name in all)
8072 + __defProp(target, name, { get: all[name], enumerable: true });
8073 +};
8074 +var __copyProps = (to, from, except, desc) => {
8075 + if (from && typeof from === "object" || typeof from === "function") {
8076 + for (let key of __getOwnPropNames(from))
8077 + if (!__hasOwnProp.call(to, key) && key !== except)
8078 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8079 + }
8080 + return to;
8081 +};
8082 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8083 +
8084 +// src/useSuspenseInfiniteQuery.ts
8085 +var useSuspenseInfiniteQuery_exports = {};
8086 +__export(useSuspenseInfiniteQuery_exports, {
8087 + useSuspenseInfiniteQuery: () => useSuspenseInfiniteQuery
8088 +});
8089 +module.exports = __toCommonJS(useSuspenseInfiniteQuery_exports);
8090 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8091 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8092 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8093 +function useSuspenseInfiniteQuery(options, queryClient) {
8094 + return (0, import_useBaseQuery.useBaseQuery)(
8095 + {
8096 + ...options,
8097 + enabled: true,
8098 + suspense: true,
8099 + throwOnError: import_suspense.defaultThrowOnError
8100 + },
8101 + import_query_core.InfiniteQueryObserver,
8102 + queryClient
8103 + );
8104 +}
8105 +// Annotate the CommonJS export names for ESM import in node:
8106 +0 && (0);
8107 +//# sourceMappingURL=useSuspenseInfiniteQuery.cjs.map
8108 +
8109 +/***/ }),
8110 +
8111 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs":
8112 +/*!*********************************************************************************!*\
8113 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs ***!
8114 + \*********************************************************************************/
8115 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8116 +
8117 +"use strict";
8118 +
8119 +"use client";
8120 +var __defProp = Object.defineProperty;
8121 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8122 +var __getOwnPropNames = Object.getOwnPropertyNames;
8123 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8124 +var __export = (target, all) => {
8125 + for (var name in all)
8126 + __defProp(target, name, { get: all[name], enumerable: true });
8127 +};
8128 +var __copyProps = (to, from, except, desc) => {
8129 + if (from && typeof from === "object" || typeof from === "function") {
8130 + for (let key of __getOwnPropNames(from))
8131 + if (!__hasOwnProp.call(to, key) && key !== except)
8132 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8133 + }
8134 + return to;
8135 +};
8136 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8137 +
8138 +// src/useSuspenseQueries.ts
8139 +var useSuspenseQueries_exports = {};
8140 +__export(useSuspenseQueries_exports, {
8141 + useSuspenseQueries: () => useSuspenseQueries
8142 +});
8143 +module.exports = __toCommonJS(useSuspenseQueries_exports);
8144 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
8145 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8146 +function useSuspenseQueries(options, queryClient) {
8147 + return (0, import_useQueries.useQueries)(
8148 + {
8149 + ...options,
8150 + queries: options.queries.map((query) => ({
8151 + ...query,
8152 + suspense: true,
8153 + throwOnError: import_suspense.defaultThrowOnError,
8154 + enabled: true,
8155 + placeholderData: void 0
8156 + }))
8157 + },
8158 + queryClient
8159 + );
8160 +}
8161 +// Annotate the CommonJS export names for ESM import in node:
8162 +0 && (0);
8163 +//# sourceMappingURL=useSuspenseQueries.cjs.map
8164 +
8165 +/***/ }),
8166 +
8167 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs":
8168 +/*!*******************************************************************************!*\
8169 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs ***!
8170 + \*******************************************************************************/
8171 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8172 +
8173 +"use strict";
8174 +
8175 +"use client";
8176 +var __defProp = Object.defineProperty;
8177 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8178 +var __getOwnPropNames = Object.getOwnPropertyNames;
8179 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8180 +var __export = (target, all) => {
8181 + for (var name in all)
8182 + __defProp(target, name, { get: all[name], enumerable: true });
8183 +};
8184 +var __copyProps = (to, from, except, desc) => {
8185 + if (from && typeof from === "object" || typeof from === "function") {
8186 + for (let key of __getOwnPropNames(from))
8187 + if (!__hasOwnProp.call(to, key) && key !== except)
8188 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8189 + }
8190 + return to;
8191 +};
8192 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8193 +
8194 +// src/useSuspenseQuery.ts
8195 +var useSuspenseQuery_exports = {};
8196 +__export(useSuspenseQuery_exports, {
8197 + useSuspenseQuery: () => useSuspenseQuery
8198 +});
8199 +module.exports = __toCommonJS(useSuspenseQuery_exports);
8200 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8201 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8202 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8203 +function useSuspenseQuery(options, queryClient) {
8204 + if (true) {
8205 + if (options.queryFn === import_query_core.skipToken) {
8206 + console.error("skipToken is not allowed for useSuspenseQuery");
8207 + }
8208 + }
8209 + return (0, import_useBaseQuery.useBaseQuery)(
8210 + {
8211 + ...options,
8212 + enabled: true,
8213 + suspense: true,
8214 + throwOnError: import_suspense.defaultThrowOnError,
8215 + placeholderData: void 0
8216 + },
8217 + import_query_core.QueryObserver,
8218 + queryClient
8219 + );
8220 +}
8221 +// Annotate the CommonJS export names for ESM import in node:
8222 +0 && (0);
8223 +//# sourceMappingURL=useSuspenseQuery.cjs.map
8224 +
8225 +/***/ }),
8226 +
8227 +/***/ "../node_modules/@tanstack/react-query/build/modern/utils.cjs":
8228 +/*!********************************************************************!*\
8229 + !*** ../node_modules/@tanstack/react-query/build/modern/utils.cjs ***!
8230 + \********************************************************************/
8231 +/***/ ((module) => {
8232 +
8233 +"use strict";
8234 +
8235 +var __defProp = Object.defineProperty;
8236 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8237 +var __getOwnPropNames = Object.getOwnPropertyNames;
8238 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8239 +var __export = (target, all) => {
8240 + for (var name in all)
8241 + __defProp(target, name, { get: all[name], enumerable: true });
8242 +};
8243 +var __copyProps = (to, from, except, desc) => {
8244 + if (from && typeof from === "object" || typeof from === "function") {
8245 + for (let key of __getOwnPropNames(from))
8246 + if (!__hasOwnProp.call(to, key) && key !== except)
8247 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8248 + }
8249 + return to;
8250 +};
8251 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8252 +
8253 +// src/utils.ts
8254 +var utils_exports = {};
8255 +__export(utils_exports, {
8256 + noop: () => noop,
8257 + shouldThrowError: () => shouldThrowError
8258 +});
8259 +module.exports = __toCommonJS(utils_exports);
8260 +function shouldThrowError(throwError, params) {
8261 + if (typeof throwError === "function") {
8262 + return throwError(...params);
8263 + }
8264 + return !!throwError;
8265 +}
8266 +function noop() {
8267 +}
8268 +// Annotate the CommonJS export names for ESM import in node:
8269 +0 && (0);
8270 +//# sourceMappingURL=utils.cjs.map
8271 +
8272 +/***/ })
8273 +
8274 +/******/ });
8275 +/************************************************************************/
8276 +/******/ // The module cache
8277 +/******/ var __webpack_module_cache__ = {};
8278 +/******/
8279 +/******/ // The require function
8280 +/******/ function __webpack_require__(moduleId) {
8281 +/******/ // Check if module is in cache
8282 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
8283 +/******/ if (cachedModule !== undefined) {
8284 +/******/ return cachedModule.exports;
8285 +/******/ }
8286 +/******/ // Create a new module (and put it into the cache)
8287 +/******/ var module = __webpack_module_cache__[moduleId] = {
8288 +/******/ // no module.id needed
8289 +/******/ // no module.loaded needed
8290 +/******/ exports: {}
8291 +/******/ };
8292 +/******/
8293 +/******/ // Execute the module function
8294 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
8295 +/******/
8296 +/******/ // Return the exports of the module
8297 +/******/ return module.exports;
8298 +/******/ }
8299 +/******/
8300 +/************************************************************************/
8301 +var __webpack_exports__ = {};
8302 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
8303 +(() => {
8304 +"use strict";
8305 +/*!***************************************************!*\
8306 + !*** ../modules/notifications/assets/js/admin.js ***!
8307 + \***************************************************/
8308 +
8309 +
8310 +var _barButtonNotification = __webpack_require__(/*! ./components/bar-button-notification */ "../modules/notifications/assets/js/components/bar-button-notification.js");
8311 +window.elementorNotificationCenter = {
8312 + BarButtonNotification: _barButtonNotification.BarButtonNotification
8313 +};
8314 +})();
8315 +
8316 +/******/ })()
8317 +;
1463 8318 //# sourceMappingURL=admin-notifications.js.map