@silvery/examples 0.17.3 → 0.17.4

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 (112) hide show
  1. package/dist/UPNG-Cy7ViL8f.mjs +5074 -0
  2. package/dist/__vite-browser-external-2447137e-BML7CYau.mjs +4 -0
  3. package/dist/_banner-DLPxCqVy.mjs +44 -0
  4. package/dist/ansi-CCE2pVS0.mjs +16397 -0
  5. package/dist/apng-HhhBjRGt.mjs +68 -0
  6. package/dist/apng-mwUQbTTF.mjs +3 -0
  7. package/dist/apps/aichat/index.mjs +1299 -0
  8. package/dist/apps/app-todo.mjs +139 -0
  9. package/dist/apps/async-data.mjs +204 -0
  10. package/dist/apps/cli-wizard.mjs +339 -0
  11. package/dist/apps/clipboard.mjs +198 -0
  12. package/dist/apps/components.mjs +864 -0
  13. package/dist/apps/data-explorer.mjs +483 -0
  14. package/dist/apps/dev-tools.mjs +397 -0
  15. package/dist/apps/explorer.mjs +698 -0
  16. package/dist/apps/gallery.mjs +766 -0
  17. package/dist/apps/inline-bench.mjs +115 -0
  18. package/dist/apps/kanban.mjs +280 -0
  19. package/dist/apps/layout-ref.mjs +187 -0
  20. package/dist/apps/outline.mjs +203 -0
  21. package/dist/apps/paste-demo.mjs +189 -0
  22. package/dist/apps/scroll.mjs +86 -0
  23. package/dist/apps/search-filter.mjs +287 -0
  24. package/dist/apps/selection.mjs +355 -0
  25. package/dist/apps/spatial-focus-demo.mjs +388 -0
  26. package/dist/apps/task-list.mjs +258 -0
  27. package/dist/apps/terminal-caps-demo.mjs +315 -0
  28. package/dist/apps/terminal.mjs +872 -0
  29. package/dist/apps/text-selection-demo.mjs +254 -0
  30. package/dist/apps/textarea.mjs +178 -0
  31. package/dist/apps/theme.mjs +661 -0
  32. package/dist/apps/transform.mjs +215 -0
  33. package/dist/apps/virtual-10k.mjs +422 -0
  34. package/dist/assets/resvgjs.darwin-arm64-BtufyGW1.node +0 -0
  35. package/dist/backends-Bahh9mKN.mjs +1179 -0
  36. package/dist/backends-CCtCDQ94.mjs +3 -0
  37. package/dist/{cli.mjs → bin/cli.mjs} +15 -19
  38. package/dist/chunk-BSw8zbkd.mjs +37 -0
  39. package/dist/components/counter.mjs +48 -0
  40. package/dist/components/hello.mjs +31 -0
  41. package/dist/components/progress-bar.mjs +59 -0
  42. package/dist/components/select-list.mjs +85 -0
  43. package/dist/components/spinner.mjs +57 -0
  44. package/dist/components/text-input.mjs +62 -0
  45. package/dist/components/virtual-list.mjs +51 -0
  46. package/dist/flexily-zero-adapter-UB-ra8fR.mjs +3374 -0
  47. package/dist/gif-BZaqPPVX.mjs +3 -0
  48. package/dist/gif-BtnXuxLF.mjs +71 -0
  49. package/dist/gifenc-CLRW41dk.mjs +728 -0
  50. package/dist/jsx-runtime-dMs_8fNu.mjs +241 -0
  51. package/dist/key-mapping-5oYQdAQE.mjs +3 -0
  52. package/dist/key-mapping-D4LR1go6.mjs +130 -0
  53. package/dist/layout/dashboard.mjs +1204 -0
  54. package/dist/layout/live-resize.mjs +303 -0
  55. package/dist/layout/overflow.mjs +70 -0
  56. package/dist/layout/text-layout.mjs +335 -0
  57. package/dist/node-NuJ94BWl.mjs +1083 -0
  58. package/dist/plugins-D1KtkT4a.mjs +3057 -0
  59. package/dist/resvg-js-C_8Wps1F.mjs +201 -0
  60. package/dist/src-BTEVGpd9.mjs +23538 -0
  61. package/dist/src-CUUOuRH6.mjs +5322 -0
  62. package/dist/src-CzfRafCQ.mjs +814 -0
  63. package/dist/usingCtx-CsEf0xO3.mjs +57 -0
  64. package/dist/yoga-adapter-BVtQ5OJR.mjs +237 -0
  65. package/package.json +18 -13
  66. package/_banner.tsx +0 -60
  67. package/apps/aichat/components.tsx +0 -469
  68. package/apps/aichat/index.tsx +0 -220
  69. package/apps/aichat/script.ts +0 -460
  70. package/apps/aichat/state.ts +0 -325
  71. package/apps/aichat/types.ts +0 -19
  72. package/apps/app-todo.tsx +0 -201
  73. package/apps/async-data.tsx +0 -196
  74. package/apps/cli-wizard.tsx +0 -332
  75. package/apps/clipboard.tsx +0 -183
  76. package/apps/components.tsx +0 -658
  77. package/apps/data-explorer.tsx +0 -490
  78. package/apps/dev-tools.tsx +0 -395
  79. package/apps/explorer.tsx +0 -731
  80. package/apps/gallery.tsx +0 -653
  81. package/apps/inline-bench.tsx +0 -138
  82. package/apps/kanban.tsx +0 -265
  83. package/apps/layout-ref.tsx +0 -173
  84. package/apps/outline.tsx +0 -160
  85. package/apps/panes/index.tsx +0 -203
  86. package/apps/paste-demo.tsx +0 -185
  87. package/apps/scroll.tsx +0 -80
  88. package/apps/search-filter.tsx +0 -240
  89. package/apps/selection.tsx +0 -346
  90. package/apps/spatial-focus-demo.tsx +0 -372
  91. package/apps/task-list.tsx +0 -271
  92. package/apps/terminal-caps-demo.tsx +0 -317
  93. package/apps/terminal.tsx +0 -784
  94. package/apps/text-selection-demo.tsx +0 -193
  95. package/apps/textarea.tsx +0 -155
  96. package/apps/theme.tsx +0 -515
  97. package/apps/transform.tsx +0 -229
  98. package/apps/virtual-10k.tsx +0 -405
  99. package/apps/vterm-demo/index.tsx +0 -216
  100. package/components/counter.tsx +0 -49
  101. package/components/hello.tsx +0 -38
  102. package/components/progress-bar.tsx +0 -52
  103. package/components/select-list.tsx +0 -54
  104. package/components/spinner.tsx +0 -44
  105. package/components/text-input.tsx +0 -61
  106. package/components/virtual-list.tsx +0 -56
  107. package/dist/cli.d.mts +0 -1
  108. package/dist/cli.mjs.map +0 -1
  109. package/layout/dashboard.tsx +0 -953
  110. package/layout/live-resize.tsx +0 -282
  111. package/layout/overflow.tsx +0 -51
  112. package/layout/text-layout.tsx +0 -283
