@camstack/addon-benchmark 0.1.13 → 0.1.15

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 (53) hide show
  1. package/assets/fixtures/camera-sim-1080p.h264 +0 -0
  2. package/assets/fixtures/camera-sim-1440p-h265.hevc +0 -0
  3. package/assets/fixtures/camera-sim-360p.h264 +0 -0
  4. package/dist/@mf-types/compiled-types/benchmark-schemas.d.ts +580 -0
  5. package/dist/@mf-types/compiled-types/benchmark-schemas.d.ts.map +1 -0
  6. package/dist/@mf-types/compiled-types/components/NodeSelector.d.ts +7 -0
  7. package/dist/@mf-types/compiled-types/components/NodeSelector.d.ts.map +1 -0
  8. package/dist/@mf-types/compiled-types/page.d.ts +4 -0
  9. package/dist/@mf-types/compiled-types/page.d.ts.map +1 -0
  10. package/dist/@mf-types/compiled-types/tabs/AudioTab.d.ts +6 -0
  11. package/dist/@mf-types/compiled-types/tabs/AudioTab.d.ts.map +1 -0
  12. package/dist/@mf-types/compiled-types/tabs/DecoderTab.d.ts +8 -0
  13. package/dist/@mf-types/compiled-types/tabs/DecoderTab.d.ts.map +1 -0
  14. package/dist/@mf-types/compiled-types/tabs/HistoryTab.d.ts +6 -0
  15. package/dist/@mf-types/compiled-types/tabs/HistoryTab.d.ts.map +1 -0
  16. package/dist/@mf-types/compiled-types/tabs/ImageTab.d.ts +6 -0
  17. package/dist/@mf-types/compiled-types/tabs/ImageTab.d.ts.map +1 -0
  18. package/dist/@mf-types/compiled-types/tabs/PipelineTab.d.ts +5 -0
  19. package/dist/@mf-types/compiled-types/tabs/PipelineTab.d.ts.map +1 -0
  20. package/dist/__mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_sdk__loadShare__.mjs-h5aXOPSA.mjs +12 -0
  21. package/dist/__mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-BDmWQEu5.mjs +16 -0
  22. package/dist/__mfe_internal__addon_benchmark_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs-dyMGAogL.mjs +104 -0
  23. package/dist/__mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs-jq0dGk3x.mjs +85 -0
  24. package/dist/__mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.mjs-CmFI7g4f.mjs +62 -0
  25. package/dist/__mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.mjs-DrODo4jp.mjs +85 -0
  26. package/dist/__mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.mjs_commonjs-proxy-JW-pexXa.mjs +29 -0
  27. package/dist/__mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-Ch91KrC_.mjs +36 -0
  28. package/dist/__mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom__loadShare__.mjs-DJwYdRXA.mjs +45 -0
  29. package/dist/__mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-B7BvuptH.mjs +6 -0
  30. package/dist/__mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs-D0WpT8pS.mjs +34 -0
  31. package/dist/_stub.js +11270 -0
  32. package/dist/_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-BeLfGVa1.mjs +156 -0
  33. package/dist/addon-benchmark.css +1 -1
  34. package/dist/client-DFXd_CTL.mjs +10063 -0
  35. package/dist/getErrorShape-BPSzUA7W-TlK8ipWe.mjs +211 -0
  36. package/dist/hostInit-CVXvnQQ4.mjs +168 -0
  37. package/dist/index-B3DDm3f_.mjs +435 -0
  38. package/dist/index-B9MIeX8E.mjs +1617 -0
  39. package/dist/index-BHDPHRYK.mjs +19109 -0
  40. package/dist/index-CRN37Hr9.mjs +15195 -0
  41. package/dist/index-CwX5nq5R.mjs +185 -0
  42. package/dist/index-DIVnrURN.mjs +725 -0
  43. package/dist/index-DqipDAUg.mjs +2603 -0
  44. package/dist/index-xncRG7-x.mjs +2713 -0
  45. package/dist/index.js +15547 -21
  46. package/dist/index.js.map +1 -1
  47. package/dist/index.mjs +15546 -20
  48. package/dist/index.mjs.map +1 -1
  49. package/dist/jsx-runtime-BblBcpPM.mjs +55 -0
  50. package/dist/remoteEntry.js +2973 -0
  51. package/dist/virtualExposes-pfue1WZv.mjs +42 -0
  52. package/package.json +30 -10
  53. package/dist/page.mjs +0 -6772
