@incodetech/core 0.0.0-dev-20260709-e9d0614f → 0.0.0-dev-20260709-36b8e7c1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/authentication.esm.js +12 -12
  2. package/dist/{authenticationManager-Bfeq_w07.esm.js → authenticationManager-iFiNf_D6.esm.js} +2 -2
  3. package/dist/{authenticationStateMachine-BkWA4Vcm.esm.js → authenticationStateMachine-_-3NW0oX.esm.js} +2 -2
  4. package/dist/{backCameraStream-POavVKz4.esm.js → backCameraStream-uixCSgiq.esm.js} +1 -1
  5. package/dist/{browserSimulation-DFpmweuc.esm.js → browserSimulation-CWJhFPZ2.esm.js} +1216 -153
  6. package/dist/certificate-issuance.d.ts +28 -28
  7. package/dist/consent.d.ts +1 -1
  8. package/dist/{consentManager-IkH3cHQp.d.ts → consentManager-Cg55dDe5.d.ts} +47 -47
  9. package/dist/cpf-ocr.d.ts +1 -1
  10. package/dist/{cpfOcrManager-It-dKOPr.d.ts → cpfOcrManager-egf2L0Et.d.ts} +17 -17
  11. package/dist/{deepsightLoader--uzeMW0e.esm.js → deepsightLoader-Cj2PerlR.esm.js} +5 -5
  12. package/dist/{deepsightService-BsLpJT8o.esm.js → deepsightService-DU9yBWg_.esm.js} +2 -2
  13. package/dist/device.d.ts +1 -9
  14. package/dist/device.esm.js +3 -3
  15. package/dist/document-capture.d.ts +1 -1
  16. package/dist/document-capture.esm.js +4 -4
  17. package/dist/document-upload.d.ts +46 -46
  18. package/dist/document-upload.esm.js +2 -2
  19. package/dist/{documentCaptureManager-Dwup6SOP.esm.js → documentCaptureManager-CDbQZ1jl.esm.js} +1 -1
  20. package/dist/{documentCaptureManager-Do3W64nY.d.ts → documentCaptureManager-Cz7gBQa3.d.ts} +234 -236
  21. package/dist/{documentCaptureStateMachine-BuI5VuAW.esm.js → documentCaptureStateMachine-CM4csLi9.esm.js} +14 -16
  22. package/dist/ekyb.esm.js +6 -6
  23. package/dist/{ekybStateMachine-DHRXWhGA.esm.js → ekybStateMachine-BHf7wsHS.esm.js} +1 -1
  24. package/dist/extensibility.d.ts +8 -8
  25. package/dist/extensibility.esm.js +21 -21
  26. package/dist/face-match.d.ts +1 -1
  27. package/dist/{faceCaptureManagerFactory-Clc6JTUL.esm.js → faceCaptureManagerFactory-Cfaiq169.esm.js} +1 -1
  28. package/dist/{faceCaptureSetup--0RKZXes.esm.js → faceCaptureSetup-DYPPQEON.esm.js} +2 -2
  29. package/dist/{faceMatchManager-BLNrKbeI.d.ts → faceMatchManager-wR-6pJ-t.d.ts} +2 -2
  30. package/dist/fiscal-qr.esm.js +2 -2
  31. package/dist/flow.d.ts +2 -2
  32. package/dist/flow.esm.js +5 -5
  33. package/dist/{flowServices-DDK4bMXx.esm.js → flowServices-CN-qbIDF.esm.js} +1 -1
  34. package/dist/geolocation.esm.js +3 -3
  35. package/dist/{geolocationManager-DCfJ_S4L.esm.js → geolocationManager-Y9FZP1w1.esm.js} +1 -1
  36. package/dist/{geolocationStateMachine-fRW4mvNt.esm.js → geolocationStateMachine-BXpXtbpl.esm.js} +1 -1
  37. package/dist/getBrowser-1yNcfFZR.esm.js +8 -0
  38. package/dist/home.d.ts +10 -10
  39. package/dist/id-ocr.d.ts +1 -1
  40. package/dist/id-verification.d.ts +1 -1
  41. package/dist/id.esm.js +11 -11
  42. package/dist/{idCaptureManager-Dz6au7T1.esm.js → idCaptureManager-DnglfDHb.esm.js} +1 -1
  43. package/dist/{idCaptureStateMachine-COqpgiFu.esm.js → idCaptureStateMachine-Dqhk1l7P.esm.js} +6 -6
  44. package/dist/{idOcrManager-Ddj8Zpn6.d.ts → idOcrManager-CPX5o1j6.d.ts} +52 -52
  45. package/dist/{idVerificationManager-DLeCBgHE.d.ts → idVerificationManager-CVn4mqjE.d.ts} +25 -25
  46. package/dist/identity-reuse.d.ts +1 -1
  47. package/dist/{identityReuseManager-CQ0uu66M.d.ts → identityReuseManager-CAIW177J.d.ts} +31 -31
  48. package/dist/index.esm.js +5 -5
  49. package/dist/mandatory-consent.d.ts +1 -1
  50. package/dist/{mandatoryConsentManager-BvjgzOv_.d.ts → mandatoryConsentManager-CRKGICe7.d.ts} +50 -50
  51. package/dist/{mediaRecorderOptions-BIn657lu.esm.js → mediaRecorderOptions-DuYelylE.esm.js} +1 -1
  52. package/dist/{onDeviceFaceResults-Dt_GP4Ez.esm.js → onDeviceFaceResults-C0lcz7Za.esm.js} +3 -3
  53. package/dist/personhood.esm.js +7 -7
  54. package/dist/{recordingService-AMay1uYQ.esm.js → recordingService-CMaZX7Fs.esm.js} +3 -3
  55. package/dist/selfie.esm.js +12 -12
  56. package/dist/{selfieManager-8oeew8KZ.esm.js → selfieManager-3T3-dsnX.esm.js} +2 -2
  57. package/dist/{selfieStateMachine-xJehn2CW.esm.js → selfieStateMachine-CmH5ZjoB.esm.js} +2 -2
  58. package/dist/session.esm.js +4 -4
  59. package/dist/{sessionInitializer-D_TErCvg.esm.js → sessionInitializer-BK6kw3bD.esm.js} +119 -4
  60. package/dist/{setup-DrcSOE02.esm.js → setup-HplmI6SC.esm.js} +1 -1
  61. package/dist/trust-graph.d.ts +2 -2
  62. package/dist/video-selfie.d.ts +2 -2
  63. package/dist/video-selfie.esm.js +9 -9
  64. package/dist/wasm.esm.js +5 -5
  65. package/dist/workflow.d.ts +105 -105
  66. package/dist/workflow.esm.js +17 -17
  67. package/package.json +3 -3
  68. package/dist/thumbmarkAdapter-CVyiGp0-.esm.js +0 -1194
  69. /package/dist/{platform-BoeUeUrV.esm.js → platform-0Ot-bF_a.esm.js} +0 -0
