mrsandip commited on
Commit
e294ba1
·
verified ·
1 Parent(s): 41970c9

e-commerce

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. e-commerce/.env.local +0 -2
  2. e-commerce/.env.local.example +0 -19
  3. e-commerce/.gitignore +0 -47
  4. e-commerce/.next/BUILD_ID +0 -1
  5. e-commerce/.next/app-path-routes-manifest.json +0 -9
  6. e-commerce/.next/build-manifest.json +0 -91
  7. e-commerce/.next/build/chunks/[root-of-the-server]__05i36w1t4lzaf._.js +0 -502
  8. e-commerce/.next/build/chunks/[root-of-the-server]__05i36w1t4lzaf._.js.map +0 -11
  9. e-commerce/.next/build/chunks/[root-of-the-server]__1kki86fknkq7y._.js +0 -191
  10. e-commerce/.next/build/chunks/[root-of-the-server]__1kki86fknkq7y._.js.map +0 -8
  11. e-commerce/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js +0 -13
  12. e-commerce/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js.map +0 -5
  13. e-commerce/.next/build/chunks/[turbopack]_runtime.js +0 -1056
  14. e-commerce/.next/build/chunks/[turbopack]_runtime.js.map +0 -11
  15. e-commerce/.next/build/chunks/node_modules_20v-8wlfss9m1._.js +0 -0
  16. e-commerce/.next/build/chunks/node_modules_20v-8wlfss9m1._.js.map +0 -0
  17. e-commerce/.next/build/chunks/pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js +0 -6
  18. e-commerce/.next/build/chunks/pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js.map +0 -5
  19. e-commerce/.next/build/package.json +0 -1
  20. e-commerce/.next/cache/.previewinfo +0 -1
  21. e-commerce/.next/cache/.rscinfo +0 -1
  22. e-commerce/.next/cache/.tsbuildinfo +0 -0
  23. e-commerce/.next/cache/_events_551279_aae0d5938ad89b57.json +0 -1
  24. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000027.sst +0 -3
  25. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000032.sst +0 -0
  26. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000033.meta +0 -3
  27. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000044.sst +0 -0
  28. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000048.meta +0 -0
  29. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000080.sst +0 -3
  30. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000083.meta +0 -0
  31. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000094.sst +0 -0
  32. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000098.meta +0 -0
  33. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000101.sst +0 -3
  34. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000106.meta +0 -0
  35. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000109.sst +0 -3
  36. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000110.sst +0 -3
  37. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000114.meta +0 -3
  38. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000116.sst +0 -0
  39. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000121.meta +0 -0
  40. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000177.sst +0 -3
  41. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000178.sst +0 -3
  42. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000179.meta +0 -3
  43. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000182.sst +0 -3
  44. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000186.meta +0 -0
  45. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000187.sst +0 -0
  46. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000188.sst +0 -3
  47. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000189.meta +0 -0
  48. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000190.meta +0 -0
  49. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000193.sst +0 -3
  50. e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000194.sst +0 -3
e-commerce/.env.local DELETED
@@ -1,2 +0,0 @@
1
- DATABASE_URL="postgresql://postgres:postgres@localhost:5432/e_commerce"
2
- NEXT_PUBLIC_APP_URL="http://localhost:3000"
 
 
 
