2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 228
|
2026-07-29 08:29:29 +00:00
|
|
|
// Function ID: 229
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: _isNativeReflectConstruct
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [41, 42, 93, 95, 98, 229]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
// Module 228 (_isNativeReflectConstruct)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _classCallCheck from "_classCallCheck";
|
2026-07-29 08:29:29 +00:00
|
|
|
import _createClass from "_createClass";
|
|
|
|
|
import c3 from "_possibleConstructorReturn";
|
2026-07-23 10:11:24 +00:00
|
|
|
import _getPrototypeOf from "_getPrototypeOf";
|
|
|
|
|
import _inherits from "_inherits";
|
2026-07-29 08:29:29 +00:00
|
|
|
import Event from "Event";
|
2026-07-22 07:54:56 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
let AbortController = require;
|
2026-07-20 16:05:17 +00:00
|
|
|
function _isNativeReflectConstruct() {
|
2026-07-29 08:29:29 +00:00
|
|
|
try {
|
|
|
|
|
const _Boolean = Boolean;
|
|
|
|
|
const call = valueOf.call;
|
|
|
|
|
const _Reflect = Reflect;
|
|
|
|
|
const _Boolean2 = Boolean;
|
|
|
|
|
if (typeof call === "unknown") {
|
|
|
|
|
let callResult = valueOf();
|
|
|
|
|
} else {
|
|
|
|
|
callResult = call(constructResult);
|
|
|
|
|
}
|
|
|
|
|
let closure_0 = !callResult;
|
|
|
|
|
function _isNativeReflectConstruct() {
|
|
|
|
|
return closure_0;
|
|
|
|
|
}
|
|
|
|
|
return _isNativeReflectConstruct();
|
|
|
|
|
} catch (err) {
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
class AbortSignal {
|
|
|
|
|
constructor() {
|
|
|
|
|
self = this;
|
|
|
|
|
tmp = _isNativeReflectConstruct(this, AbortController);
|
|
|
|
|
tmp2 = _isNativeReflectConstruct;
|
|
|
|
|
obj = _isNativeReflectConstruct(AbortController);
|
|
|
|
|
tmp3 = _isNativeReflectConstruct;
|
|
|
|
|
if (_isNativeReflectConstruct()) {
|
|
|
|
|
tmp5 = globalThis;
|
|
|
|
|
_Reflect = Reflect;
|
|
|
|
|
constructResult = Reflect.construct(obj, [], tmp2(self).constructor);
|
|
|
|
|
} else {
|
|
|
|
|
constructResult = obj.apply(self, undefined);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp3Result = tmp3(self, constructResult);
|
|
|
|
|
typeError = new TypeError("AbortSignal cannot be constructed directly");
|
|
|
|
|
throw typeError;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
AbortController = AbortSignal;
|
|
|
|
|
_inherits(AbortSignal, require("Event").EventTarget);
|
|
|
|
|
let obj = {
|
|
|
|
|
key: "aborted",
|
|
|
|
|
get() {
|
|
|
|
|
const self = this;
|
|
|
|
|
const value = weakMap.get(this);
|
2026-08-04 21:03:28 +00:00
|
|
|
if (typeof value !== "boolean") {
|
2026-07-29 08:29:29 +00:00
|
|
|
let str = "null";
|
|
|
|
|
if (null !== self) {
|
|
|
|
|
str = typeof self;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const typeError = new TypeError("Expected 'this' to be an 'AbortSignal' object, but got " + str);
|
2026-07-20 16:05:17 +00:00
|
|
|
throw typeError;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
|
|
|
|
return value;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
const items = [obj];
|
|
|
|
|
const _moduleResult = _createClass(AbortSignal, items);
|
|
|
|
|
Event.defineEventAttribute(_moduleResult.prototype, "abort");
|
2026-07-20 16:05:17 +00:00
|
|
|
const weakMap = new WeakMap();
|
2026-07-29 08:29:29 +00:00
|
|
|
Object.defineProperties(_moduleResult.prototype, { aborted: { enumerable: true } });
|
2026-08-04 21:03:28 +00:00
|
|
|
let tmp9 = typeof Symbol === "function";
|
|
|
|
|
if (typeof Symbol === "function") {
|
2026-07-29 08:29:29 +00:00
|
|
|
const _Symbol3 = Symbol;
|
2026-08-04 21:03:28 +00:00
|
|
|
tmp9 = typeof Symbol.toStringTag === "symbol";
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp9) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const _Object = Object;
|
2026-07-29 08:29:29 +00:00
|
|
|
const _Symbol = Symbol;
|
|
|
|
|
Object.defineProperty(_moduleResult.prototype, Symbol.toStringTag, { configurable: true, value: "AbortSignal" });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
class AbortController {
|
|
|
|
|
constructor() {
|
|
|
|
|
tmp = _isNativeReflectConstruct(this, AbortController);
|
|
|
|
|
tmp2 = WeakMap;
|
|
|
|
|
obj = Object.create(get.prototype);
|
|
|
|
|
_EventTarget = require("Event").EventTarget;
|
|
|
|
|
call = _EventTarget.call;
|
|
|
|
|
if (typeof call === "unknown") {
|
|
|
|
|
_EventTargetResult = _EventTarget();
|
|
|
|
|
} else {
|
|
|
|
|
callResult = call(obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
result = WeakMap.set(obj, false);
|
|
|
|
|
result1 = WeakMap.set(this, obj);
|
|
|
|
|
return;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
obj = {
|
|
|
|
|
key: "signal",
|
|
|
|
|
get() {
|
|
|
|
|
const self = this;
|
|
|
|
|
const value = weakMap1.get(this);
|
|
|
|
|
if (null == value) {
|
|
|
|
|
let str = "null";
|
|
|
|
|
if (null !== self) {
|
|
|
|
|
str = typeof self;
|
|
|
|
|
}
|
|
|
|
|
const typeError = new TypeError("Expected 'this' to be an 'AbortController' object, but got " + str);
|
|
|
|
|
throw typeError;
|
|
|
|
|
} else {
|
|
|
|
|
return value;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const items1 = [
|
|
|
|
|
obj,
|
|
|
|
|
{
|
2026-07-20 16:05:17 +00:00
|
|
|
key: "abort",
|
|
|
|
|
value: function abort() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const value = weakMap1.get(this);
|
|
|
|
|
if (null == value) {
|
|
|
|
|
let str = "null";
|
|
|
|
|
if (null !== self) {
|
|
|
|
|
str = typeof self;
|
|
|
|
|
}
|
|
|
|
|
const typeError = new TypeError("Expected 'this' to be an 'AbortController' object, but got " + str);
|
|
|
|
|
throw typeError;
|
|
|
|
|
} else if (false === weakMap.get(value)) {
|
|
|
|
|
const result = weakMap.set(value, true);
|
|
|
|
|
value.dispatchEvent({ type: "abort" });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
const _moduleResult1 = _createClass(AbortController, items1);
|
2026-07-20 16:05:17 +00:00
|
|
|
const weakMap1 = new WeakMap();
|
2026-07-29 08:29:29 +00:00
|
|
|
Object.defineProperties(_moduleResult1.prototype, { signal: { enumerable: true }, abort: { enumerable: true } });
|
2026-08-04 21:03:28 +00:00
|
|
|
let tmp14 = typeof Symbol === "function";
|
|
|
|
|
if (typeof Symbol === "function") {
|
2026-07-29 08:29:29 +00:00
|
|
|
const _Symbol4 = Symbol;
|
2026-08-04 21:03:28 +00:00
|
|
|
tmp14 = typeof Symbol.toStringTag === "symbol";
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp14) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const _Object2 = Object;
|
2026-07-29 08:29:29 +00:00
|
|
|
const _Symbol2 = Symbol;
|
|
|
|
|
Object.defineProperty(_moduleResult1.prototype, Symbol.toStringTag, { configurable: true, value: "AbortController" });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
module.exports.default = _moduleResult1;
|
|
|
|
|
module.exports.AbortController = _moduleResult1;
|
|
|
|
|
module.exports.AbortSignal = _moduleResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export const AbortController = _moduleResult1;
|
|
|
|
|
export const AbortSignal = _moduleResult;
|
|
|
|
|
export default _moduleResult1;
|