decord/stable/source/modules/rtc/SecureFramesBoundPairwiseFingerprint.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

125 lines
5.1 KiB
TypeScript

// Module ID: 10009
// Function ID: 10010
// Name: SecureFramesBoundPairwiseFingerprint
// Dependencies: [5, 502, 4811, 10004, 206, 9987, 2]
// Exports: computeBoundPairwiseFingerprint
// Module 10009 (SecureFramesBoundPairwiseFingerprint)
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
import RTCConnectionStore from "RTCConnectionStore" /* 4811 */;
const require = fn;
let closure_8 = async function _computeBoundPairwiseFingerprint(arg0, value) {
if (c3 === 2) {
c3 = 3;
throw new TypeError("Generator functions may not be called on executing generators");
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
let obj2 = { value, done: true };
return obj2;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c3 = 2;
if (0 === c2) {
if (arg0 === 1) {
c3 = 3;
throw value;
} else if (arg0 === 2) {
c3 = 3;
const obj3 = { value, done: true };
return obj3;
} else {
closure_1 = tmp2;
closure_129_0 = undefined;
closure_129_1 = undefined;
id = id.getId();
const secureFramesRosterMapEntry = RTCConnectionStore.getSecureFramesRosterMapEntry(closure_0);
closure_129_0 = secureFramesRosterMapEntry;
const secureFramesRosterMapEntry1 = RTCConnectionStore.getSecureFramesRosterMapEntry(id);
if (null != secureFramesRosterMapEntry) {
if (null != secureFramesRosterMapEntry1) {
c2 = 1;
c3 = 1;
let obj4 = {
value: (function memoizedPairwiseFingerprint(id, secureFramesRosterMapEntry1, arg2, secureFramesRosterMapEntry) {
const items = [closure_6, id, , , ];
const uint8Array = new Uint8Array(secureFramesRosterMapEntry1);
items[2] = closure_1(206).fromByteArray(uint8Array);
items[3] = arg2;
const obj = closure_1(206);
const uint8Array1 = new Uint8Array(secureFramesRosterMapEntry);
items[4] = closure_1(206).fromByteArray(uint8Array1);
const joined = items.join(":");
value2 = map.get(joined);
if (null != value2) {
return value2;
} else {
const obj4 = joined(9987);
const _Uint8Array = Uint8Array;
const uint8Array2 = new Uint8Array(secureFramesRosterMapEntry1);
const _Uint8Array2 = Uint8Array;
const uint8Array3 = new Uint8Array(secureFramesRosterMapEntry);
const pairwiseFingerprint = obj4.generatePairwiseFingerprint(tmp, uint8Array2, id, uint8Array3, arg2);
const nextPromise = pairwiseFingerprint.then((result) => closure_1_1(dependencyMap[4]).fromByteArray(result));
if (obj3.size >= 16) {
value = obj3.keys().next().value;
if (null != value) {
obj3.delete(value);
}
const iter = obj3.keys();
}
const result = obj3.set(joined, nextPromise);
nextPromise.catch(() => map.delete(joined));
return nextPromise;
}
const obj2 = closure_1(206);
})(id, secureFramesRosterMapEntry1, tmp18, secureFramesRosterMapEntry),
done: false
};
return obj4;
}
}
c3 = 3;
return { value: null, done: true };
}
} else if (arg0 === 1) {
c3 = 3;
throw value;
} else if (arg0 === 2) {
c3 = 3;
const obj5 = { value, done: true };
return obj5;
} else {
closure_129_1 = value;
let obj = { fingerprint: closure_129_1, fingerprintUserKey: closure_129_0 };
c3 = 3;
const obj6 = { value: obj, done: true };
return obj6;
}
} catch (tmp13) {
c3 = tmp;
throw tmp13;
}
}
};
let closure_6 = fn(10004).SECURE_FRAMES_GENERATE_FINGERPRINT_VERSION;
const map = new Map();
const size = fn(2);
let result = size.fileFinishedImporting("modules/rtc/SecureFramesBoundPairwiseFingerprint.tsx");
export const computeBoundPairwiseFingerprint = function computeBoundPairwiseFingerprint() {
const self = this;
const apply = closure_8.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};