@@ -0,0 +1,435 @@
1
+ import { a as x } from "./__mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.mjs_commonjs-proxy-JW-pexXa.mjs";
2
+ function M(t, e) {
3
+ for (var r = 0; r < e.length; r++) {
4
+ const n = e[r];
5
+ if (typeof n != "string" && !Array.isArray(n)) {
6
+ for (const o in n)
7
+ if (o !== "default" && !(o in t)) {
8
+ const s = Object.getOwnPropertyDescriptor(n, o);
9
+ s && Object.defineProperty(t, o, s.get ? s : {
10
+ enumerable: !0,
11
+ get: () => n[o]
12
+ });
13
+ }
14
+ }
15
+ }
16
+ return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
17
+ }
18
+ var w = { exports: {} }, u = {};
19
+ /**
20
+ * @license React
21
+ * react.production.js
22
+ *
23
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */
28
+ var v = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), U = Symbol.for("react.consumer"), D = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), G = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), g = Symbol.iterator;
29
+ function B(t) {
30
+ return t === null || typeof t != "object" ? null : (t = g && t[g] || t["@@iterator"], typeof t == "function" ? t : null);
31
+ }
32
+ var h = {
33
+ isMounted: function() {
34
+ return !1;
35
+ },
36
+ enqueueForceUpdate: function() {
37
+ },
38
+ enqueueReplaceState: function() {
39
+ },
40
+ enqueueSetState: function() {
41
+ }
42
+ }, j = Object.assign, P = {};
43
+ function l(t, e, r) {
44
+ this.props = t, this.context = e, this.refs = P, this.updater = r || h;
45
+ }
46
+ l.prototype.isReactComponent = {};
47
+ l.prototype.setState = function(t, e) {
48
+ if (typeof t != "object" && typeof t != "function" && t != null)
49
+ throw Error(
50
+ "takes an object of state variables to update or a function which returns an object of state variables."
51
+ );
52
+ this.updater.enqueueSetState(this, t, e, "setState");
53
+ };
54
+ l.prototype.forceUpdate = function(t) {
55
+ this.updater.enqueueForceUpdate(this, t, "forceUpdate");
56
+ };
57
+ function H() {
58
+ }
59
+ H.prototype = l.prototype;
60
+ function T(t, e, r) {
61
+ this.props = t, this.context = e, this.refs = P, this.updater = r || h;
62
+ }
63
+ var m = T.prototype = new H();
64
+ m.constructor = T;
65
+ j(m, l.prototype);
66
+ m.isPureReactComponent = !0;
67
+ var d = Array.isArray;
68
+ function E() {
69
+ }
70
+ var i = { H: null, A: null, T: null, S: null }, $ = Object.prototype.hasOwnProperty;
71
+ function R(t, e, r) {
72
+ var n = r.ref;
73
+ return {
74
+ $$typeof: v,
75
+ type: t,
76
+ key: e,
77
+ ref: n !== void 0 ? n : null,
78
+ props: r
79
+ };
80
+ }
81
+ function W(t, e) {
82
+ return R(t.type, e, t.props);
83
+ }
84
+ function C(t) {
85
+ return typeof t == "object" && t !== null && t.$$typeof === v;
86
+ }
87
+ function Q(t) {
88
+ var e = { "=": "=0", ":": "=2" };
89
+ return "$" + t.replace(/[=:]/g, function(r) {
90
+ return e[r];
91
+ });
92
+ }
93
+ var A = /\/+/g;
94
+ function y(t, e) {
95
+ return typeof t == "object" && t !== null && t.key != null ? Q("" + t.key) : e.toString(36);
96
+ }
97
+ function X(t) {
98
+ switch (t.status) {
99
+ case "fulfilled":
100
+ return t.value;
101
+ case "rejected":
102
+ throw t.reason;
103
+ default:
104
+ switch (typeof t.status == "string" ? t.then(E, E) : (t.status = "pending", t.then(
105
+ function(e) {
106
+ t.status === "pending" && (t.status = "fulfilled", t.value = e);
107
+ },
108
+ function(e) {
109
+ t.status === "pending" && (t.status = "rejected", t.reason = e);
110
+ }
111
+ )), t.status) {
112
+ case "fulfilled":
113
+ return t.value;
114
+ case "rejected":
115
+ throw t.reason;
116
+ }
117
+ }
118
+ throw t;
119
+ }
120
+ function a(t, e, r, n, o) {
121
+ var s = typeof t;
122
+ (s === "undefined" || s === "boolean") && (t = null);
123
+ var f = !1;
124
+ if (t === null) f = !0;
125
+ else
126
+ switch (s) {
127
+ case "bigint":
128
+ case "string":
129
+ case "number":
130
+ f = !0;
131
+ break;
132
+ case "object":
133
+ switch (t.$$typeof) {
134
+ case v:
135
+ case I:
136
+ f = !0;
137
+ break;
138
+ case O:
139
+ return f = t._init, a(
140
+ f(t._payload),
141
+ e,
142
+ r,
143
+ n,
144
+ o
145
+ );
146
+ }
147
+ }
148
+ if (f)
149
+ return o = o(t), f = n === "" ? "." + y(t, 0) : n, d(o) ? (r = "", f != null && (r = f.replace(A, "$&/") + "/"), a(o, e, r, "", function(Y) {
150
+ return Y;
151
+ })) : o != null && (C(o) && (o = W(
152
+ o,
153
+ r + (o.key == null || t && t.key === o.key ? "" : ("" + o.key).replace(
154
+ A,
155
+ "$&/"
156
+ ) + "/") + f
157
+ )), e.push(o)), 1;
158
+ f = 0;
159
+ var p = n === "" ? "." : n + ":";
160
+ if (d(t))
161
+ for (var c = 0; c < t.length; c++)
162
+ n = t[c], s = p + y(n, c), f += a(
163
+ n,
164
+ e,
165
+ r,
166
+ s,
167
+ o
168
+ );
169
+ else if (c = B(t), typeof c == "function")
170
+ for (t = c.call(t), c = 0; !(n = t.next()).done; )
171
+ n = n.value, s = p + y(n, c++), f += a(
172
+ n,
173
+ e,
174
+ r,
175
+ s,
176
+ o
177
+ );
178
+ else if (s === "object") {
179
+ if (typeof t.then == "function")
180
+ return a(
181
+ X(t),
182
+ e,
183
+ r,
184
+ n,
185
+ o
186
+ );
187
+ throw e = String(t), Error(
188
+ "Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead."
189
+ );
190
+ }
191
+ return f;
192
+ }
193
+ function _(t, e, r) {
194
+ if (t == null) return t;
195
+ var n = [], o = 0;
196
+ return a(t, n, "", "", function(s) {
197
+ return e.call(r, s, o++);
198
+ }), n;
199
+ }
200
+ function Z(t) {
201
+ if (t._status === -1) {
202
+ var e = t._result;
203
+ e = e(), e.then(
204
+ function(r) {
205
+ (t._status === 0 || t._status === -1) && (t._status = 1, t._result = r);
206
+ },
207
+ function(r) {
208
+ (t._status === 0 || t._status === -1) && (t._status = 2, t._result = r);
209
+ }
210
+ ), t._status === -1 && (t._status = 0, t._result = e);
211
+ }
212
+ if (t._status === 1) return t._result.default;
213
+ throw t._result;
214
+ }
215
+ var S = typeof reportError == "function" ? reportError : function(t) {
216
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
217
+ var e = new window.ErrorEvent("error", {
218
+ bubbles: !0,
219
+ cancelable: !0,
220
+ message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
221
+ error: t
222
+ });
223
+ if (!window.dispatchEvent(e)) return;
224
+ } else if (typeof process == "object" && typeof process.emit == "function") {
225
+ process.emit("uncaughtException", t);
226
+ return;
227
+ }
228
+ console.error(t);
229
+ }, J = {
230
+ map: _,
231
+ forEach: function(t, e, r) {
232
+ _(
233
+ t,
234
+ function() {
235
+ e.apply(this, arguments);
236
+ },
237
+ r
238
+ );
239
+ },
240
+ count: function(t) {
241
+ var e = 0;
242
+ return _(t, function() {
243
+ e++;
244
+ }), e;
245
+ },
246
+ toArray: function(t) {
247
+ return _(t, function(e) {
248
+ return e;
249
+ }) || [];
250
+ },
251
+ only: function(t) {
252
+ if (!C(t))
253
+ throw Error(
254
+ "React.Children.only expected to receive a single React element child."
255
+ );
256
+ return t;
257
+ }
258
+ };
259
+ u.Activity = K;
260
+ u.Children = J;
261
+ u.Component = l;
262
+ u.Fragment = b;
263
+ u.Profiler = L;
264
+ u.PureComponent = T;
265
+ u.StrictMode = k;
266
+ u.Suspense = z;
267
+ u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i;
268
+ u.__COMPILER_RUNTIME = {
269
+ __proto__: null,
270
+ c: function(t) {
271
+ return i.H.useMemoCache(t);
272
+ }
273
+ };
274
+ u.cache = function(t) {
275
+ return function() {
276
+ return t.apply(null, arguments);
277
+ };
278
+ };
279
+ u.cacheSignal = function() {
280
+ return null;
281
+ };
282
+ u.cloneElement = function(t, e, r) {
283
+ if (t == null)
284
+ throw Error(
285
+ "The argument must be a React element, but you passed " + t + "."
286
+ );
287
+ var n = j({}, t.props), o = t.key;
288
+ if (e != null)
289
+ for (s in e.key !== void 0 && (o = "" + e.key), e)
290
+ !$.call(e, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && e.ref === void 0 || (n[s] = e[s]);
291
+ var s = arguments.length - 2;
292
+ if (s === 1) n.children = r;
293
+ else if (1 < s) {
294
+ for (var f = Array(s), p = 0; p < s; p++)
295
+ f[p] = arguments[p + 2];
296
+ n.children = f;
297
+ }
298
+ return R(t.type, o, n);
299
+ };
300
+ u.createContext = function(t) {
301
+ return t = {
302
+ $$typeof: D,
303
+ _currentValue: t,
304
+ _currentValue2: t,
305
+ _threadCount: 0,
306
+ Provider: null,
307
+ Consumer: null
308
+ }, t.Provider = t, t.Consumer = {
309
+ $$typeof: U,
310
+ _context: t
311
+ }, t;
312
+ };
313
+ u.createElement = function(t, e, r) {
314
+ var n, o = {}, s = null;
315
+ if (e != null)
316
+ for (n in e.key !== void 0 && (s = "" + e.key), e)
317
+ $.call(e, n) && n !== "key" && n !== "__self" && n !== "__source" && (o[n] = e[n]);
318
+ var f = arguments.length - 2;
319
+ if (f === 1) o.children = r;
320
+ else if (1 < f) {
321
+ for (var p = Array(f), c = 0; c < f; c++)
322
+ p[c] = arguments[c + 2];
323
+ o.children = p;
324
+ }
325
+ if (t && t.defaultProps)
326
+ for (n in f = t.defaultProps, f)
327
+ o[n] === void 0 && (o[n] = f[n]);
328
+ return R(t, s, o);
329
+ };
330
+ u.createRef = function() {
331
+ return { current: null };
332
+ };
333
+ u.forwardRef = function(t) {
334
+ return { $$typeof: q, render: t };
335
+ };
336
+ u.isValidElement = C;
337
+ u.lazy = function(t) {
338
+ return {
339
+ $$typeof: O,
340
+ _payload: { _status: -1, _result: t },
341
+ _init: Z
342
+ };
343
+ };
344
+ u.memo = function(t, e) {
345
+ return {
346
+ $$typeof: G,
347
+ type: t,
348
+ compare: e === void 0 ? null : e
349
+ };
350
+ };
351
+ u.startTransition = function(t) {
352
+ var e = i.T, r = {};
353
+ i.T = r;
354
+ try {
355
+ var n = t(), o = i.S;
356
+ o !== null && o(r, n), typeof n == "object" && n !== null && typeof n.then == "function" && n.then(E, S);
357
+ } catch (s) {
358
+ S(s);
359
+ } finally {
360
+ e !== null && r.types !== null && (e.types = r.types), i.T = e;
361
+ }
362
+ };
363
+ u.unstable_useCacheRefresh = function() {
364
+ return i.H.useCacheRefresh();
365
+ };
366
+ u.use = function(t) {
367
+ return i.H.use(t);
368
+ };
369
+ u.useActionState = function(t, e, r) {
370
+ return i.H.useActionState(t, e, r);
371
+ };
372
+ u.useCallback = function(t, e) {
373
+ return i.H.useCallback(t, e);
374
+ };
375
+ u.useContext = function(t) {
376
+ return i.H.useContext(t);
377
+ };
378
+ u.useDebugValue = function() {
379
+ };
380
+ u.useDeferredValue = function(t, e) {
381
+ return i.H.useDeferredValue(t, e);
382
+ };
383
+ u.useEffect = function(t, e) {
384
+ return i.H.useEffect(t, e);
385
+ };
386
+ u.useEffectEvent = function(t) {
387
+ return i.H.useEffectEvent(t);
388
+ };
389
+ u.useId = function() {
390
+ return i.H.useId();
391
+ };
392
+ u.useImperativeHandle = function(t, e, r) {
393
+ return i.H.useImperativeHandle(t, e, r);
394
+ };
395
+ u.useInsertionEffect = function(t, e) {
396
+ return i.H.useInsertionEffect(t, e);
397
+ };
398
+ u.useLayoutEffect = function(t, e) {
399
+ return i.H.useLayoutEffect(t, e);
400
+ };
401
+ u.useMemo = function(t, e) {
402
+ return i.H.useMemo(t, e);
403
+ };
404
+ u.useOptimistic = function(t, e) {
405
+ return i.H.useOptimistic(t, e);
406
+ };
407
+ u.useReducer = function(t, e, r) {
408
+ return i.H.useReducer(t, e, r);
409
+ };
410
+ u.useRef = function(t) {
411
+ return i.H.useRef(t);
412
+ };
413
+ u.useState = function(t) {
414
+ return i.H.useState(t);
415
+ };
416
+ u.useSyncExternalStore = function(t, e, r) {
417
+ return i.H.useSyncExternalStore(
418
+ t,
419
+ e,
420
+ r
421
+ );
422
+ };
423
+ u.useTransition = function() {
424
+ return i.H.useTransition();
425
+ };
426
+ u.version = "19.2.5";
427
+ w.exports = u;
428
+ var N = w.exports;
429
+ const V = /* @__PURE__ */ x(N), tt = /* @__PURE__ */ M({
430
+ __proto__: null,
431
+ default: V
432
+ }, [N]);
433
+ export {
434
+ tt as i
435
+ };