decord/source/module_4948.js

40 lines
1,009 B
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4948
// Function ID: 4949
// Dependencies: [4949]
2026-08-07 06:50:47 +00:00
2026-08-24 06:08:38 +00:00
// Module 4948
2026-08-15 05:55:55 +00:00
const module = arg2;
const dependencyMap = arg6;
arg5.default = {
decode(arg0, buffer) {
2026-08-24 06:08:38 +00:00
let value = module(4949).get();
2026-08-15 05:55:55 +00:00
if (undefined !== value) {
if (undefined !== arg0) {
try {
value = new value(arg0);
const _DataView = DataView;
if (buffer instanceof DataView) {
buffer = buffer.buffer;
} else {
const _Uint8Array = Uint8Array;
buffer = Uint8Array.from(buffer);
}
value.decode(buffer);
} catch (err) {
2026-08-12 06:57:52 +00:00
}
}
}
2026-08-15 05:55:55 +00:00
const mapped = buffer.map((arg0) => String.fromCharCode(arg0));
return (function decodeAsciiValue(mapped) {
try {
const _decodeURIComponent = decodeURIComponent;
const _escape = escape;
return decodeURIComponent(escape(mapped));
} catch (err) {
return tmp;
2026-08-12 06:57:52 +00:00
}
2026-08-15 05:55:55 +00:00
})(mapped.join(""));
},
TAG_HEADER_SIZE: 5
};