PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.0-dev3
Elementor Website Builder – more than just a page builder v3.20.0-dev3
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 +5035 -219 4.1.0-beta3 → 3.20.0-dev3 View file →
@@ -1,7 +1,64 @@
1 +/*! elementor - v3.20.0 - 29-02-2024 */
1 2 /******/ (() => { // webpackBootstrap
2 3 /******/ var __webpack_modules__ = ({
3 4
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 +
4 61 /***/ "../modules/notifications/assets/js/api/index.js":
5 62 /*!*******************************************************!*\
6 63 !*** ../modules/notifications/assets/js/api/index.js ***!
7 64 \*******************************************************/
@@ -23,11 +80,12 @@
23 80 data: data
24 81 });
25 82 });
26 83 };
27 -var getNotifications = exports.getNotifications = function getNotifications() {
84 +var getNotifications = function getNotifications() {
28 85 return request('notifications_get');
29 86 };
87 +exports.getNotifications = getNotifications;
30 88
31 89 /***/ }),
32 90
33 91 /***/ "../modules/notifications/assets/js/components/bar-button-notification.js":
@@ -49,10 +107,12 @@
49 107 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
50 108 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
51 109 var _whatsNew = __webpack_require__(/*! ./whats-new */ "../modules/notifications/assets/js/components/whats-new.js");
52 110 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
53 -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
54 -var BarButtonNotification = exports.BarButtonNotification = function BarButtonNotification(props) {
111 +var _giftIcon = __webpack_require__(/*! ../icons/gift-icon */ "../modules/notifications/assets/js/icons/gift-icon.js");
112 +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); }
113 +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; }
114 +var BarButtonNotification = function BarButtonNotification(props) {
55 115 var defaultIsRead = props.defaultIsRead;
56 116 var _useState = (0, _react.useState)(false),
57 117 _useState2 = (0, _slicedToArray2.default)(_useState, 2),
58 118 isOpen = _useState2[0],
@@ -79,10 +139,10 @@
79 139 invisible: isRead,
80 140 sx: {
81 141 mx: 0.5
82 142 }
83 - }, /*#__PURE__*/_react.default.createElement("i", {
84 - className: "e-admin-top-bar__bar-button-icon eicon-speakerphone"
143 + }, /*#__PURE__*/_react.default.createElement(_giftIcon.GiftIcon, {
144 + fontSize: "inherit"
85 145 })), /*#__PURE__*/_react.default.createElement("span", {
86 146 className: "e-admin-top-bar__bar-button-title"
87 147 }, props.children)), /*#__PURE__*/_react.default.createElement(_whatsNew.WhatsNew, {
88 148 isOpen: isOpen,
@@ -89,8 +149,9 @@
89 149 setIsOpen: setIsOpen,
90 150 setIsRead: setIsRead
91 151 }));
92 152 };
153 +exports.BarButtonNotification = BarButtonNotification;
93 154 BarButtonNotification.propTypes = {
94 155 defaultIsRead: PropTypes.bool,
95 156 children: PropTypes.any.isRequired
96 157 };
@@ -103,9 +164,8 @@
103 164 \*********************************************************************************/
104 165 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
105 166
106 167 "use strict";
107 -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
108 168
109 169
110 170 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
111 171 Object.defineProperty(exports, "__esModule", ({
@@ -112,14 +172,13 @@
112 172 value: true
113 173 }));
114 174 exports.WhatsNewDrawerContent = void 0;
115 175 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
116 -var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query");
176 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
117 177 var _api = __webpack_require__(/*! ../api */ "../modules/notifications/assets/js/api/index.js");
118 178 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
119 179 var _whatsNewItem = __webpack_require__(/*! ./whats-new-item */ "../modules/notifications/assets/js/components/whats-new-item.js");
120 -var WhatsNewDrawerContent = exports.WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
121 - var setIsOpen = _ref.setIsOpen;
180 +var WhatsNewDrawerContent = function WhatsNewDrawerContent() {
122 181 var _useQuery = (0, _query.useQuery)({
123 182 queryKey: ['e-notifications'],
124 183 queryFn: _api.getNotifications
125 184 }),
@@ -138,16 +197,13 @@
138 197 return /*#__PURE__*/_react.default.createElement(_whatsNewItem.WhatsNewItem, {
139 198 key: itemIndex,
140 199 item: item,
141 200 itemIndex: itemIndex,
142 - itemsLength: items.length,
143 - setIsOpen: setIsOpen
201 + itemsLength: items.length
144 202 });
145 203 });
146 204 };
147 -WhatsNewDrawerContent.propTypes = {
148 - setIsOpen: PropTypes.func.isRequired
149 -};
205 +exports.WhatsNewDrawerContent = WhatsNewDrawerContent;
150 206
151 207 /***/ }),
152 208
153 209 /***/ "../modules/notifications/assets/js/components/whats-new-item-chips.js":
@@ -167,9 +223,9 @@
167 223 exports.WhatsNewItemChips = void 0;
168 224 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
169 225 var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
170 226 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
171 -var WhatsNewItemChips = exports.WhatsNewItemChips = function WhatsNewItemChips(_ref) {
227 +var WhatsNewItemChips = function WhatsNewItemChips(_ref) {
172 228 var chipPlan = _ref.chipPlan,
173 229 chipTags = _ref.chipTags,
174 230 itemIndex = _ref.itemIndex;
175 231 var chips = [];
@@ -204,8 +260,9 @@
204 260 key: "chip-".concat(itemIndex).concat(chipIndex)
205 261 }, chip));
206 262 }));
207 263 };
264 +exports.WhatsNewItemChips = WhatsNewItemChips;
208 265 WhatsNewItemChips.propTypes = {
209 266 chipPlan: PropTypes.string,
210 267 chipTags: PropTypes.array,
211 268 itemIndex: PropTypes.number.isRequired
@@ -230,9 +287,9 @@
230 287 exports.WhatsNewItemThumbnail = void 0;
231 288 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
232 289 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
233 290 var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
234 -var WhatsNewItemThumbnail = exports.WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
291 +var WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
235 292 var imageSrc = _ref.imageSrc,
236 293 title = _ref.title,
237 294 link = _ref.link;
238 295 return /*#__PURE__*/_react.default.createElement(_ui.Box, {
@@ -248,8 +305,9 @@
248 305 maxWidth: '100%'
249 306 }
250 307 })));
251 308 };
309 +exports.WhatsNewItemThumbnail = WhatsNewItemThumbnail;
252 310 WhatsNewItemThumbnail.propTypes = {
253 311 imageSrc: PropTypes.string.isRequired,
254 312 title: PropTypes.string.isRequired,
255 313 link: PropTypes.string
@@ -273,9 +331,9 @@
273 331 }));
274 332 exports.WhatsNewItemTopicLine = void 0;
275 333 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
276 334 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
277 -var WhatsNewItemTopicLine = exports.WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
335 +var WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
278 336 var topic = _ref.topic,
279 337 date = _ref.date;
280 338 return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
281 339 direction: "row",
@@ -289,8 +347,9 @@
289 347 pb: 1
290 348 }
291 349 }, topic && /*#__PURE__*/_react.default.createElement(_ui.Box, null, topic), date && /*#__PURE__*/_react.default.createElement(_ui.Box, null, date));
292 350 };
351 +exports.WhatsNewItemTopicLine = WhatsNewItemTopicLine;
293 352 WhatsNewItemTopicLine.propTypes = {
294 353 topic: PropTypes.string,
295 354 date: PropTypes.string
296 355 };
@@ -317,13 +376,12 @@
317 376 var _whatsNewItemTopicLine = __webpack_require__(/*! ./whats-new-item-topic-line */ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js");
318 377 var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
319 378 var _whatsNewItemThumbnail = __webpack_require__(/*! ./whats-new-item-thumbnail */ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js");
320 379 var _whatsNewItemChips = __webpack_require__(/*! ./whats-new-item-chips */ "../modules/notifications/assets/js/components/whats-new-item-chips.js");
321 -var WhatsNewItem = exports.WhatsNewItem = function WhatsNewItem(_ref) {
380 +var WhatsNewItem = function WhatsNewItem(_ref) {
322 381 var item = _ref.item,
323 382 itemIndex = _ref.itemIndex,
324 - itemsLength = _ref.itemsLength,
325 - setIsOpen = _ref.setIsOpen;
383 + itemsLength = _ref.itemsLength;
326 384 return /*#__PURE__*/_react.default.createElement(_ui.Box, {
327 385 key: itemIndex,
328 386 display: "flex",
329 387 flexDirection: "column",
@@ -363,15 +421,12 @@
363 421 pb: 2
364 422 }
365 423 }, /*#__PURE__*/_react.default.createElement(_ui.Button, {
366 424 href: item.ctaLink,
367 - target: item.ctaLink.startsWith('#') ? '_self' : '_blank',
425 + target: "_blank",
368 426 variant: "contained",
369 427 size: "small",
370 - color: "promotion",
371 - onClick: item.ctaLink.startsWith('#') ? function () {
372 - return setIsOpen(false);
373 - } : function () {}
428 + color: "promotion"
374 429 }, item.cta)), itemIndex !== itemsLength - 1 && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
375 430 sx: {
376 431 my: 1
377 432 }
@@ -376,13 +431,13 @@
376 431 my: 1
377 432 }
378 433 }));
379 434 };
435 +exports.WhatsNewItem = WhatsNewItem;
380 436 WhatsNewItem.propTypes = {
381 437 item: PropTypes.object.isRequired,
382 438 itemIndex: PropTypes.number.isRequired,
383 - itemsLength: PropTypes.number.isRequired,
384 - setIsOpen: PropTypes.func.isRequired
439 + itemsLength: PropTypes.number.isRequired
385 440 };
386 441
387 442 /***/ }),
388 443
@@ -404,9 +459,9 @@
404 459 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
405 460 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
406 461 var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
407 462 var _xIcon = __webpack_require__(/*! ../icons/x-icon */ "../modules/notifications/assets/js/icons/x-icon.js");
408 -var WhatsNewTopBar = exports.WhatsNewTopBar = function WhatsNewTopBar(props) {
463 +var WhatsNewTopBar = function WhatsNewTopBar(props) {
409 464 var setIsOpen = props.setIsOpen;
410 465 return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.AppBar, {
411 466 elevation: 0,
412 467 position: "sticky",
@@ -427,8 +482,9 @@
427 482 return setIsOpen(false);
428 483 }
429 484 }, /*#__PURE__*/_react.default.createElement(_xIcon.XIcon, null)))), /*#__PURE__*/_react.default.createElement(_ui.Divider, null));
430 485 };
486 +exports.WhatsNewTopBar = WhatsNewTopBar;
431 487 WhatsNewTopBar.propTypes = {
432 488 setIsOpen: PropTypes.func.isRequired
433 489 };
434 490
@@ -450,12 +506,13 @@
450 506 }));
451 507 exports.WhatsNew = void 0;
452 508 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
453 509 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
454 -var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query");
510 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
455 511 var _whatsNewTopBar = __webpack_require__(/*! ./whats-new-top-bar */ "../modules/notifications/assets/js/components/whats-new-top-bar.js");
456 512 var _whatsNewDrawerContent = __webpack_require__(/*! ./whats-new-drawer-content */ "../modules/notifications/assets/js/components/whats-new-drawer-content.js");
457 -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
513 +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); }
514 +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; }
458 515 var queryClient = new _query.QueryClient({
459 516 defaultOptions: {
460 517 queries: {
461 518 refetchOnWindowFocus: false,
@@ -463,9 +520,10 @@
463 520 staleTime: 1000 * 60 * 30 // 30 minutes
464 521 }
465 522 }
466 523 });
467 -var WhatsNew = exports.WhatsNew = function WhatsNew(props) {
524 +
525 +var WhatsNew = function WhatsNew(props) {
468 526 var _window$elementor, _window$elementor$get;
469 527 var isOpen = props.isOpen,
470 528 setIsOpen = props.setIsOpen,
471 529 setIsRead = props.setIsRead,
@@ -481,9 +539,9 @@
481 539 client: queryClient
482 540 }, /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
483 541 rtl: elementorCommon.config.isRTL
484 542 }, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
485 - 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'
543 + 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'
486 544 }, /*#__PURE__*/_react.default.createElement(_ui.Drawer, {
487 545 anchor: anchorPosition,
488 546 open: isOpen,
489 547 onClose: function onClose() {
@@ -506,12 +564,11 @@
506 564 }), /*#__PURE__*/_react.default.createElement(_ui.Box, {
507 565 sx: {
508 566 padding: '16px'
509 567 }
510 - }, /*#__PURE__*/_react.default.createElement(_whatsNewDrawerContent.WhatsNewDrawerContent, {
511 - setIsOpen: setIsOpen
512 - }))))))));
568 + }, /*#__PURE__*/_react.default.createElement(_whatsNewDrawerContent.WhatsNewDrawerContent, null))))))));
513 569 };
570 +exports.WhatsNew = WhatsNew;
514 571 WhatsNew.propTypes = {
515 572 isOpen: PropTypes.bool.isRequired,
516 573 setIsOpen: PropTypes.func.isRequired,
517 574 setIsRead: PropTypes.func.isRequired,
@@ -536,9 +593,9 @@
536 593 }));
537 594 exports.WrapperWithLink = void 0;
538 595 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
539 596 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
540 -var WrapperWithLink = exports.WrapperWithLink = function WrapperWithLink(props) {
597 +var WrapperWithLink = function WrapperWithLink(props) {
541 598 var link = props.link,
542 599 children = props.children;
543 600 if (!link) {
544 601 return children;
@@ -554,8 +611,9 @@
554 611 }
555 612 }
556 613 }, children);
557 614 };
615 +exports.WrapperWithLink = WrapperWithLink;
558 616 WrapperWithLink.propTypes = {
559 617 link: PropTypes.string,
560 618 children: PropTypes.any.isRequired
561 619 };
@@ -561,8 +619,43 @@
561 619 };
562 620
563 621 /***/ }),
564 622
623 +/***/ "../modules/notifications/assets/js/icons/gift-icon.js":
624 +/*!*************************************************************!*\
625 + !*** ../modules/notifications/assets/js/icons/gift-icon.js ***!
626 + \*************************************************************/
627 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
628 +
629 +"use strict";
630 +
631 +
632 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
633 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
634 +Object.defineProperty(exports, "__esModule", ({
635 + value: true
636 +}));
637 +exports.GiftIcon = void 0;
638 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
639 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
640 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
641 +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); }
642 +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; }
643 +var GiftIcon = (0, _react.forwardRef)(function (props, ref) {
644 + return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
645 + viewBox: "0 0 24 24"
646 + }, props, {
647 + ref: ref
648 + }), /*#__PURE__*/_react.default.createElement("path", {
649 + fillRule: "evenodd",
650 + clipRule: "evenodd",
651 + d: "M9.65527 4.84484C8.95951 4.07178 8.20923 3.73771 7.51306 3.74984L7.5 3.75007C7.03587 3.75007 6.59075 3.93433 6.26256 4.26252C5.93437 4.59071 5.75 5.03583 5.75 5.49995C5.75 5.96408 5.93437 6.4092 6.26256 6.73739C6.59075 7.06558 7.03587 7.24995 7.5 7.24995C7.50295 7.24995 7.5059 7.24997 7.50884 7.25001H11.0002C10.6592 6.26394 10.1939 5.44328 9.65527 4.84484ZM11.25 8.75001V11.25H4C3.86193 11.25 3.75 11.1381 3.75 11V9.00001C3.75 8.86193 3.86193 8.75001 4 8.75001H11.25ZM4.25 12.75H4C3.0335 12.75 2.25 11.9665 2.25 11V9.00001C2.25 8.03351 3.0335 7.25001 4 7.25001H4.76141C4.43004 6.73144 4.25 6.12498 4.25 5.49995C4.25 4.638 4.59241 3.81135 5.2019 3.20186C5.80984 2.59392 6.63384 2.2517 7.49342 2.24996C8.72414 2.23069 9.86213 2.83242 10.7702 3.84139C11.2484 4.37275 11.6608 5.01284 12 5.73103C12.3392 5.01284 12.7516 4.37275 13.2298 3.84139C14.1379 2.83242 15.2759 2.23069 16.5066 2.24996C17.3662 2.2517 18.1902 2.59392 18.7981 3.20186C19.4076 3.81135 19.75 4.638 19.75 5.49995C19.75 6.12498 19.57 6.73144 19.2386 7.25001H20C20.9665 7.25001 21.75 8.03351 21.75 9.00001V11C21.75 11.9665 20.9665 12.75 20 12.75H19.75V19C19.75 19.7294 19.4603 20.4288 18.9445 20.9445C18.4288 21.4603 17.7293 21.75 17 21.75H7C6.27065 21.75 5.57118 21.4603 5.05546 20.9445C4.53973 20.4288 4.25 19.7294 4.25 19V12.75ZM11.25 20.25H7C6.66848 20.25 6.35054 20.1183 6.11612 19.8839C5.8817 19.6495 5.75 19.3315 5.75 19V12.75H11.25V20.25ZM12.75 20.25H17C17.3315 20.25 17.6495 20.1183 17.8839 19.8839C18.1183 19.6495 18.25 19.3315 18.25 19V12.75H12.75V20.25ZM12.75 11.25V8.75001H20C20.1381 8.75001 20.25 8.86193 20.25 9.00001V11C20.25 11.1381 20.1381 11.25 20 11.25H12.75ZM16.4912 7.25001C16.4941 7.24997 16.497 7.24995 16.5 7.24995C16.9641 7.24995 17.4092 7.06558 17.7374 6.73739C18.0656 6.4092 18.25 5.96408 18.25 5.49995C18.25 5.03583 18.0656 4.59071 17.7374 4.26252C17.4092 3.93433 16.9641 3.74995 16.5 3.74995H16.4869C15.7908 3.73783 15.0405 4.07178 14.3447 4.84484C13.8061 5.44328 13.3408 6.26394 12.9998 7.25001H16.4912Z"
652 + }));
653 +});
654 +exports.GiftIcon = GiftIcon;
655 +
656 +/***/ }),
657 +
565 658 /***/ "../modules/notifications/assets/js/icons/x-icon.js":
566 659 /*!**********************************************************!*\
567 660 !*** ../modules/notifications/assets/js/icons/x-icon.js ***!
568 661 \**********************************************************/
@@ -579,10 +672,11 @@
579 672 exports.XIcon = void 0;
580 673 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
581 674 var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
582 675 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
583 -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
584 -var XIcon = exports.XIcon = (0, _react.forwardRef)(function (props, ref) {
676 +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); }
677 +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; }
678 +var XIcon = (0, _react.forwardRef)(function (props, ref) {
585 679 return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
586 680 viewBox: "0 0 24 24"
587 681 }, props, {
588 682 ref: ref
@@ -595,177 +689,12 @@
595 689 clipRule: "evenodd",
596 690 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"
597 691 }));
598 692 });
693 +exports.XIcon = XIcon;
599 694
600 695 /***/ }),
601 696
602 -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
603 -/*!******************************************************************!*\
604 - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
605 - \******************************************************************/
606 -/***/ ((module) => {
607 -
608 -function _arrayLikeToArray(r, a) {
609 - (null == a || a > r.length) && (a = r.length);
610 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
611 - return n;
612 -}
613 -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
614 -
615 -/***/ }),
616 -
617 -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
618 -/*!****************************************************************!*\
619 - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
620 - \****************************************************************/
621 -/***/ ((module) => {
622 -
623 -function _arrayWithHoles(r) {
624 - if (Array.isArray(r)) return r;
625 -}
626 -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
627 -
628 -/***/ }),
629 -
630 -/***/ "../node_modules/@babel/runtime/helpers/extends.js":
631 -/*!*********************************************************!*\
632 - !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
633 - \*********************************************************/
634 -/***/ ((module) => {
635 -
636 -function _extends() {
637 - return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
638 - for (var e = 1; e < arguments.length; e++) {
639 - var t = arguments[e];
640 - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
641 - }
642 - return n;
643 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
644 -}
645 -module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
646 -
647 -/***/ }),
648 -
649 -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
650 -/*!***********************************************************************!*\
651 - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
652 - \***********************************************************************/
653 -/***/ ((module) => {
654 -
655 -function _interopRequireDefault(e) {
656 - return e && e.__esModule ? e : {
657 - "default": e
658 - };
659 -}
660 -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
661 -
662 -/***/ }),
663 -
664 -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
665 -/*!**********************************************************************!*\
666 - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
667 - \**********************************************************************/
668 -/***/ ((module) => {
669 -
670 -function _iterableToArrayLimit(r, l) {
671 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
672 - if (null != t) {
673 - var e,
674 - n,
675 - i,
676 - u,
677 - a = [],
678 - f = !0,
679 - o = !1;
680 - try {
681 - if (i = (t = t.call(r)).next, 0 === l) {
682 - if (Object(t) !== t) return;
683 - f = !1;
684 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
685 - } catch (r) {
686 - o = !0, n = r;
687 - } finally {
688 - try {
689 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
690 - } finally {
691 - if (o) throw n;
692 - }
693 - }
694 - return a;
695 - }
696 -}
697 -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
698 -
699 -/***/ }),
700 -
701 -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
702 -/*!*****************************************************************!*\
703 - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
704 - \*****************************************************************/
705 -/***/ ((module) => {
706 -
707 -function _nonIterableRest() {
708 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
709 -}
710 -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
711 -
712 -/***/ }),
713 -
714 -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
715 -/*!***************************************************************!*\
716 - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
717 - \***************************************************************/
718 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
719 -
720 -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
721 -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
722 -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
723 -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
724 -function _slicedToArray(r, e) {
725 - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
726 -}
727 -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
728 -
729 -/***/ }),
730 -
731 -/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
732 -/*!********************************************************!*\
733 - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
734 - \********************************************************/
735 -/***/ ((module) => {
736 -
737 -function _typeof(o) {
738 - "@babel/helpers - typeof";
739 -
740 - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
741 - return typeof o;
742 - } : function (o) {
743 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
744 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
745 -}
746 -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
747 -
748 -/***/ }),
749 -
750 -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
751 -/*!****************************************************************************!*\
752 - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
753 - \****************************************************************************/
754 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
755 -
756 -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
757 -function _unsupportedIterableToArray(r, a) {
758 - if (r) {
759 - if ("string" == typeof r) return arrayLikeToArray(r, a);
760 - var t = {}.toString.call(r).slice(8, -1);
761 - 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;
762 - }
763 -}
764 -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
765 -
766 -/***/ }),
767 -
768 697 /***/ "../node_modules/object-assign/index.js":
769 698 /*!**********************************************!*\
770 699 !*** ../node_modules/object-assign/index.js ***!
771 700 \**********************************************/
@@ -1620,10 +1549,9 @@
1620 1549 // By explicitly using `prop-types` you are opting into new development behavior.
1621 1550 // http://fb.me/prop-types-in-prod
1622 1551 var throwOnDirectAccess = true;
1623 1552 module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1624 -} else // removed by dead control flow
1625 -{}
1553 +} else {}
1626 1554
1627 1555
1628 1556 /***/ }),
1629 1557
@@ -1861,10 +1789,9 @@
1861 1789
1862 1790 "use strict";
1863 1791
1864 1792
1865 -if (false) // removed by dead control flow
1866 -{} else {
1793 +if (false) {} else {
1867 1794 module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1868 1795 }
1869 1796
1870 1797
@@ -1869,16 +1796,16 @@
1869 1796
1870 1797
1871 1798 /***/ }),
1872 1799
1873 -/***/ "@elementor/query":
1874 -/*!************************************!*\
1875 - !*** external "elementorV2.query" ***!
1876 - \************************************/
1800 +/***/ "react":
1801 +/*!************************!*\
1802 + !*** external "React" ***!
1803 + \************************/
1877 1804 /***/ ((module) => {
1878 1805
1879 1806 "use strict";
1880 -module.exports = elementorV2.query;
1807 +module.exports = React;
1881 1808
1882 1809 /***/ }),
1883 1810
1884 1811 /***/ "@elementor/ui":
@@ -1902,17 +1829,4906 @@
1902 1829 module.exports = wp.i18n;
1903 1830
1904 1831 /***/ }),
1905 1832
1906 -/***/ "react":
1907 -/*!************************!*\
1908 - !*** external "React" ***!
1909 - \************************/
1833 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
1834 +/*!******************************************************************!*\
1835 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1836 + \******************************************************************/
1910 1837 /***/ ((module) => {
1911 1838
1839 +function _arrayLikeToArray(arr, len) {
1840 + if (len == null || len > arr.length) len = arr.length;
1841 + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1842 + return arr2;
1843 +}
1844 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1845 +
1846 +/***/ }),
1847 +
1848 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
1849 +/*!****************************************************************!*\
1850 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
1851 + \****************************************************************/
1852 +/***/ ((module) => {
1853 +
1854 +function _arrayWithHoles(arr) {
1855 + if (Array.isArray(arr)) return arr;
1856 +}
1857 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1858 +
1859 +/***/ }),
1860 +
1861 +/***/ "../node_modules/@babel/runtime/helpers/extends.js":
1862 +/*!*********************************************************!*\
1863 + !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
1864 + \*********************************************************/
1865 +/***/ ((module) => {
1866 +
1867 +function _extends() {
1868 + module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
1869 + for (var i = 1; i < arguments.length; i++) {
1870 + var source = arguments[i];
1871 + for (var key in source) {
1872 + if (Object.prototype.hasOwnProperty.call(source, key)) {
1873 + target[key] = source[key];
1874 + }
1875 + }
1876 + }
1877 + return target;
1878 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
1879 + return _extends.apply(this, arguments);
1880 +}
1881 +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
1882 +
1883 +/***/ }),
1884 +
1885 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
1886 +/*!***********************************************************************!*\
1887 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
1888 + \***********************************************************************/
1889 +/***/ ((module) => {
1890 +
1891 +function _interopRequireDefault(obj) {
1892 + return obj && obj.__esModule ? obj : {
1893 + "default": obj
1894 + };
1895 +}
1896 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
1897 +
1898 +/***/ }),
1899 +
1900 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
1901 +/*!**********************************************************************!*\
1902 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
1903 + \**********************************************************************/
1904 +/***/ ((module) => {
1905 +
1906 +function _iterableToArrayLimit(r, l) {
1907 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1908 + if (null != t) {
1909 + var e,
1910 + n,
1911 + i,
1912 + u,
1913 + a = [],
1914 + f = !0,
1915 + o = !1;
1916 + try {
1917 + if (i = (t = t.call(r)).next, 0 === l) {
1918 + if (Object(t) !== t) return;
1919 + f = !1;
1920 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
1921 + } catch (r) {
1922 + o = !0, n = r;
1923 + } finally {
1924 + try {
1925 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
1926 + } finally {
1927 + if (o) throw n;
1928 + }
1929 + }
1930 + return a;
1931 + }
1932 +}
1933 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
1934 +
1935 +/***/ }),
1936 +
1937 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
1938 +/*!*****************************************************************!*\
1939 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
1940 + \*****************************************************************/
1941 +/***/ ((module) => {
1942 +
1943 +function _nonIterableRest() {
1944 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1945 +}
1946 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
1947 +
1948 +/***/ }),
1949 +
1950 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
1951 +/*!***************************************************************!*\
1952 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
1953 + \***************************************************************/
1954 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1955 +
1956 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
1957 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
1958 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
1959 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
1960 +function _slicedToArray(arr, i) {
1961 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
1962 +}
1963 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1964 +
1965 +/***/ }),
1966 +
1967 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
1968 +/*!********************************************************!*\
1969 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
1970 + \********************************************************/
1971 +/***/ ((module) => {
1972 +
1973 +function _typeof(o) {
1974 + "@babel/helpers - typeof";
1975 +
1976 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1977 + return typeof o;
1978 + } : function (o) {
1979 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1980 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
1981 +}
1982 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
1983 +
1984 +/***/ }),
1985 +
1986 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
1987 +/*!****************************************************************************!*\
1988 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
1989 + \****************************************************************************/
1990 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1991 +
1992 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
1993 +function _unsupportedIterableToArray(o, minLen) {
1994 + if (!o) return;
1995 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
1996 + var n = Object.prototype.toString.call(o).slice(8, -1);
1997 + if (n === "Object" && o.constructor) n = o.constructor.name;
1998 + if (n === "Map" || n === "Set") return Array.from(o);
1999 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
2000 +}
2001 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2002 +
2003 +/***/ }),
2004 +
2005 +/***/ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs":
2006 +/*!**************************************************************************!*\
2007 + !*** ../node_modules/@tanstack/query-core/build/modern/focusManager.cjs ***!
2008 + \**************************************************************************/
2009 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2010 +
1912 2011 "use strict";
1913 -module.exports = React;
1914 2012
2013 +var __defProp = Object.defineProperty;
2014 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2015 +var __getOwnPropNames = Object.getOwnPropertyNames;
2016 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2017 +var __export = (target, all) => {
2018 + for (var name in all)
2019 + __defProp(target, name, { get: all[name], enumerable: true });
2020 +};
2021 +var __copyProps = (to, from, except, desc) => {
2022 + if (from && typeof from === "object" || typeof from === "function") {
2023 + for (let key of __getOwnPropNames(from))
2024 + if (!__hasOwnProp.call(to, key) && key !== except)
2025 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2026 + }
2027 + return to;
2028 +};
2029 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2030 +
2031 +// src/focusManager.ts
2032 +var focusManager_exports = {};
2033 +__export(focusManager_exports, {
2034 + FocusManager: () => FocusManager,
2035 + focusManager: () => focusManager
2036 +});
2037 +module.exports = __toCommonJS(focusManager_exports);
2038 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
2039 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2040 +var FocusManager = class extends import_subscribable.Subscribable {
2041 + #focused;
2042 + #cleanup;
2043 + #setup;
2044 + constructor() {
2045 + super();
2046 + this.#setup = (onFocus) => {
2047 + if (!import_utils.isServer && window.addEventListener) {
2048 + const listener = () => onFocus();
2049 + window.addEventListener("visibilitychange", listener, false);
2050 + return () => {
2051 + window.removeEventListener("visibilitychange", listener);
2052 + };
2053 + }
2054 + return;
2055 + };
2056 + }
2057 + onSubscribe() {
2058 + if (!this.#cleanup) {
2059 + this.setEventListener(this.#setup);
2060 + }
2061 + }
2062 + onUnsubscribe() {
2063 + if (!this.hasListeners()) {
2064 + this.#cleanup?.();
2065 + this.#cleanup = void 0;
2066 + }
2067 + }
2068 + setEventListener(setup) {
2069 + this.#setup = setup;
2070 + this.#cleanup?.();
2071 + this.#cleanup = setup((focused) => {
2072 + if (typeof focused === "boolean") {
2073 + this.setFocused(focused);
2074 + } else {
2075 + this.onFocus();
2076 + }
2077 + });
2078 + }
2079 + setFocused(focused) {
2080 + const changed = this.#focused !== focused;
2081 + if (changed) {
2082 + this.#focused = focused;
2083 + this.onFocus();
2084 + }
2085 + }
2086 + onFocus() {
2087 + this.listeners.forEach((listener) => {
2088 + listener();
2089 + });
2090 + }
2091 + isFocused() {
2092 + if (typeof this.#focused === "boolean") {
2093 + return this.#focused;
2094 + }
2095 + return globalThis.document?.visibilityState !== "hidden";
2096 + }
2097 +};
2098 +var focusManager = new FocusManager();
2099 +// Annotate the CommonJS export names for ESM import in node:
2100 +0 && (0);
2101 +//# sourceMappingURL=focusManager.cjs.map
2102 +
2103 +/***/ }),
2104 +
2105 +/***/ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs":
2106 +/*!***********************************************************************!*\
2107 + !*** ../node_modules/@tanstack/query-core/build/modern/hydration.cjs ***!
2108 + \***********************************************************************/
2109 +/***/ ((module) => {
2110 +
2111 +"use strict";
2112 +
2113 +var __defProp = Object.defineProperty;
2114 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2115 +var __getOwnPropNames = Object.getOwnPropertyNames;
2116 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2117 +var __export = (target, all) => {
2118 + for (var name in all)
2119 + __defProp(target, name, { get: all[name], enumerable: true });
2120 +};
2121 +var __copyProps = (to, from, except, desc) => {
2122 + if (from && typeof from === "object" || typeof from === "function") {
2123 + for (let key of __getOwnPropNames(from))
2124 + if (!__hasOwnProp.call(to, key) && key !== except)
2125 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2126 + }
2127 + return to;
2128 +};
2129 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2130 +
2131 +// src/hydration.ts
2132 +var hydration_exports = {};
2133 +__export(hydration_exports, {
2134 + defaultShouldDehydrateMutation: () => defaultShouldDehydrateMutation,
2135 + defaultShouldDehydrateQuery: () => defaultShouldDehydrateQuery,
2136 + dehydrate: () => dehydrate,
2137 + hydrate: () => hydrate
2138 +});
2139 +module.exports = __toCommonJS(hydration_exports);
2140 +function dehydrateMutation(mutation) {
2141 + return {
2142 + mutationKey: mutation.options.mutationKey,
2143 + state: mutation.state,
2144 + ...mutation.meta && { meta: mutation.meta }
2145 + };
2146 +}
2147 +function dehydrateQuery(query) {
2148 + return {
2149 + state: query.state,
2150 + queryKey: query.queryKey,
2151 + queryHash: query.queryHash,
2152 + ...query.meta && { meta: query.meta }
2153 + };
2154 +}
2155 +function defaultShouldDehydrateMutation(mutation) {
2156 + return mutation.state.isPaused;
2157 +}
2158 +function defaultShouldDehydrateQuery(query) {
2159 + return query.state.status === "success";
2160 +}
2161 +function dehydrate(client, options = {}) {
2162 + const filterMutation = options.shouldDehydrateMutation ?? defaultShouldDehydrateMutation;
2163 + const mutations = client.getMutationCache().getAll().flatMap(
2164 + (mutation) => filterMutation(mutation) ? [dehydrateMutation(mutation)] : []
2165 + );
2166 + const filterQuery = options.shouldDehydrateQuery ?? defaultShouldDehydrateQuery;
2167 + const queries = client.getQueryCache().getAll().flatMap((query) => filterQuery(query) ? [dehydrateQuery(query)] : []);
2168 + return { mutations, queries };
2169 +}
2170 +function hydrate(client, dehydratedState, options) {
2171 + if (typeof dehydratedState !== "object" || dehydratedState === null) {
2172 + return;
2173 + }
2174 + const mutationCache = client.getMutationCache();
2175 + const queryCache = client.getQueryCache();
2176 + const mutations = dehydratedState.mutations || [];
2177 + const queries = dehydratedState.queries || [];
2178 + mutations.forEach((dehydratedMutation) => {
2179 + mutationCache.build(
2180 + client,
2181 + {
2182 + ...options?.defaultOptions?.mutations,
2183 + mutationKey: dehydratedMutation.mutationKey,
2184 + meta: dehydratedMutation.meta
2185 + },
2186 + dehydratedMutation.state
2187 + );
2188 + });
2189 + queries.forEach(({ queryKey, state, queryHash, meta }) => {
2190 + const query = queryCache.get(queryHash);
2191 + if (query) {
2192 + if (query.state.dataUpdatedAt < state.dataUpdatedAt) {
2193 + const { fetchStatus: _ignored, ...dehydratedQueryState } = state;
2194 + query.setState(dehydratedQueryState);
2195 + }
2196 + return;
2197 + }
2198 + queryCache.build(
2199 + client,
2200 + {
2201 + ...options?.defaultOptions?.queries,
2202 + queryKey,
2203 + queryHash,
2204 + meta
2205 + },
2206 + // Reset fetch status to idle to avoid
2207 + // query being stuck in fetching state upon hydration
2208 + {
2209 + ...state,
2210 + fetchStatus: "idle"
2211 + }
2212 + );
2213 + });
2214 +}
2215 +// Annotate the CommonJS export names for ESM import in node:
2216 +0 && (0);
2217 +//# sourceMappingURL=hydration.cjs.map
2218 +
2219 +/***/ }),
2220 +
2221 +/***/ "../node_modules/@tanstack/query-core/build/modern/index.cjs":
2222 +/*!*******************************************************************!*\
2223 + !*** ../node_modules/@tanstack/query-core/build/modern/index.cjs ***!
2224 + \*******************************************************************/
2225 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2226 +
2227 +"use strict";
2228 +
2229 +var __defProp = Object.defineProperty;
2230 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2231 +var __getOwnPropNames = Object.getOwnPropertyNames;
2232 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2233 +var __export = (target, all) => {
2234 + for (var name in all)
2235 + __defProp(target, name, { get: all[name], enumerable: true });
2236 +};
2237 +var __copyProps = (to, from, except, desc) => {
2238 + if (from && typeof from === "object" || typeof from === "function") {
2239 + for (let key of __getOwnPropNames(from))
2240 + if (!__hasOwnProp.call(to, key) && key !== except)
2241 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2242 + }
2243 + return to;
2244 +};
2245 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
2246 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2247 +
2248 +// src/index.ts
2249 +var src_exports = {};
2250 +__export(src_exports, {
2251 + CancelledError: () => import_retryer.CancelledError,
2252 + InfiniteQueryObserver: () => import_infiniteQueryObserver.InfiniteQueryObserver,
2253 + MutationCache: () => import_mutationCache.MutationCache,
2254 + MutationObserver: () => import_mutationObserver.MutationObserver,
2255 + QueriesObserver: () => import_queriesObserver.QueriesObserver,
2256 + Query: () => import_query.Query,
2257 + QueryCache: () => import_queryCache.QueryCache,
2258 + QueryClient: () => import_queryClient.QueryClient,
2259 + QueryObserver: () => import_queryObserver.QueryObserver,
2260 + defaultShouldDehydrateMutation: () => import_hydration.defaultShouldDehydrateMutation,
2261 + defaultShouldDehydrateQuery: () => import_hydration.defaultShouldDehydrateQuery,
2262 + dehydrate: () => import_hydration.dehydrate,
2263 + focusManager: () => import_focusManager.focusManager,
2264 + hashKey: () => import_utils.hashKey,
2265 + hydrate: () => import_hydration.hydrate,
2266 + isCancelledError: () => import_retryer2.isCancelledError,
2267 + isServer: () => import_utils.isServer,
2268 + keepPreviousData: () => import_utils.keepPreviousData,
2269 + matchQuery: () => import_utils.matchQuery,
2270 + notifyManager: () => import_notifyManager.notifyManager,
2271 + onlineManager: () => import_onlineManager.onlineManager,
2272 + replaceEqualDeep: () => import_utils.replaceEqualDeep
2273 +});
2274 +module.exports = __toCommonJS(src_exports);
2275 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
2276 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
2277 +var import_queryClient = __webpack_require__(/*! ./queryClient.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs");
2278 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
2279 +var import_queriesObserver = __webpack_require__(/*! ./queriesObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs");
2280 +var import_infiniteQueryObserver = __webpack_require__(/*! ./infiniteQueryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs");
2281 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
2282 +var import_mutationObserver = __webpack_require__(/*! ./mutationObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs");
2283 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
2284 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
2285 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
2286 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2287 +var import_retryer2 = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
2288 +var import_hydration = __webpack_require__(/*! ./hydration.cjs */ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs");
2289 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/query-core/build/modern/types.cjs"), module.exports);
2290 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
2291 +// Annotate the CommonJS export names for ESM import in node:
2292 +0 && (0);
2293 +//# sourceMappingURL=index.cjs.map
2294 +
2295 +/***/ }),
2296 +
2297 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs":
2298 +/*!***********************************************************************************!*\
2299 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs ***!
2300 + \***********************************************************************************/
2301 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2302 +
2303 +"use strict";
2304 +
2305 +var __defProp = Object.defineProperty;
2306 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2307 +var __getOwnPropNames = Object.getOwnPropertyNames;
2308 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2309 +var __export = (target, all) => {
2310 + for (var name in all)
2311 + __defProp(target, name, { get: all[name], enumerable: true });
2312 +};
2313 +var __copyProps = (to, from, except, desc) => {
2314 + if (from && typeof from === "object" || typeof from === "function") {
2315 + for (let key of __getOwnPropNames(from))
2316 + if (!__hasOwnProp.call(to, key) && key !== except)
2317 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2318 + }
2319 + return to;
2320 +};
2321 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2322 +
2323 +// src/infiniteQueryBehavior.ts
2324 +var infiniteQueryBehavior_exports = {};
2325 +__export(infiniteQueryBehavior_exports, {
2326 + hasNextPage: () => hasNextPage,
2327 + hasPreviousPage: () => hasPreviousPage,
2328 + infiniteQueryBehavior: () => infiniteQueryBehavior
2329 +});
2330 +module.exports = __toCommonJS(infiniteQueryBehavior_exports);
2331 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2332 +function infiniteQueryBehavior(pages) {
2333 + return {
2334 + onFetch: (context, query) => {
2335 + const fetchFn = async () => {
2336 + const options = context.options;
2337 + const direction = context.fetchOptions?.meta?.fetchMore?.direction;
2338 + const oldPages = context.state.data?.pages || [];
2339 + const oldPageParams = context.state.data?.pageParams || [];
2340 + const empty = { pages: [], pageParams: [] };
2341 + let cancelled = false;
2342 + const addSignalProperty = (object) => {
2343 + Object.defineProperty(object, "signal", {
2344 + enumerable: true,
2345 + get: () => {
2346 + if (context.signal.aborted) {
2347 + cancelled = true;
2348 + } else {
2349 + context.signal.addEventListener("abort", () => {
2350 + cancelled = true;
2351 + });
2352 + }
2353 + return context.signal;
2354 + }
2355 + });
2356 + };
2357 + const queryFn = context.options.queryFn || (() => Promise.reject(
2358 + new Error(`Missing queryFn: '${context.options.queryHash}'`)
2359 + ));
2360 + const fetchPage = async (data, param, previous) => {
2361 + if (cancelled) {
2362 + return Promise.reject();
2363 + }
2364 + if (param == null && data.pages.length) {
2365 + return Promise.resolve(data);
2366 + }
2367 + const queryFnContext = {
2368 + queryKey: context.queryKey,
2369 + pageParam: param,
2370 + direction: previous ? "backward" : "forward",
2371 + meta: context.options.meta
2372 + };
2373 + addSignalProperty(queryFnContext);
2374 + const page = await queryFn(
2375 + queryFnContext
2376 + );
2377 + const { maxPages } = context.options;
2378 + const addTo = previous ? import_utils.addToStart : import_utils.addToEnd;
2379 + return {
2380 + pages: addTo(data.pages, page, maxPages),
2381 + pageParams: addTo(data.pageParams, param, maxPages)
2382 + };
2383 + };
2384 + let result;
2385 + if (direction && oldPages.length) {
2386 + const previous = direction === "backward";
2387 + const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
2388 + const oldData = {
2389 + pages: oldPages,
2390 + pageParams: oldPageParams
2391 + };
2392 + const param = pageParamFn(options, oldData);
2393 + result = await fetchPage(oldData, param, previous);
2394 + } else {
2395 + result = await fetchPage(
2396 + empty,
2397 + oldPageParams[0] ?? options.initialPageParam
2398 + );
2399 + const remainingPages = pages ?? oldPages.length;
2400 + for (let i = 1; i < remainingPages; i++) {
2401 + const param = getNextPageParam(options, result);
2402 + result = await fetchPage(result, param);
2403 + }
2404 + }
2405 + return result;
2406 + };
2407 + if (context.options.persister) {
2408 + context.fetchFn = () => {
2409 + return context.options.persister?.(
2410 + fetchFn,
2411 + {
2412 + queryKey: context.queryKey,
2413 + meta: context.options.meta,
2414 + signal: context.signal
2415 + },
2416 + query
2417 + );
2418 + };
2419 + } else {
2420 + context.fetchFn = fetchFn;
2421 + }
2422 + }
2423 + };
2424 +}
2425 +function getNextPageParam(options, { pages, pageParams }) {
2426 + const lastIndex = pages.length - 1;
2427 + return options.getNextPageParam(
2428 + pages[lastIndex],
2429 + pages,
2430 + pageParams[lastIndex],
2431 + pageParams
2432 + );
2433 +}
2434 +function getPreviousPageParam(options, { pages, pageParams }) {
2435 + return options.getPreviousPageParam?.(
2436 + pages[0],
2437 + pages,
2438 + pageParams[0],
2439 + pageParams
2440 + );
2441 +}
2442 +function hasNextPage(options, data) {
2443 + if (!data)
2444 + return false;
2445 + return getNextPageParam(options, data) != null;
2446 +}
2447 +function hasPreviousPage(options, data) {
2448 + if (!data || !options.getPreviousPageParam)
2449 + return false;
2450 + return getPreviousPageParam(options, data) != null;
2451 +}
2452 +// Annotate the CommonJS export names for ESM import in node:
2453 +0 && (0);
2454 +//# sourceMappingURL=infiniteQueryBehavior.cjs.map
2455 +
2456 +/***/ }),
2457 +
2458 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs":
2459 +/*!***********************************************************************************!*\
2460 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs ***!
2461 + \***********************************************************************************/
2462 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2463 +
2464 +"use strict";
2465 +
2466 +var __defProp = Object.defineProperty;
2467 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2468 +var __getOwnPropNames = Object.getOwnPropertyNames;
2469 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2470 +var __export = (target, all) => {
2471 + for (var name in all)
2472 + __defProp(target, name, { get: all[name], enumerable: true });
2473 +};
2474 +var __copyProps = (to, from, except, desc) => {
2475 + if (from && typeof from === "object" || typeof from === "function") {
2476 + for (let key of __getOwnPropNames(from))
2477 + if (!__hasOwnProp.call(to, key) && key !== except)
2478 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2479 + }
2480 + return to;
2481 +};
2482 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2483 +
2484 +// src/infiniteQueryObserver.ts
2485 +var infiniteQueryObserver_exports = {};
2486 +__export(infiniteQueryObserver_exports, {
2487 + InfiniteQueryObserver: () => InfiniteQueryObserver
2488 +});
2489 +module.exports = __toCommonJS(infiniteQueryObserver_exports);
2490 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
2491 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
2492 +var InfiniteQueryObserver = class extends import_queryObserver.QueryObserver {
2493 + // eslint-disable-next-line @typescript-eslint/no-useless-constructor
2494 + constructor(client, options) {
2495 + super(client, options);
2496 + }
2497 + bindMethods() {
2498 + super.bindMethods();
2499 + this.fetchNextPage = this.fetchNextPage.bind(this);
2500 + this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
2501 + }
2502 + setOptions(options, notifyOptions) {
2503 + super.setOptions(
2504 + {
2505 + ...options,
2506 + behavior: (0, import_infiniteQueryBehavior.infiniteQueryBehavior)()
2507 + },
2508 + notifyOptions
2509 + );
2510 + }
2511 + getOptimisticResult(options) {
2512 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)();
2513 + return super.getOptimisticResult(options);
2514 + }
2515 + fetchNextPage(options) {
2516 + return this.fetch({
2517 + ...options,
2518 + meta: {
2519 + fetchMore: { direction: "forward" }
2520 + }
2521 + });
2522 + }
2523 + fetchPreviousPage(options) {
2524 + return this.fetch({
2525 + ...options,
2526 + meta: {
2527 + fetchMore: { direction: "backward" }
2528 + }
2529 + });
2530 + }
2531 + createResult(query, options) {
2532 + const { state } = query;
2533 + const result = super.createResult(query, options);
2534 + const { isFetching, isRefetching } = result;
2535 + const isFetchingNextPage = isFetching && state.fetchMeta?.fetchMore?.direction === "forward";
2536 + const isFetchingPreviousPage = isFetching && state.fetchMeta?.fetchMore?.direction === "backward";
2537 + return {
2538 + ...result,
2539 + fetchNextPage: this.fetchNextPage,
2540 + fetchPreviousPage: this.fetchPreviousPage,
2541 + hasNextPage: (0, import_infiniteQueryBehavior.hasNextPage)(options, state.data),
2542 + hasPreviousPage: (0, import_infiniteQueryBehavior.hasPreviousPage)(options, state.data),
2543 + isFetchingNextPage,
2544 + isFetchingPreviousPage,
2545 + isRefetching: isRefetching && !isFetchingNextPage && !isFetchingPreviousPage
2546 + };
2547 + }
2548 +};
2549 +// Annotate the CommonJS export names for ESM import in node:
2550 +0 && (0);
2551 +//# sourceMappingURL=infiniteQueryObserver.cjs.map
2552 +
2553 +/***/ }),
2554 +
2555 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs":
2556 +/*!**********************************************************************!*\
2557 + !*** ../node_modules/@tanstack/query-core/build/modern/mutation.cjs ***!
2558 + \**********************************************************************/
2559 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2560 +
2561 +"use strict";
2562 +
2563 +var __defProp = Object.defineProperty;
2564 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2565 +var __getOwnPropNames = Object.getOwnPropertyNames;
2566 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2567 +var __export = (target, all) => {
2568 + for (var name in all)
2569 + __defProp(target, name, { get: all[name], enumerable: true });
2570 +};
2571 +var __copyProps = (to, from, except, desc) => {
2572 + if (from && typeof from === "object" || typeof from === "function") {
2573 + for (let key of __getOwnPropNames(from))
2574 + if (!__hasOwnProp.call(to, key) && key !== except)
2575 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2576 + }
2577 + return to;
2578 +};
2579 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2580 +
2581 +// src/mutation.ts
2582 +var mutation_exports = {};
2583 +__export(mutation_exports, {
2584 + Mutation: () => Mutation,
2585 + getDefaultState: () => getDefaultState
2586 +});
2587 +module.exports = __toCommonJS(mutation_exports);
2588 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
2589 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
2590 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
2591 +var Mutation = class extends import_removable.Removable {
2592 + constructor(config) {
2593 + super();
2594 + this.mutationId = config.mutationId;
2595 + this.#defaultOptions = config.defaultOptions;
2596 + this.#mutationCache = config.mutationCache;
2597 + this.#observers = [];
2598 + this.state = config.state || getDefaultState();
2599 + this.setOptions(config.options);
2600 + this.scheduleGc();
2601 + }
2602 + #observers;
2603 + #defaultOptions;
2604 + #mutationCache;
2605 + #retryer;
2606 + setOptions(options) {
2607 + this.options = { ...this.#defaultOptions, ...options };
2608 + this.updateGcTime(this.options.gcTime);
2609 + }
2610 + get meta() {
2611 + return this.options.meta;
2612 + }
2613 + addObserver(observer) {
2614 + if (!this.#observers.includes(observer)) {
2615 + this.#observers.push(observer);
2616 + this.clearGcTimeout();
2617 + this.#mutationCache.notify({
2618 + type: "observerAdded",
2619 + mutation: this,
2620 + observer
2621 + });
2622 + }
2623 + }
2624 + removeObserver(observer) {
2625 + this.#observers = this.#observers.filter((x) => x !== observer);
2626 + this.scheduleGc();
2627 + this.#mutationCache.notify({
2628 + type: "observerRemoved",
2629 + mutation: this,
2630 + observer
2631 + });
2632 + }
2633 + optionalRemove() {
2634 + if (!this.#observers.length) {
2635 + if (this.state.status === "pending") {
2636 + this.scheduleGc();
2637 + } else {
2638 + this.#mutationCache.remove(this);
2639 + }
2640 + }
2641 + }
2642 + continue() {
2643 + return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
2644 + this.execute(this.state.variables);
2645 + }
2646 + async execute(variables) {
2647 + const executeMutation = () => {
2648 + this.#retryer = (0, import_retryer.createRetryer)({
2649 + fn: () => {
2650 + if (!this.options.mutationFn) {
2651 + return Promise.reject(new Error("No mutationFn found"));
2652 + }
2653 + return this.options.mutationFn(variables);
2654 + },
2655 + onFail: (failureCount, error) => {
2656 + this.#dispatch({ type: "failed", failureCount, error });
2657 + },
2658 + onPause: () => {
2659 + this.#dispatch({ type: "pause" });
2660 + },
2661 + onContinue: () => {
2662 + this.#dispatch({ type: "continue" });
2663 + },
2664 + retry: this.options.retry ?? 0,
2665 + retryDelay: this.options.retryDelay,
2666 + networkMode: this.options.networkMode
2667 + });
2668 + return this.#retryer.promise;
2669 + };
2670 + const restored = this.state.status === "pending";
2671 + try {
2672 + if (!restored) {
2673 + this.#dispatch({ type: "pending", variables });
2674 + await this.#mutationCache.config.onMutate?.(
2675 + variables,
2676 + this
2677 + );
2678 + const context = await this.options.onMutate?.(variables);
2679 + if (context !== this.state.context) {
2680 + this.#dispatch({
2681 + type: "pending",
2682 + context,
2683 + variables
2684 + });
2685 + }
2686 + }
2687 + const data = await executeMutation();
2688 + await this.#mutationCache.config.onSuccess?.(
2689 + data,
2690 + variables,
2691 + this.state.context,
2692 + this
2693 + );
2694 + await this.options.onSuccess?.(data, variables, this.state.context);
2695 + await this.#mutationCache.config.onSettled?.(
2696 + data,
2697 + null,
2698 + this.state.variables,
2699 + this.state.context,
2700 + this
2701 + );
2702 + await this.options.onSettled?.(data, null, variables, this.state.context);
2703 + this.#dispatch({ type: "success", data });
2704 + return data;
2705 + } catch (error) {
2706 + try {
2707 + await this.#mutationCache.config.onError?.(
2708 + error,
2709 + variables,
2710 + this.state.context,
2711 + this
2712 + );
2713 + await this.options.onError?.(
2714 + error,
2715 + variables,
2716 + this.state.context
2717 + );
2718 + await this.#mutationCache.config.onSettled?.(
2719 + void 0,
2720 + error,
2721 + this.state.variables,
2722 + this.state.context,
2723 + this
2724 + );
2725 + await this.options.onSettled?.(
2726 + void 0,
2727 + error,
2728 + variables,
2729 + this.state.context
2730 + );
2731 + throw error;
2732 + } finally {
2733 + this.#dispatch({ type: "error", error });
2734 + }
2735 + }
2736 + }
2737 + #dispatch(action) {
2738 + const reducer = (state) => {
2739 + switch (action.type) {
2740 + case "failed":
2741 + return {
2742 + ...state,
2743 + failureCount: action.failureCount,
2744 + failureReason: action.error
2745 + };
2746 + case "pause":
2747 + return {
2748 + ...state,
2749 + isPaused: true
2750 + };
2751 + case "continue":
2752 + return {
2753 + ...state,
2754 + isPaused: false
2755 + };
2756 + case "pending":
2757 + return {
2758 + ...state,
2759 + context: action.context,
2760 + data: void 0,
2761 + failureCount: 0,
2762 + failureReason: null,
2763 + error: null,
2764 + isPaused: !(0, import_retryer.canFetch)(this.options.networkMode),
2765 + status: "pending",
2766 + variables: action.variables,
2767 + submittedAt: Date.now()
2768 + };
2769 + case "success":
2770 + return {
2771 + ...state,
2772 + data: action.data,
2773 + failureCount: 0,
2774 + failureReason: null,
2775 + error: null,
2776 + status: "success",
2777 + isPaused: false
2778 + };
2779 + case "error":
2780 + return {
2781 + ...state,
2782 + data: void 0,
2783 + error: action.error,
2784 + failureCount: state.failureCount + 1,
2785 + failureReason: action.error,
2786 + isPaused: false,
2787 + status: "error"
2788 + };
2789 + }
2790 + };
2791 + this.state = reducer(this.state);
2792 + import_notifyManager.notifyManager.batch(() => {
2793 + this.#observers.forEach((observer) => {
2794 + observer.onMutationUpdate(action);
2795 + });
2796 + this.#mutationCache.notify({
2797 + mutation: this,
2798 + type: "updated",
2799 + action
2800 + });
2801 + });
2802 + }
2803 +};
2804 +function getDefaultState() {
2805 + return {
2806 + context: void 0,
2807 + data: void 0,
2808 + error: null,
2809 + failureCount: 0,
2810 + failureReason: null,
2811 + isPaused: false,
2812 + status: "idle",
2813 + variables: void 0,
2814 + submittedAt: 0
2815 + };
2816 +}
2817 +// Annotate the CommonJS export names for ESM import in node:
2818 +0 && (0);
2819 +//# sourceMappingURL=mutation.cjs.map
2820 +
2821 +/***/ }),
2822 +
2823 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs":
2824 +/*!***************************************************************************!*\
2825 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs ***!
2826 + \***************************************************************************/
2827 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2828 +
2829 +"use strict";
2830 +
2831 +var __defProp = Object.defineProperty;
2832 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2833 +var __getOwnPropNames = Object.getOwnPropertyNames;
2834 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2835 +var __export = (target, all) => {
2836 + for (var name in all)
2837 + __defProp(target, name, { get: all[name], enumerable: true });
2838 +};
2839 +var __copyProps = (to, from, except, desc) => {
2840 + if (from && typeof from === "object" || typeof from === "function") {
2841 + for (let key of __getOwnPropNames(from))
2842 + if (!__hasOwnProp.call(to, key) && key !== except)
2843 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2844 + }
2845 + return to;
2846 +};
2847 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2848 +
2849 +// src/mutationCache.ts
2850 +var mutationCache_exports = {};
2851 +__export(mutationCache_exports, {
2852 + MutationCache: () => MutationCache
2853 +});
2854 +module.exports = __toCommonJS(mutationCache_exports);
2855 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
2856 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
2857 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2858 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
2859 +var MutationCache = class extends import_subscribable.Subscribable {
2860 + constructor(config = {}) {
2861 + super();
2862 + this.config = config;
2863 + this.#mutations = [];
2864 + this.#mutationId = 0;
2865 + }
2866 + #mutations;
2867 + #mutationId;
2868 + #resuming;
2869 + build(client, options, state) {
2870 + const mutation = new import_mutation.Mutation({
2871 + mutationCache: this,
2872 + mutationId: ++this.#mutationId,
2873 + options: client.defaultMutationOptions(options),
2874 + state
2875 + });
2876 + this.add(mutation);
2877 + return mutation;
2878 + }
2879 + add(mutation) {
2880 + this.#mutations.push(mutation);
2881 + this.notify({ type: "added", mutation });
2882 + }
2883 + remove(mutation) {
2884 + this.#mutations = this.#mutations.filter((x) => x !== mutation);
2885 + this.notify({ type: "removed", mutation });
2886 + }
2887 + clear() {
2888 + import_notifyManager.notifyManager.batch(() => {
2889 + this.#mutations.forEach((mutation) => {
2890 + this.remove(mutation);
2891 + });
2892 + });
2893 + }
2894 + getAll() {
2895 + return this.#mutations;
2896 + }
2897 + find(filters) {
2898 + const defaultedFilters = { exact: true, ...filters };
2899 + return this.#mutations.find(
2900 + (mutation) => (0, import_utils.matchMutation)(defaultedFilters, mutation)
2901 + );
2902 + }
2903 + findAll(filters = {}) {
2904 + return this.#mutations.filter(
2905 + (mutation) => (0, import_utils.matchMutation)(filters, mutation)
2906 + );
2907 + }
2908 + notify(event) {
2909 + import_notifyManager.notifyManager.batch(() => {
2910 + this.listeners.forEach((listener) => {
2911 + listener(event);
2912 + });
2913 + });
2914 + }
2915 + resumePausedMutations() {
2916 + this.#resuming = (this.#resuming ?? Promise.resolve()).then(() => {
2917 + const pausedMutations = this.#mutations.filter((x) => x.state.isPaused);
2918 + return import_notifyManager.notifyManager.batch(
2919 + () => pausedMutations.reduce(
2920 + (promise, mutation) => promise.then(() => mutation.continue().catch(import_utils.noop)),
2921 + Promise.resolve()
2922 + )
2923 + );
2924 + }).then(() => {
2925 + this.#resuming = void 0;
2926 + });
2927 + return this.#resuming;
2928 + }
2929 +};
2930 +// Annotate the CommonJS export names for ESM import in node:
2931 +0 && (0);
2932 +//# sourceMappingURL=mutationCache.cjs.map
2933 +
2934 +/***/ }),
2935 +
2936 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs":
2937 +/*!******************************************************************************!*\
2938 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs ***!
2939 + \******************************************************************************/
2940 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2941 +
2942 +"use strict";
2943 +
2944 +var __defProp = Object.defineProperty;
2945 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2946 +var __getOwnPropNames = Object.getOwnPropertyNames;
2947 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2948 +var __export = (target, all) => {
2949 + for (var name in all)
2950 + __defProp(target, name, { get: all[name], enumerable: true });
2951 +};
2952 +var __copyProps = (to, from, except, desc) => {
2953 + if (from && typeof from === "object" || typeof from === "function") {
2954 + for (let key of __getOwnPropNames(from))
2955 + if (!__hasOwnProp.call(to, key) && key !== except)
2956 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2957 + }
2958 + return to;
2959 +};
2960 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2961 +
2962 +// src/mutationObserver.ts
2963 +var mutationObserver_exports = {};
2964 +__export(mutationObserver_exports, {
2965 + MutationObserver: () => MutationObserver
2966 +});
2967 +module.exports = __toCommonJS(mutationObserver_exports);
2968 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
2969 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
2970 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
2971 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
2972 +var MutationObserver = class extends import_subscribable.Subscribable {
2973 + constructor(client, options) {
2974 + super();
2975 + this.#currentResult = void 0;
2976 + this.#client = client;
2977 + this.setOptions(options);
2978 + this.bindMethods();
2979 + this.#updateResult();
2980 + }
2981 + #client;
2982 + #currentResult;
2983 + #currentMutation;
2984 + #mutateOptions;
2985 + bindMethods() {
2986 + this.mutate = this.mutate.bind(this);
2987 + this.reset = this.reset.bind(this);
2988 + }
2989 + setOptions(options) {
2990 + const prevOptions = this.options;
2991 + this.options = this.#client.defaultMutationOptions(options);
2992 + if (!(0, import_utils.shallowEqualObjects)(prevOptions, this.options)) {
2993 + this.#client.getMutationCache().notify({
2994 + type: "observerOptionsUpdated",
2995 + mutation: this.#currentMutation,
2996 + observer: this
2997 + });
2998 + }
2999 + this.#currentMutation?.setOptions(this.options);
3000 + }
3001 + onUnsubscribe() {
3002 + if (!this.hasListeners()) {
3003 + this.#currentMutation?.removeObserver(this);
3004 + }
3005 + }
3006 + onMutationUpdate(action) {
3007 + this.#updateResult();
3008 + this.#notify(action);
3009 + }
3010 + getCurrentResult() {
3011 + return this.#currentResult;
3012 + }
3013 + reset() {
3014 + this.#currentMutation = void 0;
3015 + this.#updateResult();
3016 + this.#notify();
3017 + }
3018 + mutate(variables, options) {
3019 + this.#mutateOptions = options;
3020 + this.#currentMutation?.removeObserver(this);
3021 + this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);
3022 + this.#currentMutation.addObserver(this);
3023 + return this.#currentMutation.execute(variables);
3024 + }
3025 + #updateResult() {
3026 + const state = this.#currentMutation?.state ?? (0, import_mutation.getDefaultState)();
3027 + this.#currentResult = {
3028 + ...state,
3029 + isPending: state.status === "pending",
3030 + isSuccess: state.status === "success",
3031 + isError: state.status === "error",
3032 + isIdle: state.status === "idle",
3033 + mutate: this.mutate,
3034 + reset: this.reset
3035 + };
3036 + }
3037 + #notify(action) {
3038 + import_notifyManager.notifyManager.batch(() => {
3039 + if (this.#mutateOptions && this.hasListeners()) {
3040 + if (action?.type === "success") {
3041 + this.#mutateOptions.onSuccess?.(
3042 + action.data,
3043 + this.#currentResult.variables,
3044 + this.#currentResult.context
3045 + );
3046 + this.#mutateOptions.onSettled?.(
3047 + action.data,
3048 + null,
3049 + this.#currentResult.variables,
3050 + this.#currentResult.context
3051 + );
3052 + } else if (action?.type === "error") {
3053 + this.#mutateOptions.onError?.(
3054 + action.error,
3055 + this.#currentResult.variables,
3056 + this.#currentResult.context
3057 + );
3058 + this.#mutateOptions.onSettled?.(
3059 + void 0,
3060 + action.error,
3061 + this.#currentResult.variables,
3062 + this.#currentResult.context
3063 + );
3064 + }
3065 + }
3066 + this.listeners.forEach((listener) => {
3067 + listener(this.#currentResult);
3068 + });
3069 + });
3070 + }
3071 +};
3072 +// Annotate the CommonJS export names for ESM import in node:
3073 +0 && (0);
3074 +//# sourceMappingURL=mutationObserver.cjs.map
3075 +
3076 +/***/ }),
3077 +
3078 +/***/ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs":
3079 +/*!***************************************************************************!*\
3080 + !*** ../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs ***!
3081 + \***************************************************************************/
3082 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3083 +
3084 +"use strict";
3085 +
3086 +var __defProp = Object.defineProperty;
3087 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3088 +var __getOwnPropNames = Object.getOwnPropertyNames;
3089 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3090 +var __export = (target, all) => {
3091 + for (var name in all)
3092 + __defProp(target, name, { get: all[name], enumerable: true });
3093 +};
3094 +var __copyProps = (to, from, except, desc) => {
3095 + if (from && typeof from === "object" || typeof from === "function") {
3096 + for (let key of __getOwnPropNames(from))
3097 + if (!__hasOwnProp.call(to, key) && key !== except)
3098 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3099 + }
3100 + return to;
3101 +};
3102 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3103 +
3104 +// src/notifyManager.ts
3105 +var notifyManager_exports = {};
3106 +__export(notifyManager_exports, {
3107 + createNotifyManager: () => createNotifyManager,
3108 + notifyManager: () => notifyManager
3109 +});
3110 +module.exports = __toCommonJS(notifyManager_exports);
3111 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3112 +function createNotifyManager() {
3113 + let queue = [];
3114 + let transactions = 0;
3115 + let notifyFn = (callback) => {
3116 + callback();
3117 + };
3118 + let batchNotifyFn = (callback) => {
3119 + callback();
3120 + };
3121 + const batch = (callback) => {
3122 + let result;
3123 + transactions++;
3124 + try {
3125 + result = callback();
3126 + } finally {
3127 + transactions--;
3128 + if (!transactions) {
3129 + flush();
3130 + }
3131 + }
3132 + return result;
3133 + };
3134 + const schedule = (callback) => {
3135 + if (transactions) {
3136 + queue.push(callback);
3137 + } else {
3138 + (0, import_utils.scheduleMicrotask)(() => {
3139 + notifyFn(callback);
3140 + });
3141 + }
3142 + };
3143 + const batchCalls = (callback) => {
3144 + return (...args) => {
3145 + schedule(() => {
3146 + callback(...args);
3147 + });
3148 + };
3149 + };
3150 + const flush = () => {
3151 + const originalQueue = queue;
3152 + queue = [];
3153 + if (originalQueue.length) {
3154 + (0, import_utils.scheduleMicrotask)(() => {
3155 + batchNotifyFn(() => {
3156 + originalQueue.forEach((callback) => {
3157 + notifyFn(callback);
3158 + });
3159 + });
3160 + });
3161 + }
3162 + };
3163 + const setNotifyFunction = (fn) => {
3164 + notifyFn = fn;
3165 + };
3166 + const setBatchNotifyFunction = (fn) => {
3167 + batchNotifyFn = fn;
3168 + };
3169 + return {
3170 + batch,
3171 + batchCalls,
3172 + schedule,
3173 + setNotifyFunction,
3174 + setBatchNotifyFunction
3175 + };
3176 +}
3177 +var notifyManager = createNotifyManager();
3178 +// Annotate the CommonJS export names for ESM import in node:
3179 +0 && (0);
3180 +//# sourceMappingURL=notifyManager.cjs.map
3181 +
3182 +/***/ }),
3183 +
3184 +/***/ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs":
3185 +/*!***************************************************************************!*\
3186 + !*** ../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs ***!
3187 + \***************************************************************************/
3188 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3189 +
3190 +"use strict";
3191 +
3192 +var __defProp = Object.defineProperty;
3193 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3194 +var __getOwnPropNames = Object.getOwnPropertyNames;
3195 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3196 +var __export = (target, all) => {
3197 + for (var name in all)
3198 + __defProp(target, name, { get: all[name], enumerable: true });
3199 +};
3200 +var __copyProps = (to, from, except, desc) => {
3201 + if (from && typeof from === "object" || typeof from === "function") {
3202 + for (let key of __getOwnPropNames(from))
3203 + if (!__hasOwnProp.call(to, key) && key !== except)
3204 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3205 + }
3206 + return to;
3207 +};
3208 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3209 +
3210 +// src/onlineManager.ts
3211 +var onlineManager_exports = {};
3212 +__export(onlineManager_exports, {
3213 + OnlineManager: () => OnlineManager,
3214 + onlineManager: () => onlineManager
3215 +});
3216 +module.exports = __toCommonJS(onlineManager_exports);
3217 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3218 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3219 +var OnlineManager = class extends import_subscribable.Subscribable {
3220 + #online = true;
3221 + #cleanup;
3222 + #setup;
3223 + constructor() {
3224 + super();
3225 + this.#setup = (onOnline) => {
3226 + if (!import_utils.isServer && window.addEventListener) {
3227 + const onlineListener = () => onOnline(true);
3228 + const offlineListener = () => onOnline(false);
3229 + window.addEventListener("online", onlineListener, false);
3230 + window.addEventListener("offline", offlineListener, false);
3231 + return () => {
3232 + window.removeEventListener("online", onlineListener);
3233 + window.removeEventListener("offline", offlineListener);
3234 + };
3235 + }
3236 + return;
3237 + };
3238 + }
3239 + onSubscribe() {
3240 + if (!this.#cleanup) {
3241 + this.setEventListener(this.#setup);
3242 + }
3243 + }
3244 + onUnsubscribe() {
3245 + if (!this.hasListeners()) {
3246 + this.#cleanup?.();
3247 + this.#cleanup = void 0;
3248 + }
3249 + }
3250 + setEventListener(setup) {
3251 + this.#setup = setup;
3252 + this.#cleanup?.();
3253 + this.#cleanup = setup(this.setOnline.bind(this));
3254 + }
3255 + setOnline(online) {
3256 + const changed = this.#online !== online;
3257 + if (changed) {
3258 + this.#online = online;
3259 + this.listeners.forEach((listener) => {
3260 + listener(online);
3261 + });
3262 + }
3263 + }
3264 + isOnline() {
3265 + return this.#online;
3266 + }
3267 +};
3268 +var onlineManager = new OnlineManager();
3269 +// Annotate the CommonJS export names for ESM import in node:
3270 +0 && (0);
3271 +//# sourceMappingURL=onlineManager.cjs.map
3272 +
3273 +/***/ }),
3274 +
3275 +/***/ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs":
3276 +/*!*****************************************************************************!*\
3277 + !*** ../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs ***!
3278 + \*****************************************************************************/
3279 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3280 +
3281 +"use strict";
3282 +
3283 +var __defProp = Object.defineProperty;
3284 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3285 +var __getOwnPropNames = Object.getOwnPropertyNames;
3286 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3287 +var __export = (target, all) => {
3288 + for (var name in all)
3289 + __defProp(target, name, { get: all[name], enumerable: true });
3290 +};
3291 +var __copyProps = (to, from, except, desc) => {
3292 + if (from && typeof from === "object" || typeof from === "function") {
3293 + for (let key of __getOwnPropNames(from))
3294 + if (!__hasOwnProp.call(to, key) && key !== except)
3295 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3296 + }
3297 + return to;
3298 +};
3299 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3300 +
3301 +// src/queriesObserver.ts
3302 +var queriesObserver_exports = {};
3303 +__export(queriesObserver_exports, {
3304 + QueriesObserver: () => QueriesObserver
3305 +});
3306 +module.exports = __toCommonJS(queriesObserver_exports);
3307 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3308 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
3309 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3310 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3311 +function difference(array1, array2) {
3312 + return array1.filter((x) => !array2.includes(x));
3313 +}
3314 +function replaceAt(array, index, value) {
3315 + const copy = array.slice(0);
3316 + copy[index] = value;
3317 + return copy;
3318 +}
3319 +var QueriesObserver = class extends import_subscribable.Subscribable {
3320 + #client;
3321 + #result;
3322 + #queries;
3323 + #observers;
3324 + #options;
3325 + #combinedResult;
3326 + constructor(client, queries, options) {
3327 + super();
3328 + this.#client = client;
3329 + this.#queries = [];
3330 + this.#observers = [];
3331 + this.#setResult([]);
3332 + this.setQueries(queries, options);
3333 + }
3334 + #setResult(value) {
3335 + this.#result = value;
3336 + this.#combinedResult = this.#combineResult(value);
3337 + }
3338 + onSubscribe() {
3339 + if (this.listeners.size === 1) {
3340 + this.#observers.forEach((observer) => {
3341 + observer.subscribe((result) => {
3342 + this.#onUpdate(observer, result);
3343 + });
3344 + });
3345 + }
3346 + }
3347 + onUnsubscribe() {
3348 + if (!this.listeners.size) {
3349 + this.destroy();
3350 + }
3351 + }
3352 + destroy() {
3353 + this.listeners = /* @__PURE__ */ new Set();
3354 + this.#observers.forEach((observer) => {
3355 + observer.destroy();
3356 + });
3357 + }
3358 + setQueries(queries, options, notifyOptions) {
3359 + this.#queries = queries;
3360 + this.#options = options;
3361 + import_notifyManager.notifyManager.batch(() => {
3362 + const prevObservers = this.#observers;
3363 + const newObserverMatches = this.#findMatchingObservers(this.#queries);
3364 + newObserverMatches.forEach(
3365 + (match) => match.observer.setOptions(match.defaultedQueryOptions, notifyOptions)
3366 + );
3367 + const newObservers = newObserverMatches.map((match) => match.observer);
3368 + const newResult = newObservers.map(
3369 + (observer) => observer.getCurrentResult()
3370 + );
3371 + const hasIndexChange = newObservers.some(
3372 + (observer, index) => observer !== prevObservers[index]
3373 + );
3374 + if (prevObservers.length === newObservers.length && !hasIndexChange) {
3375 + return;
3376 + }
3377 + this.#observers = newObservers;
3378 + this.#setResult(newResult);
3379 + if (!this.hasListeners()) {
3380 + return;
3381 + }
3382 + difference(prevObservers, newObservers).forEach((observer) => {
3383 + observer.destroy();
3384 + });
3385 + difference(newObservers, prevObservers).forEach((observer) => {
3386 + observer.subscribe((result) => {
3387 + this.#onUpdate(observer, result);
3388 + });
3389 + });
3390 + this.#notify();
3391 + });
3392 + }
3393 + getCurrentResult() {
3394 + return this.#combinedResult;
3395 + }
3396 + getQueries() {
3397 + return this.#observers.map((observer) => observer.getCurrentQuery());
3398 + }
3399 + getObservers() {
3400 + return this.#observers;
3401 + }
3402 + getOptimisticResult(queries) {
3403 + const matches = this.#findMatchingObservers(queries);
3404 + const result = matches.map(
3405 + (match) => match.observer.getOptimisticResult(match.defaultedQueryOptions)
3406 + );
3407 + return [
3408 + result,
3409 + (r) => {
3410 + return this.#combineResult(r ?? result);
3411 + },
3412 + () => {
3413 + return matches.map((match, index) => {
3414 + const observerResult = result[index];
3415 + return !match.defaultedQueryOptions.notifyOnChangeProps ? match.observer.trackResult(observerResult) : observerResult;
3416 + });
3417 + }
3418 + ];
3419 + }
3420 + #combineResult(input) {
3421 + const combine = this.#options?.combine;
3422 + if (combine) {
3423 + return (0, import_utils.replaceEqualDeep)(this.#combinedResult, combine(input));
3424 + }
3425 + return input;
3426 + }
3427 + #findMatchingObservers(queries) {
3428 + const prevObservers = this.#observers;
3429 + const prevObserversMap = new Map(
3430 + prevObservers.map((observer) => [observer.options.queryHash, observer])
3431 + );
3432 + const defaultedQueryOptions = queries.map(
3433 + (options) => this.#client.defaultQueryOptions(options)
3434 + );
3435 + const matchingObservers = defaultedQueryOptions.flatMap((defaultedOptions) => {
3436 + const match = prevObserversMap.get(defaultedOptions.queryHash);
3437 + if (match != null) {
3438 + return [{ defaultedQueryOptions: defaultedOptions, observer: match }];
3439 + }
3440 + return [];
3441 + });
3442 + const matchedQueryHashes = new Set(
3443 + matchingObservers.map((match) => match.defaultedQueryOptions.queryHash)
3444 + );
3445 + const unmatchedQueries = defaultedQueryOptions.filter(
3446 + (defaultedOptions) => !matchedQueryHashes.has(defaultedOptions.queryHash)
3447 + );
3448 + const getObserver = (options) => {
3449 + const defaultedOptions = this.#client.defaultQueryOptions(options);
3450 + const currentObserver = this.#observers.find(
3451 + (o) => o.options.queryHash === defaultedOptions.queryHash
3452 + );
3453 + return currentObserver ?? new import_queryObserver.QueryObserver(this.#client, defaultedOptions);
3454 + };
3455 + const newOrReusedObservers = unmatchedQueries.map((options) => {
3456 + return {
3457 + defaultedQueryOptions: options,
3458 + observer: getObserver(options)
3459 + };
3460 + });
3461 + const sortMatchesByOrderOfQueries = (a, b) => defaultedQueryOptions.indexOf(a.defaultedQueryOptions) - defaultedQueryOptions.indexOf(b.defaultedQueryOptions);
3462 + return matchingObservers.concat(newOrReusedObservers).sort(sortMatchesByOrderOfQueries);
3463 + }
3464 + #onUpdate(observer, result) {
3465 + const index = this.#observers.indexOf(observer);
3466 + if (index !== -1) {
3467 + this.#setResult(replaceAt(this.#result, index, result));
3468 + this.#notify();
3469 + }
3470 + }
3471 + #notify() {
3472 + import_notifyManager.notifyManager.batch(() => {
3473 + this.listeners.forEach((listener) => {
3474 + listener(this.#result);
3475 + });
3476 + });
3477 + }
3478 +};
3479 +// Annotate the CommonJS export names for ESM import in node:
3480 +0 && (0);
3481 +//# sourceMappingURL=queriesObserver.cjs.map
3482 +
3483 +/***/ }),
3484 +
3485 +/***/ "../node_modules/@tanstack/query-core/build/modern/query.cjs":
3486 +/*!*******************************************************************!*\
3487 + !*** ../node_modules/@tanstack/query-core/build/modern/query.cjs ***!
3488 + \*******************************************************************/
3489 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3490 +
3491 +"use strict";
3492 +
3493 +var __defProp = Object.defineProperty;
3494 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3495 +var __getOwnPropNames = Object.getOwnPropertyNames;
3496 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3497 +var __export = (target, all) => {
3498 + for (var name in all)
3499 + __defProp(target, name, { get: all[name], enumerable: true });
3500 +};
3501 +var __copyProps = (to, from, except, desc) => {
3502 + if (from && typeof from === "object" || typeof from === "function") {
3503 + for (let key of __getOwnPropNames(from))
3504 + if (!__hasOwnProp.call(to, key) && key !== except)
3505 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3506 + }
3507 + return to;
3508 +};
3509 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3510 +
3511 +// src/query.ts
3512 +var query_exports = {};
3513 +__export(query_exports, {
3514 + Query: () => Query
3515 +});
3516 +module.exports = __toCommonJS(query_exports);
3517 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3518 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3519 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3520 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
3521 +var Query = class extends import_removable.Removable {
3522 + constructor(config) {
3523 + super();
3524 + this.#abortSignalConsumed = false;
3525 + this.#defaultOptions = config.defaultOptions;
3526 + this.#setOptions(config.options);
3527 + this.#observers = [];
3528 + this.#cache = config.cache;
3529 + this.queryKey = config.queryKey;
3530 + this.queryHash = config.queryHash;
3531 + this.#initialState = config.state || getDefaultState(this.options);
3532 + this.state = this.#initialState;
3533 + this.scheduleGc();
3534 + }
3535 + #initialState;
3536 + #revertState;
3537 + #cache;
3538 + #promise;
3539 + #retryer;
3540 + #observers;
3541 + #defaultOptions;
3542 + #abortSignalConsumed;
3543 + get meta() {
3544 + return this.options.meta;
3545 + }
3546 + #setOptions(options) {
3547 + this.options = { ...this.#defaultOptions, ...options };
3548 + this.updateGcTime(this.options.gcTime);
3549 + }
3550 + optionalRemove() {
3551 + if (!this.#observers.length && this.state.fetchStatus === "idle") {
3552 + this.#cache.remove(this);
3553 + }
3554 + }
3555 + setData(newData, options) {
3556 + const data = (0, import_utils.replaceData)(this.state.data, newData, this.options);
3557 + this.#dispatch({
3558 + data,
3559 + type: "success",
3560 + dataUpdatedAt: options?.updatedAt,
3561 + manual: options?.manual
3562 + });
3563 + return data;
3564 + }
3565 + setState(state, setStateOptions) {
3566 + this.#dispatch({ type: "setState", state, setStateOptions });
3567 + }
3568 + cancel(options) {
3569 + const promise = this.#promise;
3570 + this.#retryer?.cancel(options);
3571 + return promise ? promise.then(import_utils.noop).catch(import_utils.noop) : Promise.resolve();
3572 + }
3573 + destroy() {
3574 + super.destroy();
3575 + this.cancel({ silent: true });
3576 + }
3577 + reset() {
3578 + this.destroy();
3579 + this.setState(this.#initialState);
3580 + }
3581 + isActive() {
3582 + return this.#observers.some(
3583 + (observer) => observer.options.enabled !== false
3584 + );
3585 + }
3586 + isDisabled() {
3587 + return this.getObserversCount() > 0 && !this.isActive();
3588 + }
3589 + isStale() {
3590 + return this.state.isInvalidated || !this.state.dataUpdatedAt || this.#observers.some((observer) => observer.getCurrentResult().isStale);
3591 + }
3592 + isStaleByTime(staleTime = 0) {
3593 + return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, import_utils.timeUntilStale)(this.state.dataUpdatedAt, staleTime);
3594 + }
3595 + onFocus() {
3596 + const observer = this.#observers.find((x) => x.shouldFetchOnWindowFocus());
3597 + observer?.refetch({ cancelRefetch: false });
3598 + this.#retryer?.continue();
3599 + }
3600 + onOnline() {
3601 + const observer = this.#observers.find((x) => x.shouldFetchOnReconnect());
3602 + observer?.refetch({ cancelRefetch: false });
3603 + this.#retryer?.continue();
3604 + }
3605 + addObserver(observer) {
3606 + if (!this.#observers.includes(observer)) {
3607 + this.#observers.push(observer);
3608 + this.clearGcTimeout();
3609 + this.#cache.notify({ type: "observerAdded", query: this, observer });
3610 + }
3611 + }
3612 + removeObserver(observer) {
3613 + if (this.#observers.includes(observer)) {
3614 + this.#observers = this.#observers.filter((x) => x !== observer);
3615 + if (!this.#observers.length) {
3616 + if (this.#retryer) {
3617 + if (this.#abortSignalConsumed) {
3618 + this.#retryer.cancel({ revert: true });
3619 + } else {
3620 + this.#retryer.cancelRetry();
3621 + }
3622 + }
3623 + this.scheduleGc();
3624 + }
3625 + this.#cache.notify({ type: "observerRemoved", query: this, observer });
3626 + }
3627 + }
3628 + getObserversCount() {
3629 + return this.#observers.length;
3630 + }
3631 + invalidate() {
3632 + if (!this.state.isInvalidated) {
3633 + this.#dispatch({ type: "invalidate" });
3634 + }
3635 + }
3636 + fetch(options, fetchOptions) {
3637 + if (this.state.fetchStatus !== "idle") {
3638 + if (this.state.dataUpdatedAt && fetchOptions?.cancelRefetch) {
3639 + this.cancel({ silent: true });
3640 + } else if (this.#promise) {
3641 + this.#retryer?.continueRetry();
3642 + return this.#promise;
3643 + }
3644 + }
3645 + if (options) {
3646 + this.#setOptions(options);
3647 + }
3648 + if (!this.options.queryFn) {
3649 + const observer = this.#observers.find((x) => x.options.queryFn);
3650 + if (observer) {
3651 + this.#setOptions(observer.options);
3652 + }
3653 + }
3654 + if (true) {
3655 + if (!Array.isArray(this.options.queryKey)) {
3656 + console.error(
3657 + `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']`
3658 + );
3659 + }
3660 + }
3661 + const abortController = new AbortController();
3662 + const queryFnContext = {
3663 + queryKey: this.queryKey,
3664 + meta: this.meta
3665 + };
3666 + const addSignalProperty = (object) => {
3667 + Object.defineProperty(object, "signal", {
3668 + enumerable: true,
3669 + get: () => {
3670 + this.#abortSignalConsumed = true;
3671 + return abortController.signal;
3672 + }
3673 + });
3674 + };
3675 + addSignalProperty(queryFnContext);
3676 + const fetchFn = () => {
3677 + if (!this.options.queryFn) {
3678 + return Promise.reject(
3679 + new Error(`Missing queryFn: '${this.options.queryHash}'`)
3680 + );
3681 + }
3682 + this.#abortSignalConsumed = false;
3683 + if (this.options.persister) {
3684 + return this.options.persister(
3685 + this.options.queryFn,
3686 + queryFnContext,
3687 + this
3688 + );
3689 + }
3690 + return this.options.queryFn(
3691 + queryFnContext
3692 + );
3693 + };
3694 + const context = {
3695 + fetchOptions,
3696 + options: this.options,
3697 + queryKey: this.queryKey,
3698 + state: this.state,
3699 + fetchFn
3700 + };
3701 + addSignalProperty(context);
3702 + this.options.behavior?.onFetch(
3703 + context,
3704 + this
3705 + );
3706 + this.#revertState = this.state;
3707 + if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== context.fetchOptions?.meta) {
3708 + this.#dispatch({ type: "fetch", meta: context.fetchOptions?.meta });
3709 + }
3710 + const onError = (error) => {
3711 + if (!((0, import_retryer.isCancelledError)(error) && error.silent)) {
3712 + this.#dispatch({
3713 + type: "error",
3714 + error
3715 + });
3716 + }
3717 + if (!(0, import_retryer.isCancelledError)(error)) {
3718 + this.#cache.config.onError?.(
3719 + error,
3720 + this
3721 + );
3722 + this.#cache.config.onSettled?.(
3723 + this.state.data,
3724 + error,
3725 + this
3726 + );
3727 + }
3728 + if (!this.isFetchingOptimistic) {
3729 + this.scheduleGc();
3730 + }
3731 + this.isFetchingOptimistic = false;
3732 + };
3733 + this.#retryer = (0, import_retryer.createRetryer)({
3734 + fn: context.fetchFn,
3735 + abort: abortController.abort.bind(abortController),
3736 + onSuccess: (data) => {
3737 + if (typeof data === "undefined") {
3738 + if (true) {
3739 + console.error(
3740 + `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
3741 + );
3742 + }
3743 + onError(new Error(`${this.queryHash} data is undefined`));
3744 + return;
3745 + }
3746 + this.setData(data);
3747 + this.#cache.config.onSuccess?.(data, this);
3748 + this.#cache.config.onSettled?.(
3749 + data,
3750 + this.state.error,
3751 + this
3752 + );
3753 + if (!this.isFetchingOptimistic) {
3754 + this.scheduleGc();
3755 + }
3756 + this.isFetchingOptimistic = false;
3757 + },
3758 + onError,
3759 + onFail: (failureCount, error) => {
3760 + this.#dispatch({ type: "failed", failureCount, error });
3761 + },
3762 + onPause: () => {
3763 + this.#dispatch({ type: "pause" });
3764 + },
3765 + onContinue: () => {
3766 + this.#dispatch({ type: "continue" });
3767 + },
3768 + retry: context.options.retry,
3769 + retryDelay: context.options.retryDelay,
3770 + networkMode: context.options.networkMode
3771 + });
3772 + this.#promise = this.#retryer.promise;
3773 + return this.#promise;
3774 + }
3775 + #dispatch(action) {
3776 + const reducer = (state) => {
3777 + switch (action.type) {
3778 + case "failed":
3779 + return {
3780 + ...state,
3781 + fetchFailureCount: action.failureCount,
3782 + fetchFailureReason: action.error
3783 + };
3784 + case "pause":
3785 + return {
3786 + ...state,
3787 + fetchStatus: "paused"
3788 + };
3789 + case "continue":
3790 + return {
3791 + ...state,
3792 + fetchStatus: "fetching"
3793 + };
3794 + case "fetch":
3795 + return {
3796 + ...state,
3797 + fetchFailureCount: 0,
3798 + fetchFailureReason: null,
3799 + fetchMeta: action.meta ?? null,
3800 + fetchStatus: (0, import_retryer.canFetch)(this.options.networkMode) ? "fetching" : "paused",
3801 + ...!state.dataUpdatedAt && {
3802 + error: null,
3803 + status: "pending"
3804 + }
3805 + };
3806 + case "success":
3807 + return {
3808 + ...state,
3809 + data: action.data,
3810 + dataUpdateCount: state.dataUpdateCount + 1,
3811 + dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),
3812 + error: null,
3813 + isInvalidated: false,
3814 + status: "success",
3815 + ...!action.manual && {
3816 + fetchStatus: "idle",
3817 + fetchFailureCount: 0,
3818 + fetchFailureReason: null
3819 + }
3820 + };
3821 + case "error":
3822 + const error = action.error;
3823 + if ((0, import_retryer.isCancelledError)(error) && error.revert && this.#revertState) {
3824 + return { ...this.#revertState, fetchStatus: "idle" };
3825 + }
3826 + return {
3827 + ...state,
3828 + error,
3829 + errorUpdateCount: state.errorUpdateCount + 1,
3830 + errorUpdatedAt: Date.now(),
3831 + fetchFailureCount: state.fetchFailureCount + 1,
3832 + fetchFailureReason: error,
3833 + fetchStatus: "idle",
3834 + status: "error"
3835 + };
3836 + case "invalidate":
3837 + return {
3838 + ...state,
3839 + isInvalidated: true
3840 + };
3841 + case "setState":
3842 + return {
3843 + ...state,
3844 + ...action.state
3845 + };
3846 + }
3847 + };
3848 + this.state = reducer(this.state);
3849 + import_notifyManager.notifyManager.batch(() => {
3850 + this.#observers.forEach((observer) => {
3851 + observer.onQueryUpdate();
3852 + });
3853 + this.#cache.notify({ query: this, type: "updated", action });
3854 + });
3855 + }
3856 +};
3857 +function getDefaultState(options) {
3858 + const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
3859 + const hasData = typeof data !== "undefined";
3860 + const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === "function" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
3861 + return {
3862 + data,
3863 + dataUpdateCount: 0,
3864 + dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,
3865 + error: null,
3866 + errorUpdateCount: 0,
3867 + errorUpdatedAt: 0,
3868 + fetchFailureCount: 0,
3869 + fetchFailureReason: null,
3870 + fetchMeta: null,
3871 + isInvalidated: false,
3872 + status: hasData ? "success" : "pending",
3873 + fetchStatus: "idle"
3874 + };
3875 +}
3876 +// Annotate the CommonJS export names for ESM import in node:
3877 +0 && (0);
3878 +//# sourceMappingURL=query.cjs.map
3879 +
3880 +/***/ }),
3881 +
3882 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs":
3883 +/*!************************************************************************!*\
3884 + !*** ../node_modules/@tanstack/query-core/build/modern/queryCache.cjs ***!
3885 + \************************************************************************/
3886 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3887 +
3888 +"use strict";
3889 +
3890 +var __defProp = Object.defineProperty;
3891 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3892 +var __getOwnPropNames = Object.getOwnPropertyNames;
3893 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3894 +var __export = (target, all) => {
3895 + for (var name in all)
3896 + __defProp(target, name, { get: all[name], enumerable: true });
3897 +};
3898 +var __copyProps = (to, from, except, desc) => {
3899 + if (from && typeof from === "object" || typeof from === "function") {
3900 + for (let key of __getOwnPropNames(from))
3901 + if (!__hasOwnProp.call(to, key) && key !== except)
3902 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3903 + }
3904 + return to;
3905 +};
3906 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3907 +
3908 +// src/queryCache.ts
3909 +var queryCache_exports = {};
3910 +__export(queryCache_exports, {
3911 + QueryCache: () => QueryCache
3912 +});
3913 +module.exports = __toCommonJS(queryCache_exports);
3914 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3915 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
3916 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3917 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3918 +var QueryCache = class extends import_subscribable.Subscribable {
3919 + constructor(config = {}) {
3920 + super();
3921 + this.config = config;
3922 + this.#queries = /* @__PURE__ */ new Map();
3923 + }
3924 + #queries;
3925 + build(client, options, state) {
3926 + const queryKey = options.queryKey;
3927 + const queryHash = options.queryHash ?? (0, import_utils.hashQueryKeyByOptions)(queryKey, options);
3928 + let query = this.get(queryHash);
3929 + if (!query) {
3930 + query = new import_query.Query({
3931 + cache: this,
3932 + queryKey,
3933 + queryHash,
3934 + options: client.defaultQueryOptions(options),
3935 + state,
3936 + defaultOptions: client.getQueryDefaults(queryKey)
3937 + });
3938 + this.add(query);
3939 + }
3940 + return query;
3941 + }
3942 + add(query) {
3943 + if (!this.#queries.has(query.queryHash)) {
3944 + this.#queries.set(query.queryHash, query);
3945 + this.notify({
3946 + type: "added",
3947 + query
3948 + });
3949 + }
3950 + }
3951 + remove(query) {
3952 + const queryInMap = this.#queries.get(query.queryHash);
3953 + if (queryInMap) {
3954 + query.destroy();
3955 + if (queryInMap === query) {
3956 + this.#queries.delete(query.queryHash);
3957 + }
3958 + this.notify({ type: "removed", query });
3959 + }
3960 + }
3961 + clear() {
3962 + import_notifyManager.notifyManager.batch(() => {
3963 + this.getAll().forEach((query) => {
3964 + this.remove(query);
3965 + });
3966 + });
3967 + }
3968 + get(queryHash) {
3969 + return this.#queries.get(queryHash);
3970 + }
3971 + getAll() {
3972 + return [...this.#queries.values()];
3973 + }
3974 + find(filters) {
3975 + const defaultedFilters = { exact: true, ...filters };
3976 + return this.getAll().find(
3977 + (query) => (0, import_utils.matchQuery)(defaultedFilters, query)
3978 + );
3979 + }
3980 + findAll(filters = {}) {
3981 + const queries = this.getAll();
3982 + return Object.keys(filters).length > 0 ? queries.filter((query) => (0, import_utils.matchQuery)(filters, query)) : queries;
3983 + }
3984 + notify(event) {
3985 + import_notifyManager.notifyManager.batch(() => {
3986 + this.listeners.forEach((listener) => {
3987 + listener(event);
3988 + });
3989 + });
3990 + }
3991 + onFocus() {
3992 + import_notifyManager.notifyManager.batch(() => {
3993 + this.getAll().forEach((query) => {
3994 + query.onFocus();
3995 + });
3996 + });
3997 + }
3998 + onOnline() {
3999 + import_notifyManager.notifyManager.batch(() => {
4000 + this.getAll().forEach((query) => {
4001 + query.onOnline();
4002 + });
4003 + });
4004 + }
4005 +};
4006 +// Annotate the CommonJS export names for ESM import in node:
4007 +0 && (0);
4008 +//# sourceMappingURL=queryCache.cjs.map
4009 +
4010 +/***/ }),
4011 +
4012 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs":
4013 +/*!*************************************************************************!*\
4014 + !*** ../node_modules/@tanstack/query-core/build/modern/queryClient.cjs ***!
4015 + \*************************************************************************/
4016 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4017 +
4018 +"use strict";
4019 +
4020 +var __defProp = Object.defineProperty;
4021 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4022 +var __getOwnPropNames = Object.getOwnPropertyNames;
4023 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4024 +var __export = (target, all) => {
4025 + for (var name in all)
4026 + __defProp(target, name, { get: all[name], enumerable: true });
4027 +};
4028 +var __copyProps = (to, from, except, desc) => {
4029 + if (from && typeof from === "object" || typeof from === "function") {
4030 + for (let key of __getOwnPropNames(from))
4031 + if (!__hasOwnProp.call(to, key) && key !== except)
4032 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4033 + }
4034 + return to;
4035 +};
4036 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4037 +
4038 +// src/queryClient.ts
4039 +var queryClient_exports = {};
4040 +__export(queryClient_exports, {
4041 + QueryClient: () => QueryClient
4042 +});
4043 +module.exports = __toCommonJS(queryClient_exports);
4044 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4045 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
4046 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
4047 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
4048 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
4049 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4050 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
4051 +var QueryClient = class {
4052 + #queryCache;
4053 + #mutationCache;
4054 + #defaultOptions;
4055 + #queryDefaults;
4056 + #mutationDefaults;
4057 + #mountCount;
4058 + #unsubscribeFocus;
4059 + #unsubscribeOnline;
4060 + constructor(config = {}) {
4061 + this.#queryCache = config.queryCache || new import_queryCache.QueryCache();
4062 + this.#mutationCache = config.mutationCache || new import_mutationCache.MutationCache();
4063 + this.#defaultOptions = config.defaultOptions || {};
4064 + this.#queryDefaults = /* @__PURE__ */ new Map();
4065 + this.#mutationDefaults = /* @__PURE__ */ new Map();
4066 + this.#mountCount = 0;
4067 + }
4068 + mount() {
4069 + this.#mountCount++;
4070 + if (this.#mountCount !== 1)
4071 + return;
4072 + this.#unsubscribeFocus = import_focusManager.focusManager.subscribe(() => {
4073 + if (import_focusManager.focusManager.isFocused()) {
4074 + this.resumePausedMutations();
4075 + this.#queryCache.onFocus();
4076 + }
4077 + });
4078 + this.#unsubscribeOnline = import_onlineManager.onlineManager.subscribe(() => {
4079 + if (import_onlineManager.onlineManager.isOnline()) {
4080 + this.resumePausedMutations();
4081 + this.#queryCache.onOnline();
4082 + }
4083 + });
4084 + }
4085 + unmount() {
4086 + this.#mountCount--;
4087 + if (this.#mountCount !== 0)
4088 + return;
4089 + this.#unsubscribeFocus?.();
4090 + this.#unsubscribeFocus = void 0;
4091 + this.#unsubscribeOnline?.();
4092 + this.#unsubscribeOnline = void 0;
4093 + }
4094 + isFetching(filters) {
4095 + return this.#queryCache.findAll({ ...filters, fetchStatus: "fetching" }).length;
4096 + }
4097 + isMutating(filters) {
4098 + return this.#mutationCache.findAll({ ...filters, status: "pending" }).length;
4099 + }
4100 + getQueryData(queryKey) {
4101 + return this.#queryCache.find({ queryKey })?.state.data;
4102 + }
4103 + ensureQueryData(options) {
4104 + const cachedData = this.getQueryData(options.queryKey);
4105 + return cachedData !== void 0 ? Promise.resolve(cachedData) : this.fetchQuery(options);
4106 + }
4107 + getQueriesData(filters) {
4108 + return this.getQueryCache().findAll(filters).map(({ queryKey, state }) => {
4109 + const data = state.data;
4110 + return [queryKey, data];
4111 + });
4112 + }
4113 + setQueryData(queryKey, updater, options) {
4114 + const query = this.#queryCache.find({ queryKey });
4115 + const prevData = query?.state.data;
4116 + const data = (0, import_utils.functionalUpdate)(updater, prevData);
4117 + if (typeof data === "undefined") {
4118 + return void 0;
4119 + }
4120 + const defaultedOptions = this.defaultQueryOptions({ queryKey });
4121 + return this.#queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true });
4122 + }
4123 + setQueriesData(filters, updater, options) {
4124 + return import_notifyManager.notifyManager.batch(
4125 + () => this.getQueryCache().findAll(filters).map(({ queryKey }) => [
4126 + queryKey,
4127 + this.setQueryData(queryKey, updater, options)
4128 + ])
4129 + );
4130 + }
4131 + getQueryState(queryKey) {
4132 + return this.#queryCache.find({ queryKey })?.state;
4133 + }
4134 + removeQueries(filters) {
4135 + const queryCache = this.#queryCache;
4136 + import_notifyManager.notifyManager.batch(() => {
4137 + queryCache.findAll(filters).forEach((query) => {
4138 + queryCache.remove(query);
4139 + });
4140 + });
4141 + }
4142 + resetQueries(filters, options) {
4143 + const queryCache = this.#queryCache;
4144 + const refetchFilters = {
4145 + type: "active",
4146 + ...filters
4147 + };
4148 + return import_notifyManager.notifyManager.batch(() => {
4149 + queryCache.findAll(filters).forEach((query) => {
4150 + query.reset();
4151 + });
4152 + return this.refetchQueries(refetchFilters, options);
4153 + });
4154 + }
4155 + cancelQueries(filters = {}, cancelOptions = {}) {
4156 + const defaultedCancelOptions = { revert: true, ...cancelOptions };
4157 + const promises = import_notifyManager.notifyManager.batch(
4158 + () => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
4159 + );
4160 + return Promise.all(promises).then(import_utils.noop).catch(import_utils.noop);
4161 + }
4162 + invalidateQueries(filters = {}, options = {}) {
4163 + return import_notifyManager.notifyManager.batch(() => {
4164 + this.#queryCache.findAll(filters).forEach((query) => {
4165 + query.invalidate();
4166 + });
4167 + if (filters.refetchType === "none") {
4168 + return Promise.resolve();
4169 + }
4170 + const refetchFilters = {
4171 + ...filters,
4172 + type: filters.refetchType ?? filters.type ?? "active"
4173 + };
4174 + return this.refetchQueries(refetchFilters, options);
4175 + });
4176 + }
4177 + refetchQueries(filters = {}, options) {
4178 + const fetchOptions = {
4179 + ...options,
4180 + cancelRefetch: options?.cancelRefetch ?? true
4181 + };
4182 + const promises = import_notifyManager.notifyManager.batch(
4183 + () => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
4184 + let promise = query.fetch(void 0, fetchOptions);
4185 + if (!fetchOptions.throwOnError) {
4186 + promise = promise.catch(import_utils.noop);
4187 + }
4188 + return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
4189 + })
4190 + );
4191 + return Promise.all(promises).then(import_utils.noop);
4192 + }
4193 + fetchQuery(options) {
4194 + const defaultedOptions = this.defaultQueryOptions(options);
4195 + if (typeof defaultedOptions.retry === "undefined") {
4196 + defaultedOptions.retry = false;
4197 + }
4198 + const query = this.#queryCache.build(this, defaultedOptions);
4199 + return query.isStaleByTime(defaultedOptions.staleTime) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
4200 + }
4201 + prefetchQuery(options) {
4202 + return this.fetchQuery(options).then(import_utils.noop).catch(import_utils.noop);
4203 + }
4204 + fetchInfiniteQuery(options) {
4205 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)(options.pages);
4206 + return this.fetchQuery(options);
4207 + }
4208 + prefetchInfiniteQuery(options) {
4209 + return this.fetchInfiniteQuery(options).then(import_utils.noop).catch(import_utils.noop);
4210 + }
4211 + resumePausedMutations() {
4212 + return this.#mutationCache.resumePausedMutations();
4213 + }
4214 + getQueryCache() {
4215 + return this.#queryCache;
4216 + }
4217 + getMutationCache() {
4218 + return this.#mutationCache;
4219 + }
4220 + getDefaultOptions() {
4221 + return this.#defaultOptions;
4222 + }
4223 + setDefaultOptions(options) {
4224 + this.#defaultOptions = options;
4225 + }
4226 + setQueryDefaults(queryKey, options) {
4227 + this.#queryDefaults.set((0, import_utils.hashKey)(queryKey), {
4228 + queryKey,
4229 + defaultOptions: options
4230 + });
4231 + }
4232 + getQueryDefaults(queryKey) {
4233 + const defaults = [...this.#queryDefaults.values()];
4234 + let result = {};
4235 + defaults.forEach((queryDefault) => {
4236 + if ((0, import_utils.partialMatchKey)(queryKey, queryDefault.queryKey)) {
4237 + result = { ...result, ...queryDefault.defaultOptions };
4238 + }
4239 + });
4240 + return result;
4241 + }
4242 + setMutationDefaults(mutationKey, options) {
4243 + this.#mutationDefaults.set((0, import_utils.hashKey)(mutationKey), {
4244 + mutationKey,
4245 + defaultOptions: options
4246 + });
4247 + }
4248 + getMutationDefaults(mutationKey) {
4249 + const defaults = [...this.#mutationDefaults.values()];
4250 + let result = {};
4251 + defaults.forEach((queryDefault) => {
4252 + if ((0, import_utils.partialMatchKey)(mutationKey, queryDefault.mutationKey)) {
4253 + result = { ...result, ...queryDefault.defaultOptions };
4254 + }
4255 + });
4256 + return result;
4257 + }
4258 + defaultQueryOptions(options) {
4259 + if (options?._defaulted) {
4260 + return options;
4261 + }
4262 + const defaultedOptions = {
4263 + ...this.#defaultOptions.queries,
4264 + ...options?.queryKey && this.getQueryDefaults(options.queryKey),
4265 + ...options,
4266 + _defaulted: true
4267 + };
4268 + if (!defaultedOptions.queryHash) {
4269 + defaultedOptions.queryHash = (0, import_utils.hashQueryKeyByOptions)(
4270 + defaultedOptions.queryKey,
4271 + defaultedOptions
4272 + );
4273 + }
4274 + if (typeof defaultedOptions.refetchOnReconnect === "undefined") {
4275 + defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
4276 + }
4277 + if (typeof defaultedOptions.throwOnError === "undefined") {
4278 + defaultedOptions.throwOnError = !!defaultedOptions.suspense;
4279 + }
4280 + if (typeof defaultedOptions.networkMode === "undefined" && defaultedOptions.persister) {
4281 + defaultedOptions.networkMode = "offlineFirst";
4282 + }
4283 + return defaultedOptions;
4284 + }
4285 + defaultMutationOptions(options) {
4286 + if (options?._defaulted) {
4287 + return options;
4288 + }
4289 + return {
4290 + ...this.#defaultOptions.mutations,
4291 + ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),
4292 + ...options,
4293 + _defaulted: true
4294 + };
4295 + }
4296 + clear() {
4297 + this.#queryCache.clear();
4298 + this.#mutationCache.clear();
4299 + }
4300 +};
4301 +// Annotate the CommonJS export names for ESM import in node:
4302 +0 && (0);
4303 +//# sourceMappingURL=queryClient.cjs.map
4304 +
4305 +/***/ }),
4306 +
4307 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs":
4308 +/*!***************************************************************************!*\
4309 + !*** ../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs ***!
4310 + \***************************************************************************/
4311 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4312 +
4313 +"use strict";
4314 +
4315 +var __defProp = Object.defineProperty;
4316 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4317 +var __getOwnPropNames = Object.getOwnPropertyNames;
4318 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4319 +var __export = (target, all) => {
4320 + for (var name in all)
4321 + __defProp(target, name, { get: all[name], enumerable: true });
4322 +};
4323 +var __copyProps = (to, from, except, desc) => {
4324 + if (from && typeof from === "object" || typeof from === "function") {
4325 + for (let key of __getOwnPropNames(from))
4326 + if (!__hasOwnProp.call(to, key) && key !== except)
4327 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4328 + }
4329 + return to;
4330 +};
4331 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4332 +
4333 +// src/queryObserver.ts
4334 +var queryObserver_exports = {};
4335 +__export(queryObserver_exports, {
4336 + QueryObserver: () => QueryObserver
4337 +});
4338 +module.exports = __toCommonJS(queryObserver_exports);
4339 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4340 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4341 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
4342 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4343 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
4344 +var QueryObserver = class extends import_subscribable.Subscribable {
4345 + constructor(client, options) {
4346 + super();
4347 + this.#currentQuery = void 0;
4348 + this.#currentQueryInitialState = void 0;
4349 + this.#currentResult = void 0;
4350 + this.#trackedProps = /* @__PURE__ */ new Set();
4351 + this.#client = client;
4352 + this.options = options;
4353 + this.#selectError = null;
4354 + this.bindMethods();
4355 + this.setOptions(options);
4356 + }
4357 + #client;
4358 + #currentQuery;
4359 + #currentQueryInitialState;
4360 + #currentResult;
4361 + #currentResultState;
4362 + #currentResultOptions;
4363 + #selectError;
4364 + #selectFn;
4365 + #selectResult;
4366 + // This property keeps track of the last query with defined data.
4367 + // It will be used to pass the previous data and query to the placeholder function between renders.
4368 + #lastQueryWithDefinedData;
4369 + #staleTimeoutId;
4370 + #refetchIntervalId;
4371 + #currentRefetchInterval;
4372 + #trackedProps;
4373 + bindMethods() {
4374 + this.refetch = this.refetch.bind(this);
4375 + }
4376 + onSubscribe() {
4377 + if (this.listeners.size === 1) {
4378 + this.#currentQuery.addObserver(this);
4379 + if (shouldFetchOnMount(this.#currentQuery, this.options)) {
4380 + this.#executeFetch();
4381 + }
4382 + this.#updateTimers();
4383 + }
4384 + }
4385 + onUnsubscribe() {
4386 + if (!this.hasListeners()) {
4387 + this.destroy();
4388 + }
4389 + }
4390 + shouldFetchOnReconnect() {
4391 + return shouldFetchOn(
4392 + this.#currentQuery,
4393 + this.options,
4394 + this.options.refetchOnReconnect
4395 + );
4396 + }
4397 + shouldFetchOnWindowFocus() {
4398 + return shouldFetchOn(
4399 + this.#currentQuery,
4400 + this.options,
4401 + this.options.refetchOnWindowFocus
4402 + );
4403 + }
4404 + destroy() {
4405 + this.listeners = /* @__PURE__ */ new Set();
4406 + this.#clearStaleTimeout();
4407 + this.#clearRefetchInterval();
4408 + this.#currentQuery.removeObserver(this);
4409 + }
4410 + setOptions(options, notifyOptions) {
4411 + const prevOptions = this.options;
4412 + const prevQuery = this.#currentQuery;
4413 + this.options = this.#client.defaultQueryOptions(options);
4414 + if (!(0, import_utils.shallowEqualObjects)(prevOptions, this.options)) {
4415 + this.#client.getQueryCache().notify({
4416 + type: "observerOptionsUpdated",
4417 + query: this.#currentQuery,
4418 + observer: this
4419 + });
4420 + }
4421 + if (typeof this.options.enabled !== "undefined" && typeof this.options.enabled !== "boolean") {
4422 + throw new Error("Expected enabled to be a boolean");
4423 + }
4424 + if (!this.options.queryKey) {
4425 + this.options.queryKey = prevOptions.queryKey;
4426 + }
4427 + this.#updateQuery();
4428 + const mounted = this.hasListeners();
4429 + if (mounted && shouldFetchOptionally(
4430 + this.#currentQuery,
4431 + prevQuery,
4432 + this.options,
4433 + prevOptions
4434 + )) {
4435 + this.#executeFetch();
4436 + }
4437 + this.updateResult(notifyOptions);
4438 + if (mounted && (this.#currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || this.options.staleTime !== prevOptions.staleTime)) {
4439 + this.#updateStaleTimeout();
4440 + }
4441 + const nextRefetchInterval = this.#computeRefetchInterval();
4442 + if (mounted && (this.#currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || nextRefetchInterval !== this.#currentRefetchInterval)) {
4443 + this.#updateRefetchInterval(nextRefetchInterval);
4444 + }
4445 + }
4446 + getOptimisticResult(options) {
4447 + const query = this.#client.getQueryCache().build(this.#client, options);
4448 + const result = this.createResult(query, options);
4449 + if (shouldAssignObserverCurrentProperties(this, result)) {
4450 + this.#currentResult = result;
4451 + this.#currentResultOptions = this.options;
4452 + this.#currentResultState = this.#currentQuery.state;
4453 + }
4454 + return result;
4455 + }
4456 + getCurrentResult() {
4457 + return this.#currentResult;
4458 + }
4459 + trackResult(result) {
4460 + const trackedResult = {};
4461 + Object.keys(result).forEach((key) => {
4462 + Object.defineProperty(trackedResult, key, {
4463 + configurable: false,
4464 + enumerable: true,
4465 + get: () => {
4466 + this.#trackedProps.add(key);
4467 + return result[key];
4468 + }
4469 + });
4470 + });
4471 + return trackedResult;
4472 + }
4473 + getCurrentQuery() {
4474 + return this.#currentQuery;
4475 + }
4476 + refetch({ ...options } = {}) {
4477 + return this.fetch({
4478 + ...options
4479 + });
4480 + }
4481 + fetchOptimistic(options) {
4482 + const defaultedOptions = this.#client.defaultQueryOptions(options);
4483 + const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);
4484 + query.isFetchingOptimistic = true;
4485 + return query.fetch().then(() => this.createResult(query, defaultedOptions));
4486 + }
4487 + fetch(fetchOptions) {
4488 + return this.#executeFetch({
4489 + ...fetchOptions,
4490 + cancelRefetch: fetchOptions.cancelRefetch ?? true
4491 + }).then(() => {
4492 + this.updateResult();
4493 + return this.#currentResult;
4494 + });
4495 + }
4496 + #executeFetch(fetchOptions) {
4497 + this.#updateQuery();
4498 + let promise = this.#currentQuery.fetch(
4499 + this.options,
4500 + fetchOptions
4501 + );
4502 + if (!fetchOptions?.throwOnError) {
4503 + promise = promise.catch(import_utils.noop);
4504 + }
4505 + return promise;
4506 + }
4507 + #updateStaleTimeout() {
4508 + this.#clearStaleTimeout();
4509 + if (import_utils.isServer || this.#currentResult.isStale || !(0, import_utils.isValidTimeout)(this.options.staleTime)) {
4510 + return;
4511 + }
4512 + const time = (0, import_utils.timeUntilStale)(
4513 + this.#currentResult.dataUpdatedAt,
4514 + this.options.staleTime
4515 + );
4516 + const timeout = time + 1;
4517 + this.#staleTimeoutId = setTimeout(() => {
4518 + if (!this.#currentResult.isStale) {
4519 + this.updateResult();
4520 + }
4521 + }, timeout);
4522 + }
4523 + #computeRefetchInterval() {
4524 + return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;
4525 + }
4526 + #updateRefetchInterval(nextInterval) {
4527 + this.#clearRefetchInterval();
4528 + this.#currentRefetchInterval = nextInterval;
4529 + if (import_utils.isServer || this.options.enabled === false || !(0, import_utils.isValidTimeout)(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) {
4530 + return;
4531 + }
4532 + this.#refetchIntervalId = setInterval(() => {
4533 + if (this.options.refetchIntervalInBackground || import_focusManager.focusManager.isFocused()) {
4534 + this.#executeFetch();
4535 + }
4536 + }, this.#currentRefetchInterval);
4537 + }
4538 + #updateTimers() {
4539 + this.#updateStaleTimeout();
4540 + this.#updateRefetchInterval(this.#computeRefetchInterval());
4541 + }
4542 + #clearStaleTimeout() {
4543 + if (this.#staleTimeoutId) {
4544 + clearTimeout(this.#staleTimeoutId);
4545 + this.#staleTimeoutId = void 0;
4546 + }
4547 + }
4548 + #clearRefetchInterval() {
4549 + if (this.#refetchIntervalId) {
4550 + clearInterval(this.#refetchIntervalId);
4551 + this.#refetchIntervalId = void 0;
4552 + }
4553 + }
4554 + createResult(query, options) {
4555 + const prevQuery = this.#currentQuery;
4556 + const prevOptions = this.options;
4557 + const prevResult = this.#currentResult;
4558 + const prevResultState = this.#currentResultState;
4559 + const prevResultOptions = this.#currentResultOptions;
4560 + const queryChange = query !== prevQuery;
4561 + const queryInitialState = queryChange ? query.state : this.#currentQueryInitialState;
4562 + const { state } = query;
4563 + let { error, errorUpdatedAt, fetchStatus, status } = state;
4564 + let isPlaceholderData = false;
4565 + let data;
4566 + if (options._optimisticResults) {
4567 + const mounted = this.hasListeners();
4568 + const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
4569 + const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
4570 + if (fetchOnMount || fetchOptionally) {
4571 + fetchStatus = (0, import_retryer.canFetch)(query.options.networkMode) ? "fetching" : "paused";
4572 + if (!state.dataUpdatedAt) {
4573 + status = "pending";
4574 + }
4575 + }
4576 + if (options._optimisticResults === "isRestoring") {
4577 + fetchStatus = "idle";
4578 + }
4579 + }
4580 + if (options.select && typeof state.data !== "undefined") {
4581 + if (prevResult && state.data === prevResultState?.data && options.select === this.#selectFn) {
4582 + data = this.#selectResult;
4583 + } else {
4584 + try {
4585 + this.#selectFn = options.select;
4586 + data = options.select(state.data);
4587 + data = (0, import_utils.replaceData)(prevResult?.data, data, options);
4588 + this.#selectResult = data;
4589 + this.#selectError = null;
4590 + } catch (selectError) {
4591 + this.#selectError = selectError;
4592 + }
4593 + }
4594 + } else {
4595 + data = state.data;
4596 + }
4597 + if (typeof options.placeholderData !== "undefined" && typeof data === "undefined" && status === "pending") {
4598 + let placeholderData;
4599 + if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {
4600 + placeholderData = prevResult.data;
4601 + } else {
4602 + placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
4603 + this.#lastQueryWithDefinedData?.state.data,
4604 + this.#lastQueryWithDefinedData
4605 + ) : options.placeholderData;
4606 + if (options.select && typeof placeholderData !== "undefined") {
4607 + try {
4608 + placeholderData = options.select(placeholderData);
4609 + this.#selectError = null;
4610 + } catch (selectError) {
4611 + this.#selectError = selectError;
4612 + }
4613 + }
4614 + }
4615 + if (typeof placeholderData !== "undefined") {
4616 + status = "success";
4617 + data = (0, import_utils.replaceData)(
4618 + prevResult?.data,
4619 + placeholderData,
4620 + options
4621 + );
4622 + isPlaceholderData = true;
4623 + }
4624 + }
4625 + if (this.#selectError) {
4626 + error = this.#selectError;
4627 + data = this.#selectResult;
4628 + errorUpdatedAt = Date.now();
4629 + status = "error";
4630 + }
4631 + const isFetching = fetchStatus === "fetching";
4632 + const isPending = status === "pending";
4633 + const isError = status === "error";
4634 + const isLoading = isPending && isFetching;
4635 + const result = {
4636 + status,
4637 + fetchStatus,
4638 + isPending,
4639 + isSuccess: status === "success",
4640 + isError,
4641 + isInitialLoading: isLoading,
4642 + isLoading,
4643 + data,
4644 + dataUpdatedAt: state.dataUpdatedAt,
4645 + error,
4646 + errorUpdatedAt,
4647 + failureCount: state.fetchFailureCount,
4648 + failureReason: state.fetchFailureReason,
4649 + errorUpdateCount: state.errorUpdateCount,
4650 + isFetched: state.dataUpdateCount > 0 || state.errorUpdateCount > 0,
4651 + isFetchedAfterMount: state.dataUpdateCount > queryInitialState.dataUpdateCount || state.errorUpdateCount > queryInitialState.errorUpdateCount,
4652 + isFetching,
4653 + isRefetching: isFetching && !isPending,
4654 + isLoadingError: isError && state.dataUpdatedAt === 0,
4655 + isPaused: fetchStatus === "paused",
4656 + isPlaceholderData,
4657 + isRefetchError: isError && state.dataUpdatedAt !== 0,
4658 + isStale: isStale(query, options),
4659 + refetch: this.refetch
4660 + };
4661 + return result;
4662 + }
4663 + updateResult(notifyOptions) {
4664 + const prevResult = this.#currentResult;
4665 + const nextResult = this.createResult(this.#currentQuery, this.options);
4666 + this.#currentResultState = this.#currentQuery.state;
4667 + this.#currentResultOptions = this.options;
4668 + if ((0, import_utils.shallowEqualObjects)(nextResult, prevResult)) {
4669 + return;
4670 + }
4671 + if (this.#currentResultState.data !== void 0) {
4672 + this.#lastQueryWithDefinedData = this.#currentQuery;
4673 + }
4674 + this.#currentResult = nextResult;
4675 + const defaultNotifyOptions = {};
4676 + const shouldNotifyListeners = () => {
4677 + if (!prevResult) {
4678 + return true;
4679 + }
4680 + const { notifyOnChangeProps } = this.options;
4681 + const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
4682 + if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !this.#trackedProps.size) {
4683 + return true;
4684 + }
4685 + const includedProps = new Set(
4686 + notifyOnChangePropsValue ?? this.#trackedProps
4687 + );
4688 + if (this.options.throwOnError) {
4689 + includedProps.add("error");
4690 + }
4691 + return Object.keys(this.#currentResult).some((key) => {
4692 + const typedKey = key;
4693 + const changed = this.#currentResult[typedKey] !== prevResult[typedKey];
4694 + return changed && includedProps.has(typedKey);
4695 + });
4696 + };
4697 + if (notifyOptions?.listeners !== false && shouldNotifyListeners()) {
4698 + defaultNotifyOptions.listeners = true;
4699 + }
4700 + this.#notify({ ...defaultNotifyOptions, ...notifyOptions });
4701 + }
4702 + #updateQuery() {
4703 + const query = this.#client.getQueryCache().build(this.#client, this.options);
4704 + if (query === this.#currentQuery) {
4705 + return;
4706 + }
4707 + const prevQuery = this.#currentQuery;
4708 + this.#currentQuery = query;
4709 + this.#currentQueryInitialState = query.state;
4710 + if (this.hasListeners()) {
4711 + prevQuery?.removeObserver(this);
4712 + query.addObserver(this);
4713 + }
4714 + }
4715 + onQueryUpdate() {
4716 + this.updateResult();
4717 + if (this.hasListeners()) {
4718 + this.#updateTimers();
4719 + }
4720 + }
4721 + #notify(notifyOptions) {
4722 + import_notifyManager.notifyManager.batch(() => {
4723 + if (notifyOptions.listeners) {
4724 + this.listeners.forEach((listener) => {
4725 + listener(this.#currentResult);
4726 + });
4727 + }
4728 + this.#client.getQueryCache().notify({
4729 + query: this.#currentQuery,
4730 + type: "observerResultsUpdated"
4731 + });
4732 + });
4733 + }
4734 +};
4735 +function shouldLoadOnMount(query, options) {
4736 + return options.enabled !== false && !query.state.dataUpdatedAt && !(query.state.status === "error" && options.retryOnMount === false);
4737 +}
4738 +function shouldFetchOnMount(query, options) {
4739 + return shouldLoadOnMount(query, options) || query.state.dataUpdatedAt > 0 && shouldFetchOn(query, options, options.refetchOnMount);
4740 +}
4741 +function shouldFetchOn(query, options, field) {
4742 + if (options.enabled !== false) {
4743 + const value = typeof field === "function" ? field(query) : field;
4744 + return value === "always" || value !== false && isStale(query, options);
4745 + }
4746 + return false;
4747 +}
4748 +function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
4749 + return options.enabled !== false && (query !== prevQuery || prevOptions.enabled === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
4750 +}
4751 +function isStale(query, options) {
4752 + return query.isStaleByTime(options.staleTime);
4753 +}
4754 +function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
4755 + if (!(0, import_utils.shallowEqualObjects)(observer.getCurrentResult(), optimisticResult)) {
4756 + return true;
4757 + }
4758 + return false;
4759 +}
4760 +// Annotate the CommonJS export names for ESM import in node:
4761 +0 && (0);
4762 +//# sourceMappingURL=queryObserver.cjs.map
4763 +
4764 +/***/ }),
4765 +
4766 +/***/ "../node_modules/@tanstack/query-core/build/modern/removable.cjs":
4767 +/*!***********************************************************************!*\
4768 + !*** ../node_modules/@tanstack/query-core/build/modern/removable.cjs ***!
4769 + \***********************************************************************/
4770 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4771 +
4772 +"use strict";
4773 +
4774 +var __defProp = Object.defineProperty;
4775 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4776 +var __getOwnPropNames = Object.getOwnPropertyNames;
4777 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4778 +var __export = (target, all) => {
4779 + for (var name in all)
4780 + __defProp(target, name, { get: all[name], enumerable: true });
4781 +};
4782 +var __copyProps = (to, from, except, desc) => {
4783 + if (from && typeof from === "object" || typeof from === "function") {
4784 + for (let key of __getOwnPropNames(from))
4785 + if (!__hasOwnProp.call(to, key) && key !== except)
4786 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4787 + }
4788 + return to;
4789 +};
4790 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4791 +
4792 +// src/removable.ts
4793 +var removable_exports = {};
4794 +__export(removable_exports, {
4795 + Removable: () => Removable
4796 +});
4797 +module.exports = __toCommonJS(removable_exports);
4798 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4799 +var Removable = class {
4800 + #gcTimeout;
4801 + destroy() {
4802 + this.clearGcTimeout();
4803 + }
4804 + scheduleGc() {
4805 + this.clearGcTimeout();
4806 + if ((0, import_utils.isValidTimeout)(this.gcTime)) {
4807 + this.#gcTimeout = setTimeout(() => {
4808 + this.optionalRemove();
4809 + }, this.gcTime);
4810 + }
4811 + }
4812 + updateGcTime(newGcTime) {
4813 + this.gcTime = Math.max(
4814 + this.gcTime || 0,
4815 + newGcTime ?? (import_utils.isServer ? Infinity : 5 * 60 * 1e3)
4816 + );
4817 + }
4818 + clearGcTimeout() {
4819 + if (this.#gcTimeout) {
4820 + clearTimeout(this.#gcTimeout);
4821 + this.#gcTimeout = void 0;
4822 + }
4823 + }
4824 +};
4825 +// Annotate the CommonJS export names for ESM import in node:
4826 +0 && (0);
4827 +//# sourceMappingURL=removable.cjs.map
4828 +
4829 +/***/ }),
4830 +
4831 +/***/ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs":
4832 +/*!*********************************************************************!*\
4833 + !*** ../node_modules/@tanstack/query-core/build/modern/retryer.cjs ***!
4834 + \*********************************************************************/
4835 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4836 +
4837 +"use strict";
4838 +
4839 +var __defProp = Object.defineProperty;
4840 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4841 +var __getOwnPropNames = Object.getOwnPropertyNames;
4842 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4843 +var __export = (target, all) => {
4844 + for (var name in all)
4845 + __defProp(target, name, { get: all[name], enumerable: true });
4846 +};
4847 +var __copyProps = (to, from, except, desc) => {
4848 + if (from && typeof from === "object" || typeof from === "function") {
4849 + for (let key of __getOwnPropNames(from))
4850 + if (!__hasOwnProp.call(to, key) && key !== except)
4851 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4852 + }
4853 + return to;
4854 +};
4855 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4856 +
4857 +// src/retryer.ts
4858 +var retryer_exports = {};
4859 +__export(retryer_exports, {
4860 + CancelledError: () => CancelledError,
4861 + canFetch: () => canFetch,
4862 + createRetryer: () => createRetryer,
4863 + isCancelledError: () => isCancelledError
4864 +});
4865 +module.exports = __toCommonJS(retryer_exports);
4866 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
4867 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
4868 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4869 +function defaultRetryDelay(failureCount) {
4870 + return Math.min(1e3 * 2 ** failureCount, 3e4);
4871 +}
4872 +function canFetch(networkMode) {
4873 + return (networkMode ?? "online") === "online" ? import_onlineManager.onlineManager.isOnline() : true;
4874 +}
4875 +var CancelledError = class {
4876 + constructor(options) {
4877 + this.revert = options?.revert;
4878 + this.silent = options?.silent;
4879 + }
4880 +};
4881 +function isCancelledError(value) {
4882 + return value instanceof CancelledError;
4883 +}
4884 +function createRetryer(config) {
4885 + let isRetryCancelled = false;
4886 + let failureCount = 0;
4887 + let isResolved = false;
4888 + let continueFn;
4889 + let promiseResolve;
4890 + let promiseReject;
4891 + const promise = new Promise((outerResolve, outerReject) => {
4892 + promiseResolve = outerResolve;
4893 + promiseReject = outerReject;
4894 + });
4895 + const cancel = (cancelOptions) => {
4896 + if (!isResolved) {
4897 + reject(new CancelledError(cancelOptions));
4898 + config.abort?.();
4899 + }
4900 + };
4901 + const cancelRetry = () => {
4902 + isRetryCancelled = true;
4903 + };
4904 + const continueRetry = () => {
4905 + isRetryCancelled = false;
4906 + };
4907 + const shouldPause = () => !import_focusManager.focusManager.isFocused() || config.networkMode !== "always" && !import_onlineManager.onlineManager.isOnline();
4908 + const resolve = (value) => {
4909 + if (!isResolved) {
4910 + isResolved = true;
4911 + config.onSuccess?.(value);
4912 + continueFn?.();
4913 + promiseResolve(value);
4914 + }
4915 + };
4916 + const reject = (value) => {
4917 + if (!isResolved) {
4918 + isResolved = true;
4919 + config.onError?.(value);
4920 + continueFn?.();
4921 + promiseReject(value);
4922 + }
4923 + };
4924 + const pause = () => {
4925 + return new Promise((continueResolve) => {
4926 + continueFn = (value) => {
4927 + const canContinue = isResolved || !shouldPause();
4928 + if (canContinue) {
4929 + continueResolve(value);
4930 + }
4931 + return canContinue;
4932 + };
4933 + config.onPause?.();
4934 + }).then(() => {
4935 + continueFn = void 0;
4936 + if (!isResolved) {
4937 + config.onContinue?.();
4938 + }
4939 + });
4940 + };
4941 + const run = () => {
4942 + if (isResolved) {
4943 + return;
4944 + }
4945 + let promiseOrValue;
4946 + try {
4947 + promiseOrValue = config.fn();
4948 + } catch (error) {
4949 + promiseOrValue = Promise.reject(error);
4950 + }
4951 + Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
4952 + if (isResolved) {
4953 + return;
4954 + }
4955 + const retry = config.retry ?? (import_utils.isServer ? 0 : 3);
4956 + const retryDelay = config.retryDelay ?? defaultRetryDelay;
4957 + const delay = typeof retryDelay === "function" ? retryDelay(failureCount, error) : retryDelay;
4958 + const shouldRetry = retry === true || typeof retry === "number" && failureCount < retry || typeof retry === "function" && retry(failureCount, error);
4959 + if (isRetryCancelled || !shouldRetry) {
4960 + reject(error);
4961 + return;
4962 + }
4963 + failureCount++;
4964 + config.onFail?.(failureCount, error);
4965 + (0, import_utils.sleep)(delay).then(() => {
4966 + if (shouldPause()) {
4967 + return pause();
4968 + }
4969 + return;
4970 + }).then(() => {
4971 + if (isRetryCancelled) {
4972 + reject(error);
4973 + } else {
4974 + run();
4975 + }
4976 + });
4977 + });
4978 + };
4979 + if (canFetch(config.networkMode)) {
4980 + run();
4981 + } else {
4982 + pause().then(run);
4983 + }
4984 + return {
4985 + promise,
4986 + cancel,
4987 + continue: () => {
4988 + const didContinue = continueFn?.();
4989 + return didContinue ? promise : Promise.resolve();
4990 + },
4991 + cancelRetry,
4992 + continueRetry
4993 + };
4994 +}
4995 +// Annotate the CommonJS export names for ESM import in node:
4996 +0 && (0);
4997 +//# sourceMappingURL=retryer.cjs.map
4998 +
4999 +/***/ }),
5000 +
5001 +/***/ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs":
5002 +/*!**************************************************************************!*\
5003 + !*** ../node_modules/@tanstack/query-core/build/modern/subscribable.cjs ***!
5004 + \**************************************************************************/
5005 +/***/ ((module) => {
5006 +
5007 +"use strict";
5008 +
5009 +var __defProp = Object.defineProperty;
5010 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5011 +var __getOwnPropNames = Object.getOwnPropertyNames;
5012 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5013 +var __export = (target, all) => {
5014 + for (var name in all)
5015 + __defProp(target, name, { get: all[name], enumerable: true });
5016 +};
5017 +var __copyProps = (to, from, except, desc) => {
5018 + if (from && typeof from === "object" || typeof from === "function") {
5019 + for (let key of __getOwnPropNames(from))
5020 + if (!__hasOwnProp.call(to, key) && key !== except)
5021 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5022 + }
5023 + return to;
5024 +};
5025 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5026 +
5027 +// src/subscribable.ts
5028 +var subscribable_exports = {};
5029 +__export(subscribable_exports, {
5030 + Subscribable: () => Subscribable
5031 +});
5032 +module.exports = __toCommonJS(subscribable_exports);
5033 +var Subscribable = class {
5034 + constructor() {
5035 + this.listeners = /* @__PURE__ */ new Set();
5036 + this.subscribe = this.subscribe.bind(this);
5037 + }
5038 + subscribe(listener) {
5039 + this.listeners.add(listener);
5040 + this.onSubscribe();
5041 + return () => {
5042 + this.listeners.delete(listener);
5043 + this.onUnsubscribe();
5044 + };
5045 + }
5046 + hasListeners() {
5047 + return this.listeners.size > 0;
5048 + }
5049 + onSubscribe() {
5050 + }
5051 + onUnsubscribe() {
5052 + }
5053 +};
5054 +// Annotate the CommonJS export names for ESM import in node:
5055 +0 && (0);
5056 +//# sourceMappingURL=subscribable.cjs.map
5057 +
5058 +/***/ }),
5059 +
5060 +/***/ "../node_modules/@tanstack/query-core/build/modern/types.cjs":
5061 +/*!*******************************************************************!*\
5062 + !*** ../node_modules/@tanstack/query-core/build/modern/types.cjs ***!
5063 + \*******************************************************************/
5064 +/***/ ((module) => {
5065 +
5066 +"use strict";
5067 +
5068 +var __defProp = Object.defineProperty;
5069 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5070 +var __getOwnPropNames = Object.getOwnPropertyNames;
5071 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5072 +var __copyProps = (to, from, except, desc) => {
5073 + if (from && typeof from === "object" || typeof from === "function") {
5074 + for (let key of __getOwnPropNames(from))
5075 + if (!__hasOwnProp.call(to, key) && key !== except)
5076 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5077 + }
5078 + return to;
5079 +};
5080 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5081 +
5082 +// src/types.ts
5083 +var types_exports = {};
5084 +module.exports = __toCommonJS(types_exports);
5085 +//# sourceMappingURL=types.cjs.map
5086 +
5087 +/***/ }),
5088 +
5089 +/***/ "../node_modules/@tanstack/query-core/build/modern/utils.cjs":
5090 +/*!*******************************************************************!*\
5091 + !*** ../node_modules/@tanstack/query-core/build/modern/utils.cjs ***!
5092 + \*******************************************************************/
5093 +/***/ ((module) => {
5094 +
5095 +"use strict";
5096 +
5097 +var __defProp = Object.defineProperty;
5098 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5099 +var __getOwnPropNames = Object.getOwnPropertyNames;
5100 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5101 +var __export = (target, all) => {
5102 + for (var name in all)
5103 + __defProp(target, name, { get: all[name], enumerable: true });
5104 +};
5105 +var __copyProps = (to, from, except, desc) => {
5106 + if (from && typeof from === "object" || typeof from === "function") {
5107 + for (let key of __getOwnPropNames(from))
5108 + if (!__hasOwnProp.call(to, key) && key !== except)
5109 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5110 + }
5111 + return to;
5112 +};
5113 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5114 +
5115 +// src/utils.ts
5116 +var utils_exports = {};
5117 +__export(utils_exports, {
5118 + addToEnd: () => addToEnd,
5119 + addToStart: () => addToStart,
5120 + functionalUpdate: () => functionalUpdate,
5121 + hashKey: () => hashKey,
5122 + hashQueryKeyByOptions: () => hashQueryKeyByOptions,
5123 + isPlainArray: () => isPlainArray,
5124 + isPlainObject: () => isPlainObject,
5125 + isServer: () => isServer,
5126 + isValidTimeout: () => isValidTimeout,
5127 + keepPreviousData: () => keepPreviousData,
5128 + matchMutation: () => matchMutation,
5129 + matchQuery: () => matchQuery,
5130 + noop: () => noop,
5131 + partialMatchKey: () => partialMatchKey,
5132 + replaceData: () => replaceData,
5133 + replaceEqualDeep: () => replaceEqualDeep,
5134 + scheduleMicrotask: () => scheduleMicrotask,
5135 + shallowEqualObjects: () => shallowEqualObjects,
5136 + sleep: () => sleep,
5137 + timeUntilStale: () => timeUntilStale
5138 +});
5139 +module.exports = __toCommonJS(utils_exports);
5140 +var isServer = typeof window === "undefined" || "Deno" in window;
5141 +function noop() {
5142 + return void 0;
5143 +}
5144 +function functionalUpdate(updater, input) {
5145 + return typeof updater === "function" ? updater(input) : updater;
5146 +}
5147 +function isValidTimeout(value) {
5148 + return typeof value === "number" && value >= 0 && value !== Infinity;
5149 +}
5150 +function timeUntilStale(updatedAt, staleTime) {
5151 + return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
5152 +}
5153 +function matchQuery(filters, query) {
5154 + const {
5155 + type = "all",
5156 + exact,
5157 + fetchStatus,
5158 + predicate,
5159 + queryKey,
5160 + stale
5161 + } = filters;
5162 + if (queryKey) {
5163 + if (exact) {
5164 + if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {
5165 + return false;
5166 + }
5167 + } else if (!partialMatchKey(query.queryKey, queryKey)) {
5168 + return false;
5169 + }
5170 + }
5171 + if (type !== "all") {
5172 + const isActive = query.isActive();
5173 + if (type === "active" && !isActive) {
5174 + return false;
5175 + }
5176 + if (type === "inactive" && isActive) {
5177 + return false;
5178 + }
5179 + }
5180 + if (typeof stale === "boolean" && query.isStale() !== stale) {
5181 + return false;
5182 + }
5183 + if (typeof fetchStatus !== "undefined" && fetchStatus !== query.state.fetchStatus) {
5184 + return false;
5185 + }
5186 + if (predicate && !predicate(query)) {
5187 + return false;
5188 + }
5189 + return true;
5190 +}
5191 +function matchMutation(filters, mutation) {
5192 + const { exact, status, predicate, mutationKey } = filters;
5193 + if (mutationKey) {
5194 + if (!mutation.options.mutationKey) {
5195 + return false;
5196 + }
5197 + if (exact) {
5198 + if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {
5199 + return false;
5200 + }
5201 + } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {
5202 + return false;
5203 + }
5204 + }
5205 + if (status && mutation.state.status !== status) {
5206 + return false;
5207 + }
5208 + if (predicate && !predicate(mutation)) {
5209 + return false;
5210 + }
5211 + return true;
5212 +}
5213 +function hashQueryKeyByOptions(queryKey, options) {
5214 + const hashFn = options?.queryKeyHashFn || hashKey;
5215 + return hashFn(queryKey);
5216 +}
5217 +function hashKey(queryKey) {
5218 + return JSON.stringify(
5219 + queryKey,
5220 + (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
5221 + result[key] = val[key];
5222 + return result;
5223 + }, {}) : val
5224 + );
5225 +}
5226 +function partialMatchKey(a, b) {
5227 + if (a === b) {
5228 + return true;
5229 + }
5230 + if (typeof a !== typeof b) {
5231 + return false;
5232 + }
5233 + if (a && b && typeof a === "object" && typeof b === "object") {
5234 + return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
5235 + }
5236 + return false;
5237 +}
5238 +function replaceEqualDeep(a, b) {
5239 + if (a === b) {
5240 + return a;
5241 + }
5242 + const array = isPlainArray(a) && isPlainArray(b);
5243 + if (array || isPlainObject(a) && isPlainObject(b)) {
5244 + const aSize = array ? a.length : Object.keys(a).length;
5245 + const bItems = array ? b : Object.keys(b);
5246 + const bSize = bItems.length;
5247 + const copy = array ? [] : {};
5248 + let equalItems = 0;
5249 + for (let i = 0; i < bSize; i++) {
5250 + const key = array ? i : bItems[i];
5251 + copy[key] = replaceEqualDeep(a[key], b[key]);
5252 + if (copy[key] === a[key]) {
5253 + equalItems++;
5254 + }
5255 + }
5256 + return aSize === bSize && equalItems === aSize ? a : copy;
5257 + }
5258 + return b;
5259 +}
5260 +function shallowEqualObjects(a, b) {
5261 + if (a && !b || b && !a) {
5262 + return false;
5263 + }
5264 + for (const key in a) {
5265 + if (a[key] !== b[key]) {
5266 + return false;
5267 + }
5268 + }
5269 + return true;
5270 +}
5271 +function isPlainArray(value) {
5272 + return Array.isArray(value) && value.length === Object.keys(value).length;
5273 +}
5274 +function isPlainObject(o) {
5275 + if (!hasObjectPrototype(o)) {
5276 + return false;
5277 + }
5278 + const ctor = o.constructor;
5279 + if (typeof ctor === "undefined") {
5280 + return true;
5281 + }
5282 + const prot = ctor.prototype;
5283 + if (!hasObjectPrototype(prot)) {
5284 + return false;
5285 + }
5286 + if (!prot.hasOwnProperty("isPrototypeOf")) {
5287 + return false;
5288 + }
5289 + return true;
5290 +}
5291 +function hasObjectPrototype(o) {
5292 + return Object.prototype.toString.call(o) === "[object Object]";
5293 +}
5294 +function sleep(timeout) {
5295 + return new Promise((resolve) => {
5296 + setTimeout(resolve, timeout);
5297 + });
5298 +}
5299 +function scheduleMicrotask(callback) {
5300 + sleep(0).then(callback);
5301 +}
5302 +function replaceData(prevData, data, options) {
5303 + if (typeof options.structuralSharing === "function") {
5304 + return options.structuralSharing(prevData, data);
5305 + } else if (options.structuralSharing !== false) {
5306 + return replaceEqualDeep(prevData, data);
5307 + }
5308 + return data;
5309 +}
5310 +function keepPreviousData(previousData) {
5311 + return previousData;
5312 +}
5313 +function addToEnd(items, item, max = 0) {
5314 + const newItems = [...items, item];
5315 + return max && newItems.length > max ? newItems.slice(1) : newItems;
5316 +}
5317 +function addToStart(items, item, max = 0) {
5318 + const newItems = [item, ...items];
5319 + return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
5320 +}
5321 +// Annotate the CommonJS export names for ESM import in node:
5322 +0 && (0);
5323 +//# sourceMappingURL=utils.cjs.map
5324 +
5325 +/***/ }),
5326 +
5327 +/***/ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs":
5328 +/*!********************************************************************************!*\
5329 + !*** ../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs ***!
5330 + \********************************************************************************/
5331 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5332 +
5333 +"use strict";
5334 +
5335 +"use client";
5336 +var __create = Object.create;
5337 +var __defProp = Object.defineProperty;
5338 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5339 +var __getOwnPropNames = Object.getOwnPropertyNames;
5340 +var __getProtoOf = Object.getPrototypeOf;
5341 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5342 +var __export = (target, all) => {
5343 + for (var name in all)
5344 + __defProp(target, name, { get: all[name], enumerable: true });
5345 +};
5346 +var __copyProps = (to, from, except, desc) => {
5347 + if (from && typeof from === "object" || typeof from === "function") {
5348 + for (let key of __getOwnPropNames(from))
5349 + if (!__hasOwnProp.call(to, key) && key !== except)
5350 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5351 + }
5352 + return to;
5353 +};
5354 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5355 + // If the importer is in node compatibility mode or this is not an ESM
5356 + // file that has been converted to a CommonJS file using a Babel-
5357 + // compatible transform (i.e. "__esModule" has not been set), then set
5358 + // "default" to the CommonJS "module.exports" for node compatibility.
5359 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5360 + mod
5361 +));
5362 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5363 +
5364 +// src/HydrationBoundary.tsx
5365 +var HydrationBoundary_exports = {};
5366 +__export(HydrationBoundary_exports, {
5367 + HydrationBoundary: () => HydrationBoundary
5368 +});
5369 +module.exports = __toCommonJS(HydrationBoundary_exports);
5370 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5371 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
5372 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
5373 +var HydrationBoundary = ({
5374 + children,
5375 + options = {},
5376 + state,
5377 + queryClient
5378 +}) => {
5379 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
5380 + const [hydrationQueue, setHydrationQueue] = React.useState();
5381 + const optionsRef = React.useRef(options);
5382 + optionsRef.current = options;
5383 + React.useMemo(() => {
5384 + if (state) {
5385 + if (typeof state !== "object") {
5386 + return;
5387 + }
5388 + const queryCache = client.getQueryCache();
5389 + const queries = state.queries || [];
5390 + const newQueries = [];
5391 + const existingQueries = [];
5392 + for (const dehydratedQuery of queries) {
5393 + const existingQuery = queryCache.get(dehydratedQuery.queryHash);
5394 + if (!existingQuery) {
5395 + newQueries.push(dehydratedQuery);
5396 + } else {
5397 + const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt;
5398 + const queryAlreadyQueued = hydrationQueue?.find(
5399 + (query) => query.queryHash === dehydratedQuery.queryHash
5400 + );
5401 + if (hydrationIsNewer && (!queryAlreadyQueued || dehydratedQuery.state.dataUpdatedAt > queryAlreadyQueued.state.dataUpdatedAt)) {
5402 + existingQueries.push(dehydratedQuery);
5403 + }
5404 + }
5405 + }
5406 + if (newQueries.length > 0) {
5407 + (0, import_query_core.hydrate)(client, { queries: newQueries }, optionsRef.current);
5408 + }
5409 + if (existingQueries.length > 0) {
5410 + setHydrationQueue(
5411 + (prev) => prev ? [...prev, ...existingQueries] : existingQueries
5412 + );
5413 + }
5414 + }
5415 + }, [client, hydrationQueue, state]);
5416 + React.useEffect(() => {
5417 + if (hydrationQueue) {
5418 + (0, import_query_core.hydrate)(client, { queries: hydrationQueue }, optionsRef.current);
5419 + setHydrationQueue(void 0);
5420 + }
5421 + }, [client, hydrationQueue]);
5422 + return children;
5423 +};
5424 +// Annotate the CommonJS export names for ESM import in node:
5425 +0 && (0);
5426 +//# sourceMappingURL=HydrationBoundary.cjs.map
5427 +
5428 +/***/ }),
5429 +
5430 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs":
5431 +/*!**********************************************************************************!*\
5432 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs ***!
5433 + \**********************************************************************************/
5434 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5435 +
5436 +"use strict";
5437 +
5438 +"use client";
5439 +var __create = Object.create;
5440 +var __defProp = Object.defineProperty;
5441 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5442 +var __getOwnPropNames = Object.getOwnPropertyNames;
5443 +var __getProtoOf = Object.getPrototypeOf;
5444 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5445 +var __export = (target, all) => {
5446 + for (var name in all)
5447 + __defProp(target, name, { get: all[name], enumerable: true });
5448 +};
5449 +var __copyProps = (to, from, except, desc) => {
5450 + if (from && typeof from === "object" || typeof from === "function") {
5451 + for (let key of __getOwnPropNames(from))
5452 + if (!__hasOwnProp.call(to, key) && key !== except)
5453 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5454 + }
5455 + return to;
5456 +};
5457 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5458 + // If the importer is in node compatibility mode or this is not an ESM
5459 + // file that has been converted to a CommonJS file using a Babel-
5460 + // compatible transform (i.e. "__esModule" has not been set), then set
5461 + // "default" to the CommonJS "module.exports" for node compatibility.
5462 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5463 + mod
5464 +));
5465 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5466 +
5467 +// src/QueryClientProvider.tsx
5468 +var QueryClientProvider_exports = {};
5469 +__export(QueryClientProvider_exports, {
5470 + QueryClientContext: () => QueryClientContext,
5471 + QueryClientProvider: () => QueryClientProvider,
5472 + useQueryClient: () => useQueryClient
5473 +});
5474 +module.exports = __toCommonJS(QueryClientProvider_exports);
5475 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5476 +var QueryClientContext = React.createContext(
5477 + void 0
5478 +);
5479 +var useQueryClient = (queryClient) => {
5480 + const client = React.useContext(QueryClientContext);
5481 + if (queryClient) {
5482 + return queryClient;
5483 + }
5484 + if (!client) {
5485 + throw new Error("No QueryClient set, use QueryClientProvider to set one");
5486 + }
5487 + return client;
5488 +};
5489 +var QueryClientProvider = ({
5490 + client,
5491 + children
5492 +}) => {
5493 + React.useEffect(() => {
5494 + client.mount();
5495 + return () => {
5496 + client.unmount();
5497 + };
5498 + }, [client]);
5499 + return /* @__PURE__ */ React.createElement(QueryClientContext.Provider, { value: client }, children);
5500 +};
5501 +// Annotate the CommonJS export names for ESM import in node:
5502 +0 && (0);
5503 +//# sourceMappingURL=QueryClientProvider.cjs.map
5504 +
5505 +/***/ }),
5506 +
5507 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs":
5508 +/*!**************************************************************************************!*\
5509 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs ***!
5510 + \**************************************************************************************/
5511 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5512 +
5513 +"use strict";
5514 +
5515 +"use client";
5516 +var __create = Object.create;
5517 +var __defProp = Object.defineProperty;
5518 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5519 +var __getOwnPropNames = Object.getOwnPropertyNames;
5520 +var __getProtoOf = Object.getPrototypeOf;
5521 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5522 +var __export = (target, all) => {
5523 + for (var name in all)
5524 + __defProp(target, name, { get: all[name], enumerable: true });
5525 +};
5526 +var __copyProps = (to, from, except, desc) => {
5527 + if (from && typeof from === "object" || typeof from === "function") {
5528 + for (let key of __getOwnPropNames(from))
5529 + if (!__hasOwnProp.call(to, key) && key !== except)
5530 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5531 + }
5532 + return to;
5533 +};
5534 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5535 + // If the importer is in node compatibility mode or this is not an ESM
5536 + // file that has been converted to a CommonJS file using a Babel-
5537 + // compatible transform (i.e. "__esModule" has not been set), then set
5538 + // "default" to the CommonJS "module.exports" for node compatibility.
5539 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5540 + mod
5541 +));
5542 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5543 +
5544 +// src/QueryErrorResetBoundary.tsx
5545 +var QueryErrorResetBoundary_exports = {};
5546 +__export(QueryErrorResetBoundary_exports, {
5547 + QueryErrorResetBoundary: () => QueryErrorResetBoundary,
5548 + useQueryErrorResetBoundary: () => useQueryErrorResetBoundary
5549 +});
5550 +module.exports = __toCommonJS(QueryErrorResetBoundary_exports);
5551 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5552 +function createValue() {
5553 + let isReset = false;
5554 + return {
5555 + clearReset: () => {
5556 + isReset = false;
5557 + },
5558 + reset: () => {
5559 + isReset = true;
5560 + },
5561 + isReset: () => {
5562 + return isReset;
5563 + }
5564 + };
5565 +}
5566 +var QueryErrorResetBoundaryContext = React.createContext(createValue());
5567 +var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);
5568 +var QueryErrorResetBoundary = ({
5569 + children
5570 +}) => {
5571 + const [value] = React.useState(() => createValue());
5572 + return /* @__PURE__ */ React.createElement(QueryErrorResetBoundaryContext.Provider, { value }, typeof children === "function" ? children(value) : children);
5573 +};
5574 +// Annotate the CommonJS export names for ESM import in node:
5575 +0 && (0);
5576 +//# sourceMappingURL=QueryErrorResetBoundary.cjs.map
5577 +
5578 +/***/ }),
5579 +
5580 +/***/ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs":
5581 +/*!*********************************************************************************!*\
5582 + !*** ../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs ***!
5583 + \*********************************************************************************/
5584 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5585 +
5586 +"use strict";
5587 +
5588 +"use client";
5589 +var __create = Object.create;
5590 +var __defProp = Object.defineProperty;
5591 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5592 +var __getOwnPropNames = Object.getOwnPropertyNames;
5593 +var __getProtoOf = Object.getPrototypeOf;
5594 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5595 +var __export = (target, all) => {
5596 + for (var name in all)
5597 + __defProp(target, name, { get: all[name], enumerable: true });
5598 +};
5599 +var __copyProps = (to, from, except, desc) => {
5600 + if (from && typeof from === "object" || typeof from === "function") {
5601 + for (let key of __getOwnPropNames(from))
5602 + if (!__hasOwnProp.call(to, key) && key !== except)
5603 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5604 + }
5605 + return to;
5606 +};
5607 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5608 + // If the importer is in node compatibility mode or this is not an ESM
5609 + // file that has been converted to a CommonJS file using a Babel-
5610 + // compatible transform (i.e. "__esModule" has not been set), then set
5611 + // "default" to the CommonJS "module.exports" for node compatibility.
5612 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5613 + mod
5614 +));
5615 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5616 +
5617 +// src/errorBoundaryUtils.ts
5618 +var errorBoundaryUtils_exports = {};
5619 +__export(errorBoundaryUtils_exports, {
5620 + ensurePreventErrorBoundaryRetry: () => ensurePreventErrorBoundaryRetry,
5621 + getHasError: () => getHasError,
5622 + useClearResetErrorBoundary: () => useClearResetErrorBoundary
5623 +});
5624 +module.exports = __toCommonJS(errorBoundaryUtils_exports);
5625 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5626 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
5627 +var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
5628 + if (options.suspense || options.throwOnError) {
5629 + if (!errorResetBoundary.isReset()) {
5630 + options.retryOnMount = false;
5631 + }
5632 + }
5633 +};
5634 +var useClearResetErrorBoundary = (errorResetBoundary) => {
5635 + React.useEffect(() => {
5636 + errorResetBoundary.clearReset();
5637 + }, [errorResetBoundary]);
5638 +};
5639 +var getHasError = ({
5640 + result,
5641 + errorResetBoundary,
5642 + throwOnError,
5643 + query
5644 +}) => {
5645 + return result.isError && !errorResetBoundary.isReset() && !result.isFetching && (0, import_utils.shouldThrowError)(throwOnError, [result.error, query]);
5646 +};
5647 +// Annotate the CommonJS export names for ESM import in node:
5648 +0 && (0);
5649 +//# sourceMappingURL=errorBoundaryUtils.cjs.map
5650 +
5651 +/***/ }),
5652 +
5653 +/***/ "../node_modules/@tanstack/react-query/build/modern/index.cjs":
5654 +/*!********************************************************************!*\
5655 + !*** ../node_modules/@tanstack/react-query/build/modern/index.cjs ***!
5656 + \********************************************************************/
5657 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5658 +
5659 +"use strict";
5660 +
5661 +var __defProp = Object.defineProperty;
5662 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5663 +var __getOwnPropNames = Object.getOwnPropertyNames;
5664 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5665 +var __export = (target, all) => {
5666 + for (var name in all)
5667 + __defProp(target, name, { get: all[name], enumerable: true });
5668 +};
5669 +var __copyProps = (to, from, except, desc) => {
5670 + if (from && typeof from === "object" || typeof from === "function") {
5671 + for (let key of __getOwnPropNames(from))
5672 + if (!__hasOwnProp.call(to, key) && key !== except)
5673 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5674 + }
5675 + return to;
5676 +};
5677 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
5678 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5679 +
5680 +// src/index.ts
5681 +var src_exports = {};
5682 +__export(src_exports, {
5683 + HydrationBoundary: () => import_HydrationBoundary.HydrationBoundary,
5684 + IsRestoringProvider: () => import_isRestoring.IsRestoringProvider,
5685 + QueryClientContext: () => import_QueryClientProvider.QueryClientContext,
5686 + QueryClientProvider: () => import_QueryClientProvider.QueryClientProvider,
5687 + QueryErrorResetBoundary: () => import_QueryErrorResetBoundary.QueryErrorResetBoundary,
5688 + infiniteQueryOptions: () => import_infiniteQueryOptions.infiniteQueryOptions,
5689 + queryOptions: () => import_queryOptions.queryOptions,
5690 + useInfiniteQuery: () => import_useInfiniteQuery.useInfiniteQuery,
5691 + useIsFetching: () => import_useIsFetching.useIsFetching,
5692 + useIsMutating: () => import_useMutationState.useIsMutating,
5693 + useIsRestoring: () => import_isRestoring.useIsRestoring,
5694 + useMutation: () => import_useMutation.useMutation,
5695 + useMutationState: () => import_useMutationState.useMutationState,
5696 + useQueries: () => import_useQueries.useQueries,
5697 + useQuery: () => import_useQuery.useQuery,
5698 + useQueryClient: () => import_QueryClientProvider.useQueryClient,
5699 + useQueryErrorResetBoundary: () => import_QueryErrorResetBoundary.useQueryErrorResetBoundary,
5700 + useSuspenseInfiniteQuery: () => import_useSuspenseInfiniteQuery.useSuspenseInfiniteQuery,
5701 + useSuspenseQueries: () => import_useSuspenseQueries.useSuspenseQueries,
5702 + useSuspenseQuery: () => import_useSuspenseQuery.useSuspenseQuery
5703 +});
5704 +module.exports = __toCommonJS(src_exports);
5705 +__reExport(src_exports, __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs"), module.exports);
5706 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/react-query/build/modern/types.cjs"), module.exports);
5707 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
5708 +var import_useQuery = __webpack_require__(/*! ./useQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs");
5709 +var import_useSuspenseQuery = __webpack_require__(/*! ./useSuspenseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs");
5710 +var import_useSuspenseInfiniteQuery = __webpack_require__(/*! ./useSuspenseInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs");
5711 +var import_useSuspenseQueries = __webpack_require__(/*! ./useSuspenseQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs");
5712 +var import_queryOptions = __webpack_require__(/*! ./queryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs");
5713 +var import_infiniteQueryOptions = __webpack_require__(/*! ./infiniteQueryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs");
5714 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
5715 +var import_HydrationBoundary = __webpack_require__(/*! ./HydrationBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs");
5716 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
5717 +var import_useIsFetching = __webpack_require__(/*! ./useIsFetching.cjs */ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs");
5718 +var import_useMutationState = __webpack_require__(/*! ./useMutationState.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs");
5719 +var import_useMutation = __webpack_require__(/*! ./useMutation.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs");
5720 +var import_useInfiniteQuery = __webpack_require__(/*! ./useInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs");
5721 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
5722 +// Annotate the CommonJS export names for ESM import in node:
5723 +0 && (0);
5724 +//# sourceMappingURL=index.cjs.map
5725 +
5726 +/***/ }),
5727 +
5728 +/***/ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs":
5729 +/*!***********************************************************************************!*\
5730 + !*** ../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs ***!
5731 + \***********************************************************************************/
5732 +/***/ ((module) => {
5733 +
5734 +"use strict";
5735 +
5736 +var __defProp = Object.defineProperty;
5737 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5738 +var __getOwnPropNames = Object.getOwnPropertyNames;
5739 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5740 +var __export = (target, all) => {
5741 + for (var name in all)
5742 + __defProp(target, name, { get: all[name], enumerable: true });
5743 +};
5744 +var __copyProps = (to, from, except, desc) => {
5745 + if (from && typeof from === "object" || typeof from === "function") {
5746 + for (let key of __getOwnPropNames(from))
5747 + if (!__hasOwnProp.call(to, key) && key !== except)
5748 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5749 + }
5750 + return to;
5751 +};
5752 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5753 +
5754 +// src/infiniteQueryOptions.ts
5755 +var infiniteQueryOptions_exports = {};
5756 +__export(infiniteQueryOptions_exports, {
5757 + infiniteQueryOptions: () => infiniteQueryOptions
5758 +});
5759 +module.exports = __toCommonJS(infiniteQueryOptions_exports);
5760 +function infiniteQueryOptions(options) {
5761 + return options;
5762 +}
5763 +// Annotate the CommonJS export names for ESM import in node:
5764 +0 && (0);
5765 +//# sourceMappingURL=infiniteQueryOptions.cjs.map
5766 +
5767 +/***/ }),
5768 +
5769 +/***/ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs":
5770 +/*!**************************************************************************!*\
5771 + !*** ../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs ***!
5772 + \**************************************************************************/
5773 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5774 +
5775 +"use strict";
5776 +
5777 +"use client";
5778 +var __create = Object.create;
5779 +var __defProp = Object.defineProperty;
5780 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5781 +var __getOwnPropNames = Object.getOwnPropertyNames;
5782 +var __getProtoOf = Object.getPrototypeOf;
5783 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5784 +var __export = (target, all) => {
5785 + for (var name in all)
5786 + __defProp(target, name, { get: all[name], enumerable: true });
5787 +};
5788 +var __copyProps = (to, from, except, desc) => {
5789 + if (from && typeof from === "object" || typeof from === "function") {
5790 + for (let key of __getOwnPropNames(from))
5791 + if (!__hasOwnProp.call(to, key) && key !== except)
5792 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5793 + }
5794 + return to;
5795 +};
5796 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5797 + // If the importer is in node compatibility mode or this is not an ESM
5798 + // file that has been converted to a CommonJS file using a Babel-
5799 + // compatible transform (i.e. "__esModule" has not been set), then set
5800 + // "default" to the CommonJS "module.exports" for node compatibility.
5801 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5802 + mod
5803 +));
5804 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5805 +
5806 +// src/isRestoring.ts
5807 +var isRestoring_exports = {};
5808 +__export(isRestoring_exports, {
5809 + IsRestoringProvider: () => IsRestoringProvider,
5810 + useIsRestoring: () => useIsRestoring
5811 +});
5812 +module.exports = __toCommonJS(isRestoring_exports);
5813 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5814 +var IsRestoringContext = React.createContext(false);
5815 +var useIsRestoring = () => React.useContext(IsRestoringContext);
5816 +var IsRestoringProvider = IsRestoringContext.Provider;
5817 +// Annotate the CommonJS export names for ESM import in node:
5818 +0 && (0);
5819 +//# sourceMappingURL=isRestoring.cjs.map
5820 +
5821 +/***/ }),
5822 +
5823 +/***/ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs":
5824 +/*!***************************************************************************!*\
5825 + !*** ../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs ***!
5826 + \***************************************************************************/
5827 +/***/ ((module) => {
5828 +
5829 +"use strict";
5830 +
5831 +var __defProp = Object.defineProperty;
5832 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5833 +var __getOwnPropNames = Object.getOwnPropertyNames;
5834 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5835 +var __export = (target, all) => {
5836 + for (var name in all)
5837 + __defProp(target, name, { get: all[name], enumerable: true });
5838 +};
5839 +var __copyProps = (to, from, except, desc) => {
5840 + if (from && typeof from === "object" || typeof from === "function") {
5841 + for (let key of __getOwnPropNames(from))
5842 + if (!__hasOwnProp.call(to, key) && key !== except)
5843 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5844 + }
5845 + return to;
5846 +};
5847 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5848 +
5849 +// src/queryOptions.ts
5850 +var queryOptions_exports = {};
5851 +__export(queryOptions_exports, {
5852 + queryOptions: () => queryOptions
5853 +});
5854 +module.exports = __toCommonJS(queryOptions_exports);
5855 +function queryOptions(options) {
5856 + return options;
5857 +}
5858 +// Annotate the CommonJS export names for ESM import in node:
5859 +0 && (0);
5860 +//# sourceMappingURL=queryOptions.cjs.map
5861 +
5862 +/***/ }),
5863 +
5864 +/***/ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs":
5865 +/*!***********************************************************************!*\
5866 + !*** ../node_modules/@tanstack/react-query/build/modern/suspense.cjs ***!
5867 + \***********************************************************************/
5868 +/***/ ((module) => {
5869 +
5870 +"use strict";
5871 +
5872 +var __defProp = Object.defineProperty;
5873 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5874 +var __getOwnPropNames = Object.getOwnPropertyNames;
5875 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5876 +var __export = (target, all) => {
5877 + for (var name in all)
5878 + __defProp(target, name, { get: all[name], enumerable: true });
5879 +};
5880 +var __copyProps = (to, from, except, desc) => {
5881 + if (from && typeof from === "object" || typeof from === "function") {
5882 + for (let key of __getOwnPropNames(from))
5883 + if (!__hasOwnProp.call(to, key) && key !== except)
5884 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5885 + }
5886 + return to;
5887 +};
5888 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5889 +
5890 +// src/suspense.ts
5891 +var suspense_exports = {};
5892 +__export(suspense_exports, {
5893 + defaultThrowOnError: () => defaultThrowOnError,
5894 + ensureStaleTime: () => ensureStaleTime,
5895 + fetchOptimistic: () => fetchOptimistic,
5896 + shouldSuspend: () => shouldSuspend,
5897 + willFetch: () => willFetch
5898 +});
5899 +module.exports = __toCommonJS(suspense_exports);
5900 +var defaultThrowOnError = (_error, query) => typeof query.state.data === "undefined";
5901 +var ensureStaleTime = (defaultedOptions) => {
5902 + if (defaultedOptions.suspense) {
5903 + if (typeof defaultedOptions.staleTime !== "number") {
5904 + defaultedOptions.staleTime = 1e3;
5905 + }
5906 + }
5907 +};
5908 +var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
5909 +var shouldSuspend = (defaultedOptions, result, isRestoring) => defaultedOptions?.suspense && willFetch(result, isRestoring);
5910 +var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
5911 + errorResetBoundary.clearReset();
5912 +});
5913 +// Annotate the CommonJS export names for ESM import in node:
5914 +0 && (0);
5915 +//# sourceMappingURL=suspense.cjs.map
5916 +
5917 +/***/ }),
5918 +
5919 +/***/ "../node_modules/@tanstack/react-query/build/modern/types.cjs":
5920 +/*!********************************************************************!*\
5921 + !*** ../node_modules/@tanstack/react-query/build/modern/types.cjs ***!
5922 + \********************************************************************/
5923 +/***/ ((module) => {
5924 +
5925 +"use strict";
5926 +
5927 +var __defProp = Object.defineProperty;
5928 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5929 +var __getOwnPropNames = Object.getOwnPropertyNames;
5930 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5931 +var __copyProps = (to, from, except, desc) => {
5932 + if (from && typeof from === "object" || typeof from === "function") {
5933 + for (let key of __getOwnPropNames(from))
5934 + if (!__hasOwnProp.call(to, key) && key !== except)
5935 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5936 + }
5937 + return to;
5938 +};
5939 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5940 +
5941 +// src/types.ts
5942 +var types_exports = {};
5943 +module.exports = __toCommonJS(types_exports);
5944 +//# sourceMappingURL=types.cjs.map
5945 +
5946 +/***/ }),
5947 +
5948 +/***/ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs":
5949 +/*!***************************************************************************!*\
5950 + !*** ../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs ***!
5951 + \***************************************************************************/
5952 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5953 +
5954 +"use strict";
5955 +
5956 +"use client";
5957 +var __create = Object.create;
5958 +var __defProp = Object.defineProperty;
5959 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5960 +var __getOwnPropNames = Object.getOwnPropertyNames;
5961 +var __getProtoOf = Object.getPrototypeOf;
5962 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5963 +var __export = (target, all) => {
5964 + for (var name in all)
5965 + __defProp(target, name, { get: all[name], enumerable: true });
5966 +};
5967 +var __copyProps = (to, from, except, desc) => {
5968 + if (from && typeof from === "object" || typeof from === "function") {
5969 + for (let key of __getOwnPropNames(from))
5970 + if (!__hasOwnProp.call(to, key) && key !== except)
5971 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5972 + }
5973 + return to;
5974 +};
5975 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5976 + // If the importer is in node compatibility mode or this is not an ESM
5977 + // file that has been converted to a CommonJS file using a Babel-
5978 + // compatible transform (i.e. "__esModule" has not been set), then set
5979 + // "default" to the CommonJS "module.exports" for node compatibility.
5980 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
5981 + mod
5982 +));
5983 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5984 +
5985 +// src/useBaseQuery.ts
5986 +var useBaseQuery_exports = {};
5987 +__export(useBaseQuery_exports, {
5988 + useBaseQuery: () => useBaseQuery
5989 +});
5990 +module.exports = __toCommonJS(useBaseQuery_exports);
5991 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
5992 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
5993 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
5994 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
5995 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
5996 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
5997 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
5998 +function useBaseQuery(options, Observer, queryClient) {
5999 + if (true) {
6000 + if (typeof options !== "object" || Array.isArray(options)) {
6001 + throw new Error(
6002 + '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'
6003 + );
6004 + }
6005 + }
6006 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6007 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
6008 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
6009 + const defaultedOptions = client.defaultQueryOptions(options);
6010 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
6011 + (0, import_suspense.ensureStaleTime)(defaultedOptions);
6012 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(defaultedOptions, errorResetBoundary);
6013 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
6014 + const [observer] = React.useState(
6015 + () => new Observer(
6016 + client,
6017 + defaultedOptions
6018 + )
6019 + );
6020 + const result = observer.getOptimisticResult(defaultedOptions);
6021 + React.useSyncExternalStore(
6022 + React.useCallback(
6023 + (onStoreChange) => {
6024 + const unsubscribe = isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange));
6025 + observer.updateResult();
6026 + return unsubscribe;
6027 + },
6028 + [observer, isRestoring]
6029 + ),
6030 + () => observer.getCurrentResult(),
6031 + () => observer.getCurrentResult()
6032 + );
6033 + React.useEffect(() => {
6034 + observer.setOptions(defaultedOptions, { listeners: false });
6035 + }, [defaultedOptions, observer]);
6036 + if ((0, import_suspense.shouldSuspend)(defaultedOptions, result, isRestoring)) {
6037 + throw (0, import_suspense.fetchOptimistic)(defaultedOptions, observer, errorResetBoundary);
6038 + }
6039 + if ((0, import_errorBoundaryUtils.getHasError)({
6040 + result,
6041 + errorResetBoundary,
6042 + throwOnError: defaultedOptions.throwOnError,
6043 + query: observer.getCurrentQuery()
6044 + })) {
6045 + throw result.error;
6046 + }
6047 + return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
6048 +}
6049 +// Annotate the CommonJS export names for ESM import in node:
6050 +0 && (0);
6051 +//# sourceMappingURL=useBaseQuery.cjs.map
6052 +
6053 +/***/ }),
6054 +
6055 +/***/ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs":
6056 +/*!*******************************************************************************!*\
6057 + !*** ../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs ***!
6058 + \*******************************************************************************/
6059 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6060 +
6061 +"use strict";
6062 +
6063 +"use client";
6064 +var __defProp = Object.defineProperty;
6065 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6066 +var __getOwnPropNames = Object.getOwnPropertyNames;
6067 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6068 +var __export = (target, all) => {
6069 + for (var name in all)
6070 + __defProp(target, name, { get: all[name], enumerable: true });
6071 +};
6072 +var __copyProps = (to, from, except, desc) => {
6073 + if (from && typeof from === "object" || typeof from === "function") {
6074 + for (let key of __getOwnPropNames(from))
6075 + if (!__hasOwnProp.call(to, key) && key !== except)
6076 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6077 + }
6078 + return to;
6079 +};
6080 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6081 +
6082 +// src/useInfiniteQuery.ts
6083 +var useInfiniteQuery_exports = {};
6084 +__export(useInfiniteQuery_exports, {
6085 + useInfiniteQuery: () => useInfiniteQuery
6086 +});
6087 +module.exports = __toCommonJS(useInfiniteQuery_exports);
6088 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6089 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6090 +function useInfiniteQuery(options, queryClient) {
6091 + return (0, import_useBaseQuery.useBaseQuery)(
6092 + options,
6093 + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
6094 + import_query_core.InfiniteQueryObserver,
6095 + queryClient
6096 + );
6097 +}
6098 +// Annotate the CommonJS export names for ESM import in node:
6099 +0 && (0);
6100 +//# sourceMappingURL=useInfiniteQuery.cjs.map
6101 +
6102 +/***/ }),
6103 +
6104 +/***/ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs":
6105 +/*!****************************************************************************!*\
6106 + !*** ../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs ***!
6107 + \****************************************************************************/
6108 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6109 +
6110 +"use strict";
6111 +
6112 +"use client";
6113 +var __create = Object.create;
6114 +var __defProp = Object.defineProperty;
6115 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6116 +var __getOwnPropNames = Object.getOwnPropertyNames;
6117 +var __getProtoOf = Object.getPrototypeOf;
6118 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6119 +var __export = (target, all) => {
6120 + for (var name in all)
6121 + __defProp(target, name, { get: all[name], enumerable: true });
6122 +};
6123 +var __copyProps = (to, from, except, desc) => {
6124 + if (from && typeof from === "object" || typeof from === "function") {
6125 + for (let key of __getOwnPropNames(from))
6126 + if (!__hasOwnProp.call(to, key) && key !== except)
6127 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6128 + }
6129 + return to;
6130 +};
6131 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6132 + // If the importer is in node compatibility mode or this is not an ESM
6133 + // file that has been converted to a CommonJS file using a Babel-
6134 + // compatible transform (i.e. "__esModule" has not been set), then set
6135 + // "default" to the CommonJS "module.exports" for node compatibility.
6136 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6137 + mod
6138 +));
6139 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6140 +
6141 +// src/useIsFetching.ts
6142 +var useIsFetching_exports = {};
6143 +__export(useIsFetching_exports, {
6144 + useIsFetching: () => useIsFetching
6145 +});
6146 +module.exports = __toCommonJS(useIsFetching_exports);
6147 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6148 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6149 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6150 +function useIsFetching(filters, queryClient) {
6151 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6152 + const queryCache = client.getQueryCache();
6153 + return React.useSyncExternalStore(
6154 + React.useCallback(
6155 + (onStoreChange) => queryCache.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
6156 + [queryCache]
6157 + ),
6158 + () => client.isFetching(filters),
6159 + () => client.isFetching(filters)
6160 + );
6161 +}
6162 +// Annotate the CommonJS export names for ESM import in node:
6163 +0 && (0);
6164 +//# sourceMappingURL=useIsFetching.cjs.map
6165 +
6166 +/***/ }),
6167 +
6168 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs":
6169 +/*!**************************************************************************!*\
6170 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutation.cjs ***!
6171 + \**************************************************************************/
6172 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6173 +
6174 +"use strict";
6175 +
6176 +"use client";
6177 +var __create = Object.create;
6178 +var __defProp = Object.defineProperty;
6179 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6180 +var __getOwnPropNames = Object.getOwnPropertyNames;
6181 +var __getProtoOf = Object.getPrototypeOf;
6182 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6183 +var __export = (target, all) => {
6184 + for (var name in all)
6185 + __defProp(target, name, { get: all[name], enumerable: true });
6186 +};
6187 +var __copyProps = (to, from, except, desc) => {
6188 + if (from && typeof from === "object" || typeof from === "function") {
6189 + for (let key of __getOwnPropNames(from))
6190 + if (!__hasOwnProp.call(to, key) && key !== except)
6191 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6192 + }
6193 + return to;
6194 +};
6195 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6196 + // If the importer is in node compatibility mode or this is not an ESM
6197 + // file that has been converted to a CommonJS file using a Babel-
6198 + // compatible transform (i.e. "__esModule" has not been set), then set
6199 + // "default" to the CommonJS "module.exports" for node compatibility.
6200 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6201 + mod
6202 +));
6203 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6204 +
6205 +// src/useMutation.ts
6206 +var useMutation_exports = {};
6207 +__export(useMutation_exports, {
6208 + useMutation: () => useMutation
6209 +});
6210 +module.exports = __toCommonJS(useMutation_exports);
6211 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6212 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6213 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6214 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
6215 +function useMutation(options, queryClient) {
6216 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6217 + const [observer] = React.useState(
6218 + () => new import_query_core.MutationObserver(
6219 + client,
6220 + options
6221 + )
6222 + );
6223 + React.useEffect(() => {
6224 + observer.setOptions(options);
6225 + }, [observer, options]);
6226 + const result = React.useSyncExternalStore(
6227 + React.useCallback(
6228 + (onStoreChange) => observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
6229 + [observer]
6230 + ),
6231 + () => observer.getCurrentResult(),
6232 + () => observer.getCurrentResult()
6233 + );
6234 + const mutate = React.useCallback(
6235 + (variables, mutateOptions) => {
6236 + observer.mutate(variables, mutateOptions).catch(noop);
6237 + },
6238 + [observer]
6239 + );
6240 + if (result.error && (0, import_utils.shouldThrowError)(observer.options.throwOnError, [result.error])) {
6241 + throw result.error;
6242 + }
6243 + return { ...result, mutate, mutateAsync: result.mutate };
6244 +}
6245 +function noop() {
6246 +}
6247 +// Annotate the CommonJS export names for ESM import in node:
6248 +0 && (0);
6249 +//# sourceMappingURL=useMutation.cjs.map
6250 +
6251 +/***/ }),
6252 +
6253 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs":
6254 +/*!*******************************************************************************!*\
6255 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs ***!
6256 + \*******************************************************************************/
6257 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6258 +
6259 +"use strict";
6260 +
6261 +"use client";
6262 +var __create = Object.create;
6263 +var __defProp = Object.defineProperty;
6264 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6265 +var __getOwnPropNames = Object.getOwnPropertyNames;
6266 +var __getProtoOf = Object.getPrototypeOf;
6267 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6268 +var __export = (target, all) => {
6269 + for (var name in all)
6270 + __defProp(target, name, { get: all[name], enumerable: true });
6271 +};
6272 +var __copyProps = (to, from, except, desc) => {
6273 + if (from && typeof from === "object" || typeof from === "function") {
6274 + for (let key of __getOwnPropNames(from))
6275 + if (!__hasOwnProp.call(to, key) && key !== except)
6276 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6277 + }
6278 + return to;
6279 +};
6280 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6281 + // If the importer is in node compatibility mode or this is not an ESM
6282 + // file that has been converted to a CommonJS file using a Babel-
6283 + // compatible transform (i.e. "__esModule" has not been set), then set
6284 + // "default" to the CommonJS "module.exports" for node compatibility.
6285 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6286 + mod
6287 +));
6288 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6289 +
6290 +// src/useMutationState.ts
6291 +var useMutationState_exports = {};
6292 +__export(useMutationState_exports, {
6293 + useIsMutating: () => useIsMutating,
6294 + useMutationState: () => useMutationState
6295 +});
6296 +module.exports = __toCommonJS(useMutationState_exports);
6297 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6298 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6299 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6300 +function useIsMutating(filters, queryClient) {
6301 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6302 + return useMutationState(
6303 + { filters: { ...filters, status: "pending" } },
6304 + client
6305 + ).length;
6306 +}
6307 +function getResult(mutationCache, options) {
6308 + return mutationCache.findAll(options.filters).map(
6309 + (mutation) => options.select ? options.select(
6310 + mutation
6311 + ) : mutation.state
6312 + );
6313 +}
6314 +function useMutationState(options = {}, queryClient) {
6315 + const mutationCache = (0, import_QueryClientProvider.useQueryClient)(queryClient).getMutationCache();
6316 + const optionsRef = React.useRef(options);
6317 + const result = React.useRef();
6318 + if (!result.current) {
6319 + result.current = getResult(mutationCache, options);
6320 + }
6321 + React.useEffect(() => {
6322 + optionsRef.current = options;
6323 + });
6324 + return React.useSyncExternalStore(
6325 + React.useCallback(
6326 + (onStoreChange) => mutationCache.subscribe(() => {
6327 + const nextResult = (0, import_query_core.replaceEqualDeep)(
6328 + result.current,
6329 + getResult(mutationCache, optionsRef.current)
6330 + );
6331 + if (result.current !== nextResult) {
6332 + result.current = nextResult;
6333 + import_query_core.notifyManager.schedule(onStoreChange);
6334 + }
6335 + }),
6336 + [mutationCache]
6337 + ),
6338 + () => result.current,
6339 + () => result.current
6340 + );
6341 +}
6342 +// Annotate the CommonJS export names for ESM import in node:
6343 +0 && (0);
6344 +//# sourceMappingURL=useMutationState.cjs.map
6345 +
6346 +/***/ }),
6347 +
6348 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs":
6349 +/*!*************************************************************************!*\
6350 + !*** ../node_modules/@tanstack/react-query/build/modern/useQueries.cjs ***!
6351 + \*************************************************************************/
6352 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6353 +
6354 +"use strict";
6355 +
6356 +"use client";
6357 +var __create = Object.create;
6358 +var __defProp = Object.defineProperty;
6359 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6360 +var __getOwnPropNames = Object.getOwnPropertyNames;
6361 +var __getProtoOf = Object.getPrototypeOf;
6362 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6363 +var __export = (target, all) => {
6364 + for (var name in all)
6365 + __defProp(target, name, { get: all[name], enumerable: true });
6366 +};
6367 +var __copyProps = (to, from, except, desc) => {
6368 + if (from && typeof from === "object" || typeof from === "function") {
6369 + for (let key of __getOwnPropNames(from))
6370 + if (!__hasOwnProp.call(to, key) && key !== except)
6371 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6372 + }
6373 + return to;
6374 +};
6375 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6376 + // If the importer is in node compatibility mode or this is not an ESM
6377 + // file that has been converted to a CommonJS file using a Babel-
6378 + // compatible transform (i.e. "__esModule" has not been set), then set
6379 + // "default" to the CommonJS "module.exports" for node compatibility.
6380 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6381 + mod
6382 +));
6383 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6384 +
6385 +// src/useQueries.ts
6386 +var useQueries_exports = {};
6387 +__export(useQueries_exports, {
6388 + useQueries: () => useQueries
6389 +});
6390 +module.exports = __toCommonJS(useQueries_exports);
6391 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6392 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6393 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6394 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
6395 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
6396 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
6397 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6398 +function useQueries({
6399 + queries,
6400 + ...options
6401 +}, queryClient) {
6402 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6403 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
6404 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
6405 + const defaultedQueries = React.useMemo(
6406 + () => queries.map((opts) => {
6407 + const defaultedOptions = client.defaultQueryOptions(opts);
6408 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
6409 + return defaultedOptions;
6410 + }),
6411 + [queries, client, isRestoring]
6412 + );
6413 + defaultedQueries.forEach((query) => {
6414 + (0, import_suspense.ensureStaleTime)(query);
6415 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(query, errorResetBoundary);
6416 + });
6417 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
6418 + const [observer] = React.useState(
6419 + () => new import_query_core.QueriesObserver(
6420 + client,
6421 + defaultedQueries,
6422 + options
6423 + )
6424 + );
6425 + const [optimisticResult, getCombinedResult, trackResult] = observer.getOptimisticResult(defaultedQueries);
6426 + React.useSyncExternalStore(
6427 + React.useCallback(
6428 + (onStoreChange) => isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
6429 + [observer, isRestoring]
6430 + ),
6431 + () => observer.getCurrentResult(),
6432 + () => observer.getCurrentResult()
6433 + );
6434 + React.useEffect(() => {
6435 + observer.setQueries(
6436 + defaultedQueries,
6437 + options,
6438 + {
6439 + listeners: false
6440 + }
6441 + );
6442 + }, [defaultedQueries, options, observer]);
6443 + const shouldAtLeastOneSuspend = optimisticResult.some(
6444 + (result, index) => (0, import_suspense.shouldSuspend)(defaultedQueries[index], result, isRestoring)
6445 + );
6446 + const suspensePromises = shouldAtLeastOneSuspend ? optimisticResult.flatMap((result, index) => {
6447 + const opts = defaultedQueries[index];
6448 + if (opts) {
6449 + const queryObserver = new import_query_core.QueryObserver(client, opts);
6450 + if ((0, import_suspense.shouldSuspend)(opts, result, isRestoring)) {
6451 + return (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
6452 + } else if ((0, import_suspense.willFetch)(result, isRestoring)) {
6453 + void (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
6454 + }
6455 + }
6456 + return [];
6457 + }) : [];
6458 + if (suspensePromises.length > 0) {
6459 + throw Promise.all(suspensePromises);
6460 + }
6461 + const observerQueries = observer.getQueries();
6462 + const firstSingleResultWhichShouldThrow = optimisticResult.find(
6463 + (result, index) => (0, import_errorBoundaryUtils.getHasError)({
6464 + result,
6465 + errorResetBoundary,
6466 + throwOnError: defaultedQueries[index]?.throwOnError ?? false,
6467 + query: observerQueries[index]
6468 + })
6469 + );
6470 + if (firstSingleResultWhichShouldThrow?.error) {
6471 + throw firstSingleResultWhichShouldThrow.error;
6472 + }
6473 + return getCombinedResult(trackResult());
6474 +}
6475 +// Annotate the CommonJS export names for ESM import in node:
6476 +0 && (0);
6477 +//# sourceMappingURL=useQueries.cjs.map
6478 +
6479 +/***/ }),
6480 +
6481 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs":
6482 +/*!***********************************************************************!*\
6483 + !*** ../node_modules/@tanstack/react-query/build/modern/useQuery.cjs ***!
6484 + \***********************************************************************/
6485 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6486 +
6487 +"use strict";
6488 +
6489 +"use client";
6490 +var __defProp = Object.defineProperty;
6491 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6492 +var __getOwnPropNames = Object.getOwnPropertyNames;
6493 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6494 +var __export = (target, all) => {
6495 + for (var name in all)
6496 + __defProp(target, name, { get: all[name], enumerable: true });
6497 +};
6498 +var __copyProps = (to, from, except, desc) => {
6499 + if (from && typeof from === "object" || typeof from === "function") {
6500 + for (let key of __getOwnPropNames(from))
6501 + if (!__hasOwnProp.call(to, key) && key !== except)
6502 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6503 + }
6504 + return to;
6505 +};
6506 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6507 +
6508 +// src/useQuery.ts
6509 +var useQuery_exports = {};
6510 +__export(useQuery_exports, {
6511 + useQuery: () => useQuery
6512 +});
6513 +module.exports = __toCommonJS(useQuery_exports);
6514 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6515 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6516 +function useQuery(options, queryClient) {
6517 + return (0, import_useBaseQuery.useBaseQuery)(options, import_query_core.QueryObserver, queryClient);
6518 +}
6519 +// Annotate the CommonJS export names for ESM import in node:
6520 +0 && (0);
6521 +//# sourceMappingURL=useQuery.cjs.map
6522 +
6523 +/***/ }),
6524 +
6525 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs":
6526 +/*!***************************************************************************************!*\
6527 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs ***!
6528 + \***************************************************************************************/
6529 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6530 +
6531 +"use strict";
6532 +
6533 +"use client";
6534 +var __defProp = Object.defineProperty;
6535 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6536 +var __getOwnPropNames = Object.getOwnPropertyNames;
6537 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6538 +var __export = (target, all) => {
6539 + for (var name in all)
6540 + __defProp(target, name, { get: all[name], enumerable: true });
6541 +};
6542 +var __copyProps = (to, from, except, desc) => {
6543 + if (from && typeof from === "object" || typeof from === "function") {
6544 + for (let key of __getOwnPropNames(from))
6545 + if (!__hasOwnProp.call(to, key) && key !== except)
6546 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6547 + }
6548 + return to;
6549 +};
6550 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6551 +
6552 +// src/useSuspenseInfiniteQuery.ts
6553 +var useSuspenseInfiniteQuery_exports = {};
6554 +__export(useSuspenseInfiniteQuery_exports, {
6555 + useSuspenseInfiniteQuery: () => useSuspenseInfiniteQuery
6556 +});
6557 +module.exports = __toCommonJS(useSuspenseInfiniteQuery_exports);
6558 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6559 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6560 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6561 +function useSuspenseInfiniteQuery(options, queryClient) {
6562 + return (0, import_useBaseQuery.useBaseQuery)(
6563 + {
6564 + ...options,
6565 + enabled: true,
6566 + suspense: true,
6567 + throwOnError: import_suspense.defaultThrowOnError
6568 + },
6569 + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
6570 + import_query_core.InfiniteQueryObserver,
6571 + queryClient
6572 + );
6573 +}
6574 +// Annotate the CommonJS export names for ESM import in node:
6575 +0 && (0);
6576 +//# sourceMappingURL=useSuspenseInfiniteQuery.cjs.map
6577 +
6578 +/***/ }),
6579 +
6580 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs":
6581 +/*!*********************************************************************************!*\
6582 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs ***!
6583 + \*********************************************************************************/
6584 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6585 +
6586 +"use strict";
6587 +
6588 +"use client";
6589 +var __defProp = Object.defineProperty;
6590 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6591 +var __getOwnPropNames = Object.getOwnPropertyNames;
6592 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6593 +var __export = (target, all) => {
6594 + for (var name in all)
6595 + __defProp(target, name, { get: all[name], enumerable: true });
6596 +};
6597 +var __copyProps = (to, from, except, desc) => {
6598 + if (from && typeof from === "object" || typeof from === "function") {
6599 + for (let key of __getOwnPropNames(from))
6600 + if (!__hasOwnProp.call(to, key) && key !== except)
6601 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6602 + }
6603 + return to;
6604 +};
6605 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6606 +
6607 +// src/useSuspenseQueries.ts
6608 +var useSuspenseQueries_exports = {};
6609 +__export(useSuspenseQueries_exports, {
6610 + useSuspenseQueries: () => useSuspenseQueries
6611 +});
6612 +module.exports = __toCommonJS(useSuspenseQueries_exports);
6613 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
6614 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6615 +function useSuspenseQueries(options, queryClient) {
6616 + return (0, import_useQueries.useQueries)(
6617 + {
6618 + ...options,
6619 + queries: options.queries.map((query) => ({
6620 + ...query,
6621 + suspense: true,
6622 + throwOnError: import_suspense.defaultThrowOnError,
6623 + enabled: true
6624 + }))
6625 + },
6626 + queryClient
6627 + );
6628 +}
6629 +// Annotate the CommonJS export names for ESM import in node:
6630 +0 && (0);
6631 +//# sourceMappingURL=useSuspenseQueries.cjs.map
6632 +
6633 +/***/ }),
6634 +
6635 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs":
6636 +/*!*******************************************************************************!*\
6637 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs ***!
6638 + \*******************************************************************************/
6639 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6640 +
6641 +"use strict";
6642 +
6643 +"use client";
6644 +var __defProp = Object.defineProperty;
6645 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6646 +var __getOwnPropNames = Object.getOwnPropertyNames;
6647 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6648 +var __export = (target, all) => {
6649 + for (var name in all)
6650 + __defProp(target, name, { get: all[name], enumerable: true });
6651 +};
6652 +var __copyProps = (to, from, except, desc) => {
6653 + if (from && typeof from === "object" || typeof from === "function") {
6654 + for (let key of __getOwnPropNames(from))
6655 + if (!__hasOwnProp.call(to, key) && key !== except)
6656 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6657 + }
6658 + return to;
6659 +};
6660 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6661 +
6662 +// src/useSuspenseQuery.ts
6663 +var useSuspenseQuery_exports = {};
6664 +__export(useSuspenseQuery_exports, {
6665 + useSuspenseQuery: () => useSuspenseQuery
6666 +});
6667 +module.exports = __toCommonJS(useSuspenseQuery_exports);
6668 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6669 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
6670 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
6671 +function useSuspenseQuery(options, queryClient) {
6672 + return (0, import_useBaseQuery.useBaseQuery)(
6673 + {
6674 + ...options,
6675 + enabled: true,
6676 + suspense: true,
6677 + throwOnError: import_suspense.defaultThrowOnError
6678 + },
6679 + import_query_core.QueryObserver,
6680 + queryClient
6681 + );
6682 +}
6683 +// Annotate the CommonJS export names for ESM import in node:
6684 +0 && (0);
6685 +//# sourceMappingURL=useSuspenseQuery.cjs.map
6686 +
6687 +/***/ }),
6688 +
6689 +/***/ "../node_modules/@tanstack/react-query/build/modern/utils.cjs":
6690 +/*!********************************************************************!*\
6691 + !*** ../node_modules/@tanstack/react-query/build/modern/utils.cjs ***!
6692 + \********************************************************************/
6693 +/***/ ((module) => {
6694 +
6695 +"use strict";
6696 +
6697 +var __defProp = Object.defineProperty;
6698 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6699 +var __getOwnPropNames = Object.getOwnPropertyNames;
6700 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6701 +var __export = (target, all) => {
6702 + for (var name in all)
6703 + __defProp(target, name, { get: all[name], enumerable: true });
6704 +};
6705 +var __copyProps = (to, from, except, desc) => {
6706 + if (from && typeof from === "object" || typeof from === "function") {
6707 + for (let key of __getOwnPropNames(from))
6708 + if (!__hasOwnProp.call(to, key) && key !== except)
6709 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6710 + }
6711 + return to;
6712 +};
6713 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6714 +
6715 +// src/utils.ts
6716 +var utils_exports = {};
6717 +__export(utils_exports, {
6718 + shouldThrowError: () => shouldThrowError
6719 +});
6720 +module.exports = __toCommonJS(utils_exports);
6721 +function shouldThrowError(throwError, params) {
6722 + if (typeof throwError === "function") {
6723 + return throwError(...params);
6724 + }
6725 + return !!throwError;
6726 +}
6727 +// Annotate the CommonJS export names for ESM import in node:
6728 +0 && (0);
6729 +//# sourceMappingURL=utils.cjs.map
6730 +
1915 6731 /***/ })
1916 6732
1917 6733 /******/ });
1918 6734 /************************************************************************/
@@ -1941,9 +6757,9 @@
1941 6757 /******/ }
1942 6758 /******/
1943 6759 /************************************************************************/
1944 6760 var __webpack_exports__ = {};
1945 -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
6761 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
1946 6762 (() => {
1947 6763 "use strict";
1948 6764 /*!***************************************************!*\
1949 6765 !*** ../modules/notifications/assets/js/admin.js ***!