@brickkit/cli 0.15.0 → 0.16.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dashboard-dist/{CollapsiblePanel-CbUysOp5.js → CollapsiblePanel-DvJpFahB.js} +2 -2
- package/dashboard-dist/Geist-Variable.woff2 +0 -0
- package/dashboard-dist/GeistMono-Variable.woff2 +0 -0
- package/dashboard-dist/{api-reference-BP4ULs5J.js → api-reference-C2_JX174.js} +82 -70
- package/dashboard-dist/app.css +2 -2
- package/dashboard-dist/app.js +5 -5
- package/dashboard-dist/{client-CID_ep-s.js → client-DsITZplk.js} +1 -1
- package/dashboard-dist/{core-B123mLVe.js → core-sW89OSz5.js} +1 -1
- package/dashboard-dist/docs-D3U7gUWq.js +4 -0
- package/dashboard-dist/kit.js +1 -1
- package/dashboard-dist/{popover-B4rnc_po.js → popover-Bb2Q3jiK.js} +1 -1
- package/dist/bin.d.ts +1 -2
- package/dist/bin.js +6 -6
- package/dist/bin.js.map +1 -1
- package/dist/build.js.map +1 -1
- package/dist/client-contract-file.js +2 -1
- package/dist/client-contract-file.js.map +1 -1
- package/dist/compiler.d.ts +1 -2
- package/dist/config2.d.ts +1 -2
- package/dist/dashboard-extension.d.ts +1 -2
- package/dist/dashboard-host.js.map +1 -1
- package/dist/dashboard.d.ts +4 -4
- package/dist/definitions.js +1 -0
- package/dist/definitions.js.map +1 -1
- package/dist/dev-application.js.map +1 -1
- package/dist/dev-reporter.d.ts +1 -2
- package/dist/dev-reporter.js.map +1 -1
- package/dist/dev-telemetry.js.map +1 -1
- package/dist/dev-worker.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/lint/oxlint.d.ts +1 -2
- package/dist/plugin.d.ts +1 -2
- package/dist/production-dashboard2.d.ts +1 -2
- package/dist/project.js +35 -12
- package/dist/project.js.map +1 -1
- package/dist/serve.d.ts +1 -2
- package/dist/serve2.js.map +1 -1
- package/dist/vite.d.ts +1 -2
- package/dist/vite.js.map +1 -1
- package/dist/workflows.d.ts +1 -2
- package/inspector-dist/client/assets/app-Wfnqu2Ic.css +4610 -0
- package/inspector-dist/client/assets/{dist-BK8w6xOr.js → dist-CEyPxAJU.js} +2008 -334
- package/inspector-dist/client/assets/{entry.client-D9jbgmTR.js → entry.client-Cszf0uLP.js} +4628 -2593
- package/inspector-dist/client/assets/highlighted-body-JLMTFACH-CgFt8UnP.js +41 -0
- package/inspector-dist/client/assets/{home-hwPlkNhv.js → home-B2m1nnIz.js} +191 -105
- package/inspector-dist/client/assets/{jsx-runtime-CPEah4WQ.js → jsx-runtime-DRYYXgdJ.js} +2946 -2001
- package/inspector-dist/client/assets/{manifest-0e76e9ac.js → manifest-cfc09adc.js} +1 -1
- package/inspector-dist/client/assets/mermaid-WFAXDIZX-BoRESrqm.js +1 -0
- package/inspector-dist/client/assets/root-CVescmwt.css +4544 -0
- package/inspector-dist/client/assets/{root-SLeEf-sT.js → root-CVhM1JOR.js} +3 -3
- package/inspector-dist/client/assets/{run-detail-DYbVkIFH.js → run-detail-BdV01jxD.js} +90 -50
- package/inspector-dist/client/assets/tabs-BVrPbzfI.css +66 -0
- package/inspector-dist/client/assets/{tabs-CaJisoyb.js → tabs-C2hdi5D4.js} +12496 -8708
- package/inspector-dist/client/assets/{zstd-browser-decoder-D94wmfAU.js → zstd-browser-decoder-DQWDmc2d.js} +2 -2
- package/inspector-dist/server/assets/{app-DGlfWVUI.js → app-w0nTXgJd.js} +51489 -51478
- package/inspector-dist/server/assets/{chunk-RLXIAIE6-F0SJZlei.js → chunk-7TTQLYRW-BO6_qAAU.js} +10986 -7848
- package/inspector-dist/server/assets/cjs-DPK66Gxq.js +3600 -0
- package/inspector-dist/server/assets/{dist-BCbwm6jl.js → dist-DTHqO9VA.js} +149 -1619
- package/inspector-dist/server/assets/{dist-Ce0I2PUv.js → dist-OLuKLJ4s.js} +8 -8
- package/inspector-dist/server/assets/{encryption-DdQgC8Rk.js → encryption-DMo4uOFN.js} +5 -5
- package/inspector-dist/server/assets/{event-metadata-n7E4zEmT.js → event-metadata-Bx8Ts484.js} +1 -1
- package/inspector-dist/server/assets/functions-B9XwHSzK.js +6972 -0
- package/inspector-dist/server/assets/{global-singleton-D8sIN5du.js → global-singleton-rNtXNHKV.js} +1 -1
- package/inspector-dist/server/assets/highlighted-body-JLMTFACH-B0HDNeQE.js +41 -0
- package/inspector-dist/server/assets/mermaid-WFAXDIZX-B-AIJZhh.js +1 -0
- package/inspector-dist/server/assets/serialization-DsMds3lJ.js +5716 -0
- package/inspector-dist/server/assets/{serialization-format-BbuGfHog.js → serialization-format-B27jSUCM.js} +30 -9
- package/inspector-dist/server/assets/state-resolver-DVs_zsEO.js +1422 -0
- package/inspector-dist/server/assets/{token-BgMmJNP5.js → token-CvvD8Y5H.js} +1 -1
- package/inspector-dist/server/assets/token-CxjWFNNq.js +63 -0
- package/inspector-dist/server/assets/token-util-D9IsWeEs.js +3 -0
- package/inspector-dist/server/assets/{wrapper-CIC3w0oC.js → wrapper-B_u9Z5Up.js} +58 -26
- package/inspector-dist/server/assets/{ws-transport-CxTYB11n.js → ws-transport-CamzQ5O8.js} +24379 -24240
- package/inspector-dist/server/assets/{zstd-browser-decoder-D7bCXbGg.js → zstd-browser-decoder-DlGbqUuc.js} +2 -2
- package/inspector-dist/server/index.js +1 -1
- package/package.json +21 -21
- package/dashboard-dist/docs-B5JrvjJm.js +0 -4
- package/inspector-dist/client/assets/app-CeSwVsRm.css +0 -2
- package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-CfRnuITN.js +0 -34
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-ZDR2PNY_.js +0 -1
- package/inspector-dist/client/assets/root-ChBNTZd2.css +0 -2
- package/inspector-dist/client/assets/tabs-L5XKzOpP.css +0 -1
- package/inspector-dist/server/assets/functions-CNVQtbgg.js +0 -1170
- package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-CWRzMxYD.js +0 -34
- package/inspector-dist/server/assets/mermaid-3ZIDBTTL-D0v0ngVr.js +0 -1
- package/inspector-dist/server/assets/parse-Begau9cA.js +0 -469
|
@@ -1,1170 +0,0 @@
|
|
|
1
|
-
import { t as __commonJSMin } from "./rolldown-runtime-C1I3wEg2.js";
|
|
2
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/headers.js
|
|
3
|
-
var require_headers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all) __defProp(target, name, {
|
|
10
|
-
get: all[name],
|
|
11
|
-
enumerable: true
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
-
get: () => from[key],
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
-
var headers_exports = {};
|
|
25
|
-
__export(headers_exports, {
|
|
26
|
-
CITY_HEADER_NAME: () => CITY_HEADER_NAME,
|
|
27
|
-
COUNTRY_HEADER_NAME: () => COUNTRY_HEADER_NAME,
|
|
28
|
-
EMOJI_FLAG_UNICODE_STARTING_POSITION: () => EMOJI_FLAG_UNICODE_STARTING_POSITION,
|
|
29
|
-
IP_HEADER_NAME: () => IP_HEADER_NAME,
|
|
30
|
-
LATITUDE_HEADER_NAME: () => LATITUDE_HEADER_NAME,
|
|
31
|
-
LONGITUDE_HEADER_NAME: () => LONGITUDE_HEADER_NAME,
|
|
32
|
-
POSTAL_CODE_HEADER_NAME: () => POSTAL_CODE_HEADER_NAME,
|
|
33
|
-
REGION_HEADER_NAME: () => REGION_HEADER_NAME,
|
|
34
|
-
REQUEST_ID_HEADER_NAME: () => REQUEST_ID_HEADER_NAME,
|
|
35
|
-
geolocation: () => geolocation,
|
|
36
|
-
ipAddress: () => ipAddress
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(headers_exports);
|
|
39
|
-
var CITY_HEADER_NAME = "x-vercel-ip-city";
|
|
40
|
-
var COUNTRY_HEADER_NAME = "x-vercel-ip-country";
|
|
41
|
-
var IP_HEADER_NAME = "x-real-ip";
|
|
42
|
-
var LATITUDE_HEADER_NAME = "x-vercel-ip-latitude";
|
|
43
|
-
var LONGITUDE_HEADER_NAME = "x-vercel-ip-longitude";
|
|
44
|
-
var REGION_HEADER_NAME = "x-vercel-ip-country-region";
|
|
45
|
-
var POSTAL_CODE_HEADER_NAME = "x-vercel-ip-postal-code";
|
|
46
|
-
var REQUEST_ID_HEADER_NAME = "x-vercel-id";
|
|
47
|
-
var EMOJI_FLAG_UNICODE_STARTING_POSITION = 127397;
|
|
48
|
-
function getHeader(headers, key) {
|
|
49
|
-
return headers.get(key) ?? void 0;
|
|
50
|
-
}
|
|
51
|
-
function hasRequestHeaders(input) {
|
|
52
|
-
return "headers" in input && typeof input.headers?.get === "function";
|
|
53
|
-
}
|
|
54
|
-
function getHeaderWithDecode(request, key) {
|
|
55
|
-
const header = getHeader(request.headers, key);
|
|
56
|
-
return header ? decodeURIComponent(header) : void 0;
|
|
57
|
-
}
|
|
58
|
-
function getFlag(countryCode) {
|
|
59
|
-
const regex = (/* @__PURE__ */ new RegExp("^[A-Z]{2}$")).test(countryCode);
|
|
60
|
-
if (!countryCode || !regex) return void 0;
|
|
61
|
-
return String.fromCodePoint(...countryCode.split("").map((char) => EMOJI_FLAG_UNICODE_STARTING_POSITION + char.charCodeAt(0)));
|
|
62
|
-
}
|
|
63
|
-
function ipAddress(input) {
|
|
64
|
-
return getHeader(hasRequestHeaders(input) ? input.headers : input, IP_HEADER_NAME);
|
|
65
|
-
}
|
|
66
|
-
function getRegionFromRequestId(requestId) {
|
|
67
|
-
if (!requestId) return "dev1";
|
|
68
|
-
return requestId.split(":")[0];
|
|
69
|
-
}
|
|
70
|
-
function geolocation(request) {
|
|
71
|
-
return {
|
|
72
|
-
city: getHeaderWithDecode(request, CITY_HEADER_NAME),
|
|
73
|
-
country: getHeader(request.headers, COUNTRY_HEADER_NAME),
|
|
74
|
-
flag: getFlag(getHeader(request.headers, COUNTRY_HEADER_NAME)),
|
|
75
|
-
countryRegion: getHeader(request.headers, REGION_HEADER_NAME),
|
|
76
|
-
region: getRegionFromRequestId(getHeader(request.headers, REQUEST_ID_HEADER_NAME)),
|
|
77
|
-
latitude: getHeader(request.headers, LATITUDE_HEADER_NAME),
|
|
78
|
-
longitude: getHeader(request.headers, LONGITUDE_HEADER_NAME),
|
|
79
|
-
postalCode: getHeader(request.headers, POSTAL_CODE_HEADER_NAME)
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
0 && (module.exports = {
|
|
83
|
-
CITY_HEADER_NAME,
|
|
84
|
-
COUNTRY_HEADER_NAME,
|
|
85
|
-
EMOJI_FLAG_UNICODE_STARTING_POSITION,
|
|
86
|
-
IP_HEADER_NAME,
|
|
87
|
-
LATITUDE_HEADER_NAME,
|
|
88
|
-
LONGITUDE_HEADER_NAME,
|
|
89
|
-
POSTAL_CODE_HEADER_NAME,
|
|
90
|
-
REGION_HEADER_NAME,
|
|
91
|
-
REQUEST_ID_HEADER_NAME,
|
|
92
|
-
geolocation,
|
|
93
|
-
ipAddress
|
|
94
|
-
});
|
|
95
|
-
}));
|
|
96
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/get-env.js
|
|
97
|
-
var require_get_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
98
|
-
var __defProp = Object.defineProperty;
|
|
99
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
100
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
101
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
102
|
-
var __export = (target, all) => {
|
|
103
|
-
for (var name in all) __defProp(target, name, {
|
|
104
|
-
get: all[name],
|
|
105
|
-
enumerable: true
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
var __copyProps = (to, from, except, desc) => {
|
|
109
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
110
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
111
|
-
get: () => from[key],
|
|
112
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
return to;
|
|
116
|
-
};
|
|
117
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
118
|
-
var get_env_exports = {};
|
|
119
|
-
__export(get_env_exports, { getEnv: () => getEnv });
|
|
120
|
-
module.exports = __toCommonJS(get_env_exports);
|
|
121
|
-
var getEnv = (env = process.env) => ({
|
|
122
|
-
/**
|
|
123
|
-
* An indicator to show that System Environment Variables have been exposed to your project's Deployments.
|
|
124
|
-
* @example "1"
|
|
125
|
-
*/
|
|
126
|
-
VERCEL: get(env, "VERCEL"),
|
|
127
|
-
/**
|
|
128
|
-
* An indicator that the code is running in a Continuous Integration environment.
|
|
129
|
-
* @example "1"
|
|
130
|
-
*/
|
|
131
|
-
CI: get(env, "CI"),
|
|
132
|
-
/**
|
|
133
|
-
* The Environment that the app is deployed and running on.
|
|
134
|
-
* @example "production"
|
|
135
|
-
*/
|
|
136
|
-
VERCEL_ENV: get(env, "VERCEL_ENV"),
|
|
137
|
-
/**
|
|
138
|
-
* The domain name of the generated deployment URL. The value does not include the protocol scheme https://.
|
|
139
|
-
* NOTE: This Variable cannot be used in conjunction with Standard Deployment Protection.
|
|
140
|
-
* @example "*.vercel.app"
|
|
141
|
-
*/
|
|
142
|
-
VERCEL_URL: get(env, "VERCEL_URL"),
|
|
143
|
-
/**
|
|
144
|
-
* The domain name of the generated Git branch URL. The value does not include the protocol scheme https://.
|
|
145
|
-
* @example "*-git-*.vercel.app"
|
|
146
|
-
*/
|
|
147
|
-
VERCEL_BRANCH_URL: get(env, "VERCEL_BRANCH_URL"),
|
|
148
|
-
/**
|
|
149
|
-
* A production domain name of the project. This is useful to reliably generate links that point to production such as OG-image URLs.
|
|
150
|
-
* The value does not include the protocol scheme https://.
|
|
151
|
-
* @example "myproject.vercel.app"
|
|
152
|
-
*/
|
|
153
|
-
VERCEL_PROJECT_PRODUCTION_URL: get(env, "VERCEL_PROJECT_PRODUCTION_URL"),
|
|
154
|
-
/**
|
|
155
|
-
* The ID of the Region where the app is running.
|
|
156
|
-
*
|
|
157
|
-
* Possible values:
|
|
158
|
-
* - arn1 (Stockholm, Sweden)
|
|
159
|
-
* - bom1 (Mumbai, India)
|
|
160
|
-
* - cdg1 (Paris, France)
|
|
161
|
-
* - cle1 (Cleveland, USA)
|
|
162
|
-
* - cpt1 (Cape Town, South Africa)
|
|
163
|
-
* - dub1 (Dublin, Ireland)
|
|
164
|
-
* - fra1 (Frankfurt, Germany)
|
|
165
|
-
* - gru1 (São Paulo, Brazil)
|
|
166
|
-
* - hkg1 (Hong Kong)
|
|
167
|
-
* - hnd1 (Tokyo, Japan)
|
|
168
|
-
* - iad1 (Washington, D.C., USA)
|
|
169
|
-
* - icn1 (Seoul, South Korea)
|
|
170
|
-
* - kix1 (Osaka, Japan)
|
|
171
|
-
* - lhr1 (London, United Kingdom)
|
|
172
|
-
* - pdx1 (Portland, USA)
|
|
173
|
-
* - sfo1 (San Francisco, USA)
|
|
174
|
-
* - sin1 (Singapore)
|
|
175
|
-
* - syd1 (Sydney, Australia)
|
|
176
|
-
* - dev1 (Development Region)
|
|
177
|
-
*
|
|
178
|
-
* @example "iad1"
|
|
179
|
-
*/
|
|
180
|
-
VERCEL_REGION: get(env, "VERCEL_REGION"),
|
|
181
|
-
/**
|
|
182
|
-
* The unique identifier for the deployment, which can be used to implement Skew Protection.
|
|
183
|
-
* @example "dpl_7Gw5ZMBpQA8h9GF832KGp7nwbuh3"
|
|
184
|
-
*/
|
|
185
|
-
VERCEL_DEPLOYMENT_ID: get(env, "VERCEL_DEPLOYMENT_ID"),
|
|
186
|
-
/**
|
|
187
|
-
* When Skew Protection is enabled in Project Settings, this value is set to 1.
|
|
188
|
-
* @example "1"
|
|
189
|
-
*/
|
|
190
|
-
VERCEL_SKEW_PROTECTION_ENABLED: get(env, "VERCEL_SKEW_PROTECTION_ENABLED"),
|
|
191
|
-
/**
|
|
192
|
-
* The Protection Bypass for Automation value, if the secret has been generated in the project's Deployment Protection settings.
|
|
193
|
-
*/
|
|
194
|
-
VERCEL_AUTOMATION_BYPASS_SECRET: get(env, "VERCEL_AUTOMATION_BYPASS_SECRET"),
|
|
195
|
-
/**
|
|
196
|
-
* The Git Provider the deployment is triggered from.
|
|
197
|
-
* @example "github"
|
|
198
|
-
*/
|
|
199
|
-
VERCEL_GIT_PROVIDER: get(env, "VERCEL_GIT_PROVIDER"),
|
|
200
|
-
/**
|
|
201
|
-
* The origin repository the deployment is triggered from.
|
|
202
|
-
* @example "my-site"
|
|
203
|
-
*/
|
|
204
|
-
VERCEL_GIT_REPO_SLUG: get(env, "VERCEL_GIT_REPO_SLUG"),
|
|
205
|
-
/**
|
|
206
|
-
* The account that owns the repository the deployment is triggered from.
|
|
207
|
-
* @example "acme"
|
|
208
|
-
*/
|
|
209
|
-
VERCEL_GIT_REPO_OWNER: get(env, "VERCEL_GIT_REPO_OWNER"),
|
|
210
|
-
/**
|
|
211
|
-
* The ID of the repository the deployment is triggered from.
|
|
212
|
-
* @example "117716146"
|
|
213
|
-
*/
|
|
214
|
-
VERCEL_GIT_REPO_ID: get(env, "VERCEL_GIT_REPO_ID"),
|
|
215
|
-
/**
|
|
216
|
-
* The git branch of the commit the deployment was triggered by.
|
|
217
|
-
* @example "improve-about-page"
|
|
218
|
-
*/
|
|
219
|
-
VERCEL_GIT_COMMIT_REF: get(env, "VERCEL_GIT_COMMIT_REF"),
|
|
220
|
-
/**
|
|
221
|
-
* The git SHA of the commit the deployment was triggered by.
|
|
222
|
-
* @example "fa1eade47b73733d6312d5abfad33ce9e4068081"
|
|
223
|
-
*/
|
|
224
|
-
VERCEL_GIT_COMMIT_SHA: get(env, "VERCEL_GIT_COMMIT_SHA"),
|
|
225
|
-
/**
|
|
226
|
-
* The message attached to the commit the deployment was triggered by.
|
|
227
|
-
* @example "Update about page"
|
|
228
|
-
*/
|
|
229
|
-
VERCEL_GIT_COMMIT_MESSAGE: get(env, "VERCEL_GIT_COMMIT_MESSAGE"),
|
|
230
|
-
/**
|
|
231
|
-
* The username attached to the author of the commit that the project was deployed by.
|
|
232
|
-
* @example "johndoe"
|
|
233
|
-
*/
|
|
234
|
-
VERCEL_GIT_COMMIT_AUTHOR_LOGIN: get(env, "VERCEL_GIT_COMMIT_AUTHOR_LOGIN"),
|
|
235
|
-
/**
|
|
236
|
-
* The name attached to the author of the commit that the project was deployed by.
|
|
237
|
-
* @example "John Doe"
|
|
238
|
-
*/
|
|
239
|
-
VERCEL_GIT_COMMIT_AUTHOR_NAME: get(env, "VERCEL_GIT_COMMIT_AUTHOR_NAME"),
|
|
240
|
-
/**
|
|
241
|
-
* The git SHA of the last successful deployment for the project and branch.
|
|
242
|
-
* NOTE: This Variable is only exposed when an Ignored Build Step is provided.
|
|
243
|
-
* @example "fa1eade47b73733d6312d5abfad33ce9e4068080"
|
|
244
|
-
*/
|
|
245
|
-
VERCEL_GIT_PREVIOUS_SHA: get(env, "VERCEL_GIT_PREVIOUS_SHA"),
|
|
246
|
-
/**
|
|
247
|
-
* The pull request id the deployment was triggered by. If a deployment is created on a branch before a pull request is made, this value will be an empty string.
|
|
248
|
-
* @example "23"
|
|
249
|
-
*/
|
|
250
|
-
VERCEL_GIT_PULL_REQUEST_ID: get(env, "VERCEL_GIT_PULL_REQUEST_ID")
|
|
251
|
-
});
|
|
252
|
-
var get = (env, key) => {
|
|
253
|
-
const value = env[key];
|
|
254
|
-
return value === "" ? void 0 : value;
|
|
255
|
-
};
|
|
256
|
-
0 && (module.exports = { getEnv });
|
|
257
|
-
}));
|
|
258
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/get-context.js
|
|
259
|
-
var require_get_context = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
260
|
-
var __defProp = Object.defineProperty;
|
|
261
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
262
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
263
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
264
|
-
var __export = (target, all) => {
|
|
265
|
-
for (var name in all) __defProp(target, name, {
|
|
266
|
-
get: all[name],
|
|
267
|
-
enumerable: true
|
|
268
|
-
});
|
|
269
|
-
};
|
|
270
|
-
var __copyProps = (to, from, except, desc) => {
|
|
271
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
272
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
273
|
-
get: () => from[key],
|
|
274
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
return to;
|
|
278
|
-
};
|
|
279
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
280
|
-
var get_context_exports = {};
|
|
281
|
-
__export(get_context_exports, {
|
|
282
|
-
SYMBOL_FOR_REQ_CONTEXT: () => SYMBOL_FOR_REQ_CONTEXT,
|
|
283
|
-
getContext: () => getContext
|
|
284
|
-
});
|
|
285
|
-
module.exports = __toCommonJS(get_context_exports);
|
|
286
|
-
var SYMBOL_FOR_REQ_CONTEXT = Symbol.for("@vercel/request-context");
|
|
287
|
-
function getContext() {
|
|
288
|
-
return globalThis[SYMBOL_FOR_REQ_CONTEXT]?.get?.() ?? {};
|
|
289
|
-
}
|
|
290
|
-
0 && (module.exports = {
|
|
291
|
-
SYMBOL_FOR_REQ_CONTEXT,
|
|
292
|
-
getContext
|
|
293
|
-
});
|
|
294
|
-
}));
|
|
295
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/deadline.js
|
|
296
|
-
var require_deadline = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
297
|
-
var __defProp = Object.defineProperty;
|
|
298
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
299
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
300
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
301
|
-
var __export = (target, all) => {
|
|
302
|
-
for (var name in all) __defProp(target, name, {
|
|
303
|
-
get: all[name],
|
|
304
|
-
enumerable: true
|
|
305
|
-
});
|
|
306
|
-
};
|
|
307
|
-
var __copyProps = (to, from, except, desc) => {
|
|
308
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
309
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
310
|
-
get: () => from[key],
|
|
311
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
return to;
|
|
315
|
-
};
|
|
316
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
317
|
-
var deadline_exports = {};
|
|
318
|
-
__export(deadline_exports, { getDeadline: () => getDeadline });
|
|
319
|
-
module.exports = __toCommonJS(deadline_exports);
|
|
320
|
-
var import_get_context = require_get_context();
|
|
321
|
-
function getDeadline() {
|
|
322
|
-
const deadline = (0, import_get_context.getContext)().deadline;
|
|
323
|
-
if (deadline === void 0) return;
|
|
324
|
-
const date = new Date(deadline);
|
|
325
|
-
if (isNaN(date.getTime())) return;
|
|
326
|
-
return date;
|
|
327
|
-
}
|
|
328
|
-
0 && (module.exports = { getDeadline });
|
|
329
|
-
}));
|
|
330
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/wait-until.js
|
|
331
|
-
var require_wait_until = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
332
|
-
var __defProp = Object.defineProperty;
|
|
333
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
334
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
335
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
336
|
-
var __export = (target, all) => {
|
|
337
|
-
for (var name in all) __defProp(target, name, {
|
|
338
|
-
get: all[name],
|
|
339
|
-
enumerable: true
|
|
340
|
-
});
|
|
341
|
-
};
|
|
342
|
-
var __copyProps = (to, from, except, desc) => {
|
|
343
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
344
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
345
|
-
get: () => from[key],
|
|
346
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
return to;
|
|
350
|
-
};
|
|
351
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
352
|
-
var wait_until_exports = {};
|
|
353
|
-
__export(wait_until_exports, { waitUntil: () => waitUntil });
|
|
354
|
-
module.exports = __toCommonJS(wait_until_exports);
|
|
355
|
-
var import_get_context = require_get_context();
|
|
356
|
-
var waitUntil = (promise) => {
|
|
357
|
-
if (promise === null || typeof promise !== "object" || typeof promise.then !== "function") throw new TypeError(`waitUntil can only be called with a Promise, got ${typeof promise}`);
|
|
358
|
-
return (0, import_get_context.getContext)().waitUntil?.(promise);
|
|
359
|
-
};
|
|
360
|
-
0 && (module.exports = { waitUntil });
|
|
361
|
-
}));
|
|
362
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/metric.js
|
|
363
|
-
var require_metric = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
364
|
-
var __defProp = Object.defineProperty;
|
|
365
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
366
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
367
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
368
|
-
var __export = (target, all) => {
|
|
369
|
-
for (var name in all) __defProp(target, name, {
|
|
370
|
-
get: all[name],
|
|
371
|
-
enumerable: true
|
|
372
|
-
});
|
|
373
|
-
};
|
|
374
|
-
var __copyProps = (to, from, except, desc) => {
|
|
375
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
376
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
377
|
-
get: () => from[key],
|
|
378
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
return to;
|
|
382
|
-
};
|
|
383
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
384
|
-
var metric_exports = {};
|
|
385
|
-
__export(metric_exports, { metric: () => metric });
|
|
386
|
-
module.exports = __toCommonJS(metric_exports);
|
|
387
|
-
var RUSTY_RUNTIME_IPC_SYMBOL = Symbol.for("@vercel/rusty-runtime-ipc");
|
|
388
|
-
function metric(name, value, tags) {
|
|
389
|
-
globalThis[RUSTY_RUNTIME_IPC_SYMBOL]?.sendMetric?.(name, value, tags);
|
|
390
|
-
}
|
|
391
|
-
0 && (module.exports = { metric });
|
|
392
|
-
}));
|
|
393
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/middleware.js
|
|
394
|
-
var require_middleware = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
395
|
-
var __defProp = Object.defineProperty;
|
|
396
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
397
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
398
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
399
|
-
var __export = (target, all) => {
|
|
400
|
-
for (var name in all) __defProp(target, name, {
|
|
401
|
-
get: all[name],
|
|
402
|
-
enumerable: true
|
|
403
|
-
});
|
|
404
|
-
};
|
|
405
|
-
var __copyProps = (to, from, except, desc) => {
|
|
406
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
407
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
408
|
-
get: () => from[key],
|
|
409
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
return to;
|
|
413
|
-
};
|
|
414
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
415
|
-
var middleware_exports = {};
|
|
416
|
-
__export(middleware_exports, {
|
|
417
|
-
next: () => next,
|
|
418
|
-
rewrite: () => rewrite
|
|
419
|
-
});
|
|
420
|
-
module.exports = __toCommonJS(middleware_exports);
|
|
421
|
-
function handleMiddlewareField(init, headers) {
|
|
422
|
-
if (init?.request?.headers) {
|
|
423
|
-
if (!(init.request.headers instanceof Headers)) throw new Error("request.headers must be an instance of Headers");
|
|
424
|
-
const keys = [];
|
|
425
|
-
for (const [key, value] of init.request.headers) {
|
|
426
|
-
headers.set("x-middleware-request-" + key, value);
|
|
427
|
-
keys.push(key);
|
|
428
|
-
}
|
|
429
|
-
headers.set("x-middleware-override-headers", keys.join(","));
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
function rewrite(destination, init) {
|
|
433
|
-
const headers = new Headers(init?.headers ?? {});
|
|
434
|
-
headers.set("x-middleware-rewrite", String(destination));
|
|
435
|
-
handleMiddlewareField(init, headers);
|
|
436
|
-
return new Response(null, {
|
|
437
|
-
...init,
|
|
438
|
-
headers
|
|
439
|
-
});
|
|
440
|
-
}
|
|
441
|
-
function next(init) {
|
|
442
|
-
const headers = new Headers(init?.headers ?? {});
|
|
443
|
-
headers.set("x-middleware-next", "1");
|
|
444
|
-
handleMiddlewareField(init, headers);
|
|
445
|
-
return new Response(null, {
|
|
446
|
-
...init,
|
|
447
|
-
headers
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
0 && (module.exports = {
|
|
451
|
-
next,
|
|
452
|
-
rewrite
|
|
453
|
-
});
|
|
454
|
-
}));
|
|
455
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/cache/in-memory-cache.js
|
|
456
|
-
var require_in_memory_cache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
457
|
-
var __defProp = Object.defineProperty;
|
|
458
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
459
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
460
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
461
|
-
var __export = (target, all) => {
|
|
462
|
-
for (var name in all) __defProp(target, name, {
|
|
463
|
-
get: all[name],
|
|
464
|
-
enumerable: true
|
|
465
|
-
});
|
|
466
|
-
};
|
|
467
|
-
var __copyProps = (to, from, except, desc) => {
|
|
468
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
469
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
470
|
-
get: () => from[key],
|
|
471
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
return to;
|
|
475
|
-
};
|
|
476
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
477
|
-
var in_memory_cache_exports = {};
|
|
478
|
-
__export(in_memory_cache_exports, { InMemoryCache: () => InMemoryCache });
|
|
479
|
-
module.exports = __toCommonJS(in_memory_cache_exports);
|
|
480
|
-
var InMemoryCache = class {
|
|
481
|
-
constructor() {
|
|
482
|
-
this.cache = {};
|
|
483
|
-
}
|
|
484
|
-
async get(key) {
|
|
485
|
-
const entry = this.cache[key];
|
|
486
|
-
if (entry) {
|
|
487
|
-
if (entry.ttl && entry.lastModified + entry.ttl * 1e3 < Date.now()) {
|
|
488
|
-
await this.delete(key);
|
|
489
|
-
return null;
|
|
490
|
-
}
|
|
491
|
-
return JSON.parse(entry.value);
|
|
492
|
-
}
|
|
493
|
-
return null;
|
|
494
|
-
}
|
|
495
|
-
async set(key, value, options) {
|
|
496
|
-
const serialized = JSON.stringify(value ?? null);
|
|
497
|
-
this.cache[key] = {
|
|
498
|
-
value: serialized,
|
|
499
|
-
lastModified: Date.now(),
|
|
500
|
-
ttl: options?.ttl,
|
|
501
|
-
tags: new Set(options?.tags || [])
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
async delete(key) {
|
|
505
|
-
delete this.cache[key];
|
|
506
|
-
}
|
|
507
|
-
async expireTag(tag) {
|
|
508
|
-
const tags = Array.isArray(tag) ? tag : [tag];
|
|
509
|
-
for (const key in this.cache) if (Object.prototype.hasOwnProperty.call(this.cache, key)) {
|
|
510
|
-
const entry = this.cache[key];
|
|
511
|
-
if (tags.some((t) => entry.tags.has(t))) delete this.cache[key];
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
};
|
|
515
|
-
0 && (module.exports = { InMemoryCache });
|
|
516
|
-
}));
|
|
517
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/cache/build-client.js
|
|
518
|
-
var require_build_client = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
519
|
-
var __defProp = Object.defineProperty;
|
|
520
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
521
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
522
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
523
|
-
var __export = (target, all) => {
|
|
524
|
-
for (var name in all) __defProp(target, name, {
|
|
525
|
-
get: all[name],
|
|
526
|
-
enumerable: true
|
|
527
|
-
});
|
|
528
|
-
};
|
|
529
|
-
var __copyProps = (to, from, except, desc) => {
|
|
530
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
531
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
532
|
-
get: () => from[key],
|
|
533
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
534
|
-
});
|
|
535
|
-
}
|
|
536
|
-
return to;
|
|
537
|
-
};
|
|
538
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
539
|
-
var build_client_exports = {};
|
|
540
|
-
__export(build_client_exports, { BuildCache: () => BuildCache });
|
|
541
|
-
module.exports = __toCommonJS(build_client_exports);
|
|
542
|
-
var import_index = require_cache();
|
|
543
|
-
var BuildCache = class {
|
|
544
|
-
constructor({ endpoint, headers, onError, timeout = 500 }) {
|
|
545
|
-
this.get = async (key) => {
|
|
546
|
-
const controller = new AbortController();
|
|
547
|
-
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
548
|
-
try {
|
|
549
|
-
const res = await fetch(`${this.endpoint}${key}`, {
|
|
550
|
-
headers: this.headers,
|
|
551
|
-
method: "GET",
|
|
552
|
-
signal: controller.signal
|
|
553
|
-
});
|
|
554
|
-
if (res.status === 404) {
|
|
555
|
-
clearTimeout(timeoutId);
|
|
556
|
-
return null;
|
|
557
|
-
}
|
|
558
|
-
if (res.status === 200) {
|
|
559
|
-
if (res.headers.get(import_index.HEADERS_VERCEL_CACHE_STATE) !== import_index.PkgCacheState.Fresh) {
|
|
560
|
-
res.body?.cancel?.();
|
|
561
|
-
clearTimeout(timeoutId);
|
|
562
|
-
return null;
|
|
563
|
-
}
|
|
564
|
-
const result = await res.json();
|
|
565
|
-
clearTimeout(timeoutId);
|
|
566
|
-
return result;
|
|
567
|
-
} else {
|
|
568
|
-
clearTimeout(timeoutId);
|
|
569
|
-
throw new Error(`Failed to get cache: ${res.statusText}`);
|
|
570
|
-
}
|
|
571
|
-
} catch (error) {
|
|
572
|
-
clearTimeout(timeoutId);
|
|
573
|
-
if (error.name === "AbortError") {
|
|
574
|
-
const timeoutError = /* @__PURE__ */ new Error(`Cache request timed out after ${this.timeout}ms`);
|
|
575
|
-
timeoutError.stack = error.stack;
|
|
576
|
-
this.onError?.(timeoutError);
|
|
577
|
-
} else this.onError?.(error);
|
|
578
|
-
return null;
|
|
579
|
-
}
|
|
580
|
-
};
|
|
581
|
-
this.set = async (key, value, options) => {
|
|
582
|
-
const controller = new AbortController();
|
|
583
|
-
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
584
|
-
try {
|
|
585
|
-
const optionalHeaders = {};
|
|
586
|
-
if (options?.ttl) optionalHeaders[import_index.HEADERS_VERCEL_REVALIDATE] = options.ttl.toString();
|
|
587
|
-
if (options?.tags && options.tags.length > 0) optionalHeaders[import_index.HEADERS_VERCEL_CACHE_TAGS] = options.tags.join(",");
|
|
588
|
-
if (options?.name) optionalHeaders[import_index.HEADERS_VERCEL_CACHE_ITEM_NAME] = options.name;
|
|
589
|
-
const res = await fetch(`${this.endpoint}${key}`, {
|
|
590
|
-
method: "POST",
|
|
591
|
-
headers: {
|
|
592
|
-
...this.headers,
|
|
593
|
-
...optionalHeaders
|
|
594
|
-
},
|
|
595
|
-
body: JSON.stringify(value),
|
|
596
|
-
signal: controller.signal
|
|
597
|
-
});
|
|
598
|
-
clearTimeout(timeoutId);
|
|
599
|
-
if (res.status !== 200) throw new Error(`Failed to set cache: ${res.status} ${res.statusText}`);
|
|
600
|
-
} catch (error) {
|
|
601
|
-
clearTimeout(timeoutId);
|
|
602
|
-
if (error.name === "AbortError") {
|
|
603
|
-
const timeoutError = /* @__PURE__ */ new Error(`Cache request timed out after ${this.timeout}ms`);
|
|
604
|
-
timeoutError.stack = error.stack;
|
|
605
|
-
this.onError?.(timeoutError);
|
|
606
|
-
} else this.onError?.(error);
|
|
607
|
-
}
|
|
608
|
-
};
|
|
609
|
-
this.delete = async (key) => {
|
|
610
|
-
const controller = new AbortController();
|
|
611
|
-
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
612
|
-
try {
|
|
613
|
-
const res = await fetch(`${this.endpoint}${key}`, {
|
|
614
|
-
method: "DELETE",
|
|
615
|
-
headers: this.headers,
|
|
616
|
-
signal: controller.signal
|
|
617
|
-
});
|
|
618
|
-
clearTimeout(timeoutId);
|
|
619
|
-
if (res.status !== 200) throw new Error(`Failed to delete cache: ${res.statusText}`);
|
|
620
|
-
} catch (error) {
|
|
621
|
-
clearTimeout(timeoutId);
|
|
622
|
-
if (error.name === "AbortError") {
|
|
623
|
-
const timeoutError = /* @__PURE__ */ new Error(`Cache request timed out after ${this.timeout}ms`);
|
|
624
|
-
timeoutError.stack = error.stack;
|
|
625
|
-
this.onError?.(timeoutError);
|
|
626
|
-
} else this.onError?.(error);
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
|
-
this.expireTag = async (tag) => {
|
|
630
|
-
const controller = new AbortController();
|
|
631
|
-
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
632
|
-
try {
|
|
633
|
-
if (Array.isArray(tag)) tag = tag.join(",");
|
|
634
|
-
const res = await fetch(`${this.endpoint}revalidate?tags=${tag}`, {
|
|
635
|
-
method: "POST",
|
|
636
|
-
headers: this.headers,
|
|
637
|
-
signal: controller.signal
|
|
638
|
-
});
|
|
639
|
-
clearTimeout(timeoutId);
|
|
640
|
-
if (res.status !== 200) throw new Error(`Failed to revalidate tag: ${res.statusText}`);
|
|
641
|
-
} catch (error) {
|
|
642
|
-
clearTimeout(timeoutId);
|
|
643
|
-
if (error.name === "AbortError") {
|
|
644
|
-
const timeoutError = /* @__PURE__ */ new Error(`Cache request timed out after ${this.timeout}ms`);
|
|
645
|
-
timeoutError.stack = error.stack;
|
|
646
|
-
this.onError?.(timeoutError);
|
|
647
|
-
} else this.onError?.(error);
|
|
648
|
-
}
|
|
649
|
-
};
|
|
650
|
-
this.endpoint = endpoint;
|
|
651
|
-
this.headers = headers;
|
|
652
|
-
this.onError = onError;
|
|
653
|
-
this.timeout = timeout;
|
|
654
|
-
}
|
|
655
|
-
};
|
|
656
|
-
0 && (module.exports = { BuildCache });
|
|
657
|
-
}));
|
|
658
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/cache/index.js
|
|
659
|
-
var require_cache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
660
|
-
var __defProp = Object.defineProperty;
|
|
661
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
662
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
663
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
664
|
-
var __export = (target, all) => {
|
|
665
|
-
for (var name in all) __defProp(target, name, {
|
|
666
|
-
get: all[name],
|
|
667
|
-
enumerable: true
|
|
668
|
-
});
|
|
669
|
-
};
|
|
670
|
-
var __copyProps = (to, from, except, desc) => {
|
|
671
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
672
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
673
|
-
get: () => from[key],
|
|
674
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
return to;
|
|
678
|
-
};
|
|
679
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
680
|
-
var cache_exports = {};
|
|
681
|
-
__export(cache_exports, {
|
|
682
|
-
HEADERS_VERCEL_CACHE_ITEM_NAME: () => HEADERS_VERCEL_CACHE_ITEM_NAME,
|
|
683
|
-
HEADERS_VERCEL_CACHE_STATE: () => HEADERS_VERCEL_CACHE_STATE,
|
|
684
|
-
HEADERS_VERCEL_CACHE_TAGS: () => HEADERS_VERCEL_CACHE_TAGS,
|
|
685
|
-
HEADERS_VERCEL_REVALIDATE: () => HEADERS_VERCEL_REVALIDATE,
|
|
686
|
-
PkgCacheState: () => PkgCacheState,
|
|
687
|
-
getCache: () => getCache
|
|
688
|
-
});
|
|
689
|
-
module.exports = __toCommonJS(cache_exports);
|
|
690
|
-
var import_get_context = require_get_context();
|
|
691
|
-
var import_in_memory_cache = require_in_memory_cache();
|
|
692
|
-
var import_build_client = require_build_client();
|
|
693
|
-
var defaultKeyHashFunction = (key) => {
|
|
694
|
-
let hash = 5381;
|
|
695
|
-
for (let i = 0; i < key.length; i++) hash = hash * 33 ^ key.charCodeAt(i);
|
|
696
|
-
return (hash >>> 0).toString(16);
|
|
697
|
-
};
|
|
698
|
-
var defaultNamespaceSeparator = "$";
|
|
699
|
-
var inMemoryCacheInstance = null;
|
|
700
|
-
var buildCacheInstance = null;
|
|
701
|
-
var getCache = (cacheOptions) => {
|
|
702
|
-
const resolveCache = () => {
|
|
703
|
-
let cache;
|
|
704
|
-
if ((0, import_get_context.getContext)().cache) cache = (0, import_get_context.getContext)().cache;
|
|
705
|
-
else cache = getCacheImplementation(process.env.SUSPENSE_CACHE_DEBUG === "true");
|
|
706
|
-
return cache;
|
|
707
|
-
};
|
|
708
|
-
return wrapWithKeyTransformation(resolveCache, createKeyTransformer(cacheOptions));
|
|
709
|
-
};
|
|
710
|
-
function createKeyTransformer(cacheOptions) {
|
|
711
|
-
const hashFunction = cacheOptions?.keyHashFunction || defaultKeyHashFunction;
|
|
712
|
-
return (key) => {
|
|
713
|
-
if (!cacheOptions?.namespace) return hashFunction(key);
|
|
714
|
-
const separator = cacheOptions.namespaceSeparator || defaultNamespaceSeparator;
|
|
715
|
-
return `${cacheOptions.namespace}${separator}${hashFunction(key)}`;
|
|
716
|
-
};
|
|
717
|
-
}
|
|
718
|
-
function wrapWithKeyTransformation(resolveCache, makeKey) {
|
|
719
|
-
return {
|
|
720
|
-
get: (key) => {
|
|
721
|
-
return resolveCache().get(makeKey(key));
|
|
722
|
-
},
|
|
723
|
-
set: (key, value, options) => {
|
|
724
|
-
return resolveCache().set(makeKey(key), value, {
|
|
725
|
-
...options,
|
|
726
|
-
name: options?.name ?? key
|
|
727
|
-
});
|
|
728
|
-
},
|
|
729
|
-
delete: (key) => {
|
|
730
|
-
return resolveCache().delete(makeKey(key));
|
|
731
|
-
},
|
|
732
|
-
expireTag: (tag) => {
|
|
733
|
-
return resolveCache().expireTag(tag);
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
}
|
|
737
|
-
var warnedCacheUnavailable = false;
|
|
738
|
-
function getCacheImplementation(debug) {
|
|
739
|
-
if (!inMemoryCacheInstance) inMemoryCacheInstance = new import_in_memory_cache.InMemoryCache();
|
|
740
|
-
if (process.env.RUNTIME_CACHE_DISABLE_BUILD_CACHE === "true") {
|
|
741
|
-
debug && console.log("Using InMemoryCache as build cache is disabled");
|
|
742
|
-
return inMemoryCacheInstance;
|
|
743
|
-
}
|
|
744
|
-
const { RUNTIME_CACHE_ENDPOINT, RUNTIME_CACHE_HEADERS } = process.env;
|
|
745
|
-
if (debug) console.log("Runtime cache environment variables:", {
|
|
746
|
-
RUNTIME_CACHE_ENDPOINT,
|
|
747
|
-
RUNTIME_CACHE_HEADERS
|
|
748
|
-
});
|
|
749
|
-
if (!RUNTIME_CACHE_ENDPOINT || !RUNTIME_CACHE_HEADERS) {
|
|
750
|
-
if (!warnedCacheUnavailable) {
|
|
751
|
-
console.warn("Runtime Cache unavailable in this environment. Falling back to in-memory cache.");
|
|
752
|
-
warnedCacheUnavailable = true;
|
|
753
|
-
}
|
|
754
|
-
return inMemoryCacheInstance;
|
|
755
|
-
}
|
|
756
|
-
if (!buildCacheInstance) {
|
|
757
|
-
let parsedHeaders = {};
|
|
758
|
-
try {
|
|
759
|
-
parsedHeaders = JSON.parse(RUNTIME_CACHE_HEADERS);
|
|
760
|
-
} catch (e) {
|
|
761
|
-
console.error("Failed to parse RUNTIME_CACHE_HEADERS:", e);
|
|
762
|
-
return inMemoryCacheInstance;
|
|
763
|
-
}
|
|
764
|
-
let timeout = 500;
|
|
765
|
-
if (process.env.RUNTIME_CACHE_TIMEOUT) {
|
|
766
|
-
const parsed = parseInt(process.env.RUNTIME_CACHE_TIMEOUT, 10);
|
|
767
|
-
if (!isNaN(parsed) && parsed > 0) timeout = parsed;
|
|
768
|
-
else console.warn(`Invalid RUNTIME_CACHE_TIMEOUT value: "${process.env.RUNTIME_CACHE_TIMEOUT}". Using default: ${timeout}ms`);
|
|
769
|
-
}
|
|
770
|
-
buildCacheInstance = new import_build_client.BuildCache({
|
|
771
|
-
endpoint: RUNTIME_CACHE_ENDPOINT,
|
|
772
|
-
headers: parsedHeaders,
|
|
773
|
-
onError: (error) => console.error(error),
|
|
774
|
-
timeout
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
return buildCacheInstance;
|
|
778
|
-
}
|
|
779
|
-
var PkgCacheState = /* @__PURE__ */ ((PkgCacheState2) => {
|
|
780
|
-
PkgCacheState2["Fresh"] = "fresh";
|
|
781
|
-
PkgCacheState2["Stale"] = "stale";
|
|
782
|
-
PkgCacheState2["Expired"] = "expired";
|
|
783
|
-
PkgCacheState2["NotFound"] = "notFound";
|
|
784
|
-
PkgCacheState2["Error"] = "error";
|
|
785
|
-
return PkgCacheState2;
|
|
786
|
-
})(PkgCacheState || {});
|
|
787
|
-
var HEADERS_VERCEL_CACHE_STATE = "x-vercel-cache-state";
|
|
788
|
-
var HEADERS_VERCEL_REVALIDATE = "x-vercel-revalidate";
|
|
789
|
-
var HEADERS_VERCEL_CACHE_TAGS = "x-vercel-cache-tags";
|
|
790
|
-
var HEADERS_VERCEL_CACHE_ITEM_NAME = "x-vercel-cache-item-name";
|
|
791
|
-
0 && (module.exports = {
|
|
792
|
-
HEADERS_VERCEL_CACHE_ITEM_NAME,
|
|
793
|
-
HEADERS_VERCEL_CACHE_STATE,
|
|
794
|
-
HEADERS_VERCEL_CACHE_TAGS,
|
|
795
|
-
HEADERS_VERCEL_REVALIDATE,
|
|
796
|
-
PkgCacheState,
|
|
797
|
-
getCache
|
|
798
|
-
});
|
|
799
|
-
}));
|
|
800
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/db-connections/index.js
|
|
801
|
-
var require_db_connections = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
802
|
-
var __defProp = Object.defineProperty;
|
|
803
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
804
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
805
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
806
|
-
var __export = (target, all) => {
|
|
807
|
-
for (var name in all) __defProp(target, name, {
|
|
808
|
-
get: all[name],
|
|
809
|
-
enumerable: true
|
|
810
|
-
});
|
|
811
|
-
};
|
|
812
|
-
var __copyProps = (to, from, except, desc) => {
|
|
813
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
814
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
815
|
-
get: () => from[key],
|
|
816
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
return to;
|
|
820
|
-
};
|
|
821
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
822
|
-
var db_connections_exports = {};
|
|
823
|
-
__export(db_connections_exports, {
|
|
824
|
-
attachDatabasePool: () => attachDatabasePool,
|
|
825
|
-
experimental_attachDatabasePool: () => experimental_attachDatabasePool
|
|
826
|
-
});
|
|
827
|
-
module.exports = __toCommonJS(db_connections_exports);
|
|
828
|
-
var import_get_context = require_get_context();
|
|
829
|
-
var import_deadline = require_deadline();
|
|
830
|
-
var DEBUG = !!process.env.DEBUG;
|
|
831
|
-
function getIdleTimeout(dbPool) {
|
|
832
|
-
if ("options" in dbPool && dbPool.options) {
|
|
833
|
-
if ("idleTimeoutMillis" in dbPool.options) return typeof dbPool.options.idleTimeoutMillis === "number" ? dbPool.options.idleTimeoutMillis : 1e4;
|
|
834
|
-
if ("maxIdleTimeMS" in dbPool.options) return typeof dbPool.options.maxIdleTimeMS === "number" ? dbPool.options.maxIdleTimeMS : 0;
|
|
835
|
-
if ("status" in dbPool) return 5e3;
|
|
836
|
-
if ("connect" in dbPool && "execute" in dbPool) return 3e4;
|
|
837
|
-
}
|
|
838
|
-
if ("config" in dbPool && dbPool.config) {
|
|
839
|
-
if ("connectionConfig" in dbPool.config && dbPool.config.connectionConfig) return dbPool.config.connectionConfig.idleTimeout || 6e4;
|
|
840
|
-
if ("idleTimeout" in dbPool.config) return typeof dbPool.config.idleTimeout === "number" ? dbPool.config.idleTimeout : 6e4;
|
|
841
|
-
}
|
|
842
|
-
if ("poolTimeout" in dbPool) return typeof dbPool.poolTimeout === "number" ? dbPool.poolTimeout : 6e4;
|
|
843
|
-
if ("idleTimeout" in dbPool) return typeof dbPool.idleTimeout === "number" ? dbPool.idleTimeout : 0;
|
|
844
|
-
return 1e4;
|
|
845
|
-
}
|
|
846
|
-
var idleTimeout = null;
|
|
847
|
-
var idleTimeoutResolve = () => {};
|
|
848
|
-
var maximumDuration = 899e3;
|
|
849
|
-
function waitUntilIdleTimeout(dbPool) {
|
|
850
|
-
if (!process.env.VERCEL_URL || !process.env.VERCEL_REGION) return;
|
|
851
|
-
if (idleTimeout) {
|
|
852
|
-
clearTimeout(idleTimeout);
|
|
853
|
-
idleTimeoutResolve();
|
|
854
|
-
}
|
|
855
|
-
const promise = new Promise((resolve) => {
|
|
856
|
-
idleTimeoutResolve = resolve;
|
|
857
|
-
});
|
|
858
|
-
const deadline = (0, import_deadline.getDeadline)();
|
|
859
|
-
const remainingDuration = deadline ? deadline.getTime() - Date.now() - 1e3 : maximumDuration;
|
|
860
|
-
const waitTime = Math.min(getIdleTimeout(dbPool) + 100, Math.max(100, remainingDuration));
|
|
861
|
-
idleTimeout = setTimeout(() => {
|
|
862
|
-
idleTimeoutResolve?.();
|
|
863
|
-
if (DEBUG) console.log("Database pool idle timeout reached. Releasing connections.");
|
|
864
|
-
}, waitTime);
|
|
865
|
-
const requestContext = (0, import_get_context.getContext)();
|
|
866
|
-
if (requestContext?.waitUntil) requestContext.waitUntil(promise);
|
|
867
|
-
else console.warn("Pool release event triggered outside of request scope.");
|
|
868
|
-
}
|
|
869
|
-
function attachDatabasePool(dbPool) {
|
|
870
|
-
if (idleTimeout) {
|
|
871
|
-
idleTimeoutResolve?.();
|
|
872
|
-
clearTimeout(idleTimeout);
|
|
873
|
-
}
|
|
874
|
-
if ("on" in dbPool && dbPool.on && "options" in dbPool && "idleTimeoutMillis" in dbPool.options) {
|
|
875
|
-
dbPool.on("release", () => {
|
|
876
|
-
if (DEBUG) console.log("Client released from pool");
|
|
877
|
-
waitUntilIdleTimeout(dbPool);
|
|
878
|
-
});
|
|
879
|
-
return;
|
|
880
|
-
} else if ("on" in dbPool && dbPool.on && "config" in dbPool && dbPool.config && "connectionConfig" in dbPool.config) {
|
|
881
|
-
dbPool.on("release", () => {
|
|
882
|
-
if (DEBUG) console.log("MySQL client released from pool");
|
|
883
|
-
waitUntilIdleTimeout(dbPool);
|
|
884
|
-
});
|
|
885
|
-
return;
|
|
886
|
-
} else if ("on" in dbPool && dbPool.on && "config" in dbPool && dbPool.config && "idleTimeout" in dbPool.config) {
|
|
887
|
-
dbPool.on("release", () => {
|
|
888
|
-
if (DEBUG) console.log("MySQL2/MariaDB client released from pool");
|
|
889
|
-
waitUntilIdleTimeout(dbPool);
|
|
890
|
-
});
|
|
891
|
-
return;
|
|
892
|
-
}
|
|
893
|
-
if ("on" in dbPool && dbPool.on && "options" in dbPool && dbPool.options && "maxIdleTimeMS" in dbPool.options) {
|
|
894
|
-
dbPool.on("connectionCheckedOut", () => {
|
|
895
|
-
if (DEBUG) console.log("MongoDB connection checked out");
|
|
896
|
-
waitUntilIdleTimeout(dbPool);
|
|
897
|
-
});
|
|
898
|
-
return;
|
|
899
|
-
}
|
|
900
|
-
if ("on" in dbPool && dbPool.on && "options" in dbPool && dbPool.options && "socket" in dbPool.options) {
|
|
901
|
-
dbPool.on("end", () => {
|
|
902
|
-
if (DEBUG) console.log("Redis connection ended");
|
|
903
|
-
waitUntilIdleTimeout(dbPool);
|
|
904
|
-
});
|
|
905
|
-
return;
|
|
906
|
-
}
|
|
907
|
-
throw new Error("Unsupported database pool type");
|
|
908
|
-
}
|
|
909
|
-
var experimental_attachDatabasePool = attachDatabasePool;
|
|
910
|
-
0 && (module.exports = {
|
|
911
|
-
attachDatabasePool,
|
|
912
|
-
experimental_attachDatabasePool
|
|
913
|
-
});
|
|
914
|
-
}));
|
|
915
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/purge/index.js
|
|
916
|
-
var require_purge = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
917
|
-
var __defProp = Object.defineProperty;
|
|
918
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
919
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
920
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
921
|
-
var __export = (target, all) => {
|
|
922
|
-
for (var name in all) __defProp(target, name, {
|
|
923
|
-
get: all[name],
|
|
924
|
-
enumerable: true
|
|
925
|
-
});
|
|
926
|
-
};
|
|
927
|
-
var __copyProps = (to, from, except, desc) => {
|
|
928
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
929
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
930
|
-
get: () => from[key],
|
|
931
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
return to;
|
|
935
|
-
};
|
|
936
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
937
|
-
var purge_exports = {};
|
|
938
|
-
__export(purge_exports, {
|
|
939
|
-
dangerouslyDeleteBySrcImage: () => dangerouslyDeleteBySrcImage,
|
|
940
|
-
dangerouslyDeleteByTag: () => dangerouslyDeleteByTag,
|
|
941
|
-
invalidateBySrcImage: () => invalidateBySrcImage,
|
|
942
|
-
invalidateByTag: () => invalidateByTag
|
|
943
|
-
});
|
|
944
|
-
module.exports = __toCommonJS(purge_exports);
|
|
945
|
-
var import_get_context = require_get_context();
|
|
946
|
-
var invalidateByTag = (tag) => {
|
|
947
|
-
const api = (0, import_get_context.getContext)().purge;
|
|
948
|
-
if (api) return api.invalidateByTag(tag);
|
|
949
|
-
return Promise.resolve();
|
|
950
|
-
};
|
|
951
|
-
var dangerouslyDeleteByTag = (tag, options) => {
|
|
952
|
-
const api = (0, import_get_context.getContext)().purge;
|
|
953
|
-
if (api) return api.dangerouslyDeleteByTag(tag, options);
|
|
954
|
-
return Promise.resolve();
|
|
955
|
-
};
|
|
956
|
-
var invalidateBySrcImage = (src) => {
|
|
957
|
-
const api = (0, import_get_context.getContext)().purge;
|
|
958
|
-
return api ? api.invalidateBySrcImage(src) : Promise.resolve();
|
|
959
|
-
};
|
|
960
|
-
var dangerouslyDeleteBySrcImage = (src, options) => {
|
|
961
|
-
const api = (0, import_get_context.getContext)().purge;
|
|
962
|
-
return api ? api.dangerouslyDeleteBySrcImage(src, options) : Promise.resolve();
|
|
963
|
-
};
|
|
964
|
-
0 && (module.exports = {
|
|
965
|
-
dangerouslyDeleteBySrcImage,
|
|
966
|
-
dangerouslyDeleteByTag,
|
|
967
|
-
invalidateBySrcImage,
|
|
968
|
-
invalidateByTag
|
|
969
|
-
});
|
|
970
|
-
}));
|
|
971
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/addcachetag/index.js
|
|
972
|
-
var require_addcachetag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
973
|
-
var __defProp = Object.defineProperty;
|
|
974
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
975
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
976
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
977
|
-
var __export = (target, all) => {
|
|
978
|
-
for (var name in all) __defProp(target, name, {
|
|
979
|
-
get: all[name],
|
|
980
|
-
enumerable: true
|
|
981
|
-
});
|
|
982
|
-
};
|
|
983
|
-
var __copyProps = (to, from, except, desc) => {
|
|
984
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
985
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
986
|
-
get: () => from[key],
|
|
987
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
return to;
|
|
991
|
-
};
|
|
992
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
993
|
-
var addcachetag_exports = {};
|
|
994
|
-
__export(addcachetag_exports, { addCacheTag: () => addCacheTag });
|
|
995
|
-
module.exports = __toCommonJS(addcachetag_exports);
|
|
996
|
-
var import_get_context = require_get_context();
|
|
997
|
-
var addCacheTag = (tag) => {
|
|
998
|
-
const addCacheTag2 = (0, import_get_context.getContext)().addCacheTag;
|
|
999
|
-
if (addCacheTag2) return addCacheTag2(tag);
|
|
1000
|
-
return Promise.resolve();
|
|
1001
|
-
};
|
|
1002
|
-
0 && (module.exports = { addCacheTag });
|
|
1003
|
-
}));
|
|
1004
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/websocket/index.js
|
|
1005
|
-
var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1006
|
-
var __defProp = Object.defineProperty;
|
|
1007
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1008
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1009
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1010
|
-
var __export = (target, all) => {
|
|
1011
|
-
for (var name in all) __defProp(target, name, {
|
|
1012
|
-
get: all[name],
|
|
1013
|
-
enumerable: true
|
|
1014
|
-
});
|
|
1015
|
-
};
|
|
1016
|
-
var __copyProps = (to, from, except, desc) => {
|
|
1017
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
1018
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
1019
|
-
get: () => from[key],
|
|
1020
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
1021
|
-
});
|
|
1022
|
-
}
|
|
1023
|
-
return to;
|
|
1024
|
-
};
|
|
1025
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1026
|
-
var websocket_exports = {};
|
|
1027
|
-
__export(websocket_exports, {
|
|
1028
|
-
experimental_upgradeWebSocket: () => experimental_upgradeWebSocket,
|
|
1029
|
-
upgradeWebSocket: () => upgradeWebSocket
|
|
1030
|
-
});
|
|
1031
|
-
module.exports = __toCommonJS(websocket_exports);
|
|
1032
|
-
var import_get_context = require_get_context();
|
|
1033
|
-
var DEFAULT_MAX_PAYLOAD = 262144;
|
|
1034
|
-
async function loadWebSocketServer() {
|
|
1035
|
-
try {
|
|
1036
|
-
return (await import("./wrapper-CIC3w0oC.js").then((n) => (n.n(), n.r))).WebSocketServer;
|
|
1037
|
-
} catch {
|
|
1038
|
-
throw new Error("The \"ws\" package is required for upgradeWebSocket(). Install it with: npm install ws");
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
async function upgradeWebSocket(handler, options = {}) {
|
|
1042
|
-
const ctx = (0, import_get_context.getContext)();
|
|
1043
|
-
if (typeof ctx.upgradeWebSocket !== "function") throw new Error("upgradeWebSocket is not available in the current runtime environment. This feature requires a Vercel runtime that supports WebSocket upgrades.");
|
|
1044
|
-
const WebSocketServer = await loadWebSocketServer();
|
|
1045
|
-
const { req, socket, head } = ctx.upgradeWebSocket();
|
|
1046
|
-
const wss = new WebSocketServer({
|
|
1047
|
-
noServer: true,
|
|
1048
|
-
maxPayload: options.maxPayload ?? DEFAULT_MAX_PAYLOAD
|
|
1049
|
-
});
|
|
1050
|
-
const ws = await new Promise((resolve, reject) => {
|
|
1051
|
-
const cleanup = () => {
|
|
1052
|
-
socket.removeListener("error", onError);
|
|
1053
|
-
socket.removeListener("close", onClose);
|
|
1054
|
-
};
|
|
1055
|
-
const rejectUpgrade = (err) => {
|
|
1056
|
-
cleanup();
|
|
1057
|
-
if (err instanceof Error) {
|
|
1058
|
-
reject(err);
|
|
1059
|
-
return;
|
|
1060
|
-
}
|
|
1061
|
-
const error = /* @__PURE__ */ new Error("WebSocket upgrade failed");
|
|
1062
|
-
error.cause = err;
|
|
1063
|
-
reject(error);
|
|
1064
|
-
};
|
|
1065
|
-
const resolveUpgrade = (ws2) => {
|
|
1066
|
-
cleanup();
|
|
1067
|
-
resolve(ws2);
|
|
1068
|
-
};
|
|
1069
|
-
const onError = (err) => rejectUpgrade(err);
|
|
1070
|
-
const onClose = () => rejectUpgrade(/* @__PURE__ */ new Error("socket closed before the WebSocket upgrade completed"));
|
|
1071
|
-
socket.once("error", onError);
|
|
1072
|
-
socket.once("close", onClose);
|
|
1073
|
-
try {
|
|
1074
|
-
wss.handleUpgrade(req, socket, head, resolveUpgrade);
|
|
1075
|
-
} catch (err) {
|
|
1076
|
-
rejectUpgrade(err);
|
|
1077
|
-
}
|
|
1078
|
-
});
|
|
1079
|
-
try {
|
|
1080
|
-
await handler(ws);
|
|
1081
|
-
} catch (err) {
|
|
1082
|
-
ws.close(1011, "WebSocket handler failed");
|
|
1083
|
-
throw err;
|
|
1084
|
-
}
|
|
1085
|
-
return new Response(null, { status: 204 });
|
|
1086
|
-
}
|
|
1087
|
-
var experimental_upgradeWebSocket = upgradeWebSocket;
|
|
1088
|
-
0 && (module.exports = {
|
|
1089
|
-
experimental_upgradeWebSocket,
|
|
1090
|
-
upgradeWebSocket
|
|
1091
|
-
});
|
|
1092
|
-
}));
|
|
1093
|
-
// ../../node_modules/.bun/@vercel+functions@3.10.6+515bbb3d54fa2a43/node_modules/@vercel/functions/index.js
|
|
1094
|
-
var require_functions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1095
|
-
var __defProp = Object.defineProperty;
|
|
1096
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1097
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1098
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1099
|
-
var __export = (target, all) => {
|
|
1100
|
-
for (var name in all) __defProp(target, name, {
|
|
1101
|
-
get: all[name],
|
|
1102
|
-
enumerable: true
|
|
1103
|
-
});
|
|
1104
|
-
};
|
|
1105
|
-
var __copyProps = (to, from, except, desc) => {
|
|
1106
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
1107
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
1108
|
-
get: () => from[key],
|
|
1109
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
return to;
|
|
1113
|
-
};
|
|
1114
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1115
|
-
var src_exports = {};
|
|
1116
|
-
__export(src_exports, {
|
|
1117
|
-
addCacheTag: () => import_addcachetag.addCacheTag,
|
|
1118
|
-
attachDatabasePool: () => import_db_connections.attachDatabasePool,
|
|
1119
|
-
dangerouslyDeleteBySrcImage: () => import_purge.dangerouslyDeleteBySrcImage,
|
|
1120
|
-
dangerouslyDeleteByTag: () => import_purge.dangerouslyDeleteByTag,
|
|
1121
|
-
experimental_attachDatabasePool: () => import_db_connections.experimental_attachDatabasePool,
|
|
1122
|
-
experimental_upgradeWebSocket: () => import_websocket.experimental_upgradeWebSocket,
|
|
1123
|
-
geolocation: () => import_headers.geolocation,
|
|
1124
|
-
getCache: () => import_cache.getCache,
|
|
1125
|
-
getDeadline: () => import_deadline.getDeadline,
|
|
1126
|
-
getEnv: () => import_get_env.getEnv,
|
|
1127
|
-
invalidateBySrcImage: () => import_purge.invalidateBySrcImage,
|
|
1128
|
-
invalidateByTag: () => import_purge.invalidateByTag,
|
|
1129
|
-
ipAddress: () => import_headers.ipAddress,
|
|
1130
|
-
metric: () => import_metric.metric,
|
|
1131
|
-
next: () => import_middleware.next,
|
|
1132
|
-
rewrite: () => import_middleware.rewrite,
|
|
1133
|
-
upgradeWebSocket: () => import_websocket.upgradeWebSocket,
|
|
1134
|
-
waitUntil: () => import_wait_until.waitUntil
|
|
1135
|
-
});
|
|
1136
|
-
module.exports = __toCommonJS(src_exports);
|
|
1137
|
-
var import_headers = require_headers();
|
|
1138
|
-
var import_get_env = require_get_env();
|
|
1139
|
-
var import_deadline = require_deadline();
|
|
1140
|
-
var import_wait_until = require_wait_until();
|
|
1141
|
-
var import_metric = require_metric();
|
|
1142
|
-
var import_middleware = require_middleware();
|
|
1143
|
-
var import_cache = require_cache();
|
|
1144
|
-
var import_db_connections = require_db_connections();
|
|
1145
|
-
var import_purge = require_purge();
|
|
1146
|
-
var import_addcachetag = require_addcachetag();
|
|
1147
|
-
var import_websocket = require_websocket();
|
|
1148
|
-
0 && (module.exports = {
|
|
1149
|
-
addCacheTag,
|
|
1150
|
-
attachDatabasePool,
|
|
1151
|
-
dangerouslyDeleteBySrcImage,
|
|
1152
|
-
dangerouslyDeleteByTag,
|
|
1153
|
-
experimental_attachDatabasePool,
|
|
1154
|
-
experimental_upgradeWebSocket,
|
|
1155
|
-
geolocation,
|
|
1156
|
-
getCache,
|
|
1157
|
-
getDeadline,
|
|
1158
|
-
getEnv,
|
|
1159
|
-
invalidateBySrcImage,
|
|
1160
|
-
invalidateByTag,
|
|
1161
|
-
ipAddress,
|
|
1162
|
-
metric,
|
|
1163
|
-
next,
|
|
1164
|
-
rewrite,
|
|
1165
|
-
upgradeWebSocket,
|
|
1166
|
-
waitUntil
|
|
1167
|
-
});
|
|
1168
|
-
}));
|
|
1169
|
-
export default require_functions();
|
|
1170
|
-
export {};
|