@@ -1,1194 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@thumbmarkjs+thumbmarkjs@1.6.4/node_modules/@thumbmarkjs/thumbmarkjs/dist/thumbmark.esm.js
2
- const e = 2592e5, t = "thumbmark", n = "https://api.thumbmarkjs.com", o = {
3
- exclude: [],
4
- include: [],
5
- stabilize: ["private", "iframe"],
6
- logging: !0,
7
- timeout: 5e3,
8
- cache_api_call: !0,
9
- cache_lifetime_in_ms: 0,
10
- performance: !1,
11
- experimental: !1,
12
- property_name_factory: (e$1) => `${t}_${e$1}`
13
- };
14
- let r = { ...o };
15
- const a = {
16
- private: [
17
- {
18
- exclude: ["canvas"],
19
- browsers: [
20
- "firefox",
21
- "safari>=17",
22
- "brave"
23
- ]
24
- },
25
- {
26
- exclude: ["audio"],
27
- browsers: ["samsungbrowser", "safari"]
28
- },
29
- {
30
- exclude: ["fonts"],
31
- browsers: ["firefox"]
32
- },
33
- {
34
- exclude: [
35
- "audio.sampleHash",
36
- "hardware.deviceMemory",
37
- "header.acceptLanguage.q",
38
- "system.hardwareConcurrency",
39
- "plugins"
40
- ],
41
- browsers: ["brave"]
42
- },
43
- {
44
- exclude: ["tls.extensions"],
45
- browsers: [
46
- "firefox",
47
- "chrome",
48
- "safari"
49
- ]
50
- },
51
- {
52
- exclude: ["header.acceptLanguage"],
53
- browsers: ["edge", "chrome"]
54
- }
55
- ],
56
- iframe: [{
57
- exclude: ["system.applePayVersion", "system.cookieEnabled"],
58
- browsers: ["safari"]
59
- }, { exclude: ["permissions"] }],
60
- vpn: [{ exclude: ["ip"] }]
61
- }, s = "undefined" != typeof window ? window.OfflineAudioContext || window.webkitOfflineAudioContext : null;
62
- function c(e$1) {
63
- let t$1 = 0;
64
- for (let n$1 = 0; n$1 < e$1.length; ++n$1) t$1 += Math.abs(e$1[n$1]);
65
- return t$1;
66
- }
67
- function l(e$1, t$1, n$1) {
68
- let o$1 = [];
69
- for (let t$2 = 0; t$2 < e$1[0].data.length; t$2++) {
70
- let n$2 = [];
71
- for (let o$2 = 0; o$2 < e$1.length; o$2++) n$2.push(e$1[o$2].data[t$2]);
72
- o$1.push(u(n$2));
73
- }
74
- const r$1 = new Uint8ClampedArray(o$1);
75
- return new ImageData(r$1, t$1, n$1);
76
- }
77
- function u(e$1) {
78
- if (0 === e$1.length) return 0;
79
- const t$1 = {};
80
- for (const n$2 of e$1) t$1[n$2] = (t$1[n$2] || 0) + 1;
81
- let n$1 = e$1[0];
82
- for (const e$2 in t$1) t$1[e$2] > t$1[n$1] && (n$1 = parseInt(e$2, 10));
83
- return n$1;
84
- }
85
- function d(e$1) {
86
- return e$1 ^= e$1 >>> 16, e$1 = Math.imul(e$1, 2246822507), e$1 ^= e$1 >>> 13, e$1 = Math.imul(e$1, 3266489909), (e$1 ^= e$1 >>> 16) >>> 0;
87
- }
88
- const m = new Uint32Array([
89
- 597399067,
90
- 2869860233,
91
- 951274213,
92
- 2716044179
93
- ]);
94
- function f(e$1, t$1) {
95
- return e$1 << t$1 | e$1 >>> 32 - t$1;
96
- }
97
- function h(e$1, t$1 = 0) {
98
- if (t$1 = t$1 ? 0 | t$1 : 0, "string" == typeof e$1 && (e$1 = function(e$2) {
99
- if ("undefined" != typeof TextEncoder) return new TextEncoder().encode(e$2).buffer;
100
- const t$2 = [];
101
- for (let n$2 = 0; n$2 < e$2.length; n$2++) {
102
- let o$2 = e$2.charCodeAt(n$2);
103
- o$2 < 128 ? t$2.push(o$2) : o$2 < 2048 ? t$2.push(192 | o$2 >> 6, 128 | 63 & o$2) : o$2 < 55296 || o$2 >= 57344 ? t$2.push(224 | o$2 >> 12, 128 | o$2 >> 6 & 63, 128 | 63 & o$2) : (n$2++, o$2 = 65536 + ((1023 & o$2) << 10 | 1023 & e$2.charCodeAt(n$2)), t$2.push(240 | o$2 >> 18, 128 | o$2 >> 12 & 63, 128 | o$2 >> 6 & 63, 128 | 63 & o$2));
104
- }
105
- return new Uint8Array(t$2).buffer;
106
- }(e$1)), !(e$1 instanceof ArrayBuffer)) throw new TypeError("Expected key to be ArrayBuffer or string");
107
- const n$1 = new Uint32Array([
108
- t$1,
109
- t$1,
110
- t$1,
111
- t$1
112
- ]);
113
- (function(e$2, t$2) {
114
- const n$2 = e$2.byteLength / 16 | 0, o$2 = new Uint32Array(e$2, 0, 4 * n$2);
115
- for (let e$3 = 0; e$3 < n$2; e$3++) {
116
- const n$3 = o$2.subarray(4 * e$3, 4 * (e$3 + 1));
117
- n$3[0] = Math.imul(n$3[0], m[0]), n$3[0] = f(n$3[0], 15), n$3[0] = Math.imul(n$3[0], m[1]), t$2[0] = t$2[0] ^ n$3[0], t$2[0] = f(t$2[0], 19), t$2[0] = t$2[0] + t$2[1], t$2[0] = Math.imul(t$2[0], 5) + 1444728091, n$3[1] = Math.imul(n$3[1], m[1]), n$3[1] = f(n$3[1], 16), n$3[1] = Math.imul(n$3[1], m[2]), t$2[1] = t$2[1] ^ n$3[1], t$2[1] = f(t$2[1], 17), t$2[1] = t$2[1] + t$2[2], t$2[1] = Math.imul(t$2[1], 5) + 197830471, n$3[2] = Math.imul(n$3[2], m[2]), n$3[2] = f(n$3[2], 17), n$3[2] = Math.imul(n$3[2], m[3]), t$2[2] = t$2[2] ^ n$3[2], t$2[2] = f(t$2[2], 15), t$2[2] = t$2[2] + t$2[3], t$2[2] = Math.imul(t$2[2], 5) + 2530024501, n$3[3] = Math.imul(n$3[3], m[3]), n$3[3] = f(n$3[3], 18), n$3[3] = Math.imul(n$3[3], m[0]), t$2[3] = t$2[3] ^ n$3[3], t$2[3] = f(t$2[3], 13), t$2[3] = t$2[3] + t$2[0], t$2[3] = Math.imul(t$2[3], 5) + 850148119;
118
- }
119
- })(e$1, n$1), function(e$2, t$2) {
120
- const n$2 = e$2.byteLength / 16 | 0, o$2 = e$2.byteLength % 16, r$1 = new Uint32Array(4), i = new Uint8Array(e$2, 16 * n$2, o$2);
121
- switch (o$2) {
122
- case 15: r$1[3] = r$1[3] ^ i[14] << 16;
123
- case 14: r$1[3] = r$1[3] ^ i[13] << 8;
124
- case 13: r$1[3] = r$1[3] ^ i[12], r$1[3] = Math.imul(r$1[3], m[3]), r$1[3] = f(r$1[3], 18), r$1[3] = Math.imul(r$1[3], m[0]), t$2[3] = t$2[3] ^ r$1[3];
125
- case 12: r$1[2] = r$1[2] ^ i[11] << 24;
126
- case 11: r$1[2] = r$1[2] ^ i[10] << 16;
127
- case 10: r$1[2] = r$1[2] ^ i[9] << 8;
128
- case 9: r$1[2] = r$1[2] ^ i[8], r$1[2] = Math.imul(r$1[2], m[2]), r$1[2] = f(r$1[2], 17), r$1[2] = Math.imul(r$1[2], m[3]), t$2[2] = t$2[2] ^ r$1[2];
129
- case 8: r$1[1] = r$1[1] ^ i[7] << 24;
130
- case 7: r$1[1] = r$1[1] ^ i[6] << 16;
131
- case 6: r$1[1] = r$1[1] ^ i[5] << 8;
132
- case 5: r$1[1] = r$1[1] ^ i[4], r$1[1] = Math.imul(r$1[1], m[1]), r$1[1] = f(r$1[1], 16), r$1[1] = Math.imul(r$1[1], m[2]), t$2[1] = t$2[1] ^ r$1[1];
133
- case 4: r$1[0] = r$1[0] ^ i[3] << 24;
134
- case 3: r$1[0] = r$1[0] ^ i[2] << 16;
135
- case 2: r$1[0] = r$1[0] ^ i[1] << 8;
136
- case 1: r$1[0] = r$1[0] ^ i[0], r$1[0] = Math.imul(r$1[0], m[0]), r$1[0] = f(r$1[0], 15), r$1[0] = Math.imul(r$1[0], m[1]), t$2[0] = t$2[0] ^ r$1[0];
137
- }
138
- }(e$1, n$1), function(e$2, t$2) {
139
- t$2[0] = t$2[0] ^ e$2.byteLength, t$2[1] = t$2[1] ^ e$2.byteLength, t$2[2] = t$2[2] ^ e$2.byteLength, t$2[3] = t$2[3] ^ e$2.byteLength, t$2[0] = t$2[0] + t$2[1] | 0, t$2[0] = t$2[0] + t$2[2] | 0, t$2[0] = t$2[0] + t$2[3] | 0, t$2[1] = t$2[1] + t$2[0] | 0, t$2[2] = t$2[2] + t$2[0] | 0, t$2[3] = t$2[3] + t$2[0] | 0, t$2[0] = d(t$2[0]), t$2[1] = d(t$2[1]), t$2[2] = d(t$2[2]), t$2[3] = d(t$2[3]), t$2[0] = t$2[0] + t$2[1] | 0, t$2[0] = t$2[0] + t$2[2] | 0, t$2[0] = t$2[0] + t$2[3] | 0, t$2[1] = t$2[1] + t$2[0] | 0, t$2[2] = t$2[2] + t$2[0] | 0, t$2[3] = t$2[3] + t$2[0] | 0;
140
- }(e$1, n$1);
141
- const o$1 = new Uint8Array(n$1.buffer);
142
- return Array.from(o$1).map(((e$2) => e$2.toString(16).padStart(2, "0"))).join("");
143
- }
144
- const p = 280;
145
- async function g(e$1) {
146
- for (var t$1; !document.body;) await w(50);
147
- const n$1 = document.createElement("iframe");
148
- n$1.setAttribute("frameBorder", "0");
149
- const o$1 = n$1.style;
150
- o$1.setProperty("position", "fixed"), o$1.setProperty("display", "block", "important"), o$1.setProperty("visibility", "visible"), o$1.setProperty("border", "0"), o$1.setProperty("opacity", "0"), n$1.src = "about:blank", document.body.appendChild(n$1);
151
- const r$1 = n$1.contentDocument || (null === (t$1 = n$1.contentWindow) || void 0 === t$1 ? void 0 : t$1.document);
152
- if (!r$1) throw new Error("Iframe document is not accessible");
153
- e$1({ iframe: r$1 }), setTimeout((() => {
154
- document.body.removeChild(n$1);
155
- }), 0);
156
- }
157
- function w(e$1, t$1) {
158
- return new Promise(((n$1) => setTimeout(n$1, e$1, t$1)));
159
- }
160
- const v = [
161
- "Arial",
162
- "Arial Black",
163
- "Arial Narrow",
164
- "Arial Rounded MT",
165
- "Arimo",
166
- "Archivo",
167
- "Barlow",
168
- "Bebas Neue",
169
- "Bitter",
170
- "Bookman",
171
- "Calibri",
172
- "Cabin",
173
- "Candara",
174
- "Century",
175
- "Century Gothic",
176
- "Comic Sans MS",
177
- "Constantia",
178
- "Courier",
179
- "Courier New",
180
- "Crimson Text",
181
- "DM Mono",
182
- "DM Sans",
183
- "DM Serif Display",
184
- "DM Serif Text",
185
- "Dosis",
186
- "Droid Sans",
187
- "Exo",
188
- "Fira Code",
189
- "Fira Sans",
190
- "Franklin Gothic Medium",
191
- "Garamond",
192
- "Geneva",
193
- "Georgia",
194
- "Gill Sans",
195
- "Helvetica",
196
- "Impact",
197
- "Inconsolata",
198
- "Indie Flower",
199
- "Inter",
200
- "Josefin Sans",
201
- "Karla",
202
- "Lato",
203
- "Lexend",
204
- "Lucida Bright",
205
- "Lucida Console",
206
- "Lucida Sans Unicode",
207
- "Manrope",
208
- "Merriweather",
209
- "Merriweather Sans",
210
- "Montserrat",
211
- "Myriad",
212
- "Noto Sans",
213
- "Nunito",
214
- "Nunito Sans",
215
- "Open Sans",
216
- "Optima",
217
- "Orbitron",
218
- "Oswald",
219
- "Pacifico",
220
- "Palatino",
221
- "Perpetua",
222
- "PT Sans",
223
- "PT Serif",
224
- "Poppins",
225
- "Prompt",
226
- "Public Sans",
227
- "Quicksand",
228
- "Rajdhani",
229
- "Recursive",
230
- "Roboto",
231
- "Roboto Condensed",
232
- "Rockwell",
233
- "Rubik",
234
- "Segoe Print",
235
- "Segoe Script",
236
- "Segoe UI",
237
- "Sora",
238
- "Source Sans Pro",
239
- "Space Mono",
240
- "Tahoma",
241
- "Taviraj",
242
- "Times",
243
- "Times New Roman",
244
- "Titillium Web",
245
- "Trebuchet MS",
246
- "Ubuntu",
247
- "Varela Round",
248
- "Verdana",
249
- "Work Sans"
250
- ], y = [
251
- "monospace",
252
- "sans-serif",
253
- "serif"
254
- ];
255
- function S(e$1, t$1) {
256
- return e$1.font = `72px ${t$1}`, e$1.measureText("WwMmLli0Oo").width;
257
- }
258
- function b() {
259
- var e$1;
260
- const t$1 = document.createElement("canvas"), n$1 = null !== (e$1 = t$1.getContext("webgl")) && void 0 !== e$1 ? e$1 : t$1.getContext("experimental-webgl");
261
- if (n$1 && "getParameter" in n$1) try {
262
- const e$2 = (n$1.getParameter(n$1.VENDOR) || "").toString(), t$2 = (n$1.getParameter(n$1.RENDERER) || "").toString();
263
- let o$1 = {
264
- vendor: e$2,
265
- renderer: t$2,
266
- version: (n$1.getParameter(n$1.VERSION) || "").toString(),
267
- shadingLanguageVersion: (n$1.getParameter(n$1.SHADING_LANGUAGE_VERSION) || "").toString()
268
- };
269
- if (!t$2.length || !e$2.length) {
270
- const e$3 = n$1.getExtension("WEBGL_debug_renderer_info");
271
- if (e$3) {
272
- const t$3 = (n$1.getParameter(e$3.UNMASKED_VENDOR_WEBGL) || "").toString(), r$1 = (n$1.getParameter(e$3.UNMASKED_RENDERER_WEBGL) || "").toString();
273
- t$3 && (o$1.vendorUnmasked = t$3), r$1 && (o$1.rendererUnmasked = r$1);
274
- }
275
- }
276
- return o$1;
277
- } catch (e$2) {}
278
- return "undefined";
279
- }
280
- function E() {
281
- const e$1 = new Float32Array(1), t$1 = new Uint8Array(e$1.buffer);
282
- return e$1[0] = Infinity, e$1[0] = e$1[0] - e$1[0], t$1[3];
283
- }
284
- const M = (e$1, t$1, n$1, o$1) => {
285
- const r$1 = (n$1 - t$1) / o$1;
286
- let i = 0;
287
- for (let n$2 = 0; n$2 < o$1; n$2++) i += e$1(t$1 + (n$2 + .5) * r$1);
288
- return i * r$1;
289
- };
290
- function P(e$1, t$1) {
291
- const n$1 = {};
292
- return t$1.forEach(((t$2) => {
293
- const o$1 = function(e$2) {
294
- if (0 === e$2.length) return null;
295
- const t$3 = {};
296
- e$2.forEach(((e$3) => {
297
- const n$3 = String(e$3);
298
- t$3[n$3] = (t$3[n$3] || 0) + 1;
299
- }));
300
- let n$2 = e$2[0], o$2 = 1;
301
- return Object.keys(t$3).forEach(((e$3) => {
302
- t$3[e$3] > o$2 && (n$2 = e$3, o$2 = t$3[e$3]);
303
- })), n$2;
304
- }(e$1.map(((e$2) => t$2 in e$2 ? e$2[t$2] : void 0)).filter(((e$2) => void 0 !== e$2)));
305
- o$1 && (n$1[t$2] = o$1);
306
- })), n$1;
307
- }
308
- const A = [
309
- "accelerometer",
310
- "accessibility",
311
- "accessibility-events",
312
- "ambient-light-sensor",
313
- "background-fetch",
314
- "background-sync",
315
- "bluetooth",
316
- "camera",
317
- "clipboard-read",
318
- "clipboard-write",
319
- "device-info",
320
- "display-capture",
321
- "gyroscope",
322
- "geolocation",
323
- "local-fonts",
324
- "magnetometer",
325
- "microphone",
326
- "midi",
327
- "nfc",
328
- "notifications",
329
- "payment-handler",
330
- "persistent-storage",
331
- "push",
332
- "speaker",
333
- "storage-access",
334
- "top-level-storage-access",
335
- "window-management",
336
- "query"
337
- ];
338
- function x() {
339
- var e$1, t$1, n$1, o$1, r$1, i;
340
- if ("undefined" == typeof navigator) return {
341
- name: "unknown",
342
- version: "unknown"
343
- };
344
- const a$1 = navigator.userAgent, s$1 = [
345
- /(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)+)/,
346
- /(?<name>EdgA|EdgiOS|Edg)\/(?<version>\d+(?:\.\d+)+)/,
347
- /(?<name>OPR|OPX)\/(?<version>\d+(?:\.\d+)+)/,
348
- /Opera[\s\/](?<version>\d+(?:\.\d+)+)/,
349
- /Opera Mini\/(?<version>\d+(?:\.\d+)+)/,
350
- /Opera Mobi\/(?<version>\d+(?:\.\d+)+)/,
351
- /(?<name>Vivaldi)\/(?<version>\d+(?:\.\d+)+)/,
352
- /(?<name>Brave)\/(?<version>\d+(?:\.\d+)+)/,
353
- /(?<name>CriOS)\/(?<version>\d+(?:\.\d+)+)/,
354
- /(?<name>FxiOS)\/(?<version>\d+(?:\.\d+)+)/,
355
- /(?<name>Chrome|Chromium)\/(?<version>\d+(?:\.\d+)+)/,
356
- /(?<name>Firefox|Waterfox|Iceweasel|IceCat)\/(?<version>\d+(?:\.\d+)+)/,
357
- /Version\/(?<version1>[\d.]+).*Safari\/[\d.]+|(?<name>Safari)\/(?<version2>[\d.]+)/,
358
- /(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)+)/,
359
- /(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)+)/
360
- ], c$1 = {
361
- edg: "Edge",
362
- edga: "Edge",
363
- edgios: "Edge",
364
- opr: "Opera",
365
- opx: "Opera",
366
- crios: "Chrome",
367
- fxios: "Firefox",
368
- samsung: "SamsungBrowser",
369
- vivaldi: "Vivaldi",
370
- brave: "Brave"
371
- };
372
- for (const l$1 of s$1) {
373
- const s$2 = a$1.match(l$1);
374
- if (s$2) {
375
- let a$2 = null === (e$1 = s$2.groups) || void 0 === e$1 ? void 0 : e$1.name, u$1 = (null === (t$1 = s$2.groups) || void 0 === t$1 ? void 0 : t$1.version) || (null === (n$1 = s$2.groups) || void 0 === n$1 ? void 0 : n$1.version1) || (null === (o$1 = s$2.groups) || void 0 === o$1 ? void 0 : o$1.version2);
376
- if (a$2 || !(null === (r$1 = s$2.groups) || void 0 === r$1 ? void 0 : r$1.version1) && !(null === (i = s$2.groups) || void 0 === i ? void 0 : i.version2) || (a$2 = "Safari"), !a$2 && l$1.source.includes("Opera Mini") && (a$2 = "Opera Mini"), !a$2 && l$1.source.includes("Opera Mobi") && (a$2 = "Opera Mobi"), !a$2 && l$1.source.includes("Opera") && (a$2 = "Opera"), !a$2 && s$2[1] && (a$2 = s$2[1]), !u$1 && s$2[2] && (u$1 = s$2[2]), a$2) return {
377
- name: c$1[a$2.toLowerCase()] || a$2,
378
- version: u$1 || "unknown"
379
- };
380
- }
381
- }
382
- return {
383
- name: "unknown",
384
- version: "unknown"
385
- };
386
- }
387
- function C() {
388
- if ("undefined" == typeof navigator || !navigator.userAgent) return !1;
389
- const e$1 = navigator.userAgent;
390
- return /Mobi|Android|iPhone|iPod|IEMobile|Opera Mini|Opera Mobi|webOS|BlackBerry|Windows Phone/i.test(e$1) && !/iPad/i.test(e$1);
391
- }
392
- function _() {
393
- let e$1 = [];
394
- const t$1 = {
395
- "prefers-contrast": [
396
- "high",
397
- "more",
398
- "low",
399
- "less",
400
- "forced",
401
- "no-preference"
402
- ],
403
- "any-hover": ["hover", "none"],
404
- "any-pointer": [
405
- "none",
406
- "coarse",
407
- "fine"
408
- ],
409
- pointer: [
410
- "none",
411
- "coarse",
412
- "fine"
413
- ],
414
- hover: ["hover", "none"],
415
- update: ["fast", "slow"],
416
- "inverted-colors": ["inverted", "none"],
417
- "prefers-reduced-motion": ["reduce", "no-preference"],
418
- "prefers-reduced-transparency": ["reduce", "no-preference"],
419
- scripting: [
420
- "none",
421
- "initial-only",
422
- "enabled"
423
- ],
424
- "forced-colors": ["active", "none"]
425
- };
426
- return Object.keys(t$1).forEach(((n$1) => {
427
- t$1[n$1].forEach(((t$2) => {
428
- matchMedia(`(${n$1}: ${t$2})`).matches && e$1.push(`${n$1}: ${t$2}`);
429
- }));
430
- })), e$1;
431
- }
432
- function I() {
433
- if ("https:" === window.location.protocol && "function" == typeof window.ApplePaySession) try {
434
- const e$1 = window.ApplePaySession.supportsVersion;
435
- for (let t$1 = 15; t$1 > 0; t$1--) if (e$1(t$1)) return t$1;
436
- } catch (e$1) {
437
- return 0;
438
- }
439
- return 0;
440
- }
441
- const T = "SamsungBrowser" !== x().name ? 1 : 3;
442
- let R, k = null;
443
- function O(e$1) {
444
- const t$1 = [];
445
- return function e$2(n$1) {
446
- if (n$1 && n$1.toJSON && "function" == typeof n$1.toJSON && (n$1 = n$1.toJSON()), void 0 === n$1) return;
447
- if ("number" == typeof n$1) return isFinite(n$1) ? "" + n$1 : "null";
448
- if ("object" != typeof n$1) return JSON.stringify(n$1);
449
- let o$1, r$1;
450
- if (Array.isArray(n$1)) {
451
- for (r$1 = "[", o$1 = 0; o$1 < n$1.length; o$1++) o$1 && (r$1 += ","), r$1 += e$2(n$1[o$1]) || "null";
452
- return r$1 + "]";
453
- }
454
- if (null === n$1) return "null";
455
- if (-1 !== t$1.indexOf(n$1)) throw new TypeError("Converting circular structure to JSON");
456
- const i = t$1.push(n$1) - 1, a$1 = Object.keys(n$1).sort();
457
- for (r$1 = "", o$1 = 0; o$1 < a$1.length; o$1++) {
458
- const t$2 = a$1[o$1], i$1 = e$2(n$1[t$2]);
459
- i$1 && (r$1 && (r$1 += ","), r$1 += JSON.stringify(t$2) + ":" + i$1);
460
- }
461
- return t$1.splice(i, 1), "{" + r$1 + "}";
462
- }(e$1) || "";
463
- }
464
- const L = [
465
- "𝔄",
466
- "𝔅",
467
- "ℭ",
468
- "𝔇",
469
- "𝔈",
470
- "𝔉",
471
- "𝔸",
472
- "𝔹",
473
- "ℂ",
474
- "𝔻",
475
- "𝔼",
476
- "𝔽"
477
- ], B = [
478
- "β",
479
- "ψ",
480
- "λ",
481
- "ε",
482
- "ζ",
483
- "α",
484
- "ξ",
485
- "μ",
486
- "ρ",
487
- "φ",
488
- "κ",
489
- "τ",
490
- "η",
491
- "σ",
492
- "ι",
493
- "ω",
494
- "γ",
495
- "ν",
496
- "χ",
497
- "δ",
498
- "θ",
499
- "π",
500
- "υ",
501
- "ο"
502
- ];
503
- function D(e$1, t$1) {
504
- return `<math><mrow>${t$1}</mrow></math>`;
505
- }
506
- function N() {
507
- let e$1 = "<mo>∏</mo>";
508
- return L.forEach(((t$1, n$1) => {
509
- const o$1 = 2 * n$1, r$1 = B.slice(o$1, o$1 + 2);
510
- 2 === r$1.length && (e$1 += `<mmultiscripts><mi>${t$1}</mi><none/><mi>${r$1[1]}</mi><mprescripts></mprescripts><mi>${r$1[0]}</mi><none/></mmultiscripts>`);
511
- })), D(0, `<munderover><mmultiscripts>${e$1}</mmultiscripts></munderover>`);
512
- }
513
- function $() {
514
- const e$1 = [];
515
- return L.forEach(((t$1, n$1) => {
516
- const o$1 = 2 * n$1, r$1 = B.slice(o$1, o$1 + 2);
517
- 2 === r$1.length && e$1.push(D(0, `<mmultiscripts><mi>${t$1}</mi><none/><mi>${r$1[1]}</mi><mprescripts></mprescripts><mi>${r$1[0]}</mi><none/></mmultiscripts>`));
518
- })), e$1;
519
- }
520
- const V = {
521
- audio: async function() {
522
- return s ? async function() {
523
- return new Promise(((e$1, t$1) => {
524
- try {
525
- const t$2 = new s(1, 5e3, 44100), n$1 = t$2.createBufferSource(), o$1 = t$2.createOscillator();
526
- o$1.frequency.value = 1e3;
527
- const r$1 = t$2.createDynamicsCompressor();
528
- let i;
529
- r$1.threshold.value = -50, r$1.knee.value = 40, r$1.ratio.value = 12, r$1.attack.value = 0, r$1.release.value = .2, o$1.connect(r$1), r$1.connect(t$2.destination), o$1.start(), t$2.oncomplete = (o$2) => {
530
- i = o$2.renderedBuffer.getChannelData(0), e$1({
531
- sampleHash: c(i),
532
- maxChannels: t$2.destination.maxChannelCount,
533
- channelCountMode: n$1.channelCountMode
534
- });
535
- }, t$2.startRendering();
536
- } catch (e$2) {
537
- console.error("Error creating audio fingerprint:", e$2), t$1(e$2);
538
- }
539
- }));
540
- }() : null;
541
- },
542
- canvas: async function() {
543
- return new Promise(((e$1) => {
544
- const t$1 = Array.from({ length: 3 }, (() => function() {
545
- const e$2 = document.createElement("canvas"), t$2 = e$2.getContext("2d");
546
- if (!t$2) return null;
547
- e$2.width = p, e$2.height = 20;
548
- const n$1 = t$2.createLinearGradient(0, 0, e$2.width, e$2.height);
549
- n$1.addColorStop(0, "red"), n$1.addColorStop(1 / 6, "orange"), n$1.addColorStop(2 / 6, "yellow"), n$1.addColorStop(.5, "green"), n$1.addColorStop(4 / 6, "blue"), n$1.addColorStop(5 / 6, "indigo"), n$1.addColorStop(1, "violet"), t$2.fillStyle = n$1, t$2.fillRect(0, 0, e$2.width, e$2.height);
550
- const o$1 = "Random Text WMwmil10Oo";
551
- t$2.font = "23.123px Arial", t$2.fillStyle = "black", t$2.fillText(o$1, -5, 15), t$2.fillStyle = "rgba(0, 0, 255, 0.5)", t$2.fillText(o$1, -3.3, 17.7), t$2.beginPath(), t$2.moveTo(0, 0), t$2.lineTo(2 * e$2.width / 7, e$2.height), t$2.strokeStyle = "white", t$2.lineWidth = 2, t$2.stroke();
552
- return t$2.getImageData(0, 0, e$2.width, e$2.height);
553
- }())).filter(((e$2) => null !== e$2));
554
- 0 !== t$1.length ? e$1({ commonPixelsHash: h(l(t$1, p, 20).data.toString()).toString() }) : e$1(null);
555
- }));
556
- },
557
- fonts: async function(e$1) {
558
- return new Promise(((e$2) => {
559
- try {
560
- g((async ({ iframe: t$1 }) => {
561
- const n$1 = t$1.createElement("canvas").getContext("2d");
562
- if (!n$1) return void e$2(null);
563
- const o$1 = y.map(((e$3) => S(n$1, e$3)));
564
- let r$1 = {};
565
- v.forEach(((e$3) => {
566
- const t$2 = S(n$1, e$3);
567
- o$1.includes(t$2) || (r$1[e$3] = t$2);
568
- })), e$2(r$1);
569
- }));
570
- } catch (t$1) {
571
- e$2(null);
572
- }
573
- }));
574
- },
575
- hardware: function() {
576
- return new Promise(((e$1, t$1) => {
577
- const n$1 = void 0 !== navigator.deviceMemory ? navigator.deviceMemory : 0, o$1 = window.performance && window.performance.memory ? window.performance.memory : 0;
578
- e$1({
579
- videocard: b(),
580
- architecture: E(),
581
- deviceMemory: n$1.toString() || "undefined",
582
- jsHeapSizeLimit: o$1.jsHeapSizeLimit || 0
583
- });
584
- }));
585
- },
586
- locales: function() {
587
- return new Promise(((e$1) => {
588
- e$1({
589
- languages: navigator.language,
590
- timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
591
- });
592
- }));
593
- },
594
- math: function() {
595
- return new Promise(((e$1) => {
596
- e$1({
597
- acos: Math.acos(.5),
598
- asin: M(Math.asin, -1, 1, 97),
599
- cos: M(Math.cos, 0, Math.PI, 97),
600
- largeCos: Math.cos(0x56bc75e2d63100000),
601
- largeSin: Math.sin(0x56bc75e2d63100000),
602
- largeTan: Math.tan(0x56bc75e2d63100000),
603
- sin: M(Math.sin, -Math.PI, Math.PI, 97),
604
- tan: M(Math.tan, 0, 2 * Math.PI, 97)
605
- });
606
- }));
607
- },
608
- permissions: async function(e$1) {
609
- const t$1 = (null == e$1 ? void 0 : e$1.permissions_to_check) || A;
610
- return P(await Promise.all(Array.from({ length: 3 }, (() => async function(e$2) {
611
- const t$2 = {};
612
- for (const n$1 of e$2) try {
613
- t$2[n$1] = (await navigator.permissions.query({ name: n$1 })).state.toString();
614
- } catch (e$3) {}
615
- return t$2;
616
- }(t$1)))), t$1);
617
- },
618
- plugins: async function() {
619
- const e$1 = [];
620
- if (navigator.plugins) for (let t$1 = 0; t$1 < navigator.plugins.length; t$1++) {
621
- const n$1 = navigator.plugins[t$1];
622
- e$1.push([
623
- n$1.name,
624
- n$1.filename,
625
- n$1.description
626
- ].join("|"));
627
- }
628
- return new Promise(((t$1) => {
629
- t$1({ plugins: e$1 });
630
- }));
631
- },
632
- screen: function() {
633
- return new Promise(((e$1) => {
634
- if ("undefined" == typeof matchMedia || "undefined" == typeof screen) return void e$1(null);
635
- const t$1 = {
636
- is_touchscreen: navigator.maxTouchPoints > 0,
637
- maxTouchPoints: navigator.maxTouchPoints,
638
- colorDepth: screen.colorDepth,
639
- mediaMatches: _()
640
- };
641
- C() && navigator.maxTouchPoints > 0 && (t$1.resolution = function() {
642
- const e$2 = window.screen.width, t$2 = window.screen.height;
643
- return `${Math.max(e$2, t$2).toString()}x${Math.min(e$2, t$2).toString()}`;
644
- }()), e$1(t$1);
645
- }));
646
- },
647
- system: function() {
648
- return new Promise(((e$1) => {
649
- const t$1 = x();
650
- e$1({
651
- platform: window.navigator.platform,
652
- productSub: navigator.productSub,
653
- product: navigator.product,
654
- useragent: navigator.userAgent,
655
- hardwareConcurrency: navigator.hardwareConcurrency,
656
- browser: {
657
- name: t$1.name,
658
- version: t$1.version
659
- },
660
- mobile: C(),
661
- applePayVersion: I(),
662
- cookieEnabled: window.navigator.cookieEnabled
663
- });
664
- }));
665
- },
666
- webgl: async function() {
667
- "undefined" != typeof document && (R = document.createElement("canvas"), R.width = 200, R.height = 100, k = R.getContext("webgl"));
668
- try {
669
- if (!k) throw new Error("WebGL not supported");
670
- return { commonPixelsHash: h(l(Array.from({ length: T }, (() => function() {
671
- try {
672
- if (!k) throw new Error("WebGL not supported");
673
- const e$1 = "\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ", t$1 = "\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ", n$1 = k.createShader(k.VERTEX_SHADER), o$1 = k.createShader(k.FRAGMENT_SHADER);
674
- if (!n$1 || !o$1) throw new Error("Failed to create shaders");
675
- if (k.shaderSource(n$1, e$1), k.shaderSource(o$1, t$1), k.compileShader(n$1), !k.getShaderParameter(n$1, k.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + k.getShaderInfoLog(n$1));
676
- if (k.compileShader(o$1), !k.getShaderParameter(o$1, k.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + k.getShaderInfoLog(o$1));
677
- const r$1 = k.createProgram();
678
- if (!r$1) throw new Error("Failed to create shader program");
679
- if (k.attachShader(r$1, n$1), k.attachShader(r$1, o$1), k.linkProgram(r$1), !k.getProgramParameter(r$1, k.LINK_STATUS)) throw new Error("Shader program linking failed: " + k.getProgramInfoLog(r$1));
680
- k.useProgram(r$1);
681
- const i = 137, a$1 = new Float32Array(4 * i), s$1 = 2 * Math.PI / i;
682
- for (let e$2 = 0; e$2 < i; e$2++) {
683
- const t$2 = e$2 * s$1;
684
- a$1[4 * e$2] = 0, a$1[4 * e$2 + 1] = 0, a$1[4 * e$2 + 2] = Math.cos(t$2) * (R.width / 2), a$1[4 * e$2 + 3] = Math.sin(t$2) * (R.height / 2);
685
- }
686
- const c$1 = k.createBuffer();
687
- k.bindBuffer(k.ARRAY_BUFFER, c$1), k.bufferData(k.ARRAY_BUFFER, a$1, k.STATIC_DRAW);
688
- const l$1 = k.getAttribLocation(r$1, "position");
689
- k.enableVertexAttribArray(l$1), k.vertexAttribPointer(l$1, 2, k.FLOAT, !1, 0, 0), k.viewport(0, 0, R.width, R.height), k.clearColor(0, 0, 0, 1), k.clear(k.COLOR_BUFFER_BIT), k.drawArrays(k.LINES, 0, 2 * i);
690
- const u$1 = new Uint8ClampedArray(R.width * R.height * 4);
691
- k.readPixels(0, 0, R.width, R.height, k.RGBA, k.UNSIGNED_BYTE, u$1);
692
- return new ImageData(u$1, R.width, R.height);
693
- } catch (e$1) {
694
- return new ImageData(1, 1);
695
- } finally {
696
- k && (k.bindBuffer(k.ARRAY_BUFFER, null), k.useProgram(null), k.viewport(0, 0, k.drawingBufferWidth, k.drawingBufferHeight), k.clearColor(0, 0, 0, 0));
697
- }
698
- }())), R.width, R.height).data.toString()).toString() };
699
- } catch (e$1) {
700
- return { webgl: "unsupported" };
701
- }
702
- }
703
- }, F = {
704
- webrtc: async function() {
705
- return new Promise(((e$1) => {
706
- try {
707
- const t$1 = window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection;
708
- if (!t$1) return void e$1({
709
- supported: !1,
710
- error: "WebRTC not supported"
711
- });
712
- const n$1 = new t$1({
713
- iceCandidatePoolSize: 1,
714
- iceServers: []
715
- });
716
- n$1.createDataChannel("");
717
- (async () => {
718
- try {
719
- const o$1 = await n$1.createOffer({
720
- offerToReceiveAudio: !0,
721
- offerToReceiveVideo: !0
722
- });
723
- await n$1.setLocalDescription(o$1);
724
- const r$1 = o$1.sdp || "", i = [...new Set((r$1.match(/extmap:\d+ [^\n\r]+/g) || []).map(((e$2) => e$2.replace(/extmap:\d+ /, ""))))].sort(), a$1 = (e$2) => {
725
- const t$2 = r$1.match(/* @__PURE__ */ new RegExp(`m=${e$2} [^\\s]+ [^\\s]+ ([^\\n\\r]+)`));
726
- return t$2 ? t$2[1].split(" ") : [];
727
- }, s$1 = (e$2, t$2) => t$2.map(((t$3) => {
728
- const n$2 = new RegExp(`(rtpmap|fmtp|rtcp-fb):${t$3} (.+)`, "g"), o$2 = [...r$1.matchAll(n$2)];
729
- if (!o$2.length) return null;
730
- const i$1 = {};
731
- return o$2.forEach(((t$4) => {
732
- const [n$3, o$3, r$2] = t$4, a$2 = r$2.split("/");
733
- "rtpmap" === o$3 ? (i$1.mimeType = `${e$2}/${a$2[0]}`, i$1.clockRate = +a$2[1], "audio" === e$2 && (i$1.channels = +a$2[2] || 1)) : "rtcp-fb" === o$3 ? (i$1.feedbackSupport = i$1.feedbackSupport || [], i$1.feedbackSupport.push(r$2)) : "fmtp" === o$3 && (i$1.sdpFmtpLine = r$2);
734
- })), i$1;
735
- })).filter(Boolean), c$1 = s$1("audio", a$1("audio")), l$1 = s$1("video", a$1("video")), u$1 = {
736
- audio: {
737
- count: c$1.length,
738
- hash: h(O(c$1))
739
- },
740
- video: {
741
- count: l$1.length,
742
- hash: h(O(l$1))
743
- },
744
- extensionsHash: h(O(i))
745
- }, d$1 = await new Promise(((e$2) => {
746
- const t$2 = setTimeout((() => {
747
- n$1.removeEventListener("icecandidate", o$2), n$1.close(), e$2({
748
- supported: !0,
749
- ...u$1,
750
- timeout: !0
751
- });
752
- }), 3e3), o$2 = (r$2) => {
753
- const i$1 = r$2.candidate;
754
- i$1 && i$1.candidate && (clearTimeout(t$2), n$1.removeEventListener("icecandidate", o$2), n$1.close(), e$2({
755
- supported: !0,
756
- ...u$1,
757
- candidateType: i$1.type || ""
758
- }));
759
- };
760
- n$1.addEventListener("icecandidate", o$2);
761
- }));
762
- e$1({
763
- details: d$1,
764
- hash: h(O(d$1))
765
- });
766
- } catch (t$2) {
767
- n$1.close(), e$1({
768
- supported: !0,
769
- error: `WebRTC offer failed: ${t$2.message}`
770
- });
771
- }
772
- })();
773
- } catch (t$1) {
774
- e$1({
775
- supported: !1,
776
- error: `WebRTC error: ${t$1.message}`
777
- });
778
- }
779
- }));
780
- },
781
- mathml: async function() {
782
- return new Promise(((e$1) => {
783
- try {
784
- g((async ({ iframe: t$1 }) => {
785
- try {
786
- if (!function(e$2) {
787
- try {
788
- const t$2 = e$2.createElement("math");
789
- t$2.innerHTML = "<mrow><mi>x</mi></mrow>", t$2.style.position = "absolute", t$2.style.visibility = "hidden", e$2.body.appendChild(t$2);
790
- const n$2 = t$2.getBoundingClientRect();
791
- return e$2.body.removeChild(t$2), n$2.width > 0 && n$2.height > 0;
792
- } catch (e$3) {
793
- return !1;
794
- }
795
- }(t$1)) return void e$1({
796
- supported: !1,
797
- error: "MathML not supported"
798
- });
799
- const n$1 = [
800
- D("integral", "<msubsup><mo>∫</mo><mi>a</mi><mi>b</mi></msubsup><mfrac><mrow><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mrow><mi>g</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow></mfrac><mi>dx</mi>"),
801
- D("fraction", "<mfrac><mrow><mi>π</mi><mo>×</mo><msup><mi>r</mi><mn>2</mn></msup></mrow><mrow><mn>2</mn><mi>σ</mi></mrow></mfrac>"),
802
- D("matrix", "<mo>[</mo><mtable><mtr><mtd><mi>α</mi></mtd><mtd><mi>β</mi></mtd></mtr><mtr><mtd><mi>γ</mi></mtd><mtd><mi>δ</mi></mtd></mtr></mtable><mo>]</mo>"),
803
- N(),
804
- ...$()
805
- ], o$1 = [];
806
- let r$1 = "";
807
- n$1.forEach(((e$2, n$2) => {
808
- const i$1 = function(e$3, t$2) {
809
- try {
810
- const n$3 = t$2.createElement("math");
811
- n$3.innerHTML = e$3.replace(/<\/?math>/g, ""), n$3.style.whiteSpace = "nowrap", n$3.style.position = "absolute", n$3.style.visibility = "hidden", n$3.style.top = "-9999px", t$2.body.appendChild(n$3);
812
- const o$2 = n$3.getBoundingClientRect(), r$2 = (t$2.defaultView || window).getComputedStyle(n$3), i$2 = {
813
- dimensions: {
814
- width: o$2.width,
815
- height: o$2.height
816
- },
817
- fontInfo: {
818
- fontFamily: r$2.fontFamily,
819
- fontSize: r$2.fontSize,
820
- fontWeight: r$2.fontWeight,
821
- fontStyle: r$2.fontStyle,
822
- lineHeight: r$2.lineHeight,
823
- fontVariant: r$2.fontVariant || "normal",
824
- fontStretch: r$2.fontStretch || "normal",
825
- fontSizeAdjust: r$2.fontSizeAdjust || "none",
826
- textRendering: r$2.textRendering || "auto",
827
- fontFeatureSettings: r$2.fontFeatureSettings || "normal",
828
- fontVariantNumeric: r$2.fontVariantNumeric || "normal",
829
- fontKerning: r$2.fontKerning || "auto"
830
- }
831
- };
832
- return t$2.body.removeChild(n$3), i$2;
833
- } catch (e$4) {
834
- return { error: e$4.message };
835
- }
836
- }(e$2, t$1);
837
- o$1.push({
838
- width: i$1.dimensions.width,
839
- height: i$1.dimensions.height
840
- }), 0 === n$2 && i$1.fontInfo && (r$1 = h(O(i$1.fontInfo)));
841
- }));
842
- const i = {
843
- fontStyleHash: r$1,
844
- dimensions: o$1
845
- };
846
- e$1({
847
- details: i,
848
- hash: h(O(i))
849
- });
850
- } catch (t$2) {
851
- e$1({
852
- supported: !1,
853
- error: `MathML error: ${t$2.message}`
854
- });
855
- }
856
- }));
857
- } catch (t$1) {
858
- e$1({
859
- supported: !1,
860
- error: `MathML error: ${t$1.message}`
861
- });
862
- }
863
- }));
864
- },
865
- speech: async function() {
866
- return new Promise(((e$1) => {
867
- try {
868
- if ("undefined" == typeof window || !window.speechSynthesis || "function" != typeof window.speechSynthesis.getVoices) return void e$1({
869
- supported: !1,
870
- error: "Speech Synthesis API not supported"
871
- });
872
- let t$1 = !1, n$1 = null;
873
- const o$1 = (o$2) => {
874
- if (!t$1) {
875
- t$1 = !0, n$1 && clearTimeout(n$1);
876
- try {
877
- const t$2 = o$2.map(((e$2) => {
878
- const t$3 = (e$3) => e$3.replace(/\\/g, "\\\\").replace(/,/g, "\\,");
879
- return [
880
- t$3(e$2.voiceURI || ""),
881
- t$3(e$2.name || ""),
882
- t$3(e$2.lang || ""),
883
- e$2.localService ? "1" : "0",
884
- e$2.default ? "1" : "0"
885
- ].join(",");
886
- }));
887
- t$2.sort();
888
- const n$2 = {
889
- voiceCount: o$2.length,
890
- voicesHash: h(O(t$2))
891
- };
892
- e$1({
893
- details: n$2,
894
- hash: h(O(n$2))
895
- });
896
- } catch (t$2) {
897
- e$1({
898
- supported: !0,
899
- error: `Voice processing failed: ${t$2.message}`
900
- });
901
- }
902
- }
903
- }, r$1 = window.speechSynthesis.getVoices();
904
- if (r$1.length > 0) return void o$1(r$1);
905
- n$1 = setTimeout((() => {
906
- o$1(window.speechSynthesis.getVoices());
907
- }), 800);
908
- const i = () => {
909
- window.speechSynthesis.removeEventListener("voiceschanged", i);
910
- o$1(window.speechSynthesis.getVoices());
911
- };
912
- window.speechSynthesis.addEventListener("voiceschanged", i);
913
- } catch (t$1) {
914
- e$1({
915
- supported: !1,
916
- error: `Speech Synthesis error: ${t$1.message}`
917
- });
918
- }
919
- }));
920
- }
921
- }, U = {}, j = { timeout: "true" }, W = (e$1, t$1, n$1) => {
922
- U[e$1] = t$1;
923
- };
924
- function G(e$1, t$1) {
925
- var n$1;
926
- let o$1 = x();
927
- if ("unknown" === o$1.name && e$1.system && "object" == typeof e$1.system && !Array.isArray(e$1.system)) {
928
- const t$2 = e$1.system.browser;
929
- if (t$2 && "object" == typeof t$2 && !Array.isArray(t$2)) {
930
- const e$2 = t$2;
931
- o$1 = {
932
- name: e$2.name || "unknown",
933
- version: e$2.version || "unknown"
934
- };
935
- }
936
- }
937
- const r$1 = o$1.name.toLowerCase(), i = o$1.version.split(".")[0] || "0", s$1 = parseInt(i, 10), c$1 = [...(null == t$1 ? void 0 : t$1.exclude) || []], l$1 = (null == t$1 ? void 0 : t$1.stabilize) || [], u$1 = (null == t$1 ? void 0 : t$1.include) || [];
938
- for (const e$2 of l$1) {
939
- const t$2 = a[e$2];
940
- if (t$2) for (const e$3 of t$2) {
941
- const t$3 = !("browsers" in e$3), o$2 = !t$3 && (null === (n$1 = e$3.browsers) || void 0 === n$1 ? void 0 : n$1.some(((e$4) => {
942
- const t$4 = e$4.match(/(.+?)(>=)(\d+)/);
943
- if (t$4) {
944
- const [, e$5, , n$2] = t$4;
945
- return r$1 === e$5 && s$1 >= parseInt(n$2, 10);
946
- }
947
- return r$1 === e$4;
948
- })));
949
- (t$3 || o$2) && c$1.push(...e$3.exclude);
950
- }
951
- }
952
- return function e$2(t$2, n$2 = "") {
953
- const o$2 = {};
954
- for (const [r$2, i$1] of Object.entries(t$2)) {
955
- const t$3 = n$2 ? `${n$2}.${r$2}` : r$2;
956
- if ("object" != typeof i$1 || Array.isArray(i$1) || null === i$1) {
957
- const e$3 = c$1.some(((e$4) => t$3.startsWith(e$4))), n$3 = u$1.some(((e$4) => t$3.startsWith(e$4)));
958
- e$3 && !n$3 || (o$2[r$2] = i$1);
959
- } else {
960
- const n$3 = e$2(i$1, t$3);
961
- Object.keys(n$3).length > 0 && (o$2[r$2] = n$3);
962
- }
963
- }
964
- return o$2;
965
- }(e$1);
966
- }
967
- const z = "visitor_id";
968
- function J(e$1) {
969
- return e$1.storage_property_name ? e$1.storage_property_name : e$1.property_name_factory(z);
970
- }
971
- const q = `${t}_${z}`;
972
- function K(e$1, t$1) {
973
- try {
974
- localStorage.setItem(J(t$1), e$1);
975
- } catch (e$2) {}
976
- }
977
- const Y = "cache";
978
- function X(e$1) {
979
- try {
980
- const t$1 = localStorage.getItem(e$1.property_name_factory(Y));
981
- return JSON.parse(t$1) || {};
982
- } catch (e$2) {}
983
- return {};
984
- }
985
- function Z(t$1) {
986
- return t$1.cache_lifetime_in_ms > e ? Date.now() + e : Date.now() + t$1.cache_lifetime_in_ms;
987
- }
988
- let Q = null, ee = null;
989
- const te = (e$1, t$1) => {
990
- if (e$1.cache_api_call) {
991
- if (ee) return Promise.resolve(ee);
992
- const t$2 = function(e$2) {
993
- const t$3 = X(e$2);
994
- if (t$3 && t$3.apiResponse && t$3.apiResponseExpiry && Date.now() <= t$3.apiResponseExpiry) return t$3.apiResponse;
995
- }(e$1);
996
- if (t$2) return Promise.resolve(t$2);
997
- if (Q) return Q;
998
- }
999
- const o$1 = `${e$1.api_endpoint || n}/thumbmark`, r$1 = function(e$2) {
1000
- try {
1001
- const t$2 = J(e$2);
1002
- let n$1 = localStorage.getItem(t$2);
1003
- return n$1 || t$2 === q || (n$1 = localStorage.getItem(q), n$1 && K(n$1, e$2)), n$1;
1004
- } catch (e$3) {
1005
- return null;
1006
- }
1007
- }(e$1), i = {
1008
- components: t$1,
1009
- options: e$1,
1010
- clientHash: h(O(t$1)),
1011
- version: "1.6.3"
1012
- };
1013
- r$1 && (i.visitorId = r$1);
1014
- const a$1 = fetch(o$1, {
1015
- method: "POST",
1016
- headers: {
1017
- "x-api-key": e$1.api_key,
1018
- Authorization: "custom-authorized",
1019
- "Content-Type": "application/json"
1020
- },
1021
- body: JSON.stringify(i)
1022
- }).then(((e$2) => {
1023
- if (!e$2.ok) {
1024
- if (403 === e$2.status) throw new Error("INVALID_API_KEY");
1025
- throw new Error(`HTTP error! status: ${e$2.status}`);
1026
- }
1027
- return e$2.json();
1028
- })).then(((t$2) => (t$2.visitorId && t$2.visitorId !== r$1 && K(t$2.visitorId, e$1), ee = t$2, function(e$2, t$3) {
1029
- if (!e$2.cache_api_call || !e$2.cache_lifetime_in_ms) return;
1030
- (function(e$3, t$4) {
1031
- const n$1 = {
1032
- ...X(e$3),
1033
- ...t$4
1034
- };
1035
- try {
1036
- localStorage.setItem(e$3.property_name_factory(Y), JSON.stringify(n$1));
1037
- } catch (e$4) {}
1038
- })(e$2, {
1039
- apiResponseExpiry: Z(e$2),
1040
- apiResponse: t$3
1041
- });
1042
- }(e$1, t$2), Q = null, t$2))).catch(((e$2) => {
1043
- if (console.error("Error fetching pro data", e$2), Q = null, "INVALID_API_KEY" === e$2.message) throw e$2;
1044
- return null;
1045
- })), s$1 = e$1.timeout || 5e3, c$1 = new Promise(((t$2) => {
1046
- setTimeout((() => {
1047
- const n$1 = X(e$1);
1048
- n$1 && n$1.apiResponse ? t$2(n$1.apiResponse) : t$2({
1049
- info: { timed_out: !0 },
1050
- ...r$1 && { visitorId: r$1 }
1051
- });
1052
- }), s$1);
1053
- }));
1054
- return Q = Promise.race([a$1, c$1]), Q;
1055
- };
1056
- async function ne(e$1) {
1057
- var t$1;
1058
- if ("undefined" == typeof document || "undefined" == typeof window) return {
1059
- thumbmark: "",
1060
- components: {},
1061
- info: {},
1062
- version: "1.6.3",
1063
- error: "Browser environment required"
1064
- };
1065
- const r$1 = {
1066
- ...o,
1067
- ...e$1
1068
- }, i = r$1.logging && !sessionStorage.getItem("_tmjs_l") && Math.random() < 1e-4, { elapsed: s$1, resolvedComponents: c$1 } = await oe({
1069
- ...V,
1070
- ...U
1071
- }, r$1);
1072
- let l$1 = {}, u$1 = {};
1073
- if (i || r$1.experimental) {
1074
- const { elapsed: e$2, resolvedComponents: t$2 } = await oe(F, r$1);
1075
- l$1 = t$2, u$1 = e$2;
1076
- }
1077
- const d$1 = r$1.api_key ? te(r$1, c$1) : null;
1078
- let m$1 = null;
1079
- if (d$1) try {
1080
- m$1 = await d$1;
1081
- } catch (e$2) {
1082
- if (e$2 instanceof Error && "INVALID_API_KEY" === e$2.message) return {
1083
- error: "Invalid API key or quota exceeded",
1084
- components: {},
1085
- info: {},
1086
- version: "1.6.3",
1087
- thumbmark: ""
1088
- };
1089
- throw e$2;
1090
- }
1091
- const f$1 = {
1092
- ...s$1,
1093
- ...u$1
1094
- }, p$1 = r$1.performance ? { elapsed: f$1 } : {}, g$1 = G((null == m$1 ? void 0 : m$1.components) || {}, r$1), w$1 = {
1095
- ...c$1,
1096
- ...g$1
1097
- }, v$1 = (null == m$1 ? void 0 : m$1.info) || { uniqueness: { score: "api only" } }, y$1 = null !== (t$1 = null == m$1 ? void 0 : m$1.thumbmark) && void 0 !== t$1 ? t$1 : h(O(w$1));
1098
- i && async function(e$2, t$2, o$1, r$2 = {}) {
1099
- var i$1;
1100
- const a$1 = `${n}/log`, s$2 = {
1101
- thumbmark: e$2,
1102
- components: t$2,
1103
- experimental: r$2,
1104
- version: "1.6.3",
1105
- options: o$1,
1106
- path: null === (i$1 = null === window || void 0 === window ? void 0 : window.location) || void 0 === i$1 ? void 0 : i$1.pathname
1107
- };
1108
- sessionStorage.setItem("_tmjs_l", "1");
1109
- try {
1110
- await fetch(a$1, {
1111
- method: "POST",
1112
- headers: { "Content-Type": "application/json" },
1113
- body: JSON.stringify(s$2)
1114
- });
1115
- } catch (e$3) {}
1116
- }(y$1, w$1, r$1, l$1).catch((() => {}));
1117
- return {
1118
- ...(null == m$1 ? void 0 : m$1.visitorId) && { visitorId: m$1.visitorId },
1119
- thumbmark: y$1,
1120
- components: w$1,
1121
- info: v$1,
1122
- version: "1.6.3",
1123
- ...p$1,
1124
- ...Object.keys(l$1).length > 0 && r$1.experimental && { experimental: l$1 },
1125
- ...(null == m$1 ? void 0 : m$1.requestId) && { requestId: m$1.requestId }
1126
- };
1127
- }
1128
- async function oe(e$1, t$1) {
1129
- const n$1 = {
1130
- ...o,
1131
- ...t$1
1132
- }, r$1 = Object.entries(e$1).filter((([e$2]) => {
1133
- var t$2;
1134
- return !(null === (t$2 = null == n$1 ? void 0 : n$1.exclude) || void 0 === t$2 ? void 0 : t$2.includes(e$2));
1135
- })).filter((([e$2]) => {
1136
- var t$2, o$1, r$2, i$1;
1137
- return (null === (t$2 = null == n$1 ? void 0 : n$1.include) || void 0 === t$2 ? void 0 : t$2.some(((e$3) => e$3.includes(".")))) ? null === (o$1 = null == n$1 ? void 0 : n$1.include) || void 0 === o$1 ? void 0 : o$1.some(((t$3) => t$3.startsWith(e$2))) : 0 === (null === (r$2 = null == n$1 ? void 0 : n$1.include) || void 0 === r$2 ? void 0 : r$2.length) || (null === (i$1 = null == n$1 ? void 0 : n$1.include) || void 0 === i$1 ? void 0 : i$1.includes(e$2));
1138
- })), i = r$1.map((([e$2]) => e$2)), s$1 = await function(e$2, t$2, n$2) {
1139
- return Promise.all(e$2.map(((e$3) => {
1140
- const o$1 = performance.now();
1141
- return Promise.race([e$3.then(((e$4) => ({
1142
- value: e$4,
1143
- elapsed: performance.now() - o$1
1144
- }))), (r$2 = t$2, i$1 = n$2, new Promise(((e$4) => {
1145
- setTimeout((() => e$4(i$1)), r$2);
1146
- }))).then(((e$4) => ({
1147
- value: e$4,
1148
- elapsed: performance.now() - o$1
1149
- })))]);
1150
- var r$2, i$1;
1151
- })));
1152
- }(r$1.map((([e$2, n$2]) => n$2(t$1))), (null == n$1 ? void 0 : n$1.timeout) || 5e3, j), c$1 = {}, l$1 = {};
1153
- s$1.forEach(((e$2, t$2) => {
1154
- var n$2;
1155
- null != e$2.value && (l$1[i[t$2]] = e$2.value, c$1[i[t$2]] = null !== (n$2 = e$2.elapsed) && void 0 !== n$2 ? n$2 : 0);
1156
- }));
1157
- return {
1158
- elapsed: c$1,
1159
- resolvedComponents: G(l$1, n$1)
1160
- };
1161
- }
1162
- var se = class {
1163
- constructor(e$1) {
1164
- this.options = {
1165
- ...o,
1166
- ...e$1
1167
- };
1168
- }
1169
- async get(e$1) {
1170
- return ne({
1171
- ...this.options,
1172
- ...e$1
1173
- });
1174
- }
1175
- getVersion() {
1176
- return "1.6.3";
1177
- }
1178
- includeComponent(e$1, t$1) {
1179
- W(e$1, t$1);
1180
- }
1181
- };
1182
-
1183
- //#endregion
1184
- //#region ../infra/src/providers/browser/thumbmarkAdapter.ts
1185
- /**
1186
- * Adapter for @thumbmarkjs/thumbmarkjs. Single point of dependency so bundlers
1187
- * resolve it from infra's node_modules when building apps that depend on core → infra.
1188
- */
1189
- async function getThumbmarkId() {
1190
- return (await new se().get()).thumbmark;
1191
- }
1192
-
1193
- //#endregion
1194
- export { getThumbmarkId as t };