@etherplay/dev-wallet-host 0.1.1 → 0.1.2

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 (31) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +1 -1
  3. package/site/assets/{App-81EXtqUY.css → App-CDu0qQwT.css} +26 -26
  4. package/site/assets/{App-DKwr3SmI.js → App-DDcApMye.js} +130 -124
  5. package/site/assets/App-DDcApMye.js.map +1 -0
  6. package/site/assets/{bignumbers-CXLDZ_hX.js → bignumbers-DEXSwWwa.js} +2 -2
  7. package/site/assets/{bignumbers-CXLDZ_hX.js.map → bignumbers-DEXSwWwa.js.map} +1 -1
  8. package/site/assets/{index-MU9KXKKX.js → index-BAWUHBts.js} +4 -4
  9. package/site/assets/{index-MU9KXKKX.js.map → index-BAWUHBts.js.map} +1 -1
  10. package/site/assets/{index-CXJHxToF.js → index-BXoUMG4U.js} +6 -6
  11. package/site/assets/{index-CXJHxToF.js.map → index-BXoUMG4U.js.map} +1 -1
  12. package/site/assets/{index-DhaZfSXv.js → index-Boiz7eM2.js} +8 -8
  13. package/site/assets/{index-DhaZfSXv.js.map → index-Boiz7eM2.js.map} +1 -1
  14. package/site/assets/{index-BpymDBD4.js → index-BpgHGts3.js} +3 -3
  15. package/site/assets/{index-BpymDBD4.js.map → index-BpgHGts3.js.map} +1 -1
  16. package/site/assets/{index-kfVihtzM.js → index-BrlXb28n.js} +2 -2
  17. package/site/assets/{index-kfVihtzM.js.map → index-BrlXb28n.js.map} +1 -1
  18. package/site/assets/{index-ClPYLG7G.js → index-NKFZZPPE.js} +6 -6
  19. package/site/assets/{index-ClPYLG7G.js.map → index-NKFZZPPE.js.map} +1 -1
  20. package/site/assets/{login-BHg03x5C.js → login-Bm1QORQJ.js} +3 -3
  21. package/site/assets/{login-BHg03x5C.js.map → login-Bm1QORQJ.js.map} +1 -1
  22. package/site/assets/login-Dm0rG43D.css +54 -0
  23. package/site/assets/{typed-data-BgFaC7At.js → typed-data-CUGl6Sw8.js} +4 -4
  24. package/site/assets/{typed-data-BgFaC7At.js.map → typed-data-CUGl6Sw8.js.map} +1 -1
  25. package/site/assets/{utf8-C_RblMvC.js → utf8-xywbIwOw.js} +2 -2
  26. package/site/assets/{utf8-C_RblMvC.js.map → utf8-xywbIwOw.js.map} +1 -1
  27. package/site/fonts/OFL-Audiowide.txt +93 -0
  28. package/site/fonts/audiowide-latin-400.woff2 +0 -0
  29. package/site/login/index.html +2 -2
  30. package/site/assets/App-DKwr3SmI.js.map +0 -1
  31. package/site/assets/login-bn0FJsfM.css +0 -30
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BpymDBD4.js","assets/index-client-8kPxwRn_.js","assets/login-BHg03x5C.js","assets/login-bn0FJsfM.css","assets/index-CXJHxToF.js","assets/typed-data-BgFaC7At.js","assets/utf8-C_RblMvC.js","assets/index-kfVihtzM.js","assets/index-ClPYLG7G.js","assets/bignumbers-CXLDZ_hX.js","assets/index-DhaZfSXv.js","assets/index-MU9KXKKX.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BpgHGts3.js","assets/index-client-8kPxwRn_.js","assets/login-Bm1QORQJ.js","assets/login-Dm0rG43D.css","assets/index-BXoUMG4U.js","assets/typed-data-CUGl6Sw8.js","assets/utf8-xywbIwOw.js","assets/index-BrlXb28n.js","assets/index-NKFZZPPE.js","assets/bignumbers-DEXSwWwa.js","assets/index-Boiz7eM2.js","assets/index-BAWUHBts.js"])))=>i.map(i=>d[i]);
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -19,8 +19,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
19
19
  }
20
20
  });
21
21
  var _a, _b, _c, _d, _e, _t, _e2, _s, _a2, _i, _r, _o, _n, _h, _d2, _c2, _p, _E_instances, m_fn, _f, _e3, _s2, _t2, _i2, _o2, _r2, _n2, _a3, _c3, _g2, _h2, _d3, _l, _g, _h3;
22
- import { i as is_array, g as get_prototype_of, o as object_prototype, c as create_text, a as active_effect, b as get_first_child, d as is_firefox, T as TEMPLATE_FRAGMENT, e as TEMPLATE_USE_IMPORT_NODE, f as block, E as EFFECT_TRANSPARENT, r as resume_effect, h as branch, p as pause_effect, U as UNINITIALIZED, j as get$1, k as derived_safe_equal, I as INERT, l as array_from, m as mutable_source, s as source$1, n as internal_set, q as pause_children, t as clear_text_content, u as run_out_transitions, v as destroy_effect, w as EACH_INDEX_REACTIVE, x as EACH_ITEM_REACTIVE, y as EACH_ITEM_IMMUTABLE, z as get_next_sibling, A as EACH_IS_CONTROLLED, B as queue_micro_task, C as EACH_IS_ANIMATED, D as effect, F as untrack, G as render_effect, H as deep_read_state, J as safe_not_equal$1, L as LOADING_ATTR_SYMBOL, N as NAMESPACE_HTML, K as get_descriptors, S as STATE_SYMBOL, M as component_context, O as user_pre_effect, P as user_effect, Q as run_all, R as run, V as derived, W as noop$3, X as teardown, Y as define_property, Z as set, _ as proxy, $ as get_descriptor, a0 as props_invalid_value, a1 as LEGACY_DERIVED_PROP, a2 as PROPS_IS_UPDATED, a3 as safe_equals, a4 as PROPS_IS_BINDABLE, a5 as LEGACY_PROPS, a6 as PROPS_IS_LAZY_INITIAL, a7 as legacy_mode_flag, a8 as PROPS_IS_RUNES, a9 as PROPS_IS_IMMUTABLE, aa as enable_legacy_mode_flag, ab as delegate, ac as push, ad as user_derived, ae as sibling, af as pop, ag as child, ah as template_effect, ai as set_text, aj as first_child, ak as onMount, al as event, am as state } from "./index-client-8kPxwRn_.js";
23
- import { _ as __vitePreload, h as hostConfig } from "./login-BHg03x5C.js";
22
+ import { i as is_array, g as get_prototype_of, o as object_prototype, c as create_text, a as active_effect, b as get_first_child, d as is_firefox, T as TEMPLATE_FRAGMENT, e as TEMPLATE_USE_IMPORT_NODE, f as block, E as EFFECT_TRANSPARENT, r as resume_effect, h as branch, p as pause_effect, U as UNINITIALIZED, j as get$2, k as derived_safe_equal, I as INERT, l as array_from, m as mutable_source, s as source$1, n as internal_set, q as pause_children, t as clear_text_content, u as run_out_transitions, v as destroy_effect, w as EACH_INDEX_REACTIVE, x as EACH_ITEM_REACTIVE, y as EACH_ITEM_IMMUTABLE, z as get_next_sibling, A as EACH_IS_CONTROLLED, B as queue_micro_task, C as EACH_IS_ANIMATED, D as effect, F as untrack, G as render_effect, H as deep_read_state, J as safe_not_equal$1, L as LOADING_ATTR_SYMBOL, N as NAMESPACE_HTML, K as get_descriptors, S as STATE_SYMBOL, M as component_context, O as user_pre_effect, P as user_effect, Q as run_all, R as run, V as derived, W as noop$3, X as teardown, Y as define_property, Z as set, _ as proxy, $ as get_descriptor, a0 as props_invalid_value, a1 as LEGACY_DERIVED_PROP, a2 as PROPS_IS_UPDATED, a3 as safe_equals, a4 as PROPS_IS_BINDABLE, a5 as LEGACY_PROPS, a6 as PROPS_IS_LAZY_INITIAL, a7 as legacy_mode_flag, a8 as PROPS_IS_RUNES, a9 as PROPS_IS_IMMUTABLE, aa as enable_legacy_mode_flag, ab as delegate, ac as push, ad as user_derived, ae as sibling, af as pop, ag as child, ah as template_effect, ai as set_text, aj as first_child, ak as onMount, al as event, am as state } from "./index-client-8kPxwRn_.js";
23
+ import { _ as __vitePreload, h as hostConfig } from "./login-Bm1QORQJ.js";
24
24
  const empty = [];
