trybeacon 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +18 -18
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/dev/build-manifest.json +50 -0
  5. package/.next/dev/fallback-build-manifest.json +37 -0
  6. package/.next/dev/logs/next-development.log +101 -0
  7. package/.next/dev/server/chunks/ssr/[externals]__1vp7etu._.js +32 -0
  8. package/.next/dev/server/chunks/ssr/[externals]__1vp7etu._.js.map +5 -0
  9. package/.next/dev/server/chunks/ssr/[externals]_next_dist_shared_lib_no-fallback-error_external_0r3u29k.js +8 -0
  10. package/.next/dev/server/chunks/ssr/[externals]_next_dist_shared_lib_no-fallback-error_external_0r3u29k.js.map +5 -0
  11. package/.next/dev/server/chunks/ssr/[root-of-the-server]__0y0_snu._.js +285 -0
  12. package/.next/dev/server/chunks/ssr/[root-of-the-server]__0y0_snu._.js.map +9 -0
  13. package/.next/dev/server/chunks/ssr/node_modules_02es85m._.js +6621 -0
  14. package/.next/dev/server/chunks/ssr/node_modules_02es85m._.js.map +76 -0
  15. package/.next/dev/server/chunks/ssr/node_modules_1_aarlg._.js +4399 -0
  16. package/.next/dev/server/chunks/ssr/node_modules_1_aarlg._.js.map +35 -0
  17. package/.next/dev/server/chunks/ssr/node_modules_next_1_o5zxs._.js +55 -0
  18. package/.next/dev/server/chunks/ssr/node_modules_next_1_o5zxs._.js.map +7 -0
  19. package/.next/dev/server/middleware-build-manifest.js +50 -0
  20. package/.next/dev/server/next-font-manifest.js +1 -0
  21. package/.next/dev/server/next-font-manifest.json +23 -0
  22. package/.next/dev/server/pages/_app/build-manifest.json +23 -0
  23. package/.next/dev/server/pages/_app/client-build-manifest.json +5 -0
  24. package/.next/dev/server/pages/_app/next-font-manifest.json +6 -0
  25. package/.next/dev/server/pages/_app/pages-manifest.json +3 -0
  26. package/.next/dev/server/pages/_app/react-loadable-manifest.json +1 -0
  27. package/.next/dev/server/pages/_app.js +4 -0
  28. package/.next/dev/server/pages/_app.js.map +5 -0
  29. package/.next/dev/server/pages/_document/next-font-manifest.json +6 -0
  30. package/.next/dev/server/pages/_document/pages-manifest.json +3 -0
  31. package/.next/dev/server/pages/_document/react-loadable-manifest.json +1 -0
  32. package/.next/dev/server/pages/_document.js +5 -0
  33. package/.next/dev/server/pages/_document.js.map +5 -0
  34. package/.next/dev/server/pages/_error/build-manifest.json +22 -0
  35. package/.next/dev/server/pages/_error/client-build-manifest.json +5 -0
  36. package/.next/dev/server/pages/_error/next-font-manifest.json +6 -0
  37. package/.next/dev/server/pages/_error/pages-manifest.json +3 -0
  38. package/.next/dev/server/pages/_error/react-loadable-manifest.json +1 -0
  39. package/.next/dev/server/pages/_error.js +8 -0
  40. package/.next/dev/server/pages/_error.js.map +5 -0
  41. package/.next/dev/server/pages-manifest.json +5 -0
  42. package/.next/dev/static/chunks/[next]_entry_page-loader_ts_0z3haqk._.js +23 -0
  43. package/.next/dev/static/chunks/[next]_entry_page-loader_ts_0z3haqk._.js.map +6 -0
  44. package/.next/dev/static/chunks/[next]_entry_page-loader_ts_1aoli7m._.js +23 -0
  45. package/.next/dev/static/chunks/[next]_entry_page-loader_ts_1aoli7m._.js.map +6 -0
  46. package/.next/dev/static/chunks/[root-of-the-server]__02sxxph._.js +476 -0
  47. package/.next/dev/static/chunks/[root-of-the-server]__02sxxph._.js.map +6 -0
  48. package/.next/dev/static/chunks/[root-of-the-server]__0l4r13l._.js +476 -0
  49. package/.next/dev/static/chunks/[root-of-the-server]__0l4r13l._.js.map +6 -0
  50. package/.next/dev/static/chunks/node_modules_10e2-xo._.js +1343 -0
  51. package/.next/dev/static/chunks/node_modules_10e2-xo._.js.map +13 -0
  52. package/.next/dev/static/chunks/node_modules_next_app_0yrdk3r.js +8 -0
  53. package/.next/dev/static/chunks/node_modules_next_app_0yrdk3r.js.map +6 -0
  54. package/.next/dev/static/chunks/node_modules_next_dist_1atto1n._.js +2334 -0
  55. package/.next/dev/static/chunks/node_modules_next_dist_1atto1n._.js.map +26 -0
  56. package/.next/dev/static/chunks/node_modules_next_dist_1gdrd03._.js +2165 -0
  57. package/.next/dev/static/chunks/node_modules_next_dist_1gdrd03._.js.map +25 -0
  58. package/.next/dev/static/chunks/node_modules_next_dist_client_16lnmlo._.js +4084 -0
  59. package/.next/dev/static/chunks/node_modules_next_dist_client_16lnmlo._.js.map +49 -0
  60. package/.next/dev/static/chunks/node_modules_next_dist_compiled_14ibvna._.js +6064 -0
  61. package/.next/dev/static/chunks/node_modules_next_dist_compiled_14ibvna._.js.map +17 -0
  62. package/.next/dev/static/chunks/node_modules_next_dist_shared_lib_0pizcwv._.js +7311 -0
  63. package/.next/dev/static/chunks/node_modules_next_dist_shared_lib_0pizcwv._.js.map +72 -0
  64. package/.next/dev/static/chunks/node_modules_next_dist_shared_lib_12jmhie._.js +7070 -0
  65. package/.next/dev/static/chunks/node_modules_next_dist_shared_lib_12jmhie._.js.map +70 -0
  66. package/.next/dev/static/chunks/node_modules_react-dom_0kla17-._.js +15381 -0
  67. package/.next/dev/static/chunks/node_modules_react-dom_0kla17-._.js.map +9 -0
  68. package/.next/dev/static/chunks/pages/_app.js +13 -0
  69. package/.next/dev/static/chunks/pages/_error.js +12 -0
  70. package/.next/dev/static/chunks/pages__app_0du2_q-._.js +5 -0
  71. package/.next/dev/static/chunks/pages__app_1ouknez._.js.map +11 -0
  72. package/.next/dev/static/chunks/pages__error_0du2_q-._.js +5 -0
  73. package/.next/dev/static/chunks/pages__error_18oj9bx._.js.map +11 -0
  74. package/.next/dev/static/chunks/turbopack-pages__app_1ouknez._.js +2236 -0
  75. package/.next/dev/static/chunks/turbopack-pages__error_18oj9bx._.js +2236 -0
  76. package/.next/prerender-manifest.json +3 -3
  77. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  78. package/.next/server/app/_global-error.html +1 -1
  79. package/.next/server/app/_global-error.rsc +1 -1
  80. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  81. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  82. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  83. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  84. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  85. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  86. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  87. package/.next/server/app/_not-found.html +1 -1
  88. package/.next/server/app/_not-found.rsc +2 -2
  89. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  90. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  91. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  92. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  93. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  94. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  95. package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  96. package/.next/server/app/docs.html +1 -1
  97. package/.next/server/app/docs.rsc +2 -2
  98. package/.next/server/app/docs.segments/_full.segment.rsc +2 -2
  99. package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  100. package/.next/server/app/docs.segments/_index.segment.rsc +2 -2
  101. package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  102. package/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  103. package/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  104. package/.next/server/app/feedback/page_client-reference-manifest.js +1 -1
  105. package/.next/server/app/feedback.html +1 -1
  106. package/.next/server/app/feedback.rsc +2 -2
  107. package/.next/server/app/feedback.segments/_full.segment.rsc +2 -2
  108. package/.next/server/app/feedback.segments/_head.segment.rsc +1 -1
  109. package/.next/server/app/feedback.segments/_index.segment.rsc +2 -2
  110. package/.next/server/app/feedback.segments/_tree.segment.rsc +2 -2
  111. package/.next/server/app/feedback.segments/feedback/__PAGE__.segment.rsc +1 -1
  112. package/.next/server/app/feedback.segments/feedback.segment.rsc +1 -1
  113. package/.next/server/app/help/page_client-reference-manifest.js +1 -1
  114. package/.next/server/app/help.html +1 -1
  115. package/.next/server/app/help.rsc +20 -19
  116. package/.next/server/app/help.segments/_full.segment.rsc +20 -19
  117. package/.next/server/app/help.segments/_head.segment.rsc +1 -1
  118. package/.next/server/app/help.segments/_index.segment.rsc +2 -2
  119. package/.next/server/app/help.segments/_tree.segment.rsc +2 -2
  120. package/.next/server/app/help.segments/help/__PAGE__.segment.rsc +1 -1
  121. package/.next/server/app/help.segments/help.segment.rsc +1 -1
  122. package/.next/server/app/index.html +1 -1
  123. package/.next/server/app/index.rsc +2 -2
  124. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  125. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  126. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  127. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  128. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  129. package/.next/server/app/map/page.js +2 -2
  130. package/.next/server/app/map/page.js.nft.json +1 -1
  131. package/.next/server/app/map/page_client-reference-manifest.js +1 -1
  132. package/.next/server/app/page_client-reference-manifest.js +1 -1
  133. package/.next/server/app/plan/page.js +2 -2
  134. package/.next/server/app/plan/page.js.nft.json +1 -1
  135. package/.next/server/app/plan/page_client-reference-manifest.js +1 -1
  136. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  137. package/.next/server/app-paths-manifest.json +18 -18
  138. package/.next/server/chunks/2933.js +1 -1
  139. package/.next/server/chunks/4274.js +3 -3
  140. package/.next/server/chunks/9213.js +1 -1
  141. package/.next/server/chunks/9972.js +1 -0
  142. package/.next/server/middleware-build-manifest.js +1 -1
  143. package/.next/server/pages/404.html +1 -1
  144. package/.next/server/pages/500.html +1 -1
  145. package/.next/server/server-reference-manifest.js +1 -1
  146. package/.next/server/server-reference-manifest.json +1 -1
  147. package/.next/static/chunks/1202-dfeac8ec49693586.js +1 -0
  148. package/.next/static/chunks/1439-260d1c3a9b3b79b3.js +1 -0
  149. package/.next/static/chunks/1a258343-7b029f38cf13f847.js +2 -0
  150. package/.next/static/chunks/2420-fa8df70262f420d0.js +1 -0
  151. package/.next/static/chunks/app/map/page-02ad8e3650faa96a.js +1 -0
  152. package/.next/static/chunks/app/plan/{page-8e4b5f6294b3a46f.js → page-7be8419fc56d5f1d.js} +1 -1
  153. package/.next/static/css/f57cbca8ad454630.css +1 -0
  154. package/.next/trace +38 -37
  155. package/.next/trace-build +1 -1
  156. package/dist/bin/remove.js +1 -1
  157. package/package.json +1 -1
  158. package/.next/server/chunks/4361.js +0 -1
  159. package/.next/static/chunks/1a258343-702096a00eaffcef.js +0 -2
  160. package/.next/static/chunks/4102-0a8e1895776d89b8.js +0 -1
  161. package/.next/static/chunks/9324-5e46bf76831d6f72.js +0 -1
  162. package/.next/static/chunks/app/map/page-5b50071064eece60.js +0 -1
  163. package/.next/static/css/80cb1416c2081a49.css +0 -1
  164. /package/.next/static/{8Qil8d3lrJiUNgV0rd5j7 → fyHHiCSkZnragXxrsGMEr}/_buildManifest.js +0 -0
  165. /package/.next/static/{8Qil8d3lrJiUNgV0rd5j7 → fyHHiCSkZnragXxrsGMEr}/_ssgManifest.js +0 -0