@@ -0,0 +1,1083 @@
1
+ import { createRequire } from "node:module";
2
+ import { readFile } from "node:fs/promises";
3
+ //#region ../../../node_modules/.bun/yoga-wasm-web@0.3.3/node_modules/yoga-wasm-web/dist/wrapAsm-f766f97f.js
4
+ var YGEnums = {};
5
+ YGEnums.ALIGN_AUTO = 0;
6
+ YGEnums.ALIGN_FLEX_START = 1;
7
+ YGEnums.ALIGN_CENTER = 2;
8
+ YGEnums.ALIGN_FLEX_END = 3;
9
+ YGEnums.ALIGN_STRETCH = 4;
10
+ YGEnums.ALIGN_BASELINE = 5;
11
+ YGEnums.ALIGN_SPACE_BETWEEN = 6;
12
+ YGEnums.ALIGN_SPACE_AROUND = 7;
13
+ YGEnums.DIMENSION_WIDTH = 0;
14
+ YGEnums.DIMENSION_HEIGHT = 1;
15
+ YGEnums.DIRECTION_INHERIT = 0;
16
+ YGEnums.DIRECTION_LTR = 1;
17
+ YGEnums.DIRECTION_RTL = 2;
18
+ YGEnums.DISPLAY_FLEX = 0;
19
+ YGEnums.DISPLAY_NONE = 1;
20
+ YGEnums.EDGE_LEFT = 0;
21
+ YGEnums.EDGE_TOP = 1;
22
+ YGEnums.EDGE_RIGHT = 2;
23
+ YGEnums.EDGE_BOTTOM = 3;
24
+ YGEnums.EDGE_START = 4;
25
+ YGEnums.EDGE_END = 5;
26
+ YGEnums.EDGE_HORIZONTAL = 6;
27
+ YGEnums.EDGE_VERTICAL = 7;
28
+ YGEnums.EDGE_ALL = 8;
29
+ YGEnums.EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS = 0;
30
+ YGEnums.EXPERIMENTAL_FEATURE_ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE = 1;
31
+ YGEnums.EXPERIMENTAL_FEATURE_FIX_ABSOLUTE_TRAILING_COLUMN_MARGIN = 2;
32
+ YGEnums.FLEX_DIRECTION_COLUMN = 0;
33
+ YGEnums.FLEX_DIRECTION_COLUMN_REVERSE = 1;
34
+ YGEnums.FLEX_DIRECTION_ROW = 2;
35
+ YGEnums.FLEX_DIRECTION_ROW_REVERSE = 3;
36
+ YGEnums.GUTTER_COLUMN = 0;
37
+ YGEnums.GUTTER_ROW = 1;
38
+ YGEnums.GUTTER_ALL = 2;
39
+ YGEnums.JUSTIFY_FLEX_START = 0;
40
+ YGEnums.JUSTIFY_CENTER = 1;
41
+ YGEnums.JUSTIFY_FLEX_END = 2;
42
+ YGEnums.JUSTIFY_SPACE_BETWEEN = 3;
43
+ YGEnums.JUSTIFY_SPACE_AROUND = 4;
44
+ YGEnums.JUSTIFY_SPACE_EVENLY = 5;
45
+ YGEnums.LOG_LEVEL_ERROR = 0;
46
+ YGEnums.LOG_LEVEL_WARN = 1;
47
+ YGEnums.LOG_LEVEL_INFO = 2;
48
+ YGEnums.LOG_LEVEL_DEBUG = 3;
49
+ YGEnums.LOG_LEVEL_VERBOSE = 4;
50
+ YGEnums.LOG_LEVEL_FATAL = 5;
51
+ YGEnums.MEASURE_MODE_UNDEFINED = 0;
52
+ YGEnums.MEASURE_MODE_EXACTLY = 1;
53
+ YGEnums.MEASURE_MODE_AT_MOST = 2;
54
+ YGEnums.NODE_TYPE_DEFAULT = 0;
55
+ YGEnums.NODE_TYPE_TEXT = 1;
56
+ YGEnums.OVERFLOW_VISIBLE = 0;
57
+ YGEnums.OVERFLOW_HIDDEN = 1;
58
+ YGEnums.OVERFLOW_SCROLL = 2;
59
+ YGEnums.POSITION_TYPE_STATIC = 0;
60
+ YGEnums.POSITION_TYPE_RELATIVE = 1;
61
+ YGEnums.POSITION_TYPE_ABSOLUTE = 2;
62
+ YGEnums.PRINT_OPTIONS_LAYOUT = 1;
63
+ YGEnums.PRINT_OPTIONS_STYLE = 2;
64
+ YGEnums.PRINT_OPTIONS_CHILDREN = 4;
65
+ YGEnums.UNIT_UNDEFINED = 0;
66
+ YGEnums.UNIT_POINT = 1;
67
+ YGEnums.UNIT_PERCENT = 2;
68
+ YGEnums.UNIT_AUTO = 3;
69
+ YGEnums.WRAP_NO_WRAP = 0;
70
+ YGEnums.WRAP_WRAP = 1;
71
+ YGEnums.WRAP_WRAP_REVERSE = 2;
72
+ var wrapAsm = (E) => {
73
+ function _(E, _, T) {
74
+ let N = E[_];
75
+ E[_] = function(...E) {
76
+ return T.call(this, N, ...E);
77
+ };
78
+ }
79
+ for (let T of [
80
+ "setPosition",
81
+ "setMargin",
82
+ "setFlexBasis",
83
+ "setWidth",
84
+ "setHeight",
85
+ "setMinWidth",
86
+ "setMinHeight",
87
+ "setMaxWidth",
88
+ "setMaxHeight",
89
+ "setPadding"
90
+ ]) {
91
+ let N = {
92
+ [YGEnums.UNIT_POINT]: E.Node.prototype[T],
93
+ [YGEnums.UNIT_PERCENT]: E.Node.prototype[`${T}Percent`],
94
+ [YGEnums.UNIT_AUTO]: E.Node.prototype[`${T}Auto`]
95
+ };
96
+ _(E.Node.prototype, T, function(E, ..._) {
97
+ let I, L;
98
+ let O = _.pop();
99
+ if ("auto" === O) I = YGEnums.UNIT_AUTO, L = void 0;
100
+ else if ("object" == typeof O) I = O.unit, L = O.valueOf();
101
+ else if (I = "string" == typeof O && O.endsWith("%") ? YGEnums.UNIT_PERCENT : YGEnums.UNIT_POINT, L = parseFloat(O), !Number.isNaN(O) && Number.isNaN(L)) throw Error(`Invalid value ${O} for ${T}`);
102
+ if (!N[I]) throw Error(`Failed to execute "${T}": Unsupported unit '${O}'`);
103
+ return void 0 !== L ? N[I].call(this, ..._, L) : N[I].call(this, ..._);
104
+ });
105
+ }
106
+ function T(_) {
107
+ return E.MeasureCallback.implement({ measure: (...E) => {
108
+ let { width: T, height: N } = _(...E);
109
+ return {
110
+ width: T ?? NaN,
111
+ height: N ?? NaN
112
+ };
113
+ } });
114
+ }
115
+ function N(_) {
116
+ return E.DirtiedCallback.implement({ dirtied: _ });
117
+ }
118
+ return _(E.Node.prototype, "setMeasureFunc", function(E, _) {
119
+ return _ ? E.call(this, T(_)) : this.unsetMeasureFunc();
120
+ }), _(E.Node.prototype, "setDirtiedFunc", function(E, _) {
121
+ E.call(this, N(_));
122
+ }), _(E.Config.prototype, "free", function() {
123
+ E.Config.destroy(this);
124
+ }), _(E.Node, "create", (_, T) => T ? E.Node.createWithConfig(T) : E.Node.createDefault()), _(E.Node.prototype, "free", function() {
125
+ E.Node.destroy(this);
126
+ }), _(E.Node.prototype, "freeRecursive", function() {
127
+ for (let E = 0, _ = this.getChildCount(); E < _; ++E) this.getChild(0).freeRecursive();
128
+ this.free();
129
+ }), _(E.Node.prototype, "calculateLayout", function(E, _ = NaN, T = NaN, N = YGEnums.DIRECTION_LTR) {
130
+ return E.call(this, _, T, N);
131
+ }), {
132
+ Config: E.Config,
133
+ Node: E.Node,
134
+ ...YGEnums
135
+ };
136
+ };
137
+ //#endregion
138
+ //#region ../../../node_modules/.bun/yoga-wasm-web@0.3.3/node_modules/yoga-wasm-web/dist/index.js
139
+ var yoga = (() => {
140
+ var n = "undefined" != typeof document && document.currentScript ? document.currentScript.src : void 0;
141
+ return function(t = {}) {
142
+ u || (u = void 0 !== t ? t : {}), u.ready = new Promise(function(n, t) {
143
+ c = n, f = t;
144
+ });
145
+ var r, e, a = Object.assign({}, u), i = "";
146
+ "undefined" != typeof document && document.currentScript && (i = document.currentScript.src), n && (i = n), i = 0 !== i.indexOf("blob:") ? i.substr(0, i.replace(/[?#].*/, "").lastIndexOf("/") + 1) : "";
147
+ var o = console.log.bind(console), s = console.warn.bind(console);
148
+ Object.assign(u, a), a = null, "object" != typeof WebAssembly && w("no native wasm support detected");
149
+ var u, c, f, l, h = !1;
150
+ function p(n, t, r) {
151
+ r = t + r;
152
+ for (var e = ""; !(t >= r);) {
153
+ var a = n[t++];
154
+ if (!a) break;
155
+ if (128 & a) {
156
+ var i = 63 & n[t++];
157
+ if (192 == (224 & a)) e += String.fromCharCode((31 & a) << 6 | i);
158
+ else {
159
+ var o = 63 & n[t++];
160
+ 65536 > (a = 224 == (240 & a) ? (15 & a) << 12 | i << 6 | o : (7 & a) << 18 | i << 12 | o << 6 | 63 & n[t++]) ? e += String.fromCharCode(a) : (a -= 65536, e += String.fromCharCode(55296 | a >> 10, 56320 | 1023 & a));
161
+ }
162
+ } else e += String.fromCharCode(a);
163
+ }
164
+ return e;
165
+ }
166
+ function v() {
167
+ var n = l.buffer;
168
+ u.HEAP8 = d = new Int8Array(n), u.HEAP16 = m = new Int16Array(n), u.HEAP32 = g = new Int32Array(n), u.HEAPU8 = y = new Uint8Array(n), u.HEAPU16 = E = new Uint16Array(n), u.HEAPU32 = _ = new Uint32Array(n), u.HEAPF32 = T = new Float32Array(n), u.HEAPF64 = L = new Float64Array(n);
169
+ }
170
+ var d, y, m, E, g, _, T, L, A, O = [], P = [], b = [], N = 0, I = null;
171
+ function w(n) {
172
+ throw s(n = "Aborted(" + n + ")"), h = !0, f(n = new WebAssembly.RuntimeError(n + ". Build with -sASSERTIONS for more info.")), n;
173
+ }
174
+ function S() {
175
+ return r.startsWith("data:application/octet-stream;base64,");
176
+ }
177
+ function R() {
178
+ try {
179
+ throw "both async and sync fetching of the wasm failed";
180
+ } catch (n) {
181
+ w(n);
182
+ }
183
+ }
184
+ function C(n) {
185
+ for (; 0 < n.length;) n.shift()(u);
186
+ }
187
+ function W(n) {
188
+ if (void 0 === n) return "_unknown";
189
+ var t = (n = n.replace(/[^a-zA-Z0-9_]/g, "$")).charCodeAt(0);
190
+ return 48 <= t && 57 >= t ? "_" + n : n;
191
+ }
192
+ function U(n, t) {
193
+ return n = W(n), function() {
194
+ return t.apply(this, arguments);
195
+ };
196
+ }
197
+ r = "yoga.wasm", S() || (r = i + r);
198
+ var M = [
199
+ {},
200
+ { value: void 0 },
201
+ { value: null },
202
+ { value: !0 },
203
+ { value: !1 }
204
+ ], F = [];
205
+ function D(n) {
206
+ var t = Error, r = U(n, function(t) {
207
+ this.name = n, this.message = t, void 0 !== (t = Error(t).stack) && (this.stack = this.toString() + "\n" + t.replace(/^Error(:[^\n]*)?\n/, ""));
208
+ });
209
+ return r.prototype = Object.create(t.prototype), r.prototype.constructor = r, r.prototype.toString = function() {
210
+ return void 0 === this.message ? this.name : this.name + ": " + this.message;
211
+ }, r;
212
+ }
213
+ var k = void 0;
214
+ function V(n) {
215
+ throw new k(n);
216
+ }
217
+ var j = (n) => (n || V("Cannot use deleted val. handle = " + n), M[n].value), G = (n) => {
218
+ switch (n) {
219
+ case void 0: return 1;
220
+ case null: return 2;
221
+ case !0: return 3;
222
+ case !1: return 4;
223
+ default:
224
+ var t = F.length ? F.pop() : M.length;
225
+ return M[t] = {
226
+ fa: 1,
227
+ value: n
228
+ }, t;
229
+ }
230
+ }, Y = void 0, X = void 0;
231
+ function B(n) {
232
+ for (var t = ""; y[n];) t += X[y[n++]];
233
+ return t;
234
+ }
235
+ var H = [];
236
+ function x() {
237
+ for (; H.length;) {
238
+ var n = H.pop();
239
+ n.L.Z = !1, n.delete();
240
+ }
241
+ }
242
+ var z = void 0, $ = {};
243
+ function Z(n, t) {
244
+ for (void 0 === t && V("ptr should not be undefined"); n.P;) t = n.aa(t), n = n.P;
245
+ return t;
246
+ }
247
+ var J = {};
248
+ function q(n) {
249
+ var t = B(n = nz(n));
250
+ return nZ(n), t;
251
+ }
252
+ function K(n, t) {
253
+ var r = J[n];
254
+ return void 0 === r && V(t + " has unknown type " + q(n)), r;
255
+ }
256
+ function Q() {}
257
+ var nn = !1;
258
+ function nt(n) {
259
+ --n.count.value, 0 === n.count.value && (n.S ? n.T.V(n.S) : n.O.M.V(n.N));
260
+ }
261
+ var nr = {}, ne = void 0;
262
+ function na(n) {
263
+ throw new ne(n);
264
+ }
265
+ function ni(n, t) {
266
+ return t.O && t.N || na("makeClassHandle requires ptr and ptrType"), !!t.T != !!t.S && na("Both smartPtrType and smartPtr must be specified"), t.count = { value: 1 }, no(Object.create(n, { L: { value: t } }));
267
+ }
268
+ function no(n) {
269
+ return "undefined" == typeof FinalizationRegistry ? (no = (n) => n, n) : (nn = new FinalizationRegistry((n) => {
270
+ nt(n.L);
271
+ }), no = (n) => {
272
+ var t = n.L;
273
+ return t.S && nn.register(n, { L: t }, n), n;
274
+ }, Q = (n) => {
275
+ nn.unregister(n);
276
+ }, no(n));
277
+ }
278
+ var ns = {};
279
+ function nu(n) {
280
+ for (; n.length;) {
281
+ var t = n.pop();
282
+ n.pop()(t);
283
+ }
284
+ }
285
+ function nc(n) {
286
+ return this.fromWireType(g[n >> 2]);
287
+ }
288
+ var nf = {}, nl = {};
289
+ function nh(n, t, r) {
290
+ function e(t) {
291
+ (t = r(t)).length !== n.length && na("Mismatched type converter count");
292
+ for (var e = 0; e < n.length; ++e) nv(n[e], t[e]);
293
+ }
294
+ n.forEach(function(n) {
295
+ nl[n] = t;
296
+ });
297
+ var a = Array(t.length), i = [], o = 0;
298
+ t.forEach((n, t) => {
299
+ J.hasOwnProperty(n) ? a[t] = J[n] : (i.push(n), nf.hasOwnProperty(n) || (nf[n] = []), nf[n].push(() => {
300
+ a[t] = J[n], ++o === i.length && e(a);
301
+ }));
302
+ }), 0 === i.length && e(a);
303
+ }
304
+ function np(n) {
305
+ switch (n) {
306
+ case 1: return 0;
307
+ case 2: return 1;
308
+ case 4: return 2;
309
+ case 8: return 3;
310
+ default: throw TypeError("Unknown type size: " + n);
311
+ }
312
+ }
313
+ function nv(n, t, r = {}) {
314
+ if (!("argPackAdvance" in t)) throw TypeError("registerType registeredInstance requires argPackAdvance");
315
+ var e = t.name;
316
+ if (n || V("type \"" + e + "\" must have a positive integer typeid pointer"), J.hasOwnProperty(n)) {
317
+ if (r.ta) return;
318
+ V("Cannot register type '" + e + "' twice");
319
+ }
320
+ J[n] = t, delete nl[n], nf.hasOwnProperty(n) && (t = nf[n], delete nf[n], t.forEach((n) => n()));
321
+ }
322
+ function nd(n) {
323
+ V(n.L.O.M.name + " instance already deleted");
324
+ }
325
+ function ny() {}
326
+ function nm(n, t, r) {
327
+ if (void 0 === n[t].R) {
328
+ var e = n[t];
329
+ n[t] = function() {
330
+ return n[t].R.hasOwnProperty(arguments.length) || V("Function '" + r + "' called with an invalid number of arguments (" + arguments.length + ") - expects one of (" + n[t].R + ")!"), n[t].R[arguments.length].apply(this, arguments);
331
+ }, n[t].R = [], n[t].R[e.Y] = e;
332
+ }
333
+ }
334
+ function nE(n, t, r, e, a, i, o, s) {
335
+ this.name = n, this.constructor = t, this.W = r, this.V = e, this.P = a, this.oa = i, this.aa = o, this.ma = s, this.ia = [];
336
+ }
337
+ function ng(n, t, r) {
338
+ for (; t !== r;) t.aa || V("Expected null or instance of " + r.name + ", got an instance of " + t.name), n = t.aa(n), t = t.P;
339
+ return n;
340
+ }
341
+ function n_(n, t) {
342
+ return null === t ? (this.da && V("null is not a valid " + this.name), 0) : (t.L || V("Cannot pass \"" + nC(t) + "\" as a " + this.name), t.L.N || V("Cannot pass deleted object as a pointer of type " + this.name), ng(t.L.N, t.L.O.M, this.M));
343
+ }
344
+ function nT(n, t) {
345
+ if (null === t) {
346
+ if (this.da && V("null is not a valid " + this.name), this.ca) {
347
+ var r = this.ea();
348
+ return null !== n && n.push(this.V, r), r;
349
+ }
350
+ return 0;
351
+ }
352
+ if (t.L || V("Cannot pass \"" + nC(t) + "\" as a " + this.name), t.L.N || V("Cannot pass deleted object as a pointer of type " + this.name), !this.ba && t.L.O.ba && V("Cannot convert argument of type " + (t.L.T ? t.L.T.name : t.L.O.name) + " to parameter type " + this.name), r = ng(t.L.N, t.L.O.M, this.M), this.ca) switch (void 0 === t.L.S && V("Passing raw pointer to smart pointer is illegal"), this.Aa) {
353
+ case 0:
354
+ t.L.T === this ? r = t.L.S : V("Cannot convert argument of type " + (t.L.T ? t.L.T.name : t.L.O.name) + " to parameter type " + this.name);
355
+ break;
356
+ case 1:
357
+ r = t.L.S;
358
+ break;
359
+ case 2:
360
+ if (t.L.T === this) r = t.L.S;
361
+ else {
362
+ var e = t.clone();
363
+ r = this.wa(r, G(function() {
364
+ e.delete();
365
+ })), null !== n && n.push(this.V, r);
366
+ }
367
+ break;
368
+ default: V("Unsupporting sharing policy");
369
+ }
370
+ return r;
371
+ }
372
+ function nL(n, t) {
373
+ return null === t ? (this.da && V("null is not a valid " + this.name), 0) : (t.L || V("Cannot pass \"" + nC(t) + "\" as a " + this.name), t.L.N || V("Cannot pass deleted object as a pointer of type " + this.name), t.L.O.ba && V("Cannot convert argument of type " + t.L.O.name + " to parameter type " + this.name), ng(t.L.N, t.L.O.M, this.M));
374
+ }
375
+ function nA(n, t, r, e) {
376
+ this.name = n, this.M = t, this.da = r, this.ba = e, this.ca = !1, this.V = this.wa = this.ea = this.ja = this.Aa = this.va = void 0, void 0 !== t.P ? this.toWireType = nT : (this.toWireType = e ? n_ : nL, this.U = null);
377
+ }
378
+ var nO = [];
379
+ function nP(n) {
380
+ var t = nO[n];
381
+ return t || (n >= nO.length && (nO.length = n + 1), nO[n] = t = A.get(n)), t;
382
+ }
383
+ function nb(n, t) {
384
+ var r, e, a = (n = B(n)).includes("j") ? (r = n, e = [], function() {
385
+ if (e.length = 0, Object.assign(e, arguments), r.includes("j")) {
386
+ var n = u["dynCall_" + r];
387
+ n = e && e.length ? n.apply(null, [t].concat(e)) : n.call(null, t);
388
+ } else n = nP(t).apply(null, e);
389
+ return n;
390
+ }) : nP(t);
391
+ return "function" != typeof a && V("unknown function pointer with signature " + n + ": " + t), a;
392
+ }
393
+ var nN = void 0;
394
+ function nI(n, t) {
395
+ var r = [], e = {};
396
+ throw t.forEach(function n(t) {
397
+ e[t] || J[t] || (nl[t] ? nl[t].forEach(n) : (r.push(t), e[t] = !0));
398
+ }), new nN(n + ": " + r.map(q).join([", "]));
399
+ }
400
+ function nw(n, t, r, e, a) {
401
+ var i = t.length;
402
+ 2 > i && V("argTypes array size mismatch! Must at least get return value and 'this' types!");
403
+ var o = null !== t[1] && null !== r, s = !1;
404
+ for (r = 1; r < t.length; ++r) if (null !== t[r] && void 0 === t[r].U) {
405
+ s = !0;
406
+ break;
407
+ }
408
+ var u = "void" !== t[0].name, c = i - 2, f = Array(c), l = [], h = [];
409
+ return function() {
410
+ if (arguments.length !== c && V("function " + n + " called with " + arguments.length + " arguments, expected " + c + " args!"), h.length = 0, l.length = o ? 2 : 1, l[0] = a, o) {
411
+ var r = t[1].toWireType(h, this);
412
+ l[1] = r;
413
+ }
414
+ for (var i = 0; i < c; ++i) f[i] = t[i + 2].toWireType(h, arguments[i]), l.push(f[i]);
415
+ if (i = e.apply(null, l), s) nu(h);
416
+ else for (var p = o ? 1 : 2; p < t.length; p++) {
417
+ var v = 1 === p ? r : f[p - 2];
418
+ null !== t[p].U && t[p].U(v);
419
+ }
420
+ return u ? t[0].fromWireType(i) : void 0;
421
+ };
422
+ }
423
+ function nS(n, t) {
424
+ for (var r = [], e = 0; e < n; e++) r.push(_[t + 4 * e >> 2]);
425
+ return r;
426
+ }
427
+ function nR(n) {
428
+ 4 < n && 0 == --M[n].fa && (M[n] = void 0, F.push(n));
429
+ }
430
+ function nC(n) {
431
+ if (null === n) return "null";
432
+ var t = typeof n;
433
+ return "object" === t || "array" === t || "function" === t ? n.toString() : "" + n;
434
+ }
435
+ function nW(n, t) {
436
+ for (var r = "", e = 0; !(e >= t / 2); ++e) {
437
+ var a = m[n + 2 * e >> 1];
438
+ if (0 == a) break;
439
+ r += String.fromCharCode(a);
440
+ }
441
+ return r;
442
+ }
443
+ function nU(n, t, r) {
444
+ if (void 0 === r && (r = 2147483647), 2 > r) return 0;
445
+ r -= 2;
446
+ var e = t;
447
+ r = r < 2 * n.length ? r / 2 : n.length;
448
+ for (var a = 0; a < r; ++a) m[t >> 1] = n.charCodeAt(a), t += 2;
449
+ return m[t >> 1] = 0, t - e;
450
+ }
451
+ function nM(n) {
452
+ return 2 * n.length;
453
+ }
454
+ function nF(n, t) {
455
+ for (var r = 0, e = ""; !(r >= t / 4);) {
456
+ var a = g[n + 4 * r >> 2];
457
+ if (0 == a) break;
458
+ ++r, 65536 <= a ? (a -= 65536, e += String.fromCharCode(55296 | a >> 10, 56320 | 1023 & a)) : e += String.fromCharCode(a);
459
+ }
460
+ return e;
461
+ }
462
+ function nD(n, t, r) {
463
+ if (void 0 === r && (r = 2147483647), 4 > r) return 0;
464
+ var e = t;
465
+ r = e + r - 4;
466
+ for (var a = 0; a < n.length; ++a) {
467
+ var i = n.charCodeAt(a);
468
+ if (55296 <= i && 57343 >= i && (i = 65536 + ((1023 & i) << 10) | 1023 & n.charCodeAt(++a)), g[t >> 2] = i, (t += 4) + 4 > r) break;
469
+ }
470
+ return g[t >> 2] = 0, t - e;
471
+ }
472
+ function nk(n) {
473
+ for (var t = 0, r = 0; r < n.length; ++r) {
474
+ var e = n.charCodeAt(r);
475
+ 55296 <= e && 57343 >= e && ++r, t += 4;
476
+ }
477
+ return t;
478
+ }
479
+ var nV = {};
480
+ function nj(n) {
481
+ var t = nV[n];
482
+ return void 0 === t ? B(n) : t;
483
+ }
484
+ var nG = [], nY = [], nX = [
485
+ null,
486
+ [],
487
+ []
488
+ ];
489
+ k = u.BindingError = D("BindingError"), u.count_emval_handles = function() {
490
+ for (var n = 0, t = 5; t < M.length; ++t) void 0 !== M[t] && ++n;
491
+ return n;
492
+ }, u.get_first_emval = function() {
493
+ for (var n = 5; n < M.length; ++n) if (void 0 !== M[n]) return M[n];
494
+ return null;
495
+ }, Y = u.PureVirtualError = D("PureVirtualError");
496
+ for (var nB = Array(256), nH = 0; 256 > nH; ++nH) nB[nH] = String.fromCharCode(nH);
497
+ X = nB, u.getInheritedInstanceCount = function() {
498
+ return Object.keys($).length;
499
+ }, u.getLiveInheritedInstances = function() {
500
+ var n, t = [];
501
+ for (n in $) $.hasOwnProperty(n) && t.push($[n]);
502
+ return t;
503
+ }, u.flushPendingDeletes = x, u.setDelayFunction = function(n) {
504
+ z = n, H.length && z && z(x);
505
+ }, ne = u.InternalError = D("InternalError"), ny.prototype.isAliasOf = function(n) {
506
+ if (!(this instanceof ny && n instanceof ny)) return !1;
507
+ var t = this.L.O.M, r = this.L.N, e = n.L.O.M;
508
+ for (n = n.L.N; t.P;) r = t.aa(r), t = t.P;
509
+ for (; e.P;) n = e.aa(n), e = e.P;
510
+ return t === e && r === n;
511
+ }, ny.prototype.clone = function() {
512
+ if (this.L.N || nd(this), this.L.$) return this.L.count.value += 1, this;
513
+ var n = no, t = Object, r = t.create, e = Object.getPrototypeOf(this), a = this.L;
514
+ return n = n(r.call(t, e, { L: { value: {
515
+ count: a.count,
516
+ Z: a.Z,
517
+ $: a.$,
518
+ N: a.N,
519
+ O: a.O,
520
+ S: a.S,
521
+ T: a.T
522
+ } } })), n.L.count.value += 1, n.L.Z = !1, n;
523
+ }, ny.prototype.delete = function() {
524
+ this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), Q(this), nt(this.L), this.L.$ || (this.L.S = void 0, this.L.N = void 0);
525
+ }, ny.prototype.isDeleted = function() {
526
+ return !this.L.N;
527
+ }, ny.prototype.deleteLater = function() {
528
+ return this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), H.push(this), 1 === H.length && z && z(x), this.L.Z = !0, this;
529
+ }, nA.prototype.pa = function(n) {
530
+ return this.ja && (n = this.ja(n)), n;
531
+ }, nA.prototype.ga = function(n) {
532
+ this.V && this.V(n);
533
+ }, nA.prototype.argPackAdvance = 8, nA.prototype.readValueFromPointer = nc, nA.prototype.deleteObject = function(n) {
534
+ null !== n && n.delete();
535
+ }, nA.prototype.fromWireType = function(n) {
536
+ function t() {
537
+ return this.ca ? ni(this.M.W, {
538
+ O: this.va,
539
+ N: e,
540
+ T: this,
541
+ S: n
542
+ }) : ni(this.M.W, {
543
+ O: this,
544
+ N: n
545
+ });
546
+ }
547
+ var e = this.pa(n);
548
+ if (!e) return this.ga(n), null;
549
+ var a = $[Z(this.M, e)];
550
+ if (void 0 !== a) return 0 === a.L.count.value ? (a.L.N = e, a.L.S = n, a.clone()) : (a = a.clone(), this.ga(n), a);
551
+ if (!(a = nr[a = this.M.oa(e)])) return t.call(this);
552
+ a = this.ba ? a.ka : a.pointerType;
553
+ var i = function n(t, r, e) {
554
+ return r === e ? t : void 0 === e.P ? null : null === (t = n(t, r, e.P)) ? null : e.ma(t);
555
+ }(e, this.M, a.M);
556
+ return null === i ? t.call(this) : this.ca ? ni(a.M.W, {
557
+ O: a,
558
+ N: i,
559
+ T: this,
560
+ S: n
561
+ }) : ni(a.M.W, {
562
+ O: a,
563
+ N: i
564
+ });
565
+ }, nN = u.UnboundTypeError = D("UnboundTypeError");
566
+ var nx = {
567
+ q: function(n, t, r) {
568
+ n = B(n), t = K(t, "wrapper"), r = j(r);
569
+ var e = [].slice, a = t.M, i = a.W, o = a.P.W, s = a.P.constructor;
570
+ for (var u in n = U(n, function() {
571
+ a.P.ia.forEach((function(n) {
572
+ if (this[n] === o[n]) throw new Y("Pure virtual function " + n + " must be implemented in JavaScript");
573
+ }).bind(this)), Object.defineProperty(this, "__parent", { value: i }), this.__construct.apply(this, e.call(arguments));
574
+ }), i.__construct = function() {
575
+ this === i && V("Pass correct 'this' to __construct");
576
+ var n = s.implement.apply(void 0, [this].concat(e.call(arguments)));
577
+ Q(n);
578
+ var t = n.L;
579
+ n.notifyOnDestruction(), t.$ = !0, Object.defineProperties(this, { L: { value: t } }), no(this), n = Z(a, n = t.N), $.hasOwnProperty(n) ? V("Tried to register registered instance: " + n) : $[n] = this;
580
+ }, i.__destruct = function() {
581
+ this === i && V("Pass correct 'this' to __destruct"), Q(this);
582
+ var n = this.L.N;
583
+ n = Z(a, n), $.hasOwnProperty(n) ? delete $[n] : V("Tried to unregister unregistered instance: " + n);
584
+ }, n.prototype = Object.create(i), r) n.prototype[u] = r[u];
585
+ return G(n);
586
+ },
587
+ l: function(n) {
588
+ var t = ns[n];
589
+ delete ns[n];
590
+ var r = t.ea, e = t.V, a = t.ha;
591
+ nh([n], a.map((n) => n.sa).concat(a.map((n) => n.ya)), (n) => {
592
+ var i = {};
593
+ return a.forEach((t, r) => {
594
+ var e = n[r], o = t.qa, s = t.ra, u = n[r + a.length], c = t.xa, f = t.za;
595
+ i[t.na] = {
596
+ read: (n) => e.fromWireType(o(s, n)),
597
+ write: (n, t) => {
598
+ var r = [];
599
+ c(f, n, u.toWireType(r, t)), nu(r);
600
+ }
601
+ };
602
+ }), [{
603
+ name: t.name,
604
+ fromWireType: function(n) {
605
+ var t, r = {};
606
+ for (t in i) r[t] = i[t].read(n);
607
+ return e(n), r;
608
+ },
609
+ toWireType: function(n, t) {
610
+ for (var a in i) if (!(a in t)) throw TypeError("Missing field: \"" + a + "\"");
611
+ var o = r();
612
+ for (a in i) i[a].write(o, t[a]);
613
+ return null !== n && n.push(e, o), o;
614
+ },
615
+ argPackAdvance: 8,
616
+ readValueFromPointer: nc,
617
+ U: e
618
+ }];
619
+ });
620
+ },
621
+ v: function() {},
622
+ B: function(n, t, r, e, a) {
623
+ var i = np(r);
624
+ nv(n, {
625
+ name: t = B(t),
626
+ fromWireType: function(n) {
627
+ return !!n;
628
+ },
629
+ toWireType: function(n, t) {
630
+ return t ? e : a;
631
+ },
632
+ argPackAdvance: 8,
633
+ readValueFromPointer: function(n) {
634
+ if (1 === r) var e = d;
635
+ else if (2 === r) e = m;
636
+ else if (4 === r) e = g;
637
+ else throw TypeError("Unknown boolean type size: " + t);
638
+ return this.fromWireType(e[n >> i]);
639
+ },
640
+ U: null
641
+ });
642
+ },
643
+ h: function(n, t, r, e, a, i, o, s, c, f, l, h, p) {
644
+ l = B(l), i = nb(a, i), s && (s = nb(o, s)), f && (f = nb(c, f)), p = nb(h, p);
645
+ var v, d = W(l);
646
+ v = function() {
647
+ nI("Cannot construct " + l + " due to unbound types", [e]);
648
+ }, u.hasOwnProperty(d) ? (V("Cannot register public name '" + d + "' twice"), nm(u, d, d), u.hasOwnProperty(void 0) && V("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"), u[d].R[void 0] = v) : u[d] = v, nh([
649
+ n,
650
+ t,
651
+ r
652
+ ], e ? [e] : [], function(t) {
653
+ if (t = t[0], e) var r, a = t.M, o = a.W;
654
+ else o = ny.prototype;
655
+ t = U(d, function() {
656
+ if (Object.getPrototypeOf(this) !== c) throw new k("Use 'new' to construct " + l);
657
+ if (void 0 === h.X) throw new k(l + " has no accessible constructor");
658
+ var n = h.X[arguments.length];
659
+ if (void 0 === n) throw new k("Tried to invoke ctor of " + l + " with invalid number of parameters (" + arguments.length + ") - expected (" + Object.keys(h.X).toString() + ") parameters instead!");
660
+ return n.apply(this, arguments);
661
+ });
662
+ var c = Object.create(o, { constructor: { value: t } });
663
+ t.prototype = c;
664
+ var h = new nE(l, t, c, p, a, i, s, f);
665
+ a = new nA(l, h, !0, !1), o = new nA(l + "*", h, !1, !1);
666
+ var v = new nA(l + " const*", h, !1, !0);
667
+ return nr[n] = {
668
+ pointerType: o,
669
+ ka: v
670
+ }, r = t, u.hasOwnProperty(d) || na("Replacing nonexistant public symbol"), u[d] = r, u[d].Y = void 0, [
671
+ a,
672
+ o,
673
+ v
674
+ ];
675
+ });
676
+ },
677
+ d: function(n, t, r, e, a, i, o) {
678
+ var s = nS(r, e);
679
+ t = B(t), i = nb(a, i), nh([], [n], function(n) {
680
+ function e() {
681
+ nI("Cannot call " + a + " due to unbound types", s);
682
+ }
683
+ var a = (n = n[0]).name + "." + t;
684
+ t.startsWith("@@") && (t = Symbol[t.substring(2)]);
685
+ var u = n.M.constructor;
686
+ return void 0 === u[t] ? (e.Y = r - 1, u[t] = e) : (nm(u, t, a), u[t].R[r - 1] = e), nh([], s, function(n) {
687
+ return n = nw(a, [n[0], null].concat(n.slice(1)), null, i, o), void 0 === u[t].R ? (n.Y = r - 1, u[t] = n) : u[t].R[r - 1] = n, [];
688
+ }), [];
689
+ });
690
+ },
691
+ p: function(n, t, r, e, a, i) {
692
+ 0 < t || w();
693
+ var o = nS(t, r);
694
+ a = nb(e, a), nh([], [n], function(n) {
695
+ var r = "constructor " + (n = n[0]).name;
696
+ if (void 0 === n.M.X && (n.M.X = []), void 0 !== n.M.X[t - 1]) throw new k("Cannot register multiple constructors with identical number of parameters (" + (t - 1) + ") for class '" + n.name + "'! Overload resolution is currently only performed using the parameter count, not actual type info!");
697
+ return n.M.X[t - 1] = () => {
698
+ nI("Cannot construct " + n.name + " due to unbound types", o);
699
+ }, nh([], o, function(e) {
700
+ return e.splice(1, 0, null), n.M.X[t - 1] = nw(r, e, null, a, i), [];
701
+ }), [];
702
+ });
703
+ },
704
+ a: function(n, t, r, e, a, i, o, s) {
705
+ var u = nS(r, e);
706
+ t = B(t), i = nb(a, i), nh([], [n], function(n) {
707
+ function e() {
708
+ nI("Cannot call " + a + " due to unbound types", u);
709
+ }
710
+ var a = (n = n[0]).name + "." + t;
711
+ t.startsWith("@@") && (t = Symbol[t.substring(2)]), s && n.M.ia.push(t);
712
+ var c = n.M.W, f = c[t];
713
+ return void 0 === f || void 0 === f.R && f.className !== n.name && f.Y === r - 2 ? (e.Y = r - 2, e.className = n.name, c[t] = e) : (nm(c, t, a), c[t].R[r - 2] = e), nh([], u, function(e) {
714
+ return e = nw(a, e, n, i, o), void 0 === c[t].R ? (e.Y = r - 2, c[t] = e) : c[t].R[r - 2] = e, [];
715
+ }), [];
716
+ });
717
+ },
718
+ A: function(n, t) {
719
+ nv(n, {
720
+ name: t = B(t),
721
+ fromWireType: function(n) {
722
+ var t = j(n);
723
+ return nR(n), t;
724
+ },
725
+ toWireType: function(n, t) {
726
+ return G(t);
727
+ },
728
+ argPackAdvance: 8,
729
+ readValueFromPointer: nc,
730
+ U: null
731
+ });
732
+ },
733
+ n: function(n, t, r) {
734
+ r = np(r), nv(n, {
735
+ name: t = B(t),
736
+ fromWireType: function(n) {
737
+ return n;
738
+ },
739
+ toWireType: function(n, t) {
740
+ return t;
741
+ },
742
+ argPackAdvance: 8,
743
+ readValueFromPointer: function(n, t) {
744
+ switch (t) {
745
+ case 2: return function(n) {
746
+ return this.fromWireType(T[n >> 2]);
747
+ };
748
+ case 3: return function(n) {
749
+ return this.fromWireType(L[n >> 3]);
750
+ };
751
+ default: throw TypeError("Unknown float type: " + n);
752
+ }
753
+ }(t, r),
754
+ U: null
755
+ });
756
+ },
757
+ e: function(n, t, r, e, a) {
758
+ t = B(t), -1 === a && (a = 4294967295), a = np(r);
759
+ var i = (n) => n;
760
+ if (0 === e) {
761
+ var o = 32 - 8 * r;
762
+ i = (n) => n << o >>> o;
763
+ }
764
+ r = t.includes("unsigned") ? function(n, t) {
765
+ return t >>> 0;
766
+ } : function(n, t) {
767
+ return t;
768
+ }, nv(n, {
769
+ name: t,
770
+ fromWireType: i,
771
+ toWireType: r,
772
+ argPackAdvance: 8,
773
+ readValueFromPointer: function(n, t, r) {
774
+ switch (t) {
775
+ case 0: return r ? function(n) {
776
+ return d[n];
777
+ } : function(n) {
778
+ return y[n];
779
+ };
780
+ case 1: return r ? function(n) {
781
+ return m[n >> 1];
782
+ } : function(n) {
783
+ return E[n >> 1];
784
+ };
785
+ case 2: return r ? function(n) {
786
+ return g[n >> 2];
787
+ } : function(n) {
788
+ return _[n >> 2];
789
+ };
790
+ default: throw TypeError("Unknown integer type: " + n);
791
+ }
792
+ }(t, a, 0 !== e),
793
+ U: null
794
+ });
795
+ },
796
+ b: function(n, t, r) {
797
+ function e(n) {
798
+ n >>= 2;
799
+ var t = _;
800
+ return new a(t.buffer, t[n + 1], t[n]);
801
+ }
802
+ var a = [
803
+ Int8Array,
804
+ Uint8Array,
805
+ Int16Array,
806
+ Uint16Array,
807
+ Int32Array,
808
+ Uint32Array,
809
+ Float32Array,
810
+ Float64Array
811
+ ][t];
812
+ nv(n, {
813
+ name: r = B(r),
814
+ fromWireType: e,
815
+ argPackAdvance: 8,
816
+ readValueFromPointer: e
817
+ }, { ta: !0 });
818
+ },
819
+ o: function(n, t) {
820
+ var r = "std::string" === (t = B(t));
821
+ nv(n, {
822
+ name: t,
823
+ fromWireType: function(n) {
824
+ var t = _[n >> 2], e = n + 4;
825
+ if (r) for (var a = e, i = 0; i <= t; ++i) {
826
+ var o = e + i;
827
+ if (i == t || 0 == y[o]) {
828
+ if (a = a ? p(y, a, o - a) : "", void 0 === s) var s = a;
829
+ else s += "\0" + a;
830
+ a = o + 1;
831
+ }
832
+ }
833
+ else {
834
+ for (i = 0, s = Array(t); i < t; ++i) s[i] = String.fromCharCode(y[e + i]);
835
+ s = s.join("");
836
+ }
837
+ return nZ(n), s;
838
+ },
839
+ toWireType: function(n, t) {
840
+ t instanceof ArrayBuffer && (t = new Uint8Array(t));
841
+ var e, a = "string" == typeof t;
842
+ if (a || t instanceof Uint8Array || t instanceof Uint8ClampedArray || t instanceof Int8Array || V("Cannot pass non-string to std::string"), r && a) {
843
+ var i = 0;
844
+ for (e = 0; e < t.length; ++e) {
845
+ var o = t.charCodeAt(e);
846
+ 127 >= o ? i++ : 2047 >= o ? i += 2 : 55296 <= o && 57343 >= o ? (i += 4, ++e) : i += 3;
847
+ }
848
+ e = i;
849
+ } else e = t.length;
850
+ if (o = (i = n$(4 + e + 1)) + 4, _[i >> 2] = e, r && a) {
851
+ if (a = o, o = e + 1, e = y, 0 < o) {
852
+ o = a + o - 1;
853
+ for (var s = 0; s < t.length; ++s) {
854
+ var u = t.charCodeAt(s);
855
+ if (55296 <= u && 57343 >= u && (u = 65536 + ((1023 & u) << 10) | 1023 & t.charCodeAt(++s)), 127 >= u) {
856
+ if (a >= o) break;
857
+ e[a++] = u;
858
+ } else {
859
+ if (2047 >= u) {
860
+ if (a + 1 >= o) break;
861
+ e[a++] = 192 | u >> 6;
862
+ } else {
863
+ if (65535 >= u) {
864
+ if (a + 2 >= o) break;
865
+ e[a++] = 224 | u >> 12;
866
+ } else {
867
+ if (a + 3 >= o) break;
868
+ e[a++] = 240 | u >> 18, e[a++] = 128 | u >> 12 & 63;
869
+ }
870
+ e[a++] = 128 | u >> 6 & 63;
871
+ }
872
+ e[a++] = 128 | 63 & u;
873
+ }
874
+ }
875
+ e[a] = 0;
876
+ }
877
+ } else if (a) for (a = 0; a < e; ++a) 255 < (s = t.charCodeAt(a)) && (nZ(o), V("String has UTF-16 code units that do not fit in 8 bits")), y[o + a] = s;
878
+ else for (a = 0; a < e; ++a) y[o + a] = t[a];
879
+ return null !== n && n.push(nZ, i), i;
880
+ },
881
+ argPackAdvance: 8,
882
+ readValueFromPointer: nc,
883
+ U: function(n) {
884
+ nZ(n);
885
+ }
886
+ });
887
+ },
888
+ k: function(n, t, r) {
889
+ if (r = B(r), 2 === t) var e = nW, a = nU, i = nM, o = () => E, s = 1;
890
+ else 4 === t && (e = nF, a = nD, i = nk, o = () => _, s = 2);
891
+ nv(n, {
892
+ name: r,
893
+ fromWireType: function(n) {
894
+ for (var r, a = _[n >> 2], i = o(), u = n + 4, c = 0; c <= a; ++c) {
895
+ var f = n + 4 + c * t;
896
+ (c == a || 0 == i[f >> s]) && (u = e(u, f - u), void 0 === r ? r = u : r += "\0" + u, u = f + t);
897
+ }
898
+ return nZ(n), r;
899
+ },
900
+ toWireType: function(n, e) {
901
+ "string" != typeof e && V("Cannot pass non-string to C++ string type " + r);
902
+ var o = i(e), u = n$(4 + o + t);
903
+ return _[u >> 2] = o >> s, a(e, u + 4, o + t), null !== n && n.push(nZ, u), u;
904
+ },
905
+ argPackAdvance: 8,
906
+ readValueFromPointer: nc,
907
+ U: function(n) {
908
+ nZ(n);
909
+ }
910
+ });
911
+ },
912
+ m: function(n, t, r, e, a, i) {
913
+ ns[n] = {
914
+ name: B(t),
915
+ ea: nb(r, e),
916
+ V: nb(a, i),
917
+ ha: []
918
+ };
919
+ },
920
+ c: function(n, t, r, e, a, i, o, s, u, c) {
921
+ ns[n].ha.push({
922
+ na: B(t),
923
+ sa: r,
924
+ qa: nb(e, a),
925
+ ra: i,
926
+ ya: o,
927
+ xa: nb(s, u),
928
+ za: c
929
+ });
930
+ },
931
+ C: function(n, t) {
932
+ nv(n, {
933
+ ua: !0,
934
+ name: t = B(t),
935
+ argPackAdvance: 0,
936
+ fromWireType: function() {},
937
+ toWireType: function() {}
938
+ });
939
+ },
940
+ t: function(n, t, r, e, a) {
941
+ n = nG[n], t = j(t), r = nj(r);
942
+ var i = [];
943
+ return _[e >> 2] = G(i), n(t, r, i, a);
944
+ },
945
+ j: function(n, t, r, e) {
946
+ n = nG[n], n(t = j(t), r = nj(r), null, e);
947
+ },
948
+ f: nR,
949
+ g: function(n, t) {
950
+ var r, e, a = function(n, t) {
951
+ for (var r = Array(n), e = 0; e < n; ++e) r[e] = K(_[t + 4 * e >> 2], "parameter " + e);
952
+ return r;
953
+ }(n, t), i = a[0], o = nY[t = i.name + "_$" + a.slice(1).map(function(n) {
954
+ return n.name;
955
+ }).join("_") + "$"];
956
+ if (void 0 !== o) return o;
957
+ var s = Array(n - 1);
958
+ return r = (t, r, e, o) => {
959
+ for (var u = 0, c = 0; c < n - 1; ++c) s[c] = a[c + 1].readValueFromPointer(o + u), u += a[c + 1].argPackAdvance;
960
+ for (c = 0, t = t[r].apply(t, s); c < n - 1; ++c) a[c + 1].la && a[c + 1].la(s[c]);
961
+ if (!i.ua) return i.toWireType(e, t);
962
+ }, e = nG.length, nG.push(r), o = e, nY[t] = o;
963
+ },
964
+ r: function(n) {
965
+ 4 < n && (M[n].fa += 1);
966
+ },
967
+ s: function(n) {
968
+ nu(j(n)), nR(n);
969
+ },
970
+ i: function() {
971
+ w("");
972
+ },
973
+ x: function(n, t, r) {
974
+ y.copyWithin(n, t, t + r);
975
+ },
976
+ w: function(n) {
977
+ var t = y.length;
978
+ if (2147483648 < (n >>>= 0)) return !1;
979
+ for (var r = 1; 4 >= r; r *= 2) {
980
+ var e = t * (1 + .2 / r);
981
+ e = Math.min(e, n + 100663296);
982
+ var a = Math, i = a.min;
983
+ e = Math.max(n, e), e += (65536 - e % 65536) % 65536;
984
+ n: {
985
+ var o = l.buffer;
986
+ try {
987
+ l.grow(i.call(a, 2147483648, e) - o.byteLength + 65535 >>> 16), v();
988
+ var s = 1;
989
+ break n;
990
+ } catch (n) {}
991
+ s = void 0;
992
+ }
993
+ if (s) return !0;
994
+ }
995
+ return !1;
996
+ },
997
+ z: function() {
998
+ return 52;
999
+ },
1000
+ u: function() {
1001
+ return 70;
1002
+ },
1003
+ y: function(n, t, r, e) {
1004
+ for (var a = 0, i = 0; i < r; i++) {
1005
+ var u = _[t >> 2], c = _[t + 4 >> 2];
1006
+ t += 8;
1007
+ for (var f = 0; f < c; f++) {
1008
+ var l = y[u + f], h = nX[n];
1009
+ 0 === l || 10 === l ? ((1 === n ? o : s)(p(h, 0)), h.length = 0) : h.push(l);
1010
+ }
1011
+ a += c;
1012
+ }
1013
+ return _[e >> 2] = a, 0;
1014
+ }
1015
+ };
1016
+ (function() {
1017
+ function n(n) {
1018
+ u.asm = n.exports, l = u.asm.D, v(), A = u.asm.I, P.unshift(u.asm.E), 0 == --N && I && (n = I, I = null, n());
1019
+ }
1020
+ function t(t) {
1021
+ n(t.instance);
1022
+ }
1023
+ function e(n) {
1024
+ return ("function" == typeof fetch ? fetch(r, { credentials: "same-origin" }).then(function(n) {
1025
+ if (!n.ok) throw "failed to load wasm binary file at '" + r + "'";
1026
+ return n.arrayBuffer();
1027
+ }).catch(function() {
1028
+ return R();
1029
+ }) : Promise.resolve().then(function() {
1030
+ return R();
1031
+ })).then(function(n) {
1032
+ return WebAssembly.instantiate(n, a);
1033
+ }).then(function(n) {
1034
+ return n;
1035
+ }).then(n, function(n) {
1036
+ s("failed to asynchronously prepare wasm: " + n), w(n);
1037
+ });
1038
+ }
1039
+ var a = { a: nx };
1040
+ if (N++, u.instantiateWasm) try {
1041
+ return u.instantiateWasm(a, n);
1042
+ } catch (n) {
1043
+ s("Module.instantiateWasm callback failed with error: " + n), f(n);
1044
+ }
1045
+ ("function" != typeof WebAssembly.instantiateStreaming || S() || "function" != typeof fetch ? e(t) : fetch(r, { credentials: "same-origin" }).then(function(n) {
1046
+ return WebAssembly.instantiateStreaming(n, a).then(t, function(n) {
1047
+ return s("wasm streaming compile failed: " + n), s("falling back to ArrayBuffer instantiation"), e(t);
1048
+ });
1049
+ })).catch(f);
1050
+ })();
1051
+ var nz = u.___getTypeName = function() {
1052
+ return (nz = u.___getTypeName = u.asm.F).apply(null, arguments);
1053
+ };
1054
+ function n$() {
1055
+ return (n$ = u.asm.H).apply(null, arguments);
1056
+ }
1057
+ function nZ() {
1058
+ return (nZ = u.asm.J).apply(null, arguments);
1059
+ }
1060
+ function nJ() {
1061
+ 0 < N || (C(O), 0 < N || e || (e = !0, u.calledRun = !0, h || (C(P), c(u), C(b))));
1062
+ }
1063
+ return u.__embind_initialize_bindings = function() {
1064
+ return (u.__embind_initialize_bindings = u.asm.G).apply(null, arguments);
1065
+ }, u.dynCall_jiji = function() {
1066
+ return (u.dynCall_jiji = u.asm.K).apply(null, arguments);
1067
+ }, I = function n() {
1068
+ e || nJ(), e || (I = n);
1069
+ }, nJ(), t.ready;
1070
+ };
1071
+ })();
1072
+ async function initYoga(t) {
1073
+ return wrapAsm(await yoga({ instantiateWasm(n, r) {
1074
+ WebAssembly.instantiate(t, n).then((n) => {
1075
+ n instanceof WebAssembly.Instance ? r(n) : r(n.instance);
1076
+ });
1077
+ } }));
1078
+ }
1079
+ //#endregion
1080
+ //#region ../../../node_modules/.bun/yoga-wasm-web@0.3.3/node_modules/yoga-wasm-web/dist/node.js
1081
+ let Yoga = await initYoga(await readFile(createRequire(import.meta.url).resolve("./yoga.wasm")));
1082
+ //#endregion
1083
+ export { Yoga as default };