Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

74 lines
2.2 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 7ca6a3197ddfa72d.b84d98d989.js
* Module id: 755115
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, r) => {
"use strict";
Object.defineProperty(r, "__esModule", { value: !0 });
var n = {
isHangingPromiseRejectionError: function () {
return o;
},
makeDevtoolsIOAwarePromise: function () {
return l;
},
makeHangingPromise: function () {
return c;
},
};
for (var a in n) Object.defineProperty(r, a, { enumerable: !0, get: n[a] });
function o(e) {
return (
"object" == typeof e && null !== e && "digest" in e && e.digest === i
);
}
let i = "HANGING_PROMISE_REJECTION";
class u extends Error {
constructor(e, t) {
super(
`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${e}".`,
),
(this.route = e),
(this.expression = t),
(this.digest = i);
}
}
let s = new WeakMap();
function c(e, t, r) {
if (e.aborted) return Promise.reject(new u(t, r));
{
let n = new Promise((n, a) => {
let o = a.bind(null, new u(t, r)),
i = s.get(e);
if (i) i.push(o);
else {
let t = [o];
s.set(e, t),
e.addEventListener(
"abort",
() => {
for (let e = 0; e < t.length; e++) t[e]();
},
{ once: !0 },
);
}
});
return n.catch(d), n;
}
}
function d() {}
function l(e, t, r) {
return t.stagedRendering
? t.stagedRendering.delayUntilStage(r, void 0, e)
: new Promise((t) => {
setTimeout(() => {
t(e);
}, 0);
});
}
};
export default moduleFactory;