@@ -0,0 +1,4084 @@
1
+ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined,
2
+ "[project]/node_modules/next/dist/client/register-deployment-id-global.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3
+ "use strict";
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ const _deploymentid = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/deployment-id.js [client] (ecmascript)");
9
+ const deploymentId = (0, _deploymentid.getDeploymentId)();
10
+ globalThis.NEXT_DEPLOYMENT_ID = deploymentId;
11
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
12
+ Object.defineProperty(exports.default, '__esModule', {
13
+ value: true
14
+ });
15
+ Object.assign(exports.default, exports);
16
+ module.exports = exports.default;
17
+ }
18
+ }),
19
+ "[project]/node_modules/next/dist/client/portal/index.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
20
+ "use strict";
21
+
22
+ Object.defineProperty(exports, "__esModule", {
23
+ value: true
24
+ });
25
+ Object.defineProperty(exports, "Portal", {
26
+ enumerable: true,
27
+ get: function() {
28
+ return Portal;
29
+ }
30
+ });
31
+ const _react = __turbopack_context__.r("[project]/node_modules/react/index.js [client] (ecmascript)");
32
+ const _reactdom = __turbopack_context__.r("[project]/node_modules/react-dom/index.js [client] (ecmascript)");
33
+ const Portal = ({ children, type })=>{
34
+ const [portalNode, setPortalNode] = (0, _react.useState)(null);
35
+ (0, _react.useEffect)(()=>{
36
+ const element = document.createElement(type);
37
+ document.body.appendChild(element);
38
+ setPortalNode(element);
39
+ return ()=>{
40
+ document.body.removeChild(element);
41
+ };
42
+ }, [
43
+ type
44
+ ]);
45
+ return portalNode ? /*#__PURE__*/ (0, _reactdom.createPortal)(children, portalNode) : null;
46
+ };
47
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
48
+ Object.defineProperty(exports.default, '__esModule', {
49
+ value: true
50
+ });
51
+ Object.assign(exports.default, exports);
52
+ module.exports = exports.default;
53
+ }
54
+ }),
55
+ "[project]/node_modules/next/dist/client/set-attributes-from-props.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
56
+ "use strict";
57
+
58
+ Object.defineProperty(exports, "__esModule", {
59
+ value: true
60
+ });
61
+ Object.defineProperty(exports, "setAttributesFromProps", {
62
+ enumerable: true,
63
+ get: function() {
64
+ return setAttributesFromProps;
65
+ }
66
+ });
67
+ const DOMAttributeNames = {
68
+ acceptCharset: 'accept-charset',
69
+ className: 'class',
70
+ htmlFor: 'for',
71
+ httpEquiv: 'http-equiv',
72
+ noModule: 'noModule'
73
+ };
74
+ const ignoreProps = [
75
+ 'onLoad',
76
+ 'onReady',
77
+ 'dangerouslySetInnerHTML',
78
+ 'children',
79
+ 'onError',
80
+ 'strategy',
81
+ 'stylesheets'
82
+ ];
83
+ function isBooleanScriptAttribute(attr) {
84
+ return [
85
+ 'async',
86
+ 'defer',
87
+ 'noModule'
88
+ ].includes(attr);
89
+ }
90
+ function setAttributesFromProps(el, props) {
91
+ for (const [p, value] of Object.entries(props)){
92
+ if (!props.hasOwnProperty(p)) continue;
93
+ if (ignoreProps.includes(p)) continue;
94
+ // we don't render undefined props to the DOM
95
+ if (value === undefined) {
96
+ continue;
97
+ }
98
+ const attr = DOMAttributeNames[p] || p.toLowerCase();
99
+ if (el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr)) {
100
+ // Correctly assign boolean script attributes
101
+ // https://github.com/vercel/next.js/pull/20748
102
+ ;
103
+ el[attr] = !!value;
104
+ } else {
105
+ el.setAttribute(attr, String(value));
106
+ }
107
+ // Remove falsy non-zero boolean attributes so they are correctly interpreted
108
+ // (e.g. if we set them to false, this coerces to the string "false", which the browser interprets as true)
109
+ if (value === false || el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr) && (!value || value === 'false')) {
110
+ // Call setAttribute before, as we need to set and unset the attribute to override force async:
111
+ // https://html.spec.whatwg.org/multipage/scripting.html#script-force-async
112
+ el.setAttribute(attr, '');
113
+ el.removeAttribute(attr);
114
+ }
115
+ }
116
+ }
117
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
118
+ Object.defineProperty(exports.default, '__esModule', {
119
+ value: true
120
+ });
121
+ Object.assign(exports.default, exports);
122
+ module.exports = exports.default;
123
+ }
124
+ }),
125
+ "[project]/node_modules/next/dist/client/head-manager.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
126
+ "use strict";
127
+
128
+ Object.defineProperty(exports, "__esModule", {
129
+ value: true
130
+ });
131
+ 0 && (module.exports = {
132
+ default: null,
133
+ isEqualNode: null
134
+ });
135
+ function _export(target, all) {
136
+ for(var name in all)Object.defineProperty(target, name, {
137
+ enumerable: true,
138
+ get: all[name]
139
+ });
140
+ }
141
+ _export(exports, {
142
+ default: function() {
143
+ return initHeadManager;
144
+ },
145
+ isEqualNode: function() {
146
+ return isEqualNode;
147
+ }
148
+ });
149
+ const _setattributesfromprops = __turbopack_context__.r("[project]/node_modules/next/dist/client/set-attributes-from-props.js [client] (ecmascript)");
150
+ function reactElementToDOM({ type, props }) {
151
+ const el = document.createElement(type);
152
+ (0, _setattributesfromprops.setAttributesFromProps)(el, props);
153
+ const { children, dangerouslySetInnerHTML } = props;
154
+ if (dangerouslySetInnerHTML) {
155
+ el.innerHTML = dangerouslySetInnerHTML.__html || '';
156
+ } else if (children) {
157
+ el.textContent = typeof children === 'string' ? children : Array.isArray(children) ? children.join('') : '';
158
+ }
159
+ return el;
160
+ }
161
+ function isEqualNode(oldTag, newTag) {
162
+ if (oldTag instanceof HTMLElement && newTag instanceof HTMLElement) {
163
+ const nonce = newTag.getAttribute('nonce');
164
+ // Only strip the nonce if `oldTag` has had it stripped. An element's nonce attribute will not
165
+ // be stripped if there is no content security policy response header that includes a nonce.
166
+ if (nonce && !oldTag.getAttribute('nonce')) {
167
+ const cloneTag = newTag.cloneNode(true);
168
+ cloneTag.setAttribute('nonce', '');
169
+ cloneTag.nonce = nonce;
170
+ return nonce === oldTag.nonce && oldTag.isEqualNode(cloneTag);
171
+ }
172
+ }
173
+ return oldTag.isEqualNode(newTag);
174
+ }
175
+ function updateElements(type, components) {
176
+ const headEl = document.querySelector('head');
177
+ if (!headEl) return;
178
+ const oldTags = new Set(headEl.querySelectorAll(`${type}[data-next-head]`));
179
+ if (type === 'meta') {
180
+ const metaCharset = headEl.querySelector('meta[charset]');
181
+ if (metaCharset !== null) {
182
+ oldTags.add(metaCharset);
183
+ }
184
+ }
185
+ const newTags = [];
186
+ for(let i = 0; i < components.length; i++){
187
+ const component = components[i];
188
+ const newTag = reactElementToDOM(component);
189
+ newTag.setAttribute('data-next-head', '');
190
+ let isNew = true;
191
+ for (const oldTag of oldTags){
192
+ if (isEqualNode(oldTag, newTag)) {
193
+ oldTags.delete(oldTag);
194
+ isNew = false;
195
+ break;
196
+ }
197
+ }
198
+ if (isNew) {
199
+ newTags.push(newTag);
200
+ }
201
+ }
202
+ for (const oldTag of oldTags){
203
+ oldTag.parentNode?.removeChild(oldTag);
204
+ }
205
+ for (const newTag of newTags){
206
+ // meta[charset] must be first element so special case
207
+ if (newTag.tagName.toLowerCase() === 'meta' && newTag.getAttribute('charset') !== null) {
208
+ headEl.prepend(newTag);
209
+ }
210
+ headEl.appendChild(newTag);
211
+ }
212
+ }
213
+ function initHeadManager() {
214
+ return {
215
+ mountedInstances: new Set(),
216
+ updateHead: (head)=>{
217
+ const tags = {};
218
+ head.forEach((h)=>{
219
+ if (// it won't be inlined. In this case revert to the original behavior
220
+ h.type === 'link' && h.props['data-optimized-fonts']) {
221
+ if (document.querySelector(`style[data-href="${h.props['data-href']}"]`)) {
222
+ return;
223
+ } else {
224
+ h.props.href = h.props['data-href'];
225
+ h.props['data-href'] = undefined;
226
+ }
227
+ }
228
+ const components = tags[h.type] || [];
229
+ components.push(h);
230
+ tags[h.type] = components;
231
+ });
232
+ const titleComponent = tags.title ? tags.title[0] : null;
233
+ let title = '';
234
+ if (titleComponent) {
235
+ const { children } = titleComponent.props;
236
+ title = typeof children === 'string' ? children : Array.isArray(children) ? children.join('') : '';
237
+ }
238
+ if (title !== document.title) document.title = title;
239
+ [
240
+ 'meta',
241
+ 'base',
242
+ 'link',
243
+ 'style',
244
+ 'script'
245
+ ].forEach((type)=>{
246
+ updateElements(type, tags[type] || []);
247
+ });
248
+ }
249
+ };
250
+ }
251
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
252
+ Object.defineProperty(exports.default, '__esModule', {
253
+ value: true
254
+ });
255
+ Object.assign(exports.default, exports);
256
+ module.exports = exports.default;
257
+ }
258
+ }),
259
+ "[project]/node_modules/next/dist/client/normalize-trailing-slash.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
260
+ "use strict";
261
+
262
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
263
+ "use strict";
264
+ Object.defineProperty(exports, "__esModule", {
265
+ value: true
266
+ });
267
+ Object.defineProperty(exports, "normalizePathTrailingSlash", {
268
+ enumerable: true,
269
+ get: function() {
270
+ return normalizePathTrailingSlash;
271
+ }
272
+ });
273
+ const _removetrailingslash = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js [client] (ecmascript)");
274
+ const _parsepath = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/parse-path.js [client] (ecmascript)");
275
+ const normalizePathTrailingSlash = (path)=>{
276
+ if (!path.startsWith('/') || ("TURBOPACK compile-time value", void 0)) {
277
+ return path;
278
+ }
279
+ const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
280
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
281
+ ;
282
+ return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
283
+ };
284
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
285
+ Object.defineProperty(exports.default, '__esModule', {
286
+ value: true
287
+ });
288
+ Object.assign(exports.default, exports);
289
+ module.exports = exports.default;
290
+ }
291
+ }),
292
+ "[project]/node_modules/next/dist/client/add-base-path.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
293
+ "use strict";
294
+
295
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
296
+ "use strict";
297
+ Object.defineProperty(exports, "__esModule", {
298
+ value: true
299
+ });
300
+ Object.defineProperty(exports, "addBasePath", {
301
+ enumerable: true,
302
+ get: function() {
303
+ return addBasePath;
304
+ }
305
+ });
306
+ const _addpathprefix = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js [client] (ecmascript)");
307
+ const _normalizetrailingslash = __turbopack_context__.r("[project]/node_modules/next/dist/client/normalize-trailing-slash.js [client] (ecmascript)");
308
+ const basePath = ("TURBOPACK compile-time value", "") || '';
309
+ function addBasePath(path, required) {
310
+ return (0, _normalizetrailingslash.normalizePathTrailingSlash)(("TURBOPACK compile-time falsy", 0) ? "TURBOPACK unreachable" : (0, _addpathprefix.addPathPrefix)(path, basePath));
311
+ }
312
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
313
+ Object.defineProperty(exports.default, '__esModule', {
314
+ value: true
315
+ });
316
+ Object.assign(exports.default, exports);
317
+ module.exports = exports.default;
318
+ }
319
+ }),
320
+ "[project]/node_modules/next/dist/client/add-locale.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
321
+ "use strict";
322
+
323
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
324
+ "use strict";
325
+ Object.defineProperty(exports, "__esModule", {
326
+ value: true
327
+ });
328
+ Object.defineProperty(exports, "addLocale", {
329
+ enumerable: true,
330
+ get: function() {
331
+ return addLocale;
332
+ }
333
+ });
334
+ const _normalizetrailingslash = __turbopack_context__.r("[project]/node_modules/next/dist/client/normalize-trailing-slash.js [client] (ecmascript)");
335
+ const addLocale = (path, ...args)=>{
336
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
337
+ ;
338
+ return path;
339
+ };
340
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
341
+ Object.defineProperty(exports.default, '__esModule', {
342
+ value: true
343
+ });
344
+ Object.assign(exports.default, exports);
345
+ module.exports = exports.default;
346
+ }
347
+ }),
348
+ "[project]/node_modules/next/dist/client/trusted-types.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
349
+ "use strict";
350
+
351
+ /**
352
+ * Stores the Trusted Types Policy. Starts as undefined and can be set to null
353
+ * if Trusted Types is not supported in the browser.
354
+ */ Object.defineProperty(exports, "__esModule", {
355
+ value: true
356
+ });
357
+ Object.defineProperty(exports, "__unsafeCreateTrustedScriptURL", {
358
+ enumerable: true,
359
+ get: function() {
360
+ return __unsafeCreateTrustedScriptURL;
361
+ }
362
+ });
363
+ let policy;
364
+ /**
365
+ * Getter for the Trusted Types Policy. If it is undefined, it is instantiated
366
+ * here or set to null if Trusted Types is not supported in the browser.
367
+ */ function getPolicy() {
368
+ if (typeof policy === 'undefined' && typeof window !== 'undefined') {
369
+ policy = window.trustedTypes?.createPolicy('nextjs', {
370
+ createHTML: (input)=>input,
371
+ createScript: (input)=>input,
372
+ createScriptURL: (input)=>input
373
+ }) || null;
374
+ }
375
+ return policy;
376
+ }
377
+ function __unsafeCreateTrustedScriptURL(url) {
378
+ return getPolicy()?.createScriptURL(url) || url;
379
+ }
380
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
381
+ Object.defineProperty(exports.default, '__esModule', {
382
+ value: true
383
+ });
384
+ Object.assign(exports.default, exports);
385
+ module.exports = exports.default;
386
+ }
387
+ }),
388
+ "[project]/node_modules/next/dist/client/request-idle-callback.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
389
+ "use strict";
390
+
391
+ Object.defineProperty(exports, "__esModule", {
392
+ value: true
393
+ });
394
+ 0 && (module.exports = {
395
+ cancelIdleCallback: null,
396
+ requestIdleCallback: null
397
+ });
398
+ function _export(target, all) {
399
+ for(var name in all)Object.defineProperty(target, name, {
400
+ enumerable: true,
401
+ get: all[name]
402
+ });
403
+ }
404
+ _export(exports, {
405
+ cancelIdleCallback: function() {
406
+ return cancelIdleCallback;
407
+ },
408
+ requestIdleCallback: function() {
409
+ return requestIdleCallback;
410
+ }
411
+ });
412
+ const requestIdleCallback = typeof self !== 'undefined' && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) {
413
+ let start = Date.now();
414
+ return self.setTimeout(function() {
415
+ cb({
416
+ didTimeout: false,
417
+ timeRemaining: function() {
418
+ return Math.max(0, 50 - (Date.now() - start));
419
+ }
420
+ });
421
+ }, 1);
422
+ };
423
+ const cancelIdleCallback = typeof self !== 'undefined' && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {
424
+ return clearTimeout(id);
425
+ };
426
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
427
+ Object.defineProperty(exports.default, '__esModule', {
428
+ value: true
429
+ });
430
+ Object.assign(exports.default, exports);
431
+ module.exports = exports.default;
432
+ }
433
+ }),
434
+ "[project]/node_modules/next/dist/client/lib/promise.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
435
+ "use strict";
436
+
437
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
438
+ "use strict";
439
+ Object.defineProperty(exports, "__esModule", {
440
+ value: true
441
+ });
442
+ Object.defineProperty(exports, "resolvePromiseWithTimeout", {
443
+ enumerable: true,
444
+ get: function() {
445
+ return resolvePromiseWithTimeout;
446
+ }
447
+ });
448
+ const _requestidlecallback = __turbopack_context__.r("[project]/node_modules/next/dist/client/request-idle-callback.js [client] (ecmascript)");
449
+ // 3.8s was arbitrarily chosen as it's what https://web.dev/interactive
450
+ // considers as "Good" time-to-interactive. We must assume something went
451
+ // wrong beyond this point, and then fall-back to a full page transition to
452
+ // show the user something of value.
453
+ const MS_MAX_IDLE_DELAY = 3800;
454
+ function resolvePromiseWithTimeout(p, err, devPromise) {
455
+ return new Promise((resolve, reject)=>{
456
+ let cancelled = false;
457
+ p.then((r)=>{
458
+ // Resolved, cancel the timeout
459
+ cancelled = true;
460
+ resolve(r);
461
+ }).catch(reject);
462
+ // We wrap these checks separately for better dead-code elimination in
463
+ // production bundles.
464
+ if ("TURBOPACK compile-time truthy", 1) {
465
+ ;
466
+ (devPromise || Promise.resolve()).then(()=>{
467
+ (0, _requestidlecallback.requestIdleCallback)(()=>setTimeout(()=>{
468
+ if (!cancelled) {
469
+ reject(err);
470
+ }
471
+ }, MS_MAX_IDLE_DELAY));
472
+ });
473
+ }
474
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
475
+ ;
476
+ });
477
+ }
478
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
479
+ Object.defineProperty(exports.default, '__esModule', {
480
+ value: true
481
+ });
482
+ Object.assign(exports.default, exports);
483
+ module.exports = exports.default;
484
+ }
485
+ }),
486
+ "[project]/node_modules/next/dist/client/route-loader.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
487
+ "use strict";
488
+
489
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
490
+ "use strict";
491
+ Object.defineProperty(exports, "__esModule", {
492
+ value: true
493
+ });
494
+ 0 && (module.exports = {
495
+ createRouteLoader: null,
496
+ getClientBuildManifest: null,
497
+ isAssetError: null,
498
+ markAssetError: null
499
+ });
500
+ function _export(target, all) {
501
+ for(var name in all)Object.defineProperty(target, name, {
502
+ enumerable: true,
503
+ get: all[name]
504
+ });
505
+ }
506
+ _export(exports, {
507
+ createRouteLoader: function() {
508
+ return createRouteLoader;
509
+ },
510
+ getClientBuildManifest: function() {
511
+ return getClientBuildManifest;
512
+ },
513
+ isAssetError: function() {
514
+ return isAssetError;
515
+ },
516
+ markAssetError: function() {
517
+ return markAssetError;
518
+ }
519
+ });
520
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
521
+ const _getassetpathfromroute = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js [client] (ecmascript)"));
522
+ const _trustedtypes = __turbopack_context__.r("[project]/node_modules/next/dist/client/trusted-types.js [client] (ecmascript)");
523
+ const _requestidlecallback = __turbopack_context__.r("[project]/node_modules/next/dist/client/request-idle-callback.js [client] (ecmascript)");
524
+ const _deploymentid = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/deployment-id.js [client] (ecmascript)");
525
+ const _encodeuripath = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/encode-uri-path.js [client] (ecmascript)");
526
+ const _promise = __turbopack_context__.r("[project]/node_modules/next/dist/client/lib/promise.js [client] (ecmascript)");
527
+ function withFuture(key, map, generator) {
528
+ let entry = map.get(key);
529
+ if (entry) {
530
+ if ('future' in entry) {
531
+ return entry.future;
532
+ }
533
+ return Promise.resolve(entry);
534
+ }
535
+ let resolver;
536
+ const prom = new Promise((resolve)=>{
537
+ resolver = resolve;
538
+ });
539
+ map.set(key, {
540
+ resolve: resolver,
541
+ future: prom
542
+ });
543
+ return generator ? generator().then((value)=>{
544
+ resolver(value);
545
+ return value;
546
+ }).catch((err)=>{
547
+ map.delete(key);
548
+ throw err;
549
+ }) : prom;
550
+ }
551
+ const ASSET_LOAD_ERROR = Symbol('ASSET_LOAD_ERROR');
552
+ function markAssetError(err) {
553
+ return Object.defineProperty(err, ASSET_LOAD_ERROR, {});
554
+ }
555
+ function isAssetError(err) {
556
+ return err && ASSET_LOAD_ERROR in err;
557
+ }
558
+ function hasPrefetch(link) {
559
+ try {
560
+ link = document.createElement('link');
561
+ return(// with relList.support
562
+ !!window.MSInputMethodContext && !!document.documentMode || link.relList.supports('prefetch'));
563
+ } catch {
564
+ return false;
565
+ }
566
+ }
567
+ const canPrefetch = hasPrefetch();
568
+ function prefetchViaDom(href, as, link) {
569
+ return new Promise((resolve, reject)=>{
570
+ const selector = `
571
+ link[rel="prefetch"][href^="${href}"],
572
+ link[rel="preload"][href^="${href}"],
573
+ script[src^="${href}"]`;
574
+ if (document.querySelector(selector)) {
575
+ return resolve();
576
+ }
577
+ link = document.createElement('link');
578
+ // The order of property assignment here is intentional:
579
+ if (as) link.as = as;
580
+ link.rel = `prefetch`;
581
+ link.crossOrigin = ("TURBOPACK compile-time value", void 0);
582
+ link.onload = resolve;
583
+ link.onerror = ()=>reject(markAssetError(Object.defineProperty(new Error(`Failed to prefetch: ${href}`), "__NEXT_ERROR_CODE", {
584
+ value: "E268",
585
+ enumerable: false,
586
+ configurable: true
587
+ })));
588
+ // `href` should always be last:
589
+ link.href = href;
590
+ document.head.appendChild(link);
591
+ });
592
+ }
593
+ function appendScript(src, script) {
594
+ return new Promise((resolve, reject)=>{
595
+ script = document.createElement('script');
596
+ // The order of property assignment here is intentional.
597
+ // 1. Setup success/failure hooks in case the browser synchronously
598
+ // executes when `src` is set.
599
+ script.onload = resolve;
600
+ script.onerror = ()=>reject(markAssetError(Object.defineProperty(new Error(`Failed to load script: ${src}`), "__NEXT_ERROR_CODE", {
601
+ value: "E74",
602
+ enumerable: false,
603
+ configurable: true
604
+ })));
605
+ // 2. Configure the cross-origin attribute before setting `src` in case the
606
+ // browser begins to fetch.
607
+ script.crossOrigin = ("TURBOPACK compile-time value", void 0);
608
+ // 3. Finally, set the source and inject into the DOM in case the child
609
+ // must be appended for fetching to start.
610
+ script.src = src;
611
+ document.body.appendChild(script);
612
+ });
613
+ }
614
+ // We wait for pages to be built in dev before we start the route transition
615
+ // timeout to prevent an un-necessary hard navigation in development.
616
+ let devBuildPromise;
617
+ function getClientBuildManifest() {
618
+ if (self.__BUILD_MANIFEST) {
619
+ return Promise.resolve(self.__BUILD_MANIFEST);
620
+ }
621
+ const onBuildManifest = new Promise((resolve)=>{
622
+ // Mandatory because this is not concurrent safe:
623
+ const cb = self.__BUILD_MANIFEST_CB;
624
+ self.__BUILD_MANIFEST_CB = ()=>{
625
+ resolve(self.__BUILD_MANIFEST);
626
+ cb && cb();
627
+ };
628
+ });
629
+ return (0, _promise.resolvePromiseWithTimeout)(onBuildManifest, markAssetError(Object.defineProperty(new Error('Failed to load client build manifest'), "__NEXT_ERROR_CODE", {
630
+ value: "E273",
631
+ enumerable: false,
632
+ configurable: true
633
+ })), devBuildPromise);
634
+ }
635
+ function getFilesForRoute(assetPrefix, route) {
636
+ if ("TURBOPACK compile-time truthy", 1) {
637
+ const scriptUrl = assetPrefix + '/_next/static/chunks/pages' + (0, _encodeuripath.encodeURIPath)((0, _getassetpathfromroute.default)(route, '.js')) + (0, _deploymentid.getAssetTokenQuery)();
638
+ return Promise.resolve({
639
+ scripts: [
640
+ (0, _trustedtypes.__unsafeCreateTrustedScriptURL)(scriptUrl)
641
+ ],
642
+ // Styles are handled by `style-loader` in development:
643
+ css: []
644
+ });
645
+ }
646
+ //TURBOPACK unreachable
647
+ ;
648
+ }
649
+ function createRouteLoader(assetPrefix) {
650
+ const entrypoints = new Map();
651
+ const loadedScripts = new Map();
652
+ const styleSheets = new Map();
653
+ const routes = new Map();
654
+ function maybeExecuteScript(src) {
655
+ // With HMR we might need to "reload" scripts when they are
656
+ // disposed and readded. Executing scripts twice has no functional
657
+ // differences
658
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
659
+ ;
660
+ else {
661
+ return appendScript(src);
662
+ }
663
+ }
664
+ function fetchStyleSheet(href) {
665
+ let prom = styleSheets.get(href);
666
+ if (prom) {
667
+ return prom;
668
+ }
669
+ styleSheets.set(href, prom = fetch(href, {
670
+ credentials: 'same-origin'
671
+ }).then((res)=>{
672
+ if (!res.ok) {
673
+ throw Object.defineProperty(new Error(`Failed to load stylesheet: ${href}`), "__NEXT_ERROR_CODE", {
674
+ value: "E189",
675
+ enumerable: false,
676
+ configurable: true
677
+ });
678
+ }
679
+ return res.text().then((text)=>({
680
+ href: href,
681
+ content: text
682
+ }));
683
+ }).catch((err)=>{
684
+ throw markAssetError(err);
685
+ }));
686
+ return prom;
687
+ }
688
+ return {
689
+ whenEntrypoint (route) {
690
+ return withFuture(route, entrypoints);
691
+ },
692
+ onEntrypoint (route, execute) {
693
+ ;
694
+ (execute ? Promise.resolve().then(()=>execute()).then((exports1)=>({
695
+ component: exports1 && exports1.default || exports1,
696
+ exports: exports1
697
+ }), (err)=>({
698
+ error: err
699
+ })) : Promise.resolve(undefined)).then((input)=>{
700
+ const old = entrypoints.get(route);
701
+ if (old && 'resolve' in old) {
702
+ if (input) {
703
+ entrypoints.set(route, input);
704
+ old.resolve(input);
705
+ }
706
+ } else {
707
+ if (input) {
708
+ entrypoints.set(route, input);
709
+ } else {
710
+ entrypoints.delete(route);
711
+ }
712
+ // when this entrypoint has been resolved before
713
+ // the route is outdated and we want to invalidate
714
+ // this cache entry
715
+ routes.delete(route);
716
+ }
717
+ });
718
+ },
719
+ loadRoute (route, prefetch) {
720
+ return withFuture(route, routes, ()=>{
721
+ let devBuildPromiseResolve;
722
+ if ("TURBOPACK compile-time truthy", 1) {
723
+ devBuildPromise = new Promise((resolve)=>{
724
+ devBuildPromiseResolve = resolve;
725
+ });
726
+ }
727
+ return (0, _promise.resolvePromiseWithTimeout)(getFilesForRoute(assetPrefix, route).then(({ scripts, css })=>{
728
+ return Promise.all([
729
+ entrypoints.has(route) ? [] : Promise.all(scripts.map(maybeExecuteScript)),
730
+ Promise.all(css.map(fetchStyleSheet))
731
+ ]);
732
+ }).then((res)=>{
733
+ return this.whenEntrypoint(route).then((entrypoint)=>({
734
+ entrypoint,
735
+ styles: res[1]
736
+ }));
737
+ }), markAssetError(Object.defineProperty(new Error(`Route did not complete loading: ${route}`), "__NEXT_ERROR_CODE", {
738
+ value: "E12",
739
+ enumerable: false,
740
+ configurable: true
741
+ })), devBuildPromise).then(({ entrypoint, styles })=>{
742
+ const res = Object.assign({
743
+ styles: styles
744
+ }, entrypoint);
745
+ return 'error' in entrypoint ? entrypoint : res;
746
+ }).catch((err)=>{
747
+ if (prefetch) {
748
+ // we don't want to cache errors during prefetch
749
+ throw err;
750
+ }
751
+ return {
752
+ error: err
753
+ };
754
+ }).finally(()=>devBuildPromiseResolve?.());
755
+ });
756
+ },
757
+ prefetch (route) {
758
+ // https://github.com/GoogleChromeLabs/quicklink/blob/453a661fa1fa940e2d2e044452398e38c67a98fb/src/index.mjs#L115-L118
759
+ // License: Apache 2.0
760
+ let cn;
761
+ if (cn = navigator.connection) {
762
+ // Don't prefetch if using 2G or if Save-Data is enabled.
763
+ if (cn.saveData || /2g/.test(cn.effectiveType)) return Promise.resolve();
764
+ }
765
+ return getFilesForRoute(assetPrefix, route).then((output)=>Promise.all(canPrefetch ? output.scripts.map((script)=>prefetchViaDom(script.toString(), 'script')) : [])).then(()=>{
766
+ (0, _requestidlecallback.requestIdleCallback)(()=>this.loadRoute(route, true).catch(()=>{}));
767
+ }).catch(()=>{});
768
+ }
769
+ };
770
+ }
771
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
772
+ Object.defineProperty(exports.default, '__esModule', {
773
+ value: true
774
+ });
775
+ Object.assign(exports.default, exports);
776
+ module.exports = exports.default;
777
+ }
778
+ }),
779
+ "[project]/node_modules/next/dist/client/page-loader.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
780
+ "use strict";
781
+
782
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
783
+ "use strict";
784
+ Object.defineProperty(exports, "__esModule", {
785
+ value: true
786
+ });
787
+ Object.defineProperty(exports, "default", {
788
+ enumerable: true,
789
+ get: function() {
790
+ return PageLoader;
791
+ }
792
+ });
793
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
794
+ const _addbasepath = __turbopack_context__.r("[project]/node_modules/next/dist/client/add-base-path.js [client] (ecmascript)");
795
+ const _interpolateas = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js [client] (ecmascript)");
796
+ const _getassetpathfromroute = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js [client] (ecmascript)"));
797
+ const _addlocale = __turbopack_context__.r("[project]/node_modules/next/dist/client/add-locale.js [client] (ecmascript)");
798
+ const _isdynamic = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js [client] (ecmascript)");
799
+ const _parserelativeurl = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js [client] (ecmascript)");
800
+ const _removetrailingslash = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js [client] (ecmascript)");
801
+ const _routeloader = __turbopack_context__.r("[project]/node_modules/next/dist/client/route-loader.js [client] (ecmascript)");
802
+ const _constants = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/constants.js [client] (ecmascript)");
803
+ const _promise = __turbopack_context__.r("[project]/node_modules/next/dist/client/lib/promise.js [client] (ecmascript)");
804
+ class PageLoader {
805
+ constructor(buildId, assetPrefix){
806
+ this.routeLoader = (0, _routeloader.createRouteLoader)(assetPrefix);
807
+ this.buildId = buildId;
808
+ this.assetPrefix = assetPrefix;
809
+ this.promisedSsgManifest = new Promise((resolve)=>{
810
+ if (window.__SSG_MANIFEST) {
811
+ resolve(window.__SSG_MANIFEST);
812
+ } else {
813
+ window.__SSG_MANIFEST_CB = ()=>{
814
+ resolve(window.__SSG_MANIFEST);
815
+ };
816
+ }
817
+ });
818
+ }
819
+ getPageList() {
820
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
821
+ ;
822
+ else {
823
+ if (window.__DEV_PAGES_MANIFEST) {
824
+ return window.__DEV_PAGES_MANIFEST.pages;
825
+ } else {
826
+ this.promisedDevPagesManifest ||= fetch(`${this.assetPrefix}/_next/static/development/${_constants.DEV_CLIENT_PAGES_MANIFEST}`, {
827
+ credentials: 'same-origin'
828
+ }).then((res)=>res.json()).then((manifest)=>{
829
+ window.__DEV_PAGES_MANIFEST = manifest;
830
+ return manifest.pages;
831
+ }).catch((err)=>{
832
+ console.log(`Failed to fetch devPagesManifest:`, err);
833
+ throw Object.defineProperty(new Error(`Failed to fetch _devPagesManifest.json. Is something blocking that network request?\n` + 'Read more: https://nextjs.org/docs/messages/failed-to-fetch-devpagesmanifest'), "__NEXT_ERROR_CODE", {
834
+ value: "E423",
835
+ enumerable: false,
836
+ configurable: true
837
+ });
838
+ });
839
+ return this.promisedDevPagesManifest;
840
+ }
841
+ }
842
+ }
843
+ getMiddleware() {
844
+ // Webpack production
845
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
846
+ ;
847
+ else if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
848
+ ;
849
+ else {
850
+ if (window.__DEV_MIDDLEWARE_MATCHERS) {
851
+ return window.__DEV_MIDDLEWARE_MATCHERS;
852
+ } else {
853
+ if (!this.promisedMiddlewareMatchers) {
854
+ // TODO: Decide what should happen when fetching fails instead of asserting
855
+ // @ts-ignore
856
+ this.promisedMiddlewareMatchers = fetch(`${this.assetPrefix}/_next/static/${this.buildId}/${_constants.DEV_CLIENT_MIDDLEWARE_MANIFEST}`, {
857
+ credentials: 'same-origin'
858
+ }).then((res)=>res.json()).then((matchers)=>{
859
+ window.__DEV_MIDDLEWARE_MATCHERS = matchers;
860
+ return matchers;
861
+ }).catch((err)=>{
862
+ console.log(`Failed to fetch _devMiddlewareManifest`, err);
863
+ });
864
+ }
865
+ // TODO Remove this assertion as this could be undefined
866
+ return this.promisedMiddlewareMatchers;
867
+ }
868
+ }
869
+ }
870
+ getDataHref(params) {
871
+ const { asPath, href, locale } = params;
872
+ const { pathname: hrefPathname, query, search } = (0, _parserelativeurl.parseRelativeUrl)(href);
873
+ const { pathname: asPathname } = (0, _parserelativeurl.parseRelativeUrl)(asPath);
874
+ const route = (0, _removetrailingslash.removeTrailingSlash)(hrefPathname);
875
+ if (route[0] !== '/') {
876
+ throw Object.defineProperty(new Error(`Route name should start with a "/", got "${route}"`), "__NEXT_ERROR_CODE", {
877
+ value: "E303",
878
+ enumerable: false,
879
+ configurable: true
880
+ });
881
+ }
882
+ const getHrefForSlug = (path)=>{
883
+ const dataRoute = (0, _getassetpathfromroute.default)((0, _removetrailingslash.removeTrailingSlash)((0, _addlocale.addLocale)(path, locale)), '.json');
884
+ return (0, _addbasepath.addBasePath)(`/_next/data/${this.buildId}${dataRoute}${search}`, true);
885
+ };
886
+ return getHrefForSlug(params.skipInterpolation ? asPathname : (0, _isdynamic.isDynamicRoute)(route) ? (0, _interpolateas.interpolateAs)(hrefPathname, asPathname, query).result : route);
887
+ }
888
+ _isSsg(/** the route (file-system path) */ route) {
889
+ return this.promisedSsgManifest.then((manifest)=>manifest.has(route));
890
+ }
891
+ loadPage(route) {
892
+ return this.routeLoader.loadRoute(route).then((res)=>{
893
+ if ('component' in res) {
894
+ return {
895
+ page: res.component,
896
+ mod: res.exports,
897
+ styleSheets: res.styles.map((o)=>({
898
+ href: o.href,
899
+ text: o.content
900
+ }))
901
+ };
902
+ }
903
+ throw res.error;
904
+ });
905
+ }
906
+ prefetch(route) {
907
+ return this.routeLoader.prefetch(route);
908
+ }
909
+ }
910
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
911
+ Object.defineProperty(exports.default, '__esModule', {
912
+ value: true
913
+ });
914
+ Object.assign(exports.default, exports);
915
+ module.exports = exports.default;
916
+ }
917
+ }),
918
+ "[project]/node_modules/next/dist/client/script.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
919
+ "use strict";
920
+
921
+ Object.defineProperty(exports, "__esModule", {
922
+ value: true
923
+ });
924
+ 0 && (module.exports = {
925
+ default: null,
926
+ handleClientScriptLoad: null,
927
+ initScriptLoader: null
928
+ });
929
+ function _export(target, all) {
930
+ for(var name in all)Object.defineProperty(target, name, {
931
+ enumerable: true,
932
+ get: all[name]
933
+ });
934
+ }
935
+ _export(exports, {
936
+ default: function() {
937
+ return _default;
938
+ },
939
+ handleClientScriptLoad: function() {
940
+ return handleClientScriptLoad;
941
+ },
942
+ initScriptLoader: function() {
943
+ return initScriptLoader;
944
+ }
945
+ });
946
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
947
+ const _interop_require_wildcard = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs [client] (ecmascript)");
948
+ const _jsxruntime = __turbopack_context__.r("[project]/node_modules/react/jsx-runtime.js [client] (ecmascript)");
949
+ const _reactdom = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/react-dom/index.js [client] (ecmascript)"));
950
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(__turbopack_context__.r("[project]/node_modules/react/index.js [client] (ecmascript)"));
951
+ const _headmanagercontextsharedruntime = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js [client] (ecmascript)");
952
+ const _setattributesfromprops = __turbopack_context__.r("[project]/node_modules/next/dist/client/set-attributes-from-props.js [client] (ecmascript)");
953
+ const _requestidlecallback = __turbopack_context__.r("[project]/node_modules/next/dist/client/request-idle-callback.js [client] (ecmascript)");
954
+ const _htmlescape = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/htmlescape.js [client] (ecmascript)");
955
+ const ScriptCache = new Map();
956
+ const LoadCache = new Set();
957
+ const insertStylesheets = (stylesheets)=>{
958
+ // Case 1: Styles for afterInteractive/lazyOnload with appDir injected via handleClientScriptLoad
959
+ //
960
+ // Using ReactDOM.preinit to feature detect appDir and inject styles
961
+ // Stylesheets might have already been loaded if initialized with Script component
962
+ // Re-inject styles here to handle scripts loaded via handleClientScriptLoad
963
+ // ReactDOM.preinit handles dedup and ensures the styles are loaded only once
964
+ if (_reactdom.default.preinit) {
965
+ stylesheets.forEach((stylesheet)=>{
966
+ _reactdom.default.preinit(stylesheet, {
967
+ as: 'style'
968
+ });
969
+ });
970
+ return;
971
+ }
972
+ // Case 2: Styles for afterInteractive/lazyOnload with pages injected via handleClientScriptLoad
973
+ //
974
+ // We use this function to load styles when appdir is not detected
975
+ // TODO: Use React float APIs to load styles once available for pages dir
976
+ if (typeof window !== 'undefined') {
977
+ let head = document.head;
978
+ stylesheets.forEach((stylesheet)=>{
979
+ let link = document.createElement('link');
980
+ link.type = 'text/css';
981
+ link.rel = 'stylesheet';
982
+ link.href = stylesheet;
983
+ head.appendChild(link);
984
+ });
985
+ }
986
+ };
987
+ const loadScript = (props)=>{
988
+ const { src, id, onLoad = ()=>{}, onReady = null, dangerouslySetInnerHTML, children = '', strategy = 'afterInteractive', onError, stylesheets } = props;
989
+ const cacheKey = id || src;
990
+ // Script has already loaded
991
+ if (cacheKey && LoadCache.has(cacheKey)) {
992
+ return;
993
+ }
994
+ // Contents of this script are already loading/loaded
995
+ if (ScriptCache.has(src)) {
996
+ LoadCache.add(cacheKey);
997
+ // It is possible that multiple `next/script` components all have same "src", but has different "onLoad"
998
+ // This is to make sure the same remote script will only load once, but "onLoad" are executed in order
999
+ ScriptCache.get(src).then(onLoad, onError);
1000
+ return;
1001
+ }
1002
+ /** Execute after the script first loaded */ const afterLoad = ()=>{
1003
+ // Run onReady for the first time after load event
1004
+ if (onReady) {
1005
+ onReady();
1006
+ }
1007
+ // add cacheKey to LoadCache when load successfully
1008
+ LoadCache.add(cacheKey);
1009
+ };
1010
+ const el = document.createElement('script');
1011
+ const loadPromise = new Promise((resolve, reject)=>{
1012
+ el.addEventListener('load', function(e) {
1013
+ resolve();
1014
+ if (onLoad) {
1015
+ onLoad.call(this, e);
1016
+ }
1017
+ afterLoad();
1018
+ });
1019
+ el.addEventListener('error', function(e) {
1020
+ reject(e);
1021
+ });
1022
+ }).catch(function(e) {
1023
+ if (onError) {
1024
+ onError(e);
1025
+ }
1026
+ });
1027
+ if (dangerouslySetInnerHTML) {
1028
+ // Casting since lib.dom.d.ts doesn't have TrustedHTML yet.
1029
+ el.innerHTML = dangerouslySetInnerHTML.__html || '';
1030
+ afterLoad();
1031
+ } else if (children) {
1032
+ el.textContent = typeof children === 'string' ? children : Array.isArray(children) ? children.join('') : '';
1033
+ afterLoad();
1034
+ } else if (src) {
1035
+ el.src = src;
1036
+ // do not add cacheKey into LoadCache for remote script here
1037
+ // cacheKey will be added to LoadCache when it is actually loaded (see loadPromise above)
1038
+ ScriptCache.set(src, loadPromise);
1039
+ }
1040
+ (0, _setattributesfromprops.setAttributesFromProps)(el, props);
1041
+ if (strategy === 'worker') {
1042
+ el.setAttribute('type', 'text/partytown');
1043
+ }
1044
+ el.setAttribute('data-nscript', strategy);
1045
+ // Load styles associated with this script
1046
+ if (stylesheets) {
1047
+ insertStylesheets(stylesheets);
1048
+ }
1049
+ document.body.appendChild(el);
1050
+ };
1051
+ function handleClientScriptLoad(props) {
1052
+ const { strategy = 'afterInteractive' } = props;
1053
+ if (strategy === 'lazyOnload') {
1054
+ window.addEventListener('load', ()=>{
1055
+ (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
1056
+ });
1057
+ } else {
1058
+ loadScript(props);
1059
+ }
1060
+ }
1061
+ function loadLazyScript(props) {
1062
+ if (document.readyState === 'complete') {
1063
+ (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
1064
+ } else {
1065
+ window.addEventListener('load', ()=>{
1066
+ (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
1067
+ });
1068
+ }
1069
+ }
1070
+ function addBeforeInteractiveToCache() {
1071
+ const scripts = [
1072
+ ...document.querySelectorAll('[data-nscript="beforeInteractive"]'),
1073
+ ...document.querySelectorAll('[data-nscript="beforePageRender"]')
1074
+ ];
1075
+ scripts.forEach((script)=>{
1076
+ const cacheKey = script.id || script.getAttribute('src');
1077
+ LoadCache.add(cacheKey);
1078
+ });
1079
+ }
1080
+ function initScriptLoader(scriptLoaderItems) {
1081
+ scriptLoaderItems.forEach(handleClientScriptLoad);
1082
+ addBeforeInteractiveToCache();
1083
+ }
1084
+ /**
1085
+ * Load a third-party scripts in an optimized way.
1086
+ *
1087
+ * Read more: [Next.js Docs: `next/script`](https://nextjs.org/docs/app/api-reference/components/script)
1088
+ */ function Script(props) {
1089
+ const { id, src = '', onLoad = ()=>{}, onReady = null, strategy = 'afterInteractive', onError, stylesheets, ...restProps } = props;
1090
+ // Context is available only during SSR
1091
+ let { updateScripts, scripts, getIsSsr, appDir, nonce } = (0, _react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);
1092
+ // if a nonce is explicitly passed to the script tag, favor that over the automatic handling
1093
+ nonce = restProps.nonce || nonce;
1094
+ /**
1095
+ * - First mount:
1096
+ * 1. The useEffect for onReady executes
1097
+ * 2. hasOnReadyEffectCalled.current is false, but the script hasn't loaded yet (not in LoadCache)
1098
+ * onReady is skipped, set hasOnReadyEffectCalled.current to true
1099
+ * 3. The useEffect for loadScript executes
1100
+ * 4. hasLoadScriptEffectCalled.current is false, loadScript executes
1101
+ * Once the script is loaded, the onLoad and onReady will be called by then
1102
+ * [If strict mode is enabled / is wrapped in <OffScreen /> component]
1103
+ * 5. The useEffect for onReady executes again
1104
+ * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped
1105
+ * 7. The useEffect for loadScript executes again
1106
+ * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped
1107
+ *
1108
+ * - Second mount:
1109
+ * 1. The useEffect for onReady executes
1110
+ * 2. hasOnReadyEffectCalled.current is false, but the script has already loaded (found in LoadCache)
1111
+ * onReady is called, set hasOnReadyEffectCalled.current to true
1112
+ * 3. The useEffect for loadScript executes
1113
+ * 4. The script is already loaded, loadScript bails out
1114
+ * [If strict mode is enabled / is wrapped in <OffScreen /> component]
1115
+ * 5. The useEffect for onReady executes again
1116
+ * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped
1117
+ * 7. The useEffect for loadScript executes again
1118
+ * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped
1119
+ */ const hasOnReadyEffectCalled = (0, _react.useRef)(false);
1120
+ (0, _react.useEffect)(()=>{
1121
+ const cacheKey = id || src;
1122
+ if (!hasOnReadyEffectCalled.current) {
1123
+ // Run onReady if script has loaded before but component is re-mounted
1124
+ if (onReady && cacheKey && LoadCache.has(cacheKey)) {
1125
+ onReady();
1126
+ }
1127
+ hasOnReadyEffectCalled.current = true;
1128
+ }
1129
+ }, [
1130
+ onReady,
1131
+ id,
1132
+ src
1133
+ ]);
1134
+ const hasLoadScriptEffectCalled = (0, _react.useRef)(false);
1135
+ (0, _react.useEffect)(()=>{
1136
+ if (!hasLoadScriptEffectCalled.current) {
1137
+ if (strategy === 'afterInteractive') {
1138
+ loadScript(props);
1139
+ } else if (strategy === 'lazyOnload') {
1140
+ loadLazyScript(props);
1141
+ }
1142
+ hasLoadScriptEffectCalled.current = true;
1143
+ }
1144
+ }, [
1145
+ props,
1146
+ strategy
1147
+ ]);
1148
+ if (strategy === 'beforeInteractive' || strategy === 'worker') {
1149
+ if (updateScripts) {
1150
+ scripts[strategy] = (scripts[strategy] || []).concat([
1151
+ {
1152
+ id,
1153
+ src,
1154
+ onLoad,
1155
+ onReady,
1156
+ onError,
1157
+ ...restProps,
1158
+ nonce
1159
+ }
1160
+ ]);
1161
+ updateScripts(scripts);
1162
+ } else if (getIsSsr && getIsSsr()) {
1163
+ // Script has already loaded during SSR
1164
+ LoadCache.add(id || src);
1165
+ } else if (getIsSsr && !getIsSsr()) {
1166
+ loadScript({
1167
+ ...props,
1168
+ nonce
1169
+ });
1170
+ }
1171
+ }
1172
+ // For the app directory, we need React Float to preload these scripts.
1173
+ if (appDir) {
1174
+ // Injecting stylesheets here handles beforeInteractive and worker scripts correctly
1175
+ // For other strategies injecting here ensures correct stylesheet order
1176
+ // ReactDOM.preinit handles loading the styles in the correct order,
1177
+ // also ensures the stylesheet is loaded only once and in a consistent manner
1178
+ //
1179
+ // Case 1: Styles for beforeInteractive/worker with appDir - handled here
1180
+ // Case 2: Styles for beforeInteractive/worker with pages dir - Not handled yet
1181
+ // Case 3: Styles for afterInteractive/lazyOnload with appDir - handled here
1182
+ // Case 4: Styles for afterInteractive/lazyOnload with pages dir - handled in insertStylesheets function
1183
+ if (stylesheets) {
1184
+ stylesheets.forEach((styleSrc)=>{
1185
+ _reactdom.default.preinit(styleSrc, {
1186
+ as: 'style'
1187
+ });
1188
+ });
1189
+ }
1190
+ // Before interactive scripts need to be loaded by Next.js' runtime instead
1191
+ // of native <script> tags, because they no longer have `defer`.
1192
+ if (strategy === 'beforeInteractive') {
1193
+ if (!src) {
1194
+ // For inlined scripts, we put the content in `children`.
1195
+ if (restProps.dangerouslySetInnerHTML) {
1196
+ // Casting since lib.dom.d.ts doesn't have TrustedHTML yet.
1197
+ restProps.children = restProps.dangerouslySetInnerHTML.__html;
1198
+ delete restProps.dangerouslySetInnerHTML;
1199
+ }
1200
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
1201
+ nonce: nonce,
1202
+ dangerouslySetInnerHTML: {
1203
+ __html: `(self.__next_s=self.__next_s||[]).push(${(0, _htmlescape.htmlEscapeJsonString)(JSON.stringify([
1204
+ 0,
1205
+ {
1206
+ ...restProps,
1207
+ id
1208
+ }
1209
+ ]))})`
1210
+ }
1211
+ });
1212
+ } else {
1213
+ // @ts-ignore
1214
+ _reactdom.default.preload(src, restProps.integrity ? {
1215
+ as: 'script',
1216
+ integrity: restProps.integrity,
1217
+ nonce,
1218
+ crossOrigin: restProps.crossOrigin
1219
+ } : {
1220
+ as: 'script',
1221
+ nonce,
1222
+ crossOrigin: restProps.crossOrigin
1223
+ });
1224
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
1225
+ nonce: nonce,
1226
+ dangerouslySetInnerHTML: {
1227
+ __html: `(self.__next_s=self.__next_s||[]).push(${(0, _htmlescape.htmlEscapeJsonString)(JSON.stringify([
1228
+ src,
1229
+ {
1230
+ ...restProps,
1231
+ id
1232
+ }
1233
+ ]))})`
1234
+ }
1235
+ });
1236
+ }
1237
+ } else if (strategy === 'afterInteractive') {
1238
+ if (src) {
1239
+ // @ts-ignore
1240
+ _reactdom.default.preload(src, restProps.integrity ? {
1241
+ as: 'script',
1242
+ integrity: restProps.integrity,
1243
+ nonce,
1244
+ crossOrigin: restProps.crossOrigin
1245
+ } : {
1246
+ as: 'script',
1247
+ nonce,
1248
+ crossOrigin: restProps.crossOrigin
1249
+ });
1250
+ }
1251
+ }
1252
+ }
1253
+ return null;
1254
+ }
1255
+ Object.defineProperty(Script, '__nextScript', {
1256
+ value: true
1257
+ });
1258
+ const _default = Script;
1259
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1260
+ Object.defineProperty(exports.default, '__esModule', {
1261
+ value: true
1262
+ });
1263
+ Object.assign(exports.default, exports);
1264
+ module.exports = exports.default;
1265
+ }
1266
+ }),
1267
+ "[project]/node_modules/next/dist/client/detect-domain-locale.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1268
+ "use strict";
1269
+
1270
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
1271
+ "use strict";
1272
+ Object.defineProperty(exports, "__esModule", {
1273
+ value: true
1274
+ });
1275
+ Object.defineProperty(exports, "detectDomainLocale", {
1276
+ enumerable: true,
1277
+ get: function() {
1278
+ return detectDomainLocale;
1279
+ }
1280
+ });
1281
+ const detectDomainLocale = (...args)=>{
1282
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
1283
+ ;
1284
+ };
1285
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1286
+ Object.defineProperty(exports.default, '__esModule', {
1287
+ value: true
1288
+ });
1289
+ Object.assign(exports.default, exports);
1290
+ module.exports = exports.default;
1291
+ }
1292
+ }),
1293
+ "[project]/node_modules/next/dist/client/remove-locale.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1294
+ "use strict";
1295
+
1296
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
1297
+ "use strict";
1298
+ Object.defineProperty(exports, "__esModule", {
1299
+ value: true
1300
+ });
1301
+ Object.defineProperty(exports, "removeLocale", {
1302
+ enumerable: true,
1303
+ get: function() {
1304
+ return removeLocale;
1305
+ }
1306
+ });
1307
+ const _parsepath = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/parse-path.js [client] (ecmascript)");
1308
+ function removeLocale(path, locale) {
1309
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
1310
+ ;
1311
+ return path;
1312
+ }
1313
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1314
+ Object.defineProperty(exports.default, '__esModule', {
1315
+ value: true
1316
+ });
1317
+ Object.assign(exports.default, exports);
1318
+ module.exports = exports.default;
1319
+ }
1320
+ }),
1321
+ "[project]/node_modules/next/dist/client/has-base-path.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1322
+ "use strict";
1323
+
1324
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
1325
+ "use strict";
1326
+ Object.defineProperty(exports, "__esModule", {
1327
+ value: true
1328
+ });
1329
+ Object.defineProperty(exports, "hasBasePath", {
1330
+ enumerable: true,
1331
+ get: function() {
1332
+ return hasBasePath;
1333
+ }
1334
+ });
1335
+ const _pathhasprefix = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js [client] (ecmascript)");
1336
+ const basePath = ("TURBOPACK compile-time value", "") || '';
1337
+ function hasBasePath(path) {
1338
+ return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
1339
+ }
1340
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1341
+ Object.defineProperty(exports.default, '__esModule', {
1342
+ value: true
1343
+ });
1344
+ Object.assign(exports.default, exports);
1345
+ module.exports = exports.default;
1346
+ }
1347
+ }),
1348
+ "[project]/node_modules/next/dist/client/remove-base-path.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1349
+ "use strict";
1350
+
1351
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
1352
+ "use strict";
1353
+ Object.defineProperty(exports, "__esModule", {
1354
+ value: true
1355
+ });
1356
+ Object.defineProperty(exports, "removeBasePath", {
1357
+ enumerable: true,
1358
+ get: function() {
1359
+ return removeBasePath;
1360
+ }
1361
+ });
1362
+ const _hasbasepath = __turbopack_context__.r("[project]/node_modules/next/dist/client/has-base-path.js [client] (ecmascript)");
1363
+ const basePath = ("TURBOPACK compile-time value", "") || '';
1364
+ function removeBasePath(path) {
1365
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
1366
+ ;
1367
+ // Can't trim the basePath if it has zero length!
1368
+ if (basePath.length === 0) return path;
1369
+ path = path.slice(basePath.length);
1370
+ if (!path.startsWith('/')) path = `/${path}`;
1371
+ return path;
1372
+ }
1373
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1374
+ Object.defineProperty(exports.default, '__esModule', {
1375
+ value: true
1376
+ });
1377
+ Object.assign(exports.default, exports);
1378
+ module.exports = exports.default;
1379
+ }
1380
+ }),
1381
+ "[project]/node_modules/next/dist/client/resolve-href.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1382
+ "use strict";
1383
+
1384
+ Object.defineProperty(exports, "__esModule", {
1385
+ value: true
1386
+ });
1387
+ Object.defineProperty(exports, "resolveHref", {
1388
+ enumerable: true,
1389
+ get: function() {
1390
+ return resolveHref;
1391
+ }
1392
+ });
1393
+ const _querystring = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/querystring.js [client] (ecmascript)");
1394
+ const _formaturl = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/format-url.js [client] (ecmascript)");
1395
+ const _omit = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/omit.js [client] (ecmascript)");
1396
+ const _utils = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/utils.js [client] (ecmascript)");
1397
+ const _normalizetrailingslash = __turbopack_context__.r("[project]/node_modules/next/dist/client/normalize-trailing-slash.js [client] (ecmascript)");
1398
+ const _islocalurl = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/is-local-url.js [client] (ecmascript)");
1399
+ const _utils1 = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/index.js [client] (ecmascript)");
1400
+ const _interpolateas = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js [client] (ecmascript)");
1401
+ const _routeregex = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/route-regex.js [client] (ecmascript)");
1402
+ const _routematcher = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/route-matcher.js [client] (ecmascript)");
1403
+ function resolveHref(router, href, resolveAs) {
1404
+ // we use a dummy base url for relative urls
1405
+ let base;
1406
+ let urlAsString = typeof href === 'string' ? href : (0, _formaturl.formatWithValidation)(href);
1407
+ // repeated slashes and backslashes in the URL are considered
1408
+ // invalid and will never match a Next.js page/file
1409
+ // https://www.rfc-editor.org/rfc/rfc3986.html#section-3.1
1410
+ const urlProtoMatch = urlAsString.match(/^[a-z][a-z0-9+.-]*:\/\//i);
1411
+ const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
1412
+ const urlParts = urlAsStringNoProto.split('?', 1);
1413
+ if ((urlParts[0] || '').match(/(\/\/|\\)/)) {
1414
+ console.error(`Invalid href '${urlAsString}' passed to next/router in page: '${router.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);
1415
+ const normalizedUrl = (0, _utils.normalizeRepeatedSlashes)(urlAsStringNoProto);
1416
+ urlAsString = (urlProtoMatch ? urlProtoMatch[0] : '') + normalizedUrl;
1417
+ }
1418
+ // Return because it cannot be routed by the Next.js router
1419
+ if (!(0, _islocalurl.isLocalURL)(urlAsString)) {
1420
+ return resolveAs ? [
1421
+ urlAsString
1422
+ ] : urlAsString;
1423
+ }
1424
+ try {
1425
+ let baseBase = urlAsString.startsWith('#') ? router.asPath : router.pathname;
1426
+ // If the provided href is only a query string, it is safer to use the asPath
1427
+ // considering rewrites.
1428
+ if (urlAsString.startsWith('?')) {
1429
+ baseBase = router.asPath;
1430
+ // However, if is a dynamic route, we need to use the pathname to preserve the
1431
+ // query interpolation and rewrites (router.pathname will look like "/[slug]").
1432
+ if ((0, _utils1.isDynamicRoute)(router.pathname)) {
1433
+ baseBase = router.pathname;
1434
+ const routeRegex = (0, _routeregex.getRouteRegex)(router.pathname);
1435
+ const match = (0, _routematcher.getRouteMatcher)(routeRegex)(router.asPath);
1436
+ // For dynamic routes, if asPath doesn't match the pathname regex, it is a rewritten path.
1437
+ // In this case, should use asPath to preserve the current URL.
1438
+ if (!match) {
1439
+ baseBase = router.asPath;
1440
+ }
1441
+ // Note: There is an edge case where the pathname is dynamic, and also a rewrite path to the same segment.
1442
+ // E.g. in "/[slug]" path, rewrite "/foo" -> "/bar"
1443
+ // In this case, it will be treated as a non-rewritten path and possibly interpolate the query string.
1444
+ // E.g., "/any?slug=foo" will become the content of "/foo", not rewritten as "/bar"
1445
+ // This is currently a trade-off of not resolving rewrite paths on every Router/Link call,
1446
+ // but using a lighter route regex pattern check.
1447
+ }
1448
+ }
1449
+ base = new URL(baseBase, 'http://n');
1450
+ } catch (_) {
1451
+ // fallback to / for invalid asPath values e.g. //
1452
+ base = new URL('/', 'http://n');
1453
+ }
1454
+ try {
1455
+ const finalUrl = new URL(urlAsString, base);
1456
+ finalUrl.pathname = (0, _normalizetrailingslash.normalizePathTrailingSlash)(finalUrl.pathname);
1457
+ let interpolatedAs = '';
1458
+ if ((0, _utils1.isDynamicRoute)(finalUrl.pathname) && finalUrl.searchParams && resolveAs) {
1459
+ const query = (0, _querystring.searchParamsToUrlQuery)(finalUrl.searchParams);
1460
+ const { result, params } = (0, _interpolateas.interpolateAs)(finalUrl.pathname, finalUrl.pathname, query);
1461
+ if (result) {
1462
+ interpolatedAs = (0, _formaturl.formatWithValidation)({
1463
+ pathname: result,
1464
+ hash: finalUrl.hash,
1465
+ query: (0, _omit.omit)(query, params)
1466
+ });
1467
+ }
1468
+ }
1469
+ // if the origin didn't change, it means we received a relative href
1470
+ const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href;
1471
+ return resolveAs ? [
1472
+ resolvedHref,
1473
+ interpolatedAs || resolvedHref
1474
+ ] : resolvedHref;
1475
+ } catch (_) {
1476
+ return resolveAs ? [
1477
+ urlAsString
1478
+ ] : urlAsString;
1479
+ }
1480
+ }
1481
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1482
+ Object.defineProperty(exports.default, '__esModule', {
1483
+ value: true
1484
+ });
1485
+ Object.assign(exports.default, exports);
1486
+ module.exports = exports.default;
1487
+ }
1488
+ }),
1489
+ "[project]/node_modules/next/dist/client/lib/javascript-url.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1490
+ "use strict";
1491
+
1492
+ // Adapted from React's sanitizeURL function found here: https://github.com/facebook/react/blob/b565373afd0cc1988497e1107106e851e8cfb261/packages/react-dom-bindings/src/shared/sanitizeURL.js
1493
+ // A javascript: URL can contain leading C0 control or \u0020 SPACE,
1494
+ // and any newline or tab are filtered out as if they're not part of the URL.
1495
+ // https://url.spec.whatwg.org/#url-parsing
1496
+ // Tab or newline are defined as \r\n\t:
1497
+ // https://infra.spec.whatwg.org/#ascii-tab-or-newline
1498
+ // A C0 control is a code point in the range \u0000 NULL to \u001F
1499
+ // INFORMATION SEPARATOR ONE, inclusive:
1500
+ // https://infra.spec.whatwg.org/#c0-control-or-space
1501
+ Object.defineProperty(exports, "__esModule", {
1502
+ value: true
1503
+ });
1504
+ Object.defineProperty(exports, "isJavaScriptURLString", {
1505
+ enumerable: true,
1506
+ get: function() {
1507
+ return isJavaScriptURLString;
1508
+ }
1509
+ });
1510
+ const isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
1511
+ function isJavaScriptURLString(url) {
1512
+ return isJavaScriptProtocol.test('' + url);
1513
+ }
1514
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1515
+ Object.defineProperty(exports.default, '__esModule', {
1516
+ value: true
1517
+ });
1518
+ Object.assign(exports.default, exports);
1519
+ module.exports = exports.default;
1520
+ }
1521
+ }),
1522
+ "[project]/node_modules/next/dist/client/with-router.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1523
+ "use strict";
1524
+
1525
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
1526
+ "use strict";
1527
+ Object.defineProperty(exports, "__esModule", {
1528
+ value: true
1529
+ });
1530
+ Object.defineProperty(exports, "default", {
1531
+ enumerable: true,
1532
+ get: function() {
1533
+ return withRouter;
1534
+ }
1535
+ });
1536
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
1537
+ const _jsxruntime = __turbopack_context__.r("[project]/node_modules/react/jsx-runtime.js [client] (ecmascript)");
1538
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/react/index.js [client] (ecmascript)"));
1539
+ const _router = __turbopack_context__.r("[project]/node_modules/next/dist/client/router.js [client] (ecmascript)");
1540
+ function withRouter(ComposedComponent) {
1541
+ function WithRouterWrapper(props) {
1542
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(ComposedComponent, {
1543
+ router: (0, _router.useRouter)(),
1544
+ ...props
1545
+ });
1546
+ }
1547
+ WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps;
1548
+ WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps;
1549
+ if ("TURBOPACK compile-time truthy", 1) {
1550
+ const name = ComposedComponent.displayName || ComposedComponent.name || 'Unknown';
1551
+ WithRouterWrapper.displayName = `withRouter(${name})`;
1552
+ }
1553
+ return WithRouterWrapper;
1554
+ }
1555
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1556
+ Object.defineProperty(exports.default, '__esModule', {
1557
+ value: true
1558
+ });
1559
+ Object.assign(exports.default, exports);
1560
+ module.exports = exports.default;
1561
+ }
1562
+ }),
1563
+ "[project]/node_modules/next/dist/client/router.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1564
+ "use strict";
1565
+
1566
+ /* global window */ Object.defineProperty(exports, "__esModule", {
1567
+ value: true
1568
+ });
1569
+ 0 && (module.exports = {
1570
+ Router: null,
1571
+ createRouter: null,
1572
+ default: null,
1573
+ makePublicRouterInstance: null,
1574
+ useRouter: null,
1575
+ withRouter: null
1576
+ });
1577
+ function _export(target, all) {
1578
+ for(var name in all)Object.defineProperty(target, name, {
1579
+ enumerable: true,
1580
+ get: all[name]
1581
+ });
1582
+ }
1583
+ _export(exports, {
1584
+ Router: function() {
1585
+ return _router.default;
1586
+ },
1587
+ createRouter: function() {
1588
+ return createRouter;
1589
+ },
1590
+ // Export the singletonRouter and this is the public API.
1591
+ default: function() {
1592
+ return _default;
1593
+ },
1594
+ makePublicRouterInstance: function() {
1595
+ return makePublicRouterInstance;
1596
+ },
1597
+ useRouter: function() {
1598
+ return useRouter;
1599
+ },
1600
+ withRouter: function() {
1601
+ return _withrouter.default;
1602
+ }
1603
+ });
1604
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
1605
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/react/index.js [client] (ecmascript)"));
1606
+ const _router = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/router.js [client] (ecmascript)"));
1607
+ const _routercontextsharedruntime = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router-context.shared-runtime.js [client] (ecmascript)");
1608
+ const _iserror = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/lib/is-error.js [client] (ecmascript)"));
1609
+ const _withrouter = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/client/with-router.js [client] (ecmascript)"));
1610
+ const singletonRouter = {
1611
+ router: null,
1612
+ readyCallbacks: [],
1613
+ ready (callback) {
1614
+ if (this.router) return callback();
1615
+ if (typeof window !== 'undefined') {
1616
+ this.readyCallbacks.push(callback);
1617
+ }
1618
+ }
1619
+ };
1620
+ // Create public properties and methods of the router in the singletonRouter
1621
+ const urlPropertyFields = [
1622
+ 'pathname',
1623
+ 'route',
1624
+ 'query',
1625
+ 'asPath',
1626
+ 'components',
1627
+ 'isFallback',
1628
+ 'basePath',
1629
+ 'locale',
1630
+ 'locales',
1631
+ 'defaultLocale',
1632
+ 'isReady',
1633
+ 'isPreview',
1634
+ 'isLocaleDomain',
1635
+ 'domainLocales'
1636
+ ];
1637
+ const routerEvents = [
1638
+ 'routeChangeStart',
1639
+ 'beforeHistoryChange',
1640
+ 'routeChangeComplete',
1641
+ 'routeChangeError',
1642
+ 'hashChangeStart',
1643
+ 'hashChangeComplete'
1644
+ ];
1645
+ const coreMethodFields = [
1646
+ 'push',
1647
+ 'replace',
1648
+ 'reload',
1649
+ 'back',
1650
+ 'prefetch',
1651
+ 'beforePopState'
1652
+ ];
1653
+ // Events is a static property on the router, the router doesn't have to be initialized to use it
1654
+ Object.defineProperty(singletonRouter, 'events', {
1655
+ get () {
1656
+ return _router.default.events;
1657
+ }
1658
+ });
1659
+ function getRouter() {
1660
+ if (!singletonRouter.router) {
1661
+ const message = 'No router instance found.\n' + 'You should only use "next/router" on the client side of your app.\n';
1662
+ throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
1663
+ value: "E1044",
1664
+ enumerable: false,
1665
+ configurable: true
1666
+ });
1667
+ }
1668
+ return singletonRouter.router;
1669
+ }
1670
+ urlPropertyFields.forEach((field)=>{
1671
+ // Here we need to use Object.defineProperty because we need to return
1672
+ // the property assigned to the actual router
1673
+ // The value might get changed as we change routes and this is the
1674
+ // proper way to access it
1675
+ Object.defineProperty(singletonRouter, field, {
1676
+ get () {
1677
+ const router = getRouter();
1678
+ return router[field];
1679
+ }
1680
+ });
1681
+ });
1682
+ coreMethodFields.forEach((field)=>{
1683
+ // We don't really know the types here, so we add them later instead
1684
+ ;
1685
+ singletonRouter[field] = (...args)=>{
1686
+ const router = getRouter();
1687
+ return router[field](...args);
1688
+ };
1689
+ });
1690
+ routerEvents.forEach((event)=>{
1691
+ singletonRouter.ready(()=>{
1692
+ _router.default.events.on(event, (...args)=>{
1693
+ const eventField = `on${event.charAt(0).toUpperCase()}${event.substring(1)}`;
1694
+ const _singletonRouter = singletonRouter;
1695
+ if (_singletonRouter[eventField]) {
1696
+ try {
1697
+ _singletonRouter[eventField](...args);
1698
+ } catch (err) {
1699
+ console.error(`Error when running the Router event: ${eventField}`);
1700
+ console.error((0, _iserror.default)(err) ? `${err.message}\n${err.stack}` : err + '');
1701
+ }
1702
+ }
1703
+ });
1704
+ });
1705
+ });
1706
+ const _default = singletonRouter;
1707
+ function useRouter() {
1708
+ const router = _react.default.useContext(_routercontextsharedruntime.RouterContext);
1709
+ if (!router) {
1710
+ throw Object.defineProperty(new Error('NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted'), "__NEXT_ERROR_CODE", {
1711
+ value: "E509",
1712
+ enumerable: false,
1713
+ configurable: true
1714
+ });
1715
+ }
1716
+ return router;
1717
+ }
1718
+ function createRouter(...args) {
1719
+ singletonRouter.router = new _router.default(...args);
1720
+ singletonRouter.readyCallbacks.forEach((cb)=>cb());
1721
+ singletonRouter.readyCallbacks = [];
1722
+ return singletonRouter.router;
1723
+ }
1724
+ function makePublicRouterInstance(router) {
1725
+ const scopedRouter = router;
1726
+ const instance = {};
1727
+ for (const property of urlPropertyFields){
1728
+ if (typeof scopedRouter[property] === 'object') {
1729
+ instance[property] = Object.assign(Array.isArray(scopedRouter[property]) ? [] : {}, scopedRouter[property]) // makes sure query is not stateful
1730
+ ;
1731
+ continue;
1732
+ }
1733
+ instance[property] = scopedRouter[property];
1734
+ }
1735
+ // Events is a static property on the router, the router doesn't have to be initialized to use it
1736
+ instance.events = _router.default.events;
1737
+ coreMethodFields.forEach((field)=>{
1738
+ instance[field] = (...args)=>{
1739
+ return scopedRouter[field](...args);
1740
+ };
1741
+ });
1742
+ return instance;
1743
+ }
1744
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1745
+ Object.defineProperty(exports.default, '__esModule', {
1746
+ value: true
1747
+ });
1748
+ Object.assign(exports.default, exports);
1749
+ module.exports = exports.default;
1750
+ }
1751
+ }),
1752
+ "[project]/node_modules/next/dist/client/route-announcer.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1753
+ "use strict";
1754
+
1755
+ Object.defineProperty(exports, "__esModule", {
1756
+ value: true
1757
+ });
1758
+ 0 && (module.exports = {
1759
+ RouteAnnouncer: null,
1760
+ default: null
1761
+ });
1762
+ function _export(target, all) {
1763
+ for(var name in all)Object.defineProperty(target, name, {
1764
+ enumerable: true,
1765
+ get: all[name]
1766
+ });
1767
+ }
1768
+ _export(exports, {
1769
+ RouteAnnouncer: function() {
1770
+ return RouteAnnouncer;
1771
+ },
1772
+ default: function() {
1773
+ return _default;
1774
+ }
1775
+ });
1776
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
1777
+ const _jsxruntime = __turbopack_context__.r("[project]/node_modules/react/jsx-runtime.js [client] (ecmascript)");
1778
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/react/index.js [client] (ecmascript)"));
1779
+ const _router = __turbopack_context__.r("[project]/node_modules/next/dist/client/router.js [client] (ecmascript)");
1780
+ const nextjsRouteAnnouncerStyles = {
1781
+ border: 0,
1782
+ clip: 'rect(0 0 0 0)',
1783
+ height: '1px',
1784
+ margin: '-1px',
1785
+ overflow: 'hidden',
1786
+ padding: 0,
1787
+ position: 'absolute',
1788
+ top: 0,
1789
+ width: '1px',
1790
+ // https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
1791
+ whiteSpace: 'nowrap',
1792
+ wordWrap: 'normal'
1793
+ };
1794
+ const RouteAnnouncer = ()=>{
1795
+ const { asPath } = (0, _router.useRouter)();
1796
+ const [routeAnnouncement, setRouteAnnouncement] = _react.default.useState('');
1797
+ // Only announce the path change, but not for the first load because screen
1798
+ // reader will do that automatically.
1799
+ const previouslyLoadedPath = _react.default.useRef(asPath);
1800
+ // Every time the path changes, announce the new page’s title following this
1801
+ // priority: first the document title (from head), otherwise the first h1, or
1802
+ // if none of these exist, then the pathname from the URL. This methodology is
1803
+ // inspired by Marcy Sutton’s accessible client routing user testing. More
1804
+ // information can be found here:
1805
+ // https://www.gatsbyjs.com/blog/2019-07-11-user-testing-accessible-client-routing/
1806
+ _react.default.useEffect({
1807
+ "RouteAnnouncer.useEffect": ()=>{
1808
+ // If the path hasn't change, we do nothing.
1809
+ if (previouslyLoadedPath.current === asPath) return;
1810
+ previouslyLoadedPath.current = asPath;
1811
+ if (document.title) {
1812
+ setRouteAnnouncement(document.title);
1813
+ } else {
1814
+ const pageHeader = document.querySelector('h1');
1815
+ const content = pageHeader?.innerText ?? pageHeader?.textContent;
1816
+ setRouteAnnouncement(content || asPath);
1817
+ }
1818
+ }
1819
+ }["RouteAnnouncer.useEffect"], [
1820
+ asPath
1821
+ ]);
1822
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("p", {
1823
+ "aria-live": "assertive" // Make the announcement immediately.
1824
+ ,
1825
+ id: "__next-route-announcer__",
1826
+ role: "alert",
1827
+ style: nextjsRouteAnnouncerStyles,
1828
+ children: routeAnnouncement
1829
+ });
1830
+ };
1831
+ const _default = RouteAnnouncer;
1832
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1833
+ Object.defineProperty(exports.default, '__esModule', {
1834
+ value: true
1835
+ });
1836
+ Object.assign(exports.default, exports);
1837
+ module.exports = exports.default;
1838
+ }
1839
+ }),
1840
+ "[project]/node_modules/next/dist/client/components/readonly-url-search-params.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1841
+ "use strict";
1842
+
1843
+ /**
1844
+ * ReadonlyURLSearchParams implementation shared between client and server.
1845
+ * This file is intentionally not marked as 'use client' or 'use server'
1846
+ * so it can be imported by both environments.
1847
+ */ /** @internal */ Object.defineProperty(exports, "__esModule", {
1848
+ value: true
1849
+ });
1850
+ Object.defineProperty(exports, "ReadonlyURLSearchParams", {
1851
+ enumerable: true,
1852
+ get: function() {
1853
+ return ReadonlyURLSearchParams;
1854
+ }
1855
+ });
1856
+ class ReadonlyURLSearchParamsError extends Error {
1857
+ constructor(){
1858
+ super('Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams');
1859
+ }
1860
+ }
1861
+ class ReadonlyURLSearchParams extends URLSearchParams {
1862
+ /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ append() {
1863
+ throw new ReadonlyURLSearchParamsError();
1864
+ }
1865
+ /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ delete() {
1866
+ throw new ReadonlyURLSearchParamsError();
1867
+ }
1868
+ /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ set() {
1869
+ throw new ReadonlyURLSearchParamsError();
1870
+ }
1871
+ /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ sort() {
1872
+ throw new ReadonlyURLSearchParamsError();
1873
+ }
1874
+ }
1875
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1876
+ Object.defineProperty(exports.default, '__esModule', {
1877
+ value: true
1878
+ });
1879
+ Object.assign(exports.default, exports);
1880
+ module.exports = exports.default;
1881
+ }
1882
+ }),
1883
+ "[project]/node_modules/next/dist/client/react-client-callbacks/report-global-error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1884
+ "use strict";
1885
+
1886
+ Object.defineProperty(exports, "__esModule", {
1887
+ value: true
1888
+ });
1889
+ Object.defineProperty(exports, "reportGlobalError", {
1890
+ enumerable: true,
1891
+ get: function() {
1892
+ return reportGlobalError;
1893
+ }
1894
+ });
1895
+ const reportGlobalError = typeof reportError === 'function' ? reportError : (error)=>{
1896
+ // TODO: Dispatch error event
1897
+ globalThis.console.error(error);
1898
+ };
1899
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1900
+ Object.defineProperty(exports.default, '__esModule', {
1901
+ value: true
1902
+ });
1903
+ Object.assign(exports.default, exports);
1904
+ module.exports = exports.default;
1905
+ }
1906
+ }),
1907
+ "[project]/node_modules/next/dist/client/react-client-callbacks/on-recoverable-error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1908
+ "use strict";
1909
+
1910
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
1911
+ // This module can be shared between both pages router and app router
1912
+ "use strict";
1913
+ Object.defineProperty(exports, "__esModule", {
1914
+ value: true
1915
+ });
1916
+ 0 && (module.exports = {
1917
+ isRecoverableError: null,
1918
+ onRecoverableError: null
1919
+ });
1920
+ function _export(target, all) {
1921
+ for(var name in all)Object.defineProperty(target, name, {
1922
+ enumerable: true,
1923
+ get: all[name]
1924
+ });
1925
+ }
1926
+ _export(exports, {
1927
+ isRecoverableError: function() {
1928
+ return isRecoverableError;
1929
+ },
1930
+ onRecoverableError: function() {
1931
+ return onRecoverableError;
1932
+ }
1933
+ });
1934
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
1935
+ const _bailouttocsr = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js [client] (ecmascript)");
1936
+ const _iserror = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/lib/is-error.js [client] (ecmascript)"));
1937
+ const _reportglobalerror = __turbopack_context__.r("[project]/node_modules/next/dist/client/react-client-callbacks/report-global-error.js [client] (ecmascript)");
1938
+ const recoverableErrors = new WeakSet();
1939
+ const isInstantTest = ("TURBOPACK compile-time value", true) && typeof self !== 'undefined' && !!self.__next_instant_test;
1940
+ function isRecoverableError(error) {
1941
+ return recoverableErrors.has(error);
1942
+ }
1943
+ const onRecoverableError = (error)=>{
1944
+ // x-ref: https://github.com/facebook/react/pull/28736
1945
+ let cause = (0, _iserror.default)(error) && 'cause' in error ? error.cause : error;
1946
+ // Skip certain custom errors which are not expected to be reported on client
1947
+ if ((0, _bailouttocsr.isBailoutToCSRError)(cause)) return;
1948
+ // Instant Navigation Testing API: suppress "server could not finish this
1949
+ // Suspense boundary" errors (React error #419) during instant test mode.
1950
+ // The static shell intentionally has incomplete Suspense boundaries — React
1951
+ // correctly falls back to client rendering, which is expected.
1952
+ if (isInstantTest) {
1953
+ if ((0, _iserror.default)(cause)) {
1954
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
1955
+ ;
1956
+ else {
1957
+ if (cause.message.includes('could not finish this Suspense boundary')) return;
1958
+ }
1959
+ }
1960
+ }
1961
+ if ("TURBOPACK compile-time truthy", 1) {
1962
+ const { decorateDevError } = __turbopack_context__.r("[project]/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js [client] (ecmascript)");
1963
+ const causeError = decorateDevError(cause);
1964
+ recoverableErrors.add(causeError);
1965
+ cause = causeError;
1966
+ }
1967
+ (0, _reportglobalerror.reportGlobalError)(cause);
1968
+ };
1969
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1970
+ Object.defineProperty(exports.default, '__esModule', {
1971
+ value: true
1972
+ });
1973
+ Object.assign(exports.default, exports);
1974
+ module.exports = exports.default;
1975
+ }
1976
+ }),
1977
+ "[project]/node_modules/next/dist/client/tracing/tracer.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1978
+ "use strict";
1979
+
1980
+ Object.defineProperty(exports, "__esModule", {
1981
+ value: true
1982
+ });
1983
+ Object.defineProperty(exports, "default", {
1984
+ enumerable: true,
1985
+ get: function() {
1986
+ return _default;
1987
+ }
1988
+ });
1989
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
1990
+ const _mitt = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/mitt.js [client] (ecmascript)"));
1991
+ class Span {
1992
+ constructor(name, options, onSpanEnd){
1993
+ this.name = name;
1994
+ this.attributes = options.attributes ?? {};
1995
+ this.startTime = options.startTime ?? Date.now();
1996
+ this.onSpanEnd = onSpanEnd;
1997
+ this.state = {
1998
+ state: 'inprogress'
1999
+ };
2000
+ }
2001
+ end(endTime) {
2002
+ if (this.state.state === 'ended') {
2003
+ throw Object.defineProperty(new Error('Span has already ended'), "__NEXT_ERROR_CODE", {
2004
+ value: "E17",
2005
+ enumerable: false,
2006
+ configurable: true
2007
+ });
2008
+ }
2009
+ this.state = {
2010
+ state: 'ended',
2011
+ endTime: endTime ?? Date.now()
2012
+ };
2013
+ this.onSpanEnd(this);
2014
+ }
2015
+ }
2016
+ class Tracer {
2017
+ startSpan(name, options) {
2018
+ return new Span(name, options, this.handleSpanEnd);
2019
+ }
2020
+ onSpanEnd(cb) {
2021
+ this._emitter.on('spanend', cb);
2022
+ return ()=>{
2023
+ this._emitter.off('spanend', cb);
2024
+ };
2025
+ }
2026
+ constructor(){
2027
+ this._emitter = (0, _mitt.default)();
2028
+ this.handleSpanEnd = (span)=>{
2029
+ this._emitter.emit('spanend', span);
2030
+ };
2031
+ }
2032
+ }
2033
+ const _default = new Tracer();
2034
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2035
+ Object.defineProperty(exports.default, '__esModule', {
2036
+ value: true
2037
+ });
2038
+ Object.assign(exports.default, exports);
2039
+ module.exports = exports.default;
2040
+ }
2041
+ }),
2042
+ "[project]/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2043
+ "use strict";
2044
+
2045
+ Object.defineProperty(exports, "__esModule", {
2046
+ value: true
2047
+ });
2048
+ 0 && (module.exports = {
2049
+ HTTPAccessErrorStatus: null,
2050
+ HTTP_ERROR_FALLBACK_ERROR_CODE: null,
2051
+ getAccessFallbackErrorTypeByStatus: null,
2052
+ getAccessFallbackHTTPStatus: null,
2053
+ isHTTPAccessFallbackError: null
2054
+ });
2055
+ function _export(target, all) {
2056
+ for(var name in all)Object.defineProperty(target, name, {
2057
+ enumerable: true,
2058
+ get: all[name]
2059
+ });
2060
+ }
2061
+ _export(exports, {
2062
+ HTTPAccessErrorStatus: function() {
2063
+ return HTTPAccessErrorStatus;
2064
+ },
2065
+ HTTP_ERROR_FALLBACK_ERROR_CODE: function() {
2066
+ return HTTP_ERROR_FALLBACK_ERROR_CODE;
2067
+ },
2068
+ getAccessFallbackErrorTypeByStatus: function() {
2069
+ return getAccessFallbackErrorTypeByStatus;
2070
+ },
2071
+ getAccessFallbackHTTPStatus: function() {
2072
+ return getAccessFallbackHTTPStatus;
2073
+ },
2074
+ isHTTPAccessFallbackError: function() {
2075
+ return isHTTPAccessFallbackError;
2076
+ }
2077
+ });
2078
+ const HTTPAccessErrorStatus = {
2079
+ NOT_FOUND: 404,
2080
+ FORBIDDEN: 403,
2081
+ UNAUTHORIZED: 401
2082
+ };
2083
+ const ALLOWED_CODES = new Set(Object.values(HTTPAccessErrorStatus));
2084
+ const HTTP_ERROR_FALLBACK_ERROR_CODE = 'NEXT_HTTP_ERROR_FALLBACK';
2085
+ function isHTTPAccessFallbackError(error) {
2086
+ if (typeof error !== 'object' || error === null || !('digest' in error) || typeof error.digest !== 'string') {
2087
+ return false;
2088
+ }
2089
+ const [prefix, httpStatus] = error.digest.split(';');
2090
+ return prefix === HTTP_ERROR_FALLBACK_ERROR_CODE && ALLOWED_CODES.has(Number(httpStatus));
2091
+ }
2092
+ function getAccessFallbackHTTPStatus(error) {
2093
+ const httpStatus = error.digest.split(';')[1];
2094
+ return Number(httpStatus);
2095
+ }
2096
+ function getAccessFallbackErrorTypeByStatus(status) {
2097
+ switch(status){
2098
+ case 401:
2099
+ return 'unauthorized';
2100
+ case 403:
2101
+ return 'forbidden';
2102
+ case 404:
2103
+ return 'not-found';
2104
+ default:
2105
+ return;
2106
+ }
2107
+ }
2108
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2109
+ Object.defineProperty(exports.default, '__esModule', {
2110
+ value: true
2111
+ });
2112
+ Object.assign(exports.default, exports);
2113
+ module.exports = exports.default;
2114
+ }
2115
+ }),
2116
+ "[project]/node_modules/next/dist/client/components/redirect-status-code.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2117
+ "use strict";
2118
+
2119
+ Object.defineProperty(exports, "__esModule", {
2120
+ value: true
2121
+ });
2122
+ Object.defineProperty(exports, "RedirectStatusCode", {
2123
+ enumerable: true,
2124
+ get: function() {
2125
+ return RedirectStatusCode;
2126
+ }
2127
+ });
2128
+ var RedirectStatusCode = /*#__PURE__*/ function(RedirectStatusCode) {
2129
+ RedirectStatusCode[RedirectStatusCode["SeeOther"] = 303] = "SeeOther";
2130
+ RedirectStatusCode[RedirectStatusCode["TemporaryRedirect"] = 307] = "TemporaryRedirect";
2131
+ RedirectStatusCode[RedirectStatusCode["PermanentRedirect"] = 308] = "PermanentRedirect";
2132
+ return RedirectStatusCode;
2133
+ }({});
2134
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2135
+ Object.defineProperty(exports.default, '__esModule', {
2136
+ value: true
2137
+ });
2138
+ Object.assign(exports.default, exports);
2139
+ module.exports = exports.default;
2140
+ }
2141
+ }),
2142
+ "[project]/node_modules/next/dist/client/components/redirect-error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2143
+ "use strict";
2144
+
2145
+ Object.defineProperty(exports, "__esModule", {
2146
+ value: true
2147
+ });
2148
+ 0 && (module.exports = {
2149
+ REDIRECT_ERROR_CODE: null,
2150
+ isRedirectError: null
2151
+ });
2152
+ function _export(target, all) {
2153
+ for(var name in all)Object.defineProperty(target, name, {
2154
+ enumerable: true,
2155
+ get: all[name]
2156
+ });
2157
+ }
2158
+ _export(exports, {
2159
+ REDIRECT_ERROR_CODE: function() {
2160
+ return REDIRECT_ERROR_CODE;
2161
+ },
2162
+ isRedirectError: function() {
2163
+ return isRedirectError;
2164
+ }
2165
+ });
2166
+ const _redirectstatuscode = __turbopack_context__.r("[project]/node_modules/next/dist/client/components/redirect-status-code.js [client] (ecmascript)");
2167
+ const REDIRECT_ERROR_CODE = 'NEXT_REDIRECT';
2168
+ function isRedirectError(error) {
2169
+ if (typeof error !== 'object' || error === null || !('digest' in error) || typeof error.digest !== 'string') {
2170
+ return false;
2171
+ }
2172
+ const digest = error.digest.split(';');
2173
+ const [errorCode, type] = digest;
2174
+ const destination = digest.slice(2, -2).join(';');
2175
+ const status = digest.at(-2);
2176
+ const statusCode = Number(status);
2177
+ return errorCode === REDIRECT_ERROR_CODE && (type === 'replace' || type === 'push') && typeof destination === 'string' && !isNaN(statusCode) && statusCode in _redirectstatuscode.RedirectStatusCode;
2178
+ }
2179
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2180
+ Object.defineProperty(exports.default, '__esModule', {
2181
+ value: true
2182
+ });
2183
+ Object.assign(exports.default, exports);
2184
+ module.exports = exports.default;
2185
+ }
2186
+ }),
2187
+ "[project]/node_modules/next/dist/client/components/is-next-router-error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2188
+ "use strict";
2189
+
2190
+ Object.defineProperty(exports, "__esModule", {
2191
+ value: true
2192
+ });
2193
+ Object.defineProperty(exports, "isNextRouterError", {
2194
+ enumerable: true,
2195
+ get: function() {
2196
+ return isNextRouterError;
2197
+ }
2198
+ });
2199
+ const _httpaccessfallback = __turbopack_context__.r("[project]/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js [client] (ecmascript)");
2200
+ const _redirecterror = __turbopack_context__.r("[project]/node_modules/next/dist/client/components/redirect-error.js [client] (ecmascript)");
2201
+ function isNextRouterError(error) {
2202
+ return (0, _redirecterror.isRedirectError)(error) || (0, _httpaccessfallback.isHTTPAccessFallbackError)(error);
2203
+ }
2204
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2205
+ Object.defineProperty(exports.default, '__esModule', {
2206
+ value: true
2207
+ });
2208
+ Object.assign(exports.default, exports);
2209
+ module.exports = exports.default;
2210
+ }
2211
+ }),
2212
+ "[project]/node_modules/next/dist/client/dev/hot-reloader/get-socket-url.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2213
+ "use strict";
2214
+
2215
+ Object.defineProperty(exports, "__esModule", {
2216
+ value: true
2217
+ });
2218
+ Object.defineProperty(exports, "getSocketUrl", {
2219
+ enumerable: true,
2220
+ get: function() {
2221
+ return getSocketUrl;
2222
+ }
2223
+ });
2224
+ const _normalizedassetprefix = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/normalized-asset-prefix.js [client] (ecmascript)");
2225
+ function getSocketProtocol(assetPrefix) {
2226
+ let protocol = window.location.protocol;
2227
+ try {
2228
+ // assetPrefix is a url
2229
+ protocol = new URL(assetPrefix).protocol;
2230
+ } catch {}
2231
+ return protocol === 'http:' ? 'ws:' : 'wss:';
2232
+ }
2233
+ function getSocketUrl(assetPrefix) {
2234
+ const prefix = (0, _normalizedassetprefix.normalizedAssetPrefix)(assetPrefix);
2235
+ const protocol = getSocketProtocol(assetPrefix || '');
2236
+ if (URL.canParse(prefix)) {
2237
+ // since normalized asset prefix is ensured to be a URL format,
2238
+ // we can safely replace the protocol
2239
+ return prefix.replace(/^http/, 'ws');
2240
+ }
2241
+ const { hostname, port } = window.location;
2242
+ return `${protocol}//${hostname}${port ? `:${port}` : ''}${prefix}`;
2243
+ }
2244
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2245
+ Object.defineProperty(exports.default, '__esModule', {
2246
+ value: true
2247
+ });
2248
+ Object.assign(exports.default, exports);
2249
+ module.exports = exports.default;
2250
+ }
2251
+ }),
2252
+ "[project]/node_modules/next/dist/client/dev/hot-reloader/pages/websocket.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2253
+ "use strict";
2254
+
2255
+ Object.defineProperty(exports, "__esModule", {
2256
+ value: true
2257
+ });
2258
+ 0 && (module.exports = {
2259
+ addMessageListener: null,
2260
+ connectHMR: null,
2261
+ sendMessage: null
2262
+ });
2263
+ function _export(target, all) {
2264
+ for(var name in all)Object.defineProperty(target, name, {
2265
+ enumerable: true,
2266
+ get: all[name]
2267
+ });
2268
+ }
2269
+ _export(exports, {
2270
+ addMessageListener: function() {
2271
+ return addMessageListener;
2272
+ },
2273
+ connectHMR: function() {
2274
+ return connectHMR;
2275
+ },
2276
+ sendMessage: function() {
2277
+ return sendMessage;
2278
+ }
2279
+ });
2280
+ const _forwardlogs = __turbopack_context__.r("[project]/node_modules/next/dist/next-devtools/userspace/app/forward-logs.js [client] (ecmascript)");
2281
+ const _hotreloadertypes = __turbopack_context__.r("[project]/node_modules/next/dist/server/dev/hot-reloader-types.js [client] (ecmascript)");
2282
+ const _getsocketurl = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-reloader/get-socket-url.js [client] (ecmascript)");
2283
+ const _constants = __turbopack_context__.r("[project]/node_modules/next/dist/lib/constants.js [client] (ecmascript)");
2284
+ let source;
2285
+ const messageCallbacks = [];
2286
+ function addMessageListener(callback) {
2287
+ messageCallbacks.push(callback);
2288
+ }
2289
+ function sendMessage(data) {
2290
+ if (!source || source.readyState !== source.OPEN) return;
2291
+ return source.send(data);
2292
+ }
2293
+ let reconnections = 0;
2294
+ let reloading = false;
2295
+ let serverSessionId = null;
2296
+ function connectHMR(options) {
2297
+ let timer;
2298
+ function init() {
2299
+ if (source) source.close();
2300
+ function handleOnline() {
2301
+ _forwardlogs.logQueue.onSocketReady(source);
2302
+ reconnections = 0;
2303
+ window.console.log('[HMR] connected');
2304
+ }
2305
+ function handleMessage(event) {
2306
+ // While the page is reloading, don't respond to any more messages.
2307
+ // On reconnect, the server may send an empty list of changes if it was restarted.
2308
+ if (reloading) {
2309
+ return;
2310
+ }
2311
+ const message = JSON.parse(event.data);
2312
+ if (message.type === _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_CONNECTED) {
2313
+ if (serverSessionId !== null && serverSessionId !== message.data.sessionId) {
2314
+ // Either the server's session id has changed and it's a new server, or
2315
+ // it's been too long since we disconnected and we should reload the page.
2316
+ // There could be 1) unhandled server errors and/or 2) stale content.
2317
+ // Perform a hard reload of the page.
2318
+ window.location.reload();
2319
+ reloading = true;
2320
+ return;
2321
+ }
2322
+ serverSessionId = message.data.sessionId;
2323
+ }
2324
+ for (const messageCallback of messageCallbacks){
2325
+ messageCallback(message);
2326
+ }
2327
+ }
2328
+ function handleDisconnect() {
2329
+ source.onerror = null;
2330
+ source.onclose = null;
2331
+ source.close();
2332
+ reconnections++;
2333
+ // After 25 reconnects we'll want to reload the page as it indicates the dev server is no longer running.
2334
+ if (reconnections > _constants.WEB_SOCKET_MAX_RECONNECTIONS) {
2335
+ reloading = true;
2336
+ window.location.reload();
2337
+ return;
2338
+ }
2339
+ clearTimeout(timer);
2340
+ // Try again after 5 seconds
2341
+ timer = setTimeout(init, reconnections > 5 ? 5000 : 1000);
2342
+ }
2343
+ const url = (0, _getsocketurl.getSocketUrl)(options.assetPrefix);
2344
+ source = new window.WebSocket(`${url}${options.path}`);
2345
+ source.onopen = handleOnline;
2346
+ source.onerror = handleDisconnect;
2347
+ source.onclose = handleDisconnect;
2348
+ source.onmessage = handleMessage;
2349
+ }
2350
+ init();
2351
+ }
2352
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2353
+ Object.defineProperty(exports.default, '__esModule', {
2354
+ value: true
2355
+ });
2356
+ Object.assign(exports.default, exports);
2357
+ module.exports = exports.default;
2358
+ }
2359
+ }),
2360
+ "[project]/node_modules/next/dist/client/dev/hot-reloader/shared.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2361
+ "use strict";
2362
+
2363
+ Object.defineProperty(exports, "__esModule", {
2364
+ value: true
2365
+ });
2366
+ 0 && (module.exports = {
2367
+ REACT_REFRESH_FULL_RELOAD: null,
2368
+ REACT_REFRESH_FULL_RELOAD_FROM_ERROR: null,
2369
+ reportInvalidHmrMessage: null
2370
+ });
2371
+ function _export(target, all) {
2372
+ for(var name in all)Object.defineProperty(target, name, {
2373
+ enumerable: true,
2374
+ get: all[name]
2375
+ });
2376
+ }
2377
+ _export(exports, {
2378
+ REACT_REFRESH_FULL_RELOAD: function() {
2379
+ return REACT_REFRESH_FULL_RELOAD;
2380
+ },
2381
+ REACT_REFRESH_FULL_RELOAD_FROM_ERROR: function() {
2382
+ return REACT_REFRESH_FULL_RELOAD_FROM_ERROR;
2383
+ },
2384
+ reportInvalidHmrMessage: function() {
2385
+ return reportInvalidHmrMessage;
2386
+ }
2387
+ });
2388
+ const REACT_REFRESH_FULL_RELOAD = '[Fast Refresh] performing full reload\n\n' + "Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree.\n" + 'You might have a file which exports a React component but also exports a value that is imported by a non-React component file.\n' + 'Consider migrating the non-React component export to a separate file and importing it into both files.\n\n' + 'It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh.\n' + 'Fast Refresh requires at least one parent function component in your React tree.';
2389
+ const REACT_REFRESH_FULL_RELOAD_FROM_ERROR = '[Fast Refresh] performing full reload because your application had an unrecoverable error';
2390
+ function reportInvalidHmrMessage(message, err) {
2391
+ console.warn('[HMR] Invalid message: ' + JSON.stringify(message) + '\n' + (err instanceof Error && err?.stack || ''));
2392
+ }
2393
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2394
+ Object.defineProperty(exports.default, '__esModule', {
2395
+ value: true
2396
+ });
2397
+ Object.assign(exports.default, exports);
2398
+ module.exports = exports.default;
2399
+ }
2400
+ }),
2401
+ "[project]/node_modules/next/dist/client/dev/runtime-error-handler.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2402
+ "use strict";
2403
+
2404
+ Object.defineProperty(exports, "__esModule", {
2405
+ value: true
2406
+ });
2407
+ Object.defineProperty(exports, "RuntimeErrorHandler", {
2408
+ enumerable: true,
2409
+ get: function() {
2410
+ return RuntimeErrorHandler;
2411
+ }
2412
+ });
2413
+ const RuntimeErrorHandler = {
2414
+ hadRuntimeError: false
2415
+ };
2416
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2417
+ Object.defineProperty(exports.default, '__esModule', {
2418
+ value: true
2419
+ });
2420
+ Object.assign(exports.default, exports);
2421
+ module.exports = exports.default;
2422
+ }
2423
+ }),
2424
+ "[project]/node_modules/next/dist/client/dev/report-hmr-latency.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2425
+ "use strict";
2426
+
2427
+ Object.defineProperty(exports, "__esModule", {
2428
+ value: true
2429
+ });
2430
+ Object.defineProperty(exports, /**
2431
+ * Logs information about a completed HMR to the console, the server (via a
2432
+ * `client-hmr-latency` event), and to `self.__NEXT_HMR_LATENCY_CB` (a debugging
2433
+ * hook).
2434
+ *
2435
+ * @param hasUpdate Set this to `false` to avoid reporting the HMR event via a
2436
+ * `client-hmr-latency` event or to `self.__NEXT_HMR_LATENCY_CB`. Used by
2437
+ * turbopack when we must report a message to the browser console (because we
2438
+ * already logged a "rebuilding" message), but it's not a real HMR, so we
2439
+ * don't want to impact our telemetry.
2440
+ */ "default", {
2441
+ enumerable: true,
2442
+ get: function() {
2443
+ return reportHmrLatency;
2444
+ }
2445
+ });
2446
+ function reportHmrLatency(sendMessage, updatedModules, startMsSinceEpoch, endMsSinceEpoch, hasUpdate = true) {
2447
+ const latencyMs = endMsSinceEpoch - startMsSinceEpoch;
2448
+ console.log(`[Fast Refresh] done in ${latencyMs}ms`);
2449
+ if (!hasUpdate) {
2450
+ return;
2451
+ }
2452
+ sendMessage(JSON.stringify({
2453
+ event: 'client-hmr-latency',
2454
+ id: window.__nextDevClientId,
2455
+ startTime: startMsSinceEpoch,
2456
+ endTime: endMsSinceEpoch,
2457
+ page: window.location.pathname,
2458
+ updatedModules,
2459
+ // Whether the page (tab) was hidden at the time the event occurred.
2460
+ // This can impact the accuracy of the event's timing.
2461
+ isPageHidden: document.visibilityState === 'hidden'
2462
+ }));
2463
+ if (self.__NEXT_HMR_LATENCY_CB) {
2464
+ self.__NEXT_HMR_LATENCY_CB(latencyMs);
2465
+ }
2466
+ }
2467
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2468
+ Object.defineProperty(exports.default, '__esModule', {
2469
+ value: true
2470
+ });
2471
+ Object.assign(exports.default, exports);
2472
+ module.exports = exports.default;
2473
+ }
2474
+ }),
2475
+ "[project]/node_modules/next/dist/client/dev/hot-reloader/turbopack-hot-reloader-common.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2476
+ "use strict";
2477
+
2478
+ Object.defineProperty(exports, "__esModule", {
2479
+ value: true
2480
+ });
2481
+ Object.defineProperty(exports, "TurbopackHmr", {
2482
+ enumerable: true,
2483
+ get: function() {
2484
+ return TurbopackHmr;
2485
+ }
2486
+ });
2487
+ // How long to wait before reporting the HMR start, used to suppress irrelevant
2488
+ // `BUILDING` events. Does not impact reported latency.
2489
+ const TURBOPACK_HMR_START_DELAY_MS = 100;
2490
+ class TurbopackHmr {
2491
+ #updatedModules;
2492
+ #startMsSinceEpoch;
2493
+ #lastUpdateMsSinceEpoch;
2494
+ #deferredReportHmrStartId;
2495
+ #reportedHmrStart;
2496
+ constructor(){
2497
+ this.#updatedModules = new Set();
2498
+ this.#reportedHmrStart = false;
2499
+ }
2500
+ // HACK: Turbopack tends to generate a lot of irrelevant "BUILDING" actions,
2501
+ // as it reports *any* compilation, including fully no-op/cached compilations
2502
+ // and those unrelated to HMR. Fixing this would require significant
2503
+ // architectural changes.
2504
+ //
2505
+ // Work around this by deferring any "rebuilding" message by 100ms. If we get
2506
+ // a BUILT event within that threshold and nothing has changed, just suppress
2507
+ // the message entirely.
2508
+ #runDeferredReportHmrStart() {
2509
+ if (this.#deferredReportHmrStartId != null) {
2510
+ console.log('[Fast Refresh] rebuilding');
2511
+ this.#reportedHmrStart = true;
2512
+ this.#cancelDeferredReportHmrStart();
2513
+ }
2514
+ }
2515
+ #cancelDeferredReportHmrStart() {
2516
+ clearTimeout(this.#deferredReportHmrStartId);
2517
+ this.#deferredReportHmrStartId = undefined;
2518
+ }
2519
+ onBuilding() {
2520
+ this.#lastUpdateMsSinceEpoch = undefined;
2521
+ this.#cancelDeferredReportHmrStart();
2522
+ this.#startMsSinceEpoch = Date.now();
2523
+ // report the HMR start after a short delay
2524
+ this.#deferredReportHmrStartId = setTimeout(()=>this.#runDeferredReportHmrStart(), self.__NEXT_HMR_TURBOPACK_REPORT_NOISY_NOOP_EVENTS ? 0 : TURBOPACK_HMR_START_DELAY_MS);
2525
+ }
2526
+ /** Helper for other `onEvent` methods. */ #onUpdate() {
2527
+ this.#runDeferredReportHmrStart();
2528
+ this.#lastUpdateMsSinceEpoch = Date.now();
2529
+ }
2530
+ onTurbopackMessage(msg) {
2531
+ this.#onUpdate();
2532
+ const updatedModules = extractModulesFromTurbopackMessage(msg.data);
2533
+ for (const module1 of updatedModules){
2534
+ this.#updatedModules.add(module1);
2535
+ }
2536
+ }
2537
+ onServerComponentChanges() {
2538
+ this.#onUpdate();
2539
+ }
2540
+ onReloadPage() {
2541
+ this.#onUpdate();
2542
+ }
2543
+ onPageAddRemove() {
2544
+ this.#onUpdate();
2545
+ }
2546
+ /**
2547
+ * @returns `null` if the caller should ignore the update entirely. Returns an
2548
+ * object with `hasUpdates: false` if the caller should report the end of
2549
+ * the HMR in the browser console, but the HMR was a no-op.
2550
+ */ onBuilt() {
2551
+ // Check that we got *any* `TurbopackMessage`, even if
2552
+ // `updatedModules` is empty (not everything gets recorded there).
2553
+ //
2554
+ // There's also a case where `onBuilt` gets called before `onBuilding`,
2555
+ // which can happen during initial page load. Ignore that too!
2556
+ const hasUpdates = this.#lastUpdateMsSinceEpoch != null && this.#startMsSinceEpoch != null;
2557
+ if (!hasUpdates && !this.#reportedHmrStart) {
2558
+ // suppress the update entirely
2559
+ this.#cancelDeferredReportHmrStart();
2560
+ return null;
2561
+ }
2562
+ this.#runDeferredReportHmrStart();
2563
+ const result = {
2564
+ hasUpdates,
2565
+ updatedModules: this.#updatedModules,
2566
+ startMsSinceEpoch: this.#startMsSinceEpoch,
2567
+ endMsSinceEpoch: this.#lastUpdateMsSinceEpoch ?? Date.now()
2568
+ };
2569
+ this.#updatedModules = new Set();
2570
+ this.#reportedHmrStart = false;
2571
+ return result;
2572
+ }
2573
+ }
2574
+ function extractModulesFromTurbopackMessage(data) {
2575
+ const updatedModules = new Set();
2576
+ const updates = Array.isArray(data) ? data : [
2577
+ data
2578
+ ];
2579
+ for (const update of updates){
2580
+ // TODO this won't capture changes to CSS since they don't result in a "merged" update
2581
+ if (update.type !== 'partial' || update.instruction.type !== 'ChunkListUpdate' || update.instruction.merged === undefined) {
2582
+ continue;
2583
+ }
2584
+ for (const mergedUpdate of update.instruction.merged){
2585
+ for (const name of Object.keys(mergedUpdate.entries)){
2586
+ const res = /(.*)\s+[([].*/.exec(name);
2587
+ if (res === null) {
2588
+ continue;
2589
+ }
2590
+ updatedModules.add(res[1]);
2591
+ }
2592
+ }
2593
+ }
2594
+ return updatedModules;
2595
+ }
2596
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2597
+ Object.defineProperty(exports.default, '__esModule', {
2598
+ value: true
2599
+ });
2600
+ Object.assign(exports.default, exports);
2601
+ module.exports = exports.default;
2602
+ }
2603
+ }),
2604
+ "[project]/node_modules/next/dist/client/dev/hot-reloader/pages/hot-reloader-pages.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2605
+ "use strict";
2606
+
2607
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
2608
+ // TODO: Remove use of `any` type.
2609
+ /**
2610
+ * MIT License
2611
+ *
2612
+ * Copyright (c) 2013-present, Facebook, Inc.
2613
+ *
2614
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2615
+ * of this software and associated documentation files (the "Software"), to deal
2616
+ * in the Software without restriction, including without limitation the rights
2617
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2618
+ * copies of the Software, and to permit persons to whom the Software is
2619
+ * furnished to do so, subject to the following conditions:
2620
+ *
2621
+ * The above copyright notice and this permission notice shall be included in all
2622
+ * copies or substantial portions of the Software.
2623
+ *
2624
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2625
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2626
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2627
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2628
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2629
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2630
+ * SOFTWARE.
2631
+ */ /// <reference types="webpack/module.d.ts" />
2632
+ // This file is a modified version of the Create React App HMR dev client that
2633
+ // can be found here:
2634
+ // https://github.com/facebook/create-react-app/blob/v3.4.1/packages/react-dev-utils/webpackHotDevClient.js
2635
+ /// <reference types="webpack/module.d.ts" />
2636
+ "use strict";
2637
+ Object.defineProperty(exports, "__esModule", {
2638
+ value: true
2639
+ });
2640
+ 0 && (module.exports = {
2641
+ default: null,
2642
+ handleStaticIndicator: null,
2643
+ performFullReload: null
2644
+ });
2645
+ function _export(target, all) {
2646
+ for(var name in all)Object.defineProperty(target, name, {
2647
+ enumerable: true,
2648
+ get: all[name]
2649
+ });
2650
+ }
2651
+ _export(exports, {
2652
+ default: function() {
2653
+ return connect;
2654
+ },
2655
+ handleStaticIndicator: function() {
2656
+ return handleStaticIndicator;
2657
+ },
2658
+ performFullReload: function() {
2659
+ return performFullReload;
2660
+ }
2661
+ });
2662
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
2663
+ const _nextdevtools = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/next-devtools/index.js (raw)");
2664
+ const _pagesdevoverlaysetup = __turbopack_context__.r("[project]/node_modules/next/dist/next-devtools/userspace/pages/pages-dev-overlay-setup.js [client] (ecmascript)");
2665
+ const _stripansi = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/compiled/strip-ansi/index.js [client] (ecmascript)"));
2666
+ const _websocket = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-reloader/pages/websocket.js [client] (ecmascript)");
2667
+ const _formatwebpackmessages = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/format-webpack-messages.js [client] (ecmascript)"));
2668
+ const _hotreloadertypes = __turbopack_context__.r("[project]/node_modules/next/dist/server/dev/hot-reloader-types.js [client] (ecmascript)");
2669
+ const _shared = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-reloader/shared.js [client] (ecmascript)");
2670
+ const _runtimeerrorhandler = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/runtime-error-handler.js [client] (ecmascript)");
2671
+ const _reporthmrlatency = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/client/dev/report-hmr-latency.js [client] (ecmascript)"));
2672
+ const _turbopackhotreloadercommon = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-reloader/turbopack-hot-reloader-common.js [client] (ecmascript)");
2673
+ window.__nextDevClientId = Math.round(Math.random() * 100 + Date.now());
2674
+ let customHmrEventHandler;
2675
+ let turbopackMessageListeners = [];
2676
+ function connect() {
2677
+ (0, _pagesdevoverlaysetup.register)();
2678
+ (0, _websocket.addMessageListener)((message)=>{
2679
+ try {
2680
+ processMessage(message);
2681
+ } catch (err) {
2682
+ (0, _shared.reportInvalidHmrMessage)(message, err);
2683
+ }
2684
+ });
2685
+ return {
2686
+ subscribeToHmrEvent (handler) {
2687
+ customHmrEventHandler = handler;
2688
+ },
2689
+ onUnrecoverableError () {
2690
+ _runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError = true;
2691
+ },
2692
+ addTurbopackMessageListener (cb) {
2693
+ turbopackMessageListeners.push(cb);
2694
+ },
2695
+ sendTurbopackMessage (msg) {
2696
+ (0, _websocket.sendMessage)(msg);
2697
+ },
2698
+ handleUpdateError (err) {
2699
+ performFullReload(err);
2700
+ }
2701
+ };
2702
+ }
2703
+ // Remember some state related to hot module replacement.
2704
+ var isFirstCompilation = true;
2705
+ var mostRecentCompilationHash = null;
2706
+ var hasCompileErrors = false;
2707
+ function clearOutdatedErrors() {
2708
+ // Clean up outdated compile errors, if any.
2709
+ if (typeof console !== 'undefined' && typeof console.clear === 'function') {
2710
+ if (hasCompileErrors) {
2711
+ console.clear();
2712
+ }
2713
+ }
2714
+ }
2715
+ // Successful compilation.
2716
+ function handleSuccess() {
2717
+ clearOutdatedErrors();
2718
+ hasCompileErrors = false;
2719
+ if ("TURBOPACK compile-time truthy", 1) {
2720
+ const hmrUpdate = turbopackHmr.onBuilt();
2721
+ if (hmrUpdate != null) {
2722
+ (0, _reporthmrlatency.default)(_websocket.sendMessage, [
2723
+ ...hmrUpdate.updatedModules
2724
+ ], hmrUpdate.startMsSinceEpoch, hmrUpdate.endMsSinceEpoch, hmrUpdate.hasUpdates);
2725
+ }
2726
+ _nextdevtools.dispatcher.onBuildOk();
2727
+ } else //TURBOPACK unreachable
2728
+ ;
2729
+ isFirstCompilation = false;
2730
+ }
2731
+ // Compilation with warnings (e.g. ESLint).
2732
+ function handleWarnings(warnings) {
2733
+ clearOutdatedErrors();
2734
+ const isHotUpdate = !isFirstCompilation;
2735
+ isFirstCompilation = false;
2736
+ hasCompileErrors = false;
2737
+ function printWarnings() {
2738
+ // Print warnings to the console.
2739
+ const formatted = (0, _formatwebpackmessages.default)({
2740
+ warnings: warnings,
2741
+ errors: []
2742
+ });
2743
+ if (typeof console !== 'undefined' && typeof console.warn === 'function') {
2744
+ for(let i = 0; i < formatted.warnings?.length; i++){
2745
+ if (i === 5) {
2746
+ console.warn('There were more warnings in other files.\n' + 'You can find a complete log in the terminal.');
2747
+ break;
2748
+ }
2749
+ console.warn((0, _stripansi.default)(formatted.warnings[i]));
2750
+ }
2751
+ }
2752
+ }
2753
+ printWarnings();
2754
+ // Attempt to apply hot updates or reload.
2755
+ if (isHotUpdate) {
2756
+ tryApplyUpdatesWebpack();
2757
+ }
2758
+ }
2759
+ // Compilation with errors (e.g. syntax error or missing modules).
2760
+ function handleErrors(errors) {
2761
+ clearOutdatedErrors();
2762
+ isFirstCompilation = false;
2763
+ hasCompileErrors = true;
2764
+ // "Massage" webpack messages.
2765
+ var formatted = (0, _formatwebpackmessages.default)({
2766
+ errors: errors,
2767
+ warnings: []
2768
+ });
2769
+ // Only show the first error.
2770
+ _nextdevtools.dispatcher.onBuildError(formatted.errors[0]);
2771
+ // Also log them to the console.
2772
+ if (typeof console !== 'undefined' && typeof console.error === 'function') {
2773
+ for(var i = 0; i < formatted.errors.length; i++){
2774
+ console.error((0, _stripansi.default)(formatted.errors[i]));
2775
+ }
2776
+ }
2777
+ // Do not attempt to reload now.
2778
+ // We will reload on next success instead.
2779
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
2780
+ ;
2781
+ }
2782
+ let webpackStartMsSinceEpoch = null;
2783
+ const turbopackHmr = ("TURBOPACK compile-time truthy", 1) ? new _turbopackhotreloadercommon.TurbopackHmr() : "TURBOPACK unreachable";
2784
+ let isrManifest = {};
2785
+ // There is a newer version of the code available.
2786
+ function handleAvailableHash(hash) {
2787
+ // Update last known compilation hash.
2788
+ mostRecentCompilationHash = hash;
2789
+ }
2790
+ function handleStaticIndicator() {
2791
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
2792
+ ;
2793
+ }
2794
+ /** Handles messages from the server for the Pages Router. */ function processMessage(message) {
2795
+ switch(message.type){
2796
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.ISR_MANIFEST:
2797
+ {
2798
+ isrManifest = message.data;
2799
+ handleStaticIndicator();
2800
+ break;
2801
+ }
2802
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.BUILDING:
2803
+ {
2804
+ _nextdevtools.dispatcher.buildingIndicatorShow();
2805
+ if ("TURBOPACK compile-time truthy", 1) {
2806
+ turbopackHmr.onBuilding();
2807
+ } else //TURBOPACK unreachable
2808
+ ;
2809
+ break;
2810
+ }
2811
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.BUILT:
2812
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.SYNC:
2813
+ {
2814
+ _nextdevtools.dispatcher.buildingIndicatorHide();
2815
+ if (message.hash) handleAvailableHash(message.hash);
2816
+ const { errors, warnings } = message;
2817
+ // Is undefined when it's a 'built' event
2818
+ if ('versionInfo' in message) _nextdevtools.dispatcher.onVersionInfo(message.versionInfo);
2819
+ if ('devIndicator' in message) _nextdevtools.dispatcher.onDevIndicator(message.devIndicator);
2820
+ if ('devToolsConfig' in message) _nextdevtools.dispatcher.onDevToolsConfig(message.devToolsConfig);
2821
+ const hasErrors = Boolean(errors && errors.length);
2822
+ if (hasErrors) {
2823
+ (0, _websocket.sendMessage)(JSON.stringify({
2824
+ event: 'client-error',
2825
+ errorCount: errors.length,
2826
+ clientId: window.__nextDevClientId
2827
+ }));
2828
+ return handleErrors(errors);
2829
+ }
2830
+ // NOTE: Turbopack does not currently send warnings
2831
+ const hasWarnings = Boolean(warnings && warnings.length);
2832
+ if (hasWarnings) {
2833
+ (0, _websocket.sendMessage)(JSON.stringify({
2834
+ event: 'client-warning',
2835
+ warningCount: warnings.length,
2836
+ clientId: window.__nextDevClientId
2837
+ }));
2838
+ return handleWarnings(warnings);
2839
+ }
2840
+ (0, _websocket.sendMessage)(JSON.stringify({
2841
+ event: 'client-success',
2842
+ clientId: window.__nextDevClientId
2843
+ }));
2844
+ return handleSuccess();
2845
+ }
2846
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES:
2847
+ {
2848
+ turbopackHmr?.onServerComponentChanges();
2849
+ if (hasCompileErrors || _runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) {
2850
+ window.location.reload();
2851
+ }
2852
+ return;
2853
+ }
2854
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ERROR:
2855
+ {
2856
+ const { errorJSON } = message;
2857
+ if (errorJSON) {
2858
+ const errorObject = JSON.parse(errorJSON);
2859
+ const error = Object.defineProperty(new Error(errorObject.message), "__NEXT_ERROR_CODE", {
2860
+ value: "E394",
2861
+ enumerable: false,
2862
+ configurable: true
2863
+ });
2864
+ error.stack = errorObject.stack;
2865
+ handleErrors([
2866
+ error
2867
+ ]);
2868
+ }
2869
+ return;
2870
+ }
2871
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_CONNECTED:
2872
+ {
2873
+ for (const listener of turbopackMessageListeners){
2874
+ listener({
2875
+ type: _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_CONNECTED,
2876
+ data: message.data
2877
+ });
2878
+ }
2879
+ break;
2880
+ }
2881
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_MESSAGE:
2882
+ {
2883
+ turbopackHmr.onTurbopackMessage(message);
2884
+ _nextdevtools.dispatcher.onBeforeRefresh();
2885
+ for (const listener of turbopackMessageListeners){
2886
+ listener({
2887
+ type: _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_MESSAGE,
2888
+ data: message.data
2889
+ });
2890
+ }
2891
+ if (_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) {
2892
+ console.warn(_shared.REACT_REFRESH_FULL_RELOAD_FROM_ERROR);
2893
+ performFullReload(null);
2894
+ }
2895
+ _nextdevtools.dispatcher.onRefresh();
2896
+ break;
2897
+ }
2898
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.ADDED_PAGE:
2899
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.REMOVED_PAGE:
2900
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.RELOAD_PAGE:
2901
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.DEV_PAGES_MANIFEST_UPDATE:
2902
+ if (customHmrEventHandler) {
2903
+ customHmrEventHandler(message);
2904
+ }
2905
+ break;
2906
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.DEVTOOLS_CONFIG:
2907
+ _nextdevtools.dispatcher.onDevToolsConfig(message.data);
2908
+ break;
2909
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.CACHE_INDICATOR:
2910
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.REACT_DEBUG_CHUNK:
2911
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.ERRORS_TO_SHOW_IN_BROWSER:
2912
+ break;
2913
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.MIDDLEWARE_CHANGES:
2914
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.CLIENT_CHANGES:
2915
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ONLY_CHANGES:
2916
+ break;
2917
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.REQUEST_CURRENT_ERROR_STATE:
2918
+ {
2919
+ const errorState = (0, _nextdevtools.getSerializedOverlayState)();
2920
+ const response = {
2921
+ event: _hotreloadertypes.HMR_MESSAGE_SENT_TO_SERVER.MCP_ERROR_STATE_RESPONSE,
2922
+ requestId: message.requestId,
2923
+ errorState,
2924
+ url: window.location.href
2925
+ };
2926
+ (0, _websocket.sendMessage)(JSON.stringify(response));
2927
+ break;
2928
+ }
2929
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.REQUEST_PAGE_METADATA:
2930
+ {
2931
+ const segmentTrieData = (0, _nextdevtools.getSegmentTrieData)();
2932
+ const response = {
2933
+ event: _hotreloadertypes.HMR_MESSAGE_SENT_TO_SERVER.MCP_PAGE_METADATA_RESPONSE,
2934
+ requestId: message.requestId,
2935
+ segmentTrieData,
2936
+ url: window.location.href
2937
+ };
2938
+ (0, _websocket.sendMessage)(JSON.stringify(response));
2939
+ return;
2940
+ }
2941
+ default:
2942
+ message;
2943
+ }
2944
+ }
2945
+ // Is there a newer version of this code available?
2946
+ function isUpdateAvailable() {
2947
+ /* globals __webpack_hash__ */ // __webpack_hash__ is the hash of the current compilation.
2948
+ // It's a global variable injected by Webpack.
2949
+ return mostRecentCompilationHash !== __webpack_hash__;
2950
+ }
2951
+ // Webpack disallows updates in other states.
2952
+ function canApplyUpdates() {
2953
+ return module.hot.status() === 'idle';
2954
+ }
2955
+ function afterApplyUpdates(fn) {
2956
+ if (canApplyUpdates()) {
2957
+ fn();
2958
+ } else {
2959
+ function handler(status) {
2960
+ if (status === 'idle') {
2961
+ module.hot.removeStatusHandler(handler);
2962
+ fn();
2963
+ }
2964
+ }
2965
+ module.hot.addStatusHandler(handler);
2966
+ }
2967
+ }
2968
+ // Attempt to update code on the fly, fall back to a hard reload.
2969
+ function tryApplyUpdatesWebpack() {
2970
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
2971
+ ;
2972
+ if (!isUpdateAvailable() || !canApplyUpdates()) {
2973
+ _nextdevtools.dispatcher.onBuildOk();
2974
+ return;
2975
+ }
2976
+ function handleApplyUpdates(err, updatedModules) {
2977
+ if (err || _runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError || updatedModules == null) {
2978
+ if (err) {
2979
+ console.warn(_shared.REACT_REFRESH_FULL_RELOAD);
2980
+ } else if (_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) {
2981
+ console.warn(_shared.REACT_REFRESH_FULL_RELOAD_FROM_ERROR);
2982
+ }
2983
+ performFullReload(err);
2984
+ return;
2985
+ }
2986
+ _nextdevtools.dispatcher.onBuildOk();
2987
+ if (isUpdateAvailable()) {
2988
+ // While we were updating, there was a new update! Do it again.
2989
+ tryApplyUpdatesWebpack();
2990
+ return;
2991
+ }
2992
+ _nextdevtools.dispatcher.onRefresh();
2993
+ (0, _reporthmrlatency.default)(_websocket.sendMessage, updatedModules, webpackStartMsSinceEpoch, Date.now());
2994
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
2995
+ ;
2996
+ }
2997
+ // https://webpack.js.org/api/hot-module-replacement/#check
2998
+ module.hot.check(/* autoApply */ false).then((updatedModules)=>{
2999
+ if (updatedModules == null) {
3000
+ return null;
3001
+ }
3002
+ // We should always handle an update, even if updatedModules is empty (but
3003
+ // non-null) for any reason. That's what webpack would normally do:
3004
+ // https://github.com/webpack/webpack/blob/3aa6b6bc3a64/lib/hmr/HotModuleReplacement.runtime.js#L296-L298
3005
+ _nextdevtools.dispatcher.onBeforeRefresh();
3006
+ // https://webpack.js.org/api/hot-module-replacement/#apply
3007
+ return module.hot.apply();
3008
+ }).then((updatedModules)=>{
3009
+ handleApplyUpdates(null, updatedModules);
3010
+ }, (err)=>{
3011
+ handleApplyUpdates(err, null);
3012
+ });
3013
+ }
3014
+ function performFullReload(err) {
3015
+ const stackTrace = err && (err.stack && err.stack.split('\n').slice(0, 5).join('\n') || err.message || err + '');
3016
+ (0, _websocket.sendMessage)(JSON.stringify({
3017
+ event: 'client-full-reload',
3018
+ stackTrace,
3019
+ hadRuntimeError: !!_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError,
3020
+ dependencyChain: err ? err.dependencyChain : undefined
3021
+ }));
3022
+ window.location.reload();
3023
+ }
3024
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
3025
+ Object.defineProperty(exports.default, '__esModule', {
3026
+ value: true
3027
+ });
3028
+ Object.assign(exports.default, exports);
3029
+ module.exports = exports.default;
3030
+ }
3031
+ }),
3032
+ "[project]/node_modules/next/dist/client/tracing/report-to-socket.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3033
+ "use strict";
3034
+
3035
+ Object.defineProperty(exports, "__esModule", {
3036
+ value: true
3037
+ });
3038
+ Object.defineProperty(exports, "default", {
3039
+ enumerable: true,
3040
+ get: function() {
3041
+ return reportToSocket;
3042
+ }
3043
+ });
3044
+ const _websocket = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-reloader/pages/websocket.js [client] (ecmascript)");
3045
+ function reportToSocket(span) {
3046
+ if (span.state.state !== 'ended') {
3047
+ throw Object.defineProperty(new Error('Expected span to be ended'), "__NEXT_ERROR_CODE", {
3048
+ value: "E302",
3049
+ enumerable: false,
3050
+ configurable: true
3051
+ });
3052
+ }
3053
+ (0, _websocket.sendMessage)(JSON.stringify({
3054
+ event: 'span-end',
3055
+ startTime: span.startTime,
3056
+ endTime: span.state.endTime,
3057
+ spanName: span.name,
3058
+ attributes: span.attributes
3059
+ }));
3060
+ }
3061
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
3062
+ Object.defineProperty(exports.default, '__esModule', {
3063
+ value: true
3064
+ });
3065
+ Object.assign(exports.default, exports);
3066
+ module.exports = exports.default;
3067
+ }
3068
+ }),
3069
+ "[project]/node_modules/next/dist/client/index.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3070
+ "use strict";
3071
+
3072
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
3073
+ /* global location */ // imports polyfill from `@next/polyfill-module` after build.
3074
+ "use strict";
3075
+ Object.defineProperty(exports, "__esModule", {
3076
+ value: true
3077
+ });
3078
+ 0 && (module.exports = {
3079
+ emitter: null,
3080
+ hydrate: null,
3081
+ initialize: null,
3082
+ router: null,
3083
+ version: null
3084
+ });
3085
+ function _export(target, all) {
3086
+ for(var name in all)Object.defineProperty(target, name, {
3087
+ enumerable: true,
3088
+ get: all[name]
3089
+ });
3090
+ }
3091
+ _export(exports, {
3092
+ emitter: function() {
3093
+ return emitter;
3094
+ },
3095
+ hydrate: function() {
3096
+ return hydrate;
3097
+ },
3098
+ initialize: function() {
3099
+ return initialize;
3100
+ },
3101
+ router: function() {
3102
+ return router;
3103
+ },
3104
+ version: function() {
3105
+ return version;
3106
+ }
3107
+ });
3108
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
3109
+ const _jsxruntime = __turbopack_context__.r("[project]/node_modules/react/jsx-runtime.js [client] (ecmascript)");
3110
+ __turbopack_context__.r("[project]/node_modules/next/dist/build/polyfills/polyfill-module.js [client] (ecmascript)");
3111
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/react/index.js [client] (ecmascript)"));
3112
+ const _client = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/react-dom/client.js [client] (ecmascript)"));
3113
+ const _headmanagercontextsharedruntime = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js [client] (ecmascript)");
3114
+ const _mitt = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/mitt.js [client] (ecmascript)"));
3115
+ const _routercontextsharedruntime = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router-context.shared-runtime.js [client] (ecmascript)");
3116
+ const _disablesmoothscroll = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.js [client] (ecmascript)");
3117
+ const _isdynamic = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js [client] (ecmascript)");
3118
+ const _querystring = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/querystring.js [client] (ecmascript)");
3119
+ const _utils = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/utils.js [client] (ecmascript)");
3120
+ const _portal = __turbopack_context__.r("[project]/node_modules/next/dist/client/portal/index.js [client] (ecmascript)");
3121
+ const _headmanager = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/client/head-manager.js [client] (ecmascript)"));
3122
+ const _pageloader = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/client/page-loader.js [client] (ecmascript)"));
3123
+ const _routeannouncer = __turbopack_context__.r("[project]/node_modules/next/dist/client/route-announcer.js [client] (ecmascript)");
3124
+ const _router = __turbopack_context__.r("[project]/node_modules/next/dist/client/router.js [client] (ecmascript)");
3125
+ const _iserror = __turbopack_context__.r("[project]/node_modules/next/dist/lib/is-error.js [client] (ecmascript)");
3126
+ const _imageconfigcontextsharedruntime = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js [client] (ecmascript)");
3127
+ const _removebasepath = __turbopack_context__.r("[project]/node_modules/next/dist/client/remove-base-path.js [client] (ecmascript)");
3128
+ const _hasbasepath = __turbopack_context__.r("[project]/node_modules/next/dist/client/has-base-path.js [client] (ecmascript)");
3129
+ const _approutercontextsharedruntime = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js [client] (ecmascript)");
3130
+ const _adapters = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/adapters.js [client] (ecmascript)");
3131
+ const _hooksclientcontextsharedruntime = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js [client] (ecmascript)");
3132
+ const _onrecoverableerror = __turbopack_context__.r("[project]/node_modules/next/dist/client/react-client-callbacks/on-recoverable-error.js [client] (ecmascript)");
3133
+ const _tracer = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/client/tracing/tracer.js [client] (ecmascript)"));
3134
+ const _isnextroutererror = __turbopack_context__.r("[project]/node_modules/next/dist/client/components/is-next-router-error.js [client] (ecmascript)");
3135
+ const version = "16.2.7";
3136
+ let router;
3137
+ const emitter = (0, _mitt.default)();
3138
+ const looseToArray = (input)=>[].slice.call(input);
3139
+ let initialData;
3140
+ let defaultLocale = undefined;
3141
+ let asPath;
3142
+ let pageLoader;
3143
+ let appElement;
3144
+ let headManager;
3145
+ let initialMatchesMiddleware = false;
3146
+ let lastAppProps;
3147
+ let lastRenderReject;
3148
+ let devClient;
3149
+ let CachedApp, onPerfEntry;
3150
+ let CachedComponent;
3151
+ class Container extends _react.default.Component {
3152
+ componentDidCatch(componentErr, info) {
3153
+ this.props.fn(componentErr, info);
3154
+ }
3155
+ componentDidMount() {
3156
+ this.scrollToHash();
3157
+ // We need to replace the router state if:
3158
+ // - the page was (auto) exported and has a query string or search (hash)
3159
+ // - it was auto exported and is a dynamic route (to provide params)
3160
+ // - if it is a client-side skeleton (fallback render)
3161
+ // - if middleware matches the current page (may have rewrite params)
3162
+ // - if rewrites in next.config.js match (may have rewrite params)
3163
+ if (router.isSsr && (initialData.isFallback || initialData.nextExport && ((0, _isdynamic.isDynamicRoute)(router.pathname) || location.search || ("TURBOPACK compile-time value", false) || initialMatchesMiddleware) || initialData.props && initialData.props.__N_SSG && (location.search || ("TURBOPACK compile-time value", false) || initialMatchesMiddleware))) {
3164
+ // update query on mount for exported pages
3165
+ router.replace(router.pathname + '?' + String((0, _querystring.assign)((0, _querystring.urlQueryToSearchParams)(router.query), new URLSearchParams(location.search))), asPath, {
3166
+ // @ts-ignore
3167
+ // WARNING: `_h` is an internal option for handing Next.js
3168
+ // client-side hydration. Your app should _never_ use this property.
3169
+ // It may change at any time without notice.
3170
+ _h: 1,
3171
+ // Fallback pages must trigger the data fetch, so the transition is
3172
+ // not shallow.
3173
+ // Other pages (strictly updating query) happens shallowly, as data
3174
+ // requirements would already be present.
3175
+ shallow: !initialData.isFallback && !initialMatchesMiddleware
3176
+ }).catch((err)=>{
3177
+ if (!err.cancelled) throw err;
3178
+ });
3179
+ }
3180
+ }
3181
+ componentDidUpdate() {
3182
+ this.scrollToHash();
3183
+ }
3184
+ scrollToHash() {
3185
+ let { hash } = location;
3186
+ hash = hash && hash.substring(1);
3187
+ if (!hash) return;
3188
+ const el = document.getElementById(hash);
3189
+ if (!el) return;
3190
+ // If we call scrollIntoView() in here without a setTimeout
3191
+ // it won't scroll properly.
3192
+ setTimeout(()=>el.scrollIntoView(), 0);
3193
+ }
3194
+ render() {
3195
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
3196
+ ;
3197
+ else {
3198
+ const { PagesDevOverlayBridge } = __turbopack_context__.r("[project]/node_modules/next/dist/next-devtools/userspace/pages/pages-dev-overlay-setup.js [client] (ecmascript)");
3199
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(PagesDevOverlayBridge, {
3200
+ children: this.props.children
3201
+ });
3202
+ }
3203
+ }
3204
+ }
3205
+ async function initialize(opts = {}) {
3206
+ // This makes sure this specific lines are removed in production
3207
+ if ("TURBOPACK compile-time truthy", 1) {
3208
+ _tracer.default.onSpanEnd(__turbopack_context__.r("[project]/node_modules/next/dist/client/tracing/report-to-socket.js [client] (ecmascript)").default);
3209
+ devClient = opts.devClient;
3210
+ }
3211
+ initialData = JSON.parse(document.getElementById('__NEXT_DATA__').textContent);
3212
+ window.__NEXT_DATA__ = initialData;
3213
+ defaultLocale = initialData.defaultLocale;
3214
+ const prefix = initialData.assetPrefix || '';
3215
+ self.__next_set_public_path__(`${prefix}/_next/`);
3216
+ asPath = (0, _utils.getURL)();
3217
+ // make sure not to attempt stripping basePath for 404s
3218
+ if ((0, _hasbasepath.hasBasePath)(asPath)) {
3219
+ asPath = (0, _removebasepath.removeBasePath)(asPath);
3220
+ }
3221
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
3222
+ ;
3223
+ if (initialData.scriptLoader) {
3224
+ const { initScriptLoader } = __turbopack_context__.r("[project]/node_modules/next/dist/client/script.js [client] (ecmascript)");
3225
+ initScriptLoader(initialData.scriptLoader);
3226
+ }
3227
+ pageLoader = new _pageloader.default(initialData.buildId, prefix);
3228
+ const register = ([r, f])=>pageLoader.routeLoader.onEntrypoint(r, f);
3229
+ if (window.__NEXT_P) {
3230
+ // Defer page registration for another tick. This will increase the overall
3231
+ // latency in hydrating the page, but reduce the total blocking time.
3232
+ window.__NEXT_P.map((p)=>setTimeout(()=>register(p), 0));
3233
+ }
3234
+ window.__NEXT_P = [];
3235
+ window.__NEXT_P.push = register;
3236
+ headManager = (0, _headmanager.default)();
3237
+ headManager.getIsSsr = ()=>{
3238
+ return router.isSsr;
3239
+ };
3240
+ appElement = document.getElementById('__next');
3241
+ return {
3242
+ assetPrefix: prefix
3243
+ };
3244
+ }
3245
+ function renderApp(App, appProps) {
3246
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
3247
+ ...appProps
3248
+ });
3249
+ }
3250
+ function AppContainer({ children }) {
3251
+ // Create a memoized value for next/navigation router context.
3252
+ const adaptedForAppRouter = _react.default.useMemo({
3253
+ "AppContainer.useMemo[adaptedForAppRouter]": ()=>{
3254
+ return (0, _adapters.adaptForAppRouterInstance)(router);
3255
+ }
3256
+ }["AppContainer.useMemo[adaptedForAppRouter]"], []);
3257
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(Container, {
3258
+ fn: (error)=>renderError({
3259
+ App: CachedApp,
3260
+ err: error
3261
+ }).catch((err)=>console.error('Error rendering page: ', err)),
3262
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_approutercontextsharedruntime.AppRouterContext.Provider, {
3263
+ value: adaptedForAppRouter,
3264
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_hooksclientcontextsharedruntime.SearchParamsContext.Provider, {
3265
+ value: (0, _adapters.adaptForSearchParams)(router),
3266
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_adapters.PathnameContextProviderAdapter, {
3267
+ router: router,
3268
+ isAutoExport: self.__NEXT_DATA__.autoExport ?? false,
3269
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_hooksclientcontextsharedruntime.PathParamsContext.Provider, {
3270
+ value: (0, _adapters.adaptForPathParams)(router),
3271
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_routercontextsharedruntime.RouterContext.Provider, {
3272
+ value: (0, _router.makePublicRouterInstance)(router),
3273
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_headmanagercontextsharedruntime.HeadManagerContext.Provider, {
3274
+ value: headManager,
3275
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_imageconfigcontextsharedruntime.ImageConfigContext.Provider, {
3276
+ value: ("TURBOPACK compile-time value", {
3277
+ "deviceSizes": ("TURBOPACK compile-time value", [
3278
+ ("TURBOPACK compile-time value", 640),
3279
+ ("TURBOPACK compile-time value", 750),
3280
+ ("TURBOPACK compile-time value", 828),
3281
+ ("TURBOPACK compile-time value", 1080),
3282
+ ("TURBOPACK compile-time value", 1200),
3283
+ ("TURBOPACK compile-time value", 1920),
3284
+ ("TURBOPACK compile-time value", 2048),
3285
+ ("TURBOPACK compile-time value", 3840)
3286
+ ]),
3287
+ "imageSizes": ("TURBOPACK compile-time value", [
3288
+ ("TURBOPACK compile-time value", 32),
3289
+ ("TURBOPACK compile-time value", 48),
3290
+ ("TURBOPACK compile-time value", 64),
3291
+ ("TURBOPACK compile-time value", 96),
3292
+ ("TURBOPACK compile-time value", 128),
3293
+ ("TURBOPACK compile-time value", 256),
3294
+ ("TURBOPACK compile-time value", 384)
3295
+ ]),
3296
+ "qualities": ("TURBOPACK compile-time value", [
3297
+ ("TURBOPACK compile-time value", 75)
3298
+ ]),
3299
+ "path": ("TURBOPACK compile-time value", "/_next/image"),
3300
+ "loader": ("TURBOPACK compile-time value", "default"),
3301
+ "dangerouslyAllowSVG": ("TURBOPACK compile-time value", false),
3302
+ "unoptimized": ("TURBOPACK compile-time value", false),
3303
+ "domains": ("TURBOPACK compile-time value", []),
3304
+ "remotePatterns": ("TURBOPACK compile-time value", []),
3305
+ "localPatterns": ("TURBOPACK compile-time value", [
3306
+ ("TURBOPACK compile-time value", {
3307
+ "pathname": ("TURBOPACK compile-time value", "**"),
3308
+ "search": ("TURBOPACK compile-time value", "")
3309
+ })
3310
+ ])
3311
+ }),
3312
+ children: children
3313
+ })
3314
+ })
3315
+ })
3316
+ })
3317
+ })
3318
+ })
3319
+ })
3320
+ });
3321
+ }
3322
+ const wrapApp = (App)=>(wrappedAppProps)=>{
3323
+ const appProps = {
3324
+ ...wrappedAppProps,
3325
+ Component: CachedComponent,
3326
+ err: initialData.err,
3327
+ router
3328
+ };
3329
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(AppContainer, {
3330
+ children: renderApp(App, appProps)
3331
+ });
3332
+ };
3333
+ // This method handles all runtime and debug errors.
3334
+ // 404 and 500 errors are special kind of errors
3335
+ // and they are still handle via the main render method.
3336
+ function renderError(renderErrorProps) {
3337
+ let { App, err } = renderErrorProps;
3338
+ // In development runtime errors are caught by our overlay
3339
+ // In production we catch runtime errors using componentDidCatch which will trigger renderError
3340
+ if ("TURBOPACK compile-time truthy", 1) {
3341
+ // A Next.js rendering runtime error is always unrecoverable
3342
+ // FIXME: let's make this recoverable (error in GIP client-transition)
3343
+ devClient.onUnrecoverableError();
3344
+ // We need to render an empty <App> so that the `<ReactDevOverlay>` can
3345
+ // render itself.
3346
+ return doRender({
3347
+ App: ()=>null,
3348
+ props: {},
3349
+ Component: ()=>null,
3350
+ styleSheets: []
3351
+ });
3352
+ }
3353
+ //TURBOPACK unreachable
3354
+ ;
3355
+ }
3356
+ // Dummy component that we render as a child of Root so that we can
3357
+ // toggle the correct styles before the page is rendered.
3358
+ function Head({ callback }) {
3359
+ // We use `useLayoutEffect` to guarantee the callback is executed
3360
+ // as soon as React flushes the update.
3361
+ _react.default.useLayoutEffect({
3362
+ "Head.useLayoutEffect": ()=>callback()
3363
+ }["Head.useLayoutEffect"], [
3364
+ callback
3365
+ ]);
3366
+ return null;
3367
+ }
3368
+ const performanceMarks = {
3369
+ navigationStart: 'navigationStart',
3370
+ beforeRender: 'beforeRender',
3371
+ afterRender: 'afterRender',
3372
+ afterHydrate: 'afterHydrate',
3373
+ routeChange: 'routeChange'
3374
+ };
3375
+ const performanceMeasures = {
3376
+ hydration: 'Next.js-hydration',
3377
+ beforeHydration: 'Next.js-before-hydration',
3378
+ routeChangeToRender: 'Next.js-route-change-to-render',
3379
+ render: 'Next.js-render'
3380
+ };
3381
+ let reactRoot = null;
3382
+ // On initial render a hydrate should always happen
3383
+ let shouldHydrate = true;
3384
+ function clearMarks() {
3385
+ ;
3386
+ [
3387
+ performanceMarks.beforeRender,
3388
+ performanceMarks.afterHydrate,
3389
+ performanceMarks.afterRender,
3390
+ performanceMarks.routeChange
3391
+ ].forEach((mark)=>performance.clearMarks(mark));
3392
+ }
3393
+ function markHydrateComplete() {
3394
+ if (!_utils.ST) return;
3395
+ performance.mark(performanceMarks.afterHydrate) // mark end of hydration
3396
+ ;
3397
+ const hasBeforeRenderMark = performance.getEntriesByName(performanceMarks.beforeRender, 'mark').length;
3398
+ if (hasBeforeRenderMark) {
3399
+ const beforeHydrationMeasure = performance.measure(performanceMeasures.beforeHydration, performanceMarks.navigationStart, performanceMarks.beforeRender);
3400
+ const hydrationMeasure = performance.measure(performanceMeasures.hydration, performanceMarks.beforeRender, performanceMarks.afterHydrate);
3401
+ if (("TURBOPACK compile-time value", "development") === 'development' && // Old versions of Safari don't return `PerformanceMeasure`s from `performance.measure()`
3402
+ beforeHydrationMeasure && hydrationMeasure) {
3403
+ _tracer.default.startSpan('navigation-to-hydration', {
3404
+ startTime: performance.timeOrigin + beforeHydrationMeasure.startTime,
3405
+ attributes: {
3406
+ pathname: location.pathname,
3407
+ query: location.search
3408
+ }
3409
+ }).end(performance.timeOrigin + hydrationMeasure.startTime + hydrationMeasure.duration);
3410
+ }
3411
+ }
3412
+ if (onPerfEntry) {
3413
+ performance.getEntriesByName(performanceMeasures.hydration).forEach(onPerfEntry);
3414
+ }
3415
+ clearMarks();
3416
+ }
3417
+ function markRenderComplete() {
3418
+ if (!_utils.ST) return;
3419
+ performance.mark(performanceMarks.afterRender) // mark end of render
3420
+ ;
3421
+ const navStartEntries = performance.getEntriesByName(performanceMarks.routeChange, 'mark');
3422
+ if (!navStartEntries.length) return;
3423
+ const hasBeforeRenderMark = performance.getEntriesByName(performanceMarks.beforeRender, 'mark').length;
3424
+ if (hasBeforeRenderMark) {
3425
+ performance.measure(performanceMeasures.routeChangeToRender, navStartEntries[0].name, performanceMarks.beforeRender);
3426
+ performance.measure(performanceMeasures.render, performanceMarks.beforeRender, performanceMarks.afterRender);
3427
+ if (onPerfEntry) {
3428
+ performance.getEntriesByName(performanceMeasures.render).forEach(onPerfEntry);
3429
+ performance.getEntriesByName(performanceMeasures.routeChangeToRender).forEach(onPerfEntry);
3430
+ }
3431
+ }
3432
+ clearMarks();
3433
+ [
3434
+ performanceMeasures.routeChangeToRender,
3435
+ performanceMeasures.render
3436
+ ].forEach((measure)=>performance.clearMeasures(measure));
3437
+ }
3438
+ function renderReactElement(domEl, fn) {
3439
+ // mark start of hydrate/render
3440
+ if (_utils.ST) {
3441
+ performance.mark(performanceMarks.beforeRender);
3442
+ }
3443
+ const reactEl = fn(shouldHydrate ? markHydrateComplete : markRenderComplete);
3444
+ if (!reactRoot) {
3445
+ // Unlike with createRoot, you don't need a separate root.render() call here
3446
+ reactRoot = _client.default.hydrateRoot(domEl, reactEl, {
3447
+ onRecoverableError: _onrecoverableerror.onRecoverableError
3448
+ });
3449
+ // TODO: Remove shouldHydrate variable when React 18 is stable as it can depend on `reactRoot` existing
3450
+ shouldHydrate = false;
3451
+ } else {
3452
+ const startTransition = _react.default.startTransition;
3453
+ startTransition(()=>{
3454
+ reactRoot.render(reactEl);
3455
+ });
3456
+ }
3457
+ }
3458
+ function Root({ callbacks, children }) {
3459
+ // We use `useLayoutEffect` to guarantee the callbacks are executed
3460
+ // as soon as React flushes the update
3461
+ _react.default.useLayoutEffect({
3462
+ "Root.useLayoutEffect": ()=>callbacks.forEach({
3463
+ "Root.useLayoutEffect": (callback)=>callback()
3464
+ }["Root.useLayoutEffect"])
3465
+ }["Root.useLayoutEffect"], [
3466
+ callbacks
3467
+ ]);
3468
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
3469
+ ;
3470
+ return children;
3471
+ }
3472
+ function doRender(input) {
3473
+ let { App, Component, props, err } = input;
3474
+ let styleSheets = 'initial' in input ? undefined : input.styleSheets;
3475
+ Component = Component || lastAppProps.Component;
3476
+ props = props || lastAppProps.props;
3477
+ const appProps = {
3478
+ ...props,
3479
+ Component,
3480
+ err,
3481
+ router
3482
+ };
3483
+ // lastAppProps has to be set before ReactDom.render to account for ReactDom throwing an error.
3484
+ lastAppProps = appProps;
3485
+ let canceled = false;
3486
+ let resolvePromise;
3487
+ const renderPromise = new Promise((resolve, reject)=>{
3488
+ if (lastRenderReject) {
3489
+ lastRenderReject();
3490
+ }
3491
+ resolvePromise = ()=>{
3492
+ lastRenderReject = null;
3493
+ resolve();
3494
+ };
3495
+ lastRenderReject = ()=>{
3496
+ canceled = true;
3497
+ lastRenderReject = null;
3498
+ const error = Object.defineProperty(new Error('Cancel rendering route'), "__NEXT_ERROR_CODE", {
3499
+ value: "E503",
3500
+ enumerable: false,
3501
+ configurable: true
3502
+ });
3503
+ error.cancelled = true;
3504
+ reject(error);
3505
+ };
3506
+ });
3507
+ // This function has a return type to ensure it doesn't start returning a
3508
+ // Promise. It should remain synchronous.
3509
+ function onStart() {
3510
+ if ("TURBOPACK compile-time truthy", 1) {
3511
+ return false;
3512
+ }
3513
+ //TURBOPACK unreachable
3514
+ ;
3515
+ const currentStyleTags = undefined;
3516
+ const currentHrefs = undefined;
3517
+ const noscript = undefined;
3518
+ const nonce = undefined;
3519
+ }
3520
+ function onHeadCommit() {
3521
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
3522
+ ;
3523
+ if (input.scroll) {
3524
+ const { x, y } = input.scroll;
3525
+ (0, _disablesmoothscroll.disableSmoothScrollDuringRouteTransition)(()=>{
3526
+ window.scrollTo(x, y);
3527
+ });
3528
+ }
3529
+ }
3530
+ function onRootCommit() {
3531
+ resolvePromise();
3532
+ }
3533
+ onStart();
3534
+ const elem = /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
3535
+ children: [
3536
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(Head, {
3537
+ callback: onHeadCommit
3538
+ }),
3539
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(AppContainer, {
3540
+ children: [
3541
+ renderApp(App, appProps),
3542
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_portal.Portal, {
3543
+ type: "next-route-announcer",
3544
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_routeannouncer.RouteAnnouncer, {})
3545
+ })
3546
+ ]
3547
+ })
3548
+ ]
3549
+ });
3550
+ // We catch runtime errors using componentDidCatch which will trigger renderError
3551
+ renderReactElement(appElement, (callback)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(Root, {
3552
+ callbacks: [
3553
+ callback,
3554
+ onRootCommit
3555
+ ],
3556
+ children: ("TURBOPACK compile-time falsy", 0) ? /*#__PURE__*/ "TURBOPACK unreachable" : elem
3557
+ }));
3558
+ return renderPromise;
3559
+ }
3560
+ async function render(renderingProps) {
3561
+ // if an error occurs in a server-side page (e.g. in getInitialProps),
3562
+ // skip re-rendering the error page client-side as data-fetching operations
3563
+ // will already have been done on the server and NEXT_DATA contains the correct
3564
+ // data for straight-forward hydration of the error page
3565
+ if (renderingProps.err && // renderingProps.Component might be undefined if there is a top/module-level error
3566
+ (typeof renderingProps.Component === 'undefined' || !renderingProps.isHydratePass)) {
3567
+ await renderError(renderingProps);
3568
+ return;
3569
+ }
3570
+ try {
3571
+ await doRender(renderingProps);
3572
+ } catch (err) {
3573
+ const renderErr = (0, _iserror.getProperError)(err);
3574
+ // bubble up cancelation errors
3575
+ if (renderErr.cancelled) {
3576
+ throw renderErr;
3577
+ }
3578
+ if ("TURBOPACK compile-time truthy", 1) {
3579
+ // Ensure this error is displayed in the overlay in development
3580
+ setTimeout(()=>{
3581
+ throw renderErr;
3582
+ });
3583
+ }
3584
+ await renderError({
3585
+ ...renderingProps,
3586
+ err: renderErr
3587
+ });
3588
+ }
3589
+ }
3590
+ async function hydrate(opts) {
3591
+ let initialErr = initialData.err;
3592
+ try {
3593
+ const appEntrypoint = await pageLoader.routeLoader.whenEntrypoint('/_app');
3594
+ if ('error' in appEntrypoint) {
3595
+ throw appEntrypoint.error;
3596
+ }
3597
+ const { component: app, exports: mod } = appEntrypoint;
3598
+ CachedApp = app;
3599
+ if (mod && mod.reportWebVitals) {
3600
+ onPerfEntry = ({ id, name, startTime, value, duration, entryType, entries, attribution })=>{
3601
+ // Combines timestamp with random number for unique ID
3602
+ const uniqueID = `${Date.now()}-${Math.floor(Math.random() * (9e12 - 1)) + 1e12}`;
3603
+ let perfStartEntry;
3604
+ if (entries && entries.length) {
3605
+ perfStartEntry = entries[0].startTime;
3606
+ }
3607
+ const webVitals = {
3608
+ id: id || uniqueID,
3609
+ name,
3610
+ startTime: startTime || perfStartEntry,
3611
+ value: value == null ? duration : value,
3612
+ label: entryType === 'mark' || entryType === 'measure' ? 'custom' : 'web-vital'
3613
+ };
3614
+ if (attribution) {
3615
+ webVitals.attribution = attribution;
3616
+ }
3617
+ mod.reportWebVitals(webVitals);
3618
+ };
3619
+ }
3620
+ const pageEntrypoint = // error, so we need to skip waiting for the entrypoint.
3621
+ ("TURBOPACK compile-time value", "development") === 'development' && initialData.err ? {
3622
+ error: initialData.err
3623
+ } : await pageLoader.routeLoader.whenEntrypoint(initialData.page);
3624
+ if ('error' in pageEntrypoint) {
3625
+ throw pageEntrypoint.error;
3626
+ }
3627
+ CachedComponent = pageEntrypoint.component;
3628
+ if ("TURBOPACK compile-time truthy", 1) {
3629
+ const { isValidElementType } = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/react-is/index.js [client] (ecmascript)");
3630
+ if (!isValidElementType(CachedComponent)) {
3631
+ throw Object.defineProperty(new Error(`The default export is not a React Component in page: "${initialData.page}"`), "__NEXT_ERROR_CODE", {
3632
+ value: "E286",
3633
+ enumerable: false,
3634
+ configurable: true
3635
+ });
3636
+ }
3637
+ }
3638
+ } catch (error) {
3639
+ // This catches errors like throwing in the top level of a module
3640
+ initialErr = (0, _iserror.getProperError)(error);
3641
+ }
3642
+ if ("TURBOPACK compile-time truthy", 1) {
3643
+ const getServerError = __turbopack_context__.r("[project]/node_modules/next/dist/server/dev/node-stack-frames.js [client] (ecmascript)").getServerError;
3644
+ // Server-side runtime errors need to be re-thrown on the client-side so
3645
+ // that the overlay is rendered.
3646
+ if (initialErr) {
3647
+ if (initialErr === initialData.err) {
3648
+ setTimeout(()=>{
3649
+ let error;
3650
+ try {
3651
+ // Generate a new error object. We `throw` it because some browsers
3652
+ // will set the `stack` when thrown, and we want to ensure ours is
3653
+ // not overridden when we re-throw it below.
3654
+ throw Object.defineProperty(new Error(initialErr.message), "__NEXT_ERROR_CODE", {
3655
+ value: "E394",
3656
+ enumerable: false,
3657
+ configurable: true
3658
+ });
3659
+ } catch (e) {
3660
+ error = e;
3661
+ }
3662
+ error.name = initialErr.name;
3663
+ error.stack = initialErr.stack;
3664
+ const errSource = initialErr.source;
3665
+ // In development, error the navigation API usage in runtime,
3666
+ // since it's not allowed to be used in pages router as it doesn't contain error boundary like app router.
3667
+ if ((0, _isnextroutererror.isNextRouterError)(initialErr)) {
3668
+ error.message = 'Next.js navigation API is not allowed to be used in Pages Router.';
3669
+ }
3670
+ throw getServerError(error, errSource);
3671
+ });
3672
+ } else {
3673
+ setTimeout(()=>{
3674
+ throw initialErr;
3675
+ });
3676
+ }
3677
+ }
3678
+ }
3679
+ if (window.__NEXT_PRELOADREADY) {
3680
+ await window.__NEXT_PRELOADREADY(initialData.dynamicIds);
3681
+ }
3682
+ router = (0, _router.createRouter)(initialData.page, initialData.query, asPath, {
3683
+ initialProps: initialData.props,
3684
+ pageLoader,
3685
+ App: CachedApp,
3686
+ Component: CachedComponent,
3687
+ wrapApp,
3688
+ err: initialErr,
3689
+ isFallback: Boolean(initialData.isFallback),
3690
+ subscription: (info, App, scroll)=>render(Object.assign({}, info, {
3691
+ App,
3692
+ scroll
3693
+ })),
3694
+ locale: initialData.locale,
3695
+ locales: initialData.locales,
3696
+ defaultLocale,
3697
+ domainLocales: initialData.domainLocales,
3698
+ isPreview: initialData.isPreview
3699
+ });
3700
+ initialMatchesMiddleware = await router._initialMatchesMiddlewarePromise;
3701
+ const renderCtx = {
3702
+ App: CachedApp,
3703
+ initial: true,
3704
+ Component: CachedComponent,
3705
+ props: initialData.props,
3706
+ err: initialErr,
3707
+ isHydratePass: true
3708
+ };
3709
+ if (opts?.beforeRender) {
3710
+ await opts.beforeRender();
3711
+ }
3712
+ render(renderCtx);
3713
+ }
3714
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
3715
+ Object.defineProperty(exports.default, '__esModule', {
3716
+ value: true
3717
+ });
3718
+ Object.assign(exports.default, exports);
3719
+ module.exports = exports.default;
3720
+ }
3721
+ }),
3722
+ "[project]/node_modules/next/dist/client/dev/hot-middleware-client.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3723
+ "use strict";
3724
+
3725
+ Object.defineProperty(exports, "__esModule", {
3726
+ value: true
3727
+ });
3728
+ Object.defineProperty(exports, "default", {
3729
+ enumerable: true,
3730
+ get: function() {
3731
+ return _default;
3732
+ }
3733
+ });
3734
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
3735
+ const _hotreloadertypes = __turbopack_context__.r("[project]/node_modules/next/dist/server/dev/hot-reloader-types.js [client] (ecmascript)");
3736
+ const _hotreloaderpages = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-reloader/pages/hot-reloader-pages.js [client] (ecmascript)"));
3737
+ const _websocket = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-reloader/pages/websocket.js [client] (ecmascript)");
3738
+ let reloading = false;
3739
+ const _default = ()=>{
3740
+ const devClient = (0, _hotreloaderpages.default)();
3741
+ devClient.subscribeToHmrEvent((message)=>{
3742
+ if (reloading) return;
3743
+ // Retrieve the router if it's available
3744
+ const router = window.next?.router;
3745
+ // Determine if we're on an error page or the router is not initialized
3746
+ const isOnErrorPage = !router || router.pathname === '/404' || router.pathname === '/_error';
3747
+ switch(message.type){
3748
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.RELOAD_PAGE:
3749
+ {
3750
+ (0, _websocket.sendMessage)(JSON.stringify({
3751
+ event: 'client-reload-page',
3752
+ clientId: window.__nextDevClientId
3753
+ }));
3754
+ reloading = true;
3755
+ return window.location.reload();
3756
+ }
3757
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.REMOVED_PAGE:
3758
+ {
3759
+ const [page] = message.data;
3760
+ // Check if the removed page is the current page
3761
+ const isCurrentPage = page === router?.pathname;
3762
+ // We enter here if the removed page is currently being viewed
3763
+ // or if we happen to be on an error page.
3764
+ if (isCurrentPage || isOnErrorPage) {
3765
+ (0, _websocket.sendMessage)(JSON.stringify({
3766
+ event: 'client-removed-page',
3767
+ clientId: window.__nextDevClientId,
3768
+ page
3769
+ }));
3770
+ return window.location.reload();
3771
+ }
3772
+ return;
3773
+ }
3774
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.ADDED_PAGE:
3775
+ {
3776
+ const [page] = message.data;
3777
+ // Check if the added page is the current page
3778
+ const isCurrentPage = page === router?.pathname;
3779
+ // Check if the page component is not yet loaded
3780
+ const isPageNotLoaded = page !== null && typeof router?.components?.[page] === 'undefined';
3781
+ // We enter this block if the newly added page is the one currently being viewed
3782
+ // but hasn't been loaded yet, or if we're on an error page.
3783
+ if (isCurrentPage && isPageNotLoaded || isOnErrorPage) {
3784
+ (0, _websocket.sendMessage)(JSON.stringify({
3785
+ event: 'client-added-page',
3786
+ clientId: window.__nextDevClientId,
3787
+ page
3788
+ }));
3789
+ return window.location.reload();
3790
+ }
3791
+ return;
3792
+ }
3793
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.DEV_PAGES_MANIFEST_UPDATE:
3794
+ {
3795
+ return;
3796
+ }
3797
+ default:
3798
+ {
3799
+ message;
3800
+ }
3801
+ }
3802
+ });
3803
+ return devClient;
3804
+ };
3805
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
3806
+ Object.defineProperty(exports.default, '__esModule', {
3807
+ value: true
3808
+ });
3809
+ Object.assign(exports.default, exports);
3810
+ module.exports = exports.default;
3811
+ }
3812
+ }),
3813
+ "[project]/node_modules/next/dist/client/dev/on-demand-entries-client.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3814
+ "use strict";
3815
+
3816
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
3817
+ "use strict";
3818
+ Object.defineProperty(exports, "__esModule", {
3819
+ value: true
3820
+ });
3821
+ Object.defineProperty(exports, "default", {
3822
+ enumerable: true,
3823
+ get: function() {
3824
+ return _default;
3825
+ }
3826
+ });
3827
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
3828
+ const _router = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/client/router.js [client] (ecmascript)"));
3829
+ const _websocket = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-reloader/pages/websocket.js [client] (ecmascript)");
3830
+ const _default = async ()=>{
3831
+ // Never send pings when using Turbopack as it's not used.
3832
+ // Pings were originally used to keep track of active routes in on-demand-entries with webpack.
3833
+ if ("TURBOPACK compile-time truthy", 1) {
3834
+ return;
3835
+ }
3836
+ //TURBOPACK unreachable
3837
+ ;
3838
+ };
3839
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
3840
+ Object.defineProperty(exports.default, '__esModule', {
3841
+ value: true
3842
+ });
3843
+ Object.assign(exports.default, exports);
3844
+ module.exports = exports.default;
3845
+ }
3846
+ }),
3847
+ "[project]/node_modules/next/dist/client/dev/fouc.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3848
+ "use strict";
3849
+
3850
+ // This wrapper function is used to safely select the best available function
3851
+ // to schedule removal of the no-FOUC styles workaround. requestAnimationFrame
3852
+ // is the ideal choice, but when used in iframes, there are no guarantees that
3853
+ // the callback will actually be called, which could stall the promise returned
3854
+ // from displayContent.
3855
+ //
3856
+ // See: https://www.vector-logic.com/blog/posts/on-request-animation-frame-and-embedded-iframes
3857
+ Object.defineProperty(exports, "__esModule", {
3858
+ value: true
3859
+ });
3860
+ Object.defineProperty(exports, "displayContent", {
3861
+ enumerable: true,
3862
+ get: function() {
3863
+ return displayContent;
3864
+ }
3865
+ });
3866
+ const safeCallbackQueue = (callback)=>{
3867
+ if (window.requestAnimationFrame && window.self === window.top) {
3868
+ window.requestAnimationFrame(callback);
3869
+ } else {
3870
+ window.setTimeout(callback);
3871
+ }
3872
+ };
3873
+ function displayContent() {
3874
+ return new Promise((resolve)=>{
3875
+ safeCallbackQueue(function() {
3876
+ for(var x = document.querySelectorAll('[data-next-hide-fouc]'), i = x.length; i--;){
3877
+ x[i].parentNode.removeChild(x[i]);
3878
+ }
3879
+ resolve();
3880
+ });
3881
+ });
3882
+ }
3883
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
3884
+ Object.defineProperty(exports.default, '__esModule', {
3885
+ value: true
3886
+ });
3887
+ Object.assign(exports.default, exports);
3888
+ module.exports = exports.default;
3889
+ }
3890
+ }),
3891
+ "[project]/node_modules/next/dist/client/page-bootstrap.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3892
+ "use strict";
3893
+
3894
+ Object.defineProperty(exports, "__esModule", {
3895
+ value: true
3896
+ });
3897
+ Object.defineProperty(exports, "pageBootstrap", {
3898
+ enumerable: true,
3899
+ get: function() {
3900
+ return pageBootstrap;
3901
+ }
3902
+ });
3903
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
3904
+ __turbopack_context__.r("[project]/node_modules/next/dist/lib/require-instrumentation-client.js [client] (ecmascript)");
3905
+ const _ = __turbopack_context__.r("[project]/node_modules/next/dist/client/index.js [client] (ecmascript)");
3906
+ const _ondemandentriesclient = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/client/dev/on-demand-entries-client.js [client] (ecmascript)"));
3907
+ const _fouc = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/fouc.js [client] (ecmascript)");
3908
+ const _websocket = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-reloader/pages/websocket.js [client] (ecmascript)");
3909
+ const _querystring = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/router/utils/querystring.js [client] (ecmascript)");
3910
+ const _hotreloadertypes = __turbopack_context__.r("[project]/node_modules/next/dist/server/dev/hot-reloader-types.js [client] (ecmascript)");
3911
+ const _runtimeerrorhandler = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/runtime-error-handler.js [client] (ecmascript)");
3912
+ const _shared = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-reloader/shared.js [client] (ecmascript)");
3913
+ const _hotreloaderpages = __turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-reloader/pages/hot-reloader-pages.js [client] (ecmascript)");
3914
+ const _nextdevtools = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/next-devtools/index.js (raw)");
3915
+ function pageBootstrap(assetPrefix) {
3916
+ (0, _websocket.connectHMR)({
3917
+ assetPrefix,
3918
+ path: '/_next/webpack-hmr'
3919
+ });
3920
+ return (0, _.hydrate)({
3921
+ beforeRender: _fouc.displayContent
3922
+ }).then(()=>{
3923
+ (0, _ondemandentriesclient.default)();
3924
+ let reloading = false;
3925
+ (0, _websocket.addMessageListener)((message)=>{
3926
+ if (reloading) return;
3927
+ switch(message.type){
3928
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ERROR:
3929
+ {
3930
+ const errorObject = JSON.parse(message.errorJSON);
3931
+ const error = Object.defineProperty(new Error(errorObject.message), "__NEXT_ERROR_CODE", {
3932
+ value: "E394",
3933
+ enumerable: false,
3934
+ configurable: true
3935
+ });
3936
+ error.stack = errorObject.stack;
3937
+ throw error;
3938
+ }
3939
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.RELOAD_PAGE:
3940
+ {
3941
+ reloading = true;
3942
+ window.location.reload();
3943
+ break;
3944
+ }
3945
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.DEV_PAGES_MANIFEST_UPDATE:
3946
+ {
3947
+ fetch(`${assetPrefix}/_next/static/development/_devPagesManifest.json`).then((res)=>res.json()).then((manifest)=>{
3948
+ window.__DEV_PAGES_MANIFEST = manifest;
3949
+ }).catch((err)=>{
3950
+ console.log(`Failed to fetch devPagesManifest`, err);
3951
+ });
3952
+ break;
3953
+ }
3954
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.MIDDLEWARE_CHANGES:
3955
+ {
3956
+ return window.location.reload();
3957
+ }
3958
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.CLIENT_CHANGES:
3959
+ {
3960
+ // This is used in `../server/dev/turbopack-utils.ts`.
3961
+ const isOnErrorPage = window.next.router.pathname === '/_error';
3962
+ // On the error page we want to reload the page when a page was changed
3963
+ if (isOnErrorPage) {
3964
+ if (_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) {
3965
+ console.warn(_shared.REACT_REFRESH_FULL_RELOAD_FROM_ERROR);
3966
+ }
3967
+ reloading = true;
3968
+ (0, _hotreloaderpages.performFullReload)(null);
3969
+ }
3970
+ break;
3971
+ }
3972
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ONLY_CHANGES:
3973
+ {
3974
+ if (_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) {
3975
+ console.warn(_shared.REACT_REFRESH_FULL_RELOAD_FROM_ERROR);
3976
+ (0, _hotreloaderpages.performFullReload)(null);
3977
+ }
3978
+ const { pages } = message;
3979
+ // Make sure to reload when the dev-overlay is showing for an
3980
+ // API route
3981
+ // TODO: Fix `__NEXT_PAGE` type
3982
+ if (pages.includes(_.router.query.__NEXT_PAGE)) {
3983
+ return window.location.reload();
3984
+ }
3985
+ if (!_.router.clc && pages.includes(_.router.pathname)) {
3986
+ console.log('Refreshing page data due to server-side change');
3987
+ _nextdevtools.dispatcher.buildingIndicatorShow();
3988
+ const clearIndicator = _nextdevtools.dispatcher.buildingIndicatorHide;
3989
+ _.router.replace(_.router.pathname + '?' + String((0, _querystring.assign)((0, _querystring.urlQueryToSearchParams)(_.router.query), new URLSearchParams(location.search))), _.router.asPath, {
3990
+ scroll: false
3991
+ }).catch(()=>{
3992
+ // trigger hard reload when failing to refresh data
3993
+ // to show error overlay properly
3994
+ location.reload();
3995
+ }).finally(clearIndicator);
3996
+ }
3997
+ break;
3998
+ }
3999
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.ADDED_PAGE:
4000
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.REMOVED_PAGE:
4001
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES:
4002
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.SYNC:
4003
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.BUILT:
4004
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.BUILDING:
4005
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_MESSAGE:
4006
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_CONNECTED:
4007
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.ISR_MANIFEST:
4008
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.DEVTOOLS_CONFIG:
4009
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.REACT_DEBUG_CHUNK:
4010
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.REQUEST_CURRENT_ERROR_STATE:
4011
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.REQUEST_PAGE_METADATA:
4012
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.CACHE_INDICATOR:
4013
+ case _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.ERRORS_TO_SHOW_IN_BROWSER:
4014
+ break;
4015
+ default:
4016
+ message;
4017
+ }
4018
+ });
4019
+ });
4020
+ }
4021
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
4022
+ Object.defineProperty(exports.default, '__esModule', {
4023
+ value: true
4024
+ });
4025
+ Object.assign(exports.default, exports);
4026
+ module.exports = exports.default;
4027
+ }
4028
+ }),
4029
+ "[project]/node_modules/next/dist/client/next-dev-turbopack.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
4030
+ "use strict";
4031
+
4032
+ // TODO: Remove use of `any` type.
4033
+ Object.defineProperty(exports, "__esModule", {
4034
+ value: true
4035
+ });
4036
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [client] (ecmascript)");
4037
+ __turbopack_context__.r("[project]/node_modules/next/dist/client/register-deployment-id-global.js [client] (ecmascript)");
4038
+ const _ = __turbopack_context__.r("[project]/node_modules/next/dist/client/index.js [client] (ecmascript)");
4039
+ const _hotmiddlewareclient = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/next/dist/client/dev/hot-middleware-client.js [client] (ecmascript)"));
4040
+ const _pagebootstrap = __turbopack_context__.r("[project]/node_modules/next/dist/client/page-bootstrap.js [client] (ecmascript)");
4041
+ const _hmrclientts = __turbopack_context__.r("[turbopack]/browser/dev/hmr-client/hmr-client.ts [client] (ecmascript)");
4042
+ window.next = {
4043
+ version: _.version,
4044
+ turbopack: true,
4045
+ // router is initialized later so it has to be live-binded
4046
+ get router () {
4047
+ return _.router;
4048
+ },
4049
+ emitter: _.emitter
4050
+ };
4051
+ self.__next_set_public_path__ = ()=>{};
4052
+ self.__webpack_hash__ = '';
4053
+ const devClient = (0, _hotmiddlewareclient.default)();
4054
+ (0, _.initialize)({
4055
+ devClient
4056
+ }).then(({ assetPrefix })=>{
4057
+ // for the page loader
4058
+ ;
4059
+ self.__turbopack_load_page_chunks__ = (page, chunksData)=>{
4060
+ const chunkPromises = chunksData.map((c)=>/*TURBOPACK member replacement*/ __turbopack_context__.l(c));
4061
+ Promise.all(chunkPromises).catch((err)=>console.error('failed to load chunks for page ' + page, err));
4062
+ };
4063
+ (0, _hmrclientts.connect)({
4064
+ addMessageListener (cb) {
4065
+ devClient.addTurbopackMessageListener(cb);
4066
+ },
4067
+ sendMessage: devClient.sendTurbopackMessage,
4068
+ onUpdateError: devClient.handleUpdateError
4069
+ });
4070
+ return (0, _pagebootstrap.pageBootstrap)(assetPrefix);
4071
+ }).catch((err)=>{
4072
+ console.error('Error was not caught', err);
4073
+ });
4074
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
4075
+ Object.defineProperty(exports.default, '__esModule', {
4076
+ value: true
4077
+ });
4078
+ Object.assign(exports.default, exports);
4079
+ module.exports = exports.default;
4080
+ }
4081
+ }),
4082
+ ]);
4083
+
4084
+ //# sourceMappingURL=node_modules_next_dist_client_16lnmlo._.js.map