PluginProbe
Elementor Website Builder – more than just a page builder / 3.25.2
Elementor Website Builder – more than just a page builder v3.25.2
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/editor-notifications.js +6644 -294 4.1.0-beta1 → 3.25.2 View file →
@@ -1,7 +1,64 @@
1 +/*! elementor - v3.25.0 - 29-10-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 /***/ "../assets/dev/js/utils/react.js":
5 62 /*!***************************************!*\
6 63 !*** ../assets/dev/js/utils/react.js ***!
7 64 \***************************************/
@@ -17,9 +74,10 @@
17 74 exports["default"] = void 0;
18 75 var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
19 76 var ReactDOM = _interopRequireWildcard(__webpack_require__(/*! react-dom */ "react-dom"));
20 77 var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
21 -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); }
78 +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); }
79 +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; }
22 80 /**
23 81 * Support conditional rendering of a React App to the DOM, based on the React version.
24 82 * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
25 83 *
@@ -47,11 +105,12 @@
47 105 return {
48 106 unmount: unmountFunction
49 107 };
50 108 }
51 -var _default = exports["default"] = {
109 +var _default = {
52 110 render: render
53 111 };
112 +exports["default"] = _default;
54 113
55 114 /***/ }),
56 115
57 116 /***/ "../modules/notifications/assets/js/api/index.js":
@@ -76,84 +135,15 @@
76 135 data: data
77 136 });
78 137 });
79 138 };
80 -var getNotifications = exports.getNotifications = function getNotifications() {
139 +var getNotifications = function getNotifications() {
81 140 return request('notifications_get');
82 141 };
142 +exports.getNotifications = getNotifications;
83 143
84 144 /***/ }),
85 145
86 -/***/ "../modules/notifications/assets/js/components/editor-app-bar-link.js":
87 -/*!****************************************************************************!*\
88 - !*** ../modules/notifications/assets/js/components/editor-app-bar-link.js ***!
89 - \****************************************************************************/
90 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
91 -
92 -"use strict";
93 -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
94 -
95 -
96 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
97 -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
98 -Object.defineProperty(exports, "__esModule", ({
99 - value: true
100 -}));
101 -exports.editorAppBarLink = void 0;
102 -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
103 -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
104 -var EditorAppBar = _interopRequireWildcard(__webpack_require__(/*! @elementor/editor-app-bar */ "@elementor/editor-app-bar"));
105 -var _editorOnButtonClicked = __webpack_require__(/*! ./editor-on-button-clicked */ "../modules/notifications/assets/js/components/editor-on-button-clicked.js");
106 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
107 -var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
108 -var _SpeakerphoneIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SpeakerphoneIcon */ "@elementor/icons/SpeakerphoneIcon"));
109 -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); }
110 -var IconWithBadge = function IconWithBadge(_ref) {
111 - var invisible = _ref.invisible;
112 - return /*#__PURE__*/_react.default.createElement(_ui.Badge, {
113 - color: "primary",
114 - variant: "dot",
115 - invisible: invisible
116 - }, /*#__PURE__*/_react.default.createElement(_SpeakerphoneIcon.default, null));
117 -};
118 -IconWithBadge.propTypes = {
119 - invisible: PropTypes.bool
120 -};
121 -var editorAppBarLink = exports.editorAppBarLink = function editorAppBarLink() {
122 - var utilitiesMenu = EditorAppBar.utilitiesMenu;
123 - utilitiesMenu.registerLink({
124 - id: 'app-bar-menu-item-whats-new',
125 - priority: 10,
126 - useProps: function useProps() {
127 - var _useState = (0, _react.useState)(!elementorNotifications.is_unread),
128 - _useState2 = (0, _slicedToArray2.default)(_useState, 2),
129 - isRead = _useState2[0],
130 - setIsRead = _useState2[1];
131 - return {
132 - title: (0, _i18n.__)("What's New", 'elementor'),
133 - icon: function icon() {
134 - return /*#__PURE__*/_react.default.createElement(IconWithBadge, {
135 - invisible: isRead
136 - });
137 - },
138 - onClick: function onClick() {
139 - elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.topBar.whatsNew, {
140 - location: elementorCommon.eventsManager.config.locations.topBar,
141 - secondaryLocation: elementorCommon.eventsManager.config.secondaryLocations['whats-new'],
142 - trigger: elementorCommon.eventsManager.config.triggers.click,
143 - element: elementorCommon.eventsManager.config.elements.buttonIcon
144 - });
145 - setIsRead(true);
146 - elementorNotifications.is_unread = false;
147 - (0, _editorOnButtonClicked.editorOnButtonClicked)('right');
148 - }
149 - };
150 - }
151 - });
152 -};
153 -
154 -/***/ }),
155 -
156 146 /***/ "../modules/notifications/assets/js/components/editor-drawer.js":
157 147 /*!**********************************************************************!*\
158 148 !*** ../modules/notifications/assets/js/components/editor-drawer.js ***!
159 149 \**********************************************************************/
@@ -171,10 +161,11 @@
171 161 exports.EditorDrawer = void 0;
172 162 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
173 163 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
174 164 var _whatsNew = __webpack_require__(/*! ./whats-new */ "../modules/notifications/assets/js/components/whats-new.js");
175 -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); }
176 -var EditorDrawer = exports.EditorDrawer = function EditorDrawer(_ref) {
165 +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); }
166 +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; }
167 +var EditorDrawer = function EditorDrawer(_ref) {
177 168 var _ref$anchorPosition = _ref.anchorPosition,
178 169 anchorPosition = _ref$anchorPosition === void 0 ? 'left' : _ref$anchorPosition;
179 170 var _useState = (0, _react.useState)(true),
180 171 _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -193,8 +184,9 @@
193 184 },
194 185 anchorPosition: anchorPosition
195 186 });
196 187 };
188 +exports.EditorDrawer = EditorDrawer;
197 189 EditorDrawer.propTypes = {
198 190 anchorPosition: PropTypes.oneOf(['left', 'top', 'right', 'bottom'])
199 191 };
200 192
@@ -217,15 +209,15 @@
217 209 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
218 210 var _react2 = _interopRequireDefault(__webpack_require__(/*! elementor-utils/react */ "../assets/dev/js/utils/react.js"));
219 211 var _editorDrawer = __webpack_require__(/*! ./editor-drawer */ "../modules/notifications/assets/js/components/editor-drawer.js");
220 212 var isRendered = false;
221 -var editorOnButtonClicked = exports.editorOnButtonClicked = function editorOnButtonClicked() {
213 +var editorOnButtonClicked = function editorOnButtonClicked() {
222 214 var anchorPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'left';
223 215 if (!isRendered) {
224 216 isRendered = true;
225 217 var container = document.createElement('div');
226 218 document.body.append(container);
227 - _react2.default.render(/*#__PURE__*/_react.default.createElement(_editorDrawer.EditorDrawer, {
219 + _react2.default.render( /*#__PURE__*/_react.default.createElement(_editorDrawer.EditorDrawer, {
228 220 anchorPosition: anchorPosition
229 221 }), container);
230 222 return;
231 223 }
@@ -230,8 +222,9 @@
230 222 return;
231 223 }
232 224 elementor.trigger('elementor/editor/panel/whats-new/clicked');
233 225 };
226 +exports.editorOnButtonClicked = editorOnButtonClicked;
234 227
235 228 /***/ }),
236 229
237 230 /***/ "../modules/notifications/assets/js/components/editor-v1.js":
@@ -248,9 +241,9 @@
248 241 value: true
249 242 }));
250 243 exports.editorV1 = void 0;
251 244 var _editorOnButtonClicked = __webpack_require__(/*! ./editor-on-button-clicked */ "../modules/notifications/assets/js/components/editor-on-button-clicked.js");
252 -var editorV1 = exports.editorV1 = function editorV1() {
245 +var editorV1 = function editorV1() {
253 246 elementor.on('panel:init', function () {
254 247 if (elementorNotifications.is_unread) {
255 248 document.body.classList.add('e-has-notification');
256 249 }
@@ -261,11 +254,83 @@
261 254 callback: _editorOnButtonClicked.editorOnButtonClicked
262 255 }, 'navigate_from_page', 'view-page');
263 256 });
264 257 };
258 +exports.editorV1 = editorV1;
265 259
266 260 /***/ }),
267 261
262 +/***/ "../modules/notifications/assets/js/components/editor-v2.js":
263 +/*!******************************************************************!*\
264 + !*** ../modules/notifications/assets/js/components/editor-v2.js ***!
265 + \******************************************************************/
266 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
267 +
268 +"use strict";
269 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
270 +
271 +
272 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
273 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
274 +Object.defineProperty(exports, "__esModule", ({
275 + value: true
276 +}));
277 +exports.editorV2 = void 0;
278 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
279 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
280 +var _editorOnButtonClicked = __webpack_require__(/*! ./editor-on-button-clicked */ "../modules/notifications/assets/js/components/editor-on-button-clicked.js");
281 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
282 +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
283 +var _SpeakerphoneIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SpeakerphoneIcon */ "@elementor/icons/SpeakerphoneIcon"));
284 +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); }
285 +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; }
286 +var IconWithBadge = function IconWithBadge(_ref) {
287 + var invisible = _ref.invisible;
288 + return /*#__PURE__*/_react.default.createElement(_ui.Badge, {
289 + color: "primary",
290 + variant: "dot",
291 + invisible: invisible
292 + }, /*#__PURE__*/_react.default.createElement(_SpeakerphoneIcon.default, null));
293 +};
294 +IconWithBadge.propTypes = {
295 + invisible: PropTypes.bool
296 +};
297 +var editorV2 = function editorV2() {
298 + var utilitiesMenu = window.elementorV2.editorAppBar.utilitiesMenu;
299 + utilitiesMenu.registerLink({
300 + id: 'app-bar-menu-item-whats-new',
301 + priority: 10,
302 + useProps: function useProps() {
303 + var _useState = (0, _react.useState)(!elementorNotifications.is_unread),
304 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
305 + isRead = _useState2[0],
306 + setIsRead = _useState2[1];
307 + return {
308 + title: (0, _i18n.__)("What's New", 'elementor'),
309 + icon: function icon() {
310 + return /*#__PURE__*/_react.default.createElement(IconWithBadge, {
311 + invisible: isRead
312 + });
313 + },
314 + onClick: function onClick() {
315 + elementor.editorEvents.dispatchEvent(elementor.editorEvents.config.names.topBar.whatsNew, {
316 + location: elementor.editorEvents.config.locations.topBar,
317 + secondaryLocation: elementor.editorEvents.config.secondaryLocations['whats-new'],
318 + trigger: elementor.editorEvents.config.triggers.click,
319 + element: elementor.editorEvents.config.elements.buttonIcon
320 + });
321 + setIsRead(true);
322 + elementorNotifications.is_unread = false;
323 + (0, _editorOnButtonClicked.editorOnButtonClicked)('right');
324 + }
325 + };
326 + }
327 + });
328 +};
329 +exports.editorV2 = editorV2;
330 +
331 +/***/ }),
332 +
268 333 /***/ "../modules/notifications/assets/js/components/whats-new-drawer-content.js":
269 334 /*!*********************************************************************************!*\
270 335 !*** ../modules/notifications/assets/js/components/whats-new-drawer-content.js ***!
271 336 \*********************************************************************************/
@@ -280,13 +345,13 @@
280 345 value: true
281 346 }));
282 347 exports.WhatsNewDrawerContent = void 0;
283 348 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
284 -var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query");
349 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
285 350 var _api = __webpack_require__(/*! ../api */ "../modules/notifications/assets/js/api/index.js");
286 351 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
287 352 var _whatsNewItem = __webpack_require__(/*! ./whats-new-item */ "../modules/notifications/assets/js/components/whats-new-item.js");
288 -var WhatsNewDrawerContent = exports.WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
353 +var WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
289 354 var setIsOpen = _ref.setIsOpen;
290 355 var _useQuery = (0, _query.useQuery)({
291 356 queryKey: ['e-notifications'],
292 357 queryFn: _api.getNotifications
@@ -311,8 +376,9 @@
311 376 setIsOpen: setIsOpen
312 377 });
313 378 });
314 379 };
380 +exports.WhatsNewDrawerContent = WhatsNewDrawerContent;
315 381 WhatsNewDrawerContent.propTypes = {
316 382 setIsOpen: PropTypes.func.isRequired
317 383 };
318 384
@@ -335,9 +401,9 @@
335 401 exports.WhatsNewItemChips = void 0;
336 402 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
337 403 var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
338 404 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
339 -var WhatsNewItemChips = exports.WhatsNewItemChips = function WhatsNewItemChips(_ref) {
405 +var WhatsNewItemChips = function WhatsNewItemChips(_ref) {
340 406 var chipPlan = _ref.chipPlan,
341 407 chipTags = _ref.chipTags,
342 408 itemIndex = _ref.itemIndex;
343 409 var chips = [];
@@ -372,8 +438,9 @@
372 438 key: "chip-".concat(itemIndex).concat(chipIndex)
373 439 }, chip));
374 440 }));
375 441 };
442 +exports.WhatsNewItemChips = WhatsNewItemChips;
376 443 WhatsNewItemChips.propTypes = {
377 444 chipPlan: PropTypes.string,
378 445 chipTags: PropTypes.array,
379 446 itemIndex: PropTypes.number.isRequired
@@ -398,9 +465,9 @@
398 465 exports.WhatsNewItemThumbnail = void 0;
399 466 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
400 467 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
401 468 var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
402 -var WhatsNewItemThumbnail = exports.WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
469 +var WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
403 470 var imageSrc = _ref.imageSrc,
404 471 title = _ref.title,
405 472 link = _ref.link;
406 473 return /*#__PURE__*/_react.default.createElement(_ui.Box, {
@@ -416,8 +483,9 @@
416 483 maxWidth: '100%'
417 484 }
418 485 })));
419 486 };
487 +exports.WhatsNewItemThumbnail = WhatsNewItemThumbnail;
420 488 WhatsNewItemThumbnail.propTypes = {
421 489 imageSrc: PropTypes.string.isRequired,
422 490 title: PropTypes.string.isRequired,
423 491 link: PropTypes.string
@@ -441,9 +509,9 @@
441 509 }));
442 510 exports.WhatsNewItemTopicLine = void 0;
443 511 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
444 512 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
445 -var WhatsNewItemTopicLine = exports.WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
513 +var WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
446 514 var topic = _ref.topic,
447 515 date = _ref.date;
448 516 return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
449 517 direction: "row",
@@ -457,8 +525,9 @@
457 525 pb: 1
458 526 }
459 527 }, topic && /*#__PURE__*/_react.default.createElement(_ui.Box, null, topic), date && /*#__PURE__*/_react.default.createElement(_ui.Box, null, date));
460 528 };
529 +exports.WhatsNewItemTopicLine = WhatsNewItemTopicLine;
461 530 WhatsNewItemTopicLine.propTypes = {
462 531 topic: PropTypes.string,
463 532 date: PropTypes.string
464 533 };
@@ -485,9 +554,9 @@
485 554 var _whatsNewItemTopicLine = __webpack_require__(/*! ./whats-new-item-topic-line */ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js");
486 555 var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
487 556 var _whatsNewItemThumbnail = __webpack_require__(/*! ./whats-new-item-thumbnail */ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js");
488 557 var _whatsNewItemChips = __webpack_require__(/*! ./whats-new-item-chips */ "../modules/notifications/assets/js/components/whats-new-item-chips.js");
489 -var WhatsNewItem = exports.WhatsNewItem = function WhatsNewItem(_ref) {
558 +var WhatsNewItem = function WhatsNewItem(_ref) {
490 559 var item = _ref.item,
491 560 itemIndex = _ref.itemIndex,
492 561 itemsLength = _ref.itemsLength,
493 562 setIsOpen = _ref.setIsOpen;
@@ -544,8 +613,9 @@
544 613 my: 1
545 614 }
546 615 }));
547 616 };
617 +exports.WhatsNewItem = WhatsNewItem;
548 618 WhatsNewItem.propTypes = {
549 619 item: PropTypes.object.isRequired,
550 620 itemIndex: PropTypes.number.isRequired,
551 621 itemsLength: PropTypes.number.isRequired,
@@ -572,9 +642,9 @@
572 642 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
573 643 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
574 644 var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
575 645 var _xIcon = __webpack_require__(/*! ../icons/x-icon */ "../modules/notifications/assets/js/icons/x-icon.js");
576 -var WhatsNewTopBar = exports.WhatsNewTopBar = function WhatsNewTopBar(props) {
646 +var WhatsNewTopBar = function WhatsNewTopBar(props) {
577 647 var setIsOpen = props.setIsOpen;
578 648 return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.AppBar, {
579 649 elevation: 0,
580 650 position: "sticky",
@@ -595,8 +665,9 @@
595 665 return setIsOpen(false);
596 666 }
597 667 }, /*#__PURE__*/_react.default.createElement(_xIcon.XIcon, null)))), /*#__PURE__*/_react.default.createElement(_ui.Divider, null));
598 668 };
669 +exports.WhatsNewTopBar = WhatsNewTopBar;
599 670 WhatsNewTopBar.propTypes = {
600 671 setIsOpen: PropTypes.func.isRequired
601 672 };
602 673
@@ -618,12 +689,13 @@
618 689 }));
619 690 exports.WhatsNew = void 0;
620 691 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
621 692 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
622 -var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query");
693 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
623 694 var _whatsNewTopBar = __webpack_require__(/*! ./whats-new-top-bar */ "../modules/notifications/assets/js/components/whats-new-top-bar.js");
624 695 var _whatsNewDrawerContent = __webpack_require__(/*! ./whats-new-drawer-content */ "../modules/notifications/assets/js/components/whats-new-drawer-content.js");
625 -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); }
696 +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); }
697 +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; }
626 698 var queryClient = new _query.QueryClient({
627 699 defaultOptions: {
628 700 queries: {
629 701 refetchOnWindowFocus: false,
@@ -631,9 +703,10 @@
631 703 staleTime: 1000 * 60 * 30 // 30 minutes
632 704 }
633 705 }
634 706 });
635 -var WhatsNew = exports.WhatsNew = function WhatsNew(props) {
707 +
708 +var WhatsNew = function WhatsNew(props) {
636 709 var _window$elementor, _window$elementor$get;
637 710 var isOpen = props.isOpen,
638 711 setIsOpen = props.setIsOpen,
639 712 setIsRead = props.setIsRead,
@@ -649,9 +722,9 @@
649 722 client: queryClient
650 723 }, /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
651 724 rtl: elementorCommon.config.isRTL
652 725 }, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
653 - 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'
726 + 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'
654 727 }, /*#__PURE__*/_react.default.createElement(_ui.Drawer, {
655 728 anchor: anchorPosition,
656 729 open: isOpen,
657 730 onClose: function onClose() {
@@ -678,8 +751,9 @@
678 751 }, /*#__PURE__*/_react.default.createElement(_whatsNewDrawerContent.WhatsNewDrawerContent, {
679 752 setIsOpen: setIsOpen
680 753 }))))))));
681 754 };
755 +exports.WhatsNew = WhatsNew;
682 756 WhatsNew.propTypes = {
683 757 isOpen: PropTypes.bool.isRequired,
684 758 setIsOpen: PropTypes.func.isRequired,
685 759 setIsRead: PropTypes.func.isRequired,
@@ -704,9 +778,9 @@
704 778 }));
705 779 exports.WrapperWithLink = void 0;
706 780 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
707 781 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
708 -var WrapperWithLink = exports.WrapperWithLink = function WrapperWithLink(props) {
782 +var WrapperWithLink = function WrapperWithLink(props) {
709 783 var link = props.link,
710 784 children = props.children;
711 785 if (!link) {
712 786 return children;
@@ -722,8 +796,9 @@
722 796 }
723 797 }
724 798 }, children);
725 799 };
800 +exports.WrapperWithLink = WrapperWithLink;
726 801 WrapperWithLink.propTypes = {
727 802 link: PropTypes.string,
728 803 children: PropTypes.any.isRequired
729 804 };
@@ -747,10 +822,11 @@
747 822 exports.XIcon = void 0;
748 823 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
749 824 var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
750 825 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
751 -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); }
752 -var XIcon = exports.XIcon = (0, _react.forwardRef)(function (props, ref) {
826 +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); }
827 +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; }
828 +var XIcon = (0, _react.forwardRef)(function (props, ref) {
753 829 return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
754 830 viewBox: "0 0 24 24"
755 831 }, props, {
756 832 ref: ref
@@ -763,177 +839,12 @@
763 839 clipRule: "evenodd",
764 840 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"
765 841 }));
766 842 });
843 +exports.XIcon = XIcon;
767 844
768 845 /***/ }),
769 846
770 -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
771 -/*!******************************************************************!*\
772 - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
773 - \******************************************************************/
774 -/***/ ((module) => {
775 -
776 -function _arrayLikeToArray(r, a) {
777 - (null == a || a > r.length) && (a = r.length);
778 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
779 - return n;
780 -}
781 -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
782 -
783 -/***/ }),
784 -
785 -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
786 -/*!****************************************************************!*\
787 - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
788 - \****************************************************************/
789 -/***/ ((module) => {
790 -
791 -function _arrayWithHoles(r) {
792 - if (Array.isArray(r)) return r;
793 -}
794 -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
795 -
796 -/***/ }),
797 -
798 -/***/ "../node_modules/@babel/runtime/helpers/extends.js":
799 -/*!*********************************************************!*\
800 - !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
801 - \*********************************************************/
802 -/***/ ((module) => {
803 -
804 -function _extends() {
805 - return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
806 - for (var e = 1; e < arguments.length; e++) {
807 - var t = arguments[e];
808 - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
809 - }
810 - return n;
811 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
812 -}
813 -module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
814 -
815 -/***/ }),
816 -
817 -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
818 -/*!***********************************************************************!*\
819 - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
820 - \***********************************************************************/
821 -/***/ ((module) => {
822 -
823 -function _interopRequireDefault(e) {
824 - return e && e.__esModule ? e : {
825 - "default": e
826 - };
827 -}
828 -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
829 -
830 -/***/ }),
831 -
832 -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
833 -/*!**********************************************************************!*\
834 - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
835 - \**********************************************************************/
836 -/***/ ((module) => {
837 -
838 -function _iterableToArrayLimit(r, l) {
839 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
840 - if (null != t) {
841 - var e,
842 - n,
843 - i,
844 - u,
845 - a = [],
846 - f = !0,
847 - o = !1;
848 - try {
849 - if (i = (t = t.call(r)).next, 0 === l) {
850 - if (Object(t) !== t) return;
851 - f = !1;
852 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
853 - } catch (r) {
854 - o = !0, n = r;
855 - } finally {
856 - try {
857 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
858 - } finally {
859 - if (o) throw n;
860 - }
861 - }
862 - return a;
863 - }
864 -}
865 -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
866 -
867 -/***/ }),
868 -
869 -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
870 -/*!*****************************************************************!*\
871 - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
872 - \*****************************************************************/
873 -/***/ ((module) => {
874 -
875 -function _nonIterableRest() {
876 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
877 -}
878 -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
879 -
880 -/***/ }),
881 -
882 -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
883 -/*!***************************************************************!*\
884 - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
885 - \***************************************************************/
886 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
887 -
888 -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
889 -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
890 -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
891 -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
892 -function _slicedToArray(r, e) {
893 - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
894 -}
895 -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
896 -
897 -/***/ }),
898 -
899 -/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
900 -/*!********************************************************!*\
901 - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
902 - \********************************************************/
903 -/***/ ((module) => {
904 -
905 -function _typeof(o) {
906 - "@babel/helpers - typeof";
907 -
908 - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
909 - return typeof o;
910 - } : function (o) {
911 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
912 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
913 -}
914 -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
915 -
916 -/***/ }),
917 -
918 -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
919 -/*!****************************************************************************!*\
920 - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
921 - \****************************************************************************/
922 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
923 -
924 -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
925 -function _unsupportedIterableToArray(r, a) {
926 - if (r) {
927 - if ("string" == typeof r) return arrayLikeToArray(r, a);
928 - var t = {}.toString.call(r).slice(8, -1);
929 - 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;
930 - }
931 -}
932 -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
933 -
934 -/***/ }),
935 -
936 847 /***/ "../node_modules/object-assign/index.js":
937 848 /*!**********************************************!*\
938 849 !*** ../node_modules/object-assign/index.js ***!
939 850 \**********************************************/
@@ -1788,10 +1699,9 @@
1788 1699 // By explicitly using `prop-types` you are opting into new development behavior.
1789 1700 // http://fb.me/prop-types-in-prod
1790 1701 var throwOnDirectAccess = true;
1791 1702 module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1792 -} else // removed by dead control flow
1793 -{}
1703 +} else {}
1794 1704
1795 1705
1796 1706 /***/ }),
1797 1707
@@ -2029,10 +1939,9 @@
2029 1939
2030 1940 "use strict";
2031 1941
2032 1942
2033 -if (false) // removed by dead control flow
2034 -{} else {
1943 +if (false) {} else {
2035 1944 module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
2036 1945 }
2037 1946
2038 1947
@@ -2047,10 +1956,9 @@
2047 1956 "use strict";
2048 1957
2049 1958
2050 1959 var m = __webpack_require__(/*! react-dom */ "react-dom");
2051 -if (false) // removed by dead control flow
2052 -{} else {
1960 +if (false) {} else {
2053 1961 var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2054 1962 exports.createRoot = function(c, o) {
2055 1963 i.usingClientEntryPoint = true;
2056 1964 try {
@@ -2071,38 +1979,1398 @@
2071 1979
2072 1980
2073 1981 /***/ }),
2074 1982
2075 -/***/ "@elementor/editor-app-bar":
2076 -/*!*******************************************!*\
2077 - !*** external "elementorV2.editorAppBar" ***!
2078 - \*******************************************/
1983 +/***/ "../node_modules/react/cjs/react-jsx-runtime.development.js":
1984 +/*!******************************************************************!*\
1985 + !*** ../node_modules/react/cjs/react-jsx-runtime.development.js ***!
1986 + \******************************************************************/
1987 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1988 +
1989 +"use strict";
1990 +/**
1991 + * @license React
1992 + * react-jsx-runtime.development.js
1993 + *
1994 + * Copyright (c) Facebook, Inc. and its affiliates.
1995 + *
1996 + * This source code is licensed under the MIT license found in the
1997 + * LICENSE file in the root directory of this source tree.
1998 + */
1999 +
2000 +
2001 +
2002 +if (true) {
2003 + (function() {
2004 +'use strict';
2005 +
2006 +var React = __webpack_require__(/*! react */ "react");
2007 +
2008 +// ATTENTION
2009 +// When adding new symbols to this file,
2010 +// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
2011 +// The Symbol used to tag the ReactElement-like types.
2012 +var REACT_ELEMENT_TYPE = Symbol.for('react.element');
2013 +var REACT_PORTAL_TYPE = Symbol.for('react.portal');
2014 +var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
2015 +var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
2016 +var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
2017 +var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
2018 +var REACT_CONTEXT_TYPE = Symbol.for('react.context');
2019 +var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
2020 +var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
2021 +var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
2022 +var REACT_MEMO_TYPE = Symbol.for('react.memo');
2023 +var REACT_LAZY_TYPE = Symbol.for('react.lazy');
2024 +var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
2025 +var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2026 +var FAUX_ITERATOR_SYMBOL = '@@iterator';
2027 +function getIteratorFn(maybeIterable) {
2028 + if (maybeIterable === null || typeof maybeIterable !== 'object') {
2029 + return null;
2030 + }
2031 +
2032 + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2033 +
2034 + if (typeof maybeIterator === 'function') {
2035 + return maybeIterator;
2036 + }
2037 +
2038 + return null;
2039 +}
2040 +
2041 +var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2042 +
2043 +function error(format) {
2044 + {
2045 + {
2046 + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2047 + args[_key2 - 1] = arguments[_key2];
2048 + }
2049 +
2050 + printWarning('error', format, args);
2051 + }
2052 + }
2053 +}
2054 +
2055 +function printWarning(level, format, args) {
2056 + // When changing this logic, you might want to also
2057 + // update consoleWithStackDev.www.js as well.
2058 + {
2059 + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2060 + var stack = ReactDebugCurrentFrame.getStackAddendum();
2061 +
2062 + if (stack !== '') {
2063 + format += '%s';
2064 + args = args.concat([stack]);
2065 + } // eslint-disable-next-line react-internal/safe-string-coercion
2066 +
2067 +
2068 + var argsWithFormat = args.map(function (item) {
2069 + return String(item);
2070 + }); // Careful: RN currently depends on this prefix
2071 +
2072 + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
2073 + // breaks IE9: https://github.com/facebook/react/issues/13610
2074 + // eslint-disable-next-line react-internal/no-production-logging
2075 +
2076 + Function.prototype.apply.call(console[level], console, argsWithFormat);
2077 + }
2078 +}
2079 +
2080 +// -----------------------------------------------------------------------------
2081 +
2082 +var enableScopeAPI = false; // Experimental Create Event Handle API.
2083 +var enableCacheElement = false;
2084 +var enableTransitionTracing = false; // No known bugs, but needs performance testing
2085 +
2086 +var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
2087 +// stuff. Intended to enable React core members to more easily debug scheduling
2088 +// issues in DEV builds.
2089 +
2090 +var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
2091 +
2092 +var REACT_MODULE_REFERENCE;
2093 +
2094 +{
2095 + REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
2096 +}
2097 +
2098 +function isValidElementType(type) {
2099 + if (typeof type === 'string' || typeof type === 'function') {
2100 + return true;
2101 + } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
2102 +
2103 +
2104 + if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
2105 + return true;
2106 + }
2107 +
2108 + if (typeof type === 'object' && type !== null) {
2109 + if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
2110 + // types supported by any Flight configuration anywhere since
2111 + // we don't know which Flight build this will end up being used
2112 + // with.
2113 + type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
2114 + return true;
2115 + }
2116 + }
2117 +
2118 + return false;
2119 +}
2120 +
2121 +function getWrappedName(outerType, innerType, wrapperName) {
2122 + var displayName = outerType.displayName;
2123 +
2124 + if (displayName) {
2125 + return displayName;
2126 + }
2127 +
2128 + var functionName = innerType.displayName || innerType.name || '';
2129 + return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
2130 +} // Keep in sync with react-reconciler/getComponentNameFromFiber
2131 +
2132 +
2133 +function getContextName(type) {
2134 + return type.displayName || 'Context';
2135 +} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
2136 +
2137 +
2138 +function getComponentNameFromType(type) {
2139 + if (type == null) {
2140 + // Host root, text node or just invalid type.
2141 + return null;
2142 + }
2143 +
2144 + {
2145 + if (typeof type.tag === 'number') {
2146 + error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
2147 + }
2148 + }
2149 +
2150 + if (typeof type === 'function') {
2151 + return type.displayName || type.name || null;
2152 + }
2153 +
2154 + if (typeof type === 'string') {
2155 + return type;
2156 + }
2157 +
2158 + switch (type) {
2159 + case REACT_FRAGMENT_TYPE:
2160 + return 'Fragment';
2161 +
2162 + case REACT_PORTAL_TYPE:
2163 + return 'Portal';
2164 +
2165 + case REACT_PROFILER_TYPE:
2166 + return 'Profiler';
2167 +
2168 + case REACT_STRICT_MODE_TYPE:
2169 + return 'StrictMode';
2170 +
2171 + case REACT_SUSPENSE_TYPE:
2172 + return 'Suspense';
2173 +
2174 + case REACT_SUSPENSE_LIST_TYPE:
2175 + return 'SuspenseList';
2176 +
2177 + }
2178 +
2179 + if (typeof type === 'object') {
2180 + switch (type.$$typeof) {
2181 + case REACT_CONTEXT_TYPE:
2182 + var context = type;
2183 + return getContextName(context) + '.Consumer';
2184 +
2185 + case REACT_PROVIDER_TYPE:
2186 + var provider = type;
2187 + return getContextName(provider._context) + '.Provider';
2188 +
2189 + case REACT_FORWARD_REF_TYPE:
2190 + return getWrappedName(type, type.render, 'ForwardRef');
2191 +
2192 + case REACT_MEMO_TYPE:
2193 + var outerName = type.displayName || null;
2194 +
2195 + if (outerName !== null) {
2196 + return outerName;
2197 + }
2198 +
2199 + return getComponentNameFromType(type.type) || 'Memo';
2200 +
2201 + case REACT_LAZY_TYPE:
2202 + {
2203 + var lazyComponent = type;
2204 + var payload = lazyComponent._payload;
2205 + var init = lazyComponent._init;
2206 +
2207 + try {
2208 + return getComponentNameFromType(init(payload));
2209 + } catch (x) {
2210 + return null;
2211 + }
2212 + }
2213 +
2214 + // eslint-disable-next-line no-fallthrough
2215 + }
2216 + }
2217 +
2218 + return null;
2219 +}
2220 +
2221 +var assign = Object.assign;
2222 +
2223 +// Helpers to patch console.logs to avoid logging during side-effect free
2224 +// replaying on render function. This currently only patches the object
2225 +// lazily which won't cover if the log function was extracted eagerly.
2226 +// We could also eagerly patch the method.
2227 +var disabledDepth = 0;
2228 +var prevLog;
2229 +var prevInfo;
2230 +var prevWarn;
2231 +var prevError;
2232 +var prevGroup;
2233 +var prevGroupCollapsed;
2234 +var prevGroupEnd;
2235 +
2236 +function disabledLog() {}
2237 +
2238 +disabledLog.__reactDisabledLog = true;
2239 +function disableLogs() {
2240 + {
2241 + if (disabledDepth === 0) {
2242 + /* eslint-disable react-internal/no-production-logging */
2243 + prevLog = console.log;
2244 + prevInfo = console.info;
2245 + prevWarn = console.warn;
2246 + prevError = console.error;
2247 + prevGroup = console.group;
2248 + prevGroupCollapsed = console.groupCollapsed;
2249 + prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
2250 +
2251 + var props = {
2252 + configurable: true,
2253 + enumerable: true,
2254 + value: disabledLog,
2255 + writable: true
2256 + }; // $FlowFixMe Flow thinks console is immutable.
2257 +
2258 + Object.defineProperties(console, {
2259 + info: props,
2260 + log: props,
2261 + warn: props,
2262 + error: props,
2263 + group: props,
2264 + groupCollapsed: props,
2265 + groupEnd: props
2266 + });
2267 + /* eslint-enable react-internal/no-production-logging */
2268 + }
2269 +
2270 + disabledDepth++;
2271 + }
2272 +}
2273 +function reenableLogs() {
2274 + {
2275 + disabledDepth--;
2276 +
2277 + if (disabledDepth === 0) {
2278 + /* eslint-disable react-internal/no-production-logging */
2279 + var props = {
2280 + configurable: true,
2281 + enumerable: true,
2282 + writable: true
2283 + }; // $FlowFixMe Flow thinks console is immutable.
2284 +
2285 + Object.defineProperties(console, {
2286 + log: assign({}, props, {
2287 + value: prevLog
2288 + }),
2289 + info: assign({}, props, {
2290 + value: prevInfo
2291 + }),
2292 + warn: assign({}, props, {
2293 + value: prevWarn
2294 + }),
2295 + error: assign({}, props, {
2296 + value: prevError
2297 + }),
2298 + group: assign({}, props, {
2299 + value: prevGroup
2300 + }),
2301 + groupCollapsed: assign({}, props, {
2302 + value: prevGroupCollapsed
2303 + }),
2304 + groupEnd: assign({}, props, {
2305 + value: prevGroupEnd
2306 + })
2307 + });
2308 + /* eslint-enable react-internal/no-production-logging */
2309 + }
2310 +
2311 + if (disabledDepth < 0) {
2312 + error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
2313 + }
2314 + }
2315 +}
2316 +
2317 +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2318 +var prefix;
2319 +function describeBuiltInComponentFrame(name, source, ownerFn) {
2320 + {
2321 + if (prefix === undefined) {
2322 + // Extract the VM specific prefix used by each line.
2323 + try {
2324 + throw Error();
2325 + } catch (x) {
2326 + var match = x.stack.trim().match(/\n( *(at )?)/);
2327 + prefix = match && match[1] || '';
2328 + }
2329 + } // We use the prefix to ensure our stacks line up with native stack frames.
2330 +
2331 +
2332 + return '\n' + prefix + name;
2333 + }
2334 +}
2335 +var reentry = false;
2336 +var componentFrameCache;
2337 +
2338 +{
2339 + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
2340 + componentFrameCache = new PossiblyWeakMap();
2341 +}
2342 +
2343 +function describeNativeComponentFrame(fn, construct) {
2344 + // If something asked for a stack inside a fake render, it should get ignored.
2345 + if ( !fn || reentry) {
2346 + return '';
2347 + }
2348 +
2349 + {
2350 + var frame = componentFrameCache.get(fn);
2351 +
2352 + if (frame !== undefined) {
2353 + return frame;
2354 + }
2355 + }
2356 +
2357 + var control;
2358 + reentry = true;
2359 + var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
2360 +
2361 + Error.prepareStackTrace = undefined;
2362 + var previousDispatcher;
2363 +
2364 + {
2365 + previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
2366 + // for warnings.
2367 +
2368 + ReactCurrentDispatcher.current = null;
2369 + disableLogs();
2370 + }
2371 +
2372 + try {
2373 + // This should throw.
2374 + if (construct) {
2375 + // Something should be setting the props in the constructor.
2376 + var Fake = function () {
2377 + throw Error();
2378 + }; // $FlowFixMe
2379 +
2380 +
2381 + Object.defineProperty(Fake.prototype, 'props', {
2382 + set: function () {
2383 + // We use a throwing setter instead of frozen or non-writable props
2384 + // because that won't throw in a non-strict mode function.
2385 + throw Error();
2386 + }
2387 + });
2388 +
2389 + if (typeof Reflect === 'object' && Reflect.construct) {
2390 + // We construct a different control for this case to include any extra
2391 + // frames added by the construct call.
2392 + try {
2393 + Reflect.construct(Fake, []);
2394 + } catch (x) {
2395 + control = x;
2396 + }
2397 +
2398 + Reflect.construct(fn, [], Fake);
2399 + } else {
2400 + try {
2401 + Fake.call();
2402 + } catch (x) {
2403 + control = x;
2404 + }
2405 +
2406 + fn.call(Fake.prototype);
2407 + }
2408 + } else {
2409 + try {
2410 + throw Error();
2411 + } catch (x) {
2412 + control = x;
2413 + }
2414 +
2415 + fn();
2416 + }
2417 + } catch (sample) {
2418 + // This is inlined manually because closure doesn't do it for us.
2419 + if (sample && control && typeof sample.stack === 'string') {
2420 + // This extracts the first frame from the sample that isn't also in the control.
2421 + // Skipping one frame that we assume is the frame that calls the two.
2422 + var sampleLines = sample.stack.split('\n');
2423 + var controlLines = control.stack.split('\n');
2424 + var s = sampleLines.length - 1;
2425 + var c = controlLines.length - 1;
2426 +
2427 + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2428 + // We expect at least one stack frame to be shared.
2429 + // Typically this will be the root most one. However, stack frames may be
2430 + // cut off due to maximum stack limits. In this case, one maybe cut off
2431 + // earlier than the other. We assume that the sample is longer or the same
2432 + // and there for cut off earlier. So we should find the root most frame in
2433 + // the sample somewhere in the control.
2434 + c--;
2435 + }
2436 +
2437 + for (; s >= 1 && c >= 0; s--, c--) {
2438 + // Next we find the first one that isn't the same which should be the
2439 + // frame that called our sample function and the control.
2440 + if (sampleLines[s] !== controlLines[c]) {
2441 + // In V8, the first line is describing the message but other VMs don't.
2442 + // If we're about to return the first line, and the control is also on the same
2443 + // line, that's a pretty good indicator that our sample threw at same line as
2444 + // the control. I.e. before we entered the sample frame. So we ignore this result.
2445 + // This can happen if you passed a class to function component, or non-function.
2446 + if (s !== 1 || c !== 1) {
2447 + do {
2448 + s--;
2449 + c--; // We may still have similar intermediate frames from the construct call.
2450 + // The next one that isn't the same should be our match though.
2451 +
2452 + if (c < 0 || sampleLines[s] !== controlLines[c]) {
2453 + // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
2454 + var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
2455 + // but we have a user-provided "displayName"
2456 + // splice it in to make the stack more readable.
2457 +
2458 +
2459 + if (fn.displayName && _frame.includes('<anonymous>')) {
2460 + _frame = _frame.replace('<anonymous>', fn.displayName);
2461 + }
2462 +
2463 + {
2464 + if (typeof fn === 'function') {
2465 + componentFrameCache.set(fn, _frame);
2466 + }
2467 + } // Return the line we found.
2468 +
2469 +
2470 + return _frame;
2471 + }
2472 + } while (s >= 1 && c >= 0);
2473 + }
2474 +
2475 + break;
2476 + }
2477 + }
2478 + }
2479 + } finally {
2480 + reentry = false;
2481 +
2482 + {
2483 + ReactCurrentDispatcher.current = previousDispatcher;
2484 + reenableLogs();
2485 + }
2486 +
2487 + Error.prepareStackTrace = previousPrepareStackTrace;
2488 + } // Fallback to just using the name if we couldn't make it throw.
2489 +
2490 +
2491 + var name = fn ? fn.displayName || fn.name : '';
2492 + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
2493 +
2494 + {
2495 + if (typeof fn === 'function') {
2496 + componentFrameCache.set(fn, syntheticFrame);
2497 + }
2498 + }
2499 +
2500 + return syntheticFrame;
2501 +}
2502 +function describeFunctionComponentFrame(fn, source, ownerFn) {
2503 + {
2504 + return describeNativeComponentFrame(fn, false);
2505 + }
2506 +}
2507 +
2508 +function shouldConstruct(Component) {
2509 + var prototype = Component.prototype;
2510 + return !!(prototype && prototype.isReactComponent);
2511 +}
2512 +
2513 +function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2514 +
2515 + if (type == null) {
2516 + return '';
2517 + }
2518 +
2519 + if (typeof type === 'function') {
2520 + {
2521 + return describeNativeComponentFrame(type, shouldConstruct(type));
2522 + }
2523 + }
2524 +
2525 + if (typeof type === 'string') {
2526 + return describeBuiltInComponentFrame(type);
2527 + }
2528 +
2529 + switch (type) {
2530 + case REACT_SUSPENSE_TYPE:
2531 + return describeBuiltInComponentFrame('Suspense');
2532 +
2533 + case REACT_SUSPENSE_LIST_TYPE:
2534 + return describeBuiltInComponentFrame('SuspenseList');
2535 + }
2536 +
2537 + if (typeof type === 'object') {
2538 + switch (type.$$typeof) {
2539 + case REACT_FORWARD_REF_TYPE:
2540 + return describeFunctionComponentFrame(type.render);
2541 +
2542 + case REACT_MEMO_TYPE:
2543 + // Memo may contain any component type so we recursively resolve it.
2544 + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2545 +
2546 + case REACT_LAZY_TYPE:
2547 + {
2548 + var lazyComponent = type;
2549 + var payload = lazyComponent._payload;
2550 + var init = lazyComponent._init;
2551 +
2552 + try {
2553 + // Lazy may contain any component type so we recursively resolve it.
2554 + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2555 + } catch (x) {}
2556 + }
2557 + }
2558 + }
2559 +
2560 + return '';
2561 +}
2562 +
2563 +var hasOwnProperty = Object.prototype.hasOwnProperty;
2564 +
2565 +var loggedTypeFailures = {};
2566 +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2567 +
2568 +function setCurrentlyValidatingElement(element) {
2569 + {
2570 + if (element) {
2571 + var owner = element._owner;
2572 + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2573 + ReactDebugCurrentFrame.setExtraStackFrame(stack);
2574 + } else {
2575 + ReactDebugCurrentFrame.setExtraStackFrame(null);
2576 + }
2577 + }
2578 +}
2579 +
2580 +function checkPropTypes(typeSpecs, values, location, componentName, element) {
2581 + {
2582 + // $FlowFixMe This is okay but Flow doesn't know it.
2583 + var has = Function.call.bind(hasOwnProperty);
2584 +
2585 + for (var typeSpecName in typeSpecs) {
2586 + if (has(typeSpecs, typeSpecName)) {
2587 + var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2588 + // fail the render phase where it didn't fail before. So we log it.
2589 + // After these have been cleaned up, we'll let them throw.
2590 +
2591 + try {
2592 + // This is intentionally an invariant that gets caught. It's the same
2593 + // behavior as without this statement except with a better message.
2594 + if (typeof typeSpecs[typeSpecName] !== 'function') {
2595 + // eslint-disable-next-line react-internal/prod-error-codes
2596 + var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2597 + err.name = 'Invariant Violation';
2598 + throw err;
2599 + }
2600 +
2601 + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2602 + } catch (ex) {
2603 + error$1 = ex;
2604 + }
2605 +
2606 + if (error$1 && !(error$1 instanceof Error)) {
2607 + setCurrentlyValidatingElement(element);
2608 +
2609 + error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
2610 +
2611 + setCurrentlyValidatingElement(null);
2612 + }
2613 +
2614 + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2615 + // Only monitor this failure once because there tends to be a lot of the
2616 + // same error.
2617 + loggedTypeFailures[error$1.message] = true;
2618 + setCurrentlyValidatingElement(element);
2619 +
2620 + error('Failed %s type: %s', location, error$1.message);
2621 +
2622 + setCurrentlyValidatingElement(null);
2623 + }
2624 + }
2625 + }
2626 + }
2627 +}
2628 +
2629 +var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
2630 +
2631 +function isArray(a) {
2632 + return isArrayImpl(a);
2633 +}
2634 +
2635 +/*
2636 + * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
2637 + * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
2638 + *
2639 + * The functions in this module will throw an easier-to-understand,
2640 + * easier-to-debug exception with a clear errors message message explaining the
2641 + * problem. (Instead of a confusing exception thrown inside the implementation
2642 + * of the `value` object).
2643 + */
2644 +// $FlowFixMe only called in DEV, so void return is not possible.
2645 +function typeName(value) {
2646 + {
2647 + // toStringTag is needed for namespaced types like Temporal.Instant
2648 + var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
2649 + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
2650 + return type;
2651 + }
2652 +} // $FlowFixMe only called in DEV, so void return is not possible.
2653 +
2654 +
2655 +function willCoercionThrow(value) {
2656 + {
2657 + try {
2658 + testStringCoercion(value);
2659 + return false;
2660 + } catch (e) {
2661 + return true;
2662 + }
2663 + }
2664 +}
2665 +
2666 +function testStringCoercion(value) {
2667 + // If you ended up here by following an exception call stack, here's what's
2668 + // happened: you supplied an object or symbol value to React (as a prop, key,
2669 + // DOM attribute, CSS property, string ref, etc.) and when React tried to
2670 + // coerce it to a string using `'' + value`, an exception was thrown.
2671 + //
2672 + // The most common types that will cause this exception are `Symbol` instances
2673 + // and Temporal objects like `Temporal.Instant`. But any object that has a
2674 + // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
2675 + // exception. (Library authors do this to prevent users from using built-in
2676 + // numeric operators like `+` or comparison operators like `>=` because custom
2677 + // methods are needed to perform accurate arithmetic or comparison.)
2678 + //
2679 + // To fix the problem, coerce this object or symbol value to a string before
2680 + // passing it to React. The most reliable way is usually `String(value)`.
2681 + //
2682 + // To find which value is throwing, check the browser or debugger console.
2683 + // Before this exception was thrown, there should be `console.error` output
2684 + // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
2685 + // problem and how that type was used: key, atrribute, input value prop, etc.
2686 + // In most cases, this console output also shows the component and its
2687 + // ancestor components where the exception happened.
2688 + //
2689 + // eslint-disable-next-line react-internal/safe-string-coercion
2690 + return '' + value;
2691 +}
2692 +function checkKeyStringCoercion(value) {
2693 + {
2694 + if (willCoercionThrow(value)) {
2695 + error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
2696 +
2697 + return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
2698 + }
2699 + }
2700 +}
2701 +
2702 +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2703 +var RESERVED_PROPS = {
2704 + key: true,
2705 + ref: true,
2706 + __self: true,
2707 + __source: true
2708 +};
2709 +var specialPropKeyWarningShown;
2710 +var specialPropRefWarningShown;
2711 +var didWarnAboutStringRefs;
2712 +
2713 +{
2714 + didWarnAboutStringRefs = {};
2715 +}
2716 +
2717 +function hasValidRef(config) {
2718 + {
2719 + if (hasOwnProperty.call(config, 'ref')) {
2720 + var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
2721 +
2722 + if (getter && getter.isReactWarning) {
2723 + return false;
2724 + }
2725 + }
2726 + }
2727 +
2728 + return config.ref !== undefined;
2729 +}
2730 +
2731 +function hasValidKey(config) {
2732 + {
2733 + if (hasOwnProperty.call(config, 'key')) {
2734 + var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
2735 +
2736 + if (getter && getter.isReactWarning) {
2737 + return false;
2738 + }
2739 + }
2740 + }
2741 +
2742 + return config.key !== undefined;
2743 +}
2744 +
2745 +function warnIfStringRefCannotBeAutoConverted(config, self) {
2746 + {
2747 + if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2748 + var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2749 +
2750 + if (!didWarnAboutStringRefs[componentName]) {
2751 + error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
2752 +
2753 + didWarnAboutStringRefs[componentName] = true;
2754 + }
2755 + }
2756 + }
2757 +}
2758 +
2759 +function defineKeyPropWarningGetter(props, displayName) {
2760 + {
2761 + var warnAboutAccessingKey = function () {
2762 + if (!specialPropKeyWarningShown) {
2763 + specialPropKeyWarningShown = true;
2764 +
2765 + error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
2766 + }
2767 + };
2768 +
2769 + warnAboutAccessingKey.isReactWarning = true;
2770 + Object.defineProperty(props, 'key', {
2771 + get: warnAboutAccessingKey,
2772 + configurable: true
2773 + });
2774 + }
2775 +}
2776 +
2777 +function defineRefPropWarningGetter(props, displayName) {
2778 + {
2779 + var warnAboutAccessingRef = function () {
2780 + if (!specialPropRefWarningShown) {
2781 + specialPropRefWarningShown = true;
2782 +
2783 + error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
2784 + }
2785 + };
2786 +
2787 + warnAboutAccessingRef.isReactWarning = true;
2788 + Object.defineProperty(props, 'ref', {
2789 + get: warnAboutAccessingRef,
2790 + configurable: true
2791 + });
2792 + }
2793 +}
2794 +/**
2795 + * Factory method to create a new React element. This no longer adheres to
2796 + * the class pattern, so do not use new to call it. Also, instanceof check
2797 + * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
2798 + * if something is a React Element.
2799 + *
2800 + * @param {*} type
2801 + * @param {*} props
2802 + * @param {*} key
2803 + * @param {string|object} ref
2804 + * @param {*} owner
2805 + * @param {*} self A *temporary* helper to detect places where `this` is
2806 + * different from the `owner` when React.createElement is called, so that we
2807 + * can warn. We want to get rid of owner and replace string `ref`s with arrow
2808 + * functions, and as long as `this` and owner are the same, there will be no
2809 + * change in behavior.
2810 + * @param {*} source An annotation object (added by a transpiler or otherwise)
2811 + * indicating filename, line number, and/or other information.
2812 + * @internal
2813 + */
2814 +
2815 +
2816 +var ReactElement = function (type, key, ref, self, source, owner, props) {
2817 + var element = {
2818 + // This tag allows us to uniquely identify this as a React Element
2819 + $$typeof: REACT_ELEMENT_TYPE,
2820 + // Built-in properties that belong on the element
2821 + type: type,
2822 + key: key,
2823 + ref: ref,
2824 + props: props,
2825 + // Record the component responsible for creating this element.
2826 + _owner: owner
2827 + };
2828 +
2829 + {
2830 + // The validation flag is currently mutative. We put it on
2831 + // an external backing store so that we can freeze the whole object.
2832 + // This can be replaced with a WeakMap once they are implemented in
2833 + // commonly used development environments.
2834 + element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
2835 + // the validation flag non-enumerable (where possible, which should
2836 + // include every environment we run tests in), so the test framework
2837 + // ignores it.
2838 +
2839 + Object.defineProperty(element._store, 'validated', {
2840 + configurable: false,
2841 + enumerable: false,
2842 + writable: true,
2843 + value: false
2844 + }); // self and source are DEV only properties.
2845 +
2846 + Object.defineProperty(element, '_self', {
2847 + configurable: false,
2848 + enumerable: false,
2849 + writable: false,
2850 + value: self
2851 + }); // Two elements created in two different places should be considered
2852 + // equal for testing purposes and therefore we hide it from enumeration.
2853 +
2854 + Object.defineProperty(element, '_source', {
2855 + configurable: false,
2856 + enumerable: false,
2857 + writable: false,
2858 + value: source
2859 + });
2860 +
2861 + if (Object.freeze) {
2862 + Object.freeze(element.props);
2863 + Object.freeze(element);
2864 + }
2865 + }
2866 +
2867 + return element;
2868 +};
2869 +/**
2870 + * https://github.com/reactjs/rfcs/pull/107
2871 + * @param {*} type
2872 + * @param {object} props
2873 + * @param {string} key
2874 + */
2875 +
2876 +function jsxDEV(type, config, maybeKey, source, self) {
2877 + {
2878 + var propName; // Reserved names are extracted
2879 +
2880 + var props = {};
2881 + var key = null;
2882 + var ref = null; // Currently, key can be spread in as a prop. This causes a potential
2883 + // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
2884 + // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
2885 + // but as an intermediary step, we will use jsxDEV for everything except
2886 + // <div {...props} key="Hi" />, because we aren't currently able to tell if
2887 + // key is explicitly declared to be undefined or not.
2888 +
2889 + if (maybeKey !== undefined) {
2890 + {
2891 + checkKeyStringCoercion(maybeKey);
2892 + }
2893 +
2894 + key = '' + maybeKey;
2895 + }
2896 +
2897 + if (hasValidKey(config)) {
2898 + {
2899 + checkKeyStringCoercion(config.key);
2900 + }
2901 +
2902 + key = '' + config.key;
2903 + }
2904 +
2905 + if (hasValidRef(config)) {
2906 + ref = config.ref;
2907 + warnIfStringRefCannotBeAutoConverted(config, self);
2908 + } // Remaining properties are added to a new props object
2909 +
2910 +
2911 + for (propName in config) {
2912 + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2913 + props[propName] = config[propName];
2914 + }
2915 + } // Resolve default props
2916 +
2917 +
2918 + if (type && type.defaultProps) {
2919 + var defaultProps = type.defaultProps;
2920 +
2921 + for (propName in defaultProps) {
2922 + if (props[propName] === undefined) {
2923 + props[propName] = defaultProps[propName];
2924 + }
2925 + }
2926 + }
2927 +
2928 + if (key || ref) {
2929 + var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
2930 +
2931 + if (key) {
2932 + defineKeyPropWarningGetter(props, displayName);
2933 + }
2934 +
2935 + if (ref) {
2936 + defineRefPropWarningGetter(props, displayName);
2937 + }
2938 + }
2939 +
2940 + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2941 + }
2942 +}
2943 +
2944 +var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2945 +var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2946 +
2947 +function setCurrentlyValidatingElement$1(element) {
2948 + {
2949 + if (element) {
2950 + var owner = element._owner;
2951 + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2952 + ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2953 + } else {
2954 + ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2955 + }
2956 + }
2957 +}
2958 +
2959 +var propTypesMisspellWarningShown;
2960 +
2961 +{
2962 + propTypesMisspellWarningShown = false;
2963 +}
2964 +/**
2965 + * Verifies the object is a ReactElement.
2966 + * See https://reactjs.org/docs/react-api.html#isvalidelement
2967 + * @param {?object} object
2968 + * @return {boolean} True if `object` is a ReactElement.
2969 + * @final
2970 + */
2971 +
2972 +
2973 +function isValidElement(object) {
2974 + {
2975 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2976 + }
2977 +}
2978 +
2979 +function getDeclarationErrorAddendum() {
2980 + {
2981 + if (ReactCurrentOwner$1.current) {
2982 + var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2983 +
2984 + if (name) {
2985 + return '\n\nCheck the render method of `' + name + '`.';
2986 + }
2987 + }
2988 +
2989 + return '';
2990 + }
2991 +}
2992 +
2993 +function getSourceInfoErrorAddendum(source) {
2994 + {
2995 + if (source !== undefined) {
2996 + var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2997 + var lineNumber = source.lineNumber;
2998 + return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2999 + }
3000 +
3001 + return '';
3002 + }
3003 +}
3004 +/**
3005 + * Warn if there's no key explicitly set on dynamic arrays of children or
3006 + * object keys are not valid. This allows us to keep track of children between
3007 + * updates.
3008 + */
3009 +
3010 +
3011 +var ownerHasKeyUseWarning = {};
3012 +
3013 +function getCurrentComponentErrorInfo(parentType) {
3014 + {
3015 + var info = getDeclarationErrorAddendum();
3016 +
3017 + if (!info) {
3018 + var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
3019 +
3020 + if (parentName) {
3021 + info = "\n\nCheck the top-level render call using <" + parentName + ">.";
3022 + }
3023 + }
3024 +
3025 + return info;
3026 + }
3027 +}
3028 +/**
3029 + * Warn if the element doesn't have an explicit key assigned to it.
3030 + * This element is in an array. The array could grow and shrink or be
3031 + * reordered. All children that haven't already been validated are required to
3032 + * have a "key" property assigned to it. Error statuses are cached so a warning
3033 + * will only be shown once.
3034 + *
3035 + * @internal
3036 + * @param {ReactElement} element Element that requires a key.
3037 + * @param {*} parentType element's parent's type.
3038 + */
3039 +
3040 +
3041 +function validateExplicitKey(element, parentType) {
3042 + {
3043 + if (!element._store || element._store.validated || element.key != null) {
3044 + return;
3045 + }
3046 +
3047 + element._store.validated = true;
3048 + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
3049 +
3050 + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
3051 + return;
3052 + }
3053 +
3054 + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
3055 + // property, it may be the creator of the child that's responsible for
3056 + // assigning it a key.
3057 +
3058 + var childOwner = '';
3059 +
3060 + if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
3061 + // Give the component that originally created this child.
3062 + childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
3063 + }
3064 +
3065 + setCurrentlyValidatingElement$1(element);
3066 +
3067 + error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
3068 +
3069 + setCurrentlyValidatingElement$1(null);
3070 + }
3071 +}
3072 +/**
3073 + * Ensure that every element either is passed in a static location, in an
3074 + * array with an explicit keys property defined, or in an object literal
3075 + * with valid key property.
3076 + *
3077 + * @internal
3078 + * @param {ReactNode} node Statically passed child of any type.
3079 + * @param {*} parentType node's parent's type.
3080 + */
3081 +
3082 +
3083 +function validateChildKeys(node, parentType) {
3084 + {
3085 + if (typeof node !== 'object') {
3086 + return;
3087 + }
3088 +
3089 + if (isArray(node)) {
3090 + for (var i = 0; i < node.length; i++) {
3091 + var child = node[i];
3092 +
3093 + if (isValidElement(child)) {
3094 + validateExplicitKey(child, parentType);
3095 + }
3096 + }
3097 + } else if (isValidElement(node)) {
3098 + // This element was passed in a valid location.
3099 + if (node._store) {
3100 + node._store.validated = true;
3101 + }
3102 + } else if (node) {
3103 + var iteratorFn = getIteratorFn(node);
3104 +
3105 + if (typeof iteratorFn === 'function') {
3106 + // Entry iterators used to provide implicit keys,
3107 + // but now we print a separate warning for them later.
3108 + if (iteratorFn !== node.entries) {
3109 + var iterator = iteratorFn.call(node);
3110 + var step;
3111 +
3112 + while (!(step = iterator.next()).done) {
3113 + if (isValidElement(step.value)) {
3114 + validateExplicitKey(step.value, parentType);
3115 + }
3116 + }
3117 + }
3118 + }
3119 + }
3120 + }
3121 +}
3122 +/**
3123 + * Given an element, validate that its props follow the propTypes definition,
3124 + * provided by the type.
3125 + *
3126 + * @param {ReactElement} element
3127 + */
3128 +
3129 +
3130 +function validatePropTypes(element) {
3131 + {
3132 + var type = element.type;
3133 +
3134 + if (type === null || type === undefined || typeof type === 'string') {
3135 + return;
3136 + }
3137 +
3138 + var propTypes;
3139 +
3140 + if (typeof type === 'function') {
3141 + propTypes = type.propTypes;
3142 + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
3143 + // Inner props are checked in the reconciler.
3144 + type.$$typeof === REACT_MEMO_TYPE)) {
3145 + propTypes = type.propTypes;
3146 + } else {
3147 + return;
3148 + }
3149 +
3150 + if (propTypes) {
3151 + // Intentionally inside to avoid triggering lazy initializers:
3152 + var name = getComponentNameFromType(type);
3153 + checkPropTypes(propTypes, element.props, 'prop', name, element);
3154 + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
3155 + propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
3156 +
3157 + var _name = getComponentNameFromType(type);
3158 +
3159 + error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
3160 + }
3161 +
3162 + if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
3163 + error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
3164 + }
3165 + }
3166 +}
3167 +/**
3168 + * Given a fragment, validate that it can only be provided with fragment props
3169 + * @param {ReactElement} fragment
3170 + */
3171 +
3172 +
3173 +function validateFragmentProps(fragment) {
3174 + {
3175 + var keys = Object.keys(fragment.props);
3176 +
3177 + for (var i = 0; i < keys.length; i++) {
3178 + var key = keys[i];
3179 +
3180 + if (key !== 'children' && key !== 'key') {
3181 + setCurrentlyValidatingElement$1(fragment);
3182 +
3183 + error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
3184 +
3185 + setCurrentlyValidatingElement$1(null);
3186 + break;
3187 + }
3188 + }
3189 +
3190 + if (fragment.ref !== null) {
3191 + setCurrentlyValidatingElement$1(fragment);
3192 +
3193 + error('Invalid attribute `ref` supplied to `React.Fragment`.');
3194 +
3195 + setCurrentlyValidatingElement$1(null);
3196 + }
3197 + }
3198 +}
3199 +
3200 +var didWarnAboutKeySpread = {};
3201 +function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
3202 + {
3203 + var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
3204 + // succeed and there will likely be errors in render.
3205 +
3206 + if (!validType) {
3207 + var info = '';
3208 +
3209 + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
3210 + info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
3211 + }
3212 +
3213 + var sourceInfo = getSourceInfoErrorAddendum(source);
3214 +
3215 + if (sourceInfo) {
3216 + info += sourceInfo;
3217 + } else {
3218 + info += getDeclarationErrorAddendum();
3219 + }
3220 +
3221 + var typeString;
3222 +
3223 + if (type === null) {
3224 + typeString = 'null';
3225 + } else if (isArray(type)) {
3226 + typeString = 'array';
3227 + } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
3228 + typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
3229 + info = ' Did you accidentally export a JSX literal instead of a component?';
3230 + } else {
3231 + typeString = typeof type;
3232 + }
3233 +
3234 + error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
3235 + }
3236 +
3237 + var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
3238 + // TODO: Drop this when these are no longer allowed as the type argument.
3239 +
3240 + if (element == null) {
3241 + return element;
3242 + } // Skip key warning if the type isn't valid since our key validation logic
3243 + // doesn't expect a non-string/function type and can throw confusing errors.
3244 + // We don't want exception behavior to differ between dev and prod.
3245 + // (Rendering will throw with a helpful message and as soon as the type is
3246 + // fixed, the key warnings will appear.)
3247 +
3248 +
3249 + if (validType) {
3250 + var children = props.children;
3251 +
3252 + if (children !== undefined) {
3253 + if (isStaticChildren) {
3254 + if (isArray(children)) {
3255 + for (var i = 0; i < children.length; i++) {
3256 + validateChildKeys(children[i], type);
3257 + }
3258 +
3259 + if (Object.freeze) {
3260 + Object.freeze(children);
3261 + }
3262 + } else {
3263 + error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
3264 + }
3265 + } else {
3266 + validateChildKeys(children, type);
3267 + }
3268 + }
3269 + }
3270 +
3271 + {
3272 + if (hasOwnProperty.call(props, 'key')) {
3273 + var componentName = getComponentNameFromType(type);
3274 + var keys = Object.keys(props).filter(function (k) {
3275 + return k !== 'key';
3276 + });
3277 + var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
3278 +
3279 + if (!didWarnAboutKeySpread[componentName + beforeExample]) {
3280 + var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
3281 +
3282 + error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
3283 +
3284 + didWarnAboutKeySpread[componentName + beforeExample] = true;
3285 + }
3286 + }
3287 + }
3288 +
3289 + if (type === REACT_FRAGMENT_TYPE) {
3290 + validateFragmentProps(element);
3291 + } else {
3292 + validatePropTypes(element);
3293 + }
3294 +
3295 + return element;
3296 + }
3297 +} // These two functions exist to still get child warnings in dev
3298 +// even with the prod transform. This means that jsxDEV is purely
3299 +// opt-in behavior for better messages but that we won't stop
3300 +// giving you warnings if you use production apis.
3301 +
3302 +function jsxWithValidationStatic(type, props, key) {
3303 + {
3304 + return jsxWithValidation(type, props, key, true);
3305 + }
3306 +}
3307 +function jsxWithValidationDynamic(type, props, key) {
3308 + {
3309 + return jsxWithValidation(type, props, key, false);
3310 + }
3311 +}
3312 +
3313 +var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
3314 +// for now we can ship identical prod functions
3315 +
3316 +var jsxs = jsxWithValidationStatic ;
3317 +
3318 +exports.Fragment = REACT_FRAGMENT_TYPE;
3319 +exports.jsx = jsx;
3320 +exports.jsxs = jsxs;
3321 + })();
3322 +}
3323 +
3324 +
3325 +/***/ }),
3326 +
3327 +/***/ "../node_modules/react/jsx-runtime.js":
3328 +/*!********************************************!*\
3329 + !*** ../node_modules/react/jsx-runtime.js ***!
3330 + \********************************************/
3331 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3332 +
3333 +"use strict";
3334 +
3335 +
3336 +if (false) {} else {
3337 + module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "../node_modules/react/cjs/react-jsx-runtime.development.js");
3338 +}
3339 +
3340 +
3341 +/***/ }),
3342 +
3343 +/***/ "react":
3344 +/*!************************!*\
3345 + !*** external "React" ***!
3346 + \************************/
2079 3347 /***/ ((module) => {
2080 3348
2081 3349 "use strict";
2082 -module.exports = elementorV2.editorAppBar;
3350 +module.exports = React;
2083 3351
2084 3352 /***/ }),
2085 3353
2086 -/***/ "@elementor/icons/SpeakerphoneIcon":
2087 -/*!********************************************************!*\
2088 - !*** external "elementorV2.icons['SpeakerphoneIcon']" ***!
2089 - \********************************************************/
3354 +/***/ "react-dom":
3355 +/*!***************************!*\
3356 + !*** external "ReactDOM" ***!
3357 + \***************************/
2090 3358 /***/ ((module) => {
2091 3359
2092 3360 "use strict";
2093 -module.exports = elementorV2.icons['SpeakerphoneIcon'];
3361 +module.exports = ReactDOM;
2094 3362
2095 3363 /***/ }),
2096 3364
2097 -/***/ "@elementor/query":
2098 -/*!************************************!*\
2099 - !*** external "elementorV2.query" ***!
2100 - \************************************/
3365 +/***/ "@elementor/icons/SpeakerphoneIcon":
3366 +/*!********************************************************!*\
3367 + !*** external "elementorV2.icons['SpeakerphoneIcon']" ***!
3368 + \********************************************************/
2101 3369 /***/ ((module) => {
2102 3370
2103 3371 "use strict";
2104 -module.exports = elementorV2.query;
3372 +module.exports = elementorV2.icons['SpeakerphoneIcon'];
2105 3373
2106 3374 /***/ }),
2107 3375
2108 3376 /***/ "@elementor/ui":
@@ -2126,28 +3394,5110 @@
2126 3394 module.exports = wp.i18n;
2127 3395
2128 3396 /***/ }),
2129 3397
2130 -/***/ "react":
2131 -/*!************************!*\
2132 - !*** external "React" ***!
2133 - \************************/
3398 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
3399 +/*!******************************************************************!*\
3400 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
3401 + \******************************************************************/
2134 3402 /***/ ((module) => {
2135 3403
3404 +function _arrayLikeToArray(arr, len) {
3405 + if (len == null || len > arr.length) len = arr.length;
3406 + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
3407 + return arr2;
3408 +}
3409 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3410 +
3411 +/***/ }),
3412 +
3413 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
3414 +/*!****************************************************************!*\
3415 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
3416 + \****************************************************************/
3417 +/***/ ((module) => {
3418 +
3419 +function _arrayWithHoles(arr) {
3420 + if (Array.isArray(arr)) return arr;
3421 +}
3422 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
3423 +
3424 +/***/ }),
3425 +
3426 +/***/ "../node_modules/@babel/runtime/helpers/extends.js":
3427 +/*!*********************************************************!*\
3428 + !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
3429 + \*********************************************************/
3430 +/***/ ((module) => {
3431 +
3432 +function _extends() {
3433 + module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
3434 + for (var i = 1; i < arguments.length; i++) {
3435 + var source = arguments[i];
3436 + for (var key in source) {
3437 + if (Object.prototype.hasOwnProperty.call(source, key)) {
3438 + target[key] = source[key];
3439 + }
3440 + }
3441 + }
3442 + return target;
3443 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
3444 + return _extends.apply(this, arguments);
3445 +}
3446 +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
3447 +
3448 +/***/ }),
3449 +
3450 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
3451 +/*!***********************************************************************!*\
3452 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
3453 + \***********************************************************************/
3454 +/***/ ((module) => {
3455 +
3456 +function _interopRequireDefault(obj) {
3457 + return obj && obj.__esModule ? obj : {
3458 + "default": obj
3459 + };
3460 +}
3461 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
3462 +
3463 +/***/ }),
3464 +
3465 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
3466 +/*!**********************************************************************!*\
3467 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
3468 + \**********************************************************************/
3469 +/***/ ((module) => {
3470 +
3471 +function _iterableToArrayLimit(r, l) {
3472 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3473 + if (null != t) {
3474 + var e,
3475 + n,
3476 + i,
3477 + u,
3478 + a = [],
3479 + f = !0,
3480 + o = !1;
3481 + try {
3482 + if (i = (t = t.call(r)).next, 0 === l) {
3483 + if (Object(t) !== t) return;
3484 + f = !1;
3485 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
3486 + } catch (r) {
3487 + o = !0, n = r;
3488 + } finally {
3489 + try {
3490 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
3491 + } finally {
3492 + if (o) throw n;
3493 + }
3494 + }
3495 + return a;
3496 + }
3497 +}
3498 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
3499 +
3500 +/***/ }),
3501 +
3502 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
3503 +/*!*****************************************************************!*\
3504 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
3505 + \*****************************************************************/
3506 +/***/ ((module) => {
3507 +
3508 +function _nonIterableRest() {
3509 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3510 +}
3511 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
3512 +
3513 +/***/ }),
3514 +
3515 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
3516 +/*!***************************************************************!*\
3517 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
3518 + \***************************************************************/
3519 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3520 +
3521 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
3522 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
3523 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
3524 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
3525 +function _slicedToArray(arr, i) {
3526 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
3527 +}
3528 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3529 +
3530 +/***/ }),
3531 +
3532 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
3533 +/*!********************************************************!*\
3534 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
3535 + \********************************************************/
3536 +/***/ ((module) => {
3537 +
3538 +function _typeof(o) {
3539 + "@babel/helpers - typeof";
3540 +
3541 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
3542 + return typeof o;
3543 + } : function (o) {
3544 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
3545 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
3546 +}
3547 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
3548 +
3549 +/***/ }),
3550 +
3551 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
3552 +/*!****************************************************************************!*\
3553 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
3554 + \****************************************************************************/
3555 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3556 +
3557 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
3558 +function _unsupportedIterableToArray(o, minLen) {
3559 + if (!o) return;
3560 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
3561 + var n = Object.prototype.toString.call(o).slice(8, -1);
3562 + if (n === "Object" && o.constructor) n = o.constructor.name;
3563 + if (n === "Map" || n === "Set") return Array.from(o);
3564 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
3565 +}
3566 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3567 +
3568 +/***/ }),
3569 +
3570 +/***/ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs":
3571 +/*!**************************************************************************!*\
3572 + !*** ../node_modules/@tanstack/query-core/build/modern/focusManager.cjs ***!
3573 + \**************************************************************************/
3574 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3575 +
2136 3576 "use strict";
2137 -module.exports = React;
2138 3577
3578 +var __defProp = Object.defineProperty;
3579 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3580 +var __getOwnPropNames = Object.getOwnPropertyNames;
3581 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3582 +var __export = (target, all) => {
3583 + for (var name in all)
3584 + __defProp(target, name, { get: all[name], enumerable: true });
3585 +};
3586 +var __copyProps = (to, from, except, desc) => {
3587 + if (from && typeof from === "object" || typeof from === "function") {
3588 + for (let key of __getOwnPropNames(from))
3589 + if (!__hasOwnProp.call(to, key) && key !== except)
3590 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3591 + }
3592 + return to;
3593 +};
3594 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3595 +
3596 +// src/focusManager.ts
3597 +var focusManager_exports = {};
3598 +__export(focusManager_exports, {
3599 + FocusManager: () => FocusManager,
3600 + focusManager: () => focusManager
3601 +});
3602 +module.exports = __toCommonJS(focusManager_exports);
3603 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3604 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3605 +var FocusManager = class extends import_subscribable.Subscribable {
3606 + #focused;
3607 + #cleanup;
3608 + #setup;
3609 + constructor() {
3610 + super();
3611 + this.#setup = (onFocus) => {
3612 + if (!import_utils.isServer && window.addEventListener) {
3613 + const listener = () => onFocus();
3614 + window.addEventListener("visibilitychange", listener, false);
3615 + return () => {
3616 + window.removeEventListener("visibilitychange", listener);
3617 + };
3618 + }
3619 + return;
3620 + };
3621 + }
3622 + onSubscribe() {
3623 + if (!this.#cleanup) {
3624 + this.setEventListener(this.#setup);
3625 + }
3626 + }
3627 + onUnsubscribe() {
3628 + if (!this.hasListeners()) {
3629 + this.#cleanup?.();
3630 + this.#cleanup = void 0;
3631 + }
3632 + }
3633 + setEventListener(setup) {
3634 + this.#setup = setup;
3635 + this.#cleanup?.();
3636 + this.#cleanup = setup((focused) => {
3637 + if (typeof focused === "boolean") {
3638 + this.setFocused(focused);
3639 + } else {
3640 + this.onFocus();
3641 + }
3642 + });
3643 + }
3644 + setFocused(focused) {
3645 + const changed = this.#focused !== focused;
3646 + if (changed) {
3647 + this.#focused = focused;
3648 + this.onFocus();
3649 + }
3650 + }
3651 + onFocus() {
3652 + const isFocused = this.isFocused();
3653 + this.listeners.forEach((listener) => {
3654 + listener(isFocused);
3655 + });
3656 + }
3657 + isFocused() {
3658 + if (typeof this.#focused === "boolean") {
3659 + return this.#focused;
3660 + }
3661 + return globalThis.document?.visibilityState !== "hidden";
3662 + }
3663 +};
3664 +var focusManager = new FocusManager();
3665 +// Annotate the CommonJS export names for ESM import in node:
3666 +0 && (0);
3667 +//# sourceMappingURL=focusManager.cjs.map
3668 +
2139 3669 /***/ }),
2140 3670
2141 -/***/ "react-dom":
2142 -/*!***************************!*\
2143 - !*** external "ReactDOM" ***!
2144 - \***************************/
3671 +/***/ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs":
3672 +/*!***********************************************************************!*\
3673 + !*** ../node_modules/@tanstack/query-core/build/modern/hydration.cjs ***!
3674 + \***********************************************************************/
2145 3675 /***/ ((module) => {
2146 3676
2147 3677 "use strict";
2148 -module.exports = ReactDOM;
2149 3678
3679 +var __defProp = Object.defineProperty;
3680 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3681 +var __getOwnPropNames = Object.getOwnPropertyNames;
3682 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3683 +var __export = (target, all) => {
3684 + for (var name in all)
3685 + __defProp(target, name, { get: all[name], enumerable: true });
3686 +};
3687 +var __copyProps = (to, from, except, desc) => {
3688 + if (from && typeof from === "object" || typeof from === "function") {
3689 + for (let key of __getOwnPropNames(from))
3690 + if (!__hasOwnProp.call(to, key) && key !== except)
3691 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3692 + }
3693 + return to;
3694 +};
3695 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3696 +
3697 +// src/hydration.ts
3698 +var hydration_exports = {};
3699 +__export(hydration_exports, {
3700 + defaultShouldDehydrateMutation: () => defaultShouldDehydrateMutation,
3701 + defaultShouldDehydrateQuery: () => defaultShouldDehydrateQuery,
3702 + dehydrate: () => dehydrate,
3703 + hydrate: () => hydrate
3704 +});
3705 +module.exports = __toCommonJS(hydration_exports);
3706 +function defaultTransformerFn(data) {
3707 + return data;
3708 +}
3709 +function dehydrateMutation(mutation) {
3710 + return {
3711 + mutationKey: mutation.options.mutationKey,
3712 + state: mutation.state,
3713 + ...mutation.options.scope && { scope: mutation.options.scope },
3714 + ...mutation.meta && { meta: mutation.meta }
3715 + };
3716 +}
3717 +function dehydrateQuery(query, serializeData) {
3718 + return {
3719 + state: {
3720 + ...query.state,
3721 + ...query.state.data !== void 0 && {
3722 + data: serializeData(query.state.data)
3723 + }
3724 + },
3725 + queryKey: query.queryKey,
3726 + queryHash: query.queryHash,
3727 + ...query.state.status === "pending" && {
3728 + promise: query.promise?.then(serializeData).catch((error) => {
3729 + if (true) {
3730 + console.error(
3731 + `A query that was dehydrated as pending ended up rejecting. [${query.queryHash}]: ${error}; The error will be redacted in production builds`
3732 + );
3733 + }
3734 + return Promise.reject(new Error("redacted"));
3735 + })
3736 + },
3737 + ...query.meta && { meta: query.meta }
3738 + };
3739 +}
3740 +function defaultShouldDehydrateMutation(mutation) {
3741 + return mutation.state.isPaused;
3742 +}
3743 +function defaultShouldDehydrateQuery(query) {
3744 + return query.state.status === "success";
3745 +}
3746 +function dehydrate(client, options = {}) {
3747 + const filterMutation = options.shouldDehydrateMutation ?? client.getDefaultOptions().dehydrate?.shouldDehydrateMutation ?? defaultShouldDehydrateMutation;
3748 + const mutations = client.getMutationCache().getAll().flatMap(
3749 + (mutation) => filterMutation(mutation) ? [dehydrateMutation(mutation)] : []
3750 + );
3751 + const filterQuery = options.shouldDehydrateQuery ?? client.getDefaultOptions().dehydrate?.shouldDehydrateQuery ?? defaultShouldDehydrateQuery;
3752 + const serializeData = options.serializeData ?? client.getDefaultOptions().dehydrate?.serializeData ?? defaultTransformerFn;
3753 + const queries = client.getQueryCache().getAll().flatMap(
3754 + (query) => filterQuery(query) ? [dehydrateQuery(query, serializeData)] : []
3755 + );
3756 + return { mutations, queries };
3757 +}
3758 +function hydrate(client, dehydratedState, options) {
3759 + if (typeof dehydratedState !== "object" || dehydratedState === null) {
3760 + return;
3761 + }
3762 + const mutationCache = client.getMutationCache();
3763 + const queryCache = client.getQueryCache();
3764 + const deserializeData = options?.defaultOptions?.deserializeData ?? client.getDefaultOptions().hydrate?.deserializeData ?? defaultTransformerFn;
3765 + const mutations = dehydratedState.mutations || [];
3766 + const queries = dehydratedState.queries || [];
3767 + mutations.forEach(({ state, ...mutationOptions }) => {
3768 + mutationCache.build(
3769 + client,
3770 + {
3771 + ...client.getDefaultOptions().hydrate?.mutations,
3772 + ...options?.defaultOptions?.mutations,
3773 + ...mutationOptions
3774 + },
3775 + state
3776 + );
3777 + });
3778 + queries.forEach(({ queryKey, state, queryHash, meta, promise }) => {
3779 + let query = queryCache.get(queryHash);
3780 + const data = state.data === void 0 ? state.data : deserializeData(state.data);
3781 + if (query) {
3782 + if (query.state.dataUpdatedAt < state.dataUpdatedAt) {
3783 + const { fetchStatus: _ignored, ...serializedState } = state;
3784 + query.setState({
3785 + ...serializedState,
3786 + data
3787 + });
3788 + }
3789 + } else {
3790 + query = queryCache.build(
3791 + client,
3792 + {
3793 + ...client.getDefaultOptions().hydrate?.queries,
3794 + ...options?.defaultOptions?.queries,
3795 + queryKey,
3796 + queryHash,
3797 + meta
3798 + },
3799 + // Reset fetch status to idle to avoid
3800 + // query being stuck in fetching state upon hydration
3801 + {
3802 + ...state,
3803 + data,
3804 + fetchStatus: "idle"
3805 + }
3806 + );
3807 + }
3808 + if (promise) {
3809 + const initialPromise = Promise.resolve(promise).then(deserializeData);
3810 + void query.fetch(void 0, { initialPromise });
3811 + }
3812 + });
3813 +}
3814 +// Annotate the CommonJS export names for ESM import in node:
3815 +0 && (0);
3816 +//# sourceMappingURL=hydration.cjs.map
3817 +
3818 +/***/ }),
3819 +
3820 +/***/ "../node_modules/@tanstack/query-core/build/modern/index.cjs":
3821 +/*!*******************************************************************!*\
3822 + !*** ../node_modules/@tanstack/query-core/build/modern/index.cjs ***!
3823 + \*******************************************************************/
3824 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3825 +
3826 +"use strict";
3827 +
3828 +var __defProp = Object.defineProperty;
3829 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3830 +var __getOwnPropNames = Object.getOwnPropertyNames;
3831 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3832 +var __export = (target, all) => {
3833 + for (var name in all)
3834 + __defProp(target, name, { get: all[name], enumerable: true });
3835 +};
3836 +var __copyProps = (to, from, except, desc) => {
3837 + if (from && typeof from === "object" || typeof from === "function") {
3838 + for (let key of __getOwnPropNames(from))
3839 + if (!__hasOwnProp.call(to, key) && key !== except)
3840 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3841 + }
3842 + return to;
3843 +};
3844 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
3845 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3846 +
3847 +// src/index.ts
3848 +var src_exports = {};
3849 +__export(src_exports, {
3850 + CancelledError: () => import_retryer.CancelledError,
3851 + InfiniteQueryObserver: () => import_infiniteQueryObserver.InfiniteQueryObserver,
3852 + MutationCache: () => import_mutationCache.MutationCache,
3853 + MutationObserver: () => import_mutationObserver.MutationObserver,
3854 + QueriesObserver: () => import_queriesObserver.QueriesObserver,
3855 + Query: () => import_query.Query,
3856 + QueryCache: () => import_queryCache.QueryCache,
3857 + QueryClient: () => import_queryClient.QueryClient,
3858 + QueryObserver: () => import_queryObserver.QueryObserver,
3859 + defaultShouldDehydrateMutation: () => import_hydration.defaultShouldDehydrateMutation,
3860 + defaultShouldDehydrateQuery: () => import_hydration.defaultShouldDehydrateQuery,
3861 + dehydrate: () => import_hydration.dehydrate,
3862 + focusManager: () => import_focusManager.focusManager,
3863 + hashKey: () => import_utils.hashKey,
3864 + hydrate: () => import_hydration.hydrate,
3865 + isCancelledError: () => import_retryer2.isCancelledError,
3866 + isServer: () => import_utils.isServer,
3867 + keepPreviousData: () => import_utils.keepPreviousData,
3868 + matchMutation: () => import_utils.matchMutation,
3869 + matchQuery: () => import_utils.matchQuery,
3870 + notifyManager: () => import_notifyManager.notifyManager,
3871 + onlineManager: () => import_onlineManager.onlineManager,
3872 + replaceEqualDeep: () => import_utils.replaceEqualDeep,
3873 + skipToken: () => import_utils.skipToken
3874 +});
3875 +module.exports = __toCommonJS(src_exports);
3876 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3877 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
3878 +var import_queryClient = __webpack_require__(/*! ./queryClient.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs");
3879 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
3880 +var import_queriesObserver = __webpack_require__(/*! ./queriesObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs");
3881 +var import_infiniteQueryObserver = __webpack_require__(/*! ./infiniteQueryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs");
3882 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
3883 +var import_mutationObserver = __webpack_require__(/*! ./mutationObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs");
3884 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3885 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
3886 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
3887 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3888 +var import_retryer2 = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3889 +var import_hydration = __webpack_require__(/*! ./hydration.cjs */ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs");
3890 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/query-core/build/modern/types.cjs"), module.exports);
3891 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
3892 +// Annotate the CommonJS export names for ESM import in node:
3893 +0 && (0);
3894 +//# sourceMappingURL=index.cjs.map
3895 +
3896 +/***/ }),
3897 +
3898 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs":
3899 +/*!***********************************************************************************!*\
3900 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs ***!
3901 + \***********************************************************************************/
3902 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3903 +
3904 +"use strict";
3905 +
3906 +var __defProp = Object.defineProperty;
3907 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3908 +var __getOwnPropNames = Object.getOwnPropertyNames;
3909 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3910 +var __export = (target, all) => {
3911 + for (var name in all)
3912 + __defProp(target, name, { get: all[name], enumerable: true });
3913 +};
3914 +var __copyProps = (to, from, except, desc) => {
3915 + if (from && typeof from === "object" || typeof from === "function") {
3916 + for (let key of __getOwnPropNames(from))
3917 + if (!__hasOwnProp.call(to, key) && key !== except)
3918 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3919 + }
3920 + return to;
3921 +};
3922 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3923 +
3924 +// src/infiniteQueryBehavior.ts
3925 +var infiniteQueryBehavior_exports = {};
3926 +__export(infiniteQueryBehavior_exports, {
3927 + hasNextPage: () => hasNextPage,
3928 + hasPreviousPage: () => hasPreviousPage,
3929 + infiniteQueryBehavior: () => infiniteQueryBehavior
3930 +});
3931 +module.exports = __toCommonJS(infiniteQueryBehavior_exports);
3932 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3933 +function infiniteQueryBehavior(pages) {
3934 + return {
3935 + onFetch: (context, query) => {
3936 + const fetchFn = async () => {
3937 + const options = context.options;
3938 + const direction = context.fetchOptions?.meta?.fetchMore?.direction;
3939 + const oldPages = context.state.data?.pages || [];
3940 + const oldPageParams = context.state.data?.pageParams || [];
3941 + const empty = { pages: [], pageParams: [] };
3942 + let cancelled = false;
3943 + const addSignalProperty = (object) => {
3944 + Object.defineProperty(object, "signal", {
3945 + enumerable: true,
3946 + get: () => {
3947 + if (context.signal.aborted) {
3948 + cancelled = true;
3949 + } else {
3950 + context.signal.addEventListener("abort", () => {
3951 + cancelled = true;
3952 + });
3953 + }
3954 + return context.signal;
3955 + }
3956 + });
3957 + };
3958 + const queryFn = (0, import_utils.ensureQueryFn)(context.options, context.fetchOptions);
3959 + const fetchPage = async (data, param, previous) => {
3960 + if (cancelled) {
3961 + return Promise.reject();
3962 + }
3963 + if (param == null && data.pages.length) {
3964 + return Promise.resolve(data);
3965 + }
3966 + const queryFnContext = {
3967 + queryKey: context.queryKey,
3968 + pageParam: param,
3969 + direction: previous ? "backward" : "forward",
3970 + meta: context.options.meta
3971 + };
3972 + addSignalProperty(queryFnContext);
3973 + const page = await queryFn(
3974 + queryFnContext
3975 + );
3976 + const { maxPages } = context.options;
3977 + const addTo = previous ? import_utils.addToStart : import_utils.addToEnd;
3978 + return {
3979 + pages: addTo(data.pages, page, maxPages),
3980 + pageParams: addTo(data.pageParams, param, maxPages)
3981 + };
3982 + };
3983 + let result;
3984 + if (direction && oldPages.length) {
3985 + const previous = direction === "backward";
3986 + const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
3987 + const oldData = {
3988 + pages: oldPages,
3989 + pageParams: oldPageParams
3990 + };
3991 + const param = pageParamFn(options, oldData);
3992 + result = await fetchPage(oldData, param, previous);
3993 + } else {
3994 + result = await fetchPage(
3995 + empty,
3996 + oldPageParams[0] ?? options.initialPageParam
3997 + );
3998 + const remainingPages = pages ?? oldPages.length;
3999 + for (let i = 1; i < remainingPages; i++) {
4000 + const param = getNextPageParam(options, result);
4001 + result = await fetchPage(result, param);
4002 + }
4003 + }
4004 + return result;
4005 + };
4006 + if (context.options.persister) {
4007 + context.fetchFn = () => {
4008 + return context.options.persister?.(
4009 + fetchFn,
4010 + {
4011 + queryKey: context.queryKey,
4012 + meta: context.options.meta,
4013 + signal: context.signal
4014 + },
4015 + query
4016 + );
4017 + };
4018 + } else {
4019 + context.fetchFn = fetchFn;
4020 + }
4021 + }
4022 + };
4023 +}
4024 +function getNextPageParam(options, { pages, pageParams }) {
4025 + const lastIndex = pages.length - 1;
4026 + return options.getNextPageParam(
4027 + pages[lastIndex],
4028 + pages,
4029 + pageParams[lastIndex],
4030 + pageParams
4031 + );
4032 +}
4033 +function getPreviousPageParam(options, { pages, pageParams }) {
4034 + return options.getPreviousPageParam?.(
4035 + pages[0],
4036 + pages,
4037 + pageParams[0],
4038 + pageParams
4039 + );
4040 +}
4041 +function hasNextPage(options, data) {
4042 + if (!data)
4043 + return false;
4044 + return getNextPageParam(options, data) != null;
4045 +}
4046 +function hasPreviousPage(options, data) {
4047 + if (!data || !options.getPreviousPageParam)
4048 + return false;
4049 + return getPreviousPageParam(options, data) != null;
4050 +}
4051 +// Annotate the CommonJS export names for ESM import in node:
4052 +0 && (0);
4053 +//# sourceMappingURL=infiniteQueryBehavior.cjs.map
4054 +
4055 +/***/ }),
4056 +
4057 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs":
4058 +/*!***********************************************************************************!*\
4059 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs ***!
4060 + \***********************************************************************************/
4061 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4062 +
4063 +"use strict";
4064 +
4065 +var __defProp = Object.defineProperty;
4066 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4067 +var __getOwnPropNames = Object.getOwnPropertyNames;
4068 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4069 +var __export = (target, all) => {
4070 + for (var name in all)
4071 + __defProp(target, name, { get: all[name], enumerable: true });
4072 +};
4073 +var __copyProps = (to, from, except, desc) => {
4074 + if (from && typeof from === "object" || typeof from === "function") {
4075 + for (let key of __getOwnPropNames(from))
4076 + if (!__hasOwnProp.call(to, key) && key !== except)
4077 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4078 + }
4079 + return to;
4080 +};
4081 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4082 +
4083 +// src/infiniteQueryObserver.ts
4084 +var infiniteQueryObserver_exports = {};
4085 +__export(infiniteQueryObserver_exports, {
4086 + InfiniteQueryObserver: () => InfiniteQueryObserver
4087 +});
4088 +module.exports = __toCommonJS(infiniteQueryObserver_exports);
4089 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
4090 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
4091 +var InfiniteQueryObserver = class extends import_queryObserver.QueryObserver {
4092 + constructor(client, options) {
4093 + super(client, options);
4094 + }
4095 + bindMethods() {
4096 + super.bindMethods();
4097 + this.fetchNextPage = this.fetchNextPage.bind(this);
4098 + this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
4099 + }
4100 + setOptions(options, notifyOptions) {
4101 + super.setOptions(
4102 + {
4103 + ...options,
4104 + behavior: (0, import_infiniteQueryBehavior.infiniteQueryBehavior)()
4105 + },
4106 + notifyOptions
4107 + );
4108 + }
4109 + getOptimisticResult(options) {
4110 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)();
4111 + return super.getOptimisticResult(options);
4112 + }
4113 + fetchNextPage(options) {
4114 + return this.fetch({
4115 + ...options,
4116 + meta: {
4117 + fetchMore: { direction: "forward" }
4118 + }
4119 + });
4120 + }
4121 + fetchPreviousPage(options) {
4122 + return this.fetch({
4123 + ...options,
4124 + meta: {
4125 + fetchMore: { direction: "backward" }
4126 + }
4127 + });
4128 + }
4129 + createResult(query, options) {
4130 + const { state } = query;
4131 + const parentResult = super.createResult(query, options);
4132 + const { isFetching, isRefetching, isError, isRefetchError } = parentResult;
4133 + const fetchDirection = state.fetchMeta?.fetchMore?.direction;
4134 + const isFetchNextPageError = isError && fetchDirection === "forward";
4135 + const isFetchingNextPage = isFetching && fetchDirection === "forward";
4136 + const isFetchPreviousPageError = isError && fetchDirection === "backward";
4137 + const isFetchingPreviousPage = isFetching && fetchDirection === "backward";
4138 + const result = {
4139 + ...parentResult,
4140 + fetchNextPage: this.fetchNextPage,
4141 + fetchPreviousPage: this.fetchPreviousPage,
4142 + hasNextPage: (0, import_infiniteQueryBehavior.hasNextPage)(options, state.data),
4143 + hasPreviousPage: (0, import_infiniteQueryBehavior.hasPreviousPage)(options, state.data),
4144 + isFetchNextPageError,
4145 + isFetchingNextPage,
4146 + isFetchPreviousPageError,
4147 + isFetchingPreviousPage,
4148 + isRefetchError: isRefetchError && !isFetchNextPageError && !isFetchPreviousPageError,
4149 + isRefetching: isRefetching && !isFetchingNextPage && !isFetchingPreviousPage
4150 + };
4151 + return result;
4152 + }
4153 +};
4154 +// Annotate the CommonJS export names for ESM import in node:
4155 +0 && (0);
4156 +//# sourceMappingURL=infiniteQueryObserver.cjs.map
4157 +
4158 +/***/ }),
4159 +
4160 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs":
4161 +/*!**********************************************************************!*\
4162 + !*** ../node_modules/@tanstack/query-core/build/modern/mutation.cjs ***!
4163 + \**********************************************************************/
4164 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4165 +
4166 +"use strict";
4167 +
4168 +var __defProp = Object.defineProperty;
4169 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4170 +var __getOwnPropNames = Object.getOwnPropertyNames;
4171 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4172 +var __export = (target, all) => {
4173 + for (var name in all)
4174 + __defProp(target, name, { get: all[name], enumerable: true });
4175 +};
4176 +var __copyProps = (to, from, except, desc) => {
4177 + if (from && typeof from === "object" || typeof from === "function") {
4178 + for (let key of __getOwnPropNames(from))
4179 + if (!__hasOwnProp.call(to, key) && key !== except)
4180 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4181 + }
4182 + return to;
4183 +};
4184 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4185 +
4186 +// src/mutation.ts
4187 +var mutation_exports = {};
4188 +__export(mutation_exports, {
4189 + Mutation: () => Mutation,
4190 + getDefaultState: () => getDefaultState
4191 +});
4192 +module.exports = __toCommonJS(mutation_exports);
4193 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4194 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
4195 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
4196 +var Mutation = class extends import_removable.Removable {
4197 + #observers;
4198 + #mutationCache;
4199 + #retryer;
4200 + constructor(config) {
4201 + super();
4202 + this.mutationId = config.mutationId;
4203 + this.#mutationCache = config.mutationCache;
4204 + this.#observers = [];
4205 + this.state = config.state || getDefaultState();
4206 + this.setOptions(config.options);
4207 + this.scheduleGc();
4208 + }
4209 + setOptions(options) {
4210 + this.options = options;
4211 + this.updateGcTime(this.options.gcTime);
4212 + }
4213 + get meta() {
4214 + return this.options.meta;
4215 + }
4216 + addObserver(observer) {
4217 + if (!this.#observers.includes(observer)) {
4218 + this.#observers.push(observer);
4219 + this.clearGcTimeout();
4220 + this.#mutationCache.notify({
4221 + type: "observerAdded",
4222 + mutation: this,
4223 + observer
4224 + });
4225 + }
4226 + }
4227 + removeObserver(observer) {
4228 + this.#observers = this.#observers.filter((x) => x !== observer);
4229 + this.scheduleGc();
4230 + this.#mutationCache.notify({
4231 + type: "observerRemoved",
4232 + mutation: this,
4233 + observer
4234 + });
4235 + }
4236 + optionalRemove() {
4237 + if (!this.#observers.length) {
4238 + if (this.state.status === "pending") {
4239 + this.scheduleGc();
4240 + } else {
4241 + this.#mutationCache.remove(this);
4242 + }
4243 + }
4244 + }
4245 + continue() {
4246 + return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
4247 + this.execute(this.state.variables);
4248 + }
4249 + async execute(variables) {
4250 + this.#retryer = (0, import_retryer.createRetryer)({
4251 + fn: () => {
4252 + if (!this.options.mutationFn) {
4253 + return Promise.reject(new Error("No mutationFn found"));
4254 + }
4255 + return this.options.mutationFn(variables);
4256 + },
4257 + onFail: (failureCount, error) => {
4258 + this.#dispatch({ type: "failed", failureCount, error });
4259 + },
4260 + onPause: () => {
4261 + this.#dispatch({ type: "pause" });
4262 + },
4263 + onContinue: () => {
4264 + this.#dispatch({ type: "continue" });
4265 + },
4266 + retry: this.options.retry ?? 0,
4267 + retryDelay: this.options.retryDelay,
4268 + networkMode: this.options.networkMode,
4269 + canRun: () => this.#mutationCache.canRun(this)
4270 + });
4271 + const restored = this.state.status === "pending";
4272 + const isPaused = !this.#retryer.canStart();
4273 + try {
4274 + if (!restored) {
4275 + this.#dispatch({ type: "pending", variables, isPaused });
4276 + await this.#mutationCache.config.onMutate?.(
4277 + variables,
4278 + this
4279 + );
4280 + const context = await this.options.onMutate?.(variables);
4281 + if (context !== this.state.context) {
4282 + this.#dispatch({
4283 + type: "pending",
4284 + context,
4285 + variables,
4286 + isPaused
4287 + });
4288 + }
4289 + }
4290 + const data = await this.#retryer.start();
4291 + await this.#mutationCache.config.onSuccess?.(
4292 + data,
4293 + variables,
4294 + this.state.context,
4295 + this
4296 + );
4297 + await this.options.onSuccess?.(data, variables, this.state.context);
4298 + await this.#mutationCache.config.onSettled?.(
4299 + data,
4300 + null,
4301 + this.state.variables,
4302 + this.state.context,
4303 + this
4304 + );
4305 + await this.options.onSettled?.(data, null, variables, this.state.context);
4306 + this.#dispatch({ type: "success", data });
4307 + return data;
4308 + } catch (error) {
4309 + try {
4310 + await this.#mutationCache.config.onError?.(
4311 + error,
4312 + variables,
4313 + this.state.context,
4314 + this
4315 + );
4316 + await this.options.onError?.(
4317 + error,
4318 + variables,
4319 + this.state.context
4320 + );
4321 + await this.#mutationCache.config.onSettled?.(
4322 + void 0,
4323 + error,
4324 + this.state.variables,
4325 + this.state.context,
4326 + this
4327 + );
4328 + await this.options.onSettled?.(
4329 + void 0,
4330 + error,
4331 + variables,
4332 + this.state.context
4333 + );
4334 + throw error;
4335 + } finally {
4336 + this.#dispatch({ type: "error", error });
4337 + }
4338 + } finally {
4339 + this.#mutationCache.runNext(this);
4340 + }
4341 + }
4342 + #dispatch(action) {
4343 + const reducer = (state) => {
4344 + switch (action.type) {
4345 + case "failed":
4346 + return {
4347 + ...state,
4348 + failureCount: action.failureCount,
4349 + failureReason: action.error
4350 + };
4351 + case "pause":
4352 + return {
4353 + ...state,
4354 + isPaused: true
4355 + };
4356 + case "continue":
4357 + return {
4358 + ...state,
4359 + isPaused: false
4360 + };
4361 + case "pending":
4362 + return {
4363 + ...state,
4364 + context: action.context,
4365 + data: void 0,
4366 + failureCount: 0,
4367 + failureReason: null,
4368 + error: null,
4369 + isPaused: action.isPaused,
4370 + status: "pending",
4371 + variables: action.variables,
4372 + submittedAt: Date.now()
4373 + };
4374 + case "success":
4375 + return {
4376 + ...state,
4377 + data: action.data,
4378 + failureCount: 0,
4379 + failureReason: null,
4380 + error: null,
4381 + status: "success",
4382 + isPaused: false
4383 + };
4384 + case "error":
4385 + return {
4386 + ...state,
4387 + data: void 0,
4388 + error: action.error,
4389 + failureCount: state.failureCount + 1,
4390 + failureReason: action.error,
4391 + isPaused: false,
4392 + status: "error"
4393 + };
4394 + }
4395 + };
4396 + this.state = reducer(this.state);
4397 + import_notifyManager.notifyManager.batch(() => {
4398 + this.#observers.forEach((observer) => {
4399 + observer.onMutationUpdate(action);
4400 + });
4401 + this.#mutationCache.notify({
4402 + mutation: this,
4403 + type: "updated",
4404 + action
4405 + });
4406 + });
4407 + }
4408 +};
4409 +function getDefaultState() {
4410 + return {
4411 + context: void 0,
4412 + data: void 0,
4413 + error: null,
4414 + failureCount: 0,
4415 + failureReason: null,
4416 + isPaused: false,
4417 + status: "idle",
4418 + variables: void 0,
4419 + submittedAt: 0
4420 + };
4421 +}
4422 +// Annotate the CommonJS export names for ESM import in node:
4423 +0 && (0);
4424 +//# sourceMappingURL=mutation.cjs.map
4425 +
4426 +/***/ }),
4427 +
4428 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs":
4429 +/*!***************************************************************************!*\
4430 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs ***!
4431 + \***************************************************************************/
4432 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4433 +
4434 +"use strict";
4435 +
4436 +var __defProp = Object.defineProperty;
4437 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4438 +var __getOwnPropNames = Object.getOwnPropertyNames;
4439 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4440 +var __export = (target, all) => {
4441 + for (var name in all)
4442 + __defProp(target, name, { get: all[name], enumerable: true });
4443 +};
4444 +var __copyProps = (to, from, except, desc) => {
4445 + if (from && typeof from === "object" || typeof from === "function") {
4446 + for (let key of __getOwnPropNames(from))
4447 + if (!__hasOwnProp.call(to, key) && key !== except)
4448 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4449 + }
4450 + return to;
4451 +};
4452 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4453 +
4454 +// src/mutationCache.ts
4455 +var mutationCache_exports = {};
4456 +__export(mutationCache_exports, {
4457 + MutationCache: () => MutationCache
4458 +});
4459 +module.exports = __toCommonJS(mutationCache_exports);
4460 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4461 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
4462 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4463 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4464 +var MutationCache = class extends import_subscribable.Subscribable {
4465 + constructor(config = {}) {
4466 + super();
4467 + this.config = config;
4468 + this.#mutations = /* @__PURE__ */ new Map();
4469 + this.#mutationId = Date.now();
4470 + }
4471 + #mutations;
4472 + #mutationId;
4473 + build(client, options, state) {
4474 + const mutation = new import_mutation.Mutation({
4475 + mutationCache: this,
4476 + mutationId: ++this.#mutationId,
4477 + options: client.defaultMutationOptions(options),
4478 + state
4479 + });
4480 + this.add(mutation);
4481 + return mutation;
4482 + }
4483 + add(mutation) {
4484 + const scope = scopeFor(mutation);
4485 + const mutations = this.#mutations.get(scope) ?? [];
4486 + mutations.push(mutation);
4487 + this.#mutations.set(scope, mutations);
4488 + this.notify({ type: "added", mutation });
4489 + }
4490 + remove(mutation) {
4491 + const scope = scopeFor(mutation);
4492 + if (this.#mutations.has(scope)) {
4493 + const mutations = this.#mutations.get(scope)?.filter((x) => x !== mutation);
4494 + if (mutations) {
4495 + if (mutations.length === 0) {
4496 + this.#mutations.delete(scope);
4497 + } else {
4498 + this.#mutations.set(scope, mutations);
4499 + }
4500 + }
4501 + }
4502 + this.notify({ type: "removed", mutation });
4503 + }
4504 + canRun(mutation) {
4505 + const firstPendingMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m.state.status === "pending");
4506 + return !firstPendingMutation || firstPendingMutation === mutation;
4507 + }
4508 + runNext(mutation) {
4509 + const foundMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m !== mutation && m.state.isPaused);
4510 + return foundMutation?.continue() ?? Promise.resolve();
4511 + }
4512 + clear() {
4513 + import_notifyManager.notifyManager.batch(() => {
4514 + this.getAll().forEach((mutation) => {
4515 + this.remove(mutation);
4516 + });
4517 + });
4518 + }
4519 + getAll() {
4520 + return [...this.#mutations.values()].flat();
4521 + }
4522 + find(filters) {
4523 + const defaultedFilters = { exact: true, ...filters };
4524 + return this.getAll().find(
4525 + (mutation) => (0, import_utils.matchMutation)(defaultedFilters, mutation)
4526 + );
4527 + }
4528 + findAll(filters = {}) {
4529 + return this.getAll().filter((mutation) => (0, import_utils.matchMutation)(filters, mutation));
4530 + }
4531 + notify(event) {
4532 + import_notifyManager.notifyManager.batch(() => {
4533 + this.listeners.forEach((listener) => {
4534 + listener(event);
4535 + });
4536 + });
4537 + }
4538 + resumePausedMutations() {
4539 + const pausedMutations = this.getAll().filter((x) => x.state.isPaused);
4540 + return import_notifyManager.notifyManager.batch(
4541 + () => Promise.all(
4542 + pausedMutations.map((mutation) => mutation.continue().catch(import_utils.noop))
4543 + )
4544 + );
4545 + }
4546 +};
4547 +function scopeFor(mutation) {
4548 + return mutation.options.scope?.id ?? String(mutation.mutationId);
4549 +}
4550 +// Annotate the CommonJS export names for ESM import in node:
4551 +0 && (0);
4552 +//# sourceMappingURL=mutationCache.cjs.map
4553 +
4554 +/***/ }),
4555 +
4556 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs":
4557 +/*!******************************************************************************!*\
4558 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs ***!
4559 + \******************************************************************************/
4560 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4561 +
4562 +"use strict";
4563 +
4564 +var __defProp = Object.defineProperty;
4565 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4566 +var __getOwnPropNames = Object.getOwnPropertyNames;
4567 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4568 +var __export = (target, all) => {
4569 + for (var name in all)
4570 + __defProp(target, name, { get: all[name], enumerable: true });
4571 +};
4572 +var __copyProps = (to, from, except, desc) => {
4573 + if (from && typeof from === "object" || typeof from === "function") {
4574 + for (let key of __getOwnPropNames(from))
4575 + if (!__hasOwnProp.call(to, key) && key !== except)
4576 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4577 + }
4578 + return to;
4579 +};
4580 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4581 +
4582 +// src/mutationObserver.ts
4583 +var mutationObserver_exports = {};
4584 +__export(mutationObserver_exports, {
4585 + MutationObserver: () => MutationObserver
4586 +});
4587 +module.exports = __toCommonJS(mutationObserver_exports);
4588 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
4589 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4590 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4591 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4592 +var MutationObserver = class extends import_subscribable.Subscribable {
4593 + #client;
4594 + #currentResult = void 0;
4595 + #currentMutation;
4596 + #mutateOptions;
4597 + constructor(client, options) {
4598 + super();
4599 + this.#client = client;
4600 + this.setOptions(options);
4601 + this.bindMethods();
4602 + this.#updateResult();
4603 + }
4604 + bindMethods() {
4605 + this.mutate = this.mutate.bind(this);
4606 + this.reset = this.reset.bind(this);
4607 + }
4608 + setOptions(options) {
4609 + const prevOptions = this.options;
4610 + this.options = this.#client.defaultMutationOptions(options);
4611 + if (!(0, import_utils.shallowEqualObjects)(this.options, prevOptions)) {
4612 + this.#client.getMutationCache().notify({
4613 + type: "observerOptionsUpdated",
4614 + mutation: this.#currentMutation,
4615 + observer: this
4616 + });
4617 + }
4618 + if (prevOptions?.mutationKey && this.options.mutationKey && (0, import_utils.hashKey)(prevOptions.mutationKey) !== (0, import_utils.hashKey)(this.options.mutationKey)) {
4619 + this.reset();
4620 + } else if (this.#currentMutation?.state.status === "pending") {
4621 + this.#currentMutation.setOptions(this.options);
4622 + }
4623 + }
4624 + onUnsubscribe() {
4625 + if (!this.hasListeners()) {
4626 + this.#currentMutation?.removeObserver(this);
4627 + }
4628 + }
4629 + onMutationUpdate(action) {
4630 + this.#updateResult();
4631 + this.#notify(action);
4632 + }
4633 + getCurrentResult() {
4634 + return this.#currentResult;
4635 + }
4636 + reset() {
4637 + this.#currentMutation?.removeObserver(this);
4638 + this.#currentMutation = void 0;
4639 + this.#updateResult();
4640 + this.#notify();
4641 + }
4642 + mutate(variables, options) {
4643 + this.#mutateOptions = options;
4644 + this.#currentMutation?.removeObserver(this);
4645 + this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);
4646 + this.#currentMutation.addObserver(this);
4647 + return this.#currentMutation.execute(variables);
4648 + }
4649 + #updateResult() {
4650 + const state = this.#currentMutation?.state ?? (0, import_mutation.getDefaultState)();
4651 + this.#currentResult = {
4652 + ...state,
4653 + isPending: state.status === "pending",
4654 + isSuccess: state.status === "success",
4655 + isError: state.status === "error",
4656 + isIdle: state.status === "idle",
4657 + mutate: this.mutate,
4658 + reset: this.reset
4659 + };
4660 + }
4661 + #notify(action) {
4662 + import_notifyManager.notifyManager.batch(() => {
4663 + if (this.#mutateOptions && this.hasListeners()) {
4664 + const variables = this.#currentResult.variables;
4665 + const context = this.#currentResult.context;
4666 + if (action?.type === "success") {
4667 + this.#mutateOptions.onSuccess?.(action.data, variables, context);
4668 + this.#mutateOptions.onSettled?.(action.data, null, variables, context);
4669 + } else if (action?.type === "error") {
4670 + this.#mutateOptions.onError?.(action.error, variables, context);
4671 + this.#mutateOptions.onSettled?.(
4672 + void 0,
4673 + action.error,
4674 + variables,
4675 + context
4676 + );
4677 + }
4678 + }
4679 + this.listeners.forEach((listener) => {
4680 + listener(this.#currentResult);
4681 + });
4682 + });
4683 + }
4684 +};
4685 +// Annotate the CommonJS export names for ESM import in node:
4686 +0 && (0);
4687 +//# sourceMappingURL=mutationObserver.cjs.map
4688 +
4689 +/***/ }),
4690 +
4691 +/***/ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs":
4692 +/*!***************************************************************************!*\
4693 + !*** ../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs ***!
4694 + \***************************************************************************/
4695 +/***/ ((module) => {
4696 +
4697 +"use strict";
4698 +
4699 +var __defProp = Object.defineProperty;
4700 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4701 +var __getOwnPropNames = Object.getOwnPropertyNames;
4702 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4703 +var __export = (target, all) => {
4704 + for (var name in all)
4705 + __defProp(target, name, { get: all[name], enumerable: true });
4706 +};
4707 +var __copyProps = (to, from, except, desc) => {
4708 + if (from && typeof from === "object" || typeof from === "function") {
4709 + for (let key of __getOwnPropNames(from))
4710 + if (!__hasOwnProp.call(to, key) && key !== except)
4711 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4712 + }
4713 + return to;
4714 +};
4715 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4716 +
4717 +// src/notifyManager.ts
4718 +var notifyManager_exports = {};
4719 +__export(notifyManager_exports, {
4720 + createNotifyManager: () => createNotifyManager,
4721 + notifyManager: () => notifyManager
4722 +});
4723 +module.exports = __toCommonJS(notifyManager_exports);
4724 +function createNotifyManager() {
4725 + let queue = [];
4726 + let transactions = 0;
4727 + let notifyFn = (callback) => {
4728 + callback();
4729 + };
4730 + let batchNotifyFn = (callback) => {
4731 + callback();
4732 + };
4733 + let scheduleFn = (cb) => setTimeout(cb, 0);
4734 + const setScheduler = (fn) => {
4735 + scheduleFn = fn;
4736 + };
4737 + const batch = (callback) => {
4738 + let result;
4739 + transactions++;
4740 + try {
4741 + result = callback();
4742 + } finally {
4743 + transactions--;
4744 + if (!transactions) {
4745 + flush();
4746 + }
4747 + }
4748 + return result;
4749 + };
4750 + const schedule = (callback) => {
4751 + if (transactions) {
4752 + queue.push(callback);
4753 + } else {
4754 + scheduleFn(() => {
4755 + notifyFn(callback);
4756 + });
4757 + }
4758 + };
4759 + const batchCalls = (callback) => {
4760 + return (...args) => {
4761 + schedule(() => {
4762 + callback(...args);
4763 + });
4764 + };
4765 + };
4766 + const flush = () => {
4767 + const originalQueue = queue;
4768 + queue = [];
4769 + if (originalQueue.length) {
4770 + scheduleFn(() => {
4771 + batchNotifyFn(() => {
4772 + originalQueue.forEach((callback) => {
4773 + notifyFn(callback);
4774 + });
4775 + });
4776 + });
4777 + }
4778 + };
4779 + const setNotifyFunction = (fn) => {
4780 + notifyFn = fn;
4781 + };
4782 + const setBatchNotifyFunction = (fn) => {
4783 + batchNotifyFn = fn;
4784 + };
4785 + return {
4786 + batch,
4787 + batchCalls,
4788 + schedule,
4789 + setNotifyFunction,
4790 + setBatchNotifyFunction,
4791 + setScheduler
4792 + };
4793 +}
4794 +var notifyManager = createNotifyManager();
4795 +// Annotate the CommonJS export names for ESM import in node:
4796 +0 && (0);
4797 +//# sourceMappingURL=notifyManager.cjs.map
4798 +
4799 +/***/ }),
4800 +
4801 +/***/ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs":
4802 +/*!***************************************************************************!*\
4803 + !*** ../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs ***!
4804 + \***************************************************************************/
4805 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4806 +
4807 +"use strict";
4808 +
4809 +var __defProp = Object.defineProperty;
4810 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4811 +var __getOwnPropNames = Object.getOwnPropertyNames;
4812 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4813 +var __export = (target, all) => {
4814 + for (var name in all)
4815 + __defProp(target, name, { get: all[name], enumerable: true });
4816 +};
4817 +var __copyProps = (to, from, except, desc) => {
4818 + if (from && typeof from === "object" || typeof from === "function") {
4819 + for (let key of __getOwnPropNames(from))
4820 + if (!__hasOwnProp.call(to, key) && key !== except)
4821 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4822 + }
4823 + return to;
4824 +};
4825 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4826 +
4827 +// src/onlineManager.ts
4828 +var onlineManager_exports = {};
4829 +__export(onlineManager_exports, {
4830 + OnlineManager: () => OnlineManager,
4831 + onlineManager: () => onlineManager
4832 +});
4833 +module.exports = __toCommonJS(onlineManager_exports);
4834 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4835 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4836 +var OnlineManager = class extends import_subscribable.Subscribable {
4837 + #online = true;
4838 + #cleanup;
4839 + #setup;
4840 + constructor() {
4841 + super();
4842 + this.#setup = (onOnline) => {
4843 + if (!import_utils.isServer && window.addEventListener) {
4844 + const onlineListener = () => onOnline(true);
4845 + const offlineListener = () => onOnline(false);
4846 + window.addEventListener("online", onlineListener, false);
4847 + window.addEventListener("offline", offlineListener, false);
4848 + return () => {
4849 + window.removeEventListener("online", onlineListener);
4850 + window.removeEventListener("offline", offlineListener);
4851 + };
4852 + }
4853 + return;
4854 + };
4855 + }
4856 + onSubscribe() {
4857 + if (!this.#cleanup) {
4858 + this.setEventListener(this.#setup);
4859 + }
4860 + }
4861 + onUnsubscribe() {
4862 + if (!this.hasListeners()) {
4863 + this.#cleanup?.();
4864 + this.#cleanup = void 0;
4865 + }
4866 + }
4867 + setEventListener(setup) {
4868 + this.#setup = setup;
4869 + this.#cleanup?.();
4870 + this.#cleanup = setup(this.setOnline.bind(this));
4871 + }
4872 + setOnline(online) {
4873 + const changed = this.#online !== online;
4874 + if (changed) {
4875 + this.#online = online;
4876 + this.listeners.forEach((listener) => {
4877 + listener(online);
4878 + });
4879 + }
4880 + }
4881 + isOnline() {
4882 + return this.#online;
4883 + }
4884 +};
4885 +var onlineManager = new OnlineManager();
4886 +// Annotate the CommonJS export names for ESM import in node:
4887 +0 && (0);
4888 +//# sourceMappingURL=onlineManager.cjs.map
4889 +
4890 +/***/ }),
4891 +
4892 +/***/ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs":
4893 +/*!*****************************************************************************!*\
4894 + !*** ../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs ***!
4895 + \*****************************************************************************/
4896 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4897 +
4898 +"use strict";
4899 +
4900 +var __defProp = Object.defineProperty;
4901 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4902 +var __getOwnPropNames = Object.getOwnPropertyNames;
4903 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4904 +var __export = (target, all) => {
4905 + for (var name in all)
4906 + __defProp(target, name, { get: all[name], enumerable: true });
4907 +};
4908 +var __copyProps = (to, from, except, desc) => {
4909 + if (from && typeof from === "object" || typeof from === "function") {
4910 + for (let key of __getOwnPropNames(from))
4911 + if (!__hasOwnProp.call(to, key) && key !== except)
4912 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4913 + }
4914 + return to;
4915 +};
4916 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4917 +
4918 +// src/queriesObserver.ts
4919 +var queriesObserver_exports = {};
4920 +__export(queriesObserver_exports, {
4921 + QueriesObserver: () => QueriesObserver
4922 +});
4923 +module.exports = __toCommonJS(queriesObserver_exports);
4924 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4925 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
4926 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4927 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4928 +function difference(array1, array2) {
4929 + return array1.filter((x) => !array2.includes(x));
4930 +}
4931 +function replaceAt(array, index, value) {
4932 + const copy = array.slice(0);
4933 + copy[index] = value;
4934 + return copy;
4935 +}
4936 +var QueriesObserver = class extends import_subscribable.Subscribable {
4937 + #client;
4938 + #result;
4939 + #queries;
4940 + #observers;
4941 + #combinedResult;
4942 + #lastCombine;
4943 + #lastResult;
4944 + constructor(client, queries, _options) {
4945 + super();
4946 + this.#client = client;
4947 + this.#queries = [];
4948 + this.#observers = [];
4949 + this.#result = [];
4950 + this.setQueries(queries);
4951 + }
4952 + onSubscribe() {
4953 + if (this.listeners.size === 1) {
4954 + this.#observers.forEach((observer) => {
4955 + observer.subscribe((result) => {
4956 + this.#onUpdate(observer, result);
4957 + });
4958 + });
4959 + }
4960 + }
4961 + onUnsubscribe() {
4962 + if (!this.listeners.size) {
4963 + this.destroy();
4964 + }
4965 + }
4966 + destroy() {
4967 + this.listeners = /* @__PURE__ */ new Set();
4968 + this.#observers.forEach((observer) => {
4969 + observer.destroy();
4970 + });
4971 + }
4972 + setQueries(queries, _options, notifyOptions) {
4973 + this.#queries = queries;
4974 + import_notifyManager.notifyManager.batch(() => {
4975 + const prevObservers = this.#observers;
4976 + const newObserverMatches = this.#findMatchingObservers(this.#queries);
4977 + newObserverMatches.forEach(
4978 + (match) => match.observer.setOptions(match.defaultedQueryOptions, notifyOptions)
4979 + );
4980 + const newObservers = newObserverMatches.map((match) => match.observer);
4981 + const newResult = newObservers.map(
4982 + (observer) => observer.getCurrentResult()
4983 + );
4984 + const hasIndexChange = newObservers.some(
4985 + (observer, index) => observer !== prevObservers[index]
4986 + );
4987 + if (prevObservers.length === newObservers.length && !hasIndexChange) {
4988 + return;
4989 + }
4990 + this.#observers = newObservers;
4991 + this.#result = newResult;
4992 + if (!this.hasListeners()) {
4993 + return;
4994 + }
4995 + difference(prevObservers, newObservers).forEach((observer) => {
4996 + observer.destroy();
4997 + });
4998 + difference(newObservers, prevObservers).forEach((observer) => {
4999 + observer.subscribe((result) => {
5000 + this.#onUpdate(observer, result);
5001 + });
5002 + });
5003 + this.#notify();
5004 + });
5005 + }
5006 + getCurrentResult() {
5007 + return this.#result;
5008 + }
5009 + getQueries() {
5010 + return this.#observers.map((observer) => observer.getCurrentQuery());
5011 + }
5012 + getObservers() {
5013 + return this.#observers;
5014 + }
5015 + getOptimisticResult(queries, combine) {
5016 + const matches = this.#findMatchingObservers(queries);
5017 + const result = matches.map(
5018 + (match) => match.observer.getOptimisticResult(match.defaultedQueryOptions)
5019 + );
5020 + return [
5021 + result,
5022 + (r) => {
5023 + return this.#combineResult(r ?? result, combine);
5024 + },
5025 + () => {
5026 + return matches.map((match, index) => {
5027 + const observerResult = result[index];
5028 + return !match.defaultedQueryOptions.notifyOnChangeProps ? match.observer.trackResult(observerResult, (accessedProp) => {
5029 + matches.forEach((m) => {
5030 + m.observer.trackProp(accessedProp);
5031 + });
5032 + }) : observerResult;
5033 + });
5034 + }
5035 + ];
5036 + }
5037 + #combineResult(input, combine) {
5038 + if (combine) {
5039 + if (!this.#combinedResult || this.#result !== this.#lastResult || combine !== this.#lastCombine) {
5040 + this.#lastCombine = combine;
5041 + this.#lastResult = this.#result;
5042 + this.#combinedResult = (0, import_utils.replaceEqualDeep)(
5043 + this.#combinedResult,
5044 + combine(input)
5045 + );
5046 + }
5047 + return this.#combinedResult;
5048 + }
5049 + return input;
5050 + }
5051 + #findMatchingObservers(queries) {
5052 + const prevObservers = this.#observers;
5053 + const prevObserversMap = new Map(
5054 + prevObservers.map((observer) => [observer.options.queryHash, observer])
5055 + );
5056 + const defaultedQueryOptions = queries.map(
5057 + (options) => this.#client.defaultQueryOptions(options)
5058 + );
5059 + const matchingObservers = defaultedQueryOptions.flatMap((defaultedOptions) => {
5060 + const match = prevObserversMap.get(defaultedOptions.queryHash);
5061 + if (match != null) {
5062 + return [{ defaultedQueryOptions: defaultedOptions, observer: match }];
5063 + }
5064 + return [];
5065 + });
5066 + const matchedQueryHashes = new Set(
5067 + matchingObservers.map((match) => match.defaultedQueryOptions.queryHash)
5068 + );
5069 + const unmatchedQueries = defaultedQueryOptions.filter(
5070 + (defaultedOptions) => !matchedQueryHashes.has(defaultedOptions.queryHash)
5071 + );
5072 + const getObserver = (options) => {
5073 + const defaultedOptions = this.#client.defaultQueryOptions(options);
5074 + const currentObserver = this.#observers.find(
5075 + (o) => o.options.queryHash === defaultedOptions.queryHash
5076 + );
5077 + return currentObserver ?? new import_queryObserver.QueryObserver(this.#client, defaultedOptions);
5078 + };
5079 + const newOrReusedObservers = unmatchedQueries.map((options) => {
5080 + return {
5081 + defaultedQueryOptions: options,
5082 + observer: getObserver(options)
5083 + };
5084 + });
5085 + const sortMatchesByOrderOfQueries = (a, b) => defaultedQueryOptions.indexOf(a.defaultedQueryOptions) - defaultedQueryOptions.indexOf(b.defaultedQueryOptions);
5086 + return matchingObservers.concat(newOrReusedObservers).sort(sortMatchesByOrderOfQueries);
5087 + }
5088 + #onUpdate(observer, result) {
5089 + const index = this.#observers.indexOf(observer);
5090 + if (index !== -1) {
5091 + this.#result = replaceAt(this.#result, index, result);
5092 + this.#notify();
5093 + }
5094 + }
5095 + #notify() {
5096 + import_notifyManager.notifyManager.batch(() => {
5097 + this.listeners.forEach((listener) => {
5098 + listener(this.#result);
5099 + });
5100 + });
5101 + }
5102 +};
5103 +// Annotate the CommonJS export names for ESM import in node:
5104 +0 && (0);
5105 +//# sourceMappingURL=queriesObserver.cjs.map
5106 +
5107 +/***/ }),
5108 +
5109 +/***/ "../node_modules/@tanstack/query-core/build/modern/query.cjs":
5110 +/*!*******************************************************************!*\
5111 + !*** ../node_modules/@tanstack/query-core/build/modern/query.cjs ***!
5112 + \*******************************************************************/
5113 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5114 +
5115 +"use strict";
5116 +
5117 +var __defProp = Object.defineProperty;
5118 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5119 +var __getOwnPropNames = Object.getOwnPropertyNames;
5120 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5121 +var __export = (target, all) => {
5122 + for (var name in all)
5123 + __defProp(target, name, { get: all[name], enumerable: true });
5124 +};
5125 +var __copyProps = (to, from, except, desc) => {
5126 + if (from && typeof from === "object" || typeof from === "function") {
5127 + for (let key of __getOwnPropNames(from))
5128 + if (!__hasOwnProp.call(to, key) && key !== except)
5129 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5130 + }
5131 + return to;
5132 +};
5133 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5134 +
5135 +// src/query.ts
5136 +var query_exports = {};
5137 +__export(query_exports, {
5138 + Query: () => Query,
5139 + fetchState: () => fetchState
5140 +});
5141 +module.exports = __toCommonJS(query_exports);
5142 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5143 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5144 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
5145 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
5146 +var Query = class extends import_removable.Removable {
5147 + #initialState;
5148 + #revertState;
5149 + #cache;
5150 + #retryer;
5151 + #defaultOptions;
5152 + #abortSignalConsumed;
5153 + constructor(config) {
5154 + super();
5155 + this.#abortSignalConsumed = false;
5156 + this.#defaultOptions = config.defaultOptions;
5157 + this.setOptions(config.options);
5158 + this.observers = [];
5159 + this.#cache = config.cache;
5160 + this.queryKey = config.queryKey;
5161 + this.queryHash = config.queryHash;
5162 + this.#initialState = config.state || getDefaultState(this.options);
5163 + this.state = this.#initialState;
5164 + this.scheduleGc();
5165 + }
5166 + get meta() {
5167 + return this.options.meta;
5168 + }
5169 + get promise() {
5170 + return this.#retryer?.promise;
5171 + }
5172 + setOptions(options) {
5173 + this.options = { ...this.#defaultOptions, ...options };
5174 + this.updateGcTime(this.options.gcTime);
5175 + }
5176 + optionalRemove() {
5177 + if (!this.observers.length && this.state.fetchStatus === "idle") {
5178 + this.#cache.remove(this);
5179 + }
5180 + }
5181 + setData(newData, options) {
5182 + const data = (0, import_utils.replaceData)(this.state.data, newData, this.options);
5183 + this.#dispatch({
5184 + data,
5185 + type: "success",
5186 + dataUpdatedAt: options?.updatedAt,
5187 + manual: options?.manual
5188 + });
5189 + return data;
5190 + }
5191 + setState(state, setStateOptions) {
5192 + this.#dispatch({ type: "setState", state, setStateOptions });
5193 + }
5194 + cancel(options) {
5195 + const promise = this.#retryer?.promise;
5196 + this.#retryer?.cancel(options);
5197 + return promise ? promise.then(import_utils.noop).catch(import_utils.noop) : Promise.resolve();
5198 + }
5199 + destroy() {
5200 + super.destroy();
5201 + this.cancel({ silent: true });
5202 + }
5203 + reset() {
5204 + this.destroy();
5205 + this.setState(this.#initialState);
5206 + }
5207 + isActive() {
5208 + return this.observers.some(
5209 + (observer) => (0, import_utils.resolveEnabled)(observer.options.enabled, this) !== false
5210 + );
5211 + }
5212 + isDisabled() {
5213 + return this.getObserversCount() > 0 && !this.isActive();
5214 + }
5215 + isStale() {
5216 + if (this.state.isInvalidated) {
5217 + return true;
5218 + }
5219 + if (this.getObserversCount() > 0) {
5220 + return this.observers.some(
5221 + (observer) => observer.getCurrentResult().isStale
5222 + );
5223 + }
5224 + return this.state.data === void 0;
5225 + }
5226 + isStaleByTime(staleTime = 0) {
5227 + return this.state.isInvalidated || this.state.data === void 0 || !(0, import_utils.timeUntilStale)(this.state.dataUpdatedAt, staleTime);
5228 + }
5229 + onFocus() {
5230 + const observer = this.observers.find((x) => x.shouldFetchOnWindowFocus());
5231 + observer?.refetch({ cancelRefetch: false });
5232 + this.#retryer?.continue();
5233 + }
5234 + onOnline() {
5235 + const observer = this.observers.find((x) => x.shouldFetchOnReconnect());
5236 + observer?.refetch({ cancelRefetch: false });
5237 + this.#retryer?.continue();
5238 + }
5239 + addObserver(observer) {
5240 + if (!this.observers.includes(observer)) {
5241 + this.observers.push(observer);
5242 + this.clearGcTimeout();
5243 + this.#cache.notify({ type: "observerAdded", query: this, observer });
5244 + }
5245 + }
5246 + removeObserver(observer) {
5247 + if (this.observers.includes(observer)) {
5248 + this.observers = this.observers.filter((x) => x !== observer);
5249 + if (!this.observers.length) {
5250 + if (this.#retryer) {
5251 + if (this.#abortSignalConsumed) {
5252 + this.#retryer.cancel({ revert: true });
5253 + } else {
5254 + this.#retryer.cancelRetry();
5255 + }
5256 + }
5257 + this.scheduleGc();
5258 + }
5259 + this.#cache.notify({ type: "observerRemoved", query: this, observer });
5260 + }
5261 + }
5262 + getObserversCount() {
5263 + return this.observers.length;
5264 + }
5265 + invalidate() {
5266 + if (!this.state.isInvalidated) {
5267 + this.#dispatch({ type: "invalidate" });
5268 + }
5269 + }
5270 + fetch(options, fetchOptions) {
5271 + if (this.state.fetchStatus !== "idle") {
5272 + if (this.state.data !== void 0 && fetchOptions?.cancelRefetch) {
5273 + this.cancel({ silent: true });
5274 + } else if (this.#retryer) {
5275 + this.#retryer.continueRetry();
5276 + return this.#retryer.promise;
5277 + }
5278 + }
5279 + if (options) {
5280 + this.setOptions(options);
5281 + }
5282 + if (!this.options.queryFn) {
5283 + const observer = this.observers.find((x) => x.options.queryFn);
5284 + if (observer) {
5285 + this.setOptions(observer.options);
5286 + }
5287 + }
5288 + if (true) {
5289 + if (!Array.isArray(this.options.queryKey)) {
5290 + console.error(
5291 + `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']`
5292 + );
5293 + }
5294 + }
5295 + const abortController = new AbortController();
5296 + const addSignalProperty = (object) => {
5297 + Object.defineProperty(object, "signal", {
5298 + enumerable: true,
5299 + get: () => {
5300 + this.#abortSignalConsumed = true;
5301 + return abortController.signal;
5302 + }
5303 + });
5304 + };
5305 + const fetchFn = () => {
5306 + const queryFn = (0, import_utils.ensureQueryFn)(this.options, fetchOptions);
5307 + const queryFnContext = {
5308 + queryKey: this.queryKey,
5309 + meta: this.meta
5310 + };
5311 + addSignalProperty(queryFnContext);
5312 + this.#abortSignalConsumed = false;
5313 + if (this.options.persister) {
5314 + return this.options.persister(
5315 + queryFn,
5316 + queryFnContext,
5317 + this
5318 + );
5319 + }
5320 + return queryFn(queryFnContext);
5321 + };
5322 + const context = {
5323 + fetchOptions,
5324 + options: this.options,
5325 + queryKey: this.queryKey,
5326 + state: this.state,
5327 + fetchFn
5328 + };
5329 + addSignalProperty(context);
5330 + this.options.behavior?.onFetch(
5331 + context,
5332 + this
5333 + );
5334 + this.#revertState = this.state;
5335 + if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== context.fetchOptions?.meta) {
5336 + this.#dispatch({ type: "fetch", meta: context.fetchOptions?.meta });
5337 + }
5338 + const onError = (error) => {
5339 + if (!((0, import_retryer.isCancelledError)(error) && error.silent)) {
5340 + this.#dispatch({
5341 + type: "error",
5342 + error
5343 + });
5344 + }
5345 + if (!(0, import_retryer.isCancelledError)(error)) {
5346 + this.#cache.config.onError?.(
5347 + error,
5348 + this
5349 + );
5350 + this.#cache.config.onSettled?.(
5351 + this.state.data,
5352 + error,
5353 + this
5354 + );
5355 + }
5356 + if (!this.isFetchingOptimistic) {
5357 + this.scheduleGc();
5358 + }
5359 + this.isFetchingOptimistic = false;
5360 + };
5361 + this.#retryer = (0, import_retryer.createRetryer)({
5362 + initialPromise: fetchOptions?.initialPromise,
5363 + fn: context.fetchFn,
5364 + abort: abortController.abort.bind(abortController),
5365 + onSuccess: (data) => {
5366 + if (data === void 0) {
5367 + if (true) {
5368 + console.error(
5369 + `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
5370 + );
5371 + }
5372 + onError(new Error(`${this.queryHash} data is undefined`));
5373 + return;
5374 + }
5375 + this.setData(data);
5376 + this.#cache.config.onSuccess?.(data, this);
5377 + this.#cache.config.onSettled?.(
5378 + data,
5379 + this.state.error,
5380 + this
5381 + );
5382 + if (!this.isFetchingOptimistic) {
5383 + this.scheduleGc();
5384 + }
5385 + this.isFetchingOptimistic = false;
5386 + },
5387 + onError,
5388 + onFail: (failureCount, error) => {
5389 + this.#dispatch({ type: "failed", failureCount, error });
5390 + },
5391 + onPause: () => {
5392 + this.#dispatch({ type: "pause" });
5393 + },
5394 + onContinue: () => {
5395 + this.#dispatch({ type: "continue" });
5396 + },
5397 + retry: context.options.retry,
5398 + retryDelay: context.options.retryDelay,
5399 + networkMode: context.options.networkMode,
5400 + canRun: () => true
5401 + });
5402 + return this.#retryer.start();
5403 + }
5404 + #dispatch(action) {
5405 + const reducer = (state) => {
5406 + switch (action.type) {
5407 + case "failed":
5408 + return {
5409 + ...state,
5410 + fetchFailureCount: action.failureCount,
5411 + fetchFailureReason: action.error
5412 + };
5413 + case "pause":
5414 + return {
5415 + ...state,
5416 + fetchStatus: "paused"
5417 + };
5418 + case "continue":
5419 + return {
5420 + ...state,
5421 + fetchStatus: "fetching"
5422 + };
5423 + case "fetch":
5424 + return {
5425 + ...state,
5426 + ...fetchState(state.data, this.options),
5427 + fetchMeta: action.meta ?? null
5428 + };
5429 + case "success":
5430 + return {
5431 + ...state,
5432 + data: action.data,
5433 + dataUpdateCount: state.dataUpdateCount + 1,
5434 + dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),
5435 + error: null,
5436 + isInvalidated: false,
5437 + status: "success",
5438 + ...!action.manual && {
5439 + fetchStatus: "idle",
5440 + fetchFailureCount: 0,
5441 + fetchFailureReason: null
5442 + }
5443 + };
5444 + case "error":
5445 + const error = action.error;
5446 + if ((0, import_retryer.isCancelledError)(error) && error.revert && this.#revertState) {
5447 + return { ...this.#revertState, fetchStatus: "idle" };
5448 + }
5449 + return {
5450 + ...state,
5451 + error,
5452 + errorUpdateCount: state.errorUpdateCount + 1,
5453 + errorUpdatedAt: Date.now(),
5454 + fetchFailureCount: state.fetchFailureCount + 1,
5455 + fetchFailureReason: error,
5456 + fetchStatus: "idle",
5457 + status: "error"
5458 + };
5459 + case "invalidate":
5460 + return {
5461 + ...state,
5462 + isInvalidated: true
5463 + };
5464 + case "setState":
5465 + return {
5466 + ...state,
5467 + ...action.state
5468 + };
5469 + }
5470 + };
5471 + this.state = reducer(this.state);
5472 + import_notifyManager.notifyManager.batch(() => {
5473 + this.observers.forEach((observer) => {
5474 + observer.onQueryUpdate();
5475 + });
5476 + this.#cache.notify({ query: this, type: "updated", action });
5477 + });
5478 + }
5479 +};
5480 +function fetchState(data, options) {
5481 + return {
5482 + fetchFailureCount: 0,
5483 + fetchFailureReason: null,
5484 + fetchStatus: (0, import_retryer.canFetch)(options.networkMode) ? "fetching" : "paused",
5485 + ...data === void 0 && {
5486 + error: null,
5487 + status: "pending"
5488 + }
5489 + };
5490 +}
5491 +function getDefaultState(options) {
5492 + const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
5493 + const hasData = data !== void 0;
5494 + const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === "function" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
5495 + return {
5496 + data,
5497 + dataUpdateCount: 0,
5498 + dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,
5499 + error: null,
5500 + errorUpdateCount: 0,
5501 + errorUpdatedAt: 0,
5502 + fetchFailureCount: 0,
5503 + fetchFailureReason: null,
5504 + fetchMeta: null,
5505 + isInvalidated: false,
5506 + status: hasData ? "success" : "pending",
5507 + fetchStatus: "idle"
5508 + };
5509 +}
5510 +// Annotate the CommonJS export names for ESM import in node:
5511 +0 && (0);
5512 +//# sourceMappingURL=query.cjs.map
5513 +
5514 +/***/ }),
5515 +
5516 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs":
5517 +/*!************************************************************************!*\
5518 + !*** ../node_modules/@tanstack/query-core/build/modern/queryCache.cjs ***!
5519 + \************************************************************************/
5520 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5521 +
5522 +"use strict";
5523 +
5524 +var __defProp = Object.defineProperty;
5525 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5526 +var __getOwnPropNames = Object.getOwnPropertyNames;
5527 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5528 +var __export = (target, all) => {
5529 + for (var name in all)
5530 + __defProp(target, name, { get: all[name], enumerable: true });
5531 +};
5532 +var __copyProps = (to, from, except, desc) => {
5533 + if (from && typeof from === "object" || typeof from === "function") {
5534 + for (let key of __getOwnPropNames(from))
5535 + if (!__hasOwnProp.call(to, key) && key !== except)
5536 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5537 + }
5538 + return to;
5539 +};
5540 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5541 +
5542 +// src/queryCache.ts
5543 +var queryCache_exports = {};
5544 +__export(queryCache_exports, {
5545 + QueryCache: () => QueryCache
5546 +});
5547 +module.exports = __toCommonJS(queryCache_exports);
5548 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5549 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
5550 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5551 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
5552 +var QueryCache = class extends import_subscribable.Subscribable {
5553 + constructor(config = {}) {
5554 + super();
5555 + this.config = config;
5556 + this.#queries = /* @__PURE__ */ new Map();
5557 + }
5558 + #queries;
5559 + build(client, options, state) {
5560 + const queryKey = options.queryKey;
5561 + const queryHash = options.queryHash ?? (0, import_utils.hashQueryKeyByOptions)(queryKey, options);
5562 + let query = this.get(queryHash);
5563 + if (!query) {
5564 + query = new import_query.Query({
5565 + cache: this,
5566 + queryKey,
5567 + queryHash,
5568 + options: client.defaultQueryOptions(options),
5569 + state,
5570 + defaultOptions: client.getQueryDefaults(queryKey)
5571 + });
5572 + this.add(query);
5573 + }
5574 + return query;
5575 + }
5576 + add(query) {
5577 + if (!this.#queries.has(query.queryHash)) {
5578 + this.#queries.set(query.queryHash, query);
5579 + this.notify({
5580 + type: "added",
5581 + query
5582 + });
5583 + }
5584 + }
5585 + remove(query) {
5586 + const queryInMap = this.#queries.get(query.queryHash);
5587 + if (queryInMap) {
5588 + query.destroy();
5589 + if (queryInMap === query) {
5590 + this.#queries.delete(query.queryHash);
5591 + }
5592 + this.notify({ type: "removed", query });
5593 + }
5594 + }
5595 + clear() {
5596 + import_notifyManager.notifyManager.batch(() => {
5597 + this.getAll().forEach((query) => {
5598 + this.remove(query);
5599 + });
5600 + });
5601 + }
5602 + get(queryHash) {
5603 + return this.#queries.get(queryHash);
5604 + }
5605 + getAll() {
5606 + return [...this.#queries.values()];
5607 + }
5608 + find(filters) {
5609 + const defaultedFilters = { exact: true, ...filters };
5610 + return this.getAll().find(
5611 + (query) => (0, import_utils.matchQuery)(defaultedFilters, query)
5612 + );
5613 + }
5614 + findAll(filters = {}) {
5615 + const queries = this.getAll();
5616 + return Object.keys(filters).length > 0 ? queries.filter((query) => (0, import_utils.matchQuery)(filters, query)) : queries;
5617 + }
5618 + notify(event) {
5619 + import_notifyManager.notifyManager.batch(() => {
5620 + this.listeners.forEach((listener) => {
5621 + listener(event);
5622 + });
5623 + });
5624 + }
5625 + onFocus() {
5626 + import_notifyManager.notifyManager.batch(() => {
5627 + this.getAll().forEach((query) => {
5628 + query.onFocus();
5629 + });
5630 + });
5631 + }
5632 + onOnline() {
5633 + import_notifyManager.notifyManager.batch(() => {
5634 + this.getAll().forEach((query) => {
5635 + query.onOnline();
5636 + });
5637 + });
5638 + }
5639 +};
5640 +// Annotate the CommonJS export names for ESM import in node:
5641 +0 && (0);
5642 +//# sourceMappingURL=queryCache.cjs.map
5643 +
5644 +/***/ }),
5645 +
5646 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs":
5647 +/*!*************************************************************************!*\
5648 + !*** ../node_modules/@tanstack/query-core/build/modern/queryClient.cjs ***!
5649 + \*************************************************************************/
5650 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5651 +
5652 +"use strict";
5653 +
5654 +var __defProp = Object.defineProperty;
5655 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5656 +var __getOwnPropNames = Object.getOwnPropertyNames;
5657 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5658 +var __export = (target, all) => {
5659 + for (var name in all)
5660 + __defProp(target, name, { get: all[name], enumerable: true });
5661 +};
5662 +var __copyProps = (to, from, except, desc) => {
5663 + if (from && typeof from === "object" || typeof from === "function") {
5664 + for (let key of __getOwnPropNames(from))
5665 + if (!__hasOwnProp.call(to, key) && key !== except)
5666 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5667 + }
5668 + return to;
5669 +};
5670 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5671 +
5672 +// src/queryClient.ts
5673 +var queryClient_exports = {};
5674 +__export(queryClient_exports, {
5675 + QueryClient: () => QueryClient
5676 +});
5677 +module.exports = __toCommonJS(queryClient_exports);
5678 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5679 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
5680 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
5681 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
5682 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
5683 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5684 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
5685 +var QueryClient = class {
5686 + #queryCache;
5687 + #mutationCache;
5688 + #defaultOptions;
5689 + #queryDefaults;
5690 + #mutationDefaults;
5691 + #mountCount;
5692 + #unsubscribeFocus;
5693 + #unsubscribeOnline;
5694 + constructor(config = {}) {
5695 + this.#queryCache = config.queryCache || new import_queryCache.QueryCache();
5696 + this.#mutationCache = config.mutationCache || new import_mutationCache.MutationCache();
5697 + this.#defaultOptions = config.defaultOptions || {};
5698 + this.#queryDefaults = /* @__PURE__ */ new Map();
5699 + this.#mutationDefaults = /* @__PURE__ */ new Map();
5700 + this.#mountCount = 0;
5701 + }
5702 + mount() {
5703 + this.#mountCount++;
5704 + if (this.#mountCount !== 1)
5705 + return;
5706 + this.#unsubscribeFocus = import_focusManager.focusManager.subscribe(async (focused) => {
5707 + if (focused) {
5708 + await this.resumePausedMutations();
5709 + this.#queryCache.onFocus();
5710 + }
5711 + });
5712 + this.#unsubscribeOnline = import_onlineManager.onlineManager.subscribe(async (online) => {
5713 + if (online) {
5714 + await this.resumePausedMutations();
5715 + this.#queryCache.onOnline();
5716 + }
5717 + });
5718 + }
5719 + unmount() {
5720 + this.#mountCount--;
5721 + if (this.#mountCount !== 0)
5722 + return;
5723 + this.#unsubscribeFocus?.();
5724 + this.#unsubscribeFocus = void 0;
5725 + this.#unsubscribeOnline?.();
5726 + this.#unsubscribeOnline = void 0;
5727 + }
5728 + isFetching(filters) {
5729 + return this.#queryCache.findAll({ ...filters, fetchStatus: "fetching" }).length;
5730 + }
5731 + isMutating(filters) {
5732 + return this.#mutationCache.findAll({ ...filters, status: "pending" }).length;
5733 + }
5734 + getQueryData(queryKey) {
5735 + const options = this.defaultQueryOptions({ queryKey });
5736 + return this.#queryCache.get(options.queryHash)?.state.data;
5737 + }
5738 + ensureQueryData(options) {
5739 + const cachedData = this.getQueryData(options.queryKey);
5740 + if (cachedData === void 0)
5741 + return this.fetchQuery(options);
5742 + else {
5743 + const defaultedOptions = this.defaultQueryOptions(options);
5744 + const query = this.#queryCache.build(this, defaultedOptions);
5745 + if (options.revalidateIfStale && query.isStaleByTime((0, import_utils.resolveStaleTime)(defaultedOptions.staleTime, query))) {
5746 + void this.prefetchQuery(defaultedOptions);
5747 + }
5748 + return Promise.resolve(cachedData);
5749 + }
5750 + }
5751 + getQueriesData(filters) {
5752 + return this.#queryCache.findAll(filters).map(({ queryKey, state }) => {
5753 + const data = state.data;
5754 + return [queryKey, data];
5755 + });
5756 + }
5757 + setQueryData(queryKey, updater, options) {
5758 + const defaultedOptions = this.defaultQueryOptions({ queryKey });
5759 + const query = this.#queryCache.get(
5760 + defaultedOptions.queryHash
5761 + );
5762 + const prevData = query?.state.data;
5763 + const data = (0, import_utils.functionalUpdate)(updater, prevData);
5764 + if (data === void 0) {
5765 + return void 0;
5766 + }
5767 + return this.#queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true });
5768 + }
5769 + setQueriesData(filters, updater, options) {
5770 + return import_notifyManager.notifyManager.batch(
5771 + () => this.#queryCache.findAll(filters).map(({ queryKey }) => [
5772 + queryKey,
5773 + this.setQueryData(queryKey, updater, options)
5774 + ])
5775 + );
5776 + }
5777 + getQueryState(queryKey) {
5778 + const options = this.defaultQueryOptions({ queryKey });
5779 + return this.#queryCache.get(options.queryHash)?.state;
5780 + }
5781 + removeQueries(filters) {
5782 + const queryCache = this.#queryCache;
5783 + import_notifyManager.notifyManager.batch(() => {
5784 + queryCache.findAll(filters).forEach((query) => {
5785 + queryCache.remove(query);
5786 + });
5787 + });
5788 + }
5789 + resetQueries(filters, options) {
5790 + const queryCache = this.#queryCache;
5791 + const refetchFilters = {
5792 + type: "active",
5793 + ...filters
5794 + };
5795 + return import_notifyManager.notifyManager.batch(() => {
5796 + queryCache.findAll(filters).forEach((query) => {
5797 + query.reset();
5798 + });
5799 + return this.refetchQueries(refetchFilters, options);
5800 + });
5801 + }
5802 + cancelQueries(filters = {}, cancelOptions = {}) {
5803 + const defaultedCancelOptions = { revert: true, ...cancelOptions };
5804 + const promises = import_notifyManager.notifyManager.batch(
5805 + () => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
5806 + );
5807 + return Promise.all(promises).then(import_utils.noop).catch(import_utils.noop);
5808 + }
5809 + invalidateQueries(filters = {}, options = {}) {
5810 + return import_notifyManager.notifyManager.batch(() => {
5811 + this.#queryCache.findAll(filters).forEach((query) => {
5812 + query.invalidate();
5813 + });
5814 + if (filters.refetchType === "none") {
5815 + return Promise.resolve();
5816 + }
5817 + const refetchFilters = {
5818 + ...filters,
5819 + type: filters.refetchType ?? filters.type ?? "active"
5820 + };
5821 + return this.refetchQueries(refetchFilters, options);
5822 + });
5823 + }
5824 + refetchQueries(filters = {}, options) {
5825 + const fetchOptions = {
5826 + ...options,
5827 + cancelRefetch: options?.cancelRefetch ?? true
5828 + };
5829 + const promises = import_notifyManager.notifyManager.batch(
5830 + () => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
5831 + let promise = query.fetch(void 0, fetchOptions);
5832 + if (!fetchOptions.throwOnError) {
5833 + promise = promise.catch(import_utils.noop);
5834 + }
5835 + return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
5836 + })
5837 + );
5838 + return Promise.all(promises).then(import_utils.noop);
5839 + }
5840 + fetchQuery(options) {
5841 + const defaultedOptions = this.defaultQueryOptions(options);
5842 + if (defaultedOptions.retry === void 0) {
5843 + defaultedOptions.retry = false;
5844 + }
5845 + const query = this.#queryCache.build(this, defaultedOptions);
5846 + return query.isStaleByTime(
5847 + (0, import_utils.resolveStaleTime)(defaultedOptions.staleTime, query)
5848 + ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
5849 + }
5850 + prefetchQuery(options) {
5851 + return this.fetchQuery(options).then(import_utils.noop).catch(import_utils.noop);
5852 + }
5853 + fetchInfiniteQuery(options) {
5854 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)(options.pages);
5855 + return this.fetchQuery(options);
5856 + }
5857 + prefetchInfiniteQuery(options) {
5858 + return this.fetchInfiniteQuery(options).then(import_utils.noop).catch(import_utils.noop);
5859 + }
5860 + resumePausedMutations() {
5861 + if (import_onlineManager.onlineManager.isOnline()) {
5862 + return this.#mutationCache.resumePausedMutations();
5863 + }
5864 + return Promise.resolve();
5865 + }
5866 + getQueryCache() {
5867 + return this.#queryCache;
5868 + }
5869 + getMutationCache() {
5870 + return this.#mutationCache;
5871 + }
5872 + getDefaultOptions() {
5873 + return this.#defaultOptions;
5874 + }
5875 + setDefaultOptions(options) {
5876 + this.#defaultOptions = options;
5877 + }
5878 + setQueryDefaults(queryKey, options) {
5879 + this.#queryDefaults.set((0, import_utils.hashKey)(queryKey), {
5880 + queryKey,
5881 + defaultOptions: options
5882 + });
5883 + }
5884 + getQueryDefaults(queryKey) {
5885 + const defaults = [...this.#queryDefaults.values()];
5886 + let result = {};
5887 + defaults.forEach((queryDefault) => {
5888 + if ((0, import_utils.partialMatchKey)(queryKey, queryDefault.queryKey)) {
5889 + result = { ...result, ...queryDefault.defaultOptions };
5890 + }
5891 + });
5892 + return result;
5893 + }
5894 + setMutationDefaults(mutationKey, options) {
5895 + this.#mutationDefaults.set((0, import_utils.hashKey)(mutationKey), {
5896 + mutationKey,
5897 + defaultOptions: options
5898 + });
5899 + }
5900 + getMutationDefaults(mutationKey) {
5901 + const defaults = [...this.#mutationDefaults.values()];
5902 + let result = {};
5903 + defaults.forEach((queryDefault) => {
5904 + if ((0, import_utils.partialMatchKey)(mutationKey, queryDefault.mutationKey)) {
5905 + result = { ...result, ...queryDefault.defaultOptions };
5906 + }
5907 + });
5908 + return result;
5909 + }
5910 + defaultQueryOptions(options) {
5911 + if (options._defaulted) {
5912 + return options;
5913 + }
5914 + const defaultedOptions = {
5915 + ...this.#defaultOptions.queries,
5916 + ...this.getQueryDefaults(options.queryKey),
5917 + ...options,
5918 + _defaulted: true
5919 + };
5920 + if (!defaultedOptions.queryHash) {
5921 + defaultedOptions.queryHash = (0, import_utils.hashQueryKeyByOptions)(
5922 + defaultedOptions.queryKey,
5923 + defaultedOptions
5924 + );
5925 + }
5926 + if (defaultedOptions.refetchOnReconnect === void 0) {
5927 + defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
5928 + }
5929 + if (defaultedOptions.throwOnError === void 0) {
5930 + defaultedOptions.throwOnError = !!defaultedOptions.suspense;
5931 + }
5932 + if (!defaultedOptions.networkMode && defaultedOptions.persister) {
5933 + defaultedOptions.networkMode = "offlineFirst";
5934 + }
5935 + if (defaultedOptions.enabled !== true && defaultedOptions.queryFn === import_utils.skipToken) {
5936 + defaultedOptions.enabled = false;
5937 + }
5938 + return defaultedOptions;
5939 + }
5940 + defaultMutationOptions(options) {
5941 + if (options?._defaulted) {
5942 + return options;
5943 + }
5944 + return {
5945 + ...this.#defaultOptions.mutations,
5946 + ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),
5947 + ...options,
5948 + _defaulted: true
5949 + };
5950 + }
5951 + clear() {
5952 + this.#queryCache.clear();
5953 + this.#mutationCache.clear();
5954 + }
5955 +};
5956 +// Annotate the CommonJS export names for ESM import in node:
5957 +0 && (0);
5958 +//# sourceMappingURL=queryClient.cjs.map
5959 +
5960 +/***/ }),
5961 +
5962 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs":
5963 +/*!***************************************************************************!*\
5964 + !*** ../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs ***!
5965 + \***************************************************************************/
5966 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5967 +
5968 +"use strict";
5969 +
5970 +var __defProp = Object.defineProperty;
5971 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5972 +var __getOwnPropNames = Object.getOwnPropertyNames;
5973 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5974 +var __export = (target, all) => {
5975 + for (var name in all)
5976 + __defProp(target, name, { get: all[name], enumerable: true });
5977 +};
5978 +var __copyProps = (to, from, except, desc) => {
5979 + if (from && typeof from === "object" || typeof from === "function") {
5980 + for (let key of __getOwnPropNames(from))
5981 + if (!__hasOwnProp.call(to, key) && key !== except)
5982 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5983 + }
5984 + return to;
5985 +};
5986 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5987 +
5988 +// src/queryObserver.ts
5989 +var queryObserver_exports = {};
5990 +__export(queryObserver_exports, {
5991 + QueryObserver: () => QueryObserver
5992 +});
5993 +module.exports = __toCommonJS(queryObserver_exports);
5994 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5995 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5996 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
5997 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
5998 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
5999 +var QueryObserver = class extends import_subscribable.Subscribable {
6000 + constructor(client, options) {
6001 + super();
6002 + this.options = options;
6003 + this.#client = client;
6004 + this.#selectError = null;
6005 + this.bindMethods();
6006 + this.setOptions(options);
6007 + }
6008 + #client;
6009 + #currentQuery = void 0;
6010 + #currentQueryInitialState = void 0;
6011 + #currentResult = void 0;
6012 + #currentResultState;
6013 + #currentResultOptions;
6014 + #selectError;
6015 + #selectFn;
6016 + #selectResult;
6017 + // This property keeps track of the last query with defined data.
6018 + // It will be used to pass the previous data and query to the placeholder function between renders.
6019 + #lastQueryWithDefinedData;
6020 + #staleTimeoutId;
6021 + #refetchIntervalId;
6022 + #currentRefetchInterval;
6023 + #trackedProps = /* @__PURE__ */ new Set();
6024 + bindMethods() {
6025 + this.refetch = this.refetch.bind(this);
6026 + }
6027 + onSubscribe() {
6028 + if (this.listeners.size === 1) {
6029 + this.#currentQuery.addObserver(this);
6030 + if (shouldFetchOnMount(this.#currentQuery, this.options)) {
6031 + this.#executeFetch();
6032 + } else {
6033 + this.updateResult();
6034 + }
6035 + this.#updateTimers();
6036 + }
6037 + }
6038 + onUnsubscribe() {
6039 + if (!this.hasListeners()) {
6040 + this.destroy();
6041 + }
6042 + }
6043 + shouldFetchOnReconnect() {
6044 + return shouldFetchOn(
6045 + this.#currentQuery,
6046 + this.options,
6047 + this.options.refetchOnReconnect
6048 + );
6049 + }
6050 + shouldFetchOnWindowFocus() {
6051 + return shouldFetchOn(
6052 + this.#currentQuery,
6053 + this.options,
6054 + this.options.refetchOnWindowFocus
6055 + );
6056 + }
6057 + destroy() {
6058 + this.listeners = /* @__PURE__ */ new Set();
6059 + this.#clearStaleTimeout();
6060 + this.#clearRefetchInterval();
6061 + this.#currentQuery.removeObserver(this);
6062 + }
6063 + setOptions(options, notifyOptions) {
6064 + const prevOptions = this.options;
6065 + const prevQuery = this.#currentQuery;
6066 + this.options = this.#client.defaultQueryOptions(options);
6067 + if (this.options.enabled !== void 0 && typeof this.options.enabled !== "boolean" && typeof this.options.enabled !== "function" && typeof (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) !== "boolean") {
6068 + throw new Error(
6069 + "Expected enabled to be a boolean or a callback that returns a boolean"
6070 + );
6071 + }
6072 + this.#updateQuery();
6073 + this.#currentQuery.setOptions(this.options);
6074 + if (prevOptions._defaulted && !(0, import_utils.shallowEqualObjects)(this.options, prevOptions)) {
6075 + this.#client.getQueryCache().notify({
6076 + type: "observerOptionsUpdated",
6077 + query: this.#currentQuery,
6078 + observer: this
6079 + });
6080 + }
6081 + const mounted = this.hasListeners();
6082 + if (mounted && shouldFetchOptionally(
6083 + this.#currentQuery,
6084 + prevQuery,
6085 + this.options,
6086 + prevOptions
6087 + )) {
6088 + this.#executeFetch();
6089 + }
6090 + this.updateResult(notifyOptions);
6091 + if (mounted && (this.#currentQuery !== prevQuery || (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) !== (0, import_utils.resolveEnabled)(prevOptions.enabled, this.#currentQuery) || (0, import_utils.resolveStaleTime)(this.options.staleTime, this.#currentQuery) !== (0, import_utils.resolveStaleTime)(prevOptions.staleTime, this.#currentQuery))) {
6092 + this.#updateStaleTimeout();
6093 + }
6094 + const nextRefetchInterval = this.#computeRefetchInterval();
6095 + if (mounted && (this.#currentQuery !== prevQuery || (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) !== (0, import_utils.resolveEnabled)(prevOptions.enabled, this.#currentQuery) || nextRefetchInterval !== this.#currentRefetchInterval)) {
6096 + this.#updateRefetchInterval(nextRefetchInterval);
6097 + }
6098 + }
6099 + getOptimisticResult(options) {
6100 + const query = this.#client.getQueryCache().build(this.#client, options);
6101 + const result = this.createResult(query, options);
6102 + if (shouldAssignObserverCurrentProperties(this, result)) {
6103 + this.#currentResult = result;
6104 + this.#currentResultOptions = this.options;
6105 + this.#currentResultState = this.#currentQuery.state;
6106 + }
6107 + return result;
6108 + }
6109 + getCurrentResult() {
6110 + return this.#currentResult;
6111 + }
6112 + trackResult(result, onPropTracked) {
6113 + const trackedResult = {};
6114 + Object.keys(result).forEach((key) => {
6115 + Object.defineProperty(trackedResult, key, {
6116 + configurable: false,
6117 + enumerable: true,
6118 + get: () => {
6119 + this.trackProp(key);
6120 + onPropTracked?.(key);
6121 + return result[key];
6122 + }
6123 + });
6124 + });
6125 + return trackedResult;
6126 + }
6127 + trackProp(key) {
6128 + this.#trackedProps.add(key);
6129 + }
6130 + getCurrentQuery() {
6131 + return this.#currentQuery;
6132 + }
6133 + refetch({ ...options } = {}) {
6134 + return this.fetch({
6135 + ...options
6136 + });
6137 + }
6138 + fetchOptimistic(options) {
6139 + const defaultedOptions = this.#client.defaultQueryOptions(options);
6140 + const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);
6141 + query.isFetchingOptimistic = true;
6142 + return query.fetch().then(() => this.createResult(query, defaultedOptions));
6143 + }
6144 + fetch(fetchOptions) {
6145 + return this.#executeFetch({
6146 + ...fetchOptions,
6147 + cancelRefetch: fetchOptions.cancelRefetch ?? true
6148 + }).then(() => {
6149 + this.updateResult();
6150 + return this.#currentResult;
6151 + });
6152 + }
6153 + #executeFetch(fetchOptions) {
6154 + this.#updateQuery();
6155 + let promise = this.#currentQuery.fetch(
6156 + this.options,
6157 + fetchOptions
6158 + );
6159 + if (!fetchOptions?.throwOnError) {
6160 + promise = promise.catch(import_utils.noop);
6161 + }
6162 + return promise;
6163 + }
6164 + #updateStaleTimeout() {
6165 + this.#clearStaleTimeout();
6166 + const staleTime = (0, import_utils.resolveStaleTime)(
6167 + this.options.staleTime,
6168 + this.#currentQuery
6169 + );
6170 + if (import_utils.isServer || this.#currentResult.isStale || !(0, import_utils.isValidTimeout)(staleTime)) {
6171 + return;
6172 + }
6173 + const time = (0, import_utils.timeUntilStale)(this.#currentResult.dataUpdatedAt, staleTime);
6174 + const timeout = time + 1;
6175 + this.#staleTimeoutId = setTimeout(() => {
6176 + if (!this.#currentResult.isStale) {
6177 + this.updateResult();
6178 + }
6179 + }, timeout);
6180 + }
6181 + #computeRefetchInterval() {
6182 + return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;
6183 + }
6184 + #updateRefetchInterval(nextInterval) {
6185 + this.#clearRefetchInterval();
6186 + this.#currentRefetchInterval = nextInterval;
6187 + if (import_utils.isServer || (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) === false || !(0, import_utils.isValidTimeout)(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) {
6188 + return;
6189 + }
6190 + this.#refetchIntervalId = setInterval(() => {
6191 + if (this.options.refetchIntervalInBackground || import_focusManager.focusManager.isFocused()) {
6192 + this.#executeFetch();
6193 + }
6194 + }, this.#currentRefetchInterval);
6195 + }
6196 + #updateTimers() {
6197 + this.#updateStaleTimeout();
6198 + this.#updateRefetchInterval(this.#computeRefetchInterval());
6199 + }
6200 + #clearStaleTimeout() {
6201 + if (this.#staleTimeoutId) {
6202 + clearTimeout(this.#staleTimeoutId);
6203 + this.#staleTimeoutId = void 0;
6204 + }
6205 + }
6206 + #clearRefetchInterval() {
6207 + if (this.#refetchIntervalId) {
6208 + clearInterval(this.#refetchIntervalId);
6209 + this.#refetchIntervalId = void 0;
6210 + }
6211 + }
6212 + createResult(query, options) {
6213 + const prevQuery = this.#currentQuery;
6214 + const prevOptions = this.options;
6215 + const prevResult = this.#currentResult;
6216 + const prevResultState = this.#currentResultState;
6217 + const prevResultOptions = this.#currentResultOptions;
6218 + const queryChange = query !== prevQuery;
6219 + const queryInitialState = queryChange ? query.state : this.#currentQueryInitialState;
6220 + const { state } = query;
6221 + let newState = { ...state };
6222 + let isPlaceholderData = false;
6223 + let data;
6224 + if (options._optimisticResults) {
6225 + const mounted = this.hasListeners();
6226 + const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
6227 + const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
6228 + if (fetchOnMount || fetchOptionally) {
6229 + newState = {
6230 + ...newState,
6231 + ...(0, import_query.fetchState)(state.data, query.options)
6232 + };
6233 + }
6234 + if (options._optimisticResults === "isRestoring") {
6235 + newState.fetchStatus = "idle";
6236 + }
6237 + }
6238 + let { error, errorUpdatedAt, status } = newState;
6239 + if (options.select && newState.data !== void 0) {
6240 + if (prevResult && newState.data === prevResultState?.data && options.select === this.#selectFn) {
6241 + data = this.#selectResult;
6242 + } else {
6243 + try {
6244 + this.#selectFn = options.select;
6245 + data = options.select(newState.data);
6246 + data = (0, import_utils.replaceData)(prevResult?.data, data, options);
6247 + this.#selectResult = data;
6248 + this.#selectError = null;
6249 + } catch (selectError) {
6250 + this.#selectError = selectError;
6251 + }
6252 + }
6253 + } else {
6254 + data = newState.data;
6255 + }
6256 + if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
6257 + let placeholderData;
6258 + if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {
6259 + placeholderData = prevResult.data;
6260 + } else {
6261 + placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
6262 + this.#lastQueryWithDefinedData?.state.data,
6263 + this.#lastQueryWithDefinedData
6264 + ) : options.placeholderData;
6265 + if (options.select && placeholderData !== void 0) {
6266 + try {
6267 + placeholderData = options.select(placeholderData);
6268 + this.#selectError = null;
6269 + } catch (selectError) {
6270 + this.#selectError = selectError;
6271 + }
6272 + }
6273 + }
6274 + if (placeholderData !== void 0) {
6275 + status = "success";
6276 + data = (0, import_utils.replaceData)(
6277 + prevResult?.data,
6278 + placeholderData,
6279 + options
6280 + );
6281 + isPlaceholderData = true;
6282 + }
6283 + }
6284 + if (this.#selectError) {
6285 + error = this.#selectError;
6286 + data = this.#selectResult;
6287 + errorUpdatedAt = Date.now();
6288 + status = "error";
6289 + }
6290 + const isFetching = newState.fetchStatus === "fetching";
6291 + const isPending = status === "pending";
6292 + const isError = status === "error";
6293 + const isLoading = isPending && isFetching;
6294 + const hasData = data !== void 0;
6295 + const result = {
6296 + status,
6297 + fetchStatus: newState.fetchStatus,
6298 + isPending,
6299 + isSuccess: status === "success",
6300 + isError,
6301 + isInitialLoading: isLoading,
6302 + isLoading,
6303 + data,
6304 + dataUpdatedAt: newState.dataUpdatedAt,
6305 + error,
6306 + errorUpdatedAt,
6307 + failureCount: newState.fetchFailureCount,
6308 + failureReason: newState.fetchFailureReason,
6309 + errorUpdateCount: newState.errorUpdateCount,
6310 + isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,
6311 + isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,
6312 + isFetching,
6313 + isRefetching: isFetching && !isPending,
6314 + isLoadingError: isError && !hasData,
6315 + isPaused: newState.fetchStatus === "paused",
6316 + isPlaceholderData,
6317 + isRefetchError: isError && hasData,
6318 + isStale: isStale(query, options),
6319 + refetch: this.refetch
6320 + };
6321 + return result;
6322 + }
6323 + updateResult(notifyOptions) {
6324 + const prevResult = this.#currentResult;
6325 + const nextResult = this.createResult(this.#currentQuery, this.options);
6326 + this.#currentResultState = this.#currentQuery.state;
6327 + this.#currentResultOptions = this.options;
6328 + if (this.#currentResultState.data !== void 0) {
6329 + this.#lastQueryWithDefinedData = this.#currentQuery;
6330 + }
6331 + if ((0, import_utils.shallowEqualObjects)(nextResult, prevResult)) {
6332 + return;
6333 + }
6334 + this.#currentResult = nextResult;
6335 + const defaultNotifyOptions = {};
6336 + const shouldNotifyListeners = () => {
6337 + if (!prevResult) {
6338 + return true;
6339 + }
6340 + const { notifyOnChangeProps } = this.options;
6341 + const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
6342 + if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !this.#trackedProps.size) {
6343 + return true;
6344 + }
6345 + const includedProps = new Set(
6346 + notifyOnChangePropsValue ?? this.#trackedProps
6347 + );
6348 + if (this.options.throwOnError) {
6349 + includedProps.add("error");
6350 + }
6351 + return Object.keys(this.#currentResult).some((key) => {
6352 + const typedKey = key;
6353 + const changed = this.#currentResult[typedKey] !== prevResult[typedKey];
6354 + return changed && includedProps.has(typedKey);
6355 + });
6356 + };
6357 + if (notifyOptions?.listeners !== false && shouldNotifyListeners()) {
6358 + defaultNotifyOptions.listeners = true;
6359 + }
6360 + this.#notify({ ...defaultNotifyOptions, ...notifyOptions });
6361 + }
6362 + #updateQuery() {
6363 + const query = this.#client.getQueryCache().build(this.#client, this.options);
6364 + if (query === this.#currentQuery) {
6365 + return;
6366 + }
6367 + const prevQuery = this.#currentQuery;
6368 + this.#currentQuery = query;
6369 + this.#currentQueryInitialState = query.state;
6370 + if (this.hasListeners()) {
6371 + prevQuery?.removeObserver(this);
6372 + query.addObserver(this);
6373 + }
6374 + }
6375 + onQueryUpdate() {
6376 + this.updateResult();
6377 + if (this.hasListeners()) {
6378 + this.#updateTimers();
6379 + }
6380 + }
6381 + #notify(notifyOptions) {
6382 + import_notifyManager.notifyManager.batch(() => {
6383 + if (notifyOptions.listeners) {
6384 + this.listeners.forEach((listener) => {
6385 + listener(this.#currentResult);
6386 + });
6387 + }
6388 + this.#client.getQueryCache().notify({
6389 + query: this.#currentQuery,
6390 + type: "observerResultsUpdated"
6391 + });
6392 + });
6393 + }
6394 +};
6395 +function shouldLoadOnMount(query, options) {
6396 + return (0, import_utils.resolveEnabled)(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === "error" && options.retryOnMount === false);
6397 +}
6398 +function shouldFetchOnMount(query, options) {
6399 + return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
6400 +}
6401 +function shouldFetchOn(query, options, field) {
6402 + if ((0, import_utils.resolveEnabled)(options.enabled, query) !== false) {
6403 + const value = typeof field === "function" ? field(query) : field;
6404 + return value === "always" || value !== false && isStale(query, options);
6405 + }
6406 + return false;
6407 +}
6408 +function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
6409 + return (query !== prevQuery || (0, import_utils.resolveEnabled)(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
6410 +}
6411 +function isStale(query, options) {
6412 + return (0, import_utils.resolveEnabled)(options.enabled, query) !== false && query.isStaleByTime((0, import_utils.resolveStaleTime)(options.staleTime, query));
6413 +}
6414 +function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
6415 + if (!(0, import_utils.shallowEqualObjects)(observer.getCurrentResult(), optimisticResult)) {
6416 + return true;
6417 + }
6418 + return false;
6419 +}
6420 +// Annotate the CommonJS export names for ESM import in node:
6421 +0 && (0);
6422 +//# sourceMappingURL=queryObserver.cjs.map
6423 +
6424 +/***/ }),
6425 +
6426 +/***/ "../node_modules/@tanstack/query-core/build/modern/removable.cjs":
6427 +/*!***********************************************************************!*\
6428 + !*** ../node_modules/@tanstack/query-core/build/modern/removable.cjs ***!
6429 + \***********************************************************************/
6430 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6431 +
6432 +"use strict";
6433 +
6434 +var __defProp = Object.defineProperty;
6435 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6436 +var __getOwnPropNames = Object.getOwnPropertyNames;
6437 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6438 +var __export = (target, all) => {
6439 + for (var name in all)
6440 + __defProp(target, name, { get: all[name], enumerable: true });
6441 +};
6442 +var __copyProps = (to, from, except, desc) => {
6443 + if (from && typeof from === "object" || typeof from === "function") {
6444 + for (let key of __getOwnPropNames(from))
6445 + if (!__hasOwnProp.call(to, key) && key !== except)
6446 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6447 + }
6448 + return to;
6449 +};
6450 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6451 +
6452 +// src/removable.ts
6453 +var removable_exports = {};
6454 +__export(removable_exports, {
6455 + Removable: () => Removable
6456 +});
6457 +module.exports = __toCommonJS(removable_exports);
6458 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
6459 +var Removable = class {
6460 + #gcTimeout;
6461 + destroy() {
6462 + this.clearGcTimeout();
6463 + }
6464 + scheduleGc() {
6465 + this.clearGcTimeout();
6466 + if ((0, import_utils.isValidTimeout)(this.gcTime)) {
6467 + this.#gcTimeout = setTimeout(() => {
6468 + this.optionalRemove();
6469 + }, this.gcTime);
6470 + }
6471 + }
6472 + updateGcTime(newGcTime) {
6473 + this.gcTime = Math.max(
6474 + this.gcTime || 0,
6475 + newGcTime ?? (import_utils.isServer ? Infinity : 5 * 60 * 1e3)
6476 + );
6477 + }
6478 + clearGcTimeout() {
6479 + if (this.#gcTimeout) {
6480 + clearTimeout(this.#gcTimeout);
6481 + this.#gcTimeout = void 0;
6482 + }
6483 + }
6484 +};
6485 +// Annotate the CommonJS export names for ESM import in node:
6486 +0 && (0);
6487 +//# sourceMappingURL=removable.cjs.map
6488 +
6489 +/***/ }),
6490 +
6491 +/***/ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs":
6492 +/*!*********************************************************************!*\
6493 + !*** ../node_modules/@tanstack/query-core/build/modern/retryer.cjs ***!
6494 + \*********************************************************************/
6495 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6496 +
6497 +"use strict";
6498 +
6499 +var __defProp = Object.defineProperty;
6500 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6501 +var __getOwnPropNames = Object.getOwnPropertyNames;
6502 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6503 +var __export = (target, all) => {
6504 + for (var name in all)
6505 + __defProp(target, name, { get: all[name], enumerable: true });
6506 +};
6507 +var __copyProps = (to, from, except, desc) => {
6508 + if (from && typeof from === "object" || typeof from === "function") {
6509 + for (let key of __getOwnPropNames(from))
6510 + if (!__hasOwnProp.call(to, key) && key !== except)
6511 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6512 + }
6513 + return to;
6514 +};
6515 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6516 +
6517 +// src/retryer.ts
6518 +var retryer_exports = {};
6519 +__export(retryer_exports, {
6520 + CancelledError: () => CancelledError,
6521 + canFetch: () => canFetch,
6522 + createRetryer: () => createRetryer,
6523 + isCancelledError: () => isCancelledError
6524 +});
6525 +module.exports = __toCommonJS(retryer_exports);
6526 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
6527 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
6528 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
6529 +function defaultRetryDelay(failureCount) {
6530 + return Math.min(1e3 * 2 ** failureCount, 3e4);
6531 +}
6532 +function canFetch(networkMode) {
6533 + return (networkMode ?? "online") === "online" ? import_onlineManager.onlineManager.isOnline() : true;
6534 +}
6535 +var CancelledError = class {
6536 + constructor(options) {
6537 + this.revert = options?.revert;
6538 + this.silent = options?.silent;
6539 + }
6540 +};
6541 +function isCancelledError(value) {
6542 + return value instanceof CancelledError;
6543 +}
6544 +function createRetryer(config) {
6545 + let isRetryCancelled = false;
6546 + let failureCount = 0;
6547 + let isResolved = false;
6548 + let continueFn;
6549 + let promiseResolve;
6550 + let promiseReject;
6551 + const promise = new Promise((outerResolve, outerReject) => {
6552 + promiseResolve = outerResolve;
6553 + promiseReject = outerReject;
6554 + });
6555 + const cancel = (cancelOptions) => {
6556 + if (!isResolved) {
6557 + reject(new CancelledError(cancelOptions));
6558 + config.abort?.();
6559 + }
6560 + };
6561 + const cancelRetry = () => {
6562 + isRetryCancelled = true;
6563 + };
6564 + const continueRetry = () => {
6565 + isRetryCancelled = false;
6566 + };
6567 + const canContinue = () => import_focusManager.focusManager.isFocused() && (config.networkMode === "always" || import_onlineManager.onlineManager.isOnline()) && config.canRun();
6568 + const canStart = () => canFetch(config.networkMode) && config.canRun();
6569 + const resolve = (value) => {
6570 + if (!isResolved) {
6571 + isResolved = true;
6572 + config.onSuccess?.(value);
6573 + continueFn?.();
6574 + promiseResolve(value);
6575 + }
6576 + };
6577 + const reject = (value) => {
6578 + if (!isResolved) {
6579 + isResolved = true;
6580 + config.onError?.(value);
6581 + continueFn?.();
6582 + promiseReject(value);
6583 + }
6584 + };
6585 + const pause = () => {
6586 + return new Promise((continueResolve) => {
6587 + continueFn = (value) => {
6588 + if (isResolved || canContinue()) {
6589 + continueResolve(value);
6590 + }
6591 + };
6592 + config.onPause?.();
6593 + }).then(() => {
6594 + continueFn = void 0;
6595 + if (!isResolved) {
6596 + config.onContinue?.();
6597 + }
6598 + });
6599 + };
6600 + const run = () => {
6601 + if (isResolved) {
6602 + return;
6603 + }
6604 + let promiseOrValue;
6605 + const initialPromise = failureCount === 0 ? config.initialPromise : void 0;
6606 + try {
6607 + promiseOrValue = initialPromise ?? config.fn();
6608 + } catch (error) {
6609 + promiseOrValue = Promise.reject(error);
6610 + }
6611 + Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
6612 + if (isResolved) {
6613 + return;
6614 + }
6615 + const retry = config.retry ?? (import_utils.isServer ? 0 : 3);
6616 + const retryDelay = config.retryDelay ?? defaultRetryDelay;
6617 + const delay = typeof retryDelay === "function" ? retryDelay(failureCount, error) : retryDelay;
6618 + const shouldRetry = retry === true || typeof retry === "number" && failureCount < retry || typeof retry === "function" && retry(failureCount, error);
6619 + if (isRetryCancelled || !shouldRetry) {
6620 + reject(error);
6621 + return;
6622 + }
6623 + failureCount++;
6624 + config.onFail?.(failureCount, error);
6625 + (0, import_utils.sleep)(delay).then(() => {
6626 + return canContinue() ? void 0 : pause();
6627 + }).then(() => {
6628 + if (isRetryCancelled) {
6629 + reject(error);
6630 + } else {
6631 + run();
6632 + }
6633 + });
6634 + });
6635 + };
6636 + return {
6637 + promise,
6638 + cancel,
6639 + continue: () => {
6640 + continueFn?.();
6641 + return promise;
6642 + },
6643 + cancelRetry,
6644 + continueRetry,
6645 + canStart,
6646 + start: () => {
6647 + if (canStart()) {
6648 + run();
6649 + } else {
6650 + pause().then(run);
6651 + }
6652 + return promise;
6653 + }
6654 + };
6655 +}
6656 +// Annotate the CommonJS export names for ESM import in node:
6657 +0 && (0);
6658 +//# sourceMappingURL=retryer.cjs.map
6659 +
6660 +/***/ }),
6661 +
6662 +/***/ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs":
6663 +/*!**************************************************************************!*\
6664 + !*** ../node_modules/@tanstack/query-core/build/modern/subscribable.cjs ***!
6665 + \**************************************************************************/
6666 +/***/ ((module) => {
6667 +
6668 +"use strict";
6669 +
6670 +var __defProp = Object.defineProperty;
6671 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6672 +var __getOwnPropNames = Object.getOwnPropertyNames;
6673 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6674 +var __export = (target, all) => {
6675 + for (var name in all)
6676 + __defProp(target, name, { get: all[name], enumerable: true });
6677 +};
6678 +var __copyProps = (to, from, except, desc) => {
6679 + if (from && typeof from === "object" || typeof from === "function") {
6680 + for (let key of __getOwnPropNames(from))
6681 + if (!__hasOwnProp.call(to, key) && key !== except)
6682 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6683 + }
6684 + return to;
6685 +};
6686 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6687 +
6688 +// src/subscribable.ts
6689 +var subscribable_exports = {};
6690 +__export(subscribable_exports, {
6691 + Subscribable: () => Subscribable
6692 +});
6693 +module.exports = __toCommonJS(subscribable_exports);
6694 +var Subscribable = class {
6695 + constructor() {
6696 + this.listeners = /* @__PURE__ */ new Set();
6697 + this.subscribe = this.subscribe.bind(this);
6698 + }
6699 + subscribe(listener) {
6700 + this.listeners.add(listener);
6701 + this.onSubscribe();
6702 + return () => {
6703 + this.listeners.delete(listener);
6704 + this.onUnsubscribe();
6705 + };
6706 + }
6707 + hasListeners() {
6708 + return this.listeners.size > 0;
6709 + }
6710 + onSubscribe() {
6711 + }
6712 + onUnsubscribe() {
6713 + }
6714 +};
6715 +// Annotate the CommonJS export names for ESM import in node:
6716 +0 && (0);
6717 +//# sourceMappingURL=subscribable.cjs.map
6718 +
6719 +/***/ }),
6720 +
6721 +/***/ "../node_modules/@tanstack/query-core/build/modern/types.cjs":
6722 +/*!*******************************************************************!*\
6723 + !*** ../node_modules/@tanstack/query-core/build/modern/types.cjs ***!
6724 + \*******************************************************************/
6725 +/***/ ((module) => {
6726 +
6727 +"use strict";
6728 +
6729 +var __defProp = Object.defineProperty;
6730 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6731 +var __getOwnPropNames = Object.getOwnPropertyNames;
6732 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6733 +var __copyProps = (to, from, except, desc) => {
6734 + if (from && typeof from === "object" || typeof from === "function") {
6735 + for (let key of __getOwnPropNames(from))
6736 + if (!__hasOwnProp.call(to, key) && key !== except)
6737 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6738 + }
6739 + return to;
6740 +};
6741 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6742 +
6743 +// src/types.ts
6744 +var types_exports = {};
6745 +module.exports = __toCommonJS(types_exports);
6746 +//# sourceMappingURL=types.cjs.map
6747 +
6748 +/***/ }),
6749 +
6750 +/***/ "../node_modules/@tanstack/query-core/build/modern/utils.cjs":
6751 +/*!*******************************************************************!*\
6752 + !*** ../node_modules/@tanstack/query-core/build/modern/utils.cjs ***!
6753 + \*******************************************************************/
6754 +/***/ ((module) => {
6755 +
6756 +"use strict";
6757 +
6758 +var __defProp = Object.defineProperty;
6759 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6760 +var __getOwnPropNames = Object.getOwnPropertyNames;
6761 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6762 +var __export = (target, all) => {
6763 + for (var name in all)
6764 + __defProp(target, name, { get: all[name], enumerable: true });
6765 +};
6766 +var __copyProps = (to, from, except, desc) => {
6767 + if (from && typeof from === "object" || typeof from === "function") {
6768 + for (let key of __getOwnPropNames(from))
6769 + if (!__hasOwnProp.call(to, key) && key !== except)
6770 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6771 + }
6772 + return to;
6773 +};
6774 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6775 +
6776 +// src/utils.ts
6777 +var utils_exports = {};
6778 +__export(utils_exports, {
6779 + addToEnd: () => addToEnd,
6780 + addToStart: () => addToStart,
6781 + ensureQueryFn: () => ensureQueryFn,
6782 + functionalUpdate: () => functionalUpdate,
6783 + hashKey: () => hashKey,
6784 + hashQueryKeyByOptions: () => hashQueryKeyByOptions,
6785 + isPlainArray: () => isPlainArray,
6786 + isPlainObject: () => isPlainObject,
6787 + isServer: () => isServer,
6788 + isValidTimeout: () => isValidTimeout,
6789 + keepPreviousData: () => keepPreviousData,
6790 + matchMutation: () => matchMutation,
6791 + matchQuery: () => matchQuery,
6792 + noop: () => noop,
6793 + partialMatchKey: () => partialMatchKey,
6794 + replaceData: () => replaceData,
6795 + replaceEqualDeep: () => replaceEqualDeep,
6796 + resolveEnabled: () => resolveEnabled,
6797 + resolveStaleTime: () => resolveStaleTime,
6798 + shallowEqualObjects: () => shallowEqualObjects,
6799 + skipToken: () => skipToken,
6800 + sleep: () => sleep,
6801 + timeUntilStale: () => timeUntilStale
6802 +});
6803 +module.exports = __toCommonJS(utils_exports);
6804 +var isServer = typeof window === "undefined" || "Deno" in globalThis;
6805 +function noop() {
6806 + return void 0;
6807 +}
6808 +function functionalUpdate(updater, input) {
6809 + return typeof updater === "function" ? updater(input) : updater;
6810 +}
6811 +function isValidTimeout(value) {
6812 + return typeof value === "number" && value >= 0 && value !== Infinity;
6813 +}
6814 +function timeUntilStale(updatedAt, staleTime) {
6815 + return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
6816 +}
6817 +function resolveStaleTime(staleTime, query) {
6818 + return typeof staleTime === "function" ? staleTime(query) : staleTime;
6819 +}
6820 +function resolveEnabled(enabled, query) {
6821 + return typeof enabled === "function" ? enabled(query) : enabled;
6822 +}
6823 +function matchQuery(filters, query) {
6824 + const {
6825 + type = "all",
6826 + exact,
6827 + fetchStatus,
6828 + predicate,
6829 + queryKey,
6830 + stale
6831 + } = filters;
6832 + if (queryKey) {
6833 + if (exact) {
6834 + if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {
6835 + return false;
6836 + }
6837 + } else if (!partialMatchKey(query.queryKey, queryKey)) {
6838 + return false;
6839 + }
6840 + }
6841 + if (type !== "all") {
6842 + const isActive = query.isActive();
6843 + if (type === "active" && !isActive) {
6844 + return false;
6845 + }
6846 + if (type === "inactive" && isActive) {
6847 + return false;
6848 + }
6849 + }
6850 + if (typeof stale === "boolean" && query.isStale() !== stale) {
6851 + return false;
6852 + }
6853 + if (fetchStatus && fetchStatus !== query.state.fetchStatus) {
6854 + return false;
6855 + }
6856 + if (predicate && !predicate(query)) {
6857 + return false;
6858 + }
6859 + return true;
6860 +}
6861 +function matchMutation(filters, mutation) {
6862 + const { exact, status, predicate, mutationKey } = filters;
6863 + if (mutationKey) {
6864 + if (!mutation.options.mutationKey) {
6865 + return false;
6866 + }
6867 + if (exact) {
6868 + if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {
6869 + return false;
6870 + }
6871 + } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {
6872 + return false;
6873 + }
6874 + }
6875 + if (status && mutation.state.status !== status) {
6876 + return false;
6877 + }
6878 + if (predicate && !predicate(mutation)) {
6879 + return false;
6880 + }
6881 + return true;
6882 +}
6883 +function hashQueryKeyByOptions(queryKey, options) {
6884 + const hashFn = options?.queryKeyHashFn || hashKey;
6885 + return hashFn(queryKey);
6886 +}
6887 +function hashKey(queryKey) {
6888 + return JSON.stringify(
6889 + queryKey,
6890 + (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
6891 + result[key] = val[key];
6892 + return result;
6893 + }, {}) : val
6894 + );
6895 +}
6896 +function partialMatchKey(a, b) {
6897 + if (a === b) {
6898 + return true;
6899 + }
6900 + if (typeof a !== typeof b) {
6901 + return false;
6902 + }
6903 + if (a && b && typeof a === "object" && typeof b === "object") {
6904 + return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
6905 + }
6906 + return false;
6907 +}
6908 +function replaceEqualDeep(a, b) {
6909 + if (a === b) {
6910 + return a;
6911 + }
6912 + const array = isPlainArray(a) && isPlainArray(b);
6913 + if (array || isPlainObject(a) && isPlainObject(b)) {
6914 + const aItems = array ? a : Object.keys(a);
6915 + const aSize = aItems.length;
6916 + const bItems = array ? b : Object.keys(b);
6917 + const bSize = bItems.length;
6918 + const copy = array ? [] : {};
6919 + let equalItems = 0;
6920 + for (let i = 0; i < bSize; i++) {
6921 + const key = array ? i : bItems[i];
6922 + if ((!array && aItems.includes(key) || array) && a[key] === void 0 && b[key] === void 0) {
6923 + copy[key] = void 0;
6924 + equalItems++;
6925 + } else {
6926 + copy[key] = replaceEqualDeep(a[key], b[key]);
6927 + if (copy[key] === a[key] && a[key] !== void 0) {
6928 + equalItems++;
6929 + }
6930 + }
6931 + }
6932 + return aSize === bSize && equalItems === aSize ? a : copy;
6933 + }
6934 + return b;
6935 +}
6936 +function shallowEqualObjects(a, b) {
6937 + if (!b || Object.keys(a).length !== Object.keys(b).length) {
6938 + return false;
6939 + }
6940 + for (const key in a) {
6941 + if (a[key] !== b[key]) {
6942 + return false;
6943 + }
6944 + }
6945 + return true;
6946 +}
6947 +function isPlainArray(value) {
6948 + return Array.isArray(value) && value.length === Object.keys(value).length;
6949 +}
6950 +function isPlainObject(o) {
6951 + if (!hasObjectPrototype(o)) {
6952 + return false;
6953 + }
6954 + const ctor = o.constructor;
6955 + if (ctor === void 0) {
6956 + return true;
6957 + }
6958 + const prot = ctor.prototype;
6959 + if (!hasObjectPrototype(prot)) {
6960 + return false;
6961 + }
6962 + if (!prot.hasOwnProperty("isPrototypeOf")) {
6963 + return false;
6964 + }
6965 + if (Object.getPrototypeOf(o) !== Object.prototype) {
6966 + return false;
6967 + }
6968 + return true;
6969 +}
6970 +function hasObjectPrototype(o) {
6971 + return Object.prototype.toString.call(o) === "[object Object]";
6972 +}
6973 +function sleep(ms) {
6974 + return new Promise((resolve) => {
6975 + setTimeout(resolve, ms);
6976 + });
6977 +}
6978 +function replaceData(prevData, data, options) {
6979 + if (typeof options.structuralSharing === "function") {
6980 + return options.structuralSharing(prevData, data);
6981 + } else if (options.structuralSharing !== false) {
6982 + return replaceEqualDeep(prevData, data);
6983 + }
6984 + return data;
6985 +}
6986 +function keepPreviousData(previousData) {
6987 + return previousData;
6988 +}
6989 +function addToEnd(items, item, max = 0) {
6990 + const newItems = [...items, item];
6991 + return max && newItems.length > max ? newItems.slice(1) : newItems;
6992 +}
6993 +function addToStart(items, item, max = 0) {
6994 + const newItems = [item, ...items];
6995 + return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
6996 +}
6997 +var skipToken = Symbol();
6998 +var ensureQueryFn = (options, fetchOptions) => {
6999 + if (true) {
7000 + if (options.queryFn === skipToken) {
7001 + console.error(
7002 + `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`
7003 + );
7004 + }
7005 + }
7006 + if (!options.queryFn && fetchOptions?.initialPromise) {
7007 + return () => fetchOptions.initialPromise;
7008 + }
7009 + if (!options.queryFn || options.queryFn === skipToken) {
7010 + return () => Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`));
7011 + }
7012 + return options.queryFn;
7013 +};
7014 +// Annotate the CommonJS export names for ESM import in node:
7015 +0 && (0);
7016 +//# sourceMappingURL=utils.cjs.map
7017 +
7018 +/***/ }),
7019 +
7020 +/***/ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs":
7021 +/*!********************************************************************************!*\
7022 + !*** ../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs ***!
7023 + \********************************************************************************/
7024 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7025 +
7026 +"use strict";
7027 +
7028 +"use client";
7029 +var __create = Object.create;
7030 +var __defProp = Object.defineProperty;
7031 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7032 +var __getOwnPropNames = Object.getOwnPropertyNames;
7033 +var __getProtoOf = Object.getPrototypeOf;
7034 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7035 +var __export = (target, all) => {
7036 + for (var name in all)
7037 + __defProp(target, name, { get: all[name], enumerable: true });
7038 +};
7039 +var __copyProps = (to, from, except, desc) => {
7040 + if (from && typeof from === "object" || typeof from === "function") {
7041 + for (let key of __getOwnPropNames(from))
7042 + if (!__hasOwnProp.call(to, key) && key !== except)
7043 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7044 + }
7045 + return to;
7046 +};
7047 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7048 + // If the importer is in node compatibility mode or this is not an ESM
7049 + // file that has been converted to a CommonJS file using a Babel-
7050 + // compatible transform (i.e. "__esModule" has not been set), then set
7051 + // "default" to the CommonJS "module.exports" for node compatibility.
7052 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7053 + mod
7054 +));
7055 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7056 +
7057 +// src/HydrationBoundary.tsx
7058 +var HydrationBoundary_exports = {};
7059 +__export(HydrationBoundary_exports, {
7060 + HydrationBoundary: () => HydrationBoundary
7061 +});
7062 +module.exports = __toCommonJS(HydrationBoundary_exports);
7063 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7064 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7065 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7066 +var HydrationBoundary = ({
7067 + children,
7068 + options = {},
7069 + state,
7070 + queryClient
7071 +}) => {
7072 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7073 + const [hydrationQueue, setHydrationQueue] = React.useState();
7074 + const optionsRef = React.useRef(options);
7075 + optionsRef.current = options;
7076 + React.useMemo(() => {
7077 + if (state) {
7078 + if (typeof state !== "object") {
7079 + return;
7080 + }
7081 + const queryCache = client.getQueryCache();
7082 + const queries = state.queries || [];
7083 + const newQueries = [];
7084 + const existingQueries = [];
7085 + for (const dehydratedQuery of queries) {
7086 + const existingQuery = queryCache.get(dehydratedQuery.queryHash);
7087 + if (!existingQuery) {
7088 + newQueries.push(dehydratedQuery);
7089 + } else {
7090 + const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt;
7091 + const queryAlreadyQueued = hydrationQueue?.find(
7092 + (query) => query.queryHash === dehydratedQuery.queryHash
7093 + );
7094 + if (hydrationIsNewer && (!queryAlreadyQueued || dehydratedQuery.state.dataUpdatedAt > queryAlreadyQueued.state.dataUpdatedAt)) {
7095 + existingQueries.push(dehydratedQuery);
7096 + }
7097 + }
7098 + }
7099 + if (newQueries.length > 0) {
7100 + (0, import_query_core.hydrate)(client, { queries: newQueries }, optionsRef.current);
7101 + }
7102 + if (existingQueries.length > 0) {
7103 + setHydrationQueue(
7104 + (prev) => prev ? [...prev, ...existingQueries] : existingQueries
7105 + );
7106 + }
7107 + }
7108 + }, [client, hydrationQueue, state]);
7109 + React.useEffect(() => {
7110 + if (hydrationQueue) {
7111 + (0, import_query_core.hydrate)(client, { queries: hydrationQueue }, optionsRef.current);
7112 + setHydrationQueue(void 0);
7113 + }
7114 + }, [client, hydrationQueue]);
7115 + return children;
7116 +};
7117 +// Annotate the CommonJS export names for ESM import in node:
7118 +0 && (0);
7119 +//# sourceMappingURL=HydrationBoundary.cjs.map
7120 +
7121 +/***/ }),
7122 +
7123 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs":
7124 +/*!**********************************************************************************!*\
7125 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs ***!
7126 + \**********************************************************************************/
7127 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7128 +
7129 +"use strict";
7130 +
7131 +"use client";
7132 +var __create = Object.create;
7133 +var __defProp = Object.defineProperty;
7134 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7135 +var __getOwnPropNames = Object.getOwnPropertyNames;
7136 +var __getProtoOf = Object.getPrototypeOf;
7137 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7138 +var __export = (target, all) => {
7139 + for (var name in all)
7140 + __defProp(target, name, { get: all[name], enumerable: true });
7141 +};
7142 +var __copyProps = (to, from, except, desc) => {
7143 + if (from && typeof from === "object" || typeof from === "function") {
7144 + for (let key of __getOwnPropNames(from))
7145 + if (!__hasOwnProp.call(to, key) && key !== except)
7146 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7147 + }
7148 + return to;
7149 +};
7150 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7151 + // If the importer is in node compatibility mode or this is not an ESM
7152 + // file that has been converted to a CommonJS file using a Babel-
7153 + // compatible transform (i.e. "__esModule" has not been set), then set
7154 + // "default" to the CommonJS "module.exports" for node compatibility.
7155 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7156 + mod
7157 +));
7158 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7159 +
7160 +// src/QueryClientProvider.tsx
7161 +var QueryClientProvider_exports = {};
7162 +__export(QueryClientProvider_exports, {
7163 + QueryClientContext: () => QueryClientContext,
7164 + QueryClientProvider: () => QueryClientProvider,
7165 + useQueryClient: () => useQueryClient
7166 +});
7167 +module.exports = __toCommonJS(QueryClientProvider_exports);
7168 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7169 +var import_jsx_runtime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
7170 +var QueryClientContext = React.createContext(
7171 + void 0
7172 +);
7173 +var useQueryClient = (queryClient) => {
7174 + const client = React.useContext(QueryClientContext);
7175 + if (queryClient) {
7176 + return queryClient;
7177 + }
7178 + if (!client) {
7179 + throw new Error("No QueryClient set, use QueryClientProvider to set one");
7180 + }
7181 + return client;
7182 +};
7183 +var QueryClientProvider = ({
7184 + client,
7185 + children
7186 +}) => {
7187 + React.useEffect(() => {
7188 + client.mount();
7189 + return () => {
7190 + client.unmount();
7191 + };
7192 + }, [client]);
7193 + return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryClientContext.Provider, { value: client, children });
7194 +};
7195 +// Annotate the CommonJS export names for ESM import in node:
7196 +0 && (0);
7197 +//# sourceMappingURL=QueryClientProvider.cjs.map
7198 +
7199 +/***/ }),
7200 +
7201 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs":
7202 +/*!**************************************************************************************!*\
7203 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs ***!
7204 + \**************************************************************************************/
7205 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7206 +
7207 +"use strict";
7208 +
7209 +"use client";
7210 +var __create = Object.create;
7211 +var __defProp = Object.defineProperty;
7212 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7213 +var __getOwnPropNames = Object.getOwnPropertyNames;
7214 +var __getProtoOf = Object.getPrototypeOf;
7215 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7216 +var __export = (target, all) => {
7217 + for (var name in all)
7218 + __defProp(target, name, { get: all[name], enumerable: true });
7219 +};
7220 +var __copyProps = (to, from, except, desc) => {
7221 + if (from && typeof from === "object" || typeof from === "function") {
7222 + for (let key of __getOwnPropNames(from))
7223 + if (!__hasOwnProp.call(to, key) && key !== except)
7224 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7225 + }
7226 + return to;
7227 +};
7228 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7229 + // If the importer is in node compatibility mode or this is not an ESM
7230 + // file that has been converted to a CommonJS file using a Babel-
7231 + // compatible transform (i.e. "__esModule" has not been set), then set
7232 + // "default" to the CommonJS "module.exports" for node compatibility.
7233 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7234 + mod
7235 +));
7236 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7237 +
7238 +// src/QueryErrorResetBoundary.tsx
7239 +var QueryErrorResetBoundary_exports = {};
7240 +__export(QueryErrorResetBoundary_exports, {
7241 + QueryErrorResetBoundary: () => QueryErrorResetBoundary,
7242 + useQueryErrorResetBoundary: () => useQueryErrorResetBoundary
7243 +});
7244 +module.exports = __toCommonJS(QueryErrorResetBoundary_exports);
7245 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7246 +var import_jsx_runtime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
7247 +function createValue() {
7248 + let isReset = false;
7249 + return {
7250 + clearReset: () => {
7251 + isReset = false;
7252 + },
7253 + reset: () => {
7254 + isReset = true;
7255 + },
7256 + isReset: () => {
7257 + return isReset;
7258 + }
7259 + };
7260 +}
7261 +var QueryErrorResetBoundaryContext = React.createContext(createValue());
7262 +var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);
7263 +var QueryErrorResetBoundary = ({
7264 + children
7265 +}) => {
7266 + const [value] = React.useState(() => createValue());
7267 + return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryErrorResetBoundaryContext.Provider, { value, children: typeof children === "function" ? children(value) : children });
7268 +};
7269 +// Annotate the CommonJS export names for ESM import in node:
7270 +0 && (0);
7271 +//# sourceMappingURL=QueryErrorResetBoundary.cjs.map
7272 +
7273 +/***/ }),
7274 +
7275 +/***/ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs":
7276 +/*!*********************************************************************************!*\
7277 + !*** ../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs ***!
7278 + \*********************************************************************************/
7279 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7280 +
7281 +"use strict";
7282 +
7283 +"use client";
7284 +var __create = Object.create;
7285 +var __defProp = Object.defineProperty;
7286 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7287 +var __getOwnPropNames = Object.getOwnPropertyNames;
7288 +var __getProtoOf = Object.getPrototypeOf;
7289 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7290 +var __export = (target, all) => {
7291 + for (var name in all)
7292 + __defProp(target, name, { get: all[name], enumerable: true });
7293 +};
7294 +var __copyProps = (to, from, except, desc) => {
7295 + if (from && typeof from === "object" || typeof from === "function") {
7296 + for (let key of __getOwnPropNames(from))
7297 + if (!__hasOwnProp.call(to, key) && key !== except)
7298 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7299 + }
7300 + return to;
7301 +};
7302 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7303 + // If the importer is in node compatibility mode or this is not an ESM
7304 + // file that has been converted to a CommonJS file using a Babel-
7305 + // compatible transform (i.e. "__esModule" has not been set), then set
7306 + // "default" to the CommonJS "module.exports" for node compatibility.
7307 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7308 + mod
7309 +));
7310 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7311 +
7312 +// src/errorBoundaryUtils.ts
7313 +var errorBoundaryUtils_exports = {};
7314 +__export(errorBoundaryUtils_exports, {
7315 + ensurePreventErrorBoundaryRetry: () => ensurePreventErrorBoundaryRetry,
7316 + getHasError: () => getHasError,
7317 + useClearResetErrorBoundary: () => useClearResetErrorBoundary
7318 +});
7319 +module.exports = __toCommonJS(errorBoundaryUtils_exports);
7320 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7321 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
7322 +var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
7323 + if (options.suspense || options.throwOnError) {
7324 + if (!errorResetBoundary.isReset()) {
7325 + options.retryOnMount = false;
7326 + }
7327 + }
7328 +};
7329 +var useClearResetErrorBoundary = (errorResetBoundary) => {
7330 + React.useEffect(() => {
7331 + errorResetBoundary.clearReset();
7332 + }, [errorResetBoundary]);
7333 +};
7334 +var getHasError = ({
7335 + result,
7336 + errorResetBoundary,
7337 + throwOnError,
7338 + query
7339 +}) => {
7340 + return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (0, import_utils.shouldThrowError)(throwOnError, [result.error, query]);
7341 +};
7342 +// Annotate the CommonJS export names for ESM import in node:
7343 +0 && (0);
7344 +//# sourceMappingURL=errorBoundaryUtils.cjs.map
7345 +
7346 +/***/ }),
7347 +
7348 +/***/ "../node_modules/@tanstack/react-query/build/modern/index.cjs":
7349 +/*!********************************************************************!*\
7350 + !*** ../node_modules/@tanstack/react-query/build/modern/index.cjs ***!
7351 + \********************************************************************/
7352 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7353 +
7354 +"use strict";
7355 +
7356 +var __defProp = Object.defineProperty;
7357 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7358 +var __getOwnPropNames = Object.getOwnPropertyNames;
7359 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7360 +var __export = (target, all) => {
7361 + for (var name in all)
7362 + __defProp(target, name, { get: all[name], enumerable: true });
7363 +};
7364 +var __copyProps = (to, from, except, desc) => {
7365 + if (from && typeof from === "object" || typeof from === "function") {
7366 + for (let key of __getOwnPropNames(from))
7367 + if (!__hasOwnProp.call(to, key) && key !== except)
7368 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7369 + }
7370 + return to;
7371 +};
7372 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
7373 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7374 +
7375 +// src/index.ts
7376 +var src_exports = {};
7377 +__export(src_exports, {
7378 + HydrationBoundary: () => import_HydrationBoundary.HydrationBoundary,
7379 + IsRestoringProvider: () => import_isRestoring.IsRestoringProvider,
7380 + QueryClientContext: () => import_QueryClientProvider.QueryClientContext,
7381 + QueryClientProvider: () => import_QueryClientProvider.QueryClientProvider,
7382 + QueryErrorResetBoundary: () => import_QueryErrorResetBoundary.QueryErrorResetBoundary,
7383 + infiniteQueryOptions: () => import_infiniteQueryOptions.infiniteQueryOptions,
7384 + queryOptions: () => import_queryOptions.queryOptions,
7385 + useInfiniteQuery: () => import_useInfiniteQuery.useInfiniteQuery,
7386 + useIsFetching: () => import_useIsFetching.useIsFetching,
7387 + useIsMutating: () => import_useMutationState.useIsMutating,
7388 + useIsRestoring: () => import_isRestoring.useIsRestoring,
7389 + useMutation: () => import_useMutation.useMutation,
7390 + useMutationState: () => import_useMutationState.useMutationState,
7391 + usePrefetchInfiniteQuery: () => import_prefetch.usePrefetchInfiniteQuery,
7392 + usePrefetchQuery: () => import_prefetch.usePrefetchQuery,
7393 + useQueries: () => import_useQueries.useQueries,
7394 + useQuery: () => import_useQuery.useQuery,
7395 + useQueryClient: () => import_QueryClientProvider.useQueryClient,
7396 + useQueryErrorResetBoundary: () => import_QueryErrorResetBoundary.useQueryErrorResetBoundary,
7397 + useSuspenseInfiniteQuery: () => import_useSuspenseInfiniteQuery.useSuspenseInfiniteQuery,
7398 + useSuspenseQueries: () => import_useSuspenseQueries.useSuspenseQueries,
7399 + useSuspenseQuery: () => import_useSuspenseQuery.useSuspenseQuery
7400 +});
7401 +module.exports = __toCommonJS(src_exports);
7402 +__reExport(src_exports, __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs"), module.exports);
7403 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/react-query/build/modern/types.cjs"), module.exports);
7404 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
7405 +var import_useQuery = __webpack_require__(/*! ./useQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs");
7406 +var import_useSuspenseQuery = __webpack_require__(/*! ./useSuspenseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs");
7407 +var import_useSuspenseInfiniteQuery = __webpack_require__(/*! ./useSuspenseInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs");
7408 +var import_useSuspenseQueries = __webpack_require__(/*! ./useSuspenseQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs");
7409 +var import_prefetch = __webpack_require__(/*! ./prefetch.cjs */ "../node_modules/@tanstack/react-query/build/modern/prefetch.cjs");
7410 +var import_queryOptions = __webpack_require__(/*! ./queryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs");
7411 +var import_infiniteQueryOptions = __webpack_require__(/*! ./infiniteQueryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs");
7412 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7413 +var import_HydrationBoundary = __webpack_require__(/*! ./HydrationBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs");
7414 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7415 +var import_useIsFetching = __webpack_require__(/*! ./useIsFetching.cjs */ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs");
7416 +var import_useMutationState = __webpack_require__(/*! ./useMutationState.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs");
7417 +var import_useMutation = __webpack_require__(/*! ./useMutation.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs");
7418 +var import_useInfiniteQuery = __webpack_require__(/*! ./useInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs");
7419 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7420 +// Annotate the CommonJS export names for ESM import in node:
7421 +0 && (0);
7422 +//# sourceMappingURL=index.cjs.map
7423 +
7424 +/***/ }),
7425 +
7426 +/***/ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs":
7427 +/*!***********************************************************************************!*\
7428 + !*** ../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs ***!
7429 + \***********************************************************************************/
7430 +/***/ ((module) => {
7431 +
7432 +"use strict";
7433 +
7434 +var __defProp = Object.defineProperty;
7435 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7436 +var __getOwnPropNames = Object.getOwnPropertyNames;
7437 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7438 +var __export = (target, all) => {
7439 + for (var name in all)
7440 + __defProp(target, name, { get: all[name], enumerable: true });
7441 +};
7442 +var __copyProps = (to, from, except, desc) => {
7443 + if (from && typeof from === "object" || typeof from === "function") {
7444 + for (let key of __getOwnPropNames(from))
7445 + if (!__hasOwnProp.call(to, key) && key !== except)
7446 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7447 + }
7448 + return to;
7449 +};
7450 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7451 +
7452 +// src/infiniteQueryOptions.ts
7453 +var infiniteQueryOptions_exports = {};
7454 +__export(infiniteQueryOptions_exports, {
7455 + infiniteQueryOptions: () => infiniteQueryOptions
7456 +});
7457 +module.exports = __toCommonJS(infiniteQueryOptions_exports);
7458 +function infiniteQueryOptions(options) {
7459 + return options;
7460 +}
7461 +// Annotate the CommonJS export names for ESM import in node:
7462 +0 && (0);
7463 +//# sourceMappingURL=infiniteQueryOptions.cjs.map
7464 +
7465 +/***/ }),
7466 +
7467 +/***/ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs":
7468 +/*!**************************************************************************!*\
7469 + !*** ../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs ***!
7470 + \**************************************************************************/
7471 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7472 +
7473 +"use strict";
7474 +
7475 +"use client";
7476 +var __create = Object.create;
7477 +var __defProp = Object.defineProperty;
7478 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7479 +var __getOwnPropNames = Object.getOwnPropertyNames;
7480 +var __getProtoOf = Object.getPrototypeOf;
7481 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7482 +var __export = (target, all) => {
7483 + for (var name in all)
7484 + __defProp(target, name, { get: all[name], enumerable: true });
7485 +};
7486 +var __copyProps = (to, from, except, desc) => {
7487 + if (from && typeof from === "object" || typeof from === "function") {
7488 + for (let key of __getOwnPropNames(from))
7489 + if (!__hasOwnProp.call(to, key) && key !== except)
7490 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7491 + }
7492 + return to;
7493 +};
7494 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7495 + // If the importer is in node compatibility mode or this is not an ESM
7496 + // file that has been converted to a CommonJS file using a Babel-
7497 + // compatible transform (i.e. "__esModule" has not been set), then set
7498 + // "default" to the CommonJS "module.exports" for node compatibility.
7499 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7500 + mod
7501 +));
7502 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7503 +
7504 +// src/isRestoring.ts
7505 +var isRestoring_exports = {};
7506 +__export(isRestoring_exports, {
7507 + IsRestoringProvider: () => IsRestoringProvider,
7508 + useIsRestoring: () => useIsRestoring
7509 +});
7510 +module.exports = __toCommonJS(isRestoring_exports);
7511 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7512 +var IsRestoringContext = React.createContext(false);
7513 +var useIsRestoring = () => React.useContext(IsRestoringContext);
7514 +var IsRestoringProvider = IsRestoringContext.Provider;
7515 +// Annotate the CommonJS export names for ESM import in node:
7516 +0 && (0);
7517 +//# sourceMappingURL=isRestoring.cjs.map
7518 +
7519 +/***/ }),
7520 +
7521 +/***/ "../node_modules/@tanstack/react-query/build/modern/prefetch.cjs":
7522 +/*!***********************************************************************!*\
7523 + !*** ../node_modules/@tanstack/react-query/build/modern/prefetch.cjs ***!
7524 + \***********************************************************************/
7525 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7526 +
7527 +"use strict";
7528 +
7529 +var __defProp = Object.defineProperty;
7530 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7531 +var __getOwnPropNames = Object.getOwnPropertyNames;
7532 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7533 +var __export = (target, all) => {
7534 + for (var name in all)
7535 + __defProp(target, name, { get: all[name], enumerable: true });
7536 +};
7537 +var __copyProps = (to, from, except, desc) => {
7538 + if (from && typeof from === "object" || typeof from === "function") {
7539 + for (let key of __getOwnPropNames(from))
7540 + if (!__hasOwnProp.call(to, key) && key !== except)
7541 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7542 + }
7543 + return to;
7544 +};
7545 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7546 +
7547 +// src/prefetch.ts
7548 +var prefetch_exports = {};
7549 +__export(prefetch_exports, {
7550 + usePrefetchInfiniteQuery: () => usePrefetchInfiniteQuery,
7551 + usePrefetchQuery: () => usePrefetchQuery
7552 +});
7553 +module.exports = __toCommonJS(prefetch_exports);
7554 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7555 +function usePrefetchQuery(options) {
7556 + const queryClient = (0, import_QueryClientProvider.useQueryClient)();
7557 + if (!queryClient.getQueryState(options.queryKey)) {
7558 + queryClient.prefetchQuery(options);
7559 + }
7560 +}
7561 +function usePrefetchInfiniteQuery(options) {
7562 + const queryClient = (0, import_QueryClientProvider.useQueryClient)();
7563 + if (!queryClient.getQueryState(options.queryKey)) {
7564 + queryClient.prefetchInfiniteQuery(options);
7565 + }
7566 +}
7567 +// Annotate the CommonJS export names for ESM import in node:
7568 +0 && (0);
7569 +//# sourceMappingURL=prefetch.cjs.map
7570 +
7571 +/***/ }),
7572 +
7573 +/***/ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs":
7574 +/*!***************************************************************************!*\
7575 + !*** ../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs ***!
7576 + \***************************************************************************/
7577 +/***/ ((module) => {
7578 +
7579 +"use strict";
7580 +
7581 +var __defProp = Object.defineProperty;
7582 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7583 +var __getOwnPropNames = Object.getOwnPropertyNames;
7584 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7585 +var __export = (target, all) => {
7586 + for (var name in all)
7587 + __defProp(target, name, { get: all[name], enumerable: true });
7588 +};
7589 +var __copyProps = (to, from, except, desc) => {
7590 + if (from && typeof from === "object" || typeof from === "function") {
7591 + for (let key of __getOwnPropNames(from))
7592 + if (!__hasOwnProp.call(to, key) && key !== except)
7593 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7594 + }
7595 + return to;
7596 +};
7597 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7598 +
7599 +// src/queryOptions.ts
7600 +var queryOptions_exports = {};
7601 +__export(queryOptions_exports, {
7602 + queryOptions: () => queryOptions
7603 +});
7604 +module.exports = __toCommonJS(queryOptions_exports);
7605 +function queryOptions(options) {
7606 + return options;
7607 +}
7608 +// Annotate the CommonJS export names for ESM import in node:
7609 +0 && (0);
7610 +//# sourceMappingURL=queryOptions.cjs.map
7611 +
7612 +/***/ }),
7613 +
7614 +/***/ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs":
7615 +/*!***********************************************************************!*\
7616 + !*** ../node_modules/@tanstack/react-query/build/modern/suspense.cjs ***!
7617 + \***********************************************************************/
7618 +/***/ ((module) => {
7619 +
7620 +"use strict";
7621 +
7622 +var __defProp = Object.defineProperty;
7623 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7624 +var __getOwnPropNames = Object.getOwnPropertyNames;
7625 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7626 +var __export = (target, all) => {
7627 + for (var name in all)
7628 + __defProp(target, name, { get: all[name], enumerable: true });
7629 +};
7630 +var __copyProps = (to, from, except, desc) => {
7631 + if (from && typeof from === "object" || typeof from === "function") {
7632 + for (let key of __getOwnPropNames(from))
7633 + if (!__hasOwnProp.call(to, key) && key !== except)
7634 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7635 + }
7636 + return to;
7637 +};
7638 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7639 +
7640 +// src/suspense.ts
7641 +var suspense_exports = {};
7642 +__export(suspense_exports, {
7643 + defaultThrowOnError: () => defaultThrowOnError,
7644 + ensureStaleTime: () => ensureStaleTime,
7645 + fetchOptimistic: () => fetchOptimistic,
7646 + shouldSuspend: () => shouldSuspend,
7647 + willFetch: () => willFetch
7648 +});
7649 +module.exports = __toCommonJS(suspense_exports);
7650 +var defaultThrowOnError = (_error, query) => query.state.data === void 0;
7651 +var ensureStaleTime = (defaultedOptions) => {
7652 + if (defaultedOptions.suspense) {
7653 + if (typeof defaultedOptions.staleTime !== "number") {
7654 + defaultedOptions.staleTime = 1e3;
7655 + }
7656 + }
7657 +};
7658 +var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
7659 +var shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;
7660 +var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
7661 + errorResetBoundary.clearReset();
7662 +});
7663 +// Annotate the CommonJS export names for ESM import in node:
7664 +0 && (0);
7665 +//# sourceMappingURL=suspense.cjs.map
7666 +
7667 +/***/ }),
7668 +
7669 +/***/ "../node_modules/@tanstack/react-query/build/modern/types.cjs":
7670 +/*!********************************************************************!*\
7671 + !*** ../node_modules/@tanstack/react-query/build/modern/types.cjs ***!
7672 + \********************************************************************/
7673 +/***/ ((module) => {
7674 +
7675 +"use strict";
7676 +
7677 +var __defProp = Object.defineProperty;
7678 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7679 +var __getOwnPropNames = Object.getOwnPropertyNames;
7680 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7681 +var __copyProps = (to, from, except, desc) => {
7682 + if (from && typeof from === "object" || typeof from === "function") {
7683 + for (let key of __getOwnPropNames(from))
7684 + if (!__hasOwnProp.call(to, key) && key !== except)
7685 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7686 + }
7687 + return to;
7688 +};
7689 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7690 +
7691 +// src/types.ts
7692 +var types_exports = {};
7693 +module.exports = __toCommonJS(types_exports);
7694 +//# sourceMappingURL=types.cjs.map
7695 +
7696 +/***/ }),
7697 +
7698 +/***/ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs":
7699 +/*!***************************************************************************!*\
7700 + !*** ../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs ***!
7701 + \***************************************************************************/
7702 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7703 +
7704 +"use strict";
7705 +
7706 +"use client";
7707 +var __create = Object.create;
7708 +var __defProp = Object.defineProperty;
7709 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7710 +var __getOwnPropNames = Object.getOwnPropertyNames;
7711 +var __getProtoOf = Object.getPrototypeOf;
7712 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7713 +var __export = (target, all) => {
7714 + for (var name in all)
7715 + __defProp(target, name, { get: all[name], enumerable: true });
7716 +};
7717 +var __copyProps = (to, from, except, desc) => {
7718 + if (from && typeof from === "object" || typeof from === "function") {
7719 + for (let key of __getOwnPropNames(from))
7720 + if (!__hasOwnProp.call(to, key) && key !== except)
7721 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7722 + }
7723 + return to;
7724 +};
7725 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7726 + // If the importer is in node compatibility mode or this is not an ESM
7727 + // file that has been converted to a CommonJS file using a Babel-
7728 + // compatible transform (i.e. "__esModule" has not been set), then set
7729 + // "default" to the CommonJS "module.exports" for node compatibility.
7730 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7731 + mod
7732 +));
7733 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7734 +
7735 +// src/useBaseQuery.ts
7736 +var useBaseQuery_exports = {};
7737 +__export(useBaseQuery_exports, {
7738 + useBaseQuery: () => useBaseQuery
7739 +});
7740 +module.exports = __toCommonJS(useBaseQuery_exports);
7741 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7742 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7743 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7744 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7745 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7746 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
7747 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
7748 +function useBaseQuery(options, Observer, queryClient) {
7749 + if (true) {
7750 + if (typeof options !== "object" || Array.isArray(options)) {
7751 + throw new Error(
7752 + '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'
7753 + );
7754 + }
7755 + }
7756 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7757 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
7758 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
7759 + const defaultedOptions = client.defaultQueryOptions(options);
7760 + client.getDefaultOptions().queries?._experimental_beforeQuery?.(
7761 + defaultedOptions
7762 + );
7763 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
7764 + (0, import_suspense.ensureStaleTime)(defaultedOptions);
7765 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(defaultedOptions, errorResetBoundary);
7766 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
7767 + const [observer] = React.useState(
7768 + () => new Observer(
7769 + client,
7770 + defaultedOptions
7771 + )
7772 + );
7773 + const result = observer.getOptimisticResult(defaultedOptions);
7774 + React.useSyncExternalStore(
7775 + React.useCallback(
7776 + (onStoreChange) => {
7777 + const unsubscribe = isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange));
7778 + observer.updateResult();
7779 + return unsubscribe;
7780 + },
7781 + [observer, isRestoring]
7782 + ),
7783 + () => observer.getCurrentResult(),
7784 + () => observer.getCurrentResult()
7785 + );
7786 + React.useEffect(() => {
7787 + observer.setOptions(defaultedOptions, { listeners: false });
7788 + }, [defaultedOptions, observer]);
7789 + if ((0, import_suspense.shouldSuspend)(defaultedOptions, result)) {
7790 + throw (0, import_suspense.fetchOptimistic)(defaultedOptions, observer, errorResetBoundary);
7791 + }
7792 + if ((0, import_errorBoundaryUtils.getHasError)({
7793 + result,
7794 + errorResetBoundary,
7795 + throwOnError: defaultedOptions.throwOnError,
7796 + query: client.getQueryCache().get(defaultedOptions.queryHash)
7797 + })) {
7798 + throw result.error;
7799 + }
7800 + ;
7801 + client.getDefaultOptions().queries?._experimental_afterQuery?.(
7802 + defaultedOptions,
7803 + result
7804 + );
7805 + return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
7806 +}
7807 +// Annotate the CommonJS export names for ESM import in node:
7808 +0 && (0);
7809 +//# sourceMappingURL=useBaseQuery.cjs.map
7810 +
7811 +/***/ }),
7812 +
7813 +/***/ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs":
7814 +/*!*******************************************************************************!*\
7815 + !*** ../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs ***!
7816 + \*******************************************************************************/
7817 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7818 +
7819 +"use strict";
7820 +
7821 +"use client";
7822 +var __defProp = Object.defineProperty;
7823 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7824 +var __getOwnPropNames = Object.getOwnPropertyNames;
7825 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7826 +var __export = (target, all) => {
7827 + for (var name in all)
7828 + __defProp(target, name, { get: all[name], enumerable: true });
7829 +};
7830 +var __copyProps = (to, from, except, desc) => {
7831 + if (from && typeof from === "object" || typeof from === "function") {
7832 + for (let key of __getOwnPropNames(from))
7833 + if (!__hasOwnProp.call(to, key) && key !== except)
7834 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7835 + }
7836 + return to;
7837 +};
7838 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7839 +
7840 +// src/useInfiniteQuery.ts
7841 +var useInfiniteQuery_exports = {};
7842 +__export(useInfiniteQuery_exports, {
7843 + useInfiniteQuery: () => useInfiniteQuery
7844 +});
7845 +module.exports = __toCommonJS(useInfiniteQuery_exports);
7846 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7847 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
7848 +function useInfiniteQuery(options, queryClient) {
7849 + return (0, import_useBaseQuery.useBaseQuery)(
7850 + options,
7851 + import_query_core.InfiniteQueryObserver,
7852 + queryClient
7853 + );
7854 +}
7855 +// Annotate the CommonJS export names for ESM import in node:
7856 +0 && (0);
7857 +//# sourceMappingURL=useInfiniteQuery.cjs.map
7858 +
7859 +/***/ }),
7860 +
7861 +/***/ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs":
7862 +/*!****************************************************************************!*\
7863 + !*** ../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs ***!
7864 + \****************************************************************************/
7865 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7866 +
7867 +"use strict";
7868 +
7869 +"use client";
7870 +var __create = Object.create;
7871 +var __defProp = Object.defineProperty;
7872 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7873 +var __getOwnPropNames = Object.getOwnPropertyNames;
7874 +var __getProtoOf = Object.getPrototypeOf;
7875 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7876 +var __export = (target, all) => {
7877 + for (var name in all)
7878 + __defProp(target, name, { get: all[name], enumerable: true });
7879 +};
7880 +var __copyProps = (to, from, except, desc) => {
7881 + if (from && typeof from === "object" || typeof from === "function") {
7882 + for (let key of __getOwnPropNames(from))
7883 + if (!__hasOwnProp.call(to, key) && key !== except)
7884 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7885 + }
7886 + return to;
7887 +};
7888 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7889 + // If the importer is in node compatibility mode or this is not an ESM
7890 + // file that has been converted to a CommonJS file using a Babel-
7891 + // compatible transform (i.e. "__esModule" has not been set), then set
7892 + // "default" to the CommonJS "module.exports" for node compatibility.
7893 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7894 + mod
7895 +));
7896 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7897 +
7898 +// src/useIsFetching.ts
7899 +var useIsFetching_exports = {};
7900 +__export(useIsFetching_exports, {
7901 + useIsFetching: () => useIsFetching
7902 +});
7903 +module.exports = __toCommonJS(useIsFetching_exports);
7904 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7905 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7906 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7907 +function useIsFetching(filters, queryClient) {
7908 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7909 + const queryCache = client.getQueryCache();
7910 + return React.useSyncExternalStore(
7911 + React.useCallback(
7912 + (onStoreChange) => queryCache.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7913 + [queryCache]
7914 + ),
7915 + () => client.isFetching(filters),
7916 + () => client.isFetching(filters)
7917 + );
7918 +}
7919 +// Annotate the CommonJS export names for ESM import in node:
7920 +0 && (0);
7921 +//# sourceMappingURL=useIsFetching.cjs.map
7922 +
7923 +/***/ }),
7924 +
7925 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs":
7926 +/*!**************************************************************************!*\
7927 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutation.cjs ***!
7928 + \**************************************************************************/
7929 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7930 +
7931 +"use strict";
7932 +
7933 +"use client";
7934 +var __create = Object.create;
7935 +var __defProp = Object.defineProperty;
7936 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7937 +var __getOwnPropNames = Object.getOwnPropertyNames;
7938 +var __getProtoOf = Object.getPrototypeOf;
7939 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7940 +var __export = (target, all) => {
7941 + for (var name in all)
7942 + __defProp(target, name, { get: all[name], enumerable: true });
7943 +};
7944 +var __copyProps = (to, from, except, desc) => {
7945 + if (from && typeof from === "object" || typeof from === "function") {
7946 + for (let key of __getOwnPropNames(from))
7947 + if (!__hasOwnProp.call(to, key) && key !== except)
7948 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7949 + }
7950 + return to;
7951 +};
7952 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7953 + // If the importer is in node compatibility mode or this is not an ESM
7954 + // file that has been converted to a CommonJS file using a Babel-
7955 + // compatible transform (i.e. "__esModule" has not been set), then set
7956 + // "default" to the CommonJS "module.exports" for node compatibility.
7957 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7958 + mod
7959 +));
7960 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7961 +
7962 +// src/useMutation.ts
7963 +var useMutation_exports = {};
7964 +__export(useMutation_exports, {
7965 + useMutation: () => useMutation
7966 +});
7967 +module.exports = __toCommonJS(useMutation_exports);
7968 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7969 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7970 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7971 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
7972 +function useMutation(options, queryClient) {
7973 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7974 + const [observer] = React.useState(
7975 + () => new import_query_core.MutationObserver(
7976 + client,
7977 + options
7978 + )
7979 + );
7980 + React.useEffect(() => {
7981 + observer.setOptions(options);
7982 + }, [observer, options]);
7983 + const result = React.useSyncExternalStore(
7984 + React.useCallback(
7985 + (onStoreChange) => observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7986 + [observer]
7987 + ),
7988 + () => observer.getCurrentResult(),
7989 + () => observer.getCurrentResult()
7990 + );
7991 + const mutate = React.useCallback(
7992 + (variables, mutateOptions) => {
7993 + observer.mutate(variables, mutateOptions).catch(import_utils.noop);
7994 + },
7995 + [observer]
7996 + );
7997 + if (result.error && (0, import_utils.shouldThrowError)(observer.options.throwOnError, [result.error])) {
7998 + throw result.error;
7999 + }
8000 + return { ...result, mutate, mutateAsync: result.mutate };
8001 +}
8002 +// Annotate the CommonJS export names for ESM import in node:
8003 +0 && (0);
8004 +//# sourceMappingURL=useMutation.cjs.map
8005 +
8006 +/***/ }),
8007 +
8008 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs":
8009 +/*!*******************************************************************************!*\
8010 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs ***!
8011 + \*******************************************************************************/
8012 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8013 +
8014 +"use strict";
8015 +
8016 +"use client";
8017 +var __create = Object.create;
8018 +var __defProp = Object.defineProperty;
8019 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8020 +var __getOwnPropNames = Object.getOwnPropertyNames;
8021 +var __getProtoOf = Object.getPrototypeOf;
8022 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8023 +var __export = (target, all) => {
8024 + for (var name in all)
8025 + __defProp(target, name, { get: all[name], enumerable: true });
8026 +};
8027 +var __copyProps = (to, from, except, desc) => {
8028 + if (from && typeof from === "object" || typeof from === "function") {
8029 + for (let key of __getOwnPropNames(from))
8030 + if (!__hasOwnProp.call(to, key) && key !== except)
8031 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8032 + }
8033 + return to;
8034 +};
8035 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
8036 + // If the importer is in node compatibility mode or this is not an ESM
8037 + // file that has been converted to a CommonJS file using a Babel-
8038 + // compatible transform (i.e. "__esModule" has not been set), then set
8039 + // "default" to the CommonJS "module.exports" for node compatibility.
8040 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
8041 + mod
8042 +));
8043 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8044 +
8045 +// src/useMutationState.ts
8046 +var useMutationState_exports = {};
8047 +__export(useMutationState_exports, {
8048 + useIsMutating: () => useIsMutating,
8049 + useMutationState: () => useMutationState
8050 +});
8051 +module.exports = __toCommonJS(useMutationState_exports);
8052 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
8053 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8054 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
8055 +function useIsMutating(filters, queryClient) {
8056 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
8057 + return useMutationState(
8058 + { filters: { ...filters, status: "pending" } },
8059 + client
8060 + ).length;
8061 +}
8062 +function getResult(mutationCache, options) {
8063 + return mutationCache.findAll(options.filters).map(
8064 + (mutation) => options.select ? options.select(mutation) : mutation.state
8065 + );
8066 +}
8067 +function useMutationState(options = {}, queryClient) {
8068 + const mutationCache = (0, import_QueryClientProvider.useQueryClient)(queryClient).getMutationCache();
8069 + const optionsRef = React.useRef(options);
8070 + const result = React.useRef(null);
8071 + if (!result.current) {
8072 + result.current = getResult(mutationCache, options);
8073 + }
8074 + React.useEffect(() => {
8075 + optionsRef.current = options;
8076 + });
8077 + return React.useSyncExternalStore(
8078 + React.useCallback(
8079 + (onStoreChange) => mutationCache.subscribe(() => {
8080 + const nextResult = (0, import_query_core.replaceEqualDeep)(
8081 + result.current,
8082 + getResult(mutationCache, optionsRef.current)
8083 + );
8084 + if (result.current !== nextResult) {
8085 + result.current = nextResult;
8086 + import_query_core.notifyManager.schedule(onStoreChange);
8087 + }
8088 + }),
8089 + [mutationCache]
8090 + ),
8091 + () => result.current,
8092 + () => result.current
8093 + );
8094 +}
8095 +// Annotate the CommonJS export names for ESM import in node:
8096 +0 && (0);
8097 +//# sourceMappingURL=useMutationState.cjs.map
8098 +
8099 +/***/ }),
8100 +
8101 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs":
8102 +/*!*************************************************************************!*\
8103 + !*** ../node_modules/@tanstack/react-query/build/modern/useQueries.cjs ***!
8104 + \*************************************************************************/
8105 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8106 +
8107 +"use strict";
8108 +
8109 +"use client";
8110 +var __create = Object.create;
8111 +var __defProp = Object.defineProperty;
8112 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8113 +var __getOwnPropNames = Object.getOwnPropertyNames;
8114 +var __getProtoOf = Object.getPrototypeOf;
8115 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8116 +var __export = (target, all) => {
8117 + for (var name in all)
8118 + __defProp(target, name, { get: all[name], enumerable: true });
8119 +};
8120 +var __copyProps = (to, from, except, desc) => {
8121 + if (from && typeof from === "object" || typeof from === "function") {
8122 + for (let key of __getOwnPropNames(from))
8123 + if (!__hasOwnProp.call(to, key) && key !== except)
8124 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8125 + }
8126 + return to;
8127 +};
8128 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
8129 + // If the importer is in node compatibility mode or this is not an ESM
8130 + // file that has been converted to a CommonJS file using a Babel-
8131 + // compatible transform (i.e. "__esModule" has not been set), then set
8132 + // "default" to the CommonJS "module.exports" for node compatibility.
8133 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
8134 + mod
8135 +));
8136 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8137 +
8138 +// src/useQueries.ts
8139 +var useQueries_exports = {};
8140 +__export(useQueries_exports, {
8141 + useQueries: () => useQueries
8142 +});
8143 +module.exports = __toCommonJS(useQueries_exports);
8144 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
8145 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8146 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
8147 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
8148 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
8149 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
8150 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8151 +function useQueries({
8152 + queries,
8153 + ...options
8154 +}, queryClient) {
8155 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
8156 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
8157 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
8158 + const defaultedQueries = React.useMemo(
8159 + () => queries.map((opts) => {
8160 + const defaultedOptions = client.defaultQueryOptions(
8161 + opts
8162 + );
8163 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
8164 + return defaultedOptions;
8165 + }),
8166 + [queries, client, isRestoring]
8167 + );
8168 + defaultedQueries.forEach((query) => {
8169 + (0, import_suspense.ensureStaleTime)(query);
8170 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(query, errorResetBoundary);
8171 + });
8172 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
8173 + const [observer] = React.useState(
8174 + () => new import_query_core.QueriesObserver(
8175 + client,
8176 + defaultedQueries,
8177 + options
8178 + )
8179 + );
8180 + const [optimisticResult, getCombinedResult, trackResult] = observer.getOptimisticResult(
8181 + defaultedQueries,
8182 + options.combine
8183 + );
8184 + React.useSyncExternalStore(
8185 + React.useCallback(
8186 + (onStoreChange) => isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
8187 + [observer, isRestoring]
8188 + ),
8189 + () => observer.getCurrentResult(),
8190 + () => observer.getCurrentResult()
8191 + );
8192 + React.useEffect(() => {
8193 + observer.setQueries(
8194 + defaultedQueries,
8195 + options,
8196 + {
8197 + listeners: false
8198 + }
8199 + );
8200 + }, [defaultedQueries, options, observer]);
8201 + const shouldAtLeastOneSuspend = optimisticResult.some(
8202 + (result, index) => (0, import_suspense.shouldSuspend)(defaultedQueries[index], result)
8203 + );
8204 + const suspensePromises = shouldAtLeastOneSuspend ? optimisticResult.flatMap((result, index) => {
8205 + const opts = defaultedQueries[index];
8206 + if (opts) {
8207 + const queryObserver = new import_query_core.QueryObserver(client, opts);
8208 + if ((0, import_suspense.shouldSuspend)(opts, result)) {
8209 + return (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
8210 + } else if ((0, import_suspense.willFetch)(result, isRestoring)) {
8211 + void (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
8212 + }
8213 + }
8214 + return [];
8215 + }) : [];
8216 + if (suspensePromises.length > 0) {
8217 + throw Promise.all(suspensePromises);
8218 + }
8219 + const firstSingleResultWhichShouldThrow = optimisticResult.find(
8220 + (result, index) => {
8221 + const query = defaultedQueries[index];
8222 + return query && (0, import_errorBoundaryUtils.getHasError)({
8223 + result,
8224 + errorResetBoundary,
8225 + throwOnError: query.throwOnError,
8226 + query: client.getQueryCache().get(query.queryHash)
8227 + });
8228 + }
8229 + );
8230 + if (firstSingleResultWhichShouldThrow?.error) {
8231 + throw firstSingleResultWhichShouldThrow.error;
8232 + }
8233 + return getCombinedResult(trackResult());
8234 +}
8235 +// Annotate the CommonJS export names for ESM import in node:
8236 +0 && (0);
8237 +//# sourceMappingURL=useQueries.cjs.map
8238 +
8239 +/***/ }),
8240 +
8241 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs":
8242 +/*!***********************************************************************!*\
8243 + !*** ../node_modules/@tanstack/react-query/build/modern/useQuery.cjs ***!
8244 + \***********************************************************************/
8245 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8246 +
8247 +"use strict";
8248 +
8249 +"use client";
8250 +var __defProp = Object.defineProperty;
8251 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8252 +var __getOwnPropNames = Object.getOwnPropertyNames;
8253 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8254 +var __export = (target, all) => {
8255 + for (var name in all)
8256 + __defProp(target, name, { get: all[name], enumerable: true });
8257 +};
8258 +var __copyProps = (to, from, except, desc) => {
8259 + if (from && typeof from === "object" || typeof from === "function") {
8260 + for (let key of __getOwnPropNames(from))
8261 + if (!__hasOwnProp.call(to, key) && key !== except)
8262 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8263 + }
8264 + return to;
8265 +};
8266 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8267 +
8268 +// src/useQuery.ts
8269 +var useQuery_exports = {};
8270 +__export(useQuery_exports, {
8271 + useQuery: () => useQuery
8272 +});
8273 +module.exports = __toCommonJS(useQuery_exports);
8274 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8275 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8276 +function useQuery(options, queryClient) {
8277 + return (0, import_useBaseQuery.useBaseQuery)(options, import_query_core.QueryObserver, queryClient);
8278 +}
8279 +// Annotate the CommonJS export names for ESM import in node:
8280 +0 && (0);
8281 +//# sourceMappingURL=useQuery.cjs.map
8282 +
8283 +/***/ }),
8284 +
8285 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs":
8286 +/*!***************************************************************************************!*\
8287 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs ***!
8288 + \***************************************************************************************/
8289 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8290 +
8291 +"use strict";
8292 +
8293 +"use client";
8294 +var __defProp = Object.defineProperty;
8295 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8296 +var __getOwnPropNames = Object.getOwnPropertyNames;
8297 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8298 +var __export = (target, all) => {
8299 + for (var name in all)
8300 + __defProp(target, name, { get: all[name], enumerable: true });
8301 +};
8302 +var __copyProps = (to, from, except, desc) => {
8303 + if (from && typeof from === "object" || typeof from === "function") {
8304 + for (let key of __getOwnPropNames(from))
8305 + if (!__hasOwnProp.call(to, key) && key !== except)
8306 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8307 + }
8308 + return to;
8309 +};
8310 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8311 +
8312 +// src/useSuspenseInfiniteQuery.ts
8313 +var useSuspenseInfiniteQuery_exports = {};
8314 +__export(useSuspenseInfiniteQuery_exports, {
8315 + useSuspenseInfiniteQuery: () => useSuspenseInfiniteQuery
8316 +});
8317 +module.exports = __toCommonJS(useSuspenseInfiniteQuery_exports);
8318 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8319 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8320 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8321 +function useSuspenseInfiniteQuery(options, queryClient) {
8322 + return (0, import_useBaseQuery.useBaseQuery)(
8323 + {
8324 + ...options,
8325 + enabled: true,
8326 + suspense: true,
8327 + throwOnError: import_suspense.defaultThrowOnError
8328 + },
8329 + import_query_core.InfiniteQueryObserver,
8330 + queryClient
8331 + );
8332 +}
8333 +// Annotate the CommonJS export names for ESM import in node:
8334 +0 && (0);
8335 +//# sourceMappingURL=useSuspenseInfiniteQuery.cjs.map
8336 +
8337 +/***/ }),
8338 +
8339 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs":
8340 +/*!*********************************************************************************!*\
8341 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs ***!
8342 + \*********************************************************************************/
8343 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8344 +
8345 +"use strict";
8346 +
8347 +"use client";
8348 +var __defProp = Object.defineProperty;
8349 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8350 +var __getOwnPropNames = Object.getOwnPropertyNames;
8351 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8352 +var __export = (target, all) => {
8353 + for (var name in all)
8354 + __defProp(target, name, { get: all[name], enumerable: true });
8355 +};
8356 +var __copyProps = (to, from, except, desc) => {
8357 + if (from && typeof from === "object" || typeof from === "function") {
8358 + for (let key of __getOwnPropNames(from))
8359 + if (!__hasOwnProp.call(to, key) && key !== except)
8360 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8361 + }
8362 + return to;
8363 +};
8364 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8365 +
8366 +// src/useSuspenseQueries.ts
8367 +var useSuspenseQueries_exports = {};
8368 +__export(useSuspenseQueries_exports, {
8369 + useSuspenseQueries: () => useSuspenseQueries
8370 +});
8371 +module.exports = __toCommonJS(useSuspenseQueries_exports);
8372 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
8373 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8374 +function useSuspenseQueries(options, queryClient) {
8375 + return (0, import_useQueries.useQueries)(
8376 + {
8377 + ...options,
8378 + queries: options.queries.map((query) => ({
8379 + ...query,
8380 + suspense: true,
8381 + throwOnError: import_suspense.defaultThrowOnError,
8382 + enabled: true,
8383 + placeholderData: void 0
8384 + }))
8385 + },
8386 + queryClient
8387 + );
8388 +}
8389 +// Annotate the CommonJS export names for ESM import in node:
8390 +0 && (0);
8391 +//# sourceMappingURL=useSuspenseQueries.cjs.map
8392 +
8393 +/***/ }),
8394 +
8395 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs":
8396 +/*!*******************************************************************************!*\
8397 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs ***!
8398 + \*******************************************************************************/
8399 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8400 +
8401 +"use strict";
8402 +
8403 +"use client";
8404 +var __defProp = Object.defineProperty;
8405 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8406 +var __getOwnPropNames = Object.getOwnPropertyNames;
8407 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8408 +var __export = (target, all) => {
8409 + for (var name in all)
8410 + __defProp(target, name, { get: all[name], enumerable: true });
8411 +};
8412 +var __copyProps = (to, from, except, desc) => {
8413 + if (from && typeof from === "object" || typeof from === "function") {
8414 + for (let key of __getOwnPropNames(from))
8415 + if (!__hasOwnProp.call(to, key) && key !== except)
8416 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8417 + }
8418 + return to;
8419 +};
8420 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8421 +
8422 +// src/useSuspenseQuery.ts
8423 +var useSuspenseQuery_exports = {};
8424 +__export(useSuspenseQuery_exports, {
8425 + useSuspenseQuery: () => useSuspenseQuery
8426 +});
8427 +module.exports = __toCommonJS(useSuspenseQuery_exports);
8428 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8429 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8430 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8431 +function useSuspenseQuery(options, queryClient) {
8432 + if (true) {
8433 + if (options.queryFn === import_query_core.skipToken) {
8434 + console.error("skipToken is not allowed for useSuspenseQuery");
8435 + }
8436 + }
8437 + return (0, import_useBaseQuery.useBaseQuery)(
8438 + {
8439 + ...options,
8440 + enabled: true,
8441 + suspense: true,
8442 + throwOnError: import_suspense.defaultThrowOnError,
8443 + placeholderData: void 0
8444 + },
8445 + import_query_core.QueryObserver,
8446 + queryClient
8447 + );
8448 +}
8449 +// Annotate the CommonJS export names for ESM import in node:
8450 +0 && (0);
8451 +//# sourceMappingURL=useSuspenseQuery.cjs.map
8452 +
8453 +/***/ }),
8454 +
8455 +/***/ "../node_modules/@tanstack/react-query/build/modern/utils.cjs":
8456 +/*!********************************************************************!*\
8457 + !*** ../node_modules/@tanstack/react-query/build/modern/utils.cjs ***!
8458 + \********************************************************************/
8459 +/***/ ((module) => {
8460 +
8461 +"use strict";
8462 +
8463 +var __defProp = Object.defineProperty;
8464 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8465 +var __getOwnPropNames = Object.getOwnPropertyNames;
8466 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8467 +var __export = (target, all) => {
8468 + for (var name in all)
8469 + __defProp(target, name, { get: all[name], enumerable: true });
8470 +};
8471 +var __copyProps = (to, from, except, desc) => {
8472 + if (from && typeof from === "object" || typeof from === "function") {
8473 + for (let key of __getOwnPropNames(from))
8474 + if (!__hasOwnProp.call(to, key) && key !== except)
8475 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8476 + }
8477 + return to;
8478 +};
8479 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8480 +
8481 +// src/utils.ts
8482 +var utils_exports = {};
8483 +__export(utils_exports, {
8484 + noop: () => noop,
8485 + shouldThrowError: () => shouldThrowError
8486 +});
8487 +module.exports = __toCommonJS(utils_exports);
8488 +function shouldThrowError(throwError, params) {
8489 + if (typeof throwError === "function") {
8490 + return throwError(...params);
8491 + }
8492 + return !!throwError;
8493 +}
8494 +function noop() {
8495 +}
8496 +// Annotate the CommonJS export names for ESM import in node:
8497 +0 && (0);
8498 +//# sourceMappingURL=utils.cjs.map
8499 +
2150 8500 /***/ })
2151 8501
2152 8502 /******/ });
2153 8503 /************************************************************************/
@@ -2176,9 +8526,9 @@
2176 8526 /******/ }
2177 8527 /******/
2178 8528 /************************************************************************/
2179 8529 var __webpack_exports__ = {};
2180 -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
8530 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
2181 8531 (() => {
2182 8532 "use strict";
2183 8533 /*!****************************************************!*\
2184 8534 !*** ../modules/notifications/assets/js/editor.js ***!
@@ -2185,12 +8535,12 @@
2185 8535 \****************************************************/
2186 8536
2187 8537
2188 8538 var _editorV = __webpack_require__(/*! ./components/editor-v1 */ "../modules/notifications/assets/js/components/editor-v1.js");
2189 -var _editorAppBarLink = __webpack_require__(/*! ./components/editor-app-bar-link */ "../modules/notifications/assets/js/components/editor-app-bar-link.js");
2190 -var _window;
2191 -if ((_window = window) !== null && _window !== void 0 && (_window = _window.elementorV2) !== null && _window !== void 0 && _window.editorAppBar) {
2192 - (0, _editorAppBarLink.editorAppBarLink)();
8539 +var _editorV2 = __webpack_require__(/*! ./components/editor-v2 */ "../modules/notifications/assets/js/components/editor-v2.js");
8540 +var _window, _window$elementorV;
8541 +if ((_window = window) !== null && _window !== void 0 && (_window$elementorV = _window.elementorV2) !== null && _window$elementorV !== void 0 && _window$elementorV.editorAppBar) {
8542 + (0, _editorV2.editorV2)();
2193 8543 } else {
2194 8544 (0, _editorV.editorV1)();
2195 8545 }
2196 8546 })();