decord/source/13376_next.js
2026-07-27 11:26:19 +00:00

614 lines
24 KiB
JavaScript

// Module ID: 13376
// Function ID: 102421
// Name: next
// Dependencies: [6, 7, 77, 57, 13370, 13377, 13378]
// Module 13376 (next)
import _classCallCheck from "_";
import _defineProperties from "_defineProperties";
import _defineProperty from "_defineProperty";
import _slicedToArray from "_slicedToArray";
let obj = {
value: function next() {
let index;
let kind;
let tmp7;
let tmp8;
const tmp = this[require(undefined, 13370) /* wrapperForImpl */.iterInternalSymbol];
({ kind, index } = tmp);
const arr = Array.from(tmp.target[require(undefined, 13370) /* wrapperForImpl */.implSymbol]);
if (index >= arr.length) {
let obj = { value: undefined, done: true };
return obj;
} else {
tmp.index = index + 1;
[tmp7, tmp8] = _slicedToArray(arr[index].map(require(13370) /* wrapperForImpl */.tryWrapperForImpl), 2);
if ("key" === kind) {
let tmp2 = tmp7;
} else if ("value" === kind) {
tmp2 = tmp8;
} else if ("key+value" === kind) {
const items = [tmp7, tmp8];
tmp2 = items;
}
obj = { value: tmp2, done: false };
return obj;
}
},
writable: true,
enumerable: true,
configurable: true
};
let closure_7 = Object.create(require("wrapperForImpl").IteratorPrototype, _defineProperty({ next: obj }, Symbol.toStringTag, { value: "URLSearchParams Iterator", configurable: true }));
obj = {
_mixedIntoPredicates: [],
is(arg0) {
if (arg0) {
if (obj.hasOwn(tmp, require(13370) /* wrapperForImpl */.implSymbol)) {
if (tmp[require(undefined, 13370) /* wrapperForImpl */.implSymbol] instanceof require(13377) /* URLSearchParamsImpl */.implementation) {
return true;
}
}
const _mixedIntoPredicates = module.exports._mixedIntoPredicates;
for (const item10031 of _mixedIntoPredicates) {
let tmp10 = arg0;
if (item10031(tmp)) {
obj2.return();
let flag = true;
return true;
}
}
obj = require(13370) /* wrapperForImpl */;
}
return false;
},
isImpl(getAll) {
if (getAll) {
if (getAll instanceof require(13377) /* URLSearchParamsImpl */.implementation) {
return true;
} else {
const wrapperForImplResult = require(13370) /* wrapperForImpl */.wrapperForImpl(getAll);
const _mixedIntoPredicates = module.exports._mixedIntoPredicates;
for (const item10022 of _mixedIntoPredicates) {
let tmp8 = wrapperForImplResult;
if (item10022(wrapperForImplResult)) {
obj2.return();
let flag = true;
return true;
}
}
const obj = require(13370) /* wrapperForImpl */;
}
}
return false;
},
convert(arg0) {
if (arguments.length > 1) {
const context = {}.context;
let str = "The provided value";
if (undefined !== context) {
str = context;
}
const _exports = module.exports;
if (_exports.is(arg0)) {
return require(13370) /* wrapperForImpl */.implForWrapper(arg0);
} else {
const _TypeError = TypeError;
const _HermesInternal = HermesInternal;
const typeError = new TypeError("" + str + " is not of type 'URLSearchParams'.");
throw typeError;
}
}
},
createDefaultIterator(self, key) {
let obj = Object.create(closure_7);
obj = { target: self, kind: key, index: 0 };
Object.defineProperty(obj, require(13370) /* wrapperForImpl */.iterInternalSymbol, { value: obj, configurable: true });
return obj;
},
create(arg0, arg1, arg2) {
if (undefined === arg0[require(undefined, 13370) /* wrapperForImpl */.ctorRegistrySymbol]) {
const _Error2 = Error;
const error = new Error("Internal error: invalid global object");
throw error;
} else {
const _URLSearchParams = arg0[require(undefined, 13370) /* wrapperForImpl */.ctorRegistrySymbol].URLSearchParams;
if (undefined === _URLSearchParams) {
const _Error = Error;
const error1 = new Error("Internal error: constructor URLSearchParams is not installed on the passed global object");
throw error1;
} else {
const _Object = Object;
return obj.setup(Object.create(_URLSearchParams.prototype), arg0, arg1, arg2);
}
}
},
createImpl(arg0, arg1, arg2) {
obj = obj.create(arg0, arg1, arg2);
obj = require(13370) /* wrapperForImpl */;
return obj.implForWrapper(obj);
},
_internalSetup(arg0) {
},
setup(wrapper) {
if (arguments.length > 2) {
if (undefined !== arguments[2]) {
let items = arguments[2];
}
if (arguments.length > 3) {
if (undefined !== arguments[3]) {
let obj = arguments[3];
}
obj.wrapper = wrapper;
obj._internalSetup(wrapper);
const _Object = Object;
obj = {};
let implementation = require(13377) /* URLSearchParamsImpl */.implementation;
const prototype = implementation.prototype;
implementation = new implementation(arg1, items, obj);
obj.value = implementation;
obj.configurable = true;
Object.defineProperty(wrapper, require(13370) /* wrapperForImpl */.implSymbol, obj);
wrapper[require(undefined, 13370) /* wrapperForImpl */.implSymbol][require(13370) /* wrapperForImpl */.wrapperSymbol] = wrapper;
if (require(13377) /* URLSearchParamsImpl */.init) {
require(13377) /* URLSearchParamsImpl */.init(wrapper[require(undefined, 13370) /* wrapperForImpl */.implSymbol], obj);
const obj3 = require(13377) /* URLSearchParamsImpl */;
}
return wrapper;
}
obj = {};
}
items = [];
},
install(arg0) {
const _require = arg0;
const tmp = (() => {
class URLSearchParams {
constructor() {
tmp = outer2_3(this, URLSearchParams);
items = [];
first = arguments[0];
tmp3 = first;
if (undefined !== first) {
tmp4 = closure_0;
tmp5 = outer2_2;
num = 4;
obj = closure_0(outer2_2[4]);
tmp6 = first;
if (obj.isObject(tmp3)) {
tmp10 = first;
tmp11 = globalThis;
_Symbol = Symbol;
if (undefined !== tmp3[Symbol.iterator]) {
tmp30 = closure_0;
tmp31 = outer2_2;
obj8 = closure_0(outer2_2[4]);
tmp32 = first;
if (obj8.isObject(tmp3)) {
items1 = [];
tmp37 = first;
tmp38 = tmp3;
iter2 = first[Symbol.iterator]();
num4 = 6;
str7 = "Failed to construct 'URLSearchParams': parameter 1 sequence's element's element";
nextResult = iter2.next();
tmp40 = iter2;
while (iter2 !== undefined) {
tmp64 = closure_0;
tmp65 = outer2_2;
tmp63 = nextResult;
obj12 = closure_0(outer2_2[4]);
if (obj12.isObject(nextResult)) {
items2 = [];
tmp45 = nextResult;
tmp46 = tmp63;
for (const item10114 of nextResult) {
tmp47 = closure_0;
tmp48 = outer2_2;
obj9 = closure_0(outer2_2[6]);
obj = {};
obj.context = "Failed to construct 'URLSearchParams': parameter 1 sequence's element's element";
tmp49 = items2;
arr = items2.push(obj9.USVString(item10114, obj));
continue;
}
tmp51 = items2;
tmp52 = items2;
tmp53 = items1;
arr1 = items1.push(items2);
continue;
} else {
_TypeError3 = TypeError;
prototype3 = TypeError.prototype;
tmp41 = new.target;
str8 = "Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.";
tmp42 = new.target;
typeError = new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");
tmp44 = typeError;
throw typeError;
}
}
str = items1;
} else {
_TypeError2 = TypeError;
prototype2 = TypeError.prototype;
tmp33 = new.target;
str6 = "Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.";
tmp34 = new.target;
typeError1 = new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");
tmp36 = typeError1;
throw typeError1;
}
} else {
tmp56 = closure_0;
tmp57 = outer2_2;
obj11 = closure_0(outer2_2[4]);
tmp58 = first;
if (obj11.isObject(tmp3)) {
_Object = Object;
tmp16 = null;
obj1 = Object.create(null);
_Reflect = Reflect;
tmp18 = first;
ownKeysResult = Reflect.ownKeys(tmp3);
tmp20 = ownKeysResult;
iter = ownKeysResult[Symbol.iterator]();
num3 = 6;
str4 = "Failed to construct 'URLSearchParams': parameter 1 record's key";
str5 = "Failed to construct 'URLSearchParams': parameter 1 record's value";
nextResult1 = iter.next();
tmp22 = iter;
while (iter !== undefined) {
tmp59 = nextResult1;
_Object2 = Object;
tmp60 = first;
ownPropertyDescriptor = Object.getOwnPropertyDescriptor(tmp3, nextResult1);
if (ownPropertyDescriptor) {
tmp23 = ownPropertyDescriptor;
if (tmp62.enumerable) {
tmp24 = nextResult1;
tmp25 = closure_0;
tmp26 = outer2_2;
obj4 = closure_0(outer2_2[6]);
obj2 = {};
obj2.context = "Failed to construct 'URLSearchParams': parameter 1 record's key";
tmp28 = first;
USVStringResult = obj4.USVString(tmp59, obj2);
obj6 = closure_0(outer2_2[6]);
obj3 = {};
obj3.context = "Failed to construct 'URLSearchParams': parameter 1 record's value";
tmp29 = obj1;
obj1[USVStringResult] = obj6.USVString(tmp3[tmp59], obj3);
}
}
continue;
}
str = obj1;
} else {
_TypeError = TypeError;
prototype = TypeError.prototype;
tmp12 = new.target;
str3 = "Failed to construct 'URLSearchParams': parameter 1 record is not an object.";
tmp13 = new.target;
typeError2 = new TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");
tmp15 = typeError2;
throw typeError2;
}
}
} else {
tmp7 = closure_0;
tmp8 = outer2_2;
num2 = 6;
obj2 = closure_0(outer2_2[6]);
tmp9 = first;
obj4 = {};
str2 = "Failed to construct 'URLSearchParams': parameter 1";
obj4.context = "Failed to construct 'URLSearchParams': parameter 1";
str = obj2.USVString(tmp3, obj4);
}
} else {
str = "";
}
arr2 = items.push(str);
return outer2_8.setup(Object.create(this.constructor.prototype), URLSearchParams, items);
}
}
let obj = {
key: "append",
value: function append(arg0, arg1) {
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
if (arguments.length < 2) {
const _TypeError = TypeError;
const typeError = new TypeError("Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only " + arguments.length + " present.");
throw typeError;
} else {
const items = [];
let obj = _URLSearchParams(outer2_2[6]);
obj = { context: "Failed to execute 'append' on 'URLSearchParams': parameter 1" };
items.push(obj.USVString(arguments[0], obj));
obj = { context: "Failed to execute 'append' on 'URLSearchParams': parameter 2" };
items.push(_URLSearchParams(outer2_2[6]).USVString(arguments[1], obj));
const tmp12 = self[_URLSearchParams(undefined, outer2_2[4]).implSymbol];
const append = tmp12.append;
return append.apply(tmp12, items);
}
}
}
const typeError1 = new TypeError("Illegal invocation");
throw typeError1;
}
};
let items = [obj, , , , , , , , , , , ];
obj = {
key: "delete",
value: function _delete(arg0) {
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
if (arguments.length < 1) {
const _TypeError = TypeError;
const typeError = new TypeError("Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only " + arguments.length + " present.");
throw typeError;
} else {
const items = [];
let obj = _URLSearchParams(outer2_2[6]);
obj = { context: "Failed to execute 'delete' on 'URLSearchParams': parameter 1" };
items.push(obj.USVString(arguments[0], obj));
const tmp6 = self[_URLSearchParams(undefined, outer2_2[4]).implSymbol];
const _delete = tmp6.delete;
return _delete.apply(tmp6, items);
}
}
}
const typeError1 = new TypeError("Illegal invocation");
throw typeError1;
}
};
items[1] = obj;
obj = {
key: "get",
value: function get(arg0) {
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
if (arguments.length < 1) {
const _TypeError = TypeError;
const typeError = new TypeError("Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only " + arguments.length + " present.");
throw typeError;
} else {
const items = [];
let obj = _URLSearchParams(outer2_2[6]);
obj = { context: "Failed to execute 'get' on 'URLSearchParams': parameter 1" };
items.push(obj.USVString(arguments[0], obj));
const tmp6 = self[_URLSearchParams(undefined, outer2_2[4]).implSymbol];
const get = tmp6.get;
return get.apply(tmp6, items);
}
}
}
const typeError1 = new TypeError("Illegal invocation");
throw typeError1;
}
};
items[2] = obj;
items[3] = {
key: "getAll",
value: function getAll(arg0) {
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
if (arguments.length < 1) {
const _TypeError = TypeError;
const typeError = new TypeError("Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only " + arguments.length + " present.");
throw typeError;
} else {
const items = [];
let obj = _URLSearchParams(outer2_2[6]);
obj = { context: "Failed to execute 'getAll' on 'URLSearchParams': parameter 1" };
items.push(obj.USVString(arguments[0], obj));
const tmp11 = self[_URLSearchParams(undefined, outer2_2[4]).implSymbol];
const getAll = tmp11.getAll;
return _URLSearchParams(outer2_2[4]).tryWrapperForImpl(getAll.apply(tmp11, items));
}
}
}
const typeError1 = new TypeError("Illegal invocation");
throw typeError1;
}
};
items[4] = {
key: "has",
value: function has(arg0) {
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
if (arguments.length < 1) {
const _TypeError = TypeError;
const typeError = new TypeError("Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only " + arguments.length + " present.");
throw typeError;
} else {
const items = [];
let obj = _URLSearchParams(outer2_2[6]);
obj = { context: "Failed to execute 'has' on 'URLSearchParams': parameter 1" };
items.push(obj.USVString(arguments[0], obj));
const tmp6 = self[_URLSearchParams(undefined, outer2_2[4]).implSymbol];
const has = tmp6.has;
return has.apply(tmp6, items);
}
}
}
const typeError1 = new TypeError("Illegal invocation");
throw typeError1;
}
};
items[5] = {
key: "set",
value: function set(arg0, arg1) {
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
if (arguments.length < 2) {
const _TypeError = TypeError;
const typeError = new TypeError("Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only " + arguments.length + " present.");
throw typeError;
} else {
const items = [];
let obj = _URLSearchParams(outer2_2[6]);
obj = { context: "Failed to execute 'set' on 'URLSearchParams': parameter 1" };
items.push(obj.USVString(arguments[0], obj));
obj = { context: "Failed to execute 'set' on 'URLSearchParams': parameter 2" };
items.push(_URLSearchParams(outer2_2[6]).USVString(arguments[1], obj));
const tmp12 = self[_URLSearchParams(undefined, outer2_2[4]).implSymbol];
return tmp12.set.apply(tmp12, items);
}
}
}
const typeError1 = new TypeError("Illegal invocation");
throw typeError1;
}
};
items[6] = {
key: "sort",
value: function sort() {
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
return self[_URLSearchParams(undefined, outer2_2[4]).implSymbol].sort();
}
}
const typeError = new TypeError("Illegal invocation");
throw typeError;
}
};
items[7] = {
key: "toString",
value: function toString() {
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
return self[_URLSearchParams(undefined, outer2_2[4]).implSymbol].toString();
}
}
const typeError = new TypeError("Illegal invocation");
throw typeError;
}
};
items[8] = {
key: "keys",
value: function keys() {
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
const _exports2 = outer2_1.exports;
return _exports2.createDefaultIterator(self, "key");
}
}
const typeError = new TypeError("Illegal invocation");
throw typeError;
}
};
items[9] = {
key: "values",
value: function values() {
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
const _exports2 = outer2_1.exports;
return _exports2.createDefaultIterator(self, "value");
}
}
const typeError = new TypeError("Illegal invocation");
throw typeError;
}
};
items[10] = {
key: "entries",
value: function entries() {
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
const _exports2 = outer2_1.exports;
return _exports2.createDefaultIterator(self, "key+value");
}
}
const typeError = new TypeError("Illegal invocation");
throw typeError;
}
};
items[11] = {
key: "forEach",
value: function forEach(call) {
let length;
const self = this;
if (this) {
const _exports = outer2_1.exports;
if (_exports.is(self)) {
if (arguments.length < 1) {
const _TypeError2 = TypeError;
const typeError = new TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");
throw typeError;
} else if ("function" !== typeof call) {
const _TypeError = TypeError;
const typeError1 = new TypeError("Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1 is not a function.");
throw typeError1;
} else {
const tmp22 = arguments[1];
const _Array2 = Array;
let arr = Array.from(self[_URLSearchParams(undefined, outer2_2[4]).implSymbol]);
let tmp11 = arr;
let num2 = 0;
if (0 < arr.length) {
do {
arr = tmp11[num2];
let tmp3 = _URLSearchParams;
let tmp4 = outer2_2;
let tmp5 = outer2_6;
let tmp6 = outer2_6(arr.map(_URLSearchParams(outer2_2[4]).tryWrapperForImpl), 2);
let tmp7 = call;
let tmp8 = tmp22;
let tmp9 = self;
let callResult = call.call(tmp22, tmp6[1], tmp6[0], self);
let _Array = Array;
arr = Array.from(self[_URLSearchParams(undefined, outer2_2[4]).implSymbol]);
num2 = num2 + 1;
tmp11 = arr;
length = arr.length;
} while (num2 < length);
}
}
}
}
const typeError2 = new TypeError("Illegal invocation");
throw typeError2;
}
};
return outer1_4(URLSearchParams, items);
})();
let obj = { value: tmp.prototype.entries, configurable: true, writable: true };
Object.defineProperties(tmp.prototype, _defineProperty(_defineProperty({ append: { enumerable: true }, delete: { enumerable: true }, get: { enumerable: true }, getAll: { enumerable: true }, has: { enumerable: true }, set: { enumerable: true }, sort: { enumerable: true }, toString: { enumerable: true }, keys: { enumerable: true }, values: { enumerable: true }, entries: { enumerable: true }, forEach: { enumerable: true } }, Symbol.toStringTag, { value: "URLSearchParams", configurable: true }), Symbol.iterator, obj));
if (undefined === arg0[_require(undefined, 13370).ctorRegistrySymbol]) {
let _Object = Object;
arg0[_require(13370).ctorRegistrySymbol] = Object.create(null);
}
arg0[_require(undefined, 13370).ctorRegistrySymbol].URLSearchParams = tmp;
obj = { configurable: true, writable: true, value: tmp };
Object.defineProperty(arg0, "URLSearchParams", obj);
}
};
export default obj;