@wix/himalaya-cli 0.1816.0 → 0.1817.0

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.
package/dist/cli.mjs CHANGED
@@ -4411,6 +4411,7 @@ var init_himi_package = __esm({
4411
4411
  var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
4412
4412
  var init_icon_catalog_generated = __esm({
4413
4413
  "../../core/ts/src/icon-catalog.generated.ts"() {
4414
+ "use strict";
4414
4415
  init_define_HHP_CATALOG();
4415
4416
  ICON_VIEW_BOX = 24;
4416
4417
  ICON_STROKE_WIDTH = 2;
@@ -16436,6 +16437,195 @@ var init_quickjs_intl = __esm({
16436
16437
  }
16437
16438
  });
16438
16439
 
16440
+ // ../../core/ts/src/worker-globals-shim.ts
16441
+ var WORKER_GLOBALS_SHIM_SOURCE;
16442
+ var init_worker_globals_shim = __esm({
16443
+ "../../core/ts/src/worker-globals-shim.ts"() {
16444
+ init_define_HHP_CATALOG();
16445
+ WORKER_GLOBALS_SHIM_SOURCE = `// ------------------------------------------------------------ worker globals (#6272)
16446
+ (function () {
16447
+ "use strict";
16448
+ var g = globalThis;
16449
+ function define(name, value) {
16450
+ try { Object.defineProperty(g, name, { value: value, writable: true, configurable: true, enumerable: false }); } catch (e) {}
16451
+ }
16452
+ function named(name, message) {
16453
+ var e = new Error(message);
16454
+ try { Object.defineProperty(e, "name", { value: name, configurable: true, writable: true }); } catch (x) {}
16455
+ return e;
16456
+ }
16457
+ var REPLACEMENT = String.fromCharCode(65533);
16458
+ if (typeof g.crypto === "undefined" && typeof __himalaya_native_random === "function") {
16459
+ var native = __himalaya_native_random;
16460
+ var INTEGER_ARRAYS = ["Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "BigInt64Array", "BigUint64Array"];
16461
+ var getRandomValues = function getRandomValues(view) {
16462
+ var tag = Object.prototype.toString.call(view).slice(8, -1);
16463
+ if (INTEGER_ARRAYS.indexOf(tag) < 0) throw new TypeError("crypto.getRandomValues: the argument must be an integer TypedArray");
16464
+ var n = view.byteLength;
16465
+ if (n > 65536) throw named("QuotaExceededError", "crypto.getRandomValues: " + n + " bytes requested, the limit is 65536");
16466
+ if (n === 0) return view;
16467
+ var bytes = native(n);
16468
+ if (!bytes || bytes.length !== n) throw new Error("crypto.getRandomValues: the host returned no random bytes");
16469
+ var out = new Uint8Array(view.buffer, view.byteOffset, n);
16470
+ for (var i = 0; i < n; i++) out[i] = bytes[i] & 255;
16471
+ return view;
16472
+ };
16473
+ var crypto = {};
16474
+ Object.defineProperty(crypto, "getRandomValues", { value: getRandomValues, enumerable: true });
16475
+ define("crypto", Object.freeze(crypto));
16476
+ }
16477
+ if (typeof g.TextEncoder === "undefined") {
16478
+ var TextEncoder = function TextEncoder() {
16479
+ if (!(this instanceof TextEncoder)) throw new TypeError("TextEncoder must be called with new");
16480
+ };
16481
+ Object.defineProperty(TextEncoder.prototype, "encoding", { get: function () { return "utf-8"; } });
16482
+ var encodeTo = function (s, sink) {
16483
+ for (var i = 0; i < s.length; i++) {
16484
+ var c = s.charCodeAt(i);
16485
+ if (c >= 55296 && c <= 56319 && i + 1 < s.length) {
16486
+ var d = s.charCodeAt(i + 1);
16487
+ if (d >= 56320 && d <= 57343) { c = 65536 + ((c - 55296) * 1024) + (d - 56320); i++; }
16488
+ }
16489
+ if (c >= 55296 && c <= 57343) c = 65533;
16490
+ if (c < 128) sink(c);
16491
+ else if (c < 2048) { sink(192 | (c >> 6)); sink(128 | (c & 63)); }
16492
+ else if (c < 65536) { sink(224 | (c >> 12)); sink(128 | ((c >> 6) & 63)); sink(128 | (c & 63)); }
16493
+ else { sink(240 | (c >> 18)); sink(128 | ((c >> 12) & 63)); sink(128 | ((c >> 6) & 63)); sink(128 | (c & 63)); }
16494
+ }
16495
+ };
16496
+ TextEncoder.prototype.encode = function encode(input) {
16497
+ var s = input === undefined ? "" : String(input), bytes = [];
16498
+ encodeTo(s, function (b) { bytes.push(b); });
16499
+ return new Uint8Array(bytes);
16500
+ };
16501
+ TextEncoder.prototype.encodeInto = function encodeInto(input, dest) {
16502
+ if (!(dest instanceof Uint8Array)) throw new TypeError("TextEncoder.encodeInto: the destination must be a Uint8Array");
16503
+ var s = String(input), read = 0, written = 0;
16504
+ for (var i = 0; i < s.length; i++) {
16505
+ var c = s.charCodeAt(i), units = 1;
16506
+ if (c >= 55296 && c <= 56319 && i + 1 < s.length) {
16507
+ var d = s.charCodeAt(i + 1);
16508
+ if (d >= 56320 && d <= 57343) units = 2;
16509
+ }
16510
+ var chunk = [];
16511
+ encodeTo(s.substr(i, units), function (b) { chunk.push(b); });
16512
+ if (written + chunk.length > dest.length) break;
16513
+ for (var k = 0; k < chunk.length; k++) dest[written++] = chunk[k];
16514
+ read += units;
16515
+ i += units - 1;
16516
+ }
16517
+ return { read: read, written: written };
16518
+ };
16519
+ define("TextEncoder", TextEncoder);
16520
+ }
16521
+ if (typeof g.TextDecoder === "undefined") {
16522
+ var LABELS = ["utf-8", "utf8", "unicode-1-1-utf-8", "unicode11utf8", "unicode20utf8", "x-unicode20utf8"];
16523
+ var TextDecoder = function TextDecoder(label, options) {
16524
+ if (!(this instanceof TextDecoder)) throw new TypeError("TextDecoder must be called with new");
16525
+ var l = label === undefined ? "utf-8" : String(label).trim().toLowerCase();
16526
+ if (LABELS.indexOf(l) < 0) throw new RangeError("TextDecoder: the encoding '" + label + "' is not supported (UTF-8 only)");
16527
+ this._fatal = !!(options && options.fatal);
16528
+ this._ignoreBOM = !!(options && options.ignoreBOM);
16529
+ this._pending = [];
16530
+ this._bomSeen = false;
16531
+ };
16532
+ Object.defineProperty(TextDecoder.prototype, "encoding", { get: function () { return "utf-8"; } });
16533
+ Object.defineProperty(TextDecoder.prototype, "fatal", { get: function () { return this._fatal; } });
16534
+ Object.defineProperty(TextDecoder.prototype, "ignoreBOM", { get: function () { return this._ignoreBOM; } });
16535
+ var bytesOf = function (input) {
16536
+ if (input === undefined) return new Uint8Array(0);
16537
+ if (input instanceof ArrayBuffer) return new Uint8Array(input);
16538
+ if (ArrayBuffer.isView(input)) return new Uint8Array(input.buffer, input.byteOffset, input.byteLength);
16539
+ throw new TypeError("TextDecoder.decode: the argument must be an ArrayBuffer or a view of one");
16540
+ };
16541
+ TextDecoder.prototype.decode = function decode(input, options) {
16542
+ var stream = !!(options && options.stream);
16543
+ var fresh = bytesOf(input), b = this._pending.concat(Array.prototype.slice.call(fresh));
16544
+ var out = "", i = 0, self = this;
16545
+ var bad = function () {
16546
+ if (self._fatal) { self._pending = []; self._bomSeen = false; throw new TypeError("TextDecoder.decode: the input is not valid UTF-8"); }
16547
+ out += REPLACEMENT;
16548
+ };
16549
+ while (i < b.length) {
16550
+ var c = b[i], need = 0, cp = 0, lower = 128, upper = 191;
16551
+ if (c < 128) { out += String.fromCharCode(c); i++; continue; }
16552
+ if (c >= 194 && c <= 223) { need = 1; cp = c & 31; }
16553
+ else if (c >= 224 && c <= 239) { need = 2; cp = c & 15; if (c === 224) lower = 160; if (c === 237) upper = 159; }
16554
+ else if (c >= 240 && c <= 244) { need = 3; cp = c & 7; if (c === 240) lower = 144; if (c === 244) upper = 143; }
16555
+ else { bad(); i++; continue; }
16556
+ var j = 1, ok = true;
16557
+ for (; j <= need; j++) {
16558
+ if (i + j >= b.length) break;
16559
+ var t = b[i + j];
16560
+ if (t < lower || t > upper) { ok = false; break; }
16561
+ lower = 128; upper = 191;
16562
+ cp = (cp << 6) | (t & 63);
16563
+ }
16564
+ if (ok && j <= need) {
16565
+ if (stream) break;
16566
+ bad(); i = b.length; continue;
16567
+ }
16568
+ if (!ok) { bad(); i += j; continue; }
16569
+ if (cp >= 65536) { cp -= 65536; out += String.fromCharCode(55296 + (cp >> 10), 56320 + (cp & 1023)); }
16570
+ else out += String.fromCharCode(cp);
16571
+ i += need + 1;
16572
+ }
16573
+ this._pending = stream ? b.slice(i) : [];
16574
+ if (!this._ignoreBOM && !this._bomSeen && out.length > 0) {
16575
+ if (out.charCodeAt(0) === 65279) out = out.slice(1);
16576
+ this._bomSeen = true;
16577
+ }
16578
+ if (!stream) this._bomSeen = false;
16579
+ return out;
16580
+ };
16581
+ define("TextDecoder", TextDecoder);
16582
+ }
16583
+ var ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
16584
+ if (typeof g.btoa === "undefined") {
16585
+ define("btoa", function btoa(data) {
16586
+ var s = String(data), out = "";
16587
+ for (var k = 0; k < s.length; k++) {
16588
+ if (s.charCodeAt(k) > 255) throw named("InvalidCharacterError", "btoa: the string contains a character outside the Latin1 range");
16589
+ }
16590
+ for (var i = 0; i < s.length; i += 3) {
16591
+ var a = s.charCodeAt(i), b = i + 1 < s.length ? s.charCodeAt(i + 1) : 0, c = i + 2 < s.length ? s.charCodeAt(i + 2) : 0;
16592
+ var n = (a << 16) | (b << 8) | c;
16593
+ out += ALPHABET.charAt((n >> 18) & 63) + ALPHABET.charAt((n >> 12) & 63);
16594
+ out += i + 1 < s.length ? ALPHABET.charAt((n >> 6) & 63) : "=";
16595
+ out += i + 2 < s.length ? ALPHABET.charAt(n & 63) : "=";
16596
+ }
16597
+ return out;
16598
+ });
16599
+ }
16600
+ if (typeof g.atob === "undefined") {
16601
+ define("atob", function atob(data) {
16602
+ var s = String(data), clean = "";
16603
+ for (var k = 0; k < s.length; k++) {
16604
+ var w = s.charCodeAt(k);
16605
+ if (w === 9 || w === 10 || w === 12 || w === 13 || w === 32) continue;
16606
+ clean += s.charAt(k);
16607
+ }
16608
+ if (clean.length % 4 === 0) {
16609
+ if (clean.slice(-2) === "==") clean = clean.slice(0, -2);
16610
+ else if (clean.slice(-1) === "=") clean = clean.slice(0, -1);
16611
+ }
16612
+ if (clean.length % 4 === 1) throw named("InvalidCharacterError", "atob: the string is not correctly encoded");
16613
+ var out = "", buffer = 0, bits = 0;
16614
+ for (var i = 0; i < clean.length; i++) {
16615
+ var v = ALPHABET.indexOf(clean.charAt(i));
16616
+ if (v < 0) throw named("InvalidCharacterError", "atob: the string is not correctly encoded");
16617
+ buffer = (buffer << 6) | v;
16618
+ bits += 6;
16619
+ if (bits >= 8) { bits -= 8; out += String.fromCharCode((buffer >> bits) & 255); }
16620
+ }
16621
+ return out;
16622
+ });
16623
+ }
16624
+ })();
16625
+ `;
16626
+ }
16627
+ });
16628
+
16439
16629
  // ../../core/dev-server/src/quickjs-state-codec.ts
16440
16630
  function parseWithNonFinite(text32) {
16441
16631
  const parsed = JSON.parse(
@@ -17089,7 +17279,16 @@ var init_allowlist = __esm({
17089
17279
  "Proxy"
17090
17280
  ];
17091
17281
  IMPLICIT_BINDINGS = ["arguments"];
17092
- WORKER_SURFACE = ["himalaya", "console"];
17282
+ WORKER_SURFACE = [
17283
+ "himalaya",
17284
+ "console",
17285
+ // #6272 — the worker-globals block of every bootstrap (core/ts/src/worker-globals-shim.ts).
17286
+ "crypto",
17287
+ "TextEncoder",
17288
+ "TextDecoder",
17289
+ "atob",
17290
+ "btoa"
17291
+ ];
17093
17292
  WORKER_ALLOWLIST = /* @__PURE__ */ new Set([
17094
17293
  ...ES2020_GLOBALS,
17095
17294
  ...IMPLICIT_BINDINGS,
@@ -22116,6 +22315,27 @@ function pinnedNow(clock) {
22116
22315
  function hostStorage(store) {
22117
22316
  return { get: (k3) => store.getItem(k3) ?? "", set: (k3, v2) => store.setItem(k3, v2), getItem: (k3) => store.getItem(k3), setItem: (k3, v2) => store.setItem(k3, v2) };
22118
22317
  }
22318
+ function subtleFacade(subtle) {
22319
+ const facade = /* @__PURE__ */ Object.create(null);
22320
+ for (const name of SUBTLE_METHODS) {
22321
+ const fn2 = subtle[name];
22322
+ if (typeof fn2 === "function") facade[name] = (...args) => fn2.apply(subtle, args);
22323
+ }
22324
+ return Object.freeze(facade);
22325
+ }
22326
+ function deviceCrypto() {
22327
+ const getRandomValues = (a3) => hostGetRandomValues(a3);
22328
+ return Object.freeze({ getRandomValues });
22329
+ }
22330
+ function webCrypto() {
22331
+ const getRandomValues = (a3) => hostGetRandomValues(a3);
22332
+ const uuid = hostRandomUUID;
22333
+ return Object.freeze({
22334
+ getRandomValues,
22335
+ ...uuid ? { randomUUID: () => uuid() } : {},
22336
+ ...HOST_CRYPTO.subtle ? { subtle: subtleFacade(HOST_CRYPTO.subtle) } : {}
22337
+ });
22338
+ }
22119
22339
  function runBundleSandbox(bundleJs, opts) {
22120
22340
  const services2 = {};
22121
22341
  const actions = {};
@@ -22209,7 +22429,12 @@ function runBundleSandbox(bundleJs, opts) {
22209
22429
  URLSearchParams,
22210
22430
  TextEncoder,
22211
22431
  TextDecoder,
22212
- AbortController
22432
+ AbortController,
22433
+ // #6272 — allow-listed worker globals now, so a module-scope `atob(...)` or an id seeded from
22434
+ // `crypto.getRandomValues` must not break extraction either.
22435
+ atob: hostAtob,
22436
+ btoa: hostBtoa,
22437
+ crypto: webCrypto()
22213
22438
  // NO `Date` / `Math` here, pinned or not: a pinned pair built on this side would be the host's
22214
22439
  // intrinsics wearing a sandbox name. The realm builds them from its own (`pinnedIntrinsicsSource`).
22215
22440
  };
@@ -22569,7 +22794,7 @@ async function bootBundleWorker(bundleJs, opts) {
22569
22794
  // HOST globals, not ECMAScript built-ins: a bare vm context has Object/Array/Date/Intl/JSON
22570
22795
  // but NOT these. Injecting them unconditionally — INCLUDING under deviceParity — rested on
22571
22796
  // "every real worker runtime (JSC, Hermes, the web-host Worker) does" have them. **A bare
22572
- // JSContext does not**: the engine-parity runners (#1367) answer `undefined` to all five on
22797
+ // JSContext does not**: the engine-parity runners (#1367) answer `undefined` to all of them on
22573
22798
  // iOS/macOS, and so does the wrist's QuickJS-ng. Only Android's WebView has them.
22574
22799
  //
22575
22800
  // Both arms of the split are load-bearing, so keep both:
@@ -22587,10 +22812,19 @@ async function bootBundleWorker(bundleJs, opts) {
22587
22812
  ...opts.deviceParity ? {} : {
22588
22813
  URL,
22589
22814
  URLSearchParams,
22590
- TextEncoder,
22591
- TextDecoder,
22592
22815
  AbortController
22593
- }
22816
+ },
22817
+ // #6272 — these five are NOT in that split any more: every device realm has them, because the
22818
+ // runtime install gap-fills them (core/ts/src/worker-globals-shim.ts — crypto on the host's
22819
+ // CSPRNG). So the dry run offers them in both arms, as every device now does. `crypto` differs
22820
+ // by arm: under deviceParity it is the shim's surface, `getRandomValues` only, so an aliased
22821
+ // `c.randomUUID()` or `c.subtle` throws here as it does on iOS and the wrist; otherwise it is
22822
+ // the full surface the web host and Android have. Never the host's own object (see HOST_CRYPTO).
22823
+ TextEncoder,
22824
+ TextDecoder,
22825
+ atob: hostAtob,
22826
+ btoa: hostBtoa,
22827
+ crypto: opts.deviceParity ? deviceCrypto() : webCrypto()
22594
22828
  };
22595
22829
  sandbox.globalThis = sandbox;
22596
22830
  const l10nGranted = grants(opts.capabilities ?? [], "l10n");
@@ -25287,7 +25521,7 @@ function validateAppWebViewInstances(screens, opts) {
25287
25521
  ];
25288
25522
  return webViewEmbeddedIssues(findings).map((issue3, i2) => ({ ...issue3, screenId: findings[i2].screenId }));
25289
25523
  }
25290
- var CRAWL_BLOCKING_PASSES, BOOT_EVAL_TIMEOUT_MS, BUNDLE_FILENAME, DRIFT_PROBES, DEVICE_NETWORK_WITHHELD, DEVICE_STRIPPED_HOST_GLOBALS, DEVICE_WITHHELD, DEVICE_PARITY_CANDIDATES, DEVICE_PARITY_WITHHELD, defaultEvaluator, bootEvaluator, actionEvaluator, NATIVE_PROP_ENUMS, KNOWN_PROPS, IN_ARRAY_BINDING_PROPS, SERVICE_SIGIL, INTEGER_PROPS, NESTED_COMPONENT_SLOTS, NESTED_SLOT_DECODE_KILL, NATIVE_REQUIRED_PROPS, bareNestedClass, NATIVE_NESTED_CLASSES, NATIVE_MODIFIERS_CLASS, NATIVE_NESTED_SCALARS, NATIVE_DESCRIPTOR_CLASS, NATIVE_DESCRIPTOR_NESTED, NATIVE_NESTED_PROPS, LENIENT_TOP_BAR_BLOCKS, MODIFIER_KEYS, INTEGER_MODIFIERS, MODIFIER_KINDS, SCHEMA_SCORED_NODES, CORE_PACKAGES, LEGACY_UNSCORED_KEYS, DYNAMIC_PLACEHOLDER, LITERAL_ONLY_PROPS, SERVICE_ONLY_BINDING_PROPS, WHOLE_VALUE_BINDING, EMBEDDED_BINDING, OPTIONS_BINDING_PROPS, EDITOR_SERVICE_NAME, SHEET_PLACEMENTS, UNSAFE_TO_RECURSE_DEPTH, TOP_BAR_TRAILING_LIMIT, TOP_BAR_NON_TRAILING, TOP_BAR_TITLE_ALIGN_VALUES, TOP_BAR_TITLE_DISPLAY_VALUES, TOP_BAR_COVER_TONE_VALUES, TOP_BAR_SCROLL_STYLES, TOP_BAR_SEARCH_BINDINGS, TOP_BAR_SEARCH_GATE, PRESS_PROPS, PRESS_OWNING_SLOTS, TAB_BAR_KINDS_WITHOUT_BOTTOM_TABS, ORIENTATION_NAMES, DEFAULT_ENVELOPE, BUTTON_STYLES, PROP_VALUE_ENUMS, PROP_VALUE_DEFAULTS, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
25524
+ var CRAWL_BLOCKING_PASSES, BOOT_EVAL_TIMEOUT_MS, BUNDLE_FILENAME, HOST_CRYPTO, hostGetRandomValues, hostRandomUUID, hostAtob, hostBtoa, SUBTLE_METHODS, DRIFT_PROBES, DEVICE_NETWORK_WITHHELD, DEVICE_STRIPPED_HOST_GLOBALS, DEVICE_WITHHELD, DEVICE_PARITY_CANDIDATES, DEVICE_PARITY_WITHHELD, defaultEvaluator, bootEvaluator, actionEvaluator, NATIVE_PROP_ENUMS, KNOWN_PROPS, IN_ARRAY_BINDING_PROPS, SERVICE_SIGIL, INTEGER_PROPS, NESTED_COMPONENT_SLOTS, NESTED_SLOT_DECODE_KILL, NATIVE_REQUIRED_PROPS, bareNestedClass, NATIVE_NESTED_CLASSES, NATIVE_MODIFIERS_CLASS, NATIVE_NESTED_SCALARS, NATIVE_DESCRIPTOR_CLASS, NATIVE_DESCRIPTOR_NESTED, NATIVE_NESTED_PROPS, LENIENT_TOP_BAR_BLOCKS, MODIFIER_KEYS, INTEGER_MODIFIERS, MODIFIER_KINDS, SCHEMA_SCORED_NODES, CORE_PACKAGES, LEGACY_UNSCORED_KEYS, DYNAMIC_PLACEHOLDER, LITERAL_ONLY_PROPS, SERVICE_ONLY_BINDING_PROPS, WHOLE_VALUE_BINDING, EMBEDDED_BINDING, OPTIONS_BINDING_PROPS, EDITOR_SERVICE_NAME, SHEET_PLACEMENTS, UNSAFE_TO_RECURSE_DEPTH, TOP_BAR_TRAILING_LIMIT, TOP_BAR_NON_TRAILING, TOP_BAR_TITLE_ALIGN_VALUES, TOP_BAR_TITLE_DISPLAY_VALUES, TOP_BAR_COVER_TONE_VALUES, TOP_BAR_SCROLL_STYLES, TOP_BAR_SEARCH_BINDINGS, TOP_BAR_SEARCH_GATE, PRESS_PROPS, PRESS_OWNING_SLOTS, TAB_BAR_KINDS_WITHOUT_BOTTOM_TABS, ORIENTATION_NAMES, DEFAULT_ENVELOPE, BUTTON_STYLES, PROP_VALUE_ENUMS, PROP_VALUE_DEFAULTS, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
25291
25525
  var init_validate_descriptor_core = __esm({
25292
25526
  "../../core/dev-server/src/validate-descriptor.core.ts"() {
25293
25527
  init_define_HHP_CATALOG();
@@ -25336,6 +25570,25 @@ var init_validate_descriptor_core = __esm({
25336
25570
  ]);
25337
25571
  BOOT_EVAL_TIMEOUT_MS = 2e3;
25338
25572
  BUNDLE_FILENAME = "himi-bundle.js";
25573
+ HOST_CRYPTO = globalThis.crypto;
25574
+ hostGetRandomValues = HOST_CRYPTO.getRandomValues.bind(HOST_CRYPTO);
25575
+ hostRandomUUID = typeof HOST_CRYPTO.randomUUID === "function" ? HOST_CRYPTO.randomUUID.bind(HOST_CRYPTO) : void 0;
25576
+ hostAtob = (data) => atob(data);
25577
+ hostBtoa = (data) => btoa(data);
25578
+ SUBTLE_METHODS = [
25579
+ "encrypt",
25580
+ "decrypt",
25581
+ "sign",
25582
+ "verify",
25583
+ "digest",
25584
+ "generateKey",
25585
+ "deriveKey",
25586
+ "deriveBits",
25587
+ "importKey",
25588
+ "exportKey",
25589
+ "wrapKey",
25590
+ "unwrapKey"
25591
+ ];
25339
25592
  DRIFT_PROBES = [
25340
25593
  { clock: Date.UTC(2020, 0, 1, 12, 0, 0, 0), seed: 1 },
25341
25594
  // a Wednesday, the 1st/2nd, everywhere in -11h…+14h
@@ -25367,8 +25620,6 @@ var init_validate_descriptor_core = __esm({
25367
25620
  "clearInterval",
25368
25621
  "URL",
25369
25622
  "URLSearchParams",
25370
- "TextEncoder",
25371
- "TextDecoder",
25372
25623
  "AbortController",
25373
25624
  "webkitURL"
25374
25625
  ];
@@ -27022,6 +27273,12 @@ ${opts.liveTransport ? ` var handle = { getState: function () { return def
27022
27273
  var noop = function () {};
27023
27274
  globalThis.console = ${JSON.stringify(WORKER_CONSOLE_METHODS)}.reduce(function (c, m) { c[m] = noop; return c; }, {});`}
27024
27275
 
27276
+ // #6272 \u2014 the worker globals every device realm has now (crypto.getRandomValues on the host's
27277
+ // CSPRNG, TextEncoder/TextDecoder, atob/btoa), from the same source the bootstraps carry. Built on
27278
+ // the \`__himalaya_native_random\` bridge the host set before this prelude, then deleted.
27279
+ ${WORKER_GLOBALS_SHIM_SOURCE}
27280
+ delete globalThis.__himalaya_native_random;
27281
+
27025
27282
  globalThis.fetch = function () {
27026
27283
  throw new Error("\`fetch\` is not available in the author-time sandbox \u2014 workers load data via the sanctioned Wix transport (\`@himalaya/wix-*\` or \`globalThis.himalaya.wixApi.call\`), not raw \`fetch\`.");
27027
27284
  };
@@ -27202,6 +27459,19 @@ async function createQuickJsEvaluator(options2 = {}) {
27202
27459
  ctx.setProp(ctx.global, "__himiDispatch", bridge);
27203
27460
  bridge.dispose();
27204
27461
  }
27462
+ const random = ctx.newFunction("__himalaya_native_random", (nHandle) => {
27463
+ const n2 = Math.max(0, Math.min(65536, Math.trunc(ctx.getNumber(nHandle)) || 0));
27464
+ const bytes2 = hostGetRandomValues2(new Uint8Array(n2));
27465
+ const arr3 = ctx.newArray();
27466
+ for (let i2 = 0; i2 < n2; i2++) {
27467
+ const b3 = ctx.newNumber(bytes2[i2]);
27468
+ ctx.setProp(arr3, i2, b3);
27469
+ b3.dispose();
27470
+ }
27471
+ return arr3;
27472
+ });
27473
+ ctx.setProp(ctx.global, "__himalaya_native_random", random);
27474
+ random.dispose();
27205
27475
  const pre = ctx.evalCode(
27206
27476
  // A per-run clock/seed (#3049's drift probe) wins over the realm-wide pinned clock. Built
27207
27477
  // in the guest from the guest's own intrinsics, like every realm's (`pinnedIntrinsicsSource`).
@@ -27323,12 +27593,13 @@ function copyBack(ctx, sandbox, readback) {
27323
27593
  for (const line of lines2) consoleObj?.[line.level]?.(line.message);
27324
27594
  }
27325
27595
  }
27326
- var BUNDLE_FILENAME2, RECYCLE_AFTER_BLOWUPS, DEFAULT_MEMORY_LIMIT_BYTES, ReadbackFailure, RecyclingModulePool, pool, variantPools, modulesCreated, installPromise;
27596
+ var BUNDLE_FILENAME2, RECYCLE_AFTER_BLOWUPS, DEFAULT_MEMORY_LIMIT_BYTES, ReadbackFailure, RecyclingModulePool, pool, variantPools, modulesCreated, installPromise, hostGetRandomValues2;
27327
27597
  var init_quickjs_evaluator = __esm({
27328
27598
  "../../core/dev-server/src/quickjs-evaluator.ts"() {
27329
27599
  init_define_HHP_CATALOG();
27330
27600
  init_quickjs_intl();
27331
27601
  init_worker_console();
27602
+ init_worker_globals_shim();
27332
27603
  init_quickjs_state_codec();
27333
27604
  init_quickjs_web_globals();
27334
27605
  init_realm_parity();
@@ -27477,6 +27748,7 @@ var init_quickjs_evaluator = __esm({
27477
27748
  variantPools = /* @__PURE__ */ new WeakMap();
27478
27749
  modulesCreated = 0;
27479
27750
  installPromise = null;
27751
+ hostGetRandomValues2 = globalThis.crypto.getRandomValues.bind(globalThis.crypto);
27480
27752
  }
27481
27753
  });
27482
27754
 
@@ -40582,6 +40854,7 @@ function resolveIdiom(tokens2, ctx = {}) {
40582
40854
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
40583
40855
  var init_idiom = __esm({
40584
40856
  "../../core/ts/src/idiom.ts"() {
40857
+ "use strict";
40585
40858
  init_define_HHP_CATALOG();
40586
40859
  IDIOM_CONTEXTS = {
40587
40860
  ios: { native: ["ios"] },
@@ -252663,52 +252936,52 @@ var init_preview_assets_generated = __esm({
252663
252936
  init_define_HHP_CATALOG();
252664
252937
  init_preview_assets_format();
252665
252938
  PREVIEW_ASSET_MANIFEST = [
252666
- { key: "assets/DashboardHost-BTuxidUs.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "0609e12596a679945ac827246fe7066a018f9b5f5efd1ca242cbb1346ef1ef82" },
252667
- { key: "assets/DevDrawer-BYork7D7.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "6cb51fec21877078c3e829afcc4b51cb334fdb0e1a3a4539f48bf42e33809f10" },
252668
- { key: "assets/IdiomCompare-CJTqirki.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "2ee7606f089027c39149473aed1f88aba8f788026bf3ddddc076cb3d166b630c" },
252669
- { key: "assets/LightboxViewer-BtGlQvVn.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "c0fd11c539f233095e6cd18bca66a25dfbd120b56bd63494c791359e4251dfe8" },
252670
- { key: "assets/OfflineReadingBar-DsTSKkNB.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "1f9534fbfb50e03c042b2e4ed0ce13e9cd6b0f89a66e420a8fd6fbaff19de8cd" },
252671
- { key: "assets/PhonePreviewControl-DAykTQyN.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "c6b8156190c8e2c28dda6e255299317495031e5895427953af3e3aa340a625e1" },
252672
- { key: "assets/SchemeCompare-BhxAlMkT.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "e9760c460c87179f53ef8702b6533774b9caaa266d7dcbfd7c57552e0dfcb29b" },
252673
- { key: "assets/WixFrogTelemetrySink-CBDK6t3t.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "f1fba34ca7fa3ce315c4e166b1ac1dd4ebffd9d624d8613007ce46fbd56f8248" },
252939
+ { key: "assets/DashboardHost-vu6816_S.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "05dd472984581a115a603da4be98988c86ec43d16fc53402846e3890d7b4c7e5" },
252940
+ { key: "assets/DevDrawer-B245udVX.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "3c9dd1b1699cd0478eb510f2459631f4158a0beea1c2779e5fe9dfbf26bfbafb" },
252941
+ { key: "assets/IdiomCompare-wqxNLeES.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "c33f0bd0de2065271238edb19100841ee5e66d317f8d8bf46b8726bf55329408" },
252942
+ { key: "assets/LightboxViewer-D8mem260.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "619eff81e662338799470bc68293bb96fea4aa5c4361de94f91c34766390f25c" },
252943
+ { key: "assets/OfflineReadingBar-BEaI1X4G.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "11be061f86775fddc495ccd504e862ad4260a49caf1786bea07dcb1bd05f56cd" },
252944
+ { key: "assets/PhonePreviewControl-DITvwvbj.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "b8c88c17491e18ce178177b6e03da5f6171838d0022c41cb96f20fb45cf80b11" },
252945
+ { key: "assets/SchemeCompare-CjVCY--d.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "cdb0c692c6dcdecd5c38a659f14f21a4b7603ad32f3318c54486f225b3dbd3c8" },
252946
+ { key: "assets/WixFrogTelemetrySink-dfAVTCPB.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "5024330543f5a522877eea24bca2168747918fc388c69490788dee7f732a5e19" },
252674
252947
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
252675
252948
  { key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
252676
- { key: "assets/catalogFontFaces-ClufIOZz.js", contentType: "application/javascript; charset=utf-8", offset: 121772, length: 1111, sha256: "955c7a159e117dff175d47148d1e680f747527f40296f1ae101079eb32805864" },
252949
+ { key: "assets/catalogFontFaces-PoF0qC9s.js", contentType: "application/javascript; charset=utf-8", offset: 121772, length: 1111, sha256: "59930f6dd7bdbe87488ee929f8ab38bfab26560004b391bb16da2176f1547475" },
252677
252950
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 122883, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
252678
- { key: "assets/files-transfer-BKq34gdo.js", contentType: "application/javascript; charset=utf-8", offset: 125450, length: 6446, sha256: "082f93fab59deb398c5706edbcceb943bf119ec62b770c18af433a27d717f809" },
252951
+ { key: "assets/files-transfer-YwmcfxEr.js", contentType: "application/javascript; charset=utf-8", offset: 125450, length: 6446, sha256: "6873271127a397f7cd0da78912f82a88118850fa6ae2edc13218f1c80a35c464" },
252679
252952
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 131896, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
252680
- { key: "assets/frogApiRules-D49qZOFJ.js", contentType: "application/javascript; charset=utf-8", offset: 133068, length: 2207, sha256: "2adc1477ed6b13c3a92049d5d0e8f597e9e58b6a6dda1f4729b18c6b9416d413" },
252953
+ { key: "assets/frogApiRules-CZMqGHRD.js", contentType: "application/javascript; charset=utf-8", offset: 133068, length: 2207, sha256: "4953ef170721f5b4ced16b593d84ca787facb7b1f5f6966b64cae5fa1453303b" },
252681
252954
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 135275, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
252682
252955
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 136342, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
252683
252956
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 142920, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
252684
- { key: "assets/index-B3Umiitd.js", contentType: "application/javascript; charset=utf-8", offset: 145624, length: 1609815, sha256: "f848c849705f99e533cc6520de90c1f64296d8d5d3074bbf974d0271aa3e9f76" },
252685
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1755439, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
252686
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1763190, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
252687
- { key: "assets/pdf-DJ2HpPVo.js", contentType: "application/javascript; charset=utf-8", offset: 1773721, length: 488215, sha256: "6a6533b17d5be5f57674406c5399ebd5b4474e0db8ef92bc117ce36d9cf38c5e" },
252688
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2261936, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
252689
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2262026, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
252690
- { key: "assets/pdfDocument-Bu_w7BfF.js", contentType: "application/javascript; charset=utf-8", offset: 3579060, length: 3470, sha256: "6bc05e35d64bd4474a9981ea2cd43efd74d85ca0ecccc56925be65031595b4a6" },
252691
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3582530, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
252692
- { key: "assets/scrollLinkedRuntime-CJUtSbja.js", contentType: "application/javascript; charset=utf-8", offset: 3584796, length: 2278, sha256: "d9ba5bf78d6b5e9ccbdd87de46f686dadd56ed1e49a501cacfab102e756519ab" },
252693
- { key: "assets/webviewBridgeHost-B6bMich3.js", contentType: "application/javascript; charset=utf-8", offset: 3587074, length: 9889, sha256: "2fc7fba364acb60002a7ac66d1a8ae89f25e2766a3c2198d2dfce2e5b1d13956" },
252694
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3596963, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
252695
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3601573, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
252696
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4090157, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
252697
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4181081, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
252698
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4272065, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
252699
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4363045, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
252700
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4453917, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
252701
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4544897, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
252702
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4653533, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
252703
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4762617, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
252704
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4871665, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
252705
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4979365, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
252706
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5067473, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
252707
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5074291, length: 4924, sha256: "74c98d9f6b2f194fbe0aed2ce9ced28c4750267ffb2de81708b0cbe5943087f1" },
252708
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5079215, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
252709
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5090672, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
252710
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5091843, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
252711
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5116146, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
252957
+ { key: "assets/index-DfWfamZY.js", contentType: "application/javascript; charset=utf-8", offset: 145624, length: 1616714, sha256: "905ae41300ff79f89557d5afe4b65bebf814d5e534274af7a29d48c246be74a3" },
252958
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1762338, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
252959
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1770089, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
252960
+ { key: "assets/pdf-hxfZ_Mtv.js", contentType: "application/javascript; charset=utf-8", offset: 1780620, length: 488215, sha256: "6b75cd09be1a632e3fe09f4c4b24f8faf6da7967bd737d0e834263fdeac9132f" },
252961
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2268835, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
252962
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2268925, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
252963
+ { key: "assets/pdfDocument-BrwFA9CR.js", contentType: "application/javascript; charset=utf-8", offset: 3585959, length: 3470, sha256: "dab2c3e3a7fec950c2227fd4bdbecc61eba0e368798c28c222f7c45f1a544d8c" },
252964
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3589429, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
252965
+ { key: "assets/scrollLinkedRuntime-30A-etWD.js", contentType: "application/javascript; charset=utf-8", offset: 3591695, length: 2278, sha256: "cd68b026d5c23ac8009f43ef2b12f111f7fc88e75f286827aa489ea38dfd740d" },
252966
+ { key: "assets/webviewBridgeHost-H_aOl0S8.js", contentType: "application/javascript; charset=utf-8", offset: 3593973, length: 9889, sha256: "029ffd75997727cf7b00aa4a542847ad82d9b5f55c1c6ac8c1e3fe462a114f22" },
252967
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3603862, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
252968
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3608472, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
252969
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4097056, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
252970
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4187980, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
252971
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4278964, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
252972
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4369944, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
252973
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4460816, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
252974
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4551796, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
252975
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4660432, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
252976
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4769516, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
252977
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4878564, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
252978
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4986264, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
252979
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5074372, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
252980
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5081190, length: 4924, sha256: "4fb5bcaec49158d7d3cdde4a6d1f6f347e0d9eedfa126b63d0710e6bf9323809" },
252981
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5086114, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
252982
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5097571, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
252983
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5098742, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
252984
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5123045, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
252712
252985
  ];
252713
252986
  }
252714
252987
  });
Binary file
@@ -1,6 +1,7 @@
1
1
  // ../../core/dev-server/src/quickjs-worker-entry.ts
2
2
  import { parentPort, workerData } from "node:worker_threads";
3
3
  import { pathToFileURL } from "node:url";
4
+ import { randomFillSync } from "node:crypto";
4
5
  var CTL_READY = 0;
5
6
  var CTL_LEN = 1;
6
7
  var CTL_SEQ = 2;
@@ -107,6 +108,19 @@ async function boot(msg) {
107
108
  });
108
109
  ctx.setProp(ctx.global, "__himiDispatch", dispatchHost);
109
110
  dispatchHost.dispose();
111
+ const random = ctx.newFunction("__himalaya_native_random", (nHandle) => {
112
+ const n = Math.max(0, Math.min(65536, Math.trunc(ctx.getNumber(nHandle)) || 0));
113
+ const bytes = randomFillSync(new Uint8Array(n));
114
+ const arr = ctx.newArray();
115
+ for (let i = 0; i < n; i++) {
116
+ const b = ctx.newNumber(bytes[i]);
117
+ ctx.setProp(arr, i, b);
118
+ b.dispose();
119
+ }
120
+ return arr;
121
+ });
122
+ ctx.setProp(ctx.global, "__himalaya_native_random", random);
123
+ random.dispose();
110
124
  const pre = ctx.evalCode(msg.prelude, "himi-sandbox.js");
111
125
  if (pre.error) {
112
126
  const detail = ctx.dump(pre.error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1816.0",
3
+ "version": "0.1817.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "c7f34109aa1220f43a6769ceb4e2f574f8f2d0596ad017a82c5fa0a7"
85
+ "falconPackageHash": "e6fecf438feed0021de52930d2c1d54e22d366a863c36a374156923e"
86
86
  }