e-commerce/.env.local.example DELETED
@@ -1,19 +0,0 @@
1
- # Local Postgres (D9: local Postgres for now — Phase 10 decides production DB)
2
- DATABASE_URL="postgresql://postgres:postgres@localhost:5432/e_commerce?schema=public"
3
-
4
- # App
5
- NEXT_PUBLIC_APP_URL="http://localhost:3000"
6
-
7
- # Auth (Better Auth — Phase 5; secrets are real values you paste at that phase)
8
- # BETTER_AUTH_SECRET=...
9
- # BETTER_AUTH_URL=http://localhost:3000
10
-
11
- # Payments (Phase 6 — sandbox only until merchant KYB is confirmed, per PROJECT_MEMORY §9.1)
12
- # RAZORPAY_KEY_ID=...
13
- # RAZORPAY_KEY_SECRET=...
14
- # RAZORPAY_WEBHOOK_SECRET=...
15
- # CASHFREE_API_KEY=...
16
- # PHONEPE_MERCHANT_ID=...
17
-
18
- # Courier (Phase 6 — Shiprocket first, per PROJECT_MEMORY §9.2)
19
- # SHRIPROCKET_API_KEY=...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e-commerce/.gitignore DELETED
@@ -1,47 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
-
3
- # dependencies
4
- /node_modules
5
- /.pnp
6
- .pnp.*
7
- .yarn/*
8
- !.yarn/patches
9
- !.yarn/plugins
10
- !.yarn/releases
11
- !.yarn/versions
12
-
13
- # testing
14
- /coverage
15
-
16
- # next.js
17
- /.next/
18
- /out/
19
-
20
- # production
21
- /build
22
-
23
- # misc
24
- .DS_Store
25
- *.pem
26
-
27
- # debug
28
- npm-debug.log*
29
- yarn-debug.log*
30
- yarn-error.log*
31
- .pnpm-debug.log*
32
-
33
- # env files (can opt-in for committing if needed)
34
- .env*
35
-
36
- # vercel
37
- .vercel
38
-
39
- # typescript
40
- *.tsbuildinfo
41
- next-env.d.ts
42
- .env.local
43
- .env.development.local
44
- .env.production.local
45
- drizzle/
46
- .turbo
47
- node_modules
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e-commerce/.next/BUILD_ID DELETED
@@ -1 +0,0 @@
1
- dRI9LFT7roNJ8J1q20Bu8
 
 
e-commerce/.next/app-path-routes-manifest.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "/[locale]/catalog/category/[slug]/page": "/[locale]/catalog/category/[slug]",
3
- "/[locale]/catalog/product/[slug]/page": "/[locale]/catalog/product/[slug]",
4
- "/[locale]/page": "/[locale]",
5
- "/_global-error/page": "/_global-error",
6
- "/_not-found/page": "/_not-found",
7
- "/favicon.ico/route": "/favicon.ico",
8
- "/page": "/"
9
- }
 
 
 
 
 
 
 
 
 
 
e-commerce/.next/build-manifest.json DELETED
@@ -1,91 +0,0 @@
1
- {
2
- "pages": {
3
- "/_app": []
4
- },
5
- "devFiles": [],
6
- "polyfillFiles": [
7
- "static/chunks/0cz1d0mv5g_q7.js"
8
- ],
9
- "lowPriorityFiles": [
10
- "static/dRI9LFT7roNJ8J1q20Bu8/_buildManifest.js",
11
- "static/dRI9LFT7roNJ8J1q20Bu8/_ssgManifest.js",
12
- "static/dRI9LFT7roNJ8J1q20Bu8/_clientMiddlewareManifest.js"
13
- ],
14
- "rootMainFiles": [
15
- "static/chunks/1ckvzn7sfprko.js",
16
- "static/chunks/2bzlqb104tejm.js",
17
- "static/chunks/0s7mvllxht1mo.js",
18
- "static/chunks/1xq8ggvplsax4.js",
19
- "static/chunks/turbopack-3-ry682tkyiqk.js"
20
- ],
21
- "rootMainFilesTree": {},
22
- "pagesChunkGroupBootstrapParams": {
23
- "/page": {
24
- "otherChunks": [
25
- "static/chunks/1ckvzn7sfprko.js",
26
- "static/chunks/2bzlqb104tejm.js",
27
- "static/chunks/0s7mvllxht1mo.js",
28
- "static/chunks/1xq8ggvplsax4.js"
29
- ],
30
- "runtimeModuleIds": [
31
- 94553
32
- ]
33
- },
34
- "/_not-found/page": {
35
- "otherChunks": [
36
- "static/chunks/1ckvzn7sfprko.js",
37
- "static/chunks/2bzlqb104tejm.js",
38
- "static/chunks/0s7mvllxht1mo.js",
39
- "static/chunks/1xq8ggvplsax4.js"
40
- ],
41
- "runtimeModuleIds": [
42
- 94553
43
- ]
44
- },
45
- "/_global-error/page": {
46
- "otherChunks": [
47
- "static/chunks/1ckvzn7sfprko.js",
48
- "static/chunks/2bzlqb104tejm.js",
49
- "static/chunks/0s7mvllxht1mo.js",
50
- "static/chunks/1xq8ggvplsax4.js"
51
- ],
52
- "runtimeModuleIds": [
53
- 94553
54
- ]
55
- },
56
- "/[locale]/page": {
57
- "otherChunks": [
58
- "static/chunks/1ckvzn7sfprko.js",
59
- "static/chunks/2bzlqb104tejm.js",
60
- "static/chunks/0s7mvllxht1mo.js",
61
- "static/chunks/1xq8ggvplsax4.js"
62
- ],
63
- "runtimeModuleIds": [
64
- 94553
65
- ]
66
- },
67
- "/[locale]/catalog/category/[slug]/page": {
68
- "otherChunks": [
69
- "static/chunks/1ckvzn7sfprko.js",
70
- "static/chunks/2bzlqb104tejm.js",
71
- "static/chunks/0s7mvllxht1mo.js",
72
- "static/chunks/1xq8ggvplsax4.js"
73
- ],
74
- "runtimeModuleIds": [
75
- 94553
76
- ]
77
- },
78
- "/[locale]/catalog/product/[slug]/page": {
79
- "otherChunks": [
80
- "static/chunks/1ckvzn7sfprko.js",
81
- "static/chunks/2bzlqb104tejm.js",
82
- "static/chunks/0s7mvllxht1mo.js",
83
- "static/chunks/1xq8ggvplsax4.js"
84
- ],
85
- "runtimeModuleIds": [
86
- 94553
87
- ]
88
- }
89
- },
90
- "chunkLoadingGlobal": "TURBOPACK"
91
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e-commerce/.next/build/chunks/[root-of-the-server]__05i36w1t4lzaf._.js DELETED
@@ -1,502 +0,0 @@
1
- module.exports = [
2
- (()=>{"use strict";return[
3
- "[turbopack-node]/child_process/evaluate.ts [postcss] (ecmascript)", ((__turbopack_context__) => {
4
- "use strict";
5
-
6
- __turbopack_context__.s([
7
- "run",
8
- ()=>run
9
- ]);
10
- var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$index$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/child_process/index.ts [postcss] (ecmascript)");
11
- ;
12
- const ipc = __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$index$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["IPC"];
13
- const queue = [];
14
- const run = async (moduleFactory)=>{
15
- let nextId = 1;
16
- const requests = new Map();
17
- const internalIpc = {
18
- sendInfo: (message)=>ipc.send({
19
- type: 'info',
20
- data: message
21
- }),
22
- sendRequest: (message)=>{
23
- const id = nextId++;
24
- let resolve, reject;
25
- const promise = new Promise((res, rej)=>{
26
- resolve = res;
27
- reject = rej;
28
- });
29
- requests.set(id, {
30
- resolve,
31
- reject
32
- });
33
- return ipc.send({
34
- type: 'request',
35
- id,
36
- data: message
37
- }).then(()=>promise);
38
- },
39
- sendError: (error)=>{
40
- return ipc.sendError(error);
41
- }
42
- };
43
- // Initialize module and send ready message
44
- let getValue;
45
- try {
46
- const module = await moduleFactory();
47
- if (typeof module.init === 'function') {
48
- await module.init();
49
- }
50
- getValue = module.default;
51
- await ipc.sendReady();
52
- } catch (err) {
53
- await ipc.sendReady();
54
- await ipc.sendError(err);
55
- }
56
- // Queue handling
57
- let isRunning = false;
58
- const run = async ()=>{
59
- while(queue.length > 0){
60
- const args = queue.shift();
61
- try {
62
- const value = await getValue(internalIpc, ...args);
63
- await ipc.send({
64
- type: 'end',
65
- data: value === undefined ? undefined : JSON.stringify(value, null, 2),
66
- duration: 0
67
- });
68
- } catch (e) {
69
- await ipc.sendError(e);
70
- }
71
- }
72
- isRunning = false;
73
- };
74
- // Communication handling
75
- while(true){
76
- const msg = await ipc.recv();
77
- switch(msg.type){
78
- case 'evaluate':
79
- {
80
- queue.push(msg.args);
81
- if (!isRunning) {
82
- isRunning = true;
83
- run();
84
- }
85
- break;
86
- }
87
- case 'result':
88
- {
89
- const request = requests.get(msg.id);
90
- if (request) {
91
- requests.delete(msg.id);
92
- if (msg.error) {
93
- request.reject(new Error(msg.error));
94
- } else {
95
- request.resolve(msg.data);
96
- }
97
- }
98
- break;
99
- }
100
- default:
101
- {
102
- console.error('unexpected message type', msg.type);
103
- process.exit(1);
104
- }
105
- }
106
- }
107
- };
108
- }),
109
- "[turbopack-node]/child_process/evaluate.ts/evaluate.js { INNER => \"[turbopack-node]/transforms/postcss.ts?config=[project]/postcss.config.mjs { CONFIG => \\\"[project]/postcss.config.mjs [postcss] (ecmascript)\\\" } [postcss] (ecmascript)\", RUNTIME => \"[turbopack-node]/child_process/evaluate.ts [postcss] (ecmascript)\" } [postcss] (ecmascript)", ((__turbopack_context__) => {
110
- "use strict";
111
-
112
- __turbopack_context__.s([]);
113
- var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$evaluate$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/child_process/evaluate.ts [postcss] (ecmascript)");
114
- ;
115
- (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$child_process$2f$evaluate$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["run"])(()=>__turbopack_context__.A('[turbopack-node]/transforms/postcss.ts?config=[project]/postcss.config.mjs { CONFIG => "[project]/postcss.config.mjs [postcss] (ecmascript)" } [postcss] (ecmascript, async loader)'));
116
- }),
117
- "[turbopack-node]/child_process/index.ts [postcss] (ecmascript)", ((__turbopack_context__) => {
118
- "use strict";
119
-
120
- __turbopack_context__.s([
121
- "IPC",
122
- ()=>IPC
123
- ]);
124
- var __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$net__$5b$external$5d$__$28$node$3a$net$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/node:net [external] (node:net, cjs)");
125
- var __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$stream__$5b$external$5d$__$28$node$3a$stream$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/node:stream [external] (node:stream, cjs)");
126
- var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$error$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/error.ts [postcss] (ecmascript)");
127
- ;
128
- ;
129
- ;
130
- function createIpc(port) {
131
- const socket = (0, __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$net__$5b$external$5d$__$28$node$3a$net$2c$__cjs$29$__["createConnection"])({
132
- port,
133
- host: '127.0.0.1'
134
- });
135
- /**
136
- * A writable stream that writes to the socket.
137
- * We don't write directly to the socket because we need to
138
- * handle backpressure and wait for the socket to be drained
139
- * before writing more data.
140
- */ const socketWritable = new __TURBOPACK__imported__module__$5b$externals$5d2f$node$3a$stream__$5b$external$5d$__$28$node$3a$stream$2c$__cjs$29$__["Writable"]({
141
- write (chunk, _enc, cb) {
142
- if (socket.write(chunk)) {
143
- cb();
144
- } else {
145
- socket.once('drain', cb);
146
- }
147
- },
148
- final (cb) {
149
- socket.end(cb);
150
- }
151
- });
152
- const packetQueue = [];
153
- const recvPromiseResolveQueue = [];
154
- function pushPacket(packet) {
155
- const recvPromiseResolve = recvPromiseResolveQueue.shift();
156
- if (recvPromiseResolve != null) {
157
- recvPromiseResolve(JSON.parse(packet.toString('utf8')));
158
- } else {
159
- packetQueue.push(packet);
160
- }
161
- }
162
- let state = {
163
- type: 'waiting'
164
- };
165
- let buffer = Buffer.alloc(0);
166
- socket.once('connect', ()=>{
167
- socket.setNoDelay(true);
168
- socket.on('data', (chunk)=>{
169
- buffer = Buffer.concat([
170
- buffer,
171
- chunk
172
- ]);
173
- loop: while(true){
174
- switch(state.type){
175
- case 'waiting':
176
- {
177
- if (buffer.length >= 4) {
178
- const length = buffer.readUInt32BE(0);
179
- buffer = buffer.subarray(4);
180
- state = {
181
- type: 'packet',
182
- length
183
- };
184
- } else {
185
- break loop;
186
- }
187
- break;
188
- }
189
- case 'packet':
190
- {
191
- if (buffer.length >= state.length) {
192
- const packet = buffer.subarray(0, state.length);
193
- buffer = buffer.subarray(state.length);
194
- state = {
195
- type: 'waiting'
196
- };
197
- pushPacket(packet);
198
- } else {
199
- break loop;
200
- }
201
- break;
202
- }
203
- default:
204
- invariant(state, (state)=>`Unknown state type: ${state?.type}`);
205
- }
206
- }
207
- });
208
- });
209
- // When the socket is closed, this process is no longer needed.
210
- // This might happen e. g. when parent process is killed or
211
- // node.js pool is garbage collected.
212
- socket.once('close', ()=>{
213
- process.exit(0);
214
- });
215
- // TODO(lukesandberg): some of the messages being sent are very large and contain lots
216
- // of redundant information. Consider adding gzip compression to our stream.
217
- function doSend(message) {
218
- return new Promise((resolve, reject)=>{
219
- // Reserve 4 bytes for our length prefix, we will over-write after encoding.
220
- const packet = Buffer.from('0000' + message, 'utf8');
221
- packet.writeUInt32BE(packet.length - 4, 0);
222
- socketWritable.write(packet, (err)=>{
223
- process.stderr.write(`TURBOPACK_OUTPUT_D\n`);
224
- process.stdout.write(`TURBOPACK_OUTPUT_D\n`);
225
- if (err != null) {
226
- reject(err);
227
- } else {
228
- resolve();
229
- }
230
- });
231
- });
232
- }
233
- function send(message) {
234
- return doSend(JSON.stringify(message));
235
- }
236
- function sendReady() {
237
- return doSend('');
238
- }
239
- return {
240
- async recv () {
241
- const packet = packetQueue.shift();
242
- if (packet != null) {
243
- return JSON.parse(packet.toString('utf8'));
244
- }
245
- const result = await new Promise((resolve)=>{
246
- recvPromiseResolveQueue.push((result)=>{
247
- resolve(result);
248
- });
249
- });
250
- return result;
251
- },
252
- send (message) {
253
- return send(message);
254
- },
255
- sendReady,
256
- async sendError (error) {
257
- let failed = false;
258
- try {
259
- await send({
260
- type: 'error',
261
- ...(0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$error$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["structuredError"])(error)
262
- });
263
- } catch (err) {
264
- // There's nothing we can do about errors that happen after this point, we can't tell anyone
265
- // about them.
266
- console.error('failed to send error back to rust:', err);
267
- failed = true;
268
- }
269
- await new Promise((res)=>socket.end(()=>res()));
270
- process.exit(failed ? 1 : 0);
271
- }
272
- };
273
- }
274
- const PORT = process.argv[2];
275
- const IPC = createIpc(parseInt(PORT, 10));
276
- process.on('uncaughtException', (err)=>{
277
- IPC.sendError(err);
278
- });
279
- process.on('unhandledRejection', (reason)=>{
280
- IPC.sendError(reason instanceof Error ? reason : new Error(String(reason)));
281
- });
282
- const improveConsole = (name, stream, addStack)=>{
283
- // @ts-ignore
284
- const original = console[name];
285
- // @ts-ignore
286
- const stdio = process[stream];
287
- // @ts-ignore
288
- console[name] = (...args)=>{
289
- stdio.write(`TURBOPACK_OUTPUT_B\n`);
290
- original(...args);
291
- if (addStack) {
292
- const stack = new Error().stack?.replace(/^.+\n.+\n/, '') + '\n';
293
- stdio.write('TURBOPACK_OUTPUT_S\n');
294
- stdio.write(stack);
295
- }
296
- stdio.write('TURBOPACK_OUTPUT_E\n');
297
- };
298
- };
299
- improveConsole('error', 'stderr', true);
300
- improveConsole('warn', 'stderr', true);
301
- improveConsole('count', 'stdout', true);
302
- improveConsole('trace', 'stderr', false);
303
- improveConsole('log', 'stdout', true);
304
- improveConsole('group', 'stdout', true);
305
- improveConsole('groupCollapsed', 'stdout', true);
306
- improveConsole('table', 'stdout', true);
307
- improveConsole('debug', 'stdout', true);
308
- improveConsole('info', 'stdout', true);
309
- improveConsole('dir', 'stdout', true);
310
- improveConsole('dirxml', 'stdout', true);
311
- improveConsole('timeEnd', 'stdout', true);
312
- improveConsole('timeLog', 'stdout', true);
313
- improveConsole('timeStamp', 'stdout', true);
314
- improveConsole('assert', 'stderr', true);
315
- /**
316
- * Utility function to ensure all variants of an enum are handled.
317
- */ function invariant(never, computeMessage) {
318
- throw new Error(`Invariant: ${computeMessage(never)}`);
319
- }
320
- }),
321
- "[turbopack-node]/compiled/stacktrace-parser/index.js [postcss] (ecmascript)", ((__turbopack_context__) => {
322
- "use strict";
323
-
324
- __turbopack_context__.s([
325
- "parse",
326
- ()=>parse
327
- ]);
328
- if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = ("TURBOPACK compile-time value", "/ROOT/compiled/stacktrace-parser") + "/";
329
- var n = "<unknown>";
330
- function parse(e) {
331
- var r = e.split("\n");
332
- return r.reduce(function(e, r) {
333
- var n = parseChrome(r) || parseWinjs(r) || parseGecko(r) || parseNode(r) || parseJSC(r);
334
- if (n) {
335
- e.push(n);
336
- }
337
- return e;
338
- }, []);
339
- }
340
- var a = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
341
- var l = /\((\S*)(?::(\d+))(?::(\d+))\)/;
342
- function parseChrome(e) {
343
- var r = a.exec(e);
344
- if (!r) {
345
- return null;
346
- }
347
- var u = r[2] && r[2].indexOf("native") === 0;
348
- var t = r[2] && r[2].indexOf("eval") === 0;
349
- var i = l.exec(r[2]);
350
- if (t && i != null) {
351
- r[2] = i[1];
352
- r[3] = i[2];
353
- r[4] = i[3];
354
- }
355
- return {
356
- file: !u ? r[2] : null,
357
- methodName: r[1] || n,
358
- arguments: u ? [
359
- r[2]
360
- ] : [],
361
- lineNumber: r[3] ? +r[3] : null,
362
- column: r[4] ? +r[4] : null
363
- };
364
- }
365
- var u = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
366
- function parseWinjs(e) {
367
- var r = u.exec(e);
368
- if (!r) {
369
- return null;
370
- }
371
- return {
372
- file: r[2],
373
- methodName: r[1] || n,
374
- arguments: [],
375
- lineNumber: +r[3],
376
- column: r[4] ? +r[4] : null
377
- };
378
- }
379
- var t = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i;
380
- var i = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
381
- function parseGecko(e) {
382
- var r = t.exec(e);
383
- if (!r) {
384
- return null;
385
- }
386
- var a = r[3] && r[3].indexOf(" > eval") > -1;
387
- var l = i.exec(r[3]);
388
- if (a && l != null) {
389
- r[3] = l[1];
390
- r[4] = l[2];
391
- r[5] = null;
392
- }
393
- return {
394
- file: r[3],
395
- methodName: r[1] || n,
396
- arguments: r[2] ? r[2].split(",") : [],
397
- lineNumber: r[4] ? +r[4] : null,
398
- column: r[5] ? +r[5] : null
399
- };
400
- }
401
- var s = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;
402
- function parseJSC(e) {
403
- var r = s.exec(e);
404
- if (!r) {
405
- return null;
406
- }
407
- return {
408
- file: r[3],
409
- methodName: r[1] || n,
410
- arguments: [],
411
- lineNumber: +r[4],
412
- column: r[5] ? +r[5] : null
413
- };
414
- }
415
- var o = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;
416
- function parseNode(e) {
417
- var r = o.exec(e);
418
- if (!r) {
419
- return null;
420
- }
421
- return {
422
- file: r[2],
423
- methodName: r[1] || n,
424
- arguments: [],
425
- lineNumber: +r[3],
426
- column: r[4] ? +r[4] : null
427
- };
428
- }
429
- }),
430
- "[turbopack-node]/error.ts [postcss] (ecmascript)", ((__turbopack_context__) => {
431
- "use strict";
432
-
433
- __turbopack_context__.s([
434
- "default",
435
- ()=>isError,
436
- "getProperError",
437
- ()=>getProperError,
438
- "structuredError",
439
- ()=>structuredError
440
- ]);
441
- var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$compiled$2f$stacktrace$2d$parser$2f$index$2e$js__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/compiled/stacktrace-parser/index.js [postcss] (ecmascript)");
442
- ;
443
- function isError(err) {
444
- return typeof err === 'object' && err !== null && 'name' in err && 'message' in err;
445
- }
446
- function getProperError(err) {
447
- if (isError(err)) {
448
- return err;
449
- }
450
- if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
451
- ;
452
- return new Error(isPlainObject(err) ? JSON.stringify(err) : err + '');
453
- }
454
- function getObjectClassLabel(value) {
455
- return Object.prototype.toString.call(value);
456
- }
457
- function isPlainObject(value) {
458
- if (getObjectClassLabel(value) !== '[object Object]') {
459
- return false;
460
- }
461
- const prototype = Object.getPrototypeOf(value);
462
- /**
463
- * this used to be previously:
464
- *
465
- * `return prototype === null || prototype === Object.prototype`
466
- *
467
- * but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail.
468
- *
469
- * It was changed to the current implementation since it's resilient to serialization.
470
- */ return prototype === null || prototype.hasOwnProperty('isPrototypeOf');
471
- }
472
- function structuredError(e) {
473
- e = getProperError(e);
474
- return {
475
- name: e.name,
476
- message: e.message,
477
- stack: typeof e.stack === 'string' ? (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$compiled$2f$stacktrace$2d$parser$2f$index$2e$js__$5b$postcss$5d$__$28$ecmascript$29$__["parse"])(e.stack) : [],
478
- cause: e.cause ? structuredError(getProperError(e.cause)) : undefined
479
- };
480
- }
481
- }),
482
- ]})(),
483
- "[externals]/node:net [external] (node:net, cjs)", ((__turbopack_context__, module, exports) => {
484
-
485
- var mod = __turbopack_context__.x("node:net", () => require("node:net"));
486
-
487
- module.exports = mod;
488
- }),
489
- "[externals]/node:stream [external] (node:stream, cjs)", ((__turbopack_context__, module, exports) => {
490
-
491
- var mod = __turbopack_context__.x("node:stream", () => require("node:stream"));
492
-
493
- module.exports = mod;
494
- }),
495
- "[turbopack-node]/child_process/globals.ts [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
496
-
497
- // @ts-ignore
498
- process.turbopack = {};
499
- }),
500
- ];
501
-
502
- //# sourceMappingURL=%5Broot-of-the-server%5D__05i36w1t4lzaf._.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e-commerce/.next/build/chunks/[root-of-the-server]__05i36w1t4lzaf._.js.map DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sections": [
5
- {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/evaluate.ts"],"sourcesContent":["import { IPC } from './index'\nimport type { Ipc as GenericIpc } from './index'\n\nimport type { Channel as Ipc } from '../types'\n\ntype IpcIncomingMessage =\n | {\n type: 'evaluate'\n args: string[]\n }\n | {\n type: 'result'\n id: number\n error: string | null\n data: any | null\n }\n\ntype IpcOutgoingMessage =\n | {\n type: 'end'\n data: string | undefined\n duration: number\n }\n | {\n type: 'info'\n data: any\n }\n | {\n type: 'request'\n id: number\n data: any\n }\n\nconst ipc = IPC as GenericIpc<IpcIncomingMessage, IpcOutgoingMessage>\n\nconst queue: string[][] = []\n\nexport const run = async (\n moduleFactory: () => Promise<{\n init?: () => Promise<void>\n default: (ipc: Ipc<any, any>, ...deserializedArgs: any[]) => any\n }>\n) => {\n let nextId = 1\n const requests = new Map()\n const internalIpc = {\n sendInfo: (message: any) =>\n ipc.send({\n type: 'info',\n data: message,\n }),\n sendRequest: (message: any) => {\n const id = nextId++\n let resolve, reject\n const promise = new Promise((res, rej) => {\n resolve = res\n reject = rej\n })\n requests.set(id, { resolve, reject })\n return ipc\n .send({ type: 'request', id, data: message })\n .then(() => promise)\n },\n sendError: (error: Error) => {\n return ipc.sendError(error)\n },\n }\n\n // Initialize module and send ready message\n let getValue: (ipc: Ipc<any, any>, ...deserializedArgs: any[]) => any\n try {\n const module = await moduleFactory()\n if (typeof module.init === 'function') {\n await module.init()\n }\n getValue = module.default\n await ipc.sendReady()\n } catch (err) {\n await ipc.sendReady()\n await ipc.sendError(err as Error)\n }\n\n // Queue handling\n let isRunning = false\n const run = async () => {\n while (queue.length > 0) {\n const args = queue.shift()!\n try {\n const value = await getValue(internalIpc, ...args)\n await ipc.send({\n type: 'end',\n data:\n value === undefined ? undefined : JSON.stringify(value, null, 2),\n duration: 0,\n })\n } catch (e) {\n await ipc.sendError(e as Error)\n }\n }\n isRunning = false\n }\n\n // Communication handling\n while (true) {\n const msg = await ipc.recv()\n\n switch (msg.type) {\n case 'evaluate': {\n queue.push(msg.args)\n if (!isRunning) {\n isRunning = true\n run()\n }\n break\n }\n case 'result': {\n const request = requests.get(msg.id)\n if (request) {\n requests.delete(msg.id)\n if (msg.error) {\n request.reject(new Error(msg.error))\n } else {\n request.resolve(msg.data)\n }\n }\n break\n }\n default: {\n console.error('unexpected message type', (msg as any).type)\n process.exit(1)\n }\n }\n }\n}\n\nexport type { IpcIncomingMessage, IpcOutgoingMessage }\n"],"names":["ipc","queue","run","moduleFactory","nextId","requests","Map","internalIpc","sendInfo","message","send","type","data","sendRequest","id","resolve","reject","promise","Promise","res","rej","set","then","sendError","error","getValue","module","init","default","sendReady","err","isRunning","length","args","shift","value","undefined","JSON","stringify","duration","e","msg","recv","push","request","get","delete","Error","console","process","exit"],"mappings":";;;;AAAA;;AAiCA,MAAMA,MAAM,oIAAG;AAEf,MAAMC,QAAoB,EAAE;AAErB,MAAMC,MAAM,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yB;IACzB,MAAO,KAAM;QACX,MAAMU,MAAM,MAAMzC,IAAI0C,IAAI;QAE1B,OAAQD,IAAI9B,IAAI;YACd,KAAK;gBAAY;oBACfV,MAAM0C,IAAI,CAACF,IAAIR,IAAI;oBACnB,IAAI,CAACF,WAAW;wBACdA,YAAY;wBACZ7B;oBACF;oBACA;gBACF;YACA,KAAK;gBAAU;oBACb,MAAM0C,UAAUvC,SAASwC,GAAG,CAACJ,IAAI3B,EAAE;oBACnC,IAAI8B,SAAS;wBACXvC,SAASyC,MAAM,CAACL,IAAI3B,EAAE;wBACtB,IAAI2B,IAAIjB,KAAK,EAAE;4BACboB,QAAQ5B,MAAM,CAAC,IAAI+B,MAAMN,IAAIjB,KAAK;wBACpC,OAAO;4BACLoB,QAAQ7B,OAAO,CAAC0B,IAAI7B,IAAI;wBAC1B;oBACF;oBACA;gBACF;YACA;gBAAS;oBACPoC,QAAQxB,KAAK,CAAC,2BAA2B,AAACiB,IAAY9B,IAAI;oBAC1DsC,QAAQC,IAAI,CAAC;gBACf;QACF;IACF;AACF"}},
6
- {"offset": {"line": 111, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/evaluate.ts/evaluate.js"],"sourcesContent":["import {run} from 'RUNTIME'; run(() => import('INNER'))"],"names":[],"mappings":";AAAA;;AAA6B,IAAA,uIAAG,EAAC"}},
7
- {"offset": {"line": 119, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/index.ts"],"sourcesContent":["import { createConnection } from 'node:net'\nimport { Writable } from 'node:stream'\nimport { structuredError } from '../error'\n\ntype State =\n | {\n type: 'waiting'\n }\n | {\n type: 'packet'\n length: number\n }\n\nexport type Ipc<TIncoming, TOutgoing> = {\n recv(): Promise<TIncoming>\n send(message: TOutgoing): Promise<void>\n sendError(error: Error | string): Promise<never>\n sendReady(): Promise<void>\n}\n\nfunction createIpc<TIncoming, TOutgoing>(\n port: number\n): Ipc<TIncoming, TOutgoing> {\n const socket = createConnection({\n port,\n host: '127.0.0.1',\n })\n\n /**\n * A writable stream that writes to the socket.\n * We don't write directly to the socket because we need to\n * handle backpressure and wait for the socket to be drained\n * before writing more data.\n */\n const socketWritable = new Writable({\n write(chunk, _enc, cb) {\n if (socket.write(chunk)) {\n cb()\n } else {\n socket.once('drain', cb)\n }\n },\n final(cb) {\n socket.end(cb)\n },\n })\n\n const packetQueue: Buffer[] = []\n const recvPromiseResolveQueue: Array<(message: TIncoming) => void> = []\n\n function pushPacket(packet: Buffer) {\n const recvPromiseResolve = recvPromiseResolveQueue.shift()\n if (recvPromiseResolve != null) {\n recvPromiseResolve(JSON.parse(packet.toString('utf8')) as TIncoming)\n } else {\n packetQueue.push(packet)\n }\n }\n\n let state: State = { type: 'waiting' }\n let buffer: Buffer = Buffer.alloc(0)\n socket.once('connect', () => {\n socket.setNoDelay(true)\n socket.on('data', (chunk) => {\n buffer = Buffer.concat([buffer, chunk])\n\n loop: while (true) {\n switch (state.type) {\n case 'waiting': {\n if (buffer.length >= 4) {\n const length = buffer.readUInt32BE(0)\n buffer = buffer.subarray(4)\n state = { type: 'packet', length }\n } else {\n break loop\n }\n break\n }\n case 'packet': {\n if (buffer.length >= state.length) {\n const packet = buffer.subarray(0, state.length)\n buffer = buffer.subarray(state.length)\n state = { type: 'waiting' }\n pushPacket(packet)\n } else {\n break loop\n }\n break\n }\n default:\n invariant(state, (state) => `Unknown state type: ${state?.type}`)\n }\n }\n })\n })\n // When the socket is closed, this process is no longer needed.\n // This might happen e. g. when parent process is killed or\n // node.js pool is garbage collected.\n socket.once('close', () => {\n process.exit(0)\n })\n\n // TODO(lukesandberg): some of the messages being sent are very large and contain lots\n // of redundant information. Consider adding gzip compression to our stream.\n function doSend(message: string): Promise<void> {\n return new Promise((resolve, reject) => {\n // Reserve 4 bytes for our length prefix, we will over-write after encoding.\n const packet = Buffer.from('0000' + message, 'utf8')\n packet.writeUInt32BE(packet.length - 4, 0)\n socketWritable.write(packet, (err) => {\n process.stderr.write(`TURBOPACK_OUTPUT_D\\n`)\n process.stdout.write(`TURBOPACK_OUTPUT_D\\n`)\n if (err != null) {\n reject(err)\n } else {\n resolve()\n }\n })\n })\n }\n\n function send(message: any): Promise<void> {\n return doSend(JSON.stringify(message))\n }\n function sendReady(): Promise<void> {\n return doSend('')\n }\n\n return {\n async recv() {\n const packet = packetQueue.shift()\n if (packet != null) {\n return JSON.parse(packet.toString('utf8')) as TIncoming\n }\n\n const result = await new Promise<TIncoming>((resolve) => {\n recvPromiseResolveQueue.push((result) => {\n resolve(result)\n })\n })\n\n return result\n },\n\n send(message: TOutgoing) {\n return send(message)\n },\n\n sendReady,\n\n async sendError(error: Error): Promise<never> {\n let failed = false\n try {\n await send({\n type: 'error',\n ...structuredError(error),\n })\n } catch (err) {\n // There's nothing we can do about errors that happen after this point, we can't tell anyone\n // about them.\n console.error('failed to send error back to rust:', err)\n failed = true\n }\n await new Promise<void>((res) => socket.end(() => res()))\n process.exit(failed ? 1 : 0)\n },\n }\n}\n\nconst PORT = process.argv[2]\n\nexport const IPC = createIpc<unknown, unknown>(parseInt(PORT, 10))\n\nprocess.on('uncaughtException', (err) => {\n IPC.sendError(err)\n})\n\nprocess.on('unhandledRejection', (reason) => {\n IPC.sendError(reason instanceof Error ? reason : new Error(String(reason)))\n})\n\nconst improveConsole = (name: string, stream: string, addStack: boolean) => {\n // @ts-ignore\n const original = console[name]\n // @ts-ignore\n const stdio = process[stream]\n // @ts-ignore\n console[name] = (...args: any[]) => {\n stdio.write(`TURBOPACK_OUTPUT_B\\n`)\n original(...args)\n if (addStack) {\n const stack = new Error().stack?.replace(/^.+\\n.+\\n/, '') + '\\n'\n stdio.write('TURBOPACK_OUTPUT_S\\n')\n stdio.write(stack)\n }\n stdio.write('TURBOPACK_OUTPUT_E\\n')\n }\n}\n\nimproveConsole('error', 'stderr', true)\nimproveConsole('warn', 'stderr', true)\nimproveConsole('count', 'stdout', true)\nimproveConsole('trace', 'stderr', false)\nimproveConsole('log', 'stdout', true)\nimproveConsole('group', 'stdout', true)\nimproveConsole('groupCollapsed', 'stdout', true)\nimproveConsole('table', 'stdout', true)\nimproveConsole('debug', 'stdout', true)\nimproveConsole('info', 'stdout', true)\nimproveConsole('dir', 'stdout', true)\nimproveConsole('dirxml', 'stdout', true)\nimproveConsole('timeEnd', 'stdout', true)\nimproveConsole('timeLog', 'stdout', true)\nimproveConsole('timeStamp', 'stdout', true)\nimproveConsole('assert', 'stderr', true)\n\n/**\n * Utility function to ensure all variants of an enum are handled.\n */\nfunction invariant(never: never, computeMessage: (arg: any) => string): never {\n throw new Error(`Invariant: ${computeMessage(never)}`)\n}\n"],"names":["createIpc","port","socket","host","socketWritable","write","chunk","_enc","cb","once","final","end","packetQueue","recvPromiseResolveQueue","pushPacket","packet","recvPromiseResolve","shift","JSON","parse","toString","push","state","type","buffer","Buffer","alloc","setNoDelay","on","concat","loop","length","readUInt32BE","subarray","invariant","process","exit","doSend","message","Promise","resolve","reject","from","writeUInt32BE","err","stderr","stdout","send","stringify","sendReady","recv","result","sendError","error","failed","console","res","PORT","argv","IPC","parseInt","reason","Error","String","improveConsole","name","stream","addStack","original","stdio","args","stack","replace","never","computeMessage"],"mappings":";;;;AAAA;AACA;AACA;;;;AAkBA,SAASA,UACPC,IAAY;IAEZ,MAAMC,SAAS,IAAA,mIAAgB,EAAC;QAC9BD;QACAE,MAAM;IACR;IAEA;;;;;GAKC,GACD,MAAMC,iBAAiB,IAAI,iIAAQ,CAAC;QAClCC,OAAMC,KAAK,EAAEC,IAAI,EAAEC,EAAE;YACnB,IAAIN,OAAOG,KAAK,CAACC,QAAQ;gBACvBE;YACF,OAAO;gBACLN,OAAOO,IAAI,CAAC,SAASD;YACvB;QACF;QACAE,OAAMF,EAAE;YACNN,OAAOS,GAAG,CAACH;QACb;IACF;IAEA,MAAMI,cAAwB,EAAE;IAChC,MAAMC,0BAA+D,EAAE;IAEvE,SAASC,WAAWC,MAAc;QAChC,MAAMC,qBAAqBH,wBAAwBI,KAAK;QACxD,I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D,QAAQ;AACvD"}},
8
- {"offset": {"line": 323, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/compiled/stacktrace-parser/index.js"],"sourcesContent":["if (typeof __nccwpck_require__ !== \"undefined\")\n __nccwpck_require__.ab = __dirname + \"/\";\n\nvar n = \"<unknown>\";\nexport function parse(e) {\n var r = e.split(\"\\n\");\n return r.reduce(function (e, r) {\n var n =\n parseChrome(r) ||\n parseWinjs(r) ||\n parseGecko(r) ||\n parseNode(r) ||\n parseJSC(r);\n if (n) {\n e.push(n);\n }\n return e;\n }, []);\n}\nvar a =\n /^\\s*at (.*?) ?\\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\/|[a-z]:\\\\|\\\\\\\\).*?)(?::(\\d+))?(?::(\\d+))?\\)?\\s*$/i;\nvar l = /\\((\\S*)(?::(\\d+))(?::(\\d+))\\)/;\nfunction parseChrome(e) {\n var r = a.exec(e);\n if (!r) {\n return null;\n }\n var u = r[2] && r[2].indexOf(\"native\") === 0;\n var t = r[2] && r[2].indexOf(\"eval\") === 0;\n var i = l.exec(r[2]);\n if (t && i != null) {\n r[2] = i[1];\n r[3] = i[2];\n r[4] = i[3];\n }\n return {\n file: !u ? r[2] : null,\n methodName: r[1] || n,\n arguments: u ? [r[2]] : [],\n lineNumber: r[3] ? +r[3] : null,\n column: r[4] ? +r[4] : null,\n };\n}\nvar u =\n /^\\s*at (?:((?:\\[object object\\])?.+) )?\\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\nfunction parseWinjs(e) {\n var r = u.exec(e);\n if (!r) {\n return null;\n }\n return {\n file: r[2],\n methodName: r[1] || n,\n arguments: [],\n lineNumber: +r[3],\n column: r[4] ? +r[4] : null,\n };\n}\nvar t =\n /^\\s*(.*?)(?:\\((.*?)\\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\\[native).*?|[^@]*bundle)(?::(\\d+))?(?::(\\d+))?\\s*$/i;\nvar i = /(\\S+) line (\\d+)(?: > eval line \\d+)* > eval/i;\nfunction parseGecko(e) {\n var r = t.exec(e);\n if (!r) {\n return null;\n }\n var a = r[3] && r[3].indexOf(\" > eval\") > -1;\n var l = i.exec(r[3]);\n if (a && l != null) {\n r[3] = l[1];\n r[4] = l[2];\n r[5] = null;\n }\n return {\n file: r[3],\n methodName: r[1] || n,\n arguments: r[2] ? r[2].split(\",\") : [],\n lineNumber: r[4] ? +r[4] : null,\n column: r[5] ? +r[5] : null,\n };\n}\nvar s = /^\\s*(?:([^@]*)(?:\\((.*?)\\))?@)?(\\S.*?):(\\d+)(?::(\\d+))?\\s*$/i;\nfunction parseJSC(e) {\n var r = s.exec(e);\n if (!r) {\n return null;\n }\n return {\n file: r[3],\n methodName: r[1] || n,\n arguments: [],\n lineNumber: +r[4],\n column: r[5] ? +r[5] : null,\n };\n}\nvar o =\n /^\\s*at (?:((?:\\[object object\\])?[^\\\\/]+(?: \\[as \\S+\\])?) )?\\(?(.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\nfunction parseNode(e) {\n var r = o.exec(e);\n if (!r) {\n return null;\n }\n return {\n file: r[2],\n methodName: r[1] || n,\n arguments: [],\n lineNumber: +r[3],\n column: r[4] ? +r[4] : null,\n };\n}\n"],"names":["__nccwpck_require__","ab","n","parse","e","r","split","reduce","parseChrome","parseWinjs","parseGecko","parseNode","parseJSC","push","a","l","exec","u","indexOf","t","i","file","methodName","arguments","lineNumber","column","s","o"],"mappings":";;;;AAAA,IAAI,OAAOA,wBAAwB,aACjCA,oBAAoBC,EAAE,GAAG,uEAAY;AAEvC,IAAIC,IAAI;AACD,SAASC,MAAMC,CAAC;IACrB,IAAIC,IAAID,EAAEE,KAAK,CAAC;IAChB,OAAOD,EAAEE,MAAM,CAAC,SAAUH,CAAC,EAAEC,CAAC;QAC5B,IAAIH,IACFM,YAAYH,MACZI,WAAWJ,MACXK,WAAWL,MACXM,UAAUN,MACVO,SAASP;QACX,IAAIH,GAAG;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C;IAClB,IAAIC,IAAIsB,EAAEX,IAAI,CAACZ;IACf,IAAI,CAACC,GAAG;QACN,OAAO;IACT;IACA,OAAO;QACLgB,MAAMhB,CAAC,CAAC,EAAE;QACViB,YAAYjB,CAAC,CAAC,EAAE,IAAIH;QACpBqB,WAAW,EAAE;QACbC,YAAY,CAACnB,CAAC,CAAC,EAAE;QACjBoB,QAAQpB,CAAC,CAAC,EAAE,GAAG,CAACA,CAAC,CAAC,EAAE,GAAG;IACzB;AACF"}},
9
- {"offset": {"line": 432, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/error.ts"],"sourcesContent":["import type { StackFrame } from './compiled/stacktrace-parser'\nimport { parse as parseStackTrace } from './compiled/stacktrace-parser'\n\n// merged from next.js\n// https://github.com/vercel/next.js/blob/e657741b9908cf0044aaef959c0c4defb19ed6d8/packages/next/src/lib/is-error.ts\n// https://github.com/vercel/next.js/blob/e657741b9908cf0044aaef959c0c4defb19ed6d8/packages/next/src/shared/lib/is-plain-object.ts\n\nexport default function isError(err: unknown): err is Error {\n return (\n typeof err === 'object' && err !== null && 'name' in err && 'message' in err\n )\n}\n\nexport function getProperError(err: unknown): Error {\n if (isError(err)) {\n return err\n }\n\n if (process.env.NODE_ENV === 'development') {\n // Provide a better error message for cases where `throw undefined`\n // is called in development\n if (typeof err === 'undefined') {\n return new Error('`undefined` was thrown instead of a real error')\n }\n\n if (err === null) {\n return new Error('`null` was thrown instead of a real error')\n }\n }\n\n return new Error(isPlainObject(err) ? JSON.stringify(err) : err + '')\n}\n\nfunction getObjectClassLabel(value: any): string {\n return Object.prototype.toString.call(value)\n}\n\nfunction isPlainObject(value: any): boolean {\n if (getObjectClassLabel(value) !== '[object Object]') {\n return false\n }\n\n const prototype = Object.getPrototypeOf(value)\n\n /**\n * this used to be previously:\n *\n * `return prototype === null || prototype === Object.prototype`\n *\n * but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail.\n *\n * It was changed to the current implementation since it's resilient to serialization.\n */\n return prototype === null || prototype.hasOwnProperty('isPrototypeOf')\n}\n\nexport type StructuredError = {\n name: string\n message: string\n stack: StackFrame[]\n cause: StructuredError | undefined\n}\n\nexport function structuredError(e: Error | string): StructuredError {\n e = getProperError(e)\n\n return {\n name: e.name,\n message: e.message,\n stack: typeof e.stack === 'string' ? parseStackTrace(e.stack) : [],\n cause: e.cause ? structuredError(getProperError(e.cause)) : undefined,\n }\n}\n"],"names":["isError","err","getProperError","Error","isPlainObject","JSON","stringify","getObjectClassLabel","value","Object","prototype","toString","call","getPrototypeOf","hasOwnProperty","structuredError","e","name","message","stack","cause","undefined"],"mappings":";;;;;;;;AACA;;AAMe,SAASA,QAAQC,GAAY;IAC1C,OACE,OAAOA,QAAQ,YAAYA,QAAQ,QAAQ,UAAUA,OAAO,aAAaA;AAE7E;AAEO,SAASC,eAAeD,GAAY;IACzC,IAAID,QAAQC,MAAM;QAChB,OAAOA;IACT;IAEA;;IAYA,OAAO,IAAIE,MAAMC,cAAcH,OAAOI,KAAKC,SAAS,CAACL,OAAOA,MAAM;AACpE;AAEA,SAASM,oBAAoBC,KAAU;IACrC,OAAOC,OAAOC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ;AACxC;AAEA,SAASJ,cAAcI,KAAU;IAC/B,IAAID,oBAAoBC,WAAW,mBAAmB;QACpD,OAAO;IACT;IAEA,MAAME,YAAYD,OAAOI,cAAc,CAACL;IAExC;;;;;;;;GAQC,GACD,OAAOE,cAAc,QAAQA,UAAUI,cAAc,CAAC;AACxD;AASO,SAASC,gBAAgBC,CAAiB;IAC/CA,IAAId,eAAec;IAEnB,OAAO;QACLC,MAAMD,EAAEC,IAAI;QACZC,SAASF,EAAEE,OAAO;QAClBC,OAAO,OAAOH,EAAEG,KAAK,KAAK,WAAW,IAAA,yJAAe,EAACH,EAAEG,KAAK,IAAI,EAAE;QAClEC,OAAOJ,EAAEI,KAAK,GAAGL,gBAAgBb,eAAec,EAAEI,KAAK,KAAKC;IAC9D;AACF"}},
10
- {"offset": {"line": 496, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/child_process/globals.ts"],"sourcesContent":["// @ts-ignore\nprocess.turbopack = {}\n"],"names":["process","turbopack"],"mappings":"AAAA,aAAa;AACbA,QAAQC,SAAS,GAAG,CAAC"}}]
11
- }
 
 
 
 
 
 
 
 
 
 
 
 
e-commerce/.next/build/chunks/[root-of-the-server]__1kki86fknkq7y._.js DELETED
@@ -1,191 +0,0 @@
1
- module.exports = [
2
- (()=>{"use strict";return[
3
- "[project]/postcss.config.mjs [postcss] (ecmascript)", ((__turbopack_context__) => {
4
- "use strict";
5
-
6
- __turbopack_context__.s([
7
- "default",
8
- ()=>__TURBOPACK__default__export__
9
- ]);
10
- /** @type {import('postcss-load-config').Config} */ const config = {
11
- plugins: {
12
- "@tailwindcss/postcss": {}
13
- }
14
- };
15
- const __TURBOPACK__default__export__ = config;
16
- }),
17
- "[turbopack-node]/transforms/postcss.ts?config=[project]/postcss.config.mjs { CONFIG => \"[project]/postcss.config.mjs [postcss] (ecmascript)\" } [postcss] (ecmascript)", ((__turbopack_context__) => {
18
- "use strict";
19
-
20
- __turbopack_context__.s([
21
- "default",
22
- ()=>transform,
23
- "init",
24
- ()=>init
25
- ]);
26
- // @ts-ignore
27
- var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$postcss$2f$lib$2f$postcss$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/postcss/lib/postcss.mjs [postcss] (ecmascript)");
28
- // @ts-ignore
29
- var __TURBOPACK__imported__module__$5b$project$5d2f$postcss$2e$config$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/postcss.config.mjs [postcss] (ecmascript)");
30
- var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/transforms/transforms.ts [postcss] (ecmascript)");
31
- ;
32
- ;
33
- ;
34
- let processor;
35
- const init = async (ipc)=>{
36
- let config = __TURBOPACK__imported__module__$5b$project$5d2f$postcss$2e$config$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__["default"];
37
- if (typeof config === 'function') {
38
- config = await config({
39
- env: 'development'
40
- });
41
- }
42
- if (typeof config === 'undefined') {
43
- throw new Error('PostCSS config is undefined (make sure to export an function or object from config file)');
44
- }
45
- let plugins;
46
- if (Array.isArray(config.plugins)) {
47
- plugins = config.plugins.map((plugin)=>{
48
- if (Array.isArray(plugin)) {
49
- return plugin;
50
- } else if (typeof plugin === 'string') {
51
- return [
52
- plugin,
53
- {}
54
- ];
55
- } else {
56
- return plugin;
57
- }
58
- });
59
- } else if (typeof config.plugins === 'object') {
60
- plugins = Object.entries(config.plugins).filter(([, options])=>options);
61
- } else {
62
- plugins = [];
63
- }
64
- const loadedPlugins = plugins.map((plugin)=>{
65
- if (Array.isArray(plugin)) {
66
- const [arg, options] = plugin;
67
- let pluginFactory = arg;
68
- if (typeof pluginFactory === 'string') {
69
- pluginFactory = require(/* turbopackIgnore: true */ pluginFactory);
70
- }
71
- if (pluginFactory.default) {
72
- pluginFactory = pluginFactory.default;
73
- }
74
- return pluginFactory(options);
75
- }
76
- return plugin;
77
- });
78
- processor = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$postcss$2f$lib$2f$postcss$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__["default"])(loadedPlugins);
79
- };
80
- async function transform(ipc, cssContent, name, sourceMap) {
81
- const { css, map, messages } = await processor.process(cssContent, {
82
- from: name,
83
- to: name,
84
- map: sourceMap ? {
85
- inline: false,
86
- annotation: false
87
- } : undefined
88
- });
89
- const assets = [];
90
- const filePaths = [];
91
- const buildFilePaths = [];
92
- const directories = [];
93
- for (const msg of messages){
94
- switch(msg.type){
95
- case 'asset':
96
- assets.push({
97
- file: msg.file,
98
- content: msg.content,
99
- sourceMap: !sourceMap ? undefined : typeof msg.sourceMap === 'string' ? msg.sourceMap : JSON.stringify(msg.sourceMap)
100
- });
101
- break;
102
- case 'dependency':
103
- case 'missing-dependency':
104
- filePaths.push(msg.file);
105
- break;
106
- case 'build-dependency':
107
- buildFilePaths.push(msg.file);
108
- break;
109
- case 'dir-dependency':
110
- directories.push([
111
- msg.dir,
112
- msg.glob
113
- ]);
114
- break;
115
- case 'context-dependency':
116
- directories.push([
117
- msg.dir,
118
- '**'
119
- ]);
120
- break;
121
- default:
122
- break;
123
- }
124
- }
125
- ipc.sendInfo({
126
- type: 'dependencies',
127
- filePaths,
128
- directories,
129
- buildFilePaths,
130
- envVariables: (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["getReadEnvVariables"])()
131
- });
132
- return {
133
- css,
134
- map: sourceMap ? JSON.stringify(map) : undefined,
135
- assets
136
- };
137
- }
138
- }),
139
- "[turbopack-node]/transforms/transforms.ts [postcss] (ecmascript)", ((__turbopack_context__) => {
140
- "use strict";
141
-
142
- /**
143
- * Shared utilities for our 2 transform implementations.
144
- */ __turbopack_context__.s([
145
- "getReadEnvVariables",
146
- ()=>getReadEnvVariables
147
- ]);
148
- // Patch process.env to track which env vars are read
149
- const originalEnv = process.env;
150
- const readEnvVars = new Set();
151
- process.env = new Proxy(originalEnv, {
152
- get (target, prop) {
153
- if (typeof prop === 'string') {
154
- // We register the env var as dependency on the
155
- // current transform and all future transforms
156
- // since the env var might be cached in module scope
157
- // and influence them all
158
- readEnvVars.add(prop);
159
- }
160
- return Reflect.get(target, prop);
161
- },
162
- set (target, prop, value) {
163
- return Reflect.set(target, prop, value);
164
- }
165
- });
166
- function getReadEnvVariables() {
167
- return Array.from(readEnvVars);
168
- }
169
- }),
170
- ]})(),
171
- "[externals]/fs [external] (fs, cjs)", ((__turbopack_context__, module, exports) => {
172
-
173
- var mod = __turbopack_context__.x("fs", () => require("fs"));
174
-
175
- module.exports = mod;
176
- }),
177
- "[externals]/path [external] (path, cjs)", ((__turbopack_context__, module, exports) => {
178
-
179
- var mod = __turbopack_context__.x("path", () => require("path"));
180
-
181
- module.exports = mod;
182
- }),
183
- "[externals]/url [external] (url, cjs)", ((__turbopack_context__, module, exports) => {
184
-
185
- var mod = __turbopack_context__.x("url", () => require("url"));
186
-
187
- module.exports = mod;
188
- }),
189
- ];
190
-
191
- //# sourceMappingURL=%5Broot-of-the-server%5D__1kki86fknkq7y._.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e-commerce/.next/build/chunks/[root-of-the-server]__1kki86fknkq7y._.js.map DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sections": [
5
- {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/postcss.config.mjs"],"sourcesContent":["/** @type {import('postcss-load-config').Config} */\nconst config = {\n plugins: {\n \"@tailwindcss/postcss\": {},\n },\n};\n\nexport default config;\n"],"names":["config","plugins"],"mappings":";;;;AAAA,iDAAiD,GACjD,MAAMA,SAAS;IACbC,SAAS;QACP,wBAAwB,CAAC;IAC3B;AACF;uCAEeD"}},
6
- {"offset": {"line": 19, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/transforms/postcss.ts?config=[project]/postcss.config.mjs"],"sourcesContent":["declare const __turbopack_external_require__: (\n id: string,\n thunk: () => any,\n esm?: boolean\n) => any\n\nimport type { Processor } from 'postcss'\n\n// @ts-ignore\nimport postcss from '@vercel/turbopack/postcss'\n// @ts-ignore\nimport importedConfig from 'CONFIG'\nimport { getReadEnvVariables, type TransformIpc } from './transforms'\n\nlet processor: Processor | undefined\n\nexport const init = async (ipc: TransformIpc) => {\n let config = importedConfig\n if (typeof config === 'function') {\n config = await config({ env: 'development' })\n }\n if (typeof config === 'undefined') {\n throw new Error(\n 'PostCSS config is undefined (make sure to export an function or object from config file)'\n )\n }\n let plugins: any[]\n if (Array.isArray(config.plugins)) {\n plugins = config.plugins.map((plugin: [string, any] | string | any) => {\n if (Array.isArray(plugin)) {\n return plugin\n } else if (typeof plugin === 'string') {\n return [plugin, {}]\n } else {\n return plugin\n }\n })\n } else if (typeof config.plugins === 'object') {\n plugins = Object.entries(config.plugins).filter(([, options]) => options)\n } else {\n plugins = []\n }\n const loadedPlugins = plugins.map((plugin) => {\n if (Array.isArray(plugin)) {\n const [arg, options] = plugin\n let pluginFactory = arg\n\n if (typeof pluginFactory === 'string') {\n pluginFactory = require(/* turbopackIgnore: true */ pluginFactory)\n }\n\n if (pluginFactory.default) {\n pluginFactory = pluginFactory.default\n }\n\n return pluginFactory(options)\n }\n return plugin\n })\n\n processor = postcss(loadedPlugins)\n}\n\nexport default async function transform(\n ipc: TransformIpc,\n cssContent: string,\n name: string,\n sourceMap: boolean\n) {\n const { css, map, messages } = await processor!.process(cssContent, {\n from: name,\n to: name,\n map: sourceMap\n ? {\n inline: false,\n annotation: false,\n }\n : undefined,\n })\n\n const assets = []\n const filePaths: string[] = []\n const buildFilePaths: string[] = []\n const directories: Array<[string, string]> = []\n\n for (const msg of messages) {\n switch (msg.type) {\n case 'asset':\n assets.push({\n file: msg.file,\n content: msg.content,\n sourceMap: !sourceMap\n ? undefined\n : typeof msg.sourceMap === 'string'\n ? msg.sourceMap\n : JSON.stringify(msg.sourceMap),\n // There is also an info field, which we currently ignore\n })\n break\n case 'dependency':\n case 'missing-dependency':\n filePaths.push(msg.file)\n break\n case 'build-dependency':\n buildFilePaths.push(msg.file)\n break\n case 'dir-dependency':\n directories.push([msg.dir, msg.glob])\n break\n case 'context-dependency':\n directories.push([msg.dir, '**'])\n break\n default:\n // TODO: do we need to do anything here?\n break\n }\n }\n ipc.sendInfo({\n type: 'dependencies',\n filePaths,\n directories,\n buildFilePaths,\n envVariables: getReadEnvVariables(),\n })\n return {\n css,\n map: sourceMap ? JSON.stringify(map) : undefined,\n assets,\n }\n}\n"],"names":["processor","init","ipc","config","env","Error","plugins","Array","isArray","map","plugin","Object","entries","filter","options","loadedPlugins","arg","pluginFactory","require","default","transform","cssContent","name","sourceMap","css","messages","process","from","to","inline","annotation","undefined","assets","filePaths","buildFilePaths","directories","msg","type","push","file","content","JSON","stringify","dir","glob","sendInfo","envVariables"],"mappings":";;;;;;AAQA,aAAa;AACb;AACA,aAAa;AACb;AACA;;;;AAEA,IAAIA;AAEG,MAAMC,OAAO,OAAOC;IACzB,IAAIC,SAAS,0HAAc;IAC3B,IAAI,OAAOA,WAAW,YAAY;QAChCA,SAAS,MAAMA,OAAO;YAAEC,KAAK;QAAc;IAC7C;IACA,IAAI,OAAOD,WAAW,aAAa;QACjC,MAAM,IAAIE,MACR;IAEJ;IACA,IAAIC;IACJ,IAAIC,MAAMC,OAAO,CAACL,OAAOG,OAAO,GAAG;QACjCA,UAAUH,OAAOG,OAAO,CAACG,GAAG,CAAC,CAACC;YAC5B,IAAIH,MAAMC,OAAO,CAACE,SAAS;gBACzB,OAAOA;YACT,OAAO,IAAI,OAAOA,WAAW,UAAU;gBACrC,OAAO;oBAACA;oBAAQ,CAAC;iBAAE;YACrB,OAAO;gBACL,OAAOA;YACT;QACF;IACF,OAAO,IAAI,OAAOP,OAAOG,OAAO,KAAK,UAAU;QAC7CA,UAAUK,OAAOC,OAAO,CAACT,OAAOG,OAAO,EAAEO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gBAC5B;YACF,KAAK;gBACHJ,YAAYG,IAAI,CAAC;oBAACF,IAAIO,GAAG;oBAAEP,IAAIQ,IAAI;iBAAC;gBACpC;YACF,KAAK;gBACHT,YAAYG,IAAI,CAAC;oBAACF,IAAIO,GAAG;oBAAE;iBAAK;gBAChC;YACF;gBAEE;QACJ;IACF;IACAzC,IAAI2C,QAAQ,CAAC;QACXR,MAAM;QACNJ;QACAE;QACAD;QACAY,cAAc,IAAA,sJAAmB;IACnC;IACA,OAAO;QACLtB;QACAf,KAAKc,YAAYkB,KAAKC,SAAS,CAACjC,OAAOsB;QACvCC;IACF;AACF"}},
7
- {"offset": {"line": 141, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/transforms/transforms.ts"],"sourcesContent":["/**\n * Shared utilities for our 2 transform implementations.\n */\n\nimport type { Channel as Ipc } from '../types'\nimport { type StructuredError } from '../error'\nimport { type StackFrame } from '../compiled/stacktrace-parser'\n\nexport type IpcInfoMessage =\n | {\n type: 'dependencies'\n envVariables?: string[]\n directories?: Array<[string, string]>\n filePaths?: string[]\n buildFilePaths?: string[]\n buildDependencyRequests?: Array<[string, boolean]>\n }\n | {\n type: 'emittedError'\n severity: 'warning' | 'error'\n error: StructuredError\n }\n | {\n type: 'log'\n logs: Array<{\n time: number\n logType: string\n args: any[]\n trace?: StackFrame[]\n }>\n }\n\nexport type IpcRequestMessage =\n | {\n type: 'resolve'\n options: any\n lookupPath: string\n request: string\n }\n | {\n type: 'trackFileRead'\n file: string\n }\n | {\n type: 'importModule'\n lookupPath: string\n request: string\n }\n\nexport type TransformIpc = Ipc<IpcInfoMessage, IpcRequestMessage>\n\n// Patch process.env to track which env vars are read\nconst originalEnv = process.env\nconst readEnvVars = new Set<string>()\nprocess.env = new Proxy(originalEnv, {\n get(target, prop) {\n if (typeof prop === 'string') {\n // We register the env var as dependency on the\n // current transform and all future transforms\n // since the env var might be cached in module scope\n // and influence them all\n readEnvVars.add(prop)\n }\n return Reflect.get(target, prop)\n },\n set(target, prop, value) {\n return Reflect.set(target, prop, value)\n },\n})\n\nexport function getReadEnvVariables(): string[] {\n return Array.from(readEnvVars)\n}\n"],"names":["originalEnv","process","env","readEnvVars","Set","Proxy","get","target","prop","add","Reflect","set","value","getReadEnvVariables","Array","from"],"mappings":"AAAA;;CAEC;;;;AAiDD,qDAAqD;AACrD,MAAMA,cAAcC,QAAQC,GAAG;AAC/B,MAAMC,cAAc,IAAIC;AACxBH,QAAQC,GAAG,GAAG,IAAIG,MAAML,aAAa;IACnCM,KAAIC,MAAM,EAAEC,IAAI;QACd,IAAI,OAAOA,SAAS,UAAU;YAC5B,+CAA+C;YAC/C,8CAA8C;YAC9C,oDAAoD;YACpD,yBAAyB;YACzBL,YAAYM,GAAG,CAACD;QAClB;QACA,OAAOE,QAAQJ,GAAG,CAACC,QAAQC;IAC7B;IACAG,KAAIJ,MAAM,EAAEC,IAAI,EAAEI,KAAK;QACrB,OAAOF,QAAQC,GAAG,CAACJ,QAAQC,MAAMI;IACnC;AACF;AAEO,SAASC;IACd,OAAOC,MAAMC,IAAI,CAACZ;AACpB"}}]
8
- }
 
 
 
 
 
 
 
 
 
e-commerce/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js DELETED
@@ -1,13 +0,0 @@
1
- module.exports = [
2
- "[turbopack-node]/transforms/postcss.ts?config=[project]/postcss.config.mjs { CONFIG => \"[project]/postcss.config.mjs [postcss] (ecmascript)\" } [postcss] (ecmascript, async loader)", ((__turbopack_context__) => {
3
-
4
- __turbopack_context__.v((parentImport) => {
5
- return Promise.all([
6
- "chunks/node_modules_20v-8wlfss9m1._.js",
7
- "chunks/[root-of-the-server]__1kki86fknkq7y._.js"
8
- ].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
9
- return parentImport("[turbopack-node]/transforms/postcss.ts?config=[project]/postcss.config.mjs { CONFIG => \"[project]/postcss.config.mjs [postcss] (ecmascript)\" } [postcss] (ecmascript)");
10
- });
11
- });
12
- }),
13
- ];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e-commerce/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js.map DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sections": []
5
- }
 
 
 
 
 
 
e-commerce/.next/build/chunks/[turbopack]_runtime.js DELETED
@@ -1,1056 +0,0 @@
1
- var RUNTIME_PUBLIC_PATH = "chunks/[turbopack]_runtime.js";
2
- var RELATIVE_ROOT_PATH = "..";
3
- var ASSET_PREFIX = "/";
4
- /**
5
- * This file contains runtime types and functions that are shared between all
6
- * TurboPack ECMAScript runtimes.
7
- *
8
- * It will be prepended to the runtime code of each runtime.
9
- */ /* eslint-disable @typescript-eslint/no-unused-vars */ /// <reference path="./runtime-types.d.ts" />
10
- /// <reference path="./async-module.ts" />
11
- /**
12
- * Describes why a module was instantiated.
13
- * Shared between browser and Node.js runtimes.
14
- */ var SourceType = /*#__PURE__*/ function(SourceType) {
15
- /**
16
- * The module was instantiated because it was included in an evaluated chunk's
17
- * runtime.
18
- * SourceData is a ChunkPath.
19
- */ SourceType[SourceType["Runtime"] = 0] = "Runtime";
20
- /**
21
- * The module was instantiated because a parent module imported it.
22
- * SourceData is a ModuleId.
23
- */ SourceType[SourceType["Parent"] = 1] = "Parent";
24
- /**
25
- * The module was instantiated because it was included in a chunk's hot module
26
- * update.
27
- * SourceData is an array of ModuleIds or undefined.
28
- */ SourceType[SourceType["Update"] = 2] = "Update";
29
- return SourceType;
30
- }(SourceType || {});
31
- /**
32
- * Flag indicating which module object type to create when a module is merged. Set to `true`
33
- * by each runtime that uses ModuleWithDirection (browser dev-base.ts, nodejs dev-base.ts,
34
- * nodejs build-base.ts). Browser production (build-base.ts) leaves it as `false` since it
35
- * uses plain Module objects.
36
- */ let createModuleWithDirectionFlag = false;
37
- const REEXPORTED_OBJECTS = new WeakMap();
38
- /**
39
- * Constructs the `__turbopack_context__` object for a module.
40
- */ function Context(module, exports) {
41
- this.m = module;
42
- // We need to store this here instead of accessing it from the module object to:
43
- // 1. Make it available to factories directly, since we rewrite `this` to
44
- // `__turbopack_context__.e` in CJS modules.
45
- // 2. Support async modules which rewrite `module.exports` to a promise, so we
46
- // can still access the original exports object from functions like
47
- // `esmExport`
48
- // Ideally we could find a new approach for async modules and drop this property altogether.
49
- this.e = exports;
50
- }
51
- const contextPrototype = Context.prototype;
52
- const hasOwnProperty = Object.prototype.hasOwnProperty;
53
- const toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag;
54
- function defineProp(obj, name, options) {
55
- if (!hasOwnProperty.call(obj, name)) Object.defineProperty(obj, name, options);
56
- }
57
- function getOverwrittenModule(moduleCache, id) {
58
- let module = moduleCache.get(id);
59
- if (module === undefined) {
60
- if (createModuleWithDirectionFlag) {
61
- // set in development modes for hmr support
62
- module = createModuleWithDirection(id);
63
- } else {
64
- module = createModuleObject(id);
65
- }
66
- moduleCache.set(id, module);
67
- }
68
- return module;
69
- }
70
- /**
71
- * Creates the module object. Only done here to ensure all module objects have the same shape.
72
- */ function createModuleObject(id) {
73
- return {
74
- exports: {},
75
- error: undefined,
76
- id,
77
- namespaceObject: undefined
78
- };
79
- }
80
- function createModuleWithDirection(id) {
81
- return {
82
- exports: {},
83
- error: undefined,
84
- id,
85
- namespaceObject: undefined,
86
- parents: [],
87
- children: []
88
- };
89
- }
90
- const BindingTag_Value = 0;
91
- /**
92
- * Terminates a module's group of entries in an {@link EsmReexports} list.
93
- */ const REEXPORT_GROUP_END = 0;
94
- /**
95
- * Adds the getters to the exports object.
96
- */ function esm(exports, bindings, dynamic) {
97
- defineProp(exports, '__esModule', {
98
- value: true
99
- });
100
- if (toStringTag) defineProp(exports, toStringTag, {
101
- value: 'Module'
102
- });
103
- let i = 0;
104
- while(i < bindings.length){
105
- const propName = bindings[i++];
106
- const tagOrFunction = bindings[i++];
107
- if (typeof tagOrFunction === 'number') {
108
- if (tagOrFunction === BindingTag_Value) {
109
- defineProp(exports, propName, {
110
- value: bindings[i++],
111
- enumerable: true,
112
- writable: false
113
- });
114
- } else {
115
- throw new Error(`unexpected tag: ${tagOrFunction}`);
116
- }
117
- } else {
118
- const getterFn = tagOrFunction;
119
- if (typeof bindings[i] === 'function') {
120
- const setterFn = bindings[i++];
121
- defineProp(exports, propName, {
122
- get: getterFn,
123
- set: setterFn,
124
- enumerable: true
125
- });
126
- } else {
127
- defineProp(exports, propName, {
128
- get: getterFn,
129
- enumerable: true
130
- });
131
- }
132
- }
133
- }
134
- // The properties defined above are already non-configurable and
135
- // non-writable, so the namespace's existing exports are effectively
136
- // immutable. Sealing additionally makes the object non-extensible, matching
137
- // real ESM-namespace semantics. Modules with dynamic re-exports
138
- // (`export *` from a CommonJS module) must stay extensible so the dynamic
139
- // export proxy can surface keys discovered at runtime, so skip the seal for
140
- // them.
141
- if (!dynamic) Object.seal(exports);
142
- }
143
- /**
144
- * Makes the module an ESM with exports
145
- */ function esmExport(bindings, id, dynamic) {
146
- let module;
147
- let exports;
148
- if (id != null) {
149
- module = getOverwrittenModule(this.c, id);
150
- exports = module.exports;
151
- } else {
152
- module = this.m;
153
- exports = this.e;
154
- }
155
- module.namespaceObject = exports;
156
- esm(exports, bindings, dynamic);
157
- }
158
- contextPrototype.s = esmExport;
159
- /**
160
- * Registers re-exports that all forward to properties of other modules.
161
- *
162
- * This is a compact spelling of the pattern
163
- *
164
- * ```js
165
- * var ns = context.i(moduleId)
166
- * context.s([exportName, () => ns[importedName], ...])
167
- * ```
168
- *
169
- * The list is a flat sequence of groups. Each group starts with the source the exports come from,
170
- * followed by that group's entries, and is terminated by the `0` sentinel (or the end of the list).
171
- *
172
- * The group head is either a **module id**, which is instantiated here:
173
- *
174
- * ```js
175
- * context.S([
176
- * 76061, 'default', 'f', 'named', 'A', 0,
177
- * 29842, 'otherModule', 'f',
178
- * ])
179
- * ```
180
- *
181
- * or the **namespace value** of a module that has already been imported, which is used directly:
182
- *
183
- * ```js
184
- * var ns1 = context.i(76061)
185
- * context.S([ns1, 'default', 'f', 'named', 'A'])
186
- * ```
187
- *
188
- * The producer picks the namespace form when it has generated the import anyway -- because some
189
- * later import must not be reordered past it -- so nothing is instantiated twice. The two are told
190
- * apart by type: a module id is always a string or number. A CommonJS function export produces a
191
- * callable namespace value, so namespace heads can be functions as well as objects.
192
- *
193
- * Entries are `exportName, importedName` pairs, except when a group holds exactly one string. That
194
- * string is then a comma-joined list of the same pairs, which saves the repeated quoting:
195
- *
196
- * ```js
197
- * context.S([
198
- * 76061, 'default,f,named,A', 0,
199
- * 29842, 'otherModule,f',
200
- * ])
201
- * ```
202
- *
203
- * The producer picks that spelling independently for each group whose names contain no commas,
204
- * since that group's names are recovered by splitting on them.
205
- *
206
- * Groups whose head is a module id are instantiated in list order, at the point where the call
207
- * appears, so the producer must not merge such a group across an import of another module. The
208
- * destination reuses a source data value or getter descriptor when one exists, falling back to a
209
- * wrapper getter for dynamic/proxy/inherited properties.
210
- *
211
- * `id` names the module the exports belong to when this module was merged into a scope-hoisting
212
- * group, exactly as it does for {@link EsmExport}.
213
- *
214
- * Only the source descriptor's payload (value or getter) is reused. {@link esm} still defines a
215
- * fresh enumerable, non-configurable destination property, and no source setter is ever forwarded.
216
- */ function esmReexport(list, id) {
217
- const bindings = [];
218
- let i = 0;
219
- while(i < list.length){
220
- const head = list[i++];
221
- const start = i;
222
- while(i < list.length && list[i] !== REEXPORT_GROUP_END)i++;
223
- const end = i;
224
- // Skip the sentinel, if this group was terminated by one rather than by the end of the list.
225
- i++;
226
- // Module ids are always strings or numbers. Other values are already-imported namespaces;
227
- // notably, interop with a CommonJS function export produces a callable namespace function.
228
- // `esmImport` may return a promise for an async module, but re-exports of async modules keep
229
- // going through `context.s`, so the producer never routes them here and this stays synchronous.
230
- const namespace = typeof head === 'string' || typeof head === 'number' ? esmImport.call(this, head) : head;
231
- if (end - start === 1) {
232
- const pairs = list[start].split(',');
233
- for(let j = 0; j < pairs.length; j += 2){
234
- appendReexportBinding(bindings, pairs[j], namespace, pairs[j + 1]);
235
- }
236
- } else {
237
- for(let j = start; j < end; j += 2){
238
- appendReexportBinding(bindings, list[j], namespace, list[j + 1]);
239
- }
240
- }
241
- }
242
- esmExport.call(this, bindings, id);
243
- }
244
- contextPrototype.S = esmReexport;
245
- function appendReexportBinding(bindings, exportedName, namespace, importedName) {
246
- const descriptor = Reflect.getOwnPropertyDescriptor(namespace, importedName);
247
- if (descriptor) {
248
- if ('value' in descriptor) {
249
- // Code generation only routes immutable imported bindings through this helper, so a data
250
- // descriptor is a constant export and can be captured once.
251
- bindings.push(exportedName, BindingTag_Value, descriptor.value);
252
- return;
253
- }
254
- if (descriptor.get) {
255
- // Accessors remain live by reusing the source getter. `esmReexport` is only called by
256
- // generated code: every group head is either produced by
257
- // `this.i` or is the namespace variable from a generated `this.i` call. Every getter on such
258
- // a namespace is receiver-independent: ESM bindings are compiler-generated arrow functions,
259
- // and the CommonJS/dynamic-namespace paths create arrows in `createGetter` and
260
- // `getOwnPropertyDescriptor`. The destination can therefore reuse the exact function instead
261
- // of allocating another wrapper getter.
262
- bindings.push(exportedName, descriptor.get);
263
- return;
264
- }
265
- }
266
- // Dynamic/proxy/inherited CommonJS edge cases may not expose a usable own descriptor.
267
- bindings.push(exportedName, ()=>namespace[importedName]);
268
- }
269
- function ensureDynamicExports(module, exports) {
270
- let reexportedObjects = REEXPORTED_OBJECTS.get(module);
271
- if (!reexportedObjects) {
272
- REEXPORTED_OBJECTS.set(module, reexportedObjects = []);
273
- // Returns the re-exported object that provides `prop` as an own property,
274
- // or `undefined` if none does. The traps share this logic so they always
275
- // agree on which keys are synthesized from `reexportedObjects`. `default`
276
- // is never re-exported by `export *`, so it is never synthesized.
277
- const reexportOwning = (prop)=>{
278
- if (prop !== 'default') {
279
- for (const obj of reexportedObjects){
280
- if (hasOwnProperty.call(obj, prop)) return obj;
281
- }
282
- }
283
- return undefined;
284
- };
285
- // Modules with dynamic re-exports are not sealed by `esm()`, so the
286
- // target beneath the namespace stays extensible. That is what lets the
287
- // `ownKeys` and `getOwnPropertyDescriptor` traps legally report keys that
288
- // exist on `reexportedObjects` but not on the target itself.
289
- module.exports = module.namespaceObject = new Proxy(exports, {
290
- get (target, prop) {
291
- if (hasOwnProperty.call(target, prop) || prop === 'default' || prop === '__esModule') {
292
- return Reflect.get(target, prop);
293
- }
294
- const obj = reexportOwning(prop);
295
- return obj && Reflect.get(obj, prop);
296
- },
297
- // The namespace is read-only, like a real esm namespace object. The
298
- // re-exported modules can still mutate their own exports (exposed live
299
- // via `get`), but mutating the namespace itself is rejected. Refusing
300
- // here, rather than forwarding to the extensible target, also prevents an
301
- // assignment/definition from shadowing a dynamic re-export. It also
302
- // prevents delete from removing a static export.
303
- set () {
304
- return false;
305
- },
306
- defineProperty () {
307
- return false;
308
- },
309
- deleteProperty () {
310
- return false;
311
- },
312
- // The `has` trap ensures that `'exportName' in starImports` will reflect
313
- // the truth of whether a key is exported.
314
- has (target, prop) {
315
- if (Reflect.has(target, prop)) return true;
316
- if (prop === 'default' || prop === '__esModule') return false;
317
- return reexportOwning(prop) !== undefined;
318
- },
319
- // ownKeys and getOwnPropertyDescriptor together make the keys enumerable.
320
- // If a value is returned from `ownKeys` but its property descriptor is
321
- // not enumerable, it will not be visible to iterator methods.
322
- // Collectively, they allow code like the following:
323
- //
324
- // ```
325
- // // module.js re-exports dynamic CJS exports
326
- // export * from './legacyModule.cjs'
327
- //
328
- // // from another JS file, reference the re-exported dynamic values
329
- // import * as Namespace from './module.js'
330
- // Object.keys(Namespace)
331
- // ```
332
- ownKeys (target) {
333
- const keys = Reflect.ownKeys(target);
334
- for (const obj of reexportedObjects){
335
- for (const key of Reflect.ownKeys(obj)){
336
- if (key !== 'default' && !keys.includes(key)) keys.push(key);
337
- }
338
- }
339
- return keys;
340
- },
341
- getOwnPropertyDescriptor (target, prop) {
342
- const own = Reflect.getOwnPropertyDescriptor(target, prop);
343
- if (own || prop === 'default' || prop === '__esModule') return own;
344
- const obj = reexportOwning(prop);
345
- if (obj) {
346
- // Synthetic keys don't exist on the target, so they MUST be
347
- // reported as configurable. However the set/delete traps above will
348
- // prevent them from actually being changed
349
- return {
350
- enumerable: true,
351
- configurable: true,
352
- get: ()=>Reflect.get(obj, prop)
353
- };
354
- }
355
- return undefined;
356
- }
357
- });
358
- }
359
- return reexportedObjects;
360
- }
361
- /**
362
- * Dynamically exports properties from an object
363
- */ function dynamicExport(object, id) {
364
- let module;
365
- let exports;
366
- if (id != null) {
367
- module = getOverwrittenModule(this.c, id);
368
- exports = module.exports;
369
- } else {
370
- module = this.m;
371
- exports = this.e;
372
- }
373
- const reexportedObjects = ensureDynamicExports(module, exports);
374
- if (typeof object === 'object' && object !== null) {
375
- reexportedObjects.push(object);
376
- }
377
- }
378
- contextPrototype.j = dynamicExport;
379
- function exportValue(value, id) {
380
- let module;
381
- if (id != null) {
382
- module = getOverwrittenModule(this.c, id);
383
- } else {
384
- module = this.m;
385
- }
386
- module.exports = value;
387
- }
388
- contextPrototype.v = exportValue;
389
- function exportNamespace(namespace, id) {
390
- let module;
391
- if (id != null) {
392
- module = getOverwrittenModule(this.c, id);
393
- } else {
394
- module = this.m;
395
- }
396
- module.exports = module.namespaceObject = namespace;
397
- }
398
- contextPrototype.n = exportNamespace;
399
- function createGetter(obj, key) {
400
- return ()=>obj[key];
401
- }
402
- /**
403
- * @returns prototype of the object
404
- */ const getProto = Object.getPrototypeOf ? (obj)=>Object.getPrototypeOf(obj) : (obj)=>obj.__proto__;
405
- /** Prototypes that are not expanded for exports */ const LEAF_PROTOTYPES = [
406
- null,
407
- getProto({}),
408
- getProto([]),
409
- getProto(getProto)
410
- ];
411
- /**
412
- * @param raw
413
- * @param ns
414
- * @param allowExportDefault
415
- * * `false`: will have the raw module as default export
416
- * * `true`: will have the default property as default export
417
- */ function interopEsm(raw, ns, allowExportDefault) {
418
- const bindings = [];
419
- let defaultLocation = -1;
420
- for(let current = raw; (typeof current === 'object' || typeof current === 'function') && !LEAF_PROTOTYPES.includes(current); current = getProto(current)){
421
- for (const key of Object.getOwnPropertyNames(current)){
422
- bindings.push(key, createGetter(raw, key));
423
- if (defaultLocation === -1 && key === 'default') {
424
- defaultLocation = bindings.length - 1;
425
- }
426
- }
427
- }
428
- // this is not really correct
429
- // we should set the `default` getter if the imported module is a `.cjs file`
430
- if (!(allowExportDefault && defaultLocation >= 0)) {
431
- // Replace the binding with one for the namespace itself in order to preserve iteration order.
432
- if (defaultLocation >= 0) {
433
- // Replace the getter with the value
434
- bindings.splice(defaultLocation, 1, BindingTag_Value, raw);
435
- } else {
436
- bindings.push('default', BindingTag_Value, raw);
437
- }
438
- }
439
- esm(ns, bindings);
440
- return ns;
441
- }
442
- function createNS(raw) {
443
- if (typeof raw === 'function') {
444
- return function(...args) {
445
- return raw.apply(this, args);
446
- };
447
- } else {
448
- return Object.create(null);
449
- }
450
- }
451
- function esmImport(id) {
452
- const module = getOrInstantiateModuleFromParent(id, this.m);
453
- // any ES module has to have `module.namespaceObject` defined.
454
- if (module.namespaceObject) return module.namespaceObject;
455
- // only ESM can be an async module, so we don't need to worry about exports being a promise here.
456
- const raw = module.exports;
457
- return module.namespaceObject = interopEsm(raw, createNS(raw), raw && raw.__esModule);
458
- }
459
- contextPrototype.i = esmImport;
460
- function asyncLoader(moduleId) {
461
- const loader = this.r(moduleId);
462
- return loader(esmImport.bind(this));
463
- }
464
- contextPrototype.A = asyncLoader;
465
- // Add a simple runtime require so that environments without one can still pass
466
- // `typeof require` CommonJS checks so that exports are correctly registered.
467
- const runtimeRequire = // @ts-ignore
468
- typeof require === 'function' ? require : function require1() {
469
- throw new Error('Unexpected use of runtime require');
470
- };
471
- contextPrototype.t = runtimeRequire;
472
- function commonJsRequire(id) {
473
- return getOrInstantiateModuleFromParent(id, this.m).exports;
474
- }
475
- contextPrototype.r = commonJsRequire;
476
- /**
477
- * Remove fragments and query parameters since they are never part of the context map keys
478
- *
479
- * This matches how we parse patterns at resolving time. Arguably we should only do this for
480
- * strings passed to `import` but the resolve does it for `import` and `require` and so we do
481
- * here as well.
482
- */ function parseRequest(request) {
483
- // Per the URI spec fragments can contain `?` characters, so we should trim it off first
484
- // https://datatracker.ietf.org/doc/html/rfc3986#section-3.5
485
- const hashIndex = request.indexOf('#');
486
- if (hashIndex !== -1) {
487
- request = request.substring(0, hashIndex);
488
- }
489
- const queryIndex = request.indexOf('?');
490
- if (queryIndex !== -1) {
491
- request = request.substring(0, queryIndex);
492
- }
493
- return request;
494
- }
495
- /**
496
- * `require.context` and require/import expression runtime.
497
- */ function moduleContext(map) {
498
- function moduleContext(id) {
499
- id = parseRequest(id);
500
- if (hasOwnProperty.call(map, id)) {
501
- return map[id].module();
502
- }
503
- const e = new Error(`Cannot find module '${id}'`);
504
- e.code = 'MODULE_NOT_FOUND';
505
- throw e;
506
- }
507
- moduleContext.keys = ()=>{
508
- return Object.keys(map);
509
- };
510
- moduleContext.resolve = (id)=>{
511
- id = parseRequest(id);
512
- if (hasOwnProperty.call(map, id)) {
513
- return map[id].id();
514
- }
515
- const e = new Error(`Cannot find module '${id}'`);
516
- e.code = 'MODULE_NOT_FOUND';
517
- throw e;
518
- };
519
- moduleContext.import = async (id)=>{
520
- return await moduleContext(id);
521
- };
522
- return moduleContext;
523
- }
524
- contextPrototype.f = moduleContext;
525
- /**
526
- * Returns the path of a chunk defined by its data.
527
- */ function getChunkPath(chunkData) {
528
- return typeof chunkData === 'string' ? chunkData : chunkData.path;
529
- }
530
- // Load the CompressedModuleFactories of a chunk into the `moduleFactories` Map.
531
- // The flat format alternates one or more module IDs with their factory function.
532
- // Strict factories can be prepended as a nested array.
533
- function installCompressedModuleFactories(chunkModules, offset, moduleFactories, newModuleId) {
534
- let i = offset;
535
- const strictFactories = chunkModules[i];
536
- if (Array.isArray(strictFactories)) {
537
- installCompressedModuleFactories(strictFactories, 0, moduleFactories, newModuleId);
538
- i++;
539
- }
540
- while(i < chunkModules.length){
541
- let end = i + 1;
542
- // Find our factory function
543
- while(end < chunkModules.length && typeof chunkModules[end] !== 'function'){
544
- end++;
545
- }
546
- if (end === chunkModules.length) {
547
- throw new Error('malformed chunk format, expected a factory function');
548
- }
549
- // Install the factory for each module ID that doesn't already have one.
550
- // When some IDs in this group already have a factory, reuse that existing
551
- // group factory for the missing IDs to keep all IDs in the group consistent.
552
- // Otherwise, install the factory from this chunk.
553
- const moduleFactoryFn = chunkModules[end];
554
- let existingGroupFactory = undefined;
555
- for(let j = i; j < end; j++){
556
- const id = chunkModules[j];
557
- const existingFactory = moduleFactories.get(id);
558
- if (existingFactory) {
559
- existingGroupFactory = existingFactory;
560
- break;
561
- }
562
- }
563
- const factoryToInstall = existingGroupFactory ?? moduleFactoryFn;
564
- let didInstallFactory = false;
565
- for(let j = i; j < end; j++){
566
- const id = chunkModules[j];
567
- if (!moduleFactories.has(id)) {
568
- if (!didInstallFactory) {
569
- if (factoryToInstall === moduleFactoryFn) {
570
- applyModuleFactoryName(moduleFactoryFn);
571
- }
572
- didInstallFactory = true;
573
- }
574
- moduleFactories.set(id, factoryToInstall);
575
- newModuleId?.(id);
576
- }
577
- }
578
- i = end + 1;
579
- }
580
- }
581
- /**
582
- * A pseudo "fake" URL object to resolve to its relative path.
583
- *
584
- * When UrlRewriteBehavior is set to relative, calls to the `new URL()` will construct url without base using this
585
- * runtime function to generate context-agnostic urls between different rendering context, i.e ssr / client to avoid
586
- * hydration mismatch.
587
- *
588
- * This is based on webpack's existing implementation:
589
- * https://github.com/webpack/webpack/blob/87660921808566ef3b8796f8df61bd79fc026108/lib/runtime/RelativeUrlRuntimeModule.js
590
- */ const relativeURL = function relativeURL(inputUrl) {
591
- const realUrl = new URL(inputUrl, 'x:/');
592
- const values = {};
593
- for(const key in realUrl)values[key] = realUrl[key];
594
- values.href = inputUrl;
595
- values.pathname = inputUrl.replace(/[?#].*/, '');
596
- values.origin = values.protocol = '';
597
- values.toString = values.toJSON = (..._args)=>inputUrl;
598
- for(const key in values)Object.defineProperty(this, key, {
599
- enumerable: true,
600
- configurable: true,
601
- value: values[key]
602
- });
603
- };
604
- relativeURL.prototype = URL.prototype;
605
- contextPrototype.U = relativeURL;
606
- /**
607
- * Utility function to ensure all variants of an enum are handled.
608
- */ function invariant(never, computeMessage) {
609
- throw new Error(`Invariant: ${computeMessage(never)}`);
610
- }
611
- /**
612
- * Constructs an error message for when a module factory is not available.
613
- */ function factoryNotAvailableMessage(moduleId, sourceType, sourceData) {
614
- let instantiationReason;
615
- switch(sourceType){
616
- case 0:
617
- instantiationReason = `as a runtime entry of chunk ${sourceData}`;
618
- break;
619
- case 1:
620
- instantiationReason = `because it was required from module ${sourceData}`;
621
- break;
622
- case 2:
623
- instantiationReason = 'because of an HMR update';
624
- break;
625
- default:
626
- invariant(sourceType, (sourceType)=>`Unknown source type: ${sourceType}`);
627
- }
628
- return `Module ${moduleId} was instantiated ${instantiationReason}, but the module factory is not available.`;
629
- }
630
- /**
631
- * Returns a `file://` URL under a synthetic directory named after `root`
632
- * (`ROOT` for the project root), for when the real filesystem path is unknown.
633
- * The root name and path segments are percent-encoded so the result is always
634
- * a valid file URI.
635
- */ function placeholderFileUrl(modulePath, root) {
636
- return `file:///${encodeURIComponent(root ?? 'ROOT')}/${modulePath.split('/').map(encodeURIComponent).join('/')}`;
637
- }
638
- /**
639
- * A stub function to make `require` available but non-functional in ESM.
640
- */ function requireStub(_moduleId) {
641
- throw new Error('dynamic usage of require is not supported');
642
- }
643
- contextPrototype.z = requireStub;
644
- // Make `globalThis` available to the module in a way that cannot be shadowed by a local variable.
645
- contextPrototype.g = globalThis;
646
- function applyModuleFactoryName(factory) {
647
- // Give the module factory a nice name to improve stack traces.
648
- Object.defineProperty(factory, 'name', {
649
- value: 'module evaluation'
650
- });
651
- }
652
- /// <reference path="./runtime-types.d.ts" />
653
- /// <reference path="./runtime-utils.ts" />
654
- /**
655
- * Top-level-await / async-module machinery. This is only included in the runtime
656
- * when the module graph actually contains an async module (a module with
657
- * top-level await, or one that transitively depends on one). When no async
658
- * module is present, the chunk items never reference `__turbopack_context__.a`,
659
- * so this whole file can be omitted.
660
- *
661
- * everything below is adapted from webpack
662
- * https://github.com/webpack/webpack/blob/6be4065ade1e252c1d8dcba4af0f43e32af1bdc1/lib/runtime/AsyncModuleRuntimeModule.js#L13
663
- */ const turbopackQueues = Symbol('turbopack queues');
664
- const turbopackExports = Symbol('turbopack exports');
665
- const turbopackError = Symbol('turbopack error');
666
- function isPromise(maybePromise) {
667
- return maybePromise != null && typeof maybePromise === 'object' && 'then' in maybePromise && typeof maybePromise.then === 'function';
668
- }
669
- function isAsyncModuleExt(obj) {
670
- return turbopackQueues in obj;
671
- }
672
- function createPromise() {
673
- let resolve;
674
- let reject;
675
- const promise = new Promise((res, rej)=>{
676
- reject = rej;
677
- resolve = res;
678
- });
679
- return {
680
- promise,
681
- resolve: resolve,
682
- reject: reject
683
- };
684
- }
685
- function resolveQueue(queue) {
686
- if (queue && queue.status !== 1) {
687
- queue.status = 1;
688
- queue.forEach((fn)=>fn.queueCount--);
689
- queue.forEach((fn)=>fn.queueCount-- ? fn.queueCount++ : fn());
690
- }
691
- }
692
- function wrapDeps(deps) {
693
- return deps.map((dep)=>{
694
- if (dep !== null && typeof dep === 'object') {
695
- if (isAsyncModuleExt(dep)) return dep;
696
- if (isPromise(dep)) {
697
- const queue = Object.assign([], {
698
- status: 0
699
- });
700
- const obj = {
701
- [turbopackExports]: {},
702
- [turbopackQueues]: (fn)=>fn(queue)
703
- };
704
- dep.then((res)=>{
705
- obj[turbopackExports] = res;
706
- resolveQueue(queue);
707
- }, (err)=>{
708
- obj[turbopackError] = err;
709
- resolveQueue(queue);
710
- });
711
- return obj;
712
- }
713
- }
714
- return {
715
- [turbopackExports]: dep,
716
- [turbopackQueues]: ()=>{}
717
- };
718
- });
719
- }
720
- function asyncModule(body, hasAwait) {
721
- const module = this.m;
722
- const queue = hasAwait ? Object.assign([], {
723
- status: -1
724
- }) : undefined;
725
- const depQueues = new Set();
726
- const { resolve, reject, promise: rawPromise } = createPromise();
727
- const promise = Object.assign(rawPromise, {
728
- [turbopackExports]: module.exports,
729
- [turbopackQueues]: (fn)=>{
730
- queue && fn(queue);
731
- depQueues.forEach(fn);
732
- promise['catch'](()=>{});
733
- }
734
- });
735
- const attributes = {
736
- get () {
737
- return promise;
738
- },
739
- set (v) {
740
- // Calling `esmExport` leads to this.
741
- if (v !== promise) {
742
- promise[turbopackExports] = v;
743
- }
744
- }
745
- };
746
- Object.defineProperty(module, 'exports', attributes);
747
- Object.defineProperty(module, 'namespaceObject', attributes);
748
- function handleAsyncDependencies(deps) {
749
- const currentDeps = wrapDeps(deps);
750
- const getResult = ()=>currentDeps.map((d)=>{
751
- if (d[turbopackError]) throw d[turbopackError];
752
- return d[turbopackExports];
753
- });
754
- const { promise, resolve } = createPromise();
755
- const fn = Object.assign(()=>resolve(getResult), {
756
- queueCount: 0
757
- });
758
- function fnQueue(q) {
759
- if (q !== queue && !depQueues.has(q)) {
760
- depQueues.add(q);
761
- if (q && q.status === 0) {
762
- fn.queueCount++;
763
- q.push(fn);
764
- }
765
- }
766
- }
767
- currentDeps.map((dep)=>dep[turbopackQueues](fnQueue));
768
- return fn.queueCount ? promise : getResult();
769
- }
770
- function asyncResult(err) {
771
- if (err) {
772
- reject(promise[turbopackError] = err);
773
- } else {
774
- resolve(promise[turbopackExports]);
775
- }
776
- resolveQueue(queue);
777
- }
778
- body(handleAsyncDependencies, asyncResult);
779
- if (queue && queue.status === -1) {
780
- queue.status = 0;
781
- }
782
- }
783
- contextPrototype.a = asyncModule;
784
- /// <reference path="../shared/runtime/runtime-utils.ts" />
785
- /// A 'base' utilities to support runtime can have externals.
786
- /// Currently this is for node.js / edge runtime both.
787
- /// If a fn requires node.js specific behavior, it should be placed in `node-external-utils` instead.
788
- async function externalImport(id) {
789
- let raw;
790
- try {
791
- raw = await import(id);
792
- } catch (err) {
793
- // TODO(alexkirsz) This can happen when a client-side module tries to load
794
- // an external module we don't provide a shim for (e.g. querystring, url).
795
- // For now, we fail semi-silently, but in the future this should be a
796
- // compilation error.
797
- throw new Error(`Failed to load external module ${id}: ${err}`);
798
- }
799
- if (raw && raw.__esModule && raw.default && 'default' in raw.default) {
800
- return interopEsm(raw.default, createNS(raw), true);
801
- }
802
- return raw;
803
- }
804
- contextPrototype.y = externalImport;
805
- function externalRequire(id, thunk, esm = false) {
806
- let raw;
807
- try {
808
- raw = thunk();
809
- } catch (err) {
810
- // TODO(alexkirsz) This can happen when a client-side module tries to load
811
- // an external module we don't provide a shim for (e.g. querystring, url).
812
- // For now, we fail semi-silently, but in the future this should be a
813
- // compilation error.
814
- throw new Error(`Failed to load external module ${id}: ${err}`);
815
- }
816
- if (!esm || raw.__esModule) {
817
- return raw;
818
- }
819
- return interopEsm(raw, createNS(raw), true);
820
- }
821
- externalRequire.resolve = (id, options)=>{
822
- return require.resolve(id, options);
823
- };
824
- contextPrototype.x = externalRequire;
825
- /* eslint-disable @typescript-eslint/no-unused-vars */ const path = require('path');
826
- const relativePathToRuntimeRoot = path.relative(RUNTIME_PUBLIC_PATH, '.');
827
- // Compute the relative path to the `distDir`.
828
- const relativePathToDistRoot = path.join(relativePathToRuntimeRoot, RELATIVE_ROOT_PATH);
829
- const RUNTIME_ROOT = path.resolve(__filename, relativePathToRuntimeRoot);
830
- // Compute the absolute path to the root, by stripping distDir from the absolute path to this file.
831
- const ABSOLUTE_ROOT = path.resolve(__filename, relativePathToDistRoot);
832
- /**
833
- * Returns an absolute path to the given module path.
834
- * Module path should be relative, either path to a file or a directory.
835
- *
836
- * This fn allows to calculate an absolute path for some global static values, such as
837
- * `__dirname` or `import.meta.url` that Turbopack will not embeds in compile time.
838
- * See ImportMetaBinding::code_generation for the usage.
839
- */ function resolveAbsolutePath(modulePath) {
840
- if (modulePath) {
841
- return path.join(ABSOLUTE_ROOT, modulePath);
842
- }
843
- return ABSOLUTE_ROOT;
844
- }
845
- Context.prototype.P = resolveAbsolutePath;
846
- /**
847
- * Returns an absolute `file://` URL for the given module path, which is
848
- * relative to the project root or the named `root`.
849
- *
850
- * Uses `url.pathToFileURL` so that the resulting URL is a valid file URI on
851
- * all platforms (forward slashes on Windows, drive letters handled
852
- * correctly, path segments URL-encoded).
853
- *
854
- * The location of a named `root` isn't known at runtime (the output may have
855
- * been moved away from the sources), so this returns a placeholder URL for it.
856
- */ function resolveFileUrl(modulePath, root) {
857
- if (root !== undefined) {
858
- return placeholderFileUrl(modulePath, root);
859
- }
860
- return require('url').pathToFileURL(resolveAbsolutePath(modulePath)).href;
861
- }
862
- Context.prototype.F = resolveFileUrl;
863
- /* eslint-disable @typescript-eslint/no-unused-vars */ /// <reference path="../../shared/runtime/runtime-utils.ts" />
864
- /// <reference path="../../shared-node/base-externals-utils.ts" />
865
- /// <reference path="../../shared-node/node-externals-utils.ts" />
866
- /// <reference path="./nodejs-globals.d.ts" />
867
- /**
868
- * Base Node.js runtime shared between production and development.
869
- * Contains chunk loading, module caching, and other non-HMR functionality.
870
- */ process.env.TURBOPACK = '1';
871
- const url = require('url');
872
- const moduleFactories = new Map();
873
- const moduleCache = new Map();
874
- /**
875
- * Returns an absolute path to the given module's id.
876
- */ function resolvePathFromModule(moduleId) {
877
- const exported = this.r(moduleId);
878
- const exportedPath = exported?.default ?? exported;
879
- if (typeof exportedPath !== 'string') {
880
- return exported;
881
- }
882
- const strippedAssetPrefix = exportedPath.slice(ASSET_PREFIX.length);
883
- const resolved = path.resolve(RUNTIME_ROOT, strippedAssetPrefix);
884
- return url.pathToFileURL(resolved).href;
885
- }
886
- /**
887
- * Exports a URL value. No suffix is added in Node.js runtime.
888
- */ function exportUrl(urlValue, id) {
889
- exportValue.call(this, urlValue, id);
890
- }
891
- function loadRuntimeChunk(sourcePath, chunkData) {
892
- if (typeof chunkData === 'string') {
893
- loadRuntimeChunkPath(sourcePath, chunkData);
894
- } else {
895
- loadRuntimeChunkPath(sourcePath, chunkData.path);
896
- }
897
- }
898
- const loadedChunks = new Set();
899
- const unsupportedLoadChunk = Promise.resolve(undefined);
900
- const loadedChunk = Promise.resolve(undefined);
901
- const chunkCache = new Map();
902
- function clearChunkCache() {
903
- chunkCache.clear();
904
- loadedChunks.clear();
905
- }
906
- function loadRuntimeChunkPath(sourcePath, chunkPath) {
907
- if (!isJs(chunkPath)) {
908
- // We only support loading JS chunks in Node.js.
909
- // This branch can be hit when trying to load a CSS chunk.
910
- return;
911
- }
912
- if (loadedChunks.has(chunkPath)) {
913
- return;
914
- }
915
- try {
916
- const resolved = path.resolve(RUNTIME_ROOT, chunkPath);
917
- const chunkModules = require(resolved);
918
- installCompressedModuleFactories(chunkModules, 0, moduleFactories);
919
- loadedChunks.add(chunkPath);
920
- } catch (cause) {
921
- let errorMessage = `Failed to load chunk ${chunkPath}`;
922
- if (sourcePath) {
923
- errorMessage += ` from runtime for chunk ${sourcePath}`;
924
- }
925
- const error = new Error(errorMessage, {
926
- cause
927
- });
928
- error.name = 'ChunkLoadError';
929
- throw error;
930
- }
931
- }
932
- function loadChunkAsync(chunkData) {
933
- const chunkPath = typeof chunkData === 'string' ? chunkData : chunkData.path;
934
- if (!isJs(chunkPath)) {
935
- // We only support loading JS chunks in Node.js.
936
- // This branch can be hit when trying to load a CSS chunk.
937
- return unsupportedLoadChunk;
938
- }
939
- let entry = chunkCache.get(chunkPath);
940
- if (entry === undefined) {
941
- try {
942
- // resolve to an absolute path to simplify `require` handling
943
- const resolved = path.resolve(RUNTIME_ROOT, chunkPath);
944
- // TODO: consider switching to `import()` to enable concurrent chunk loading and async file io
945
- // However this is incompatible with hot reloading (since `import` doesn't use the require cache)
946
- const chunkModules = require(resolved);
947
- installCompressedModuleFactories(chunkModules, 0, moduleFactories);
948
- entry = loadedChunk;
949
- } catch (cause) {
950
- const errorMessage = `Failed to load chunk ${chunkPath} from module ${this.m.id}`;
951
- const error = new Error(errorMessage, {
952
- cause
953
- });
954
- error.name = 'ChunkLoadError';
955
- // Cache the failure promise, future requests will also get this same rejection
956
- entry = Promise.reject(error);
957
- }
958
- chunkCache.set(chunkPath, entry);
959
- }
960
- // TODO: Return an instrumented Promise that React can use instead of relying on referential equality.
961
- return entry;
962
- }
963
- contextPrototype.l = loadChunkAsync;
964
- function loadChunkAsyncByUrl(chunkUrl) {
965
- const path1 = url.fileURLToPath(new URL(chunkUrl, RUNTIME_ROOT));
966
- return loadChunkAsync.call(this, path1);
967
- }
968
- contextPrototype.L = loadChunkAsyncByUrl;
969
- // Shared runtime primitive: the root that on-disk chunk paths are resolved
970
- // against. Used by the bundled wasm helper (exposed as `__turbopack_runtime_root__`).
971
- contextPrototype.w = RUNTIME_ROOT;
972
- const regexJsUrl = /\.js(?:\?[^#]*)?(?:#.*)?$/;
973
- /**
974
- * Checks if a given path/URL ends with .js, optionally followed by ?query or #fragment.
975
- */ function isJs(chunkUrlOrPath) {
976
- return regexJsUrl.test(chunkUrlOrPath);
977
- }
978
- /* eslint-disable @typescript-eslint/no-unused-vars */ /// <reference path="./runtime-base.ts" />
979
- /**
980
- * Production Node.js runtime.
981
- * Uses ModuleWithDirection and simple module instantiation without HMR support.
982
- */ // moduleCache and moduleFactories are declared in runtime-base.ts
983
- // this is read in runtime-utils.ts so it creates a module with direction for hmr
984
- createModuleWithDirectionFlag = true;
985
- const nodeContextPrototype = Context.prototype;
986
- nodeContextPrototype.q = exportUrl;
987
- nodeContextPrototype.M = moduleFactories;
988
- // Cast moduleCache to ModuleWithDirection for production mode
989
- nodeContextPrototype.c = moduleCache;
990
- nodeContextPrototype.R = resolvePathFromModule;
991
- nodeContextPrototype.C = clearChunkCache;
992
- function instantiateModule(id, sourceType, sourceData) {
993
- const moduleFactory = moduleFactories.get(id);
994
- if (typeof moduleFactory !== 'function') {
995
- // This can happen if modules incorrectly handle HMR disposes/updates,
996
- // e.g. when they keep a `setTimeout` around which still executes old code
997
- // and contains e.g. a `require("something")` call.
998
- throw new Error(factoryNotAvailableMessage(id, sourceType, sourceData));
999
- }
1000
- const module1 = createModuleWithDirection(id);
1001
- const exports = module1.exports;
1002
- moduleCache.set(id, module1);
1003
- const context = new Context(module1, exports);
1004
- // NOTE(alexkirsz) This can fail when the module encounters a runtime error.
1005
- try {
1006
- moduleFactory(context, module1, exports);
1007
- } catch (error) {
1008
- module1.error = error;
1009
- throw error;
1010
- }
1011
- ;
1012
- module1.loaded = true;
1013
- if (module1.namespaceObject && module1.exports !== module1.namespaceObject) {
1014
- // in case of a circular dependency: cjs1 -> esm2 -> cjs1
1015
- interopEsm(module1.exports, module1.namespaceObject);
1016
- }
1017
- return module1;
1018
- }
1019
- /**
1020
- * Retrieves a module from the cache, or instantiate it if it is not cached.
1021
- */ // @ts-ignore
1022
- function getOrInstantiateModuleFromParent(id, sourceModule) {
1023
- const module1 = moduleCache.get(id);
1024
- if (module1) {
1025
- if (module1.error) {
1026
- throw module1.error;
1027
- }
1028
- return module1;
1029
- }
1030
- return instantiateModule(id, SourceType.Parent, sourceModule.id);
1031
- }
1032
- /**
1033
- * Instantiates a runtime module.
1034
- */ function instantiateRuntimeModule(chunkPath, moduleId) {
1035
- return instantiateModule(moduleId, SourceType.Runtime, chunkPath);
1036
- }
1037
- /**
1038
- * Retrieves a module from the cache, or instantiate it as a runtime module if it is not cached.
1039
- */ // @ts-ignore TypeScript doesn't separate this module space from the browser runtime
1040
- function getOrInstantiateRuntimeModule(chunkPath, moduleId) {
1041
- const module1 = moduleCache.get(moduleId);
1042
- if (module1) {
1043
- if (module1.error) {
1044
- throw module1.error;
1045
- }
1046
- return module1;
1047
- }
1048
- return instantiateRuntimeModule(chunkPath, moduleId);
1049
- }
1050
- module.exports = (sourcePath)=>({
1051
- m: (id)=>getOrInstantiateRuntimeModule(sourcePath, id),
1052
- c: (chunkData)=>loadRuntimeChunk(sourcePath, chunkData)
1053
- });
1054
-
1055
-
1056
- //# sourceMappingURL=%5Bturbopack%5D_runtime.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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[
5
- {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/runtime-utils.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * TurboPack ECMAScript runtimes.\n *\n * It will be prepended to the runtime code of each runtime.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"./runtime-types.d.ts\" />\n/// <reference path=\"./async-module.ts\" />\n\ntype EsmNamespaceObject = Record<string, any>\n\n/**\n * Describes why a module was instantiated.\n * Shared between browser and Node.js runtimes.\n */\nenum SourceType {\n /**\n * The module was instantiated because it was included in an evaluated chunk's\n * runtime.\n * SourceData is a ChunkPath.\n */\n Runtime = 0,\n /**\n * The module was instantiated because a parent module imported it.\n * SourceData is a ModuleId.\n */\n Parent = 1,\n /**\n * The module was instantiated because it was included in a chunk's hot module\n * update.\n * SourceData is an array of ModuleIds or undefined.\n */\n Update = 2,\n}\n\ntype SourceData = ChunkPath | ModuleId | ModuleId[] | undefined\n\n// @ts-ignore Defined in `dev-base.ts`\ndeclare function getOrInstantiateModuleFromParent<M>(\n id: ModuleId,\n sourceModule: M\n): M\n\n/**\n * Flag indicating which module object type to create when a module is merged. Set to `true`\n * by each runtime that uses ModuleWithDirection (browser dev-base.ts, nodejs dev-base.ts,\n * nodejs build-base.ts). Browser production (build-base.ts) leaves it as `false` since it\n * uses plain Module objects.\n */\nlet createModuleWithDirectionFlag = false\n\nconst REEXPORTED_OBJECTS = new WeakMap<Module, ReexportedObjects>()\n\n/**\n * Constructs the `__turbopack_context__` object for a module.\n */\nfunction Context(\n this: TurbopackBaseContext<Module>,\n module: Module,\n exports: Exports\n) {\n this.m = module\n // We need to store this here instead of accessing it from the module object to:\n // 1. Make it available to factories directly, since we rewrite `this` to\n // `__turbopack_context__.e` in CJS modules.\n // 2. Support async modules which rewrite `module.exports` to a promise, so we\n // can still access the original exports object from functions like\n // `esmExport`\n // Ideally we could find a new approach for async modules and drop this property altogether.\n this.e = exports\n}\nconst contextPrototype = Context.prototype as TurbopackBaseContext<Module>\n\ntype ModuleContextMap = Record<ModuleId, ModuleContextEntry>\n\ninterface ModuleContextEntry {\n id: () => ModuleId\n module: () => any\n}\n\ninterface ModuleContext {\n // require call\n (moduleId: string): Exports | EsmNamespaceObject\n\n // async import call\n import(moduleId: string): Promise<Exports | EsmNamespaceObject>\n\n keys(): ModuleId[]\n\n resolve(moduleId: string): ModuleId\n}\n\ntype GetOrInstantiateModuleFromParent<M extends Module> = (\n moduleId: M['id'],\n parentModule: M\n) => M\n\ndeclare function getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty\nconst toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag\n\nfunction defineProp(\n obj: any,\n name: PropertyKey,\n options: PropertyDescriptor & ThisType<any>\n) {\n if (!hasOwnProperty.call(obj, name)) Object.defineProperty(obj, name, options)\n}\n\nfunction getOverwrittenModule(\n moduleCache: ModuleCache<Module>,\n id: ModuleId\n): Module {\n let module = moduleCache.get(id)\n if (module === undefined) {\n if (createModuleWithDirectionFlag) {\n // set in development modes for hmr support\n module = createModuleWithDirection(id)\n } else {\n module = createModuleObject(id)\n }\n moduleCache.set(id, module)\n }\n return module\n}\n\n/**\n * Creates the module object. Only done here to ensure all module objects have the same shape.\n */\nfunction createModuleObject(id: ModuleId): Module {\n return {\n exports: {},\n error: undefined,\n id,\n namespaceObject: undefined,\n }\n}\n\nfunction createModuleWithDirection(id: ModuleId): ModuleWithDirection {\n return {\n exports: {},\n error: undefined,\n id,\n namespaceObject: undefined,\n parents: [],\n children: [],\n }\n}\n\ntype BindingTag = 0\nconst BindingTag_Value = 0 as BindingTag\n\n// an arbitrary sequence of bindings as\n// - a prop name\n// - BindingTag_Value, a value to be bound directly, or\n// - 1 or 2 functions to bind as getters and sdetters\ntype EsmBindings = Array<\n string | BindingTag | (() => unknown) | ((v: unknown) => void) | unknown\n>\n\n/**\n * Terminates a module's group of entries in an {@link EsmReexports} list.\n */\nconst REEXPORT_GROUP_END = 0\n\n/**\n * Adds the getters to the exports object.\n */\nfunction esm(exports: Exports, bindings: EsmBindings, dynamic?: boolean) {\n defineProp(exports, '__esModule', { value: true })\n if (toStringTag) defineProp(exports, toStringTag, { value: 'Module' })\n let i = 0\n while (i < bindings.length) {\n const propName = bindings[i++] as string\n const tagOrFunction = bindings[i++]\n if (typeof tagOrFunction === 'number') {\n if (tagOrFunction === BindingTag_Value) {\n defineProp(exports, propName, {\n value: bindings[i++],\n enumerable: true,\n writable: false,\n })\n } else {\n throw new Error(`unexpected tag: ${tagOrFunction}`)\n }\n } else {\n const getterFn = tagOrFunction as () => unknown\n if (typeof bindings[i] === 'function') {\n const setterFn = bindings[i++] as (v: unknown) => void\n defineProp(exports, propName, {\n get: getterFn,\n set: setterFn,\n enumerable: true,\n })\n } else {\n defineProp(exports, propName, {\n get: getterFn,\n enumerable: true,\n })\n }\n }\n }\n // The properties defined above are already non-configurable and\n // non-writable, so the namespace's existing exports are effectively\n // immutable. Sealing additionally makes the object non-extensible, matching\n // real ESM-namespace semantics. Modules with dynamic re-exports\n // (`export *` from a CommonJS module) must stay extensible so the dynamic\n // export proxy can surface keys discovered at runtime, so skip the seal for\n // them.\n if (!dynamic) Object.seal(exports)\n}\n\n/**\n * Makes the module an ESM with exports\n */\nfunction esmExport(\n this: TurbopackBaseContext<Module>,\n bindings: EsmBindings,\n id: ModuleId | undefined,\n dynamic?: boolean\n) {\n let module: Module\n let exports: Module['exports']\n if (id != null) {\n module = getOverwrittenModule(this.c, id)\n exports = module.exports\n } else {\n module = this.m\n exports = this.e\n }\n module.namespaceObject = exports\n esm(exports, bindings, dynamic)\n}\ncontextPrototype.s = esmExport\n\n/**\n * Registers re-exports that all forward to properties of other modules.\n *\n * This is a compact spelling of the pattern\n *\n * ```js\n * var ns = context.i(moduleId)\n * context.s([exportName, () => ns[importedName], ...])\n * ```\n *\n * The list is a flat sequence of groups. Each group starts with the source the exports come from,\n * followed by that group's entries, and is terminated by the `0` sentinel (or the end of the list).\n *\n * The group head is either a **module id**, which is instantiated here:\n *\n * ```js\n * context.S([\n * 76061, 'default', 'f', 'named', 'A', 0,\n * 29842, 'otherModule', 'f',\n * ])\n * ```\n *\n * or the **namespace value** of a module that has already been imported, which is used directly:\n *\n * ```js\n * var ns1 = context.i(76061)\n * context.S([ns1, 'default', 'f', 'named', 'A'])\n * ```\n *\n * The producer picks the namespace form when it has generated the import anyway -- because some\n * later import must not be reordered past it -- so nothing is instantiated twice. The two are told\n * apart by type: a module id is always a string or number. A CommonJS function export produces a\n * callable namespace value, so namespace heads can be functions as well as objects.\n *\n * Entries are `exportName, importedName` pairs, except when a group holds exactly one string. That\n * string is then a comma-joined list of the same pairs, which saves the repeated quoting:\n *\n * ```js\n * context.S([\n * 76061, 'default,f,named,A', 0,\n * 29842, 'otherModule,f',\n * ])\n * ```\n *\n * The producer picks that spelling independently for each group whose names contain no commas,\n * since that group's names are recovered by splitting on them.\n *\n * Groups whose head is a module id are instantiated in list order, at the point where the call\n * appears, so the producer must not merge such a group across an import of another module. The\n * destination reuses a source data value or getter descriptor when one exists, falling back to a\n * wrapper getter for dynamic/proxy/inherited properties.\n *\n * `id` names the module the exports belong to when this module was merged into a scope-hoisting\n * group, exactly as it does for {@link EsmExport}.\n *\n * Only the source descriptor's payload (value or getter) is reused. {@link esm} still defines a\n * fresh enumerable, non-configurable destination property, and no source setter is ever forwarded.\n */\nfunction esmReexport(\n this: TurbopackBaseContext<Module>,\n list: EsmReexports,\n id?: ModuleId\n): void {\n const bindings: EsmBindings = []\n let i = 0\n while (i < list.length) {\n const head = list[i++]\n const start = i\n while (i < list.length && list[i] !== REEXPORT_GROUP_END) i++\n const end = i\n // Skip the sentinel, if this group was terminated by one rather than by the end of the list.\n i++\n\n // Module ids are always strings or numbers. Other values are already-imported namespaces;\n // notably, interop with a CommonJS function export produces a callable namespace function.\n // `esmImport` may return a promise for an async module, but re-exports of async modules keep\n // going through `context.s`, so the producer never routes them here and this stays synchronous.\n const namespace = (\n typeof head === 'string' || typeof head === 'number'\n ? esmImport.call(this, head)\n : head\n ) as Record<string, unknown>\n if (end - start === 1) {\n const pairs = (list[start] as string).split(',')\n for (let j = 0; j < pairs.length; j += 2) {\n appendReexportBinding(bindings, pairs[j], namespace, pairs[j + 1])\n }\n } else {\n for (let j = start; j < end; j += 2) {\n appendReexportBinding(\n bindings,\n list[j] as string,\n namespace,\n list[j + 1] as string\n )\n }\n }\n }\n esmExport.call(this, bindings, id)\n}\ncontextPrototype.S = esmReexport\n\nfunction appendReexportBinding(\n bindings: EsmBindings,\n exportedName: string,\n namespace: Record<string, unknown>,\n importedName: string\n): void {\n const descriptor = Reflect.getOwnPropertyDescriptor(namespace, importedName)\n if (descriptor) {\n if ('value' in descriptor) {\n // Code generation only routes immutable imported bindings through this helper, so a data\n // descriptor is a constant export and can be captured once.\n bindings.push(exportedName, BindingTag_Value, descriptor.value)\n return\n }\n if (descriptor.get) {\n // Accessors remain live by reusing the source getter. `esmReexport` is only called by\n // generated code: every group head is either produced by\n // `this.i` or is the namespace variable from a generated `this.i` call. Every getter on such\n // a namespace is receiver-independent: ESM bindings are compiler-generated arrow functions,\n // and the CommonJS/dynamic-namespace paths create arrows in `createGetter` and\n // `getOwnPropertyDescriptor`. The destination can therefore reuse the exact function instead\n // of allocating another wrapper getter.\n bindings.push(exportedName, descriptor.get)\n return\n }\n }\n\n // Dynamic/proxy/inherited CommonJS edge cases may not expose a usable own descriptor.\n bindings.push(exportedName, () => namespace[importedName])\n}\n\ntype ReexportedObjects = Record<PropertyKey, unknown>[]\nfunction ensureDynamicExports(\n module: Module,\n exports: Exports\n): ReexportedObjects {\n let reexportedObjects: ReexportedObjects | undefined =\n REEXPORTED_OBJECTS.get(module)\n\n if (!reexportedObjects) {\n REEXPORTED_OBJECTS.set(module, (reexportedObjects = []))\n // Returns the re-exported object that provides `prop` as an own property,\n // or `undefined` if none does. The traps share this logic so they always\n // agree on which keys are synthesized from `reexportedObjects`. `default`\n // is never re-exported by `export *`, so it is never synthesized.\n const reexportOwning = (prop: PropertyKey) => {\n if (prop !== 'default') {\n for (const obj of reexportedObjects!) {\n if (hasOwnProperty.call(obj, prop)) return obj\n }\n }\n return undefined\n }\n // Modules with dynamic re-exports are not sealed by `esm()`, so the\n // target beneath the namespace stays extensible. That is what lets the\n // `ownKeys` and `getOwnPropertyDescriptor` traps legally report keys that\n // exist on `reexportedObjects` but not on the target itself.\n module.exports = module.namespaceObject = new Proxy(exports, {\n get(target, prop) {\n if (\n hasOwnProperty.call(target, prop) ||\n prop === 'default' ||\n prop === '__esModule'\n ) {\n return Reflect.get(target, prop)\n }\n const obj = reexportOwning(prop)\n return obj && Reflect.get(obj, prop)\n },\n // The namespace is read-only, like a real esm namespace object. The\n // re-exported modules can still mutate their own exports (exposed live\n // via `get`), but mutating the namespace itself is rejected. Refusing\n // here, rather than forwarding to the extensible target, also prevents an\n // assignment/definition from shadowing a dynamic re-export. It also\n // prevents delete from removing a static export.\n set() {\n return false\n },\n defineProperty() {\n return false\n },\n deleteProperty() {\n return false\n },\n // The `has` trap ensures that `'exportName' in starImports` will reflect\n // the truth of whether a key is exported.\n has(target, prop) {\n if (Reflect.has(target, prop)) return true\n if (prop === 'default' || prop === '__esModule') return false\n return reexportOwning(prop) !== undefined\n },\n // ownKeys and getOwnPropertyDescriptor together make the keys enumerable.\n // If a value is returned from `ownKeys` but its property descriptor is\n // not enumerable, it will not be visible to iterator methods.\n // Collectively, they allow code like the following:\n //\n // ```\n // // module.js re-exports dynamic CJS exports\n // export * from './legacyModule.cjs'\n //\n // // from another JS file, reference the re-exported dynamic values\n // import * as Namespace from './module.js'\n // Object.keys(Namespace)\n // ```\n ownKeys(target) {\n const keys = Reflect.ownKeys(target)\n for (const obj of reexportedObjects!) {\n for (const key of Reflect.ownKeys(obj)) {\n if (key !== 'default' && !keys.includes(key)) keys.push(key)\n }\n }\n return keys\n },\n getOwnPropertyDescriptor(target, prop) {\n const own = Reflect.getOwnPropertyDescriptor(target, prop)\n if (own || prop === 'default' || prop === '__esModule') return own\n const obj = reexportOwning(prop)\n if (obj) {\n // Synthetic keys don't exist on the target, so they MUST be\n // reported as configurable. However the set/delete traps above will\n // prevent them from actually being changed\n return {\n enumerable: true,\n configurable: true,\n get: () => Reflect.get(obj, prop),\n }\n }\n return undefined\n },\n })\n }\n return reexportedObjects\n}\n\n/**\n * Dynamically exports properties from an object\n */\nfunction dynamicExport(\n this: TurbopackBaseContext<Module>,\n object: Record<string, any>,\n id: ModuleId | undefined\n) {\n let module: Module\n let exports: Exports\n if (id != null) {\n module = getOverwrittenModule(this.c, id)\n exports = module.exports\n } else {\n module = this.m\n exports = this.e\n }\n const reexportedObjects = ensureDynamicExports(module, exports)\n\n if (typeof object === 'object' && object !== null) {\n reexportedObjects.push(object)\n }\n}\ncontextPrototype.j = dynamicExport\n\nfunction exportValue(\n this: TurbopackBaseContext<Module>,\n value: any,\n id: ModuleId | undefined\n) {\n let module: Module\n if (id != null) {\n module = getOverwrittenModule(this.c, id)\n } else {\n module = this.m\n }\n module.exports = value\n}\ncontextPrototype.v = exportValue\n\nfunction exportNamespace(\n this: TurbopackBaseContext<Module>,\n namespace: any,\n id: ModuleId | undefined\n) {\n let module: Module\n if (id != null) {\n module = getOverwrittenModule(this.c, id)\n } else {\n module = this.m\n }\n module.exports = module.namespaceObject = namespace\n}\ncontextPrototype.n = exportNamespace\n\nfunction createGetter(obj: Record<string | symbol, any>, key: string | symbol) {\n return () => obj[key]\n}\n\n/**\n * @returns prototype of the object\n */\nconst getProto: (obj: any) => any = Object.getPrototypeOf\n ? (obj) => Object.getPrototypeOf(obj)\n : (obj) => obj.__proto__\n\n/** Prototypes that are not expanded for exports */\nconst LEAF_PROTOTYPES = [null, getProto({}), getProto([]), getProto(getProto)]\n\n/**\n * @param raw\n * @param ns\n * @param allowExportDefault\n * * `false`: will have the raw module as default export\n * * `true`: will have the default property as default export\n */\nfunction interopEsm(\n raw: Exports,\n ns: EsmNamespaceObject,\n allowExportDefault?: boolean\n) {\n const bindings: EsmBindings = []\n let defaultLocation = -1\n for (\n let current = raw;\n (typeof current === 'object' || typeof current === 'function') &&\n !LEAF_PROTOTYPES.includes(current);\n current = getProto(current)\n ) {\n for (const key of Object.getOwnPropertyNames(current)) {\n bindings.push(key, createGetter(raw, key))\n if (defaultLocation === -1 && key === 'default') {\n defaultLocation = bindings.length - 1\n }\n }\n }\n\n // this is not really correct\n // we should set the `default` getter if the imported module is a `.cjs file`\n if (!(allowExportDefault && defaultLocation >= 0)) {\n // Replace the binding with one for the namespace itself in order to preserve iteration order.\n if (defaultLocation >= 0) {\n // Replace the getter with the value\n bindings.splice(defaultLocation, 1, BindingTag_Value, raw)\n } else {\n bindings.push('default', BindingTag_Value, raw)\n }\n }\n\n esm(ns, bindings)\n return ns\n}\n\nfunction createNS(raw: Module['exports']): EsmNamespaceObject {\n if (typeof raw === 'function') {\n return function (this: any, ...args: any[]) {\n return raw.apply(this, args)\n }\n } else {\n return Object.create(null)\n }\n}\n\nfunction esmImport(\n this: TurbopackBaseContext<Module>,\n id: ModuleId\n): Exclude<Module['namespaceObject'], undefined> {\n const module = getOrInstantiateModuleFromParent(id, this.m)\n\n // any ES module has to have `module.namespaceObject` defined.\n if (module.namespaceObject) return module.namespaceObject\n\n // only ESM can be an async module, so we don't need to worry about exports being a promise here.\n const raw = module.exports\n return (module.namespaceObject = interopEsm(\n raw,\n createNS(raw),\n raw && (raw as any).__esModule\n ))\n}\ncontextPrototype.i = esmImport\n\nfunction asyncLoader(\n this: TurbopackBaseContext<Module>,\n moduleId: ModuleId\n): Promise<Exports> {\n const loader = this.r(moduleId) as (\n importFunction: EsmImport\n ) => Promise<Exports>\n return loader(esmImport.bind(this))\n}\ncontextPrototype.A = asyncLoader\n\n// Add a simple runtime require so that environments without one can still pass\n// `typeof require` CommonJS checks so that exports are correctly registered.\nconst runtimeRequire =\n // @ts-ignore\n typeof require === 'function'\n ? // @ts-ignore\n require\n : function require() {\n throw new Error('Unexpected use of runtime require')\n }\ncontextPrototype.t = runtimeRequire\n\nfunction commonJsRequire(\n this: TurbopackBaseContext<Module>,\n id: ModuleId\n): Exports {\n return getOrInstantiateModuleFromParent(id, this.m).exports\n}\ncontextPrototype.r = commonJsRequire\n\n/**\n * Remove fragments and query parameters since they are never part of the context map keys\n *\n * This matches how we parse patterns at resolving time. Arguably we should only do this for\n * strings passed to `import` but the resolve does it for `import` and `require` and so we do\n * here as well.\n */\nfunction parseRequest(request: string): string {\n // Per the URI spec fragments can contain `?` characters, so we should trim it off first\n // https://datatracker.ietf.org/doc/html/rfc3986#section-3.5\n const hashIndex = request.indexOf('#')\n if (hashIndex !== -1) {\n request = request.substring(0, hashIndex)\n }\n\n const queryIndex = request.indexOf('?')\n if (queryIndex !== -1) {\n request = request.substring(0, queryIndex)\n }\n\n return request\n}\n/**\n * `require.context` and require/import expression runtime.\n */\nfunction moduleContext(map: ModuleContextMap): ModuleContext {\n function moduleContext(id: string): Exports {\n id = parseRequest(id)\n if (hasOwnProperty.call(map, id)) {\n return map[id].module()\n }\n\n const e = new Error(`Cannot find module '${id}'`)\n ;(e as any).code = 'MODULE_NOT_FOUND'\n throw e\n }\n\n moduleContext.keys = (): string[] => {\n return Object.keys(map)\n }\n\n moduleContext.resolve = (id: string): ModuleId => {\n id = parseRequest(id)\n if (hasOwnProperty.call(map, id)) {\n return map[id].id()\n }\n\n const e = new Error(`Cannot find module '${id}'`)\n ;(e as any).code = 'MODULE_NOT_FOUND'\n throw e\n }\n\n moduleContext.import = async (id: string) => {\n return await (moduleContext(id) as Promise<Exports>)\n }\n\n return moduleContext\n}\ncontextPrototype.f = moduleContext\n\n/**\n * Returns the path of a chunk defined by its data.\n */\nfunction getChunkPath(chunkData: ChunkData): ChunkPath {\n return typeof chunkData === 'string' ? chunkData : chunkData.path\n}\n\n// Load the CompressedModuleFactories of a chunk into the `moduleFactories` Map.\n// The flat format alternates one or more module IDs with their factory function.\n// Strict factories can be prepended as a nested array.\nfunction installCompressedModuleFactories(\n chunkModules: CompressedModuleFactories,\n offset: number,\n moduleFactories: ModuleFactories,\n newModuleId?: (id: ModuleId) => void\n) {\n let i = offset\n const strictFactories = chunkModules[i]\n if (Array.isArray(strictFactories)) {\n installCompressedModuleFactories(\n strictFactories,\n 0,\n moduleFactories,\n newModuleId\n )\n i++\n }\n while (i < chunkModules.length) {\n let end = i + 1\n // Find our factory function\n while (\n end < chunkModules.length &&\n typeof chunkModules[end] !== 'function'\n ) {\n end++\n }\n if (end === chunkModules.length) {\n throw new Error('malformed chunk format, expected a factory function')\n }\n\n // Install the factory for each module ID that doesn't already have one.\n // When some IDs in this group already have a factory, reuse that existing\n // group factory for the missing IDs to keep all IDs in the group consistent.\n // Otherwise, install the factory from this chunk.\n const moduleFactoryFn = chunkModules[end] as Function\n let existingGroupFactory: Function | undefined = undefined\n for (let j = i; j < end; j++) {\n const id = chunkModules[j] as ModuleId\n const existingFactory = moduleFactories.get(id)\n if (existingFactory) {\n existingGroupFactory = existingFactory\n break\n }\n }\n const factoryToInstall = existingGroupFactory ?? moduleFactoryFn\n\n let didInstallFactory = false\n for (let j = i; j < end; j++) {\n const id = chunkModules[j] as ModuleId\n if (!moduleFactories.has(id)) {\n if (!didInstallFactory) {\n if (factoryToInstall === moduleFactoryFn) {\n applyModuleFactoryName(moduleFactoryFn)\n }\n didInstallFactory = true\n }\n moduleFactories.set(id, factoryToInstall)\n newModuleId?.(id)\n }\n }\n i = end + 1\n }\n}\n\n/**\n * A pseudo \"fake\" URL object to resolve to its relative path.\n *\n * When UrlRewriteBehavior is set to relative, calls to the `new URL()` will construct url without base using this\n * runtime function to generate context-agnostic urls between different rendering context, i.e ssr / client to avoid\n * hydration mismatch.\n *\n * This is based on webpack's existing implementation:\n * https://github.com/webpack/webpack/blob/87660921808566ef3b8796f8df61bd79fc026108/lib/runtime/RelativeUrlRuntimeModule.js\n */\nconst relativeURL = function relativeURL(this: any, inputUrl: string) {\n const realUrl = new URL(inputUrl, 'x:/')\n const values: Record<string, any> = {}\n for (const key in realUrl) values[key] = (realUrl as any)[key]\n values.href = inputUrl\n values.pathname = inputUrl.replace(/[?#].*/, '')\n values.origin = values.protocol = ''\n values.toString = values.toJSON = (..._args: Array<any>) => inputUrl\n for (const key in values)\n Object.defineProperty(this, key, {\n enumerable: true,\n configurable: true,\n value: values[key],\n })\n}\nrelativeURL.prototype = URL.prototype\ncontextPrototype.U = relativeURL\n\n/**\n * Utility function to ensure all variants of an enum are handled.\n */\nfunction invariant(never: never, computeMessage: (arg: any) => string): never {\n throw new Error(`Invariant: ${computeMessage(never)}`)\n}\n\n/**\n * Constructs an error message for when a module factory is not available.\n */\nfunction factoryNotAvailableMessage(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): string {\n let instantiationReason: string\n switch (sourceType) {\n case SourceType.Runtime:\n instantiationReason = `as a runtime entry of chunk ${sourceData}`\n break\n case SourceType.Parent:\n instantiationReason = `because it was required from module ${sourceData}`\n break\n case SourceType.Update:\n instantiationReason = 'because of an HMR update'\n break\n default:\n invariant(\n sourceType,\n (sourceType) => `Unknown source type: ${sourceType}`\n )\n }\n return `Module ${moduleId} was instantiated ${instantiationReason}, but the module factory is not available.`\n}\n\n/**\n * Returns a `file://` URL under a synthetic directory named after `root`\n * (`ROOT` for the project root), for when the real filesystem path is unknown.\n * The root name and path segments are percent-encoded so the result is always\n * a valid file URI.\n */\nfunction placeholderFileUrl(modulePath: string, root?: string): string {\n return `file:///${encodeURIComponent(root ?? 'ROOT')}/${modulePath\n .split('/')\n .map(encodeURIComponent)\n .join('/')}`\n}\n\n/**\n * A stub function to make `require` available but non-functional in ESM.\n */\nfunction requireStub(_moduleId: ModuleId): never {\n throw new Error('dynamic usage of require is not supported')\n}\ncontextPrototype.z = requireStub\n\n// Make `globalThis` available to the module in a way that cannot be shadowed by a local variable.\ncontextPrototype.g = globalThis\n\ntype ContextConstructor<M> = {\n new (module: Module, exports: Exports): TurbopackBaseContext<M>\n}\n\nfunction applyModuleFactoryName(factory: Function) {\n // Give the module factory a nice name to improve stack traces.\n Object.defineProperty(factory, 'name', {\n value: 'module evaluation',\n })\n}\n"],"names":["SourceType","createModuleWithDirectionFlag","REEXPORTED_OBJECTS","WeakMap","Context","module","exports","m","e","contextPrototype","prototype","hasOwnProperty","Object","toStringTag","Symbol","defineProp","obj","name","options","call","defineProperty","getOverwrittenModule","moduleCache","id","get","undefined","createModuleWithDirection","createModuleObject","set","error","namespaceObject","parents","children","BindingTag_Value","REEXPORT_GROUP_END","esm","bindings","dynamic","value","i","length","propName","tagOrFunction","enumerable","writable","Error","getterFn","setterFn","seal","esmExport","c","s","esmReexport","list","head","start","end","namespace","esmImport","pairs","split","j","appendReexportBinding","S","exportedName","importedName","descriptor","Reflect","getOwnPropertyDescriptor","push","ensureDynamicExports","reexportedObjects","reexportOwning","prop","Proxy","target","deleteProperty","has","ownKeys","keys","key","includes","own","configurable","dynamicExport","object","exportValue","v","exportNamespace","n","createGetter","getProto","getPrototypeOf","__proto__","LEAF_PROTOTYPES","interopEsm","raw","ns","allowExportDefault","defaultLocation","current","getOwnPropertyNames","splice","createNS","args","apply","create","getOrInstantiateModuleFromParent","__esModule","asyncLoader","moduleId","loader","r","bind","A","runtimeRequire","require","require1","t","commonJsRequire","parseRequest","request","hashIndex","indexOf","substring","queryIndex","moduleContext","map","code","resolve","import","f","getChunkPath","chunkData","path","installCompressedModuleFactories","chunkModules","offset","moduleFactories","newModuleId","strictFactories","Array","isArray","moduleFactoryFn","existingGroupFactory","existingFactory","factoryToInstall","didInstallFactory","applyModuleFactoryName","relativeURL","inputUrl","realUrl","URL","values","href","pathname","replace","origin","protocol","toString","toJSON","_args","U","invariant","never","computeMessage","factoryNotAvailableMessage","sourceType","sourceData","instantiationReason","placeholderFileUrl","modulePath","root","encodeURIComponent","join","requireStub","_moduleId","z","g","globalThis","factory"],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,6CAA6C;AAC7C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"map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/async-module.ts"],"sourcesContent":["/// <reference path=\"./runtime-types.d.ts\" />\n/// <reference path=\"./runtime-utils.ts\" />\n\n/**\n * Top-level-await / async-module machinery. This is only included in the runtime\n * when the module graph actually contains an async module (a module with\n * top-level await, or one that transitively depends on one). When no async\n * module is present, the chunk items never reference `__turbopack_context__.a`,\n * so this whole file can be omitted.\n *\n * everything below is adapted from webpack\n * https://github.com/webpack/webpack/blob/6be4065ade1e252c1d8dcba4af0f43e32af1bdc1/lib/runtime/AsyncModuleRuntimeModule.js#L13\n */\n\nconst turbopackQueues = Symbol('turbopack queues')\nconst turbopackExports = Symbol('turbopack exports')\nconst turbopackError = Symbol('turbopack error')\n\nconst enum QueueStatus {\n Unknown = -1,\n Unresolved = 0,\n Resolved = 1,\n}\n\ntype AsyncQueueFn = (() => void) & { queueCount: number }\ntype AsyncQueue = AsyncQueueFn[] & {\n status: QueueStatus\n}\n\ntype Dep = Exports | AsyncModulePromise | Promise<Exports>\n\ntype AsyncModuleExt = {\n [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => void\n [turbopackExports]: Exports\n [turbopackError]?: any\n}\n\ntype AsyncModulePromise<T = Exports> = Promise<T> & AsyncModuleExt\n\nfunction isPromise<T = any>(maybePromise: any): maybePromise is Promise<T> {\n return (\n maybePromise != null &&\n typeof maybePromise === 'object' &&\n 'then' in maybePromise &&\n typeof maybePromise.then === 'function'\n )\n}\n\nfunction isAsyncModuleExt<T extends {}>(obj: T): obj is AsyncModuleExt & T {\n return turbopackQueues in obj\n}\n\nfunction createPromise<T>() {\n let resolve: (value: T | PromiseLike<T>) => void\n let reject: (reason?: any) => void\n\n const promise = new Promise<T>((res, rej) => {\n reject = rej\n resolve = res\n })\n\n return {\n promise,\n resolve: resolve!,\n reject: reject!,\n }\n}\n\nfunction resolveQueue(queue?: AsyncQueue) {\n if (queue && queue.status !== QueueStatus.Resolved) {\n queue.status = QueueStatus.Resolved\n queue.forEach((fn) => fn.queueCount--)\n queue.forEach((fn) => (fn.queueCount-- ? fn.queueCount++ : fn()))\n }\n}\n\nfunction wrapDeps(deps: Dep[]): AsyncModuleExt[] {\n return deps.map((dep): AsyncModuleExt => {\n if (dep !== null && typeof dep === 'object') {\n if (isAsyncModuleExt(dep)) return dep\n if (isPromise(dep)) {\n const queue: AsyncQueue = Object.assign([], {\n status: QueueStatus.Unresolved,\n })\n\n const obj: AsyncModuleExt = {\n [turbopackExports]: {},\n [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => fn(queue),\n }\n\n dep.then(\n (res) => {\n obj[turbopackExports] = res\n resolveQueue(queue)\n },\n (err) => {\n obj[turbopackError] = err\n resolveQueue(queue)\n }\n )\n\n return obj\n }\n }\n\n return {\n [turbopackExports]: dep,\n [turbopackQueues]: () => {},\n }\n })\n}\n\nfunction asyncModule(\n this: TurbopackBaseContext<Module>,\n body: (\n handleAsyncDependencies: (\n deps: Dep[]\n ) => Exports[] | Promise<() => Exports[]>,\n asyncResult: (err?: any) => void\n ) => void,\n hasAwait: boolean\n) {\n const module = this.m\n const queue: AsyncQueue | undefined = hasAwait\n ? Object.assign([], { status: QueueStatus.Unknown })\n : undefined\n\n const depQueues: Set<AsyncQueue> = new Set()\n\n const { resolve, reject, promise: rawPromise } = createPromise<Exports>()\n\n const promise: AsyncModulePromise = Object.assign(rawPromise, {\n [turbopackExports]: module.exports,\n [turbopackQueues]: (fn) => {\n queue && fn(queue)\n depQueues.forEach(fn)\n promise['catch'](() => {})\n },\n } satisfies AsyncModuleExt)\n\n const attributes: PropertyDescriptor = {\n get(): any {\n return promise\n },\n set(v: any) {\n // Calling `esmExport` leads to this.\n if (v !== promise) {\n promise[turbopackExports] = v\n }\n },\n }\n\n Object.defineProperty(module, 'exports', attributes)\n Object.defineProperty(module, 'namespaceObject', attributes)\n\n function handleAsyncDependencies(deps: Dep[]) {\n const currentDeps = wrapDeps(deps)\n\n const getResult = () =>\n currentDeps.map((d) => {\n if (d[turbopackError]) throw d[turbopackError]\n return d[turbopackExports]\n })\n\n const { promise, resolve } = createPromise<() => Exports[]>()\n\n const fn: AsyncQueueFn = Object.assign(() => resolve(getResult), {\n queueCount: 0,\n })\n\n function fnQueue(q: AsyncQueue) {\n if (q !== queue && !depQueues.has(q)) {\n depQueues.add(q)\n if (q && q.status === QueueStatus.Unresolved) {\n fn.queueCount++\n q.push(fn)\n }\n }\n }\n\n currentDeps.map((dep) => dep[turbopackQueues](fnQueue))\n\n return fn.queueCount ? promise : getResult()\n }\n\n function asyncResult(err?: any) {\n if (err) {\n reject((promise[turbopackError] = err))\n } else {\n resolve(promise[turbopackExports])\n }\n\n resolveQueue(queue)\n }\n\n body(handleAsyncDependencies, asyncResult)\n\n if (queue && queue.status === QueueStatus.Unknown) {\n queue.status = QueueStatus.Unresolved\n }\n}\ncontextPrototype.a = asyncModule\n"],"names":["turbopackQueues","Symbol","turbopackExports","turbopackError","isPromise","maybePromise","then","isAsyncModuleExt","obj","createPromise","resolve","reject","promise","Promise","res","rej","resolveQueue","queue","status","forEach","fn","queueCount","wrapDeps","deps","map","dep","Object","assign","err","asyncModule","body","hasAwait","module","m","undefined","depQueues","Set","rawPromise","exports","attributes","get","set","v","defineProperty","handleAsyncDependencies","currentDeps","getResult","d","fnQueue","q","has","add","push","asyncResult","contextPrototype","a"],"mappings":"AAAA,6CAA6C;AAC7C,2CAA2C;AAE3C;;;;;;;;;CASC,GAED,MAAMA,kBAAkBC,OAAO;AAC/B,MAAMC,mBAAmBD,OAAO;AAChC,MAAME,iBAAiBF,OAAO;AAuB9B,SAASG,UAAmBC,YAAiB;IAC3C,OACEA,gBAAgB,QAChB,OAAOA,iBAAiB,YACxB,UAAUA,gBACV,OAAOA,aAAaC,IAAI,KAAK;AAEjC;AAEA,SAASC,iBAA+BC,GAAM;IAC5C,OAAOR,mBAAmBQ;AAC5B;AAEA,SAASC;IACP,IAAIC;IACJ,IAAIC;IAEJ,MAAMC,UAAU,IAAIC,QAAW,CAACC,KAA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IAEA,SAASO,YAAYzB,GAAS;QAC5B,IAAIA,KAAK;YACPjB,OAAQC,OAAO,CAACT,eAAe,GAAGyB;QACpC,OAAO;YACLlB,QAAQE,OAAO,CAACV,iBAAiB;QACnC;QAEAc,aAAaC;IACf;IAEAa,KAAKc,yBAAyBS;IAE9B,IAAIpC,SAASA,MAAMC,MAAM,SAA0B;QACjDD,MAAMC,MAAM,GAlLD;IAmLb;AACF;AACAoC,iBAAiBC,CAAC,GAAG1B","ignoreList":[0]}},
7
- {"offset": {"line": 783, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared-node/base-externals-utils.ts"],"sourcesContent":["/// <reference path=\"../shared/runtime/runtime-utils.ts\" />\n\n/// A 'base' utilities to support runtime can have externals.\n/// Currently this is for node.js / edge runtime both.\n/// If a fn requires node.js specific behavior, it should be placed in `node-external-utils` instead.\n\nasync function externalImport(id: DependencySpecifier) {\n let raw\n try {\n raw = await import(id)\n } catch (err) {\n // TODO(alexkirsz) This can happen when a client-side module tries to load\n // an external module we don't provide a shim for (e.g. querystring, url).\n // For now, we fail semi-silently, but in the future this should be a\n // compilation error.\n throw new Error(`Failed to load external module ${id}: ${err}`)\n }\n\n if (raw && raw.__esModule && raw.default && 'default' in raw.default) {\n return interopEsm(raw.default, createNS(raw), true)\n }\n\n return raw\n}\ncontextPrototype.y = externalImport\n\nfunction externalRequire(\n id: ModuleId,\n thunk: () => any,\n esm: boolean = false\n): Exports | EsmNamespaceObject {\n let raw\n try {\n raw = thunk()\n } catch (err) {\n // TODO(alexkirsz) This can happen when a client-side module tries to load\n // an external module we don't provide a shim for (e.g. querystring, url).\n // For now, we fail semi-silently, but in the future this should be a\n // compilation error.\n throw new Error(`Failed to load external module ${id}: ${err}`)\n }\n\n if (!esm || raw.__esModule) {\n return raw\n }\n\n return interopEsm(raw, createNS(raw), true)\n}\n\nexternalRequire.resolve = (\n id: string,\n options?: {\n paths?: string[]\n }\n) => {\n return require.resolve(id, options)\n}\ncontextPrototype.x = externalRequire\n"],"names":["externalImport","id","raw","err","Error","__esModule","default","interopEsm","createNS","contextPrototype","y","externalRequire","thunk","esm","resolve","options","require","x"],"mappings":"AAAA,2DAA2D;AAE3D,6DAA6D;AAC7D,sDAAsD;AACtD,qGAAqG;AAErG,eAAeA,eAAeC,EAAuB;IACnD,IAAIC;IACJ,IAAI;QACFA,MAAM,MAAM,MAAM,CAACD;IACrB,EAAE,OAAOE,KAAK;QACZ,0EAA0E;QAC1E,0EAA0E;QAC1E,qEAAqE;QACrE,qBAAqB;QACrB,MAAM,IAAIC,MAAM,CAAC,+BAA+B,EAAEH,GAAG,EAAE,EAAEE,KAAK;IAChE;IAEA,IAAID,OAAOA,IAAIG,UAAU,IAAIH,IAAII,OAAO,IAAI,aAAaJ,IAAII,OAAO,EAAE;QACpE,OAAOC,WAAWL,IAAII,OAAO,EAAEE,SAASN,MAAM;IAChD;IAEA,OAAOA;AACT;AACAO,iBAAiBC,CAAC,GAAGV;AAErB,SAASW,gBACPV,EAAY,EACZW,KAAgB,EAChBC,MAAe,KAAK;IAEpB,IAAIX;IACJ,IAAI;QACFA,MAAMU;IACR,EAAE,OAAOT,KAAK;QACZ,0EAA0E;QAC1E,0EAA0E;QAC1E,qEAAqE;QACrE,qBAAqB;QACrB,MAAM,IAAIC,MAAM,CAAC,+BAA+B,EAAEH,GAAG,EAAE,EAAEE,KAAK;IAChE;IAEA,IAAI,CAACU,OAAOX,IAAIG,UAAU,EAAE;QAC1B,OAAOH;IACT;IAEA,OAAOK,WAAWL,KAAKM,SAASN,MAAM;AACxC;AAEAS,gBAAgBG,OAAO,GAAG,CACxBb,IACAc;IAIA,OAAOC,QAAQF,OAAO,CAACb,IAAIc;AAC7B;AACAN,iBAAiBQ,CAAC,GAAGN","ignoreList":[0]}},
8
- {"offset": {"line": 824, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared-node/node-externals-utils.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\ndeclare var RUNTIME_PUBLIC_PATH: string\ndeclare var RELATIVE_ROOT_PATH: string\ndeclare var ASSET_PREFIX: string\n\nconst path = require('path')\n\nconst relativePathToRuntimeRoot = path.relative(RUNTIME_PUBLIC_PATH, '.')\n// Compute the relative path to the `distDir`.\nconst relativePathToDistRoot = path.join(\n relativePathToRuntimeRoot,\n RELATIVE_ROOT_PATH\n)\nconst RUNTIME_ROOT = path.resolve(__filename, relativePathToRuntimeRoot)\n// Compute the absolute path to the root, by stripping distDir from the absolute path to this file.\nconst ABSOLUTE_ROOT = path.resolve(__filename, relativePathToDistRoot)\n\n/**\n * Returns an absolute path to the given module path.\n * Module path should be relative, either path to a file or a directory.\n *\n * This fn allows to calculate an absolute path for some global static values, such as\n * `__dirname` or `import.meta.url` that Turbopack will not embeds in compile time.\n * See ImportMetaBinding::code_generation for the usage.\n */\nfunction resolveAbsolutePath(modulePath?: string): string {\n if (modulePath) {\n return path.join(ABSOLUTE_ROOT, modulePath)\n }\n return ABSOLUTE_ROOT\n}\nContext.prototype.P = resolveAbsolutePath\n\n/**\n * Returns an absolute `file://` URL for the given module path, which is\n * relative to the project root or the named `root`.\n *\n * Uses `url.pathToFileURL` so that the resulting URL is a valid file URI on\n * all platforms (forward slashes on Windows, drive letters handled\n * correctly, path segments URL-encoded).\n *\n * The location of a named `root` isn't known at runtime (the output may have\n * been moved away from the sources), so this returns a placeholder URL for it.\n */\nfunction resolveFileUrl(modulePath: string, root?: string): string {\n if (root !== undefined) {\n return placeholderFileUrl(modulePath, root)\n }\n return require('url').pathToFileURL(resolveAbsolutePath(modulePath)).href\n}\nContext.prototype.F = resolveFileUrl\n"],"names":["path","require","relativePathToRuntimeRoot","relative","RUNTIME_PUBLIC_PATH","relativePathToDistRoot","join","RELATIVE_ROOT_PATH","RUNTIME_ROOT","resolve","__filename","ABSOLUTE_ROOT","resolveAbsolutePath","modulePath","Context","prototype","P","resolveFileUrl","root","undefined","placeholderFileUrl","pathToFileURL","href","F"],"mappings":"AAAA,oDAAoD,GAMpD,MAAMA,OAAOC,QAAQ;AAErB,MAAMC,4BAA4BF,KAAKG,QAAQ,CAACC,qBAAqB;AACrE,8CAA8C;AAC9C,MAAMC,yBAAyBL,KAAKM,IAAI,CACtCJ,2BACAK;AAEF,MAAMC,eAAeR,KAAKS,OAAO,CAACC,YAAYR;AAC9C,mGAAmG;AACnG,MAAMS,gBAAgBX,KAAKS,OAAO,CAACC,YAAYL;AAE/C;;;;;;;CAOC,GACD,SAASO,oBAAoBC,UAAmB;IAC9C,IAAIA,YAAY;QACd,OAAOb,KAAKM,IAAI,CAACK,eAAeE;IAClC;IACA,OAAOF;AACT;AACAG,QAAQC,SAAS,CAACC,CAAC,GAAGJ;AAEtB;;;;;;;;;;CAUC,GACD,SAASK,eAAeJ,UAAkB,EAAEK,IAAa;IACvD,IAAIA,SAASC,WAAW;QACtB,OAAOC,mBAAmBP,YAAYK;IACxC;IACA,OAAOjB,QAAQ,OAAOoB,aAAa,CAACT,oBAAoBC,aAAaS,IAAI;AAC3E;AACAR,QAAQC,SAAS,CAACQ,CAAC,GAAGN","ignoreList":[0]}},
9
- {"offset": {"line": 862, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/nodejs/runtime/runtime-base.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"../../shared/runtime/runtime-utils.ts\" />\n/// <reference path=\"../../shared-node/base-externals-utils.ts\" />\n/// <reference path=\"../../shared-node/node-externals-utils.ts\" />\n/// <reference path=\"./nodejs-globals.d.ts\" />\n\n/**\n * Base Node.js runtime shared between production and development.\n * Contains chunk loading, module caching, and other non-HMR functionality.\n */\n\nprocess.env.TURBOPACK = '1'\n\nconst url = require('url') as typeof import('url')\n\nconst moduleFactories: ModuleFactories = new Map()\nconst moduleCache: ModuleCache<Module> = new Map()\n\n/**\n * Returns an absolute path to the given module's id.\n */\nfunction resolvePathFromModule(\n this: TurbopackBaseContext<Module>,\n moduleId: string\n): string {\n const exported = this.r(moduleId)\n const exportedPath = exported?.default ?? exported\n if (typeof exportedPath !== 'string') {\n return exported as any\n }\n\n const strippedAssetPrefix = exportedPath.slice(ASSET_PREFIX.length)\n const resolved = path.resolve(RUNTIME_ROOT, strippedAssetPrefix)\n\n return url.pathToFileURL(resolved).href\n}\n\n/**\n * Exports a URL value. No suffix is added in Node.js runtime.\n */\nfunction exportUrl(\n this: TurbopackBaseContext<Module>,\n urlValue: string,\n id: ModuleId | undefined\n) {\n exportValue.call(this, urlValue, id)\n}\n\nfunction loadRuntimeChunk(sourcePath: ChunkPath, chunkData: ChunkData): void {\n if (typeof chunkData === 'string') {\n loadRuntimeChunkPath(sourcePath, chunkData)\n } else {\n loadRuntimeChunkPath(sourcePath, chunkData.path)\n }\n}\n\nconst loadedChunks = new Set<ChunkPath>()\nconst unsupportedLoadChunk = Promise.resolve(undefined)\nconst loadedChunk: Promise<void> = Promise.resolve(undefined)\nconst chunkCache = new Map<ChunkPath, Promise<void>>()\n\nfunction clearChunkCache() {\n chunkCache.clear()\n loadedChunks.clear()\n}\n\nfunction loadRuntimeChunkPath(\n sourcePath: ChunkPath,\n chunkPath: ChunkPath\n): void {\n if (!isJs(chunkPath)) {\n // We only support loading JS chunks in Node.js.\n // This branch can be hit when trying to load a CSS chunk.\n return\n }\n\n if (loadedChunks.has(chunkPath)) {\n return\n }\n\n try {\n const resolved = path.resolve(RUNTIME_ROOT, chunkPath)\n const chunkModules: CompressedModuleFactories = require(resolved)\n installCompressedModuleFactories(chunkModules, 0, moduleFactories)\n loadedChunks.add(chunkPath)\n } catch (cause) {\n let errorMessage = `Failed to load chunk ${chunkPath}`\n\n if (sourcePath) {\n errorMessage += ` from runtime for chunk ${sourcePath}`\n }\n\n const error = new Error(errorMessage, { cause })\n error.name = 'ChunkLoadError'\n throw error\n }\n}\n\nfunction loadChunkAsync<TModule extends Module>(\n this: TurbopackBaseContext<TModule>,\n chunkData: ChunkData\n): Promise<void> {\n const chunkPath = typeof chunkData === 'string' ? chunkData : chunkData.path\n if (!isJs(chunkPath)) {\n // We only support loading JS chunks in Node.js.\n // This branch can be hit when trying to load a CSS chunk.\n return unsupportedLoadChunk\n }\n\n let entry = chunkCache.get(chunkPath)\n if (entry === undefined) {\n try {\n // resolve to an absolute path to simplify `require` handling\n const resolved = path.resolve(RUNTIME_ROOT, chunkPath)\n // TODO: consider switching to `import()` to enable concurrent chunk loading and async file io\n // However this is incompatible with hot reloading (since `import` doesn't use the require cache)\n const chunkModules: CompressedModuleFactories = require(resolved)\n installCompressedModuleFactories(chunkModules, 0, moduleFactories)\n entry = loadedChunk\n } catch (cause) {\n const errorMessage = `Failed to load chunk ${chunkPath} from module ${this.m.id}`\n const error = new Error(errorMessage, { cause })\n error.name = 'ChunkLoadError'\n\n // Cache the failure promise, future requests will also get this same rejection\n entry = Promise.reject(error)\n }\n chunkCache.set(chunkPath, entry)\n }\n // TODO: Return an instrumented Promise that React can use instead of relying on referential equality.\n return entry\n}\ncontextPrototype.l = loadChunkAsync\n\nfunction loadChunkAsyncByUrl<TModule extends Module>(\n this: TurbopackBaseContext<TModule>,\n chunkUrl: string\n) {\n const path = url.fileURLToPath(new URL(chunkUrl, RUNTIME_ROOT)) as ChunkPath\n return loadChunkAsync.call(this, path)\n}\ncontextPrototype.L = loadChunkAsyncByUrl\n\n// Shared runtime primitive: the root that on-disk chunk paths are resolved\n// against. Used by the bundled wasm helper (exposed as `__turbopack_runtime_root__`).\ncontextPrototype.w = RUNTIME_ROOT\n\nconst regexJsUrl = /\\.js(?:\\?[^#]*)?(?:#.*)?$/\n/**\n * Checks if a given path/URL ends with .js, optionally followed by ?query or #fragment.\n */\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\n return regexJsUrl.test(chunkUrlOrPath)\n}\n"],"names":["process","env","TURBOPACK","url","require","moduleFactories","Map","moduleCache","resolvePathFromModule","moduleId","exported","r","exportedPath","default","strippedAssetPrefix","slice","ASSET_PREFIX","length","resolved","path","resolve","RUNTIME_ROOT","pathToFileURL","href","exportUrl","urlValue","id","exportValue","call","loadRuntimeChunk","sourcePath","chunkData","loadRuntimeChunkPath","loadedChunks","Set","unsupportedLoadChunk","Promise","undefined","loadedChunk","chunkCache","clearChunkCache","clear","chunkPath","isJs","has","chunkModules","installCompressedModuleFactories","add","cause","errorMessage","error","Error","name","loadChunkAsync","entry","get","m","reject","set","contextPrototype","l","loadChunkAsyncByUrl","chunkUrl","path1","fileURLToPath","URL","L","w","regexJsUrl","chunkUrlOrPath","test"],"mappings":"AAAA,oDAAoD,GAEpD,8DAA8D;AAC9D,kEAAkE;AAClE,kEAAkE;AAClE,8CAA8C;AAE9C;;;CAGC,GAEDA,QAAQC,GAAG,CAACC,SAAS,GAAG;AAExB,MAAMC,MAAMC,QAAQ;AAEpB,MAAMC,kBAAmC,IAAIC;AAC7C,MAAMC,cAAmC,IAAID;AAE7C;;CAEC,GACD,SAASE,sBAEPC,QAAgB;IAEhB,MAAMC,WAAW,IAAI,CAACC,CAAC,CAACF;IACxB,MAAMG,eAAeF,UAAUG,WAAWH;IAC1C,IAAI,OAAOE,iBAAiB,UAAU;QACpC,OAAOF;IACT;IAEA,MAAMI,sBAAsBF,aAAaG,KAAK,CAACC,aAAaC,MAAM;IAClE,MAAMC,WAAWC,KAAKC,OAAO,CAACC,cAAcP;IAE5C,OAAOX,IAAImB,aAAa,CAACJ,UAAUK,IAAI;AACzC;AAEA;;CAEC,GACD,SAASC,UAEPC,QAAgB,EAChBC,EAAwB;IAExBC,YAAYC,IAAI,CAAC,IAAI,EAAEH,UAAUC;AACnC;AAEA,SAASG,iBAAiBC,UAAqB,EAAEC,SAAoB;IACnE,IAAI,OAAOA,cAAc,UAAU;QACjCC,qBAAqBF,YAAYC;IACnC,OAAO;QACLC,qBAAqBF,YAAYC,UAAUZ,IAAI;IACjD;AACF;AAEA,MAAMc,eAAe,IAAIC;AACzB,MAAMC,uBAAuBC,QAAQhB,OAAO,CAACiB;AAC7C,MAAMC,cAA6BF,QAAQhB,OAAO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C,MAAMF,cAAc;gBAAED;YAAM;YAC9CE,MAAME,IAAI,GAAG;YAEb,+EAA+E;YAC/EE,QAAQlB,QAAQqB,MAAM,CAACP;QACzB;QACAX,WAAWmB,GAAG,CAAChB,WAAWY;IAC5B;IACA,sGAAsG;IACtG,OAAOA;AACT;AACAK,iBAAiBC,CAAC,GAAGP;AAErB,SAASQ,oBAEPC,QAAgB;IAEhB,MAAMC,QAAO5D,IAAI6D,aAAa,CAAC,IAAIC,IAAIH,UAAUzC;IACjD,OAAOgC,eAAezB,IAAI,CAAC,IAAI,EAAEmC;AACnC;AACAJ,iBAAiBO,CAAC,GAAGL;AAErB,2EAA2E;AAC3E,sFAAsF;AACtFF,iBAAiBQ,CAAC,GAAG9C;AAErB,MAAM+C,aAAa;AACnB;;CAEC,GACD,SAASzB,KAAK0B,cAAoC;IAChD,OAAOD,WAAWE,IAAI,CAACD;AACzB","ignoreList":[0]}},
10
- {"offset": {"line": 977, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/nodejs/runtime/build-base.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"./runtime-base.ts\" />\n\n/**\n * Production Node.js runtime.\n * Uses ModuleWithDirection and simple module instantiation without HMR support.\n */\n\n// moduleCache and moduleFactories are declared in runtime-base.ts\n\n// this is read in runtime-utils.ts so it creates a module with direction for hmr\ncreateModuleWithDirectionFlag = true\n\ninterface TurbopackNodeBuildContext\n extends TurbopackBaseContext<ModuleWithDirection> {\n R: ResolvePathFromModule\n x: ExternalRequire\n y: ExternalImport\n C: typeof clearChunkCache\n}\n\nconst nodeContextPrototype = Context.prototype as TurbopackNodeBuildContext\n\nnodeContextPrototype.q = exportUrl\nnodeContextPrototype.M = moduleFactories\n// Cast moduleCache to ModuleWithDirection for production mode\nnodeContextPrototype.c = moduleCache as ModuleCache<ModuleWithDirection>\nnodeContextPrototype.R = resolvePathFromModule\nnodeContextPrototype.C = clearChunkCache\n\nfunction instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): ModuleWithDirection {\n const moduleFactory = moduleFactories.get(id)\n if (typeof moduleFactory !== 'function') {\n // This can happen if modules incorrectly handle HMR disposes/updates,\n // e.g. when they keep a `setTimeout` around which still executes old code\n // and contains e.g. a `require(\"something\")` call.\n throw new Error(factoryNotAvailableMessage(id, sourceType, sourceData))\n }\n\n const module: ModuleWithDirection = createModuleWithDirection(id)\n const exports = module.exports\n moduleCache.set(id, module)\n\n const context =\n new (Context as any as ContextConstructor<ModuleWithDirection>)(\n module,\n exports\n )\n // NOTE(alexkirsz) This can fail when the module encounters a runtime error.\n try {\n moduleFactory(context, module, exports)\n } catch (error) {\n module.error = error as any\n throw error\n }\n\n ;(module as any).loaded = true\n if (module.namespaceObject && module.exports !== module.namespaceObject) {\n // in case of a circular dependency: cjs1 -> esm2 -> cjs1\n interopEsm(module.exports, module.namespaceObject)\n }\n\n return module\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore\nfunction getOrInstantiateModuleFromParent(\n id: ModuleId,\n sourceModule: ModuleWithDirection\n): ModuleWithDirection {\n const module = moduleCache.get(id) as ModuleWithDirection | undefined\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\n/**\n * Instantiates a runtime module.\n */\nfunction instantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): ModuleWithDirection {\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it as a runtime module if it is not cached.\n */\n// @ts-ignore TypeScript doesn't separate this module space from the browser runtime\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): ModuleWithDirection {\n const module = moduleCache.get(moduleId) as ModuleWithDirection | undefined\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n return instantiateRuntimeModule(chunkPath, moduleId)\n}\n\nmodule.exports = (sourcePath: ChunkPath) => ({\n m: (id: ModuleId) => getOrInstantiateRuntimeModule(sourcePath, id),\n c: (chunkData: ChunkData) => loadRuntimeChunk(sourcePath, chunkData),\n})\n"],"names":["createModuleWithDirectionFlag","nodeContextPrototype","Context","prototype","q","exportUrl","M","moduleFactories","c","moduleCache","R","resolvePathFromModule","C","clearChunkCache","instantiateModule","id","sourceType","sourceData","moduleFactory","get","Error","factoryNotAvailableMessage","module1","createModuleWithDirection","exports","set","context","error","loaded","namespaceObject","interopEsm","getOrInstantiateModuleFromParent","sourceModule","SourceType","Parent","instantiateRuntimeModule","chunkPath","moduleId","Runtime","getOrInstantiateRuntimeModule","module","sourcePath","m","chunkData","loadRuntimeChunk"],"mappings":"AAAA,oDAAoD,GAEpD,0CAA0C;AAE1C;;;CAGC,GAED,kEAAkE;AAElE,iFAAiF;AACjFA,gCAAgC;AAUhC,MAAMC,uBAAuBC,QAAQC,SAAS;AAE9CF,qBAAqBG,CAAC,GAAGC;AACzBJ,qBAAqBK,CAAC,GAAGC;AACzB,8DAA8D;AAC9DN,qBAAqBO,CAAC,GAAGC;AACzBR,qBAAqBS,CAAC,GAAGC;AACzBV,qBAAqBW,CAAC,GAAGC;AAEzB,SAASC,kBACPC,EAAY,EACZC,UAAsB,EACtBC,UAAsB;IAEtB,MAAMC,gBAAgBX,gBAAgBY,GAAG,CAACJ;IAC1C,IAAI,OAAOG,kBAAkB,YAAY;QACvC,sEAAsE;QACtE,0EAA0E;QAC1E,mDAAmD;QACnD,MAAM,IAAIE,MAAMC,2BAA2BN,IAAIC,YAAYC;IAC7D;IAEA,MAAMK,UAA8BC,0BAA0BR;IAC9D,MAAMS,UAAUF,QAAOE,OAAO;IAC9Bf,YAAYgB,GAAG,CAACV,IAAIO;IAEpB,MAAMI,UACJ,IAAKxB,QACHoB,SACAE;IAEJ,4EAA4E;IAC5E,IAAI;QACFN,cAAcQ,SAASJ,SAAQE;IACjC,EAAE,OAAOG,OAAO;QACdL,QAAOK,KAAK,GAAGA;QACf,MAAMA;IACR;;IAEEL,QAAeM,MAAM,GAAG;IAC1B,IAAIN,QAAOO,eAAe,IAAIP,QAAOE,OAAO,KAAKF,QAAOO,eAAe,EAAE;QACvE,yDAAyD;QACzDC,WAAWR,QAAOE,OAAO,EAAEF,QAAOO,eAAe;IACnD;IAEA,OAAOP;AACT;AAEA;;CAEC,GACD,aAAa;AACb,SAASS,iCACPhB,EAAY,EACZiB,YAAiC;IAEjC,MAAMV,UAASb,YAAYU,GAAG,CAACJ;IAE/B,IAAIO,SAAQ;QACV,IAAIA,QAAOK,KAAK,EAAE;YAChB,MAAML,QAAOK,KAAK;QACpB;QAEA,OAAOL;IACT;IAEA,OAAOR,kBAAkBC,IAAIkB,WAAWC,MAAM,EAAEF,aAAajB,EAAE;AACjE;AAEA;;CAEC,GACD,SAASoB,yBACPC,SAAoB,EACpBC,QAAkB;IAElB,OAAOvB,kBAAkBuB,UAAUJ,WAAWK,OAAO,EAAEF;AACzD;AAEA;;CAEC,GACD,oFAAoF;AACpF,SAASG,8BACPH,SAAoB,EACpBC,QAAkB;IAElB,MAAMf,UAASb,YAAYU,GAAG,CAACkB;IAE/B,IAAIf,SAAQ;QACV,IAAIA,QAAOK,KAAK,EAAE;YAChB,MAAML,QAAOK,KAAK;QACpB;QACA,OAAOL;IACT;IAEA,OAAOa,yBAAyBC,WAAWC;AAC7C;AAEAG,OAAOhB,OAAO,GAAG,CAACiB,aAA0B,CAAC;QAC3CC,GAAG,CAAC3B,KAAiBwB,8BAA8BE,YAAY1B;QAC/DP,GAAG,CAACmC,YAAyBC,iBAAiBH,YAAYE;IAC5D,CAAC","ignoreList":[0]}}]
11
- }
 
 
 
 
 
 
 
 
 
 
 
 
e-commerce/.next/build/chunks/node_modules_20v-8wlfss9m1._.js DELETED
The diff for this file is too large to render. See raw diff
 
e-commerce/.next/build/chunks/node_modules_20v-8wlfss9m1._.js.map DELETED
The diff for this file is too large to render. See raw diff
 
e-commerce/.next/build/chunks/pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js DELETED
@@ -1,6 +0,0 @@
1
- var R=require("./[turbopack]_runtime.js")("chunks/pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js")
2
- R.c("chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js")
3
- R.c("chunks/[root-of-the-server]__05i36w1t4lzaf._.js")
4
- R.m("[turbopack-node]/child_process/globals.ts [postcss] (ecmascript)")
5
- R.m("[turbopack-node]/child_process/evaluate.ts/evaluate.js { INNER => \"[turbopack-node]/transforms/postcss.ts?config=[project]/postcss.config.mjs { CONFIG => \\\"[project]/postcss.config.mjs [postcss] (ecmascript)\\\" } [postcss] (ecmascript)\", RUNTIME => \"[turbopack-node]/child_process/evaluate.ts [postcss] (ecmascript)\" } [postcss] (ecmascript)")
6
- module.exports=R.m("[turbopack-node]/child_process/evaluate.ts/evaluate.js { INNER => \"[turbopack-node]/transforms/postcss.ts?config=[project]/postcss.config.mjs { CONFIG => \\\"[project]/postcss.config.mjs [postcss] (ecmascript)\\\" } [postcss] (ecmascript)\", RUNTIME => \"[turbopack-node]/child_process/evaluate.ts [postcss] (ecmascript)\" } [postcss] (ecmascript)").exports
 
 
 
 
 
 
 
e-commerce/.next/build/chunks/pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js.map DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sections": []
5
- }
 
 
 
 
 
 
e-commerce/.next/build/package.json DELETED
@@ -1 +0,0 @@
1
- {"type": "commonjs"}
 
 
e-commerce/.next/cache/.previewinfo DELETED
@@ -1 +0,0 @@
1
- {"previewModeId":"41fc763c7733ec1168a8c7e9d4fd7e73","previewModeSigningKey":"38431740dc5666173946fce047dee2efb4033f4b4e352a64dd8bc674fc96c622","previewModeEncryptionKey":"1fa0004ccfdbef1c4933a09c2fe6ed913dd03d87133748c5a2dad1abd0eeabbf","expireAt":1793081940851}
 
 
e-commerce/.next/cache/.rscinfo DELETED
@@ -1 +0,0 @@
1
- {"encryption.key":"AJc4669gIfxOupo1Hr+pFLrX0xLM/ZgF9UQfYWI/ceI=","encryption.expire_at":1793081940839}
 
 
e-commerce/.next/cache/.tsbuildinfo DELETED
The diff for this file is too large to render. See raw diff
 
e-commerce/.next/cache/_events_551279_aae0d5938ad89b57.json DELETED
@@ -1 +0,0 @@
1
- [{"eventName":"NEXT_CLI_SESSION_STOPPED","payload":{"nextVersion":"16.4.0","nodeVersion":"v24.16.0","cliCommand":"dev","durationMilliseconds":2400,"turboFlag":true,"pagesDir":false,"appDir":true,"isRspack":false}}]
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000027.sst DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7344e0fff5c42861f11fe6bb53ea7b50097c165479624e7584648f1b307a4e8a
3
- size 1671021
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000032.sst DELETED
Binary file (441 Bytes)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000033.meta DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0a4956d2847d07894822267069149788280919f30c1c3e8b04b54b411b369558
3
- size 299233
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000044.sst DELETED
Binary file (81 Bytes)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000048.meta DELETED
Binary file (6.09 kB)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000080.sst DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b385fa9ec529baf3ec1d7f2b588496f04f649288e9509e8e1323af4240c4865d
3
- size 382305
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000083.meta DELETED
Binary file (96.5 kB)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000094.sst DELETED
Binary file (201 Bytes)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000098.meta DELETED
Binary file (1.78 kB)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000101.sst DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:40232c0c29933cc6dc768e4a7dc4414bd1026cec039be2081dcaeecf72bf1179
3
- size 528113
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000106.meta DELETED
Binary file (96.5 kB)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000109.sst DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2a3dc8a44537a67a5bb63a421a009bbfe0f8d6086e4b2fa653b36f5c3c86fa7a
3
- size 21914298
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000110.sst DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:976cc7de5005df7077424523ef7dc1ff5147914c6dc8986c2c4585cb6d0f0d50
3
- size 20084391
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000114.meta DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:02a0ced20561b70003eb4aae69708270b84b17f84f4393202338817009609c15
3
- size 299172
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000116.sst DELETED
Binary file (14.4 kB)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000121.meta DELETED
Binary file (24.1 kB)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000177.sst DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d5f05725b1c13cc523752c4bc1260ce46b71f1e3b12c49c353ee3afbaf99b841
3
- size 8938780
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000178.sst DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:358a7306bfee7ec5fa728516cbd56ba8b95e21c6af34f20f584ebae51e899737
3
- size 3237929
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000179.meta DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b93d5499fee97e843318e7d4d4739a0f4c2687c1993baf8dcb26beb626807574
3
- size 373944
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000182.sst DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:445e3ed79a660fa8a22340ebbb29b2b960f785c0710b1e76be3cac7d6c507009
3
- size 413783
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000186.meta DELETED
Binary file (42.5 kB)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000187.sst DELETED
Binary file (38 Bytes)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000188.sst DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:af2677cf3a39cde12d2c3bafcc2bb790855e0845beb17a7e22477b27142671f7
3
- size 4761386
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000189.meta DELETED
Binary file (182 Bytes)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000190.meta DELETED
Binary file (18.8 kB)
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000193.sst DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:45a635aad4b9c48de89d6b18401ce921398748bc1260dae078d36df5bc55ce52
3
- size 3064717
 
 
 
 
e-commerce/.next/cache/turbopack/v16.4.0-e273d5b2/00000194.sst DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:977825888727f18ac88268986309716f0fbc9eafa06ffbea28e61dca24aa1b4c
3
- size 1621966