meccatronis commited on
Commit
3d4ea9d
·
verified ·
1 Parent(s): 9ce415a

Upload .next/dev/server/chunks/ssr/[root-of-the-server]__70a73b34._.js with huggingface_hub

Browse files
.next/dev/server/chunks/ssr/[root-of-the-server]__70a73b34._.js ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ module.exports = [
2
+ "[externals]/react/jsx-runtime [external] (react/jsx-runtime, cjs)", ((__turbopack_context__, module, exports) => {
3
+
4
+ const mod = __turbopack_context__.x("react/jsx-runtime", () => require("react/jsx-runtime"));
5
+
6
+ module.exports = mod;
7
+ }),
8
+ "[externals]/react [external] (react, cjs)", ((__turbopack_context__, module, exports) => {
9
+
10
+ const mod = __turbopack_context__.x("react", () => require("react"));
11
+
12
+ module.exports = mod;
13
+ }),
14
+ "[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
15
+ "use strict";
16
+
17
+ function _interop_require_default(obj) {
18
+ return obj && obj.__esModule ? obj : {
19
+ default: obj
20
+ };
21
+ }
22
+ exports._ = _interop_require_default;
23
+ }),
24
+ "[project]/node_modules/next/dist/shared/lib/utils.js [ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
25
+ "use strict";
26
+
27
+ Object.defineProperty(exports, "__esModule", {
28
+ value: true
29
+ });
30
+ 0 && (module.exports = {
31
+ DecodeError: null,
32
+ MiddlewareNotFoundError: null,
33
+ MissingStaticPage: null,
34
+ NormalizeError: null,
35
+ PageNotFoundError: null,
36
+ SP: null,
37
+ ST: null,
38
+ WEB_VITALS: null,
39
+ execOnce: null,
40
+ getDisplayName: null,
41
+ getLocationOrigin: null,
42
+ getURL: null,
43
+ isAbsoluteUrl: null,
44
+ isResSent: null,
45
+ loadGetInitialProps: null,
46
+ normalizeRepeatedSlashes: null,
47
+ stringifyError: null
48
+ });
49
+ function _export(target, all) {
50
+ for(var name in all)Object.defineProperty(target, name, {
51
+ enumerable: true,
52
+ get: all[name]
53
+ });
54
+ }
55
+ _export(exports, {
56
+ DecodeError: function() {
57
+ return DecodeError;
58
+ },
59
+ MiddlewareNotFoundError: function() {
60
+ return MiddlewareNotFoundError;
61
+ },
62
+ MissingStaticPage: function() {
63
+ return MissingStaticPage;
64
+ },
65
+ NormalizeError: function() {
66
+ return NormalizeError;
67
+ },
68
+ PageNotFoundError: function() {
69
+ return PageNotFoundError;
70
+ },
71
+ SP: function() {
72
+ return SP;
73
+ },
74
+ ST: function() {
75
+ return ST;
76
+ },
77
+ WEB_VITALS: function() {
78
+ return WEB_VITALS;
79
+ },
80
+ execOnce: function() {
81
+ return execOnce;
82
+ },
83
+ getDisplayName: function() {
84
+ return getDisplayName;
85
+ },
86
+ getLocationOrigin: function() {
87
+ return getLocationOrigin;
88
+ },
89
+ getURL: function() {
90
+ return getURL;
91
+ },
92
+ isAbsoluteUrl: function() {
93
+ return isAbsoluteUrl;
94
+ },
95
+ isResSent: function() {
96
+ return isResSent;
97
+ },
98
+ loadGetInitialProps: function() {
99
+ return loadGetInitialProps;
100
+ },
101
+ normalizeRepeatedSlashes: function() {
102
+ return normalizeRepeatedSlashes;
103
+ },
104
+ stringifyError: function() {
105
+ return stringifyError;
106
+ }
107
+ });
108
+ const WEB_VITALS = [
109
+ 'CLS',
110
+ 'FCP',
111
+ 'FID',
112
+ 'INP',
113
+ 'LCP',
114
+ 'TTFB'
115
+ ];
116
+ function execOnce(fn) {
117
+ let used = false;
118
+ let result;
119
+ return (...args)=>{
120
+ if (!used) {
121
+ used = true;
122
+ result = fn(...args);
123
+ }
124
+ return result;
125
+ };
126
+ }
127
+ // Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
128
+ // Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
129
+ const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
130
+ const isAbsoluteUrl = (url)=>ABSOLUTE_URL_REGEX.test(url);
131
+ function getLocationOrigin() {
132
+ const { protocol, hostname, port } = window.location;
133
+ return `${protocol}//${hostname}${port ? ':' + port : ''}`;
134
+ }
135
+ function getURL() {
136
+ const { href } = window.location;
137
+ const origin = getLocationOrigin();
138
+ return href.substring(origin.length);
139
+ }
140
+ function getDisplayName(Component) {
141
+ return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
142
+ }
143
+ function isResSent(res) {
144
+ return res.finished || res.headersSent;
145
+ }
146
+ function normalizeRepeatedSlashes(url) {
147
+ const urlParts = url.split('?');
148
+ const urlNoQuery = urlParts[0];
149
+ return urlNoQuery // first we replace any non-encoded backslashes with forward
150
+ // then normalize repeated forward slashes
151
+ .replace(/\\/g, '/').replace(/\/\/+/g, '/') + (urlParts[1] ? `?${urlParts.slice(1).join('?')}` : '');
152
+ }
153
+ async function loadGetInitialProps(App, ctx) {
154
+ if ("TURBOPACK compile-time truthy", 1) {
155
+ if (App.prototype?.getInitialProps) {
156
+ const message = `"${getDisplayName(App)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;
157
+ throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
158
+ value: "E394",
159
+ enumerable: false,
160
+ configurable: true
161
+ });
162
+ }
163
+ }
164
+ // when called from _app `ctx` is nested in `ctx`
165
+ const res = ctx.res || ctx.ctx && ctx.ctx.res;
166
+ if (!App.getInitialProps) {
167
+ if (ctx.ctx && ctx.Component) {
168
+ // @ts-ignore pageProps default
169
+ return {
170
+ pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
171
+ };
172
+ }
173
+ return {};
174
+ }
175
+ const props = await App.getInitialProps(ctx);
176
+ if (res && isResSent(res)) {
177
+ return props;
178
+ }
179
+ if (!props) {
180
+ const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
181
+ throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
182
+ value: "E394",
183
+ enumerable: false,
184
+ configurable: true
185
+ });
186
+ }
187
+ if ("TURBOPACK compile-time truthy", 1) {
188
+ if (Object.keys(props).length === 0 && !ctx.ctx) {
189
+ console.warn(`${getDisplayName(App)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`);
190
+ }
191
+ }
192
+ return props;
193
+ }
194
+ const SP = typeof performance !== 'undefined';
195
+ const ST = SP && [
196
+ 'mark',
197
+ 'measure',
198
+ 'getEntriesByName'
199
+ ].every((method)=>typeof performance[method] === 'function');
200
+ class DecodeError extends Error {
201
+ }
202
+ class NormalizeError extends Error {
203
+ }
204
+ class PageNotFoundError extends Error {
205
+ constructor(page){
206
+ super();
207
+ this.code = 'ENOENT';
208
+ this.name = 'PageNotFoundError';
209
+ this.message = `Cannot find module for page: ${page}`;
210
+ }
211
+ }
212
+ class MissingStaticPage extends Error {
213
+ constructor(page, message){
214
+ super();
215
+ this.message = `Failed to load static file for page: ${page} ${message}`;
216
+ }
217
+ }
218
+ class MiddlewareNotFoundError extends Error {
219
+ constructor(){
220
+ super();
221
+ this.code = 'ENOENT';
222
+ this.message = `Cannot find the middleware module`;
223
+ }
224
+ }
225
+ function stringifyError(error) {
226
+ return JSON.stringify({
227
+ message: error.message,
228
+ stack: error.stack
229
+ });
230
+ } //# sourceMappingURL=utils.js.map
231
+ }),
232
+ "[project]/node_modules/next/dist/pages/_app.js [ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
233
+ "use strict";
234
+
235
+ Object.defineProperty(exports, "__esModule", {
236
+ value: true
237
+ });
238
+ Object.defineProperty(exports, "default", {
239
+ enumerable: true,
240
+ get: function() {
241
+ return App;
242
+ }
243
+ });
244
+ const _interop_require_default = __turbopack_context__.r("[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [ssr] (ecmascript)");
245
+ const _jsxruntime = __turbopack_context__.r("[externals]/react/jsx-runtime [external] (react/jsx-runtime, cjs)");
246
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[externals]/react [external] (react, cjs)"));
247
+ const _utils = __turbopack_context__.r("[project]/node_modules/next/dist/shared/lib/utils.js [ssr] (ecmascript)");
248
+ /**
249
+ * `App` component is used for initialize of pages. It allows for overwriting and full control of the `page` initialization.
250
+ * This allows for keeping state between navigation, custom error handling, injecting additional data.
251
+ */ async function appGetInitialProps({ Component, ctx }) {
252
+ const pageProps = await (0, _utils.loadGetInitialProps)(Component, ctx);
253
+ return {
254
+ pageProps
255
+ };
256
+ }
257
+ class App extends _react.default.Component {
258
+ static{
259
+ this.origGetInitialProps = appGetInitialProps;
260
+ }
261
+ static{
262
+ this.getInitialProps = appGetInitialProps;
263
+ }
264
+ render() {
265
+ const { Component, pageProps } = this.props;
266
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(Component, {
267
+ ...pageProps
268
+ });
269
+ }
270
+ }
271
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
272
+ Object.defineProperty(exports.default, '__esModule', {
273
+ value: true
274
+ });
275
+ Object.assign(exports.default, exports);
276
+ module.exports = exports.default;
277
+ } //# sourceMappingURL=_app.js.map
278
+ }),
279
+ "[project]/node_modules/next/app.js [ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
280
+
281
+ module.exports = __turbopack_context__.r("[project]/node_modules/next/dist/pages/_app.js [ssr] (ecmascript)");
282
+ }),
283
+ ];
284
+
285
+ //# sourceMappingURL=%5Broot-of-the-server%5D__70a73b34._.js.map