25
25
  function snapshot(value, skip_warning = false) {
26
26
  return clone(value, /* @__PURE__ */ new Map(), "", empty);
@@ -272,7 +272,7 @@ function each(node, flags, get_collection, get_key, render_fn, fallback_fn = nul
272
272
  return is_array(collection) ? collection : collection == null ? [] : array_from(collection);
273
273
  });
274
274
  block(() => {
275
- var array = get$1(each_array);
275
+ var array = get$2(each_array);
276
276
  var length = array.length;
277
277
  if (was_empty && length === 0) {
278
278
  return;
@@ -294,7 +294,7 @@ function each(node, flags, get_collection, get_key, render_fn, fallback_fn = nul
294
294
  });
295
295
  }
296
296
  }
297
- get$1(each_array);
297
+ get$2(each_array);
298
298
  });
299
299
  }
300
300
  function reconcile(array, state2, anchor, render_fn, flags, get_key, get_collection) {
@@ -702,7 +702,7 @@ function init(immutable = false) {
702
702
  if (changed) version2++;
703
703
  return version2;
704
704
  });
705
- props = () => get$1(d2);
705
+ props = () => get$2(d2);
706
706
  }
707
707
  if (callbacks.b.length) {
708
708
  user_pre_effect(() => {
@@ -729,11 +729,11 @@ function init(immutable = false) {
729
729
  }
730
730
  function observe_all(context, props) {
731
731
  if (context.l.s) {
732
- for (const signal of context.l.s) get$1(signal);
732
+ for (const signal of context.l.s) get$2(signal);
733
733
  }
734
734
  props();
735
735
  }
736
- function subscribe_to_store(store, run2, invalidate) {
736
+ function subscribe_to_store$1(store, run2, invalidate) {
737
737
  if (store == null) {
738
738
  run2(void 0);
739
739
  return noop$3;
@@ -747,9 +747,9 @@ function subscribe_to_store(store, run2, invalidate) {
747
747
  );
748
748
  return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
749
749
  }
750
- function get(store) {
750
+ function get$1(store) {
751
751
  let value;
752
- subscribe_to_store(store, (_2) => value = _2)();
752
+ subscribe_to_store$1(store, (_2) => value = _2)();
753
753
  return value;
754
754
  }
755
755
  let is_store_binding = false;
@@ -768,7 +768,7 @@ function store_get(store, store_name, stores) {
768
768
  entry.unsubscribe = noop$3;
769
769
  } else {
770
770
  var is_synchronous_callback = true;
771
- entry.unsubscribe = subscribe_to_store(store, (v2) => {
771
+ entry.unsubscribe = subscribe_to_store$1(store, (v2) => {
772
772
  if (is_synchronous_callback) {
773
773
  entry.source.v = v2;
774
774
  } else {
@@ -779,9 +779,9 @@ function store_get(store, store_name, stores) {
779
779
  }
780
780
  }
781
781
  if (store && IS_UNMOUNTED in stores) {
782
- return get(store);
782
+ return get$1(store);
783
783
  }
784
- return get$1(entry.source);
784
+ return get$2(entry.source);
785
785
  }
786
786
  function setup_stores() {
787
787
  const stores = {};
@@ -881,7 +881,7 @@ function prop(props, key, flags, fallback) {
881
881
  );
882
882
  derived_getter.f |= LEGACY_DERIVED_PROP;
883
883
  getter = () => {
884
- var value = get$1(derived_getter);
884
+ var value = get$2(derived_getter);
885
885
  if (value !== void 0) fallback_value = /** @type {V} */
886
886
  void 0;
887
887
  return value === void 0 ? fallback_value : value;
@@ -907,7 +907,7 @@ function prop(props, key, flags, fallback) {
907
907
  var inner_current_value = mutable_source(prop_value);
908
908
  var current_value = derived(() => {
909
909
  var parent_value = getter();
910
- var child_value = get$1(inner_current_value);
910
+ var child_value = get$2(inner_current_value);
911
911
  if (from_child) {
912
912
  from_child = false;
913
913
  return child_value;
@@ -915,12 +915,12 @@ function prop(props, key, flags, fallback) {
915
915
  return inner_current_value.v = parent_value;
916
916
  });
917
917
  if (bindable) {
918
- get$1(current_value);
918
+ get$2(current_value);
919
919
  }
920
920
  if (!immutable) current_value.equals = safe_equals;
921
921
  return function(value, mutation) {
922
922
  if (arguments.length > 0) {
923
- const new_value = mutation ? get$1(current_value) : runes && bindable ? proxy(value) : value;
923
+ const new_value = mutation ? get$2(current_value) : runes && bindable ? proxy(value) : value;
924
924
  if (!current_value.equals(new_value)) {
925
925
  from_child = true;
926
926
  set(inner_current_value, new_value);
@@ -930,14 +930,14 @@ function prop(props, key, flags, fallback) {
930
930
  if (has_destroyed_component_ctx(current_value)) {
931
931
  return value;
932
932
  }
933
- untrack(() => get$1(current_value));
933
+ untrack(() => get$2(current_value));
934
934
  }
935
935
  return value;
936
936
  }
937
937
  if (has_destroyed_component_ctx(current_value)) {
938
938
  return current_value.v;
939
939
  }
940
- return get$1(current_value);
940
+ return get$2(current_value);
941
941
  };
942
942
  }
943
943
  const PUBLIC_VERSION = "5";
@@ -947,7 +947,7 @@ if (typeof window !== "undefined") {
947
947
  enable_legacy_mode_flag();
948
948
  var root_1$4 = /* @__PURE__ */ template(`<p class="svelte-17t2b8q"> </p>`);
949
949
  var on_click$4 = (_2, canClose) => {
950
- if (get$1(canClose)) {
950
+ if (get$2(canClose)) {
951
951
  window.close();
952
952
  } else {
953
953
  window.history.back();
@@ -961,7 +961,7 @@ function CriticalError($$anchor, $$props) {
961
961
  var div = sibling(child(main2), 2);
962
962
  var node = child(div);
963
963
  each(node, 17, () => $$props.errors, index$2, ($$anchor2, $$item) => {
964
- let message = () => get$1($$item).message;
964
+ let message = () => get$2($$item).message;
965
965
  var p5 = root_1$4();
966
966
  var text2 = child(p5);
967
967
  template_effect(() => set_text(text2, message()));
@@ -992,9 +992,9 @@ var root_18 = /* @__PURE__ */ template(
992
992
  1
993
993
  );
994
994
  var root_19$1 = /* @__PURE__ */ template(`<p class="detail small svelte-6x8unw"> </p>`);
995
- var on_click_4 = (__4, $$props, request) => $$props.approval.grant(get$1(request));
995
+ var on_click_4 = (__4, $$props, request) => $$props.approval.grant(get$2(request));
996
996
  var root_20 = /* @__PURE__ */ template(`<button id="permission-allow" type="submit" class="svelte-6x8unw">Allow</button>`);
997
- var on_click_5 = (__5, $$props, request) => $$props.approval.deny(get$1(request));
997
+ var on_click_5 = (__5, $$props, request) => $$props.approval.deny(get$2(request));
998
998
  var root_16$2 = /* @__PURE__ */ template(`<p class="svelte-6x8unw"> </p> <!> <!> <!> <button class="deny svelte-6x8unw" id="permission-deny" type="submit"> </button>`, 1);
999
999
  function Permissions($$anchor, $$props) {
1000
1000
  push($$props, true);
@@ -1033,8 +1033,8 @@ function Permissions($$anchor, $$props) {
1033
1033
  var consequent = ($$anchor5) => {
1034
1034
  var text_1 = text();
1035
1035
  template_effect(($0, $1) => set_text(text_1, `acting for you at ${$0 ?? ""} on ${$1 ?? ""}`), [
1036
- () => shortAddress(get$1(outcome).request.contract),
1037
- () => chainName(get$1(outcome).request.chainId)
1036
+ () => shortAddress(get$2(outcome).request.contract),
1037
+ () => chainName(get$2(outcome).request.chainId)
1038
1038
  ]);
1039
1039
  append($$anchor5, text_1);
1040
1040
  };
@@ -1043,7 +1043,7 @@ function Permissions($$anchor, $$props) {
1043
1043
  append($$anchor5, text_2);
1044
1044
  };
1045
1045
  if_block(node_2, ($$render) => {
1046
- if (get$1(outcome).request.type === "delegation") $$render(consequent);
1046
+ if (get$2(outcome).request.type === "delegation") $$render(consequent);
1047
1047
  else $$render(alternate, false);
1048
1048
  });
1049
1049
  }
@@ -1144,7 +1144,7 @@ function Permissions($$anchor, $$props) {
1144
1144
  append($$anchor6, fragment_7);
1145
1145
  };
1146
1146
  if_block(node_3, ($$render) => {
1147
- if (!get$1(secondStep)) $$render(consequent_4);
1147
+ if (!get$2(secondStep)) $$render(consequent_4);
1148
1148
  else $$render(alternate_3, false);
1149
1149
  });
1150
1150
  }
@@ -1164,8 +1164,8 @@ function Permissions($$anchor, $$props) {
1164
1164
  var p_9 = first_child(fragment_9);
1165
1165
  var text_12 = child(p_9);
1166
1166
  template_effect(($0, $1) => set_text(text_12, `Permission to act in your name onchain, at one contract: ${$0 ?? ""} on ${$1 ?? ""}.`), [
1167
- () => shortAddress(get$1(request).contract),
1168
- () => chainName(get$1(request).chainId)
1167
+ () => shortAddress(get$2(request).contract),
1168
+ () => chainName(get$2(request).chainId)
1169
1169
  ]);
1170
1170
  append($$anchor7, fragment_9);
1171
1171
  };
@@ -1174,11 +1174,11 @@ function Permissions($$anchor, $$props) {
1174
1174
  var p_10 = first_child(fragment_10);
1175
1175
  var code2 = sibling(child(p_10));
1176
1176
  var text_13 = child(code2);
1177
- template_effect(() => set_text(text_13, get$1(request).requestedType));
1177
+ template_effect(() => set_text(text_13, get$2(request).requestedType));
1178
1178
  append($$anchor7, fragment_10);
1179
1179
  };
1180
1180
  if_block(node_6, ($$render) => {
1181
- if (get$1(request).type === "delegation") $$render(consequent_7);
1181
+ if (get$2(request).type === "delegation") $$render(consequent_7);
1182
1182
  else $$render(alternate_6, false);
1183
1183
  });
1184
1184
  }
@@ -1191,7 +1191,7 @@ function Permissions($$anchor, $$props) {
1191
1191
  append($$anchor7, p_11);
1192
1192
  };
1193
1193
  if_block(node_7, ($$render) => {
1194
- if (get$1(request).required) $$render(consequent_8);
1194
+ if (get$2(request).required) $$render(consequent_8);
1195
1195
  });
1196
1196
  }
1197
1197
  var node_8 = sibling(node_7, 2);
@@ -1202,7 +1202,7 @@ function Permissions($$anchor, $$props) {
1202
1202
  append($$anchor7, button_6);
1203
1203
  };
1204
1204
  if_block(node_8, ($$render) => {
1205
- if (get$1(request).type === "delegation") $$render(consequent_9);
1205
+ if (get$2(request).type === "delegation") $$render(consequent_9);
1206
1206
  });
1207
1207
  }
1208
1208
  var button_7 = sibling(node_8, 2);
@@ -1210,7 +1210,7 @@ function Permissions($$anchor, $$props) {
1210
1210
  var text_15 = child(button_7);
1211
1211
  template_effect(() => {
1212
1212
  set_text(text_11, `${$$props.approval.request.windowOrigin ?? ""} is asking for:`);
1213
- set_text(text_15, get$1(request).type === "delegation" ? "Not this one" : "Continue without it");
1213
+ set_text(text_15, get$2(request).type === "delegation" ? "Not this one" : "Continue without it");
1214
1214
  });
1215
1215
  append($$anchor6, fragment_8);
1216
1216
  };
@@ -1342,19 +1342,19 @@ function OAuth($$anchor, $$props) {
1342
1342
  var node_1 = child(main2);
1343
1343
  {
1344
1344
  var consequent_3 = ($$anchor2) => {
1345
- logo($$anchor2, () => get$1(provider), () => true);
1345
+ logo($$anchor2, () => get$2(provider), () => true);
1346
1346
  };
1347
1347
  var alternate_3 = ($$anchor2, $$elseif) => {
1348
1348
  {
1349
1349
  var consequent_4 = ($$anchor3) => {
1350
1350
  var fragment_2 = root_10();
1351
1351
  var node_2 = first_child(fragment_2);
1352
- logo(node_2, () => get$1(provider), () => false);
1352
+ logo(node_2, () => get$2(provider), () => false);
1353
1353
  var div_1 = sibling(node_2, 2);
1354
1354
  var button = child(div_1);
1355
1355
  button.__click = () => $$props.authProvider.connect({
1356
1356
  type: "oauth",
1357
- provider: get$1(provider),
1357
+ provider: get$2(provider),
1358
1358
  usePopup: true
1359
1359
  });
1360
1360
  append($$anchor3, fragment_2);
@@ -1362,12 +1362,12 @@ function OAuth($$anchor, $$props) {
1362
1362
  var alternate_4 = ($$anchor3, $$elseif2) => {
1363
1363
  {
1364
1364
  var consequent_5 = ($$anchor4) => {
1365
- logo($$anchor4, () => get$1(provider), () => true);
1365
+ logo($$anchor4, () => get$2(provider), () => true);
1366
1366
  };
1367
1367
  var alternate_5 = ($$anchor4, $$elseif3) => {
1368
1368
  {
1369
1369
  var consequent_6 = ($$anchor5) => {
1370
- logo($$anchor5, () => get$1(provider), () => true);
1370
+ logo($$anchor5, () => get$2(provider), () => true);
1371
1371
  };
1372
1372
  var alternate_6 = ($$anchor5, $$elseif4) => {
1373
1373
  {
@@ -1634,16 +1634,16 @@ async function onEmailChosen(ev, loginViaEmail) {
1634
1634
  const email2 = emailInput.value;
1635
1635
  return loginViaEmail(email2);
1636
1636
  }
1637
- var root_1$2 = /* @__PURE__ */ template(`<h1 class="svelte-oxfbbx">Please wait...</h1>`);
1638
- var root_3$1 = /* @__PURE__ */ template(`<h1 class="svelte-oxfbbx">Sign in via Email</h1> <form><input id="email" type="email" name="email" placeholder="conan@catacombs.world" aria-label="email" autocomplete="email" required class="svelte-oxfbbx"> <small id="email-info" style="display: none">Invalid Email</small> <button id="login-submit" type="submit" class="svelte-oxfbbx">Login</button></form>`, 1);
1639
- var root_5 = /* @__PURE__ */ template(`<p class="svelte-oxfbbx">You should shortly receive an email containing a code.</p> <p id="WaitingForOTPVerification:message" class="svelte-oxfbbx"></p> <hr class="svelte-oxfbbx"> <p style="font-size: 1rem" class="svelte-oxfbbx">Paste it here.</p> <!>`, 1);
1640
- var root_7 = /* @__PURE__ */ template(`<p class="svelte-oxfbbx">Verifying OTP...</p> <hr class="svelte-oxfbbx">`, 1);
1641
- var root_9 = /* @__PURE__ */ template(`<p class="svelte-oxfbbx">Email Verified, Please wait...</p> <hr class="svelte-oxfbbx">`, 1);
1642
- var root_14$1 = /* @__PURE__ */ template(`<p class="svelte-oxfbbx">You are logged in!</p> <button id="continue-submit" type="submit" class="svelte-oxfbbx">continue</button>`, 1);
1643
- var root_16 = /* @__PURE__ */ template(`<p class="svelte-oxfbbx">Please wait...</p>`);
1637
+ var root_1$2 = /* @__PURE__ */ template(`<h1 class="svelte-it8evu">Please wait...</h1>`);
1638
+ var root_3$1 = /* @__PURE__ */ template(`<h1 class="svelte-it8evu">Sign in via Email</h1> <form><input id="email" type="email" name="email" placeholder="conan@catacombs.world" aria-label="email" autocomplete="email" required class="svelte-it8evu"> <small id="email-info" style="display: none">Invalid Email</small> <button id="login-submit" type="submit" class="svelte-it8evu">Login</button></form>`, 1);
1639
+ var root_5 = /* @__PURE__ */ template(`<p class="svelte-it8evu">You should shortly receive an email containing a code.</p> <p id="WaitingForOTPVerification:message" class="svelte-it8evu"></p> <hr class="svelte-it8evu"> <p style="font-size: 1rem" class="svelte-it8evu">Paste it here.</p> <!>`, 1);
1640
+ var root_7 = /* @__PURE__ */ template(`<p class="svelte-it8evu">Verifying OTP...</p> <hr class="svelte-it8evu">`, 1);
1641
+ var root_9 = /* @__PURE__ */ template(`<p class="svelte-it8evu">Email Verified, Please wait...</p> <hr class="svelte-it8evu">`, 1);
1642
+ var root_14$1 = /* @__PURE__ */ template(`<p class="svelte-it8evu">You are logged in!</p> <button id="continue-submit" type="submit" class="svelte-it8evu">continue</button>`, 1);
1643
+ var root_16 = /* @__PURE__ */ template(`<p class="svelte-it8evu">Please wait...</p>`);
1644
1644
  var on_click$1 = (_2, $$props) => $$props.cancel();
1645
- var root_17 = /* @__PURE__ */ template(`<p class="svelte-oxfbbx">Could not log you in, due to redirection failure</p> <button class="svelte-oxfbbx">Return</button>`, 1);
1646
- var root$3 = /* @__PURE__ */ template(`<main class="svelte-oxfbbx"><div class="logo svelte-oxfbbx"><svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail"><rect width="20" height="16" x="2" y="4" rx="2"></rect><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path></svg></div> <div><!></div> <div></div></main>`);
1645
+ var root_17 = /* @__PURE__ */ template(`<p class="svelte-it8evu">Could not log you in, due to redirection failure</p> <button class="svelte-it8evu">Return</button>`, 1);
1646
+ var root$3 = /* @__PURE__ */ template(`<main class="svelte-it8evu"><div class="logo svelte-it8evu"><svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail"><rect width="20" height="16" x="2" y="4" rx="2"></rect><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path></svg></div> <div><!></div> <div></div></main>`);
1647
1647
  function Email($$anchor, $$props) {
1648
1648
  push($$props, true);
1649
1649
  const [$$stores, $$cleanup] = setup_stores();
@@ -1655,7 +1655,7 @@ function Email($$anchor, $$props) {
1655
1655
  try {
1656
1656
  await $$props.authProvider.provideOTP(text2);
1657
1657
  } catch (error) {
1658
- (_a4 = get$1(otp)) == null ? void 0 : _a4.clear();
1658
+ (_a4 = get$2(otp)) == null ? void 0 : _a4.clear();
1659
1659
  return;
1660
1660
  }
1661
1661
  }
@@ -1692,7 +1692,7 @@ function Email($$anchor, $$props) {
1692
1692
  onCodeUpdated: submitOTP
1693
1693
  }),
1694
1694
  ($$value) => set(otp, $$value, true),
1695
- () => get$1(otp)
1695
+ () => get$2(otp)
1696
1696
  );
1697
1697
  append($$anchor4, fragment_1);
1698
1698
  };
@@ -7395,23 +7395,21 @@ async function deriveOriginAccount(origin2, account, accountGenerator2, granted)
7395
7395
  function noop$2() {
7396
7396
  }
7397
7397
  function safe_not_equal(a5, b2) {
7398
- return a5 != a5 ? b2 == b2 : a5 !== b2 || a5 && typeof a5 === "object" || typeof a5 === "function";
7398
+ return a5 != a5 ? b2 == b2 : a5 !== b2 || a5 !== null && typeof a5 === "object" || typeof a5 === "function";
7399
7399
  }
7400
- function subscribe(store, ...callbacks) {
7400
+ function subscribe_to_store(store, run2, invalidate) {
7401
7401
  if (store == null) {
7402
+ run2(void 0);
7402
7403
  return noop$2;
7403
7404
  }
7404
- const unsub = store.subscribe(...callbacks);
7405
+ const unsub = store.subscribe(run2, invalidate);
7405
7406
  return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
7406
7407
  }
7407
- function get_store_value(store) {
7408
- let value;
7409
- subscribe(store, (_2) => value = _2)();
7410
- return value;
7411
- }
7412
- var subscriber_queue = [];
7408
+ var QUEUE_KEY = /* @__PURE__ */ Symbol.for("sveltore.subscriber_queue.v1");
7409
+ var global_object = globalThis;
7410
+ var subscriber_queue = global_object[QUEUE_KEY] || (global_object[QUEUE_KEY] = []);
7413
7411
  function writable(value, start = noop$2) {
7414
- let stop;
7412
+ let stop = null;
7415
7413
  const subscribers = /* @__PURE__ */ new Set();
7416
7414
  function set2(new_value) {
7417
7415
  if (safe_not_equal(value, new_value)) {
@@ -7423,10 +7421,13 @@ function writable(value, start = noop$2) {
7423
7421
  subscriber_queue.push(subscriber, value);
7424
7422
  }
7425
7423
  if (run_queue) {
7426
- for (let i3 = 0; i3 < subscriber_queue.length; i3 += 2) {
7427
- subscriber_queue[i3][0](subscriber_queue[i3 + 1]);
7424
+ try {
7425
+ for (let i3 = 0; i3 < subscriber_queue.length; i3 += 2) {
7426
+ subscriber_queue[i3][0](subscriber_queue[i3 + 1]);
7427
+ }
7428
+ } finally {
7429
+ subscriber_queue.length = 0;
7428
7430
  }
7429
- subscriber_queue.length = 0;
7430
7431
  }
7431
7432
  }
7432
7433
  }
@@ -7434,22 +7435,27 @@ function writable(value, start = noop$2) {
7434
7435
  function update(fn) {
7435
7436
  set2(fn(value));
7436
7437
  }
7437
- function subscribe2(run2, invalidate = noop$2) {
7438
+ function subscribe(run2, invalidate = noop$2) {
7438
7439
  const subscriber = [run2, invalidate];
7439
7440
  subscribers.add(subscriber);
7440
7441
  if (subscribers.size === 1) {
7441
- stop = start(set2) || noop$2;
7442
+ stop = start(set2, update) || noop$2;
7442
7443
  }
7443
7444
  run2(value);
7444
7445
  return () => {
7445
7446
  subscribers.delete(subscriber);
7446
- if (subscribers.size === 0) {
7447
+ if (subscribers.size === 0 && stop) {
7447
7448
  stop();
7448
7449
  stop = null;
7449
7450
  }
7450
7451
  };
7451
7452
  }
7452
- return { set: set2, update, subscribe: subscribe2 };
7453
+ return { set: set2, update, subscribe };
7454
+ }
7455
+ function get(store) {
7456
+ let value;
7457
+ subscribe_to_store(store, (_2) => value = _2)();
7458
+ return value;
7453
7459
  }
7454
7460
  const global$1 = globalThis || void 0 || self;
7455
7461
  function getDefaultExportFromCjs$1(x2) {
@@ -15111,7 +15117,7 @@ let n$9 = (_e = class {
15111
15117
  }
15112
15118
  static async init({ sentry: e4, configuration: o5 }) {
15113
15119
  if (e4) return void (_e.sentry = e4);
15114
- const a5 = await __vitePreload(() => import("./index-BpymDBD4.js"), true ? __vite__mapDeps([0,1,2,3]) : void 0);
15120
+ const a5 = await __vitePreload(() => import("./index-BpgHGts3.js"), true ? __vite__mapDeps([0,1,2,3]) : void 0);
15115
15121
  _e.sentry = new a5.BrowserClient({ dsn: r$a, integrations: [], stackParser: a5.defaultStackParser, transport: a5.makeFetchTransport }), _e.baseTags = { projectId: (o5 == null ? void 0 : o5.baseConfiguration.publishableKey) ?? "", sdk: t$d, sdkVersion: o$9 }, _e.processQueuedCalls();
15116
15122
  }
15117
15123
  static processQueuedCalls() {
@@ -15504,15 +15510,15 @@ const t$8 = async (t6) => {
15504
15510
  let g2 = a5;
15505
15511
  if ([T$1.UPGRADEABLE_V5, T$1.UPGRADEABLE_V6].includes(d2)) {
15506
15512
  const e4 = { name: "Openfort", version: "0.5", chainId: Number(o5), verifyingContract: c3 }, t7 = { OpenfortMessage: [{ name: "hashedMessage", type: "bytes32" }] }, a6 = { hashedMessage: g2 }, { _TypedDataEncoder: s6 } = await __vitePreload(async () => {
15507
- const { _TypedDataEncoder: s7 } = await import("./index-CXJHxToF.js");
15513
+ const { _TypedDataEncoder: s7 } = await import("./index-BXoUMG4U.js");
15508
15514
  return { _TypedDataEncoder: s7 };
15509
15515
  }, true ? __vite__mapDeps([4,5,6,7,1,2,3]) : void 0);
15510
15516
  g2 = s6.hash(e4, t7, a6);
15511
15517
  }
15512
15518
  const P3 = await s5.sign(g2, false, false);
15513
15519
  if (i3 && n4 && [T$1.UPGRADEABLE_V5, T$1.UPGRADEABLE_V6].includes(d2)) {
15514
- const { id: e4 } = await __vitePreload(() => import("./index-CXJHxToF.js"), true ? __vite__mapDeps([4,5,6,7,1,2,3]) : void 0), { defaultAbiCoder: t7 } = await __vitePreload(async () => {
15515
- const { defaultAbiCoder: t8 } = await import("./index-ClPYLG7G.js");
15520
+ const { id: e4 } = await __vitePreload(() => import("./index-BXoUMG4U.js"), true ? __vite__mapDeps([4,5,6,7,1,2,3]) : void 0), { defaultAbiCoder: t7 } = await __vitePreload(async () => {
15521
+ const { defaultAbiCoder: t8 } = await import("./index-NKFZZPPE.js");
15516
15522
  return { defaultAbiCoder: t8 };
15517
15523
  }, true ? __vite__mapDeps([8,7,9,6,1,2,3]) : void 0), { hexConcat: a6 } = await __vitePreload(async () => {
15518
15524
  const { hexConcat: a7 } = await Promise.resolve().then(() => index$1);
@@ -15558,7 +15564,7 @@ const t$7 = async ({ params: t6, signer: o5, account: n4 }) => {
15558
15564
  const i3 = t6[0], d2 = t6[1];
15559
15565
  if (!d2 || !i3) throw new A$1(E$2.INVALID_PARAMS, "personal_sign requires an address and a message");
15560
15566
  if (d2.toLowerCase() !== n4.address.toLowerCase()) throw new A$1(E$2.INVALID_PARAMS, "personal_sign requires the signer to be the from address");
15561
- const { hashMessage: p5 } = await __vitePreload(() => import("./index-CXJHxToF.js"), true ? __vite__mapDeps([4,5,6,7,1,2,3]) : void 0);
15567
+ const { hashMessage: p5 } = await __vitePreload(() => import("./index-BXoUMG4U.js"), true ? __vite__mapDeps([4,5,6,7,1,2,3]) : void 0);
15562
15568
  return await t$8({ hash: p5(n$a(i3)), implementationType: n4.implementationType || n4.type, chainId: Number(n4.chainId), signer: o5, address: d2, salt: n4.salt, factoryAddress: n4.factoryAddress, ownerAddress: n4.ownerAddress });
15563
15569
  };
15564
15570
  function a$6(t6) {
@@ -17048,7 +17054,7 @@ const r$5 = ["types", "domain", "primaryType", "message"], n$5 = (a5, n4) => {
17048
17054
  if (!c3 || !h2) throw new A$1(E$2.INVALID_PARAMS, `${s5} requires an address and a typed data JSON`);
17049
17055
  const { chainId: m2 } = await o5.detectNetwork(), I3 = n$5(h2, m2), y3 = { ...I3.types };
17050
17056
  delete y3.EIP712Domain;
17051
- const { _TypedDataEncoder: A3 } = await __vitePreload(() => import("./index-CXJHxToF.js"), true ? __vite__mapDeps([4,5,6,7,1,2,3]) : void 0), w2 = A3.hash(I3.domain, y3, I3.message);
17057
+ const { _TypedDataEncoder: A3 } = await __vitePreload(() => import("./index-BXoUMG4U.js"), true ? __vite__mapDeps([4,5,6,7,1,2,3]) : void 0), w2 = A3.hash(I3.domain, y3, I3.message);
17052
17058
  return await t$8({ hash: w2, implementationType: i3, chainId: m2, signer: d2, address: c3, ownerAddress: p5.ownerAddress, factoryAddress: p5.factoryAddress, salt: p5.salt });
17053
17059
  };
17054
17060
  var C$2;
@@ -17083,7 +17089,7 @@ let E$1 = (_f = class {
17083
17089
  async getRpcProvider() {
17084
17090
  if (!__privateGet(this, _o)) {
17085
17091
  const e4 = await s$9.fromStorage(__privateGet(this, _t)), s5 = (e4 == null ? void 0 : e4.chainId) || (__privateGet(this, _s) ? Number(Object.keys(__privateGet(this, _s))[0]) : void 0) || 8453;
17086
- await __vitePreload(() => import("./index-DhaZfSXv.js"), true ? __vite__mapDeps([10,7,5,6,11,9,1,2,3]) : void 0).then((t6) => {
17092
+ await __vitePreload(() => import("./index-Boiz7eM2.js"), true ? __vite__mapDeps([10,7,5,6,11,9,1,2,3]) : void 0).then((t6) => {
17087
17093
  const e5 = __privateGet(this, _s) ? __privateGet(this, _s)[s5] : void 0;
17088
17094
  __privateSet(this, _o, new t6.StaticJsonRpcProvider(e5 ?? t$a[s5]));
17089
17095
  });
@@ -17127,7 +17133,7 @@ let E$1 = (_f = class {
17127
17133
  const o5 = await this.getRpcProvider(), { chainId: n4 } = await o5.detectNetwork(), [h2] = s5.params || [];
17128
17134
  h2.chainId || (h2.chainId = n4.toString());
17129
17135
  const c3 = s$8(h2), { serialize: p5 } = await __vitePreload(async () => {
17130
- const { serialize: p6 } = await import("./index-MU9KXKKX.js").then((n5) => n5.i);
17136
+ const { serialize: p6 } = await import("./index-BAWUHBts.js").then((n5) => n5.i);
17131
17137
  return { serialize: p6 };
17132
17138
  }, true ? __vite__mapDeps([11,7,9]) : void 0), w2 = (t6) => ({ legacy: 0, eip2930: 1, eip1559: 2 })[t6], { gas: u4, ...l3 } = c3, g2 = { ...l3, gasLimit: u4, to: c3.to ?? void 0, type: w2(c3.type) }, f3 = p5(g2), { keccak256: S2 } = await __vitePreload(async () => {
17133
17139
  const { keccak256: S3 } = await Promise.resolve().then(() => index);
@@ -17184,7 +17190,7 @@ let E$1 = (_f = class {
17184
17190
  await __privateGet(this, _i).call(this);
17185
17191
  try {
17186
17192
  const e4 = parseInt(s5.params[0].chainId, 16);
17187
- await t6.switchChain({ chainId: e4 }), await __vitePreload(() => import("./index-DhaZfSXv.js"), true ? __vite__mapDeps([10,7,5,6,11,9,1,2,3]) : void 0).then((t7) => {
17193
+ await t6.switchChain({ chainId: e4 }), await __vitePreload(() => import("./index-Boiz7eM2.js"), true ? __vite__mapDeps([10,7,5,6,11,9,1,2,3]) : void 0).then((t7) => {
17188
17194
  const s6 = __privateGet(this, _s) ? __privateGet(this, _s)[e4] : void 0;
17189
17195
  __privateSet(this, _o, new t7.StaticJsonRpcProvider(s6 ?? t$a[e4]));
17190
17196
  }), __privateGet(this, _r).emit(C$2.CHAIN_CHANGED, r$b(e4));
@@ -18055,7 +18061,7 @@ class k {
18055
18061
  if (!i3) throw new s$b(E$4.MISSING_SIGNER, "No account found");
18056
18062
  const n4 = { ...r7 };
18057
18063
  delete n4.EIP712Domain;
18058
- const { _TypedDataEncoder: d2 } = await __vitePreload(() => import("./index-CXJHxToF.js"), true ? __vite__mapDeps([4,5,6,7,1,2,3]) : void 0), h2 = d2.hash(e4, n4, t6);
18064
+ const { _TypedDataEncoder: d2 } = await __vitePreload(() => import("./index-BXoUMG4U.js"), true ? __vite__mapDeps([4,5,6,7,1,2,3]) : void 0), h2 = d2.hash(e4, n4, t6);
18059
18065
  return await t$8({ hash: h2, implementationType: i3.implementationType || i3.type, chainId: Number(i3.chainId), signer: s5, address: i3.address, ownerAddress: i3.ownerAddress, factoryAddress: i3.factoryAddress, salt: i3.salt });
18060
18066
  }
18061
18067
  async exportPrivateKey() {
@@ -18710,7 +18716,7 @@ function createOpenfortProvider(settings) {
18710
18716
  }
18711
18717
  const isPopup = oauthMech.usePopup !== false;
18712
18718
  const baseUrl = settings.walletHost || window.location.origin;
18713
- const currentState = get_store_value(store);
18719
+ const currentState = get(store);
18714
18720
  if (isPopup && currentState.step !== "ConfirmOAuth") {
18715
18721
  store.set({ step: "ConfirmOAuth", mechanism: mechanism2 });
18716
18722
  } else {
@@ -18758,7 +18764,7 @@ function createOpenfortProvider(settings) {
18758
18764
  if (!openfortInstance) {
18759
18765
  throw new Error("Openfort not initialized");
18760
18766
  }
18761
- const currentState = get_store_value(store);
18767
+ const currentState = get(store);
18762
18768
  if (currentState.step !== "WaitingForOTP") {
18763
18769
  throw new Error("Not in WaitingForOTP state");
18764
18770
  }
@@ -20580,16 +20586,16 @@ if (errors.length == 0 && windowOrigin && requestID && mechanism && accountType
20580
20586
  errors.push({ message: `no origin provided`, canClose: true });
20581
20587
  }
20582
20588
  }
20583
- var root_1$1 = /* @__PURE__ */ template(`<h1 class="svelte-1sfrr42">Please wait...</h1>`);
20589
+ var root_1$1 = /* @__PURE__ */ template(`<h1 class="svelte-dgdqwh">Please wait...</h1>`);
20584
20590
  var on_click = (_2, pickAccount, i3) => pickAccount(i3);
20585
- var root_4$1 = /* @__PURE__ */ template(`<button class="svelte-1sfrr42"> </button>`);
20586
- var root_3 = /* @__PURE__ */ template(`<h1 class="svelte-1sfrr42">Pick an Account</h1> <div class="container svelte-1sfrr42"></div>`, 1);
20587
- var root_6 = /* @__PURE__ */ template(`<p class="svelte-1sfrr42">Please wait...</p> <hr class="svelte-1sfrr42">`, 1);
20588
- var root_11$1 = /* @__PURE__ */ template(`<p class="svelte-1sfrr42">You are logged in!</p> <button id="continue-submit" type="submit" class="svelte-1sfrr42">continue</button>`, 1);
20589
- var root_13 = /* @__PURE__ */ template(`<p class="svelte-1sfrr42">Please wait...</p>`);
20591
+ var root_4$1 = /* @__PURE__ */ template(`<button class="svelte-dgdqwh"> </button>`);
20592
+ var root_3 = /* @__PURE__ */ template(`<h1 class="svelte-dgdqwh">Pick an Account</h1> <div class="container svelte-dgdqwh"></div>`, 1);
20593
+ var root_6 = /* @__PURE__ */ template(`<p class="svelte-dgdqwh">Please wait...</p> <hr class="svelte-dgdqwh">`, 1);
20594
+ var root_11$1 = /* @__PURE__ */ template(`<p class="svelte-dgdqwh">You are logged in!</p> <button id="continue-submit" type="submit" class="svelte-dgdqwh">continue</button>`, 1);
20595
+ var root_13 = /* @__PURE__ */ template(`<p class="svelte-dgdqwh">Please wait...</p>`);
20590
20596
  var on_click_1 = (__1, $$props) => $$props.cancel();
20591
- var root_14 = /* @__PURE__ */ template(`<p class="svelte-1sfrr42">Could not log you in, due to redirection failure</p> <button class="svelte-1sfrr42">Return</button>`, 1);
20592
- var root$1 = /* @__PURE__ */ template(`<main class="svelte-1sfrr42"><div class="logo svelte-1sfrr42"><svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-venetian-mask"><path d="M18 11c-1.5 0-2.5.5-3 2"></path><path d="M4 6a2 2 0 0 0-2 2v4a5 5 0 0 0 5 5 8 8 0 0 1 5 2 8 8 0 0 1 5-2 5 5 0 0 0 5-5V8a2 2 0 0 0-2-2h-3a8 8 0 0 0-5 2 8 8 0 0 0-5-2z"></path><path d="M6 11c1.5 0 2.5.5 3 2"></path></svg></div> <div><!></div> <div></div></main>`);
20597
+ var root_14 = /* @__PURE__ */ template(`<p class="svelte-dgdqwh">Could not log you in, due to redirection failure</p> <button class="svelte-dgdqwh">Return</button>`, 1);
20598
+ var root$1 = /* @__PURE__ */ template(`<main class="svelte-dgdqwh"><div class="logo svelte-dgdqwh"><svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-venetian-mask"><path d="M18 11c-1.5 0-2.5.5-3 2"></path><path d="M4 6a2 2 0 0 0-2 2v4a5 5 0 0 0 5 5 8 8 0 0 1 5 2 8 8 0 0 1 5-2 5 5 0 0 0 5-5V8a2 2 0 0 0-2-2h-3a8 8 0 0 0-5 2 8 8 0 0 0-5-2z"></path><path d="M6 11c1.5 0 2.5.5 3 2"></path></svg></div> <div><!></div> <div></div></main>`);
20593
20599
  function Mnemonic($$anchor, $$props) {
20594
20600
  push($$props, true);
20595
20601
  const [$$stores, $$cleanup] = setup_stores();
@@ -20771,7 +20777,7 @@ function Login($$anchor, $$props) {
20771
20777
  let outcomes = state(proxy([]));
20772
20778
  let pending = state(proxy([]));
20773
20779
  async function initialiseApproval(approval) {
20774
- if (get$1(approvalInitialised)) {
20780
+ if (get$2(approvalInitialised)) {
20775
20781
  return;
20776
20782
  }
20777
20783
  set(approvalInitialised, true);
@@ -20801,7 +20807,7 @@ function Login($$anchor, $$props) {
20801
20807
  true
20802
20808
  );
20803
20809
  if (from().source) {
20804
- _cancel(get$1(refusal));
20810
+ _cancel(get$2(refusal));
20805
20811
  }
20806
20812
  return;
20807
20813
  }
@@ -20820,11 +20826,11 @@ function Login($$anchor, $$props) {
20820
20826
  set(pending, toAsk, true);
20821
20827
  }
20822
20828
  function answer(request, outcome) {
20823
- set(outcomes, [...get$1(outcomes), outcome], true);
20824
- const index2 = get$1(pending).indexOf(request);
20825
- set(pending, index2 === -1 ? get$1(pending).slice(1) : [
20826
- ...get$1(pending).slice(0, index2),
20827
- ...get$1(pending).slice(index2 + 1)
20829
+ set(outcomes, [...get$2(outcomes), outcome], true);
20830
+ const index2 = get$2(pending).indexOf(request);
20831
+ set(pending, index2 === -1 ? get$2(pending).slice(1) : [
20832
+ ...get$2(pending).slice(0, index2),
20833
+ ...get$2(pending).slice(index2 + 1)
20828
20834
  ], true);
20829
20835
  deliverIfApproved();
20830
20836
  }
@@ -20839,10 +20845,10 @@ function Login($$anchor, $$props) {
20839
20845
  answer(request, { request, granted: false, reason: "denied" });
20840
20846
  }
20841
20847
  function grantAccess() {
20842
- if (!get$1(access)) {
20848
+ if (!get$2(access)) {
20843
20849
  return;
20844
20850
  }
20845
- const next = confirmAccess(get$1(access), get$1(confirmationsGiven));
20851
+ const next = confirmAccess(get$2(access), get$2(confirmationsGiven));
20846
20852
  set(confirmationsGiven, next.confirmationsGiven, true);
20847
20853
  if (!next.accessGranted) {
20848
20854
  return;
@@ -20850,18 +20856,18 @@ function Login($$anchor, $$props) {
20850
20856
  set(accessGranted, true);
20851
20857
  deliverIfApproved();
20852
20858
  }
20853
- const blocking = user_derived(() => deniedRequiredPermissions(get$1(outcomes)));
20854
- const approvalComplete = user_derived(() => get$1(accessGranted) && get$1(pending).length === 0 && get$1(blocking).length === 0);
20859
+ const blocking = user_derived(() => deniedRequiredPermissions(get$2(outcomes)));
20860
+ const approvalComplete = user_derived(() => get$2(accessGranted) && get$2(pending).length === 0 && get$2(blocking).length === 0);
20855
20861
  const approvalUI = user_derived(() => ({
20856
20862
  request: $authProvider().step === "SignedIn" ? $authProvider().requireOriginApproval : false,
20857
- access: get$1(access),
20858
- accessGranted: get$1(accessGranted),
20859
- confirmationsRequired: get$1(confirmationsRequired$1),
20860
- confirmationsGiven: get$1(confirmationsGiven),
20861
- pending: get$1(pending),
20862
- outcomes: get$1(outcomes),
20863
- blocking: get$1(blocking),
20864
- complete: get$1(approvalComplete),
20863
+ access: get$2(access),
20864
+ accessGranted: get$2(accessGranted),
20865
+ confirmationsRequired: get$2(confirmationsRequired$1),
20866
+ confirmationsGiven: get$2(confirmationsGiven),
20867
+ pending: get$2(pending),
20868
+ outcomes: get$2(outcomes),
20869
+ blocking: get$2(blocking),
20870
+ complete: get$2(approvalComplete),
20865
20871
  grantAccess,
20866
20872
  grant: grantPermission,
20867
20873
  deny: denyPermission
@@ -20913,15 +20919,15 @@ function Login($$anchor, $$props) {
20913
20919
  if ($authProvider().step !== "SignedIn") {
20914
20920
  return;
20915
20921
  }
20916
- if (get$1(blocking).length > 0) {
20922
+ if (get$2(blocking).length > 0) {
20917
20923
  _cancel({
20918
20924
  message: "a required permission was denied",
20919
20925
  type: "permission-denied",
20920
- permissions: snapshot(get$1(outcomes))
20926
+ permissions: snapshot(get$2(outcomes))
20921
20927
  });
20922
20928
  return;
20923
20929
  }
20924
- if (!get$1(approvalComplete)) {
20930
+ if (!get$2(approvalComplete)) {
20925
20931
  return;
20926
20932
  }
20927
20933
  const openerAlive = !!(from().source && !from().source.closed);
@@ -20937,8 +20943,8 @@ function Login($$anchor, $$props) {
20937
20943
  async function buildResult(account) {
20938
20944
  const asked = $authProvider().step === "SignedIn" && $authProvider().requireOriginApproval;
20939
20945
  return deriveOriginAccount(from().signingOrigin, account, $$props.accountGenerator, {
20940
- delegations: delegationsToSign(get$1(outcomes)),
20941
- permissions: asked ? snapshot(get$1(outcomes)) : void 0
20946
+ delegations: delegationsToSign(get$2(outcomes)),
20947
+ permissions: asked ? snapshot(get$2(outcomes)) : void 0
20942
20948
  });
20943
20949
  }
20944
20950
  onMount(() => {
@@ -20974,7 +20980,7 @@ function Login($$anchor, $$props) {
20974
20980
  if ($authProvider().step !== "SignedIn") {
20975
20981
  throw new Error(`not signed in`);
20976
20982
  }
20977
- if (!get$1(approvalComplete)) {
20983
+ if (!get$2(approvalComplete)) {
20978
20984
  throw new Error(`not approved`);
20979
20985
  }
20980
20986
  await postResultIfNotAlreadyPosted();
@@ -20990,7 +20996,7 @@ function Login($$anchor, $$props) {
20990
20996
  if (!from().source) {
20991
20997
  throw new Error(`no source`);
20992
20998
  }
20993
- if (!get$1(approvalComplete)) {
20999
+ if (!get$2(approvalComplete)) {
20994
21000
  throw new Error(`not approved`);
20995
21001
  }
20996
21002
  if (!resultPosted) {
@@ -21026,7 +21032,7 @@ function Login($$anchor, $$props) {
21026
21032
  return;
21027
21033
  }
21028
21034
  outcomeDelivered = true;
21029
- const toReport = error || get$1(refusal) || { message: "canceled", type: "cancelation" };
21035
+ const toReport = error || get$2(refusal) || { message: "canceled", type: "cancelation" };
21030
21036
  if (debug) {
21031
21037
  console.log("postMessage", { error: toReport, id: from().requestID }, from().windowOrigin);
21032
21038
  }
@@ -21071,13 +21077,13 @@ function Login($$anchor, $$props) {
21071
21077
  return $$props.authProvider;
21072
21078
  },
21073
21079
  get approval() {
21074
- return get$1(approvalUI);
21080
+ return get$2(approvalUI);
21075
21081
  },
21076
21082
  get goingToRedirect() {
21077
- return get$1(expression);
21083
+ return get$2(expression);
21078
21084
  },
21079
21085
  get continueAfterLogin() {
21080
- return get$1(expression_1);
21086
+ return get$2(expression_1);
21081
21087
  },
21082
21088
  cancel
21083
21089
  });
@@ -21092,13 +21098,13 @@ function Login($$anchor, $$props) {
21092
21098
  return $$props.authProvider;
21093
21099
  },
21094
21100
  get approval() {
21095
- return get$1(approvalUI);
21101
+ return get$2(approvalUI);
21096
21102
  },
21097
21103
  get goingToRedirect() {
21098
- return get$1(expression_2);
21104
+ return get$2(expression_2);
21099
21105
  },
21100
21106
  get continueAfterLogin() {
21101
- return get$1(expression_3);
21107
+ return get$2(expression_3);
21102
21108
  },
21103
21109
  cancel
21104
21110
  });
@@ -21113,13 +21119,13 @@ function Login($$anchor, $$props) {
21113
21119
  return $$props.authProvider;
21114
21120
  },
21115
21121
  get approval() {
21116
- return get$1(approvalUI);
21122
+ return get$2(approvalUI);
21117
21123
  },
21118
21124
  get goingToRedirect() {
21119
- return get$1(expression_4);
21125
+ return get$2(expression_4);
21120
21126
  },
21121
21127
  get continueAfterLogin() {
21122
- return get$1(expression_5);
21128
+ return get$2(expression_5);
21123
21129
  },
21124
21130
  cancel
21125
21131
  });
@@ -21246,4 +21252,4 @@ export {
21246
21252
  process$1 as p,
21247
21253
  splitSignature as s
21248
21254
  };
21249
- //# sourceMappingURL=App-DKwr3SmI.js.map
21255
+ //# sourceMappingURL=App-DDcApMye.js.map