@vbotma/sdk 3.3.7 → 3.3.8

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/index.js CHANGED
@@ -2,15 +2,15 @@ var ct = Object.defineProperty;
2
2
  var pt = (n, e, s) => e in n ? ct(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s;
3
3
  var t = (n, e, s) => pt(n, typeof e != "symbol" ? e + "" : e, s);
4
4
  import { batch as ue, signal as O, computed as S } from "@vbotma/signals";
5
- import { supports as te, isVBmaFp as ut, postEventFp as ye, off as ne, on as j, request2Fp as Ge, requestFp as lt, invokeCustomMethodFp as dt, retrieveLaunchParamsFp as le, retrieveRawInitDataFp as ht, captureSameReq as _t, getHostBridge as d, logger as He } from "@vbotma/bridge";
6
- import { CancelledError as Mi, InvalidLaunchParamsError as Ri, InvokeCustomMethodFailedError as Vi, LaunchParamsRetrieveError as Ti, MethodParameterUnsupportedError as Li, MethodUnsupportedError as $i, TimeoutError as Pi, UnknownEnvError as Hi, applyPolyfills as Oi, createLogger as Di, createPostEvent as ji, createStartParam as Gi, createStartParamFp as Wi, debug as Ui, decodeBase64Url as Qi, decodeBase64UrlFp as Ki, decodeStartParam as zi, decodeStartParamFp as Ni, deepSnakeToCamelObjKeys as Ji, defineHostBridge as Yi, defineWebComponentBridge as Zi, emitEvent as Xi, encodeBase64Url as eo, getHostBridge as to, getReleaseVersion as so, isSafeToCreateStartParam as ro, isVBma as no, isVBmaFp as io, logger as oo, mockVBotEnv as ao, off as co, offAll as po, on as uo, retrieveLaunchParams as lo, retrieveLaunchParamsFp as ho, retrieveRawInitData as _o, retrieveRawInitDataFp as bo, retrieveRawLaunchParams as fo, retrieveRawLaunchParamsFp as go, setDebug as mo, setLaunchParams as wo, setTargetOrigin as Fo, supports as So, targetOrigin as Co } from "@vbotma/bridge";
7
- import { throwifyFpFn as he, throwifyAnyEither as We, setStorageValue as bt, getStorageValue as ft, snakeToKebab as gt, createCbCollector as qe, camelToKebab as Ue, BetterTaskEither as we } from "@vbotma/toolkit";
5
+ import { supports as te, isVBmaFp as ut, postEventFp as ye, off as ne, on as j, request2Fp as Ge, requestFp as lt, invokeCustomMethodFp as dt, retrieveLaunchParamsFp as le, retrieveRawInitDataFp as ht, captureSameReq as _t, getHostBridge as d, LATEST_VERSION as bt, logger as He } from "@vbotma/bridge";
6
+ import { CancelledError as Ri, InvalidLaunchParamsError as Ti, InvokeCustomMethodFailedError as Vi, LaunchParamsRetrieveError as Li, MethodParameterUnsupportedError as $i, MethodUnsupportedError as Pi, TimeoutError as Hi, UnknownEnvError as Oi, applyPolyfills as Di, createLogger as ji, createPostEvent as Gi, createStartParam as Wi, createStartParamFp as Ui, debug as Qi, decodeBase64Url as Ki, decodeBase64UrlFp as Ni, decodeStartParam as zi, decodeStartParamFp as Ji, deepSnakeToCamelObjKeys as Yi, defineHostBridge as Zi, defineWebComponentBridge as Xi, emitEvent as eo, encodeBase64Url as to, getHostBridge as so, getReleaseVersion as ro, isSafeToCreateStartParam as no, isVBma as io, isVBmaFp as oo, logger as ao, mockVBotEnv as co, off as po, offAll as uo, on as lo, retrieveLaunchParams as ho, retrieveLaunchParamsFp as _o, retrieveRawInitData as bo, retrieveRawInitDataFp as fo, retrieveRawLaunchParams as go, retrieveRawLaunchParamsFp as mo, setDebug as wo, setLaunchParams as Fo, setTargetOrigin as So, supports as Co, targetOrigin as vo } from "@vbotma/bridge";
7
+ import { throwifyFpFn as he, throwifyAnyEither as We, setStorageValue as ft, getStorageValue as gt, snakeToKebab as mt, createCbCollector as qe, camelToKebab as Ue, BetterTaskEither as we } from "@vbotma/toolkit";
8
8
  import { BetterPromise as Qe } from "better-promises";
9
- import { toRGBFullFp as mt, isRGB as be, pipeQueryToSchema as wt, pipeJsonToSchema as Ft } from "@vbotma/transformers";
10
- import { isAnyRGB as ko, isRGB as yo, isRGBA as qo, isRGBAShort as Io, isRGBShort as Bo, parseInitDataQuery as Eo, parseInitDataQueryFp as Ao, parseLaunchParamsQuery as xo, parseLaunchParamsQueryFp as Mo, serializeInitDataQuery as Ro, serializeLaunchParamsQuery as Vo, toRGB as To, toRGBFp as Lo, toRGBFull as $o, toRGBFullFp as Po } from "@vbotma/transformers";
11
- import { either as m, function as p, option as N, taskEither as u } from "fp-ts";
9
+ import { toRGBFullFp as wt, isRGB as be, pipeQueryToSchema as Ft, pipeJsonToSchema as St } from "@vbotma/transformers";
10
+ import { isAnyRGB as yo, isRGB as qo, isRGBA as Io, isRGBAShort as Eo, isRGBShort as Bo, parseInitDataQuery as Ao, parseInitDataQueryFp as xo, parseLaunchParamsQuery as Mo, parseLaunchParamsQueryFp as Ro, serializeInitDataQuery as To, serializeLaunchParamsQuery as Vo, toRGB as Lo, toRGBFp as $o, toRGBFull as Po, toRGBFullFp as Ho } from "@vbotma/transformers";
11
+ import { either as m, function as p, option as z, taskEither as u } from "fp-ts";
12
12
  import { errorClass as G, errorClassWithData as Ie } from "error-kid";
13
- import { parse as Oe, record as St, string as z, array as Ct, safeParse as Fe, looseObject as De, pipe as Ke, transform as ze, date as Ne, optional as vt, number as Je, integer as kt } from "valibot";
13
+ import { parse as Oe, record as Ct, string as N, array as vt, safeParse as Fe, looseObject as De, pipe as Ke, transform as Ne, date as ze, optional as kt, number as Je, integer as yt } from "valibot";
14
14
  function P(n) {
15
15
  return typeof n == "function" ? n() : n;
16
16
  }
@@ -104,7 +104,7 @@ function h(n) {
104
104
  ifAvailable(...e) {
105
105
  return p.pipe(
106
106
  n.ifAvailable(...e),
107
- N.match(
107
+ z.match(
108
108
  () => ({ ok: !1 }),
109
109
  (s) => ({
110
110
  ok: !0,
@@ -124,21 +124,21 @@ class pe extends (/* @__PURE__ */ Ie(
124
124
  "Validation error"
125
125
  )) {
126
126
  }
127
- class Be extends (/* @__PURE__ */ G(
127
+ class Ee extends (/* @__PURE__ */ G(
128
128
  "CSSVarsBoundError",
129
129
  "CSS variables are already bound"
130
130
  )) {
131
131
  }
132
- class yt extends (/* @__PURE__ */ Ie("DeviceStorageMethodError", (e) => ({ error: e }), (e) => [e])) {
132
+ class qt extends (/* @__PURE__ */ Ie("DeviceStorageMethodError", (e) => ({ error: e }), (e) => [e])) {
133
133
  }
134
- class qt extends (/* @__PURE__ */ Ie("SecureStorageMethodError", (e) => ({ error: e }), (e) => [e])) {
134
+ class It extends (/* @__PURE__ */ Ie("SecureStorageMethodError", (e) => ({ error: e }), (e) => [e])) {
135
135
  }
136
- class It extends (/* @__PURE__ */ G(
136
+ class Et extends (/* @__PURE__ */ G(
137
137
  "NotAvailableError",
138
138
  ee
139
139
  )) {
140
140
  }
141
- class _n extends (/* @__PURE__ */ G(
141
+ class bn extends (/* @__PURE__ */ G(
142
142
  "InvalidEnvError",
143
143
  ee
144
144
  )) {
@@ -153,12 +153,12 @@ class Q extends (/* @__PURE__ */ G(
153
153
  (e, s) => [e, { cause: s }]
154
154
  )) {
155
155
  }
156
- class Ee extends (/* @__PURE__ */ G(
156
+ class Be extends (/* @__PURE__ */ G(
157
157
  "ConcurrentCallError",
158
158
  ee
159
159
  )) {
160
160
  }
161
- class Et extends (/* @__PURE__ */ G(
161
+ class At extends (/* @__PURE__ */ G(
162
162
  "SetEmojiStatusError",
163
163
  (e) => [`Failed to set emoji status: ${e}`]
164
164
  )) {
@@ -168,17 +168,17 @@ class Ye extends (/* @__PURE__ */ G(
168
168
  ee
169
169
  )) {
170
170
  }
171
- class At extends (/* @__PURE__ */ G(
171
+ class xt extends (/* @__PURE__ */ G(
172
172
  "FullscreenFailedError",
173
173
  ee
174
174
  )) {
175
175
  }
176
- class xt extends (/* @__PURE__ */ G(
176
+ class Mt extends (/* @__PURE__ */ G(
177
177
  "ShareMessageError",
178
178
  ee
179
179
  )) {
180
180
  }
181
- class Mt extends (/* @__PURE__ */ G(
181
+ class Rt extends (/* @__PURE__ */ G(
182
182
  "UnknownThemeParamsKeyError",
183
183
  (e) => [`Unknown theme params key passed: ${e}`]
184
184
  )) {
@@ -194,9 +194,9 @@ function A(n, e) {
194
194
  return;
195
195
  const [g, w] = "every" in c ? ["every", c.every] : ["some", c.some];
196
196
  for (let _ = 0; _ < w.length; _++) {
197
- const x = w[_], T = typeof x == "function" ? x() : te(x, s()) ? void 0 : `it is unsupported in Mini Apps version ${s()}`;
198
- if (T && (g === "every" || _ === w.length - 1))
199
- return T;
197
+ const x = w[_], V = typeof x == "function" ? x() : te(x, s()) ? void 0 : `it is unsupported in Mini Apps version ${s()}`;
198
+ if (V && (g === "every" || _ === w.length - 1))
199
+ return V;
200
200
  }
201
201
  }, f = (...g) => {
202
202
  for (const w in e.supports)
@@ -210,7 +210,7 @@ function A(n, e) {
210
210
  }, I = (...g) => o === "plain" ? m.tryCatch(() => n(...g), (w) => w) : o === "promise" ? u.tryCatch(() => n(...g), (w) => w) : n(...g);
211
211
  return Object.assign(
212
212
  (...g) => {
213
- var T;
213
+ var V;
214
214
  const w = "Unable to call function:";
215
215
  if (!r())
216
216
  return q(`${w} it can't be called outside Mini Apps`);
@@ -223,7 +223,7 @@ function A(n, e) {
223
223
  if (x)
224
224
  return q(`${w} ${x}`);
225
225
  if (!k()) {
226
- const R = (T = e.isMounting) != null && T.call(e) ? "mounting. Wait for the mount completion" : "unmounted. Use the mount() method";
226
+ const R = (V = e.isMounting) != null && V.call(e) ? "mounting. Wait for the mount completion" : "unmounted. Use the mount() method";
227
227
  return q(`${w} the component is ${R}`);
228
228
  }
229
229
  return I(...g);
@@ -232,14 +232,14 @@ function A(n, e) {
232
232
  {
233
233
  isAvailable: C,
234
234
  ifAvailable(...g) {
235
- return C() ? N.some(I(...g)) : N.none;
235
+ return C() ? z.some(I(...g)) : z.none;
236
236
  }
237
237
  },
238
238
  c ? { isSupported: F } : {},
239
239
  e.supports ? { supports: a } : {}
240
240
  );
241
241
  }
242
- function B(n) {
242
+ function E(n) {
243
243
  return (e) => A(e, n);
244
244
  }
245
245
  class _e {
@@ -344,10 +344,10 @@ class _e {
344
344
  isPageReload: c,
345
345
  onMounted: b.setState,
346
346
  restoreState: s.get
347
- }), C = { version: F, requires: f, isVBma: e }, q = B({
347
+ }), C = { version: F, requires: f, isVBma: e }, q = E({
348
348
  ...C,
349
349
  returns: "plain"
350
- }), I = B({
350
+ }), I = E({
351
351
  ...C,
352
352
  returns: "either",
353
353
  isMounted: k.isMounted
@@ -383,7 +383,7 @@ class _e {
383
383
  return S(() => this.state()[e]);
384
384
  }
385
385
  }
386
- class Rt {
386
+ class Tt {
387
387
  constructor(e) {
388
388
  /**
389
389
  * Signal indicating if the component is currently visible.
@@ -485,28 +485,28 @@ function se(n) {
485
485
  function oe(n, e) {
486
486
  return O(n, e);
487
487
  }
488
- const Ze = /* @__PURE__ */ oe(ye), re = (...n) => Ze()(...n), Vt = (...n) => We(re(...n)), V = se({
488
+ const Ze = /* @__PURE__ */ oe(ye), re = (...n) => Ze()(...n), Vt = (...n) => We(re(...n)), T = se({
489
489
  postEvent: re
490
490
  });
491
- function Tt(n) {
491
+ function Lt(n) {
492
492
  return {
493
- get: () => ft(n),
493
+ get: () => gt(n),
494
494
  set(e) {
495
- bt(n, e);
495
+ ft(n, e);
496
496
  }
497
497
  };
498
498
  }
499
- function Lt() {
499
+ function $t() {
500
500
  return performance.getEntriesByType("navigation")[0];
501
501
  }
502
- function $t() {
503
- const n = Lt();
502
+ function Pt() {
503
+ const n = $t();
504
504
  return !!n && n.type === "reload";
505
505
  }
506
506
  function Z(n) {
507
507
  return se({
508
- storage: Tt(n),
509
- isPageReload: $t
508
+ storage: Lt(n),
509
+ isPageReload: Pt
510
510
  });
511
511
  }
512
512
  const Ce = /* @__PURE__ */ oe("0.0"), y = se({ version: Ce });
@@ -515,7 +515,7 @@ function Ae(n, e) {
515
515
  return {
516
516
  ...p.pipe(
517
517
  v(),
518
- V,
518
+ T,
519
519
  y,
520
520
  Z(n)
521
521
  ),
@@ -527,7 +527,7 @@ function Ae(n, e) {
527
527
  }
528
528
  };
529
529
  }
530
- const bn = /* @__PURE__ */ new Rt(
530
+ const fn = /* @__PURE__ */ new Tt(
531
531
  /* @__PURE__ */ Ae("backButton", "back_button_pressed")
532
532
  );
533
533
  class xe {
@@ -572,13 +572,13 @@ class xe {
572
572
  }
573
573
  }
574
574
  function je() {
575
- return new It("Biometry is not available");
575
+ return new Et("Biometry is not available");
576
576
  }
577
577
  function ge(n) {
578
578
  let e = !1, s = !1, r = "", i = !1, o = "", c = !1;
579
579
  return n.available && (e = !0, s = n.token_saved, r = n.device_id, i = n.access_requested, o = n.type, c = n.access_granted), { available: e, tokenSaved: s, deviceId: r, type: o, accessGranted: c, accessRequested: i };
580
580
  }
581
- class Pt {
581
+ class Ht {
582
582
  constructor({
583
583
  version: e,
584
584
  request: s,
@@ -703,13 +703,13 @@ class Pt {
703
703
  c(f);
704
704
  },
705
705
  restoreState: i.get
706
- }), k = { version: e, requires: "web_app_biometry_request_auth", isVBma: a }, C = B({
706
+ }), k = { version: e, requires: "web_app_biometry_request_auth", isVBma: a }, C = E({
707
707
  ...k,
708
708
  returns: "either"
709
- }), q = B({
709
+ }), q = E({
710
710
  ...k,
711
711
  returns: "task"
712
- }), I = B({
712
+ }), I = E({
713
713
  ...k,
714
714
  isMounted: b.isMounted,
715
715
  returns: "task"
@@ -741,18 +741,18 @@ class Pt {
741
741
  }), this.authenticate = /* @__PURE__ */ h(this.authenticateFp), this.openSettings = /* @__PURE__ */ h(this.openSettingsFp), this.requestAccess = /* @__PURE__ */ h(this.requestAccessFp), this.updateToken = /* @__PURE__ */ h(this.updateTokenFp), this.mount = /* @__PURE__ */ h(this.mountFp);
742
742
  }
743
743
  }
744
- const Ht = (n, e, s) => lt(n, e, {
744
+ const Ot = (n, e, s) => lt(n, e, {
745
745
  postEvent: re,
746
746
  ...s
747
747
  }), Xe = (n, e, s) => Ge(n, e, {
748
748
  postEvent: re,
749
749
  ...s
750
- }), fn = (...n) => Qe.fn(() => Ht(...n)()), gn = (...n) => Qe.fn(() => Xe(...n)()), L = se({ request: Xe });
751
- function Ot() {
752
- return new Pt({
750
+ }), gn = (...n) => Qe.fn(() => Ot(...n)()), mn = (...n) => Qe.fn(() => Xe(...n)()), L = se({ request: Xe });
751
+ function Dt() {
752
+ return new Ht({
753
753
  ...p.pipe(
754
754
  v(),
755
- V,
755
+ T,
756
756
  y,
757
757
  L,
758
758
  Z("biometry")
@@ -765,8 +765,8 @@ function Ot() {
765
765
  }
766
766
  });
767
767
  }
768
- const mn = /* @__PURE__ */ Ot();
769
- class Dt {
768
+ const wn = /* @__PURE__ */ Dt();
769
+ class jt {
770
770
  constructor({ postEvent: e, storage: s, isVBma: r, isPageReload: i }) {
771
771
  /**
772
772
  * Signal indicating if closing confirmation dialog is currently enabled.
@@ -814,10 +814,10 @@ class Dt {
814
814
  restoreState: s.get,
815
815
  initialState: { isConfirmationEnabled: !1 },
816
816
  isPageReload: i
817
- }), a = { requires: "web_app_setup_closing_behavior", isVBma: r }, l = B({
817
+ }), a = { requires: "web_app_setup_closing_behavior", isVBma: r }, l = E({
818
818
  ...a,
819
819
  returns: "plain"
820
- }), f = B({
820
+ }), f = E({
821
821
  ...a,
822
822
  returns: "either",
823
823
  isMounted: c.isMounted
@@ -831,15 +831,15 @@ class Dt {
831
831
  }), this.unmount = c.unmount, this.disableConfirmation = /* @__PURE__ */ h(this.disableConfirmationFp), this.enableConfirmation = /* @__PURE__ */ h(this.enableConfirmationFp), this.mount = /* @__PURE__ */ h(this.mountFp);
832
832
  }
833
833
  }
834
- function jt() {
835
- return new Dt(p.pipe(
834
+ function Gt() {
835
+ return new jt(p.pipe(
836
836
  v(),
837
837
  Z("closingBehavior"),
838
- V
838
+ T
839
839
  ));
840
840
  }
841
- const wn = /* @__PURE__ */ jt();
842
- class Gt {
841
+ const Fn = /* @__PURE__ */ Gt();
842
+ class Wt {
843
843
  constructor({ version: e, isVBma: s, invokeCustomMethod: r }) {
844
844
  /**
845
845
  * Signal indicating if the component is supported.
@@ -910,7 +910,7 @@ class Gt {
910
910
  * @see clearFp
911
911
  */
912
912
  t(this, "clear");
913
- const i = B({
913
+ const i = E({
914
914
  version: e,
915
915
  requires: "web_app_invoke_custom_method",
916
916
  isVBma: s,
@@ -931,11 +931,11 @@ class Gt {
931
931
  u.map((a) => ({
932
932
  // Fulfill the response with probably missing keys.
933
933
  ...o.reduce((l, f) => (l[f] = "", l), {}),
934
- ...Oe(St(z(), z()), a)
934
+ ...Oe(Ct(N(), N()), a)
935
935
  }))
936
936
  )), this.getKeysFp = i((o) => p.pipe(
937
937
  r("getStorageKeys", {}, o),
938
- u.map((c) => Oe(Ct(z()), c))
938
+ u.map((c) => Oe(vt(N()), c))
939
939
  )), this.setItemFp = i((o, c, a) => p.pipe(
940
940
  r("saveStorageValue", { key: o, value: c }, a),
941
941
  u.map(() => {
@@ -947,24 +947,24 @@ const me = /* @__PURE__ */ oe(0);
947
947
  function Me() {
948
948
  return me.set(me() + 1), me().toString();
949
949
  }
950
- function Wt(n, e, s) {
950
+ function Ut(n, e, s) {
951
951
  return dt(n, e, Me(), {
952
952
  ...s || {},
953
953
  postEvent: re
954
954
  });
955
955
  }
956
956
  const Re = se({
957
- invokeCustomMethod: Wt
957
+ invokeCustomMethod: Ut
958
958
  });
959
- function Ut() {
960
- return new Gt(p.pipe(
959
+ function Qt() {
960
+ return new Wt(p.pipe(
961
961
  v(),
962
962
  y,
963
963
  Re
964
964
  ));
965
965
  }
966
- const Fn = /* @__PURE__ */ Ut();
967
- class Qt {
966
+ const Sn = /* @__PURE__ */ Qt();
967
+ class Kt {
968
968
  constructor({ isVBma: e, request: s, version: r, createRequestId: i }) {
969
969
  /**
970
970
  * Retrieves an item using its key.
@@ -1002,7 +1002,7 @@ class Qt {
1002
1002
  * @see clearFp
1003
1003
  */
1004
1004
  t(this, "clear");
1005
- const o = B({
1005
+ const o = E({
1006
1006
  version: r,
1007
1007
  requires: "web_app_device_storage_get_key",
1008
1008
  isVBma: e,
@@ -1014,7 +1014,7 @@ class Qt {
1014
1014
  params: { ...f, req_id: F },
1015
1015
  capture: ((b) => "payload" in b ? b.payload.req_id === F : !0)
1016
1016
  }),
1017
- u.chain((b) => b.event === "device_storage_failed" ? u.left(new yt(b.payload.error || "UNKNOWN_ERROR")) : u.right(b.payload))
1017
+ u.chain((b) => b.event === "device_storage_failed" ? u.left(new qt(b.payload.error || "UNKNOWN_ERROR")) : u.right(b.payload))
1018
1018
  );
1019
1019
  };
1020
1020
  this.getItemFp = o((a) => p.pipe(
@@ -1032,15 +1032,15 @@ class Qt {
1032
1032
  }
1033
1033
  }
1034
1034
  const et = se({ createRequestId: Me });
1035
- function Kt() {
1036
- return new Qt(p.pipe(
1035
+ function Nt() {
1036
+ return new Kt(p.pipe(
1037
1037
  v(),
1038
1038
  y,
1039
1039
  L,
1040
1040
  et
1041
1041
  ));
1042
1042
  }
1043
- const Sn = /* @__PURE__ */ Kt();
1043
+ const Cn = /* @__PURE__ */ Nt();
1044
1044
  function zt({ request: n, ...e }) {
1045
1045
  return A((s) => p.pipe(
1046
1046
  n("web_app_request_emoji_status_access", "emoji_status_access_requested", s),
@@ -1048,15 +1048,15 @@ function zt({ request: n, ...e }) {
1048
1048
  ), { ...e, requires: "web_app_request_emoji_status_access", returns: "task" });
1049
1049
  }
1050
1050
  // @__NO_SIDE_EFFECTS__
1051
- function Nt() {
1051
+ function Jt() {
1052
1052
  return zt(p.pipe(
1053
1053
  v(),
1054
1054
  y,
1055
1055
  L
1056
1056
  ));
1057
1057
  }
1058
- const Jt = /* @__PURE__ */ Nt(), Cn = /* @__PURE__ */ h(Jt);
1059
- function Yt({ request: n, ...e }) {
1058
+ const Yt = /* @__PURE__ */ Jt(), vn = /* @__PURE__ */ h(Yt);
1059
+ function Zt({ request: n, ...e }) {
1060
1060
  return A((s, r) => p.pipe(
1061
1061
  n("web_app_set_emoji_status", ["emoji_status_set", "emoji_status_failed"], {
1062
1062
  params: {
@@ -1065,7 +1065,7 @@ function Yt({ request: n, ...e }) {
1065
1065
  },
1066
1066
  ...r
1067
1067
  }),
1068
- u.chainW((i) => i.event === "emoji_status_failed" ? u.left(new Et(i.payload.error)) : u.right(void 0))
1068
+ u.chainW((i) => i.event === "emoji_status_failed" ? u.left(new At(i.payload.error)) : u.right(void 0))
1069
1069
  ), {
1070
1070
  ...e,
1071
1071
  requires: "web_app_set_emoji_status",
@@ -1073,15 +1073,15 @@ function Yt({ request: n, ...e }) {
1073
1073
  });
1074
1074
  }
1075
1075
  // @__NO_SIDE_EFFECTS__
1076
- function Zt() {
1077
- return Yt(p.pipe(
1076
+ function Xt() {
1077
+ return Zt(p.pipe(
1078
1078
  v(),
1079
1079
  L,
1080
1080
  y
1081
1081
  ));
1082
1082
  }
1083
- const Xt = /* @__PURE__ */ Zt(), vn = /* @__PURE__ */ h(Xt);
1084
- class es {
1083
+ const es = /* @__PURE__ */ Xt(), kn = /* @__PURE__ */ h(es);
1084
+ class ts {
1085
1085
  constructor({ postEvent: e, isVBma: s, version: r }) {
1086
1086
  /**
1087
1087
  * Signal indicating if the component is supported.
@@ -1123,7 +1123,7 @@ class es {
1123
1123
  * @see selectionChangedFp
1124
1124
  */
1125
1125
  t(this, "selectionChanged");
1126
- const i = "web_app_trigger_haptic_feedback", o = B({
1126
+ const i = "web_app_trigger_haptic_feedback", o = E({
1127
1127
  requires: i,
1128
1128
  isVBma: s,
1129
1129
  version: r,
@@ -1132,42 +1132,42 @@ class es {
1132
1132
  this.isSupported = W(i, r), this.impactOccurredFp = o((c) => e(i, { type: "impact", impact_style: c })), this.notificationOccurredFp = o((c) => e(i, { type: "notification", notification_type: c })), this.selectionChangedFp = o(() => e(i, { type: "selection_change" })), this.impactOccurred = /* @__PURE__ */ h(this.impactOccurredFp), this.notificationOccurred = /* @__PURE__ */ h(this.notificationOccurredFp), this.selectionChanged = /* @__PURE__ */ h(this.selectionChangedFp);
1133
1133
  }
1134
1134
  }
1135
- function ts() {
1136
- return new es(p.pipe(
1135
+ function ss() {
1136
+ return new ts(p.pipe(
1137
1137
  v(),
1138
- V,
1138
+ T,
1139
1139
  y
1140
1140
  ));
1141
1141
  }
1142
- const kn = /* @__PURE__ */ ts();
1143
- function ss({ postEvent: n, ...e }) {
1142
+ const yn = /* @__PURE__ */ ss();
1143
+ function rs({ postEvent: n, ...e }) {
1144
1144
  return A(() => n("web_app_add_to_home_screen"), { ...e, requires: "web_app_add_to_home_screen", returns: "either" });
1145
1145
  }
1146
1146
  // @__NO_SIDE_EFFECTS__
1147
- function rs() {
1148
- return ss(p.pipe(
1147
+ function ns() {
1148
+ return rs(p.pipe(
1149
1149
  v(),
1150
1150
  y,
1151
- V
1151
+ T
1152
1152
  ));
1153
1153
  }
1154
- const ns = /* @__PURE__ */ rs(), yn = /* @__PURE__ */ h(ns);
1155
- function is({ request: n, ...e }) {
1154
+ const is = /* @__PURE__ */ ns(), qn = /* @__PURE__ */ h(is);
1155
+ function os({ request: n, ...e }) {
1156
1156
  return A((s) => p.pipe(
1157
1157
  n("web_app_check_home_screen", "home_screen_checked", s),
1158
1158
  u.map((r) => r.status || "unknown")
1159
1159
  ), { ...e, requires: "web_app_check_home_screen", returns: "task" });
1160
1160
  }
1161
1161
  // @__NO_SIDE_EFFECTS__
1162
- function os() {
1163
- return is(p.pipe(
1162
+ function as() {
1163
+ return os(p.pipe(
1164
1164
  v(),
1165
1165
  y,
1166
1166
  L
1167
1167
  ));
1168
1168
  }
1169
- const as = /* @__PURE__ */ os(), qn = /* @__PURE__ */ h(as);
1170
- class cs {
1169
+ const cs = /* @__PURE__ */ as(), In = /* @__PURE__ */ h(cs);
1170
+ class ps {
1171
1171
  constructor({ retrieveInitData: e }) {
1172
1172
  t(this, "_state", O());
1173
1173
  t(this, "_raw", O());
@@ -1244,7 +1244,7 @@ class cs {
1244
1244
  t(this, "restore");
1245
1245
  this.restoreFp = () => p.pipe(
1246
1246
  e(),
1247
- m.map(N.match(() => {
1247
+ m.map(z.match(() => {
1248
1248
  }, ({ raw: s, obj: r }) => {
1249
1249
  this._state.set(r), this._raw.set(s);
1250
1250
  }))
@@ -1257,27 +1257,27 @@ class cs {
1257
1257
  });
1258
1258
  }
1259
1259
  }
1260
- function ps() {
1261
- return new cs({
1260
+ function us() {
1261
+ return new ps({
1262
1262
  retrieveInitData() {
1263
1263
  return p.pipe(
1264
1264
  m.Do,
1265
1265
  m.bindW("obj", () => p.pipe(
1266
1266
  le(),
1267
- m.map(({ vbWebAppData: n }) => n ? N.some(n) : N.none)
1267
+ m.map(({ vbWebAppData: n }) => n ? z.some(n) : z.none)
1268
1268
  )),
1269
1269
  m.bindW("raw", ht),
1270
1270
  m.map(({ obj: n, raw: e }) => p.pipe(
1271
- N.Do,
1272
- N.bind("obj", () => n),
1273
- N.bind("raw", () => e)
1271
+ z.Do,
1272
+ z.bind("obj", () => n),
1273
+ z.bind("raw", () => e)
1274
1274
  ))
1275
1275
  );
1276
1276
  }
1277
1277
  });
1278
1278
  }
1279
- const In = /* @__PURE__ */ ps();
1280
- class us {
1279
+ const En = /* @__PURE__ */ us();
1280
+ class ls {
1281
1281
  constructor({ version: e, request: s, isVBma: r }) {
1282
1282
  /**
1283
1283
  * Signal indicating if any invoice is currently opened.
@@ -1313,7 +1313,7 @@ class us {
1313
1313
  * @see openUrlFp
1314
1314
  */
1315
1315
  t(this, "openUrl");
1316
- const i = B({
1316
+ const i = E({
1317
1317
  version: e,
1318
1318
  isVBma: r,
1319
1319
  requires: "web_app_open_invoice",
@@ -1322,7 +1322,7 @@ class us {
1322
1322
  o.set(!1);
1323
1323
  };
1324
1324
  this.isSupported = W("web_app_open_invoice", e), this.isOpened = S(o), this.openSlugFp = i((a, l) => p.pipe(
1325
- this.isOpened() ? u.left(new Ee("Invoice is already opened")) : u.right(void 0),
1325
+ this.isOpened() ? u.left(new Be("Invoice is already opened")) : u.right(void 0),
1326
1326
  u.chain(() => (o.set(!0), s("web_app_open_invoice", "invoice_closed", {
1327
1327
  ...l,
1328
1328
  params: { slug: a },
@@ -1340,11 +1340,11 @@ class us {
1340
1340
  }), this.openUrl = /* @__PURE__ */ h(this.openUrlFp), this.openSlug = /* @__PURE__ */ h(this.openSlugFp);
1341
1341
  }
1342
1342
  }
1343
- function ls() {
1344
- return new us(p.pipe(v(), L, y));
1343
+ function ds() {
1344
+ return new ls(p.pipe(v(), L, y));
1345
1345
  }
1346
- const Bn = /* @__PURE__ */ ls();
1347
- function ds({ postEvent: n, ...e }) {
1346
+ const Bn = /* @__PURE__ */ ds();
1347
+ function hs({ postEvent: n, ...e }) {
1348
1348
  return A((s, r = {}) => {
1349
1349
  if (typeof s == "string")
1350
1350
  try {
@@ -1360,39 +1360,39 @@ function ds({ postEvent: n, ...e }) {
1360
1360
  }, { ...e, returns: "either" });
1361
1361
  }
1362
1362
  // @__NO_SIDE_EFFECTS__
1363
- function hs() {
1364
- return ds(p.pipe(v(), V));
1363
+ function _s() {
1364
+ return hs(p.pipe(v(), T));
1365
1365
  }
1366
- const _s = /* @__PURE__ */ hs(), En = /* @__PURE__ */ h(_s);
1367
- function bs({ postEvent: n, version: e, ...s }) {
1366
+ const bs = /* @__PURE__ */ _s(), An = /* @__PURE__ */ h(bs);
1367
+ function fs({ postEvent: n, version: e, ...s }) {
1368
1368
  return A((r) => {
1369
1369
  const i = r.toString();
1370
1370
  return i.match(/^https:\/\/vbot\.vn\/.+/) ? te("web_app_open_vb_link", P(e)) ? (r = new URL(r), n("web_app_open_vb_link", { path_full: r.pathname + r.search })) : (window.location.href = i, m.right(void 0)) : m.left(new Q(`"${i}" is invalid URL`));
1371
1371
  }, { ...s, returns: "either" });
1372
1372
  }
1373
1373
  // @__NO_SIDE_EFFECTS__
1374
- function fs() {
1375
- return bs(p.pipe(
1374
+ function gs() {
1375
+ return fs(p.pipe(
1376
1376
  v(),
1377
- V,
1377
+ T,
1378
1378
  y
1379
1379
  ));
1380
1380
  }
1381
- const tt = /* @__PURE__ */ fs(), An = /* @__PURE__ */ h(tt);
1382
- function gs({ openVbotLink: n, ...e }) {
1381
+ const tt = /* @__PURE__ */ gs(), xn = /* @__PURE__ */ h(tt);
1382
+ function ms({ openVbotLink: n, ...e }) {
1383
1383
  return A((s, r) => n(
1384
1384
  "https://vbot.vn/share/url?" + new URLSearchParams({ url: s, text: r || "" }).toString().replace(/\+/g, "%20")
1385
1385
  ), { ...e, returns: "either" });
1386
1386
  }
1387
1387
  // @__NO_SIDE_EFFECTS__
1388
- function ms() {
1389
- return gs({
1388
+ function ws() {
1389
+ return ms({
1390
1390
  ...v(),
1391
1391
  openVbotLink: tt
1392
1392
  });
1393
1393
  }
1394
- const ws = /* @__PURE__ */ ms(), xn = /* @__PURE__ */ h(ws);
1395
- function Fs(n) {
1394
+ const Fs = /* @__PURE__ */ ws(), Mn = /* @__PURE__ */ h(Fs);
1395
+ function Ss(n) {
1396
1396
  let e = !1, s, r;
1397
1397
  return n.available && (e = !0, s = n.access_requested, r = n.access_granted), {
1398
1398
  available: e,
@@ -1400,7 +1400,7 @@ function Fs(n) {
1400
1400
  accessRequested: s || !1
1401
1401
  };
1402
1402
  }
1403
- class Ss {
1403
+ class Cs {
1404
1404
  constructor({
1405
1405
  version: e,
1406
1406
  request: s,
@@ -1483,16 +1483,16 @@ class Ss {
1483
1483
  initialState(C) {
1484
1484
  return p.pipe(
1485
1485
  s("web_app_check_location", "location_checked", C),
1486
- u.map(Fs)
1486
+ u.map(Ss)
1487
1487
  );
1488
1488
  }
1489
- }), f = { version: e, requires: "web_app_check_location", isVBma: o }, F = B({
1489
+ }), f = { version: e, requires: "web_app_check_location", isVBma: o }, F = E({
1490
1490
  ...f,
1491
1491
  returns: "either"
1492
- }), b = B({
1492
+ }), b = E({
1493
1493
  ...f,
1494
1494
  returns: "task"
1495
- }), k = B({
1495
+ }), k = E({
1496
1496
  ...f,
1497
1497
  returns: "task",
1498
1498
  isMounted: l.isMounted
@@ -1508,17 +1508,17 @@ class Ss {
1508
1508
  )), this.mount = /* @__PURE__ */ h(this.mountFp), this.openSettings = /* @__PURE__ */ h(this.openSettingsFp), this.requestLocation = /* @__PURE__ */ h(this.requestLocationFp);
1509
1509
  }
1510
1510
  }
1511
- function Cs() {
1512
- return new Ss(p.pipe(
1511
+ function vs() {
1512
+ return new Cs(p.pipe(
1513
1513
  v(),
1514
- V,
1514
+ T,
1515
1515
  y,
1516
1516
  L,
1517
1517
  Z("locationManager")
1518
1518
  ));
1519
1519
  }
1520
- const Mn = /* @__PURE__ */ Cs();
1521
- class vs {
1520
+ const Rn = /* @__PURE__ */ vs();
1521
+ class ks {
1522
1522
  constructor({ defaults: e, ...s }) {
1523
1523
  //#region Properties.
1524
1524
  /**
@@ -1744,15 +1744,15 @@ class vs {
1744
1744
  }
1745
1745
  //#endregion
1746
1746
  }
1747
- function Ve(n, e) {
1747
+ function Te(n, e) {
1748
1748
  document.documentElement.style.setProperty(n, e);
1749
1749
  }
1750
- function Te(n) {
1750
+ function Ve(n) {
1751
1751
  document.documentElement.style.removeProperty(n);
1752
1752
  }
1753
- function ks(n) {
1753
+ function ys(n) {
1754
1754
  return p.pipe(
1755
- mt(n),
1755
+ wt(n),
1756
1756
  m.map((e) => Math.sqrt(
1757
1757
  [0.299, 0.587, 0.114].reduce((s, r, i) => {
1758
1758
  const o = parseInt(e.slice(1 + i * 2, 1 + (i + 1) * 2), 16);
@@ -1761,8 +1761,8 @@ function ks(n) {
1761
1761
  ) < 120)
1762
1762
  );
1763
1763
  }
1764
- const st = he(ks);
1765
- class ys {
1764
+ const st = he(ys);
1765
+ class qs {
1766
1766
  constructor({
1767
1767
  initialState: e,
1768
1768
  onChange: s,
@@ -1886,33 +1886,33 @@ class ys {
1886
1886
  r(l);
1887
1887
  },
1888
1888
  restoreState: o.get
1889
- }), F = { isVBma: i, returns: "either" }, b = B(F), k = B({
1889
+ }), F = { isVBma: i, returns: "either" }, b = E(F), k = E({
1890
1890
  ...F,
1891
1891
  isMounted: f.isMounted
1892
1892
  });
1893
1893
  this.accentTextColor = a.getter("accent_text_color"), this.bgColor = a.getter("bg_color"), this.buttonColor = a.getter("button_color"), this.buttonTextColor = a.getter("button_text_color"), this.bottomBarBgColor = a.getter("bottom_bar_bg_color"), this.destructiveTextColor = a.getter("destructive_text_color"), this.headerBgColor = a.getter("header_bg_color"), this.hintColor = a.getter("hint_color"), this.linkColor = a.getter("link_color"), this.secondaryBgColor = a.getter("secondary_bg_color"), this.sectionBgColor = a.getter("section_bg_color"), this.sectionHeaderTextColor = a.getter("section_header_text_color"), this.sectionSeparatorColor = a.getter("section_separator_color"), this.subtitleTextColor = a.getter("subtitle_text_color"), this.textColor = a.getter("text_color"), this.state = a.state, this.isMounted = f.isMounted, this.bindCssVarsFp = k((C) => {
1894
1894
  if (this._isCssVarsBound())
1895
- return m.left(new Be());
1896
- C || (C = (g) => `--vb-theme-${gt(g)}`);
1895
+ return m.left(new Ee());
1896
+ C || (C = (g) => `--vb-theme-${mt(g)}`);
1897
1897
  const q = (g) => {
1898
1898
  Object.entries(a.state()).forEach(([w, _]) => {
1899
1899
  _ && g(w, _);
1900
1900
  });
1901
1901
  }, I = () => {
1902
1902
  q((g, w) => {
1903
- Ve(C(g), w);
1903
+ Te(C(g), w);
1904
1904
  });
1905
1905
  };
1906
1906
  return I(), a.state.sub(I), this._isCssVarsBound.set(!0), m.right(() => {
1907
- q(Te), a.state.unsub(I), this._isCssVarsBound.set(!1);
1907
+ q(Ve), a.state.unsub(I), this._isCssVarsBound.set(!1);
1908
1908
  });
1909
1909
  }), this.mountFp = b(f.mount), this.unmount = f.unmount, this.bindCssVars = /* @__PURE__ */ h(this.bindCssVarsFp), this.mount = /* @__PURE__ */ h(this.mountFp);
1910
1910
  }
1911
1911
  //#endregion
1912
1912
  }
1913
1913
  const ve = /* @__PURE__ */ oe({});
1914
- function qs() {
1915
- return new ys({
1914
+ function Is() {
1915
+ return new qs({
1916
1916
  ...p.pipe(
1917
1917
  v(),
1918
1918
  Z("themeParams")
@@ -1926,7 +1926,7 @@ function qs() {
1926
1926
  initialState: ve
1927
1927
  });
1928
1928
  }
1929
- const de = /* @__PURE__ */ qs();
1929
+ const de = /* @__PURE__ */ Is();
1930
1930
  // @__NO_SIDE_EFFECTS__
1931
1931
  function rt(n, e, s) {
1932
1932
  return p.pipe(
@@ -1934,13 +1934,13 @@ function rt(n, e, s) {
1934
1934
  (r) => ({ ...r, defaults: s })
1935
1935
  );
1936
1936
  }
1937
- const Rn = /* @__PURE__ */ new vs(
1937
+ const Tn = /* @__PURE__ */ new ks(
1938
1938
  /* @__PURE__ */ rt("mainButton", "main_button_pressed", {
1939
1939
  bgColor: S(() => de.buttonColor() || "#2481cc"),
1940
1940
  textColor: S(() => de.buttonTextColor() || "#ffffff")
1941
1941
  })
1942
1942
  );
1943
- class Is {
1943
+ class Es {
1944
1944
  constructor({
1945
1945
  storage: e,
1946
1946
  isPageReload: s,
@@ -2126,11 +2126,11 @@ class Is {
2126
2126
  [this.headerColor, "web_app_set_header_color"],
2127
2127
  [this.bgColor, "web_app_set_background_color"],
2128
2128
  [this.bottomBarColor, "web_app_set_bottom_bar_color"]
2129
- ].forEach(([x, T]) => {
2129
+ ].forEach(([x, V]) => {
2130
2130
  const R = x();
2131
- if (!be(R) && (T !== "web_app_set_header_color" || !["bg_color", "secondary_bg_color"].includes(R))) {
2131
+ if (!be(R) && (V !== "web_app_set_header_color" || !["bg_color", "secondary_bg_color"].includes(R))) {
2132
2132
  const H = _[R];
2133
- H && i(T, { color: H });
2133
+ H && i(V, { color: H });
2134
2134
  }
2135
2135
  });
2136
2136
  }, b = new ie({
@@ -2175,19 +2175,19 @@ class Is {
2175
2175
  const I = O(!1);
2176
2176
  this.isCssVarsBound = S(I), this.bindCssVarsFp = A((_) => {
2177
2177
  if (I())
2178
- return m.left(new Be());
2179
- const [x, T] = qe(() => {
2178
+ return m.left(new Ee());
2179
+ const [x, V] = qe(() => {
2180
2180
  I.set(!1);
2181
2181
  }), R = (H, $) => {
2182
2182
  const U = () => {
2183
- Ve(H, $() || null);
2183
+ Te(H, $() || null);
2184
2184
  };
2185
- U(), x($.sub(U), Te.bind(null, H));
2185
+ U(), x($.sub(U), Ve.bind(null, H));
2186
2186
  };
2187
- return _ || (_ = (H) => `--tg-${Ue(H)}`), R(_("bgColor"), this.bgColorRgb), R(_("bottomBarColor"), this.bottomBarColorRgb), R(_("headerColor"), this.headerColorRgb), I.set(!0), m.right(T);
2187
+ return _ || (_ = (H) => `--tg-${Ue(H)}`), R(_("bgColor"), this.bgColorRgb), R(_("bottomBarColor"), this.bottomBarColorRgb), R(_("headerColor"), this.headerColorRgb), I.set(!0), m.right(V);
2188
2188
  }, { isVBma: o, returns: "either", isMounted: this.isMounted }), this.bindCssVars = /* @__PURE__ */ h(this.bindCssVarsFp);
2189
2189
  const g = (_) => {
2190
- const x = k.getter(_), T = q(x), R = {
2190
+ const x = k.getter(_), V = q(x), R = {
2191
2191
  headerColor: "web_app_set_header_color",
2192
2192
  bgColor: "web_app_set_background_color",
2193
2193
  bottomBarColor: "web_app_set_bottom_bar_color"
@@ -2204,7 +2204,7 @@ class Is {
2204
2204
  );
2205
2205
  const U = C($);
2206
2206
  return p.pipe(
2207
- U ? i(R, { color: U }) : m.left(new Mt($)),
2207
+ U ? i(R, { color: U }) : m.left(new Rt($)),
2208
2208
  m.map(() => {
2209
2209
  k.setState({ [_]: $ });
2210
2210
  })
@@ -2225,7 +2225,7 @@ class Is {
2225
2225
  } : void 0
2226
2226
  }
2227
2227
  );
2228
- return [x, T, /* @__PURE__ */ h(H), H];
2228
+ return [x, V, /* @__PURE__ */ h(H), H];
2229
2229
  };
2230
2230
  [
2231
2231
  this.bgColor,
@@ -2243,16 +2243,16 @@ class Is {
2243
2243
  this.setBottomBarColor,
2244
2244
  this.setBottomBarColorFp
2245
2245
  ] = g("bottomBarColor");
2246
- const w = B({ isVBma: o, returns: "either" });
2246
+ const w = E({ isVBma: o, returns: "either" });
2247
2247
  this.closeFp = w((_) => i("web_app_close", { return_back: _ })), this.close = /* @__PURE__ */ h(this.closeFp), this.readyFp = w(() => i("web_app_ready")), this.ready = /* @__PURE__ */ h(this.readyFp);
2248
2248
  }
2249
2249
  //#endregion
2250
2250
  }
2251
2251
  function Bs() {
2252
- return new Is({
2252
+ return new Es({
2253
2253
  ...p.pipe(
2254
2254
  v(),
2255
- V,
2255
+ T,
2256
2256
  y,
2257
2257
  Z("miniApp")
2258
2258
  ),
@@ -2265,12 +2265,12 @@ function Bs() {
2265
2265
  theme: de.state
2266
2266
  });
2267
2267
  }
2268
- const Es = /* @__PURE__ */ Bs();
2269
- function As() {
2268
+ const As = /* @__PURE__ */ Bs();
2269
+ function xs() {
2270
2270
  const n = Date.now(), e = Math.random().toString(36).substring(2, 9);
2271
2271
  return `notif_${n}_${e}`;
2272
2272
  }
2273
- class xs {
2273
+ class Ms {
2274
2274
  constructor({ version: e, isVBma: s }) {
2275
2275
  /**
2276
2276
  * Signal indicating if the component is supported.
@@ -2286,7 +2286,7 @@ class xs {
2286
2286
  * @see sendFp
2287
2287
  */
2288
2288
  t(this, "send");
2289
- const r = B({
2289
+ const r = E({
2290
2290
  version: e,
2291
2291
  isVBma: s,
2292
2292
  requires: "web_app_send_notification",
@@ -2294,7 +2294,7 @@ class xs {
2294
2294
  });
2295
2295
  this.isSupported = W("web_app_send_notification", e), this.sendFp = r((i) => p.pipe(
2296
2296
  u.fromEither(ye("web_app_send_notification", {
2297
- id: As(),
2297
+ id: xs(),
2298
2298
  message: i.message,
2299
2299
  title: i.title,
2300
2300
  type: i.type ?? "default"
@@ -2308,11 +2308,11 @@ class xs {
2308
2308
  });
2309
2309
  }
2310
2310
  }
2311
- function Ms() {
2312
- return new xs(y(v()));
2311
+ function Rs() {
2312
+ return new Ms(y(v()));
2313
2313
  }
2314
- const Vn = /* @__PURE__ */ Ms();
2315
- function Rs(n) {
2314
+ const Vn = /* @__PURE__ */ Rs();
2315
+ function Ts(n) {
2316
2316
  const e = n.message.trim(), s = (n.title || "").trim(), r = n.buttons || [];
2317
2317
  if (s.length > 64)
2318
2318
  return m.left(new Q(`Invalid title: ${s}`));
@@ -2380,15 +2380,15 @@ class Vs {
2380
2380
  t(this, "show");
2381
2381
  const i = O(!1), o = () => {
2382
2382
  i.set(!1);
2383
- }, c = B({
2383
+ }, c = E({
2384
2384
  version: e,
2385
2385
  isVBma: s,
2386
2386
  requires: "web_app_open_popup",
2387
2387
  returns: "task"
2388
2388
  });
2389
2389
  this.isSupported = W("web_app_open_popup", e), this.isOpened = S(i), this.showFp = c((a) => p.pipe(
2390
- this.isOpened() ? u.left(new Ee("A popup is already opened")) : u.right(void 0),
2391
- u.chainW(() => u.fromEither(Rs(a))),
2390
+ this.isOpened() ? u.left(new Be("A popup is already opened")) : u.right(void 0),
2391
+ u.chainW(() => u.fromEither(Ts(a))),
2392
2392
  u.chain((l) => (i.set(!0), r("web_app_open_popup", "popup_closed", {
2393
2393
  ...a,
2394
2394
  params: l
@@ -2400,26 +2400,26 @@ class Vs {
2400
2400
  )), this.show = /* @__PURE__ */ h(this.showFp);
2401
2401
  }
2402
2402
  }
2403
- function Ts() {
2403
+ function Ls() {
2404
2404
  return new Vs(p.pipe(v(), L, y));
2405
2405
  }
2406
- const Tn = /* @__PURE__ */ Ts();
2407
- function Ls({ request: n, ...e }) {
2406
+ const Ln = /* @__PURE__ */ Ls();
2407
+ function $s({ request: n, ...e }) {
2408
2408
  return A((s) => p.pipe(
2409
2409
  n("web_app_request_phone", "phone_requested", s),
2410
2410
  u.map((r) => r.status)
2411
2411
  ), { ...e, requires: "web_app_request_phone", returns: "task" });
2412
2412
  }
2413
2413
  // @__NO_SIDE_EFFECTS__
2414
- function $s() {
2415
- return Ls(p.pipe(
2414
+ function Ps() {
2415
+ return $s(p.pipe(
2416
2416
  v(),
2417
2417
  y,
2418
2418
  L
2419
2419
  ));
2420
2420
  }
2421
- const nt = /* @__PURE__ */ $s(), Ln = /* @__PURE__ */ h(nt);
2422
- function Ps({
2421
+ const nt = /* @__PURE__ */ Ps(), $n = /* @__PURE__ */ h(nt);
2422
+ function Hs({
2423
2423
  invokeCustomMethod: n,
2424
2424
  requestPhoneAccess: e,
2425
2425
  ...s
@@ -2430,26 +2430,26 @@ function Ps({
2430
2430
  timeout: (c || {}).timeout || 5e3
2431
2431
  }),
2432
2432
  u.chainW((a) => {
2433
- const l = Fe(z(), a);
2433
+ const l = Fe(N(), a);
2434
2434
  if (!l.success)
2435
2435
  return u.left(new pe(a, l.issues));
2436
2436
  if (!l.output)
2437
2437
  return u.right(void 0);
2438
2438
  const f = Fe(
2439
- wt(
2439
+ Ft(
2440
2440
  De({
2441
- contact: Ft(De({
2441
+ contact: St(De({
2442
2442
  user_id: Je(),
2443
- phone_number: z(),
2444
- first_name: z(),
2445
- last_name: vt(z())
2443
+ phone_number: N(),
2444
+ first_name: N(),
2445
+ last_name: kt(N())
2446
2446
  })),
2447
2447
  auth_date: Ke(
2448
- z(),
2449
- ze((F) => new Date(Number(F) * 1e3)),
2450
- Ne()
2448
+ N(),
2449
+ Ne((F) => new Date(Number(F) * 1e3)),
2450
+ ze()
2451
2451
  ),
2452
- hash: z()
2452
+ hash: N()
2453
2453
  })
2454
2454
  ),
2455
2455
  l.output
@@ -2489,21 +2489,21 @@ function Ps({
2489
2489
  ), c), { ...s, returns: "task", requires: "web_app_request_phone" });
2490
2490
  }
2491
2491
  // @__NO_SIDE_EFFECTS__
2492
- function Hs() {
2493
- return Ps({
2492
+ function Os() {
2493
+ return Hs({
2494
2494
  ...p.pipe(v(), Re, y),
2495
2495
  requestPhoneAccess: nt
2496
2496
  });
2497
2497
  }
2498
- function Os({ requestContact: n, ...e }) {
2498
+ function Ds({ requestContact: n, ...e }) {
2499
2499
  return A(
2500
2500
  n,
2501
2501
  { ...e, returns: "task", requires: "web_app_request_phone" }
2502
2502
  );
2503
2503
  }
2504
2504
  // @__NO_SIDE_EFFECTS__
2505
- function Ds() {
2506
- return Os({
2505
+ function js() {
2506
+ return Ds({
2507
2507
  ...p.pipe(v(), y),
2508
2508
  requestContact(n) {
2509
2509
  return p.pipe(
@@ -2513,23 +2513,23 @@ function Ds() {
2513
2513
  }
2514
2514
  });
2515
2515
  }
2516
- const it = /* @__PURE__ */ Hs(), $n = /* @__PURE__ */ h(it), js = /* @__PURE__ */ Ds(), Pn = /* @__PURE__ */ h(js);
2517
- function Gs({ request: n, ...e }) {
2516
+ const it = /* @__PURE__ */ Os(), Pn = /* @__PURE__ */ h(it), Gs = /* @__PURE__ */ js(), Hn = /* @__PURE__ */ h(Gs);
2517
+ function Ws({ request: n, ...e }) {
2518
2518
  return A((s) => p.pipe(
2519
2519
  n("web_app_request_write_access", "write_access_requested", s),
2520
2520
  u.map((r) => r.status)
2521
2521
  ), { ...e, requires: "web_app_request_write_access", returns: "task" });
2522
2522
  }
2523
2523
  // @__NO_SIDE_EFFECTS__
2524
- function Ws() {
2525
- return Gs(p.pipe(
2524
+ function Us() {
2525
+ return Ws(p.pipe(
2526
2526
  v(),
2527
2527
  y,
2528
2528
  L
2529
2529
  ));
2530
2530
  }
2531
- const Us = /* @__PURE__ */ Ws(), Hn = /* @__PURE__ */ h(Us);
2532
- class Qs {
2531
+ const Qs = /* @__PURE__ */ Us(), On = /* @__PURE__ */ h(Qs);
2532
+ class Ks {
2533
2533
  constructor({
2534
2534
  version: e,
2535
2535
  onClosed: s,
@@ -2616,7 +2616,7 @@ class Qs {
2616
2616
  * @see openFp
2617
2617
  */
2618
2618
  t(this, "open");
2619
- const c = { version: e, requires: "web_app_open_scan_qr_popup", isVBma: i }, a = B({ ...c, returns: "either" }), l = B({ ...c, returns: "task" }), f = O(!1), F = () => {
2619
+ const c = { version: e, requires: "web_app_open_scan_qr_popup", isVBma: i }, a = E({ ...c, returns: "either" }), l = E({ ...c, returns: "task" }), f = O(!1), F = () => {
2620
2620
  f.set(!1);
2621
2621
  };
2622
2622
  this.isSupported = W("web_app_open_scan_qr_popup", e), this.isOpened = S(f), this.captureFp = l((b) => {
@@ -2631,7 +2631,7 @@ class Qs {
2631
2631
  u.map(() => k)
2632
2632
  );
2633
2633
  }), this.closeFp = a(() => p.pipe(o("web_app_close_scan_qr_popup"), m.map(F))), this.openFp = l((b) => p.pipe(
2634
- f() ? u.left(new Ee("The QR Scanner is already opened")) : async () => o("web_app_open_scan_qr_popup", { text: b.text }),
2634
+ f() ? u.left(new Be("The QR Scanner is already opened")) : async () => o("web_app_open_scan_qr_popup", { text: b.text }),
2635
2635
  u.chainW(() => {
2636
2636
  f.set(!0);
2637
2637
  const [k, C] = qe(), q = (I) => (C(), f.set(!1), I);
@@ -2653,9 +2653,9 @@ class Qs {
2653
2653
  )), this.open = /* @__PURE__ */ h(this.openFp), this.capture = /* @__PURE__ */ h(this.captureFp), this.close = /* @__PURE__ */ h(this.closeFp);
2654
2654
  }
2655
2655
  }
2656
- function Ks() {
2657
- return new Qs({
2658
- ...p.pipe(v(), V, y),
2656
+ function Ns() {
2657
+ return new Ks({
2658
+ ...p.pipe(v(), T, y),
2659
2659
  onClosed(n) {
2660
2660
  return j("scan_qr_popup_closed", n);
2661
2661
  },
@@ -2666,7 +2666,7 @@ function Ks() {
2666
2666
  }
2667
2667
  });
2668
2668
  }
2669
- const On = /* @__PURE__ */ Ks();
2669
+ const Dn = /* @__PURE__ */ Ns();
2670
2670
  class zs {
2671
2671
  constructor({}) {
2672
2672
  /**
@@ -2713,11 +2713,11 @@ class zs {
2713
2713
  });
2714
2714
  }
2715
2715
  }
2716
- function Ns() {
2716
+ function Js() {
2717
2717
  return new zs(p.pipe(v()));
2718
2718
  }
2719
- const Dn = /* @__PURE__ */ Ns();
2720
- class Js {
2719
+ const jn = /* @__PURE__ */ Js();
2720
+ class Ys {
2721
2721
  constructor({ defaults: e, ...s }) {
2722
2722
  //#region Properties.
2723
2723
  /**
@@ -2979,16 +2979,16 @@ class Js {
2979
2979
  }
2980
2980
  //#endregion
2981
2981
  }
2982
- function Ys() {
2983
- return new Js(
2982
+ function Zs() {
2983
+ return new Ys(
2984
2984
  /* @__PURE__ */ rt("secondaryButton", "secondary_button_pressed", {
2985
- bgColor: S(() => Es.bottomBarColorRgb() || "#000000"),
2985
+ bgColor: S(() => As.bottomBarColorRgb() || "#000000"),
2986
2986
  textColor: S(() => de.buttonColor() || "#2481cc")
2987
2987
  })
2988
2988
  );
2989
2989
  }
2990
- const jn = /* @__PURE__ */ Ys();
2991
- class Zs {
2990
+ const Gn = /* @__PURE__ */ Zs();
2991
+ class Xs {
2992
2992
  constructor({ isVBma: e, request: s, version: r, createRequestId: i }) {
2993
2993
  /**
2994
2994
  * Retrieves an item using its key.
@@ -3035,7 +3035,7 @@ class Zs {
3035
3035
  * @see clearFp
3036
3036
  */
3037
3037
  t(this, "clear");
3038
- const o = B({
3038
+ const o = E({
3039
3039
  version: r,
3040
3040
  requires: "web_app_secure_storage_get_key",
3041
3041
  isVBma: e,
@@ -3047,7 +3047,7 @@ class Zs {
3047
3047
  params: { ...f, req_id: F },
3048
3048
  capture: ((b) => "payload" in b ? b.payload.req_id === F : !0)
3049
3049
  }),
3050
- u.chain((b) => b.event === "secure_storage_failed" ? u.left(new qt(b.payload.error || "UNKNOWN_ERROR")) : u.right(b.payload))
3050
+ u.chain((b) => b.event === "secure_storage_failed" ? u.left(new It(b.payload.error || "UNKNOWN_ERROR")) : u.right(b.payload))
3051
3051
  );
3052
3052
  };
3053
3053
  this.getItemFp = o((a) => p.pipe(
@@ -3070,16 +3070,16 @@ class Zs {
3070
3070
  )), this.getItem = /* @__PURE__ */ h(this.getItemFp), this.setItem = /* @__PURE__ */ h(this.setItemFp), this.deleteItem = /* @__PURE__ */ h(this.deleteItemFp), this.clear = /* @__PURE__ */ h(this.clearFp), this.restoreItem = /* @__PURE__ */ h(this.restoreItemFp);
3071
3071
  }
3072
3072
  }
3073
- function Xs() {
3074
- return new Zs(p.pipe(
3073
+ function er() {
3074
+ return new Xs(p.pipe(
3075
3075
  v(),
3076
3076
  y,
3077
3077
  L,
3078
3078
  et
3079
3079
  ));
3080
3080
  }
3081
- const Gn = /* @__PURE__ */ Xs();
3082
- class er {
3081
+ const Wn = /* @__PURE__ */ er();
3082
+ class tr {
3083
3083
  constructor(e) {
3084
3084
  /**
3085
3085
  * Signal indicating if the component is currently visible.
@@ -3171,10 +3171,10 @@ class er {
3171
3171
  this.isVisible = s.stateGetter("isVisible"), this.isMounted = s.isMounted, this.isSupported = s.isSupported, [[this.hide, this.hideFp], [this.show, this.showFp]] = s.stateBoolSetters("isVisible"), this.onClick = s.onClick, this.onClickFp = s.onClickFp, this.offClick = s.offClick, this.offClickFp = s.offClickFp, this.mount = s.mount, this.mountFp = s.mountFp, this.unmount = s.unmount;
3172
3172
  }
3173
3173
  }
3174
- const Wn = /* @__PURE__ */ new er(
3174
+ const Un = /* @__PURE__ */ new tr(
3175
3175
  /* @__PURE__ */ Ae("settingsButton", "settings_button_pressed")
3176
3176
  );
3177
- class tr {
3177
+ class sr {
3178
3178
  constructor({ postEvent: e, storage: s, isVBma: r, isPageReload: i, version: o }) {
3179
3179
  /**
3180
3180
  * Signal indicating if the component is supported.
@@ -3229,10 +3229,10 @@ class tr {
3229
3229
  isPageReload: i,
3230
3230
  onMounted: a.setState,
3231
3231
  restoreState: s.get
3232
- }), f = { requires: "web_app_setup_swipe_behavior", isVBma: r, version: o }, F = B({
3232
+ }), f = { requires: "web_app_setup_swipe_behavior", isVBma: r, version: o }, F = E({
3233
3233
  ...f,
3234
3234
  returns: "plain"
3235
- }), b = B({
3235
+ }), b = E({
3236
3236
  ...f,
3237
3237
  isMounted: l.isMounted,
3238
3238
  returns: "either"
@@ -3252,16 +3252,16 @@ class tr {
3252
3252
  }), this.unmount = l.unmount, this.disableVertical = /* @__PURE__ */ h(this.disableVerticalFp), this.enableVertical = /* @__PURE__ */ h(this.enableVerticalFp), this.mount = /* @__PURE__ */ h(this.mountFp);
3253
3253
  }
3254
3254
  }
3255
- function sr() {
3256
- return new tr(p.pipe(
3255
+ function rr() {
3256
+ return new sr(p.pipe(
3257
3257
  v(),
3258
- V,
3258
+ T,
3259
3259
  y,
3260
3260
  Z("swipeBehavior")
3261
3261
  ));
3262
3262
  }
3263
- const Un = /* @__PURE__ */ sr();
3264
- async function Qn(n) {
3263
+ const Qn = /* @__PURE__ */ rr();
3264
+ async function Kn(n) {
3265
3265
  try {
3266
3266
  const { clipboard: s } = navigator;
3267
3267
  if (s)
@@ -3276,7 +3276,7 @@ async function Qn(n) {
3276
3276
  document.body.removeChild(e);
3277
3277
  }
3278
3278
  }
3279
- function rr({ request: n, ...e }) {
3279
+ function nr({ request: n, ...e }) {
3280
3280
  return A((s, r, i) => p.pipe(
3281
3281
  n(
3282
3282
  "web_app_request_file_download",
@@ -3287,20 +3287,20 @@ function rr({ request: n, ...e }) {
3287
3287
  ), { ...e, requires: "web_app_request_file_download", returns: "task" });
3288
3288
  }
3289
3289
  // @__NO_SIDE_EFFECTS__
3290
- function nr() {
3291
- return rr(p.pipe(
3290
+ function ir() {
3291
+ return nr(p.pipe(
3292
3292
  v(),
3293
3293
  L,
3294
3294
  y
3295
3295
  ));
3296
3296
  }
3297
- const ir = /* @__PURE__ */ nr(), Kn = /* @__PURE__ */ h(ir);
3298
- function or({ invokeCustomMethod: n, ...e }) {
3297
+ const or = /* @__PURE__ */ ir(), Nn = /* @__PURE__ */ h(or);
3298
+ function ar({ invokeCustomMethod: n, ...e }) {
3299
3299
  return A((s) => p.pipe(
3300
3300
  n("getCurrentTime", {}, s),
3301
3301
  u.chain((r) => {
3302
3302
  const i = Fe(
3303
- Ke(Je(), kt(), ze((o) => new Date(o * 1e3)), Ne()),
3303
+ Ke(Je(), yt(), Ne((o) => new Date(o * 1e3)), ze()),
3304
3304
  r
3305
3305
  );
3306
3306
  return i.success ? u.right(i.output) : u.left(new pe(r, i.issues));
@@ -3308,27 +3308,27 @@ function or({ invokeCustomMethod: n, ...e }) {
3308
3308
  ), { ...e, requires: "web_app_invoke_custom_method", returns: "task" });
3309
3309
  }
3310
3310
  // @__NO_SIDE_EFFECTS__
3311
- function ar() {
3312
- return or(p.pipe(
3311
+ function cr() {
3312
+ return ar(p.pipe(
3313
3313
  v(),
3314
3314
  Re,
3315
3315
  y
3316
3316
  ));
3317
3317
  }
3318
- const cr = /* @__PURE__ */ ar(), zn = /* @__PURE__ */ h(cr);
3319
- function pr({ postEvent: n, ...e }) {
3318
+ const pr = /* @__PURE__ */ cr(), zn = /* @__PURE__ */ h(pr);
3319
+ function ur({ postEvent: n, ...e }) {
3320
3320
  return A(() => n("web_app_hide_keyboard"), { ...e, returns: "either", requires: "web_app_hide_keyboard" });
3321
3321
  }
3322
3322
  // @__NO_SIDE_EFFECTS__
3323
- function ur() {
3324
- return pr(p.pipe(
3323
+ function lr() {
3324
+ return ur(p.pipe(
3325
3325
  v(),
3326
- V,
3326
+ T,
3327
3327
  y
3328
3328
  ));
3329
3329
  }
3330
- const lr = /* @__PURE__ */ ur(), Nn = /* @__PURE__ */ h(lr);
3331
- function dr({ request: n, createRequestId: e, ...s }) {
3330
+ const dr = /* @__PURE__ */ lr(), Jn = /* @__PURE__ */ h(dr);
3331
+ function hr({ request: n, createRequestId: e, ...s }) {
3332
3332
  return A((r) => {
3333
3333
  const i = e();
3334
3334
  return p.pipe(
@@ -3342,8 +3342,8 @@ function dr({ request: n, createRequestId: e, ...s }) {
3342
3342
  }, { ...s, requires: "web_app_read_text_from_clipboard", returns: "task" });
3343
3343
  }
3344
3344
  // @__NO_SIDE_EFFECTS__
3345
- function hr() {
3346
- return dr({
3345
+ function _r() {
3346
+ return hr({
3347
3347
  ...p.pipe(
3348
3348
  v(),
3349
3349
  y,
@@ -3352,8 +3352,8 @@ function hr() {
3352
3352
  createRequestId: Me
3353
3353
  });
3354
3354
  }
3355
- const _r = /* @__PURE__ */ hr(), Jn = /* @__PURE__ */ h(_r);
3356
- function br(n) {
3355
+ const br = /* @__PURE__ */ _r(), Yn = /* @__PURE__ */ h(br);
3356
+ function fr(n) {
3357
3357
  const e = {}, s = n.match(/VBot-Android(?:\/([^ ]+))?(?: (\([^)]+\))?|$)/);
3358
3358
  if (s) {
3359
3359
  const [, r, i] = s;
@@ -3369,10 +3369,10 @@ function br(n) {
3369
3369
  }
3370
3370
  return e;
3371
3371
  }
3372
- function Yn() {
3373
- return br(navigator.userAgent);
3372
+ function Zn() {
3373
+ return fr(navigator.userAgent);
3374
3374
  }
3375
- function fr({ postEvent: n, ...e }) {
3375
+ function gr({ postEvent: n, ...e }) {
3376
3376
  return A((s) => {
3377
3377
  const { size: r } = new Blob([s]);
3378
3378
  return !r || r > 4096 ? m.left(
@@ -3381,11 +3381,11 @@ function fr({ postEvent: n, ...e }) {
3381
3381
  }, { ...e, returns: "either" });
3382
3382
  }
3383
3383
  // @__NO_SIDE_EFFECTS__
3384
- function gr() {
3385
- return fr(p.pipe(v(), V));
3384
+ function mr() {
3385
+ return gr(p.pipe(v(), T));
3386
3386
  }
3387
- const mr = /* @__PURE__ */ gr(), Zn = /* @__PURE__ */ h(mr);
3388
- function wr({ request: n, ...e }) {
3387
+ const wr = /* @__PURE__ */ mr(), Xn = /* @__PURE__ */ h(wr);
3388
+ function Fr({ request: n, ...e }) {
3389
3389
  return A((s, r) => p.pipe(
3390
3390
  n(
3391
3391
  "web_app_send_prepared_message",
@@ -3395,19 +3395,19 @@ function wr({ request: n, ...e }) {
3395
3395
  params: { id: s }
3396
3396
  }
3397
3397
  ),
3398
- u.chain((i) => i.event === "prepared_message_failed" ? u.left(new xt(i.payload.error)) : u.right(void 0))
3398
+ u.chain((i) => i.event === "prepared_message_failed" ? u.left(new Mt(i.payload.error)) : u.right(void 0))
3399
3399
  ), { ...e, requires: "web_app_send_prepared_message", returns: "task" });
3400
3400
  }
3401
3401
  // @__NO_SIDE_EFFECTS__
3402
- function Fr() {
3403
- return wr(p.pipe(
3402
+ function Sr() {
3403
+ return Fr(p.pipe(
3404
3404
  v(),
3405
3405
  L,
3406
3406
  y
3407
3407
  ));
3408
3408
  }
3409
- const Sr = /* @__PURE__ */ Fr(), Xn = /* @__PURE__ */ h(Sr);
3410
- function Cr({ postEvent: n, ...e }) {
3409
+ const Cr = /* @__PURE__ */ Sr(), ei = /* @__PURE__ */ h(Cr);
3410
+ function vr({ postEvent: n, ...e }) {
3411
3411
  return A((s, r = {}) => n("web_app_share_to_story", {
3412
3412
  text: r.text,
3413
3413
  media_url: s,
@@ -3415,15 +3415,15 @@ function Cr({ postEvent: n, ...e }) {
3415
3415
  }), { ...e, requires: "web_app_share_to_story", returns: "either" });
3416
3416
  }
3417
3417
  // @__NO_SIDE_EFFECTS__
3418
- function vr() {
3419
- return Cr(p.pipe(
3418
+ function kr() {
3419
+ return vr(p.pipe(
3420
3420
  v(),
3421
- V,
3421
+ T,
3422
3422
  y
3423
3423
  ));
3424
3424
  }
3425
- const kr = /* @__PURE__ */ vr(), ei = /* @__PURE__ */ h(kr), ke = /* @__PURE__ */ oe(!1);
3426
- function yr({ isInlineMode: n, postEvent: e, ...s }) {
3425
+ const yr = /* @__PURE__ */ kr(), ti = /* @__PURE__ */ h(yr), ke = /* @__PURE__ */ oe(!1);
3426
+ function qr({ isInlineMode: n, postEvent: e, ...s }) {
3427
3427
  return A((r, i) => e("web_app_switch_inline_query", {
3428
3428
  query: r,
3429
3429
  chat_types: i || []
@@ -3436,17 +3436,17 @@ function yr({ isInlineMode: n, postEvent: e, ...s }) {
3436
3436
  });
3437
3437
  }
3438
3438
  // @__NO_SIDE_EFFECTS__
3439
- function qr() {
3440
- return yr({
3439
+ function Ir() {
3440
+ return qr({
3441
3441
  ...p.pipe(
3442
3442
  v(),
3443
- V,
3443
+ T,
3444
3444
  y
3445
3445
  ),
3446
3446
  isInlineMode: ke
3447
3447
  });
3448
3448
  }
3449
- const Ir = /* @__PURE__ */ qr(), ti = /* @__PURE__ */ h(Ir);
3449
+ const Er = /* @__PURE__ */ Ir(), si = /* @__PURE__ */ h(Er);
3450
3450
  class Br {
3451
3451
  constructor({
3452
3452
  storage: e,
@@ -3664,24 +3664,24 @@ class Br {
3664
3664
  width: 0
3665
3665
  },
3666
3666
  onChange: e.set
3667
- }), x = (E) => {
3667
+ }), x = (B) => {
3668
3668
  _.setState({
3669
- isExpanded: E.is_expanded,
3670
- height: E.height,
3671
- width: E.width,
3672
- stableHeight: E.is_state_stable ? E.height : void 0
3669
+ isExpanded: B.is_expanded,
3670
+ height: B.height,
3671
+ width: B.width,
3672
+ stableHeight: B.is_state_stable ? B.height : void 0
3673
3673
  });
3674
- }, T = (E) => {
3675
- _.setState({ isFullscreen: E.is_fullscreen });
3676
- }, R = (E) => {
3677
- _.setState({ safeAreaInsets: E });
3678
- }, H = (E) => {
3679
- _.setState({ contentSafeAreaInsets: E });
3674
+ }, V = (B) => {
3675
+ _.setState({ isFullscreen: B.is_fullscreen });
3676
+ }, R = (B) => {
3677
+ _.setState({ safeAreaInsets: B });
3678
+ }, H = (B) => {
3679
+ _.setState({ contentSafeAreaInsets: B });
3680
3680
  }, $ = new xe({
3681
- initialState(E) {
3681
+ initialState(B) {
3682
3682
  const X = (K) => () => {
3683
3683
  const [J, D] = K === "safe-area" ? ["web_app_request_safe_area", "safe_area_changed"] : ["web_app_request_content_safe_area", "content_safe_area_changed"];
3684
- return te(J, P(I)) ? b(J, D, E) : u.right({ top: 0, left: 0, right: 0, bottom: 0 });
3684
+ return te(J, P(I)) ? b(J, D, B) : u.right({ top: 0, left: 0, right: 0, bottom: 0 });
3685
3685
  }, M = (K) => () => typeof K == "boolean" ? u.right(K) : u.fromEither(K());
3686
3686
  return p.pipe(
3687
3687
  u.Do,
@@ -3696,7 +3696,7 @@ class Br {
3696
3696
  stableHeight: window.innerHeight,
3697
3697
  width: window.innerWidth
3698
3698
  }) : p.pipe(
3699
- b("web_app_request_viewport", "viewport_changed", E),
3699
+ b("web_app_request_viewport", "viewport_changed", B),
3700
3700
  u.map((D) => ({
3701
3701
  ...J,
3702
3702
  height: D.height,
@@ -3708,40 +3708,40 @@ class Br {
3708
3708
  );
3709
3709
  },
3710
3710
  isPageReload: s,
3711
- onMounted(E) {
3712
- o(x), c(T), i(R), r(H), _.setState(E);
3711
+ onMounted(B) {
3712
+ o(x), c(V), i(R), r(H), _.setState(B);
3713
3713
  },
3714
3714
  onUnmounted() {
3715
- F(x), l(T), f(R), a(H);
3715
+ F(x), l(V), f(R), a(H);
3716
3716
  },
3717
3717
  restoreState: e.get
3718
- }), U = (E) => S(() => this.safeAreaInsets()[E]), ae = (E) => S(() => this.contentSafeAreaInsets()[E]);
3718
+ }), U = (B) => S(() => this.safeAreaInsets()[B]), ae = (B) => S(() => this.contentSafeAreaInsets()[B]);
3719
3719
  this.state = _.state, this.height = _.getter("height"), this.stableHeight = _.getter("stableHeight"), this.width = _.getter("width"), this.isExpanded = _.getter("isExpanded"), this.safeAreaInsets = _.getter("safeAreaInsets"), this.safeAreaInsetTop = U("top"), this.safeAreaInsetBottom = U("bottom"), this.safeAreaInsetLeft = U("left"), this.safeAreaInsetRight = U("right"), this.contentSafeAreaInsets = _.getter("contentSafeAreaInsets"), this.contentSafeAreaInsetTop = ae("top"), this.contentSafeAreaInsetBottom = ae("bottom"), this.contentSafeAreaInsetLeft = ae("left"), this.contentSafeAreaInsetRight = ae("right");
3720
- const ot = B({ isVBma: q, returns: "task" }), Le = B({
3720
+ const ot = E({ isVBma: q, returns: "task" }), Le = E({
3721
3721
  isVBma: q,
3722
3722
  returns: "either"
3723
- }), at = B({
3723
+ }), at = E({
3724
3724
  isVBma: q,
3725
3725
  requires: "web_app_request_fullscreen",
3726
3726
  version: I,
3727
3727
  returns: "task"
3728
- }), $e = (E) => at((X) => p.pipe(
3728
+ }), $e = (B) => at((X) => p.pipe(
3729
3729
  b(
3730
- E ? "web_app_request_fullscreen" : "web_app_exit_fullscreen",
3730
+ B ? "web_app_request_fullscreen" : "web_app_exit_fullscreen",
3731
3731
  ["fullscreen_changed", "fullscreen_failed"],
3732
3732
  X
3733
3733
  ),
3734
- u.chain((M) => M.event === "fullscreen_failed" && M.payload.error !== "ALREADY_FULLSCREEN" ? u.left(new At(M.payload.error)) : (_.setState({
3734
+ u.chain((M) => M.event === "fullscreen_failed" && M.payload.error !== "ALREADY_FULLSCREEN" ? u.left(new xt(M.payload.error)) : (_.setState({
3735
3735
  isFullscreen: "is_fullscreen" in M.payload ? M.payload.is_fullscreen : !0
3736
3736
  }), u.right(void 0)))
3737
3737
  ));
3738
3738
  this.isMounted = $.isMounted, this.mountFp = ot($.mount), this.mount = /* @__PURE__ */ h(this.mountFp), this.isFullscreen = _.getter("isFullscreen"), this.requestFullscreenFp = $e(!0), this.requestFullscreen = /* @__PURE__ */ h(this.requestFullscreenFp), this.exitFullscreenFp = $e(!1), this.exitFullscreen = /* @__PURE__ */ h(this.exitFullscreenFp);
3739
3739
  const ce = O(!1);
3740
3740
  this.isCssVarsBound = S(ce), this.bindCssVarsFp = Le(
3741
- (E) => {
3741
+ (B) => {
3742
3742
  if (ce())
3743
- return m.left(new Be());
3744
- E || (E = (M) => `--vb-viewport-${Ue(M)}`);
3743
+ return m.left(new Ee());
3744
+ B || (B = (M) => `--vb-viewport-${Ue(M)}`);
3745
3745
  const X = [
3746
3746
  ["height", this.height],
3747
3747
  ["stableHeight", this.stableHeight],
@@ -3755,10 +3755,10 @@ class Br {
3755
3755
  ["contentSafeAreaInsetLeft", this.contentSafeAreaInsetLeft],
3756
3756
  ["contentSafeAreaInsetRight", this.contentSafeAreaInsetRight]
3757
3757
  ].reduce((M, [K, J]) => {
3758
- const D = E(K);
3758
+ const D = B(K);
3759
3759
  if (D) {
3760
3760
  const Pe = () => {
3761
- Ve(D, `${J()}px`);
3761
+ Te(D, `${J()}px`);
3762
3762
  };
3763
3763
  M.push({ update: Pe, removeListener: J.sub(Pe), cssVar: D });
3764
3764
  }
@@ -3768,7 +3768,7 @@ class Br {
3768
3768
  M.update();
3769
3769
  }), ce.set(!0), m.right(() => {
3770
3770
  X.forEach((M) => {
3771
- M.removeListener(), Te(M.cssVar);
3771
+ M.removeListener(), Ve(M.cssVar);
3772
3772
  }), ce.set(!1);
3773
3773
  });
3774
3774
  }
@@ -3776,7 +3776,7 @@ class Br {
3776
3776
  }
3777
3777
  //#endregion
3778
3778
  }
3779
- function Er() {
3779
+ function Ar() {
3780
3780
  const n = (o) => ({
3781
3781
  on: (c) => {
3782
3782
  j(o, c);
@@ -3790,7 +3790,7 @@ function Er() {
3790
3790
  v(),
3791
3791
  Z("viewport"),
3792
3792
  y,
3793
- V,
3793
+ T,
3794
3794
  L
3795
3795
  ),
3796
3796
  isFullscreen() {
@@ -3809,8 +3809,8 @@ function Er() {
3809
3809
  onViewportChanged: e.on
3810
3810
  });
3811
3811
  }
3812
- const si = /* @__PURE__ */ Er();
3813
- class Ar {
3812
+ const ri = /* @__PURE__ */ Ar();
3813
+ class xr {
3814
3814
  constructor({ request: e }) {
3815
3815
  /**
3816
3816
  * Requests storage access with specified options.
@@ -3875,13 +3875,13 @@ class Ar {
3875
3875
  });
3876
3876
  }
3877
3877
  }
3878
- function xr() {
3879
- return new Ar({
3878
+ function Mr() {
3879
+ return new xr({
3880
3880
  request: Ge
3881
3881
  });
3882
3882
  }
3883
- const ri = /* @__PURE__ */ xr();
3884
- class Mr {
3883
+ const ni = /* @__PURE__ */ Mr();
3884
+ class Rr {
3885
3885
  /**
3886
3886
  * Listens to 'web_app_setup_back_button' methods calls from Mini App.
3887
3887
  */
@@ -3898,8 +3898,8 @@ class Mr {
3898
3898
  d().send("back_button_pressed");
3899
3899
  }
3900
3900
  }
3901
- const ni = new Mr();
3902
- class Rr {
3901
+ const ii = new Rr();
3902
+ class Tr {
3903
3903
  /**
3904
3904
  * Listens to 'web_app_setup_main_button' methods calls from Mini App.
3905
3905
  */
@@ -3916,7 +3916,7 @@ class Rr {
3916
3916
  d().send("main_button_pressed");
3917
3917
  }
3918
3918
  }
3919
- const ii = new Rr();
3919
+ const oi = new Tr();
3920
3920
  class Vr {
3921
3921
  /**
3922
3922
  * Listens to 'web_app_setup_secondary_button' methods calls from Mini App.
@@ -3934,8 +3934,8 @@ class Vr {
3934
3934
  d().send("secondary_button_pressed");
3935
3935
  }
3936
3936
  }
3937
- const oi = new Vr();
3938
- class Tr {
3937
+ const ai = new Vr();
3938
+ class Lr {
3939
3939
  /**
3940
3940
  * Listens to 'web_app_setup_settings_button' methods calls from Mini App.
3941
3941
  */
@@ -3952,8 +3952,8 @@ class Tr {
3952
3952
  d().send("settings_button_pressed");
3953
3953
  }
3954
3954
  }
3955
- const ai = new Tr();
3956
- class Lr {
3955
+ const ci = new Lr();
3956
+ class $r {
3957
3957
  /**
3958
3958
  * Listens to 'web_app_open_popup' methods calls from Mini App.
3959
3959
  */
@@ -3971,8 +3971,8 @@ class Lr {
3971
3971
  d().send("popup_closed", { button_id: e });
3972
3972
  }
3973
3973
  }
3974
- const ci = new Lr();
3975
- class $r {
3974
+ const pi = new $r();
3975
+ class Pr {
3976
3976
  /**
3977
3977
  * Listens to 'web_app_expand' methods calls from Mini App.
3978
3978
  */
@@ -4060,8 +4060,8 @@ class $r {
4060
4060
  d().send("viewport_changed", e);
4061
4061
  }
4062
4062
  }
4063
- const pi = new $r();
4064
- class Pr {
4063
+ const ui = new Pr();
4064
+ class Hr {
4065
4065
  /**
4066
4066
  * Listens to 'iframe_ready' methods calls from Mini App.
4067
4067
  */
@@ -4153,8 +4153,8 @@ class Pr {
4153
4153
  d().send("visibility_changed", { is_visible: e });
4154
4154
  }
4155
4155
  }
4156
- const ui = new Pr();
4157
- class Hr {
4156
+ const li = new Hr();
4157
+ class Or {
4158
4158
  /**
4159
4159
  * Listens to 'web_app_trigger_haptic_feedback' methods calls from Mini App.
4160
4160
  */
@@ -4164,8 +4164,8 @@ class Hr {
4164
4164
  });
4165
4165
  }
4166
4166
  }
4167
- const li = new Hr();
4168
- class Or {
4167
+ const di = new Or();
4168
+ class Dr {
4169
4169
  /**
4170
4170
  * Listens to 'web_app_biometry_get_info' methods calls from Mini App.
4171
4171
  */
@@ -4225,8 +4225,8 @@ class Or {
4225
4225
  d().send("biometry_token_updated", e);
4226
4226
  }
4227
4227
  }
4228
- const di = new Or();
4229
- class Dr {
4228
+ const hi = new Dr();
4229
+ class jr {
4230
4230
  /**
4231
4231
  * Listens to 'web_app_open_invoice' methods calls from Mini App.
4232
4232
  */
@@ -4242,8 +4242,8 @@ class Dr {
4242
4242
  d().send("invoice_closed", e);
4243
4243
  }
4244
4244
  }
4245
- const hi = new Dr();
4246
- class jr {
4245
+ const _i = new jr();
4246
+ class Gr {
4247
4247
  /**
4248
4248
  * Listens to 'web_app_open_scan_qr_popup' methods calls from Mini App.
4249
4249
  */
@@ -4273,8 +4273,8 @@ class jr {
4273
4273
  d().send("scan_qr_popup_closed");
4274
4274
  }
4275
4275
  }
4276
- const _i = new jr();
4277
- class Gr {
4276
+ const bi = new Gr();
4277
+ class Wr {
4278
4278
  /**
4279
4279
  * Listens to 'web_app_check_location' methods calls from Mini App.
4280
4280
  */
@@ -4312,8 +4312,8 @@ class Gr {
4312
4312
  d().send("location_requested", e);
4313
4313
  }
4314
4314
  }
4315
- const bi = new Gr();
4316
- class Wr {
4315
+ const fi = new Wr();
4316
+ class Ur {
4317
4317
  /**
4318
4318
  * Listens to 'web_app_open_link' methods calls from Mini App.
4319
4319
  */
@@ -4331,8 +4331,8 @@ class Wr {
4331
4331
  });
4332
4332
  }
4333
4333
  }
4334
- const fi = new Wr();
4335
- class Ur {
4334
+ const gi = new Ur();
4335
+ class Qr {
4336
4336
  /**
4337
4337
  * Listens to 'web_app_request_emoji_status_access' methods calls from Mini App.
4338
4338
  */
@@ -4368,8 +4368,8 @@ class Ur {
4368
4368
  d().send("emoji_status_failed", e);
4369
4369
  }
4370
4370
  }
4371
- const gi = new Ur();
4372
- class Qr {
4371
+ const mi = new Qr();
4372
+ class Kr {
4373
4373
  /**
4374
4374
  * Listens to 'web_app_add_to_home_screen' methods calls from Mini App.
4375
4375
  */
@@ -4405,8 +4405,8 @@ class Qr {
4405
4405
  d().send("home_screen_failed", e);
4406
4406
  }
4407
4407
  }
4408
- const mi = new Qr();
4409
- class Kr {
4408
+ const wi = new Kr();
4409
+ class Nr {
4410
4410
  /**
4411
4411
  * Listens to 'web_app_request_phone' methods calls from Mini App.
4412
4412
  */
@@ -4436,7 +4436,7 @@ class Kr {
4436
4436
  d().send("write_access_requested", e);
4437
4437
  }
4438
4438
  }
4439
- const wi = new Kr();
4439
+ const Fi = new Nr();
4440
4440
  class zr {
4441
4441
  /**
4442
4442
  * Listens to 'web_app_setup_closing_behavior' methods calls from Mini App.
@@ -4447,8 +4447,8 @@ class zr {
4447
4447
  });
4448
4448
  }
4449
4449
  }
4450
- const Fi = new zr();
4451
- class Nr {
4450
+ const Si = new zr();
4451
+ class Jr {
4452
4452
  /**
4453
4453
  * Listens to 'web_app_setup_swipe_behavior' methods calls from Mini App.
4454
4454
  */
@@ -4458,8 +4458,8 @@ class Nr {
4458
4458
  });
4459
4459
  }
4460
4460
  }
4461
- const Si = new Nr();
4462
- class Jr {
4461
+ const Ci = new Jr();
4462
+ class Yr {
4463
4463
  /**
4464
4464
  * Listens to 'web_app_read_text_from_clipboard' methods calls from Mini App.
4465
4465
  */
@@ -4475,8 +4475,8 @@ class Jr {
4475
4475
  d().send("clipboard_text_received", e);
4476
4476
  }
4477
4477
  }
4478
- const Ci = new Jr();
4479
- class Yr {
4478
+ const vi = new Yr();
4479
+ class Zr {
4480
4480
  /**
4481
4481
  * Listens to 'web_app_request_file_download' methods calls from Mini App.
4482
4482
  */
@@ -4492,8 +4492,8 @@ class Yr {
4492
4492
  d().send("file_download_requested", e);
4493
4493
  }
4494
4494
  }
4495
- const vi = new Yr();
4496
- class Zr {
4495
+ const ki = new Zr();
4496
+ class Xr {
4497
4497
  /**
4498
4498
  * Listens to 'web_app_send_prepared_message' methods calls from Mini App.
4499
4499
  */
@@ -4523,8 +4523,8 @@ class Zr {
4523
4523
  d().send("prepared_message_sent");
4524
4524
  }
4525
4525
  }
4526
- const ki = new Zr();
4527
- class Xr {
4526
+ const yi = new Xr();
4527
+ class en {
4528
4528
  /**
4529
4529
  * Listens to 'web_app_data_send' methods calls from Mini App.
4530
4530
  */
@@ -4542,8 +4542,8 @@ class Xr {
4542
4542
  });
4543
4543
  }
4544
4544
  }
4545
- const yi = new Xr();
4546
- class en {
4545
+ const qi = new en();
4546
+ class tn {
4547
4547
  /**
4548
4548
  * Listens to 'web_app_invoke_custom_method' methods calls from Mini App.
4549
4549
  */
@@ -4559,8 +4559,8 @@ class en {
4559
4559
  d().send("custom_method_invoked", e);
4560
4560
  }
4561
4561
  }
4562
- const qi = new en();
4563
- class tn {
4562
+ const Ii = new tn();
4563
+ class sn {
4564
4564
  /**
4565
4565
  * Listens to 'web_app_send_notification' method call from Mini App.
4566
4566
  */
@@ -4570,8 +4570,8 @@ class tn {
4570
4570
  });
4571
4571
  }
4572
4572
  }
4573
- const Ii = new tn();
4574
- class sn {
4573
+ const Ei = new sn();
4574
+ class rn {
4575
4575
  /**
4576
4576
  * Sets the theme params of the Mini App.
4577
4577
  * Sends 'theme_changed' event to the Mini App.
@@ -4588,8 +4588,8 @@ class sn {
4588
4588
  });
4589
4589
  }
4590
4590
  }
4591
- const Bi = new sn();
4592
- function rn(n = {}) {
4591
+ const Bi = new rn();
4592
+ function nn(n = {}) {
4593
4593
  const {
4594
4594
  version: e,
4595
4595
  isInlineMode: s,
@@ -4601,7 +4601,7 @@ function rn(n = {}) {
4601
4601
  const a = p.pipe(le(), m.matchW(
4602
4602
  (l) => l,
4603
4603
  (l) => {
4604
- Ce.set(e || l.vbWebAppVersion), ke.set(typeof s == "boolean" ? s : !!l.vbWebAppBotInline), ve.set(r || l.vbWebAppThemeParams);
4604
+ Ce.set(e || l.vbWebAppVersion || (l.vbWebAppPlatform === "web" ? bt : "0.0")), ke.set(typeof s == "boolean" ? s : !!l.vbWebAppBotInline), ve.set(r || l.vbWebAppThemeParams);
4605
4605
  }
4606
4606
  ));
4607
4607
  if (a)
@@ -4629,227 +4629,227 @@ function rn(n = {}) {
4629
4629
  m.map(() => (He().log("The package was initialized"), o))
4630
4630
  );
4631
4631
  }
4632
- const Ei = he(rn);
4632
+ const Ai = he(nn);
4633
4633
  export {
4634
4634
  Ye as AccessDeniedError,
4635
- Rt as BackButton,
4636
- Pt as Biometry,
4637
- Be as CSSVarsBoundError,
4638
- Mi as CancelledError,
4639
- Dt as ClosingBehavior,
4640
- Gt as CloudStorage,
4641
- Ee as ConcurrentCallError,
4642
- Qt as DeviceStorage,
4643
- yt as DeviceStorageMethodError,
4644
- At as FullscreenFailedError,
4635
+ Tt as BackButton,
4636
+ Ht as Biometry,
4637
+ Ee as CSSVarsBoundError,
4638
+ Ri as CancelledError,
4639
+ jt as ClosingBehavior,
4640
+ Wt as CloudStorage,
4641
+ Be as ConcurrentCallError,
4642
+ Kt as DeviceStorage,
4643
+ qt as DeviceStorageMethodError,
4644
+ xt as FullscreenFailedError,
4645
4645
  Bt as FunctionUnavailableError,
4646
- es as HapticFeedback,
4647
- Mr as HostBackButton,
4648
- Or as HostBiometry,
4649
- Xr as HostChat,
4650
- Jr as HostClipboard,
4646
+ ts as HapticFeedback,
4647
+ Rr as HostBackButton,
4648
+ Dr as HostBiometry,
4649
+ en as HostChat,
4650
+ Yr as HostClipboard,
4651
4651
  zr as HostClosingBehavior,
4652
- en as HostCustomMethod,
4653
- Ur as HostEmojiStatus,
4654
- Yr as HostFiles,
4655
- Hr as HostHapticFeedback,
4656
- Qr as HostHomeScreen,
4657
- Dr as HostInvoice,
4658
- Wr as HostLink,
4659
- Gr as HostLocationManager,
4660
- Rr as HostMainButton,
4661
- Pr as HostMiniApp,
4662
- tn as HostNotification,
4663
- Lr as HostPopup,
4664
- Kr as HostPrivacy,
4665
- jr as HostQrScanner,
4652
+ tn as HostCustomMethod,
4653
+ Qr as HostEmojiStatus,
4654
+ Zr as HostFiles,
4655
+ Or as HostHapticFeedback,
4656
+ Kr as HostHomeScreen,
4657
+ jr as HostInvoice,
4658
+ Ur as HostLink,
4659
+ Wr as HostLocationManager,
4660
+ Tr as HostMainButton,
4661
+ Hr as HostMiniApp,
4662
+ sn as HostNotification,
4663
+ $r as HostPopup,
4664
+ Nr as HostPrivacy,
4665
+ Gr as HostQrScanner,
4666
4666
  Vr as HostSecondaryButton,
4667
- Tr as HostSettingsButton,
4668
- Zr as HostSharing,
4669
- Nr as HostSwipeBehavior,
4670
- sn as HostThemeParams,
4671
- $r as HostViewport,
4672
- cs as InitData,
4667
+ Lr as HostSettingsButton,
4668
+ Xr as HostSharing,
4669
+ Jr as HostSwipeBehavior,
4670
+ rn as HostThemeParams,
4671
+ Pr as HostViewport,
4672
+ ps as InitData,
4673
4673
  Q as InvalidArgumentsError,
4674
- _n as InvalidEnvError,
4675
- Ri as InvalidLaunchParamsError,
4676
- us as Invoice,
4674
+ bn as InvalidEnvError,
4675
+ Ti as InvalidLaunchParamsError,
4676
+ ls as Invoice,
4677
4677
  Vi as InvokeCustomMethodFailedError,
4678
- Ti as LaunchParamsRetrieveError,
4679
- Ss as LocationManager,
4680
- vs as MainButton,
4681
- Li as MethodParameterUnsupportedError,
4682
- $i as MethodUnsupportedError,
4683
- Is as MiniApp,
4684
- It as NotAvailableError,
4685
- xs as Notification,
4678
+ Li as LaunchParamsRetrieveError,
4679
+ Cs as LocationManager,
4680
+ ks as MainButton,
4681
+ $i as MethodParameterUnsupportedError,
4682
+ Pi as MethodUnsupportedError,
4683
+ Es as MiniApp,
4684
+ Et as NotAvailableError,
4685
+ Ms as Notification,
4686
4686
  Vs as Popup,
4687
- Qs as QrScanner,
4687
+ Ks as QrScanner,
4688
4688
  zs as Refresh,
4689
- Js as SecondaryButton,
4690
- Zs as SecureStorage,
4691
- qt as SecureStorageMethodError,
4692
- Et as SetEmojiStatusError,
4693
- er as SettingsButton,
4694
- xt as ShareMessageError,
4695
- Ar as StoragePermission,
4696
- tr as SwipeBehavior,
4697
- ys as ThemeParams,
4698
- Pi as TimeoutError,
4699
- Hi as UnknownEnvError,
4700
- Mt as UnknownThemeParamsKeyError,
4689
+ Ys as SecondaryButton,
4690
+ Xs as SecureStorage,
4691
+ It as SecureStorageMethodError,
4692
+ At as SetEmojiStatusError,
4693
+ tr as SettingsButton,
4694
+ Mt as ShareMessageError,
4695
+ xr as StoragePermission,
4696
+ sr as SwipeBehavior,
4697
+ qs as ThemeParams,
4698
+ Hi as TimeoutError,
4699
+ Oi as UnknownEnvError,
4700
+ Rt as UnknownThemeParamsKeyError,
4701
4701
  pe as ValidationError,
4702
4702
  Br as Viewport,
4703
- yn as addToHomeScreen,
4704
- ns as addToHomeScreenFp,
4705
- Oi as applyPolyfills,
4706
- bn as backButton,
4707
- mn as biometry,
4708
- qn as checkHomeScreenStatus,
4709
- as as checkHomeScreenStatusFp,
4710
- wn as closingBehavior,
4711
- Fn as cloudStorage,
4712
- Qn as copyTextToClipboard,
4713
- Di as createLogger,
4714
- ji as createPostEvent,
4703
+ qn as addToHomeScreen,
4704
+ is as addToHomeScreenFp,
4705
+ Di as applyPolyfills,
4706
+ fn as backButton,
4707
+ wn as biometry,
4708
+ In as checkHomeScreenStatus,
4709
+ cs as checkHomeScreenStatusFp,
4710
+ Fn as closingBehavior,
4711
+ Sn as cloudStorage,
4712
+ Kn as copyTextToClipboard,
4713
+ ji as createLogger,
4714
+ Gi as createPostEvent,
4715
4715
  Me as createRequestId,
4716
- Gi as createStartParam,
4717
- Wi as createStartParamFp,
4718
- Ui as debug,
4719
- Qi as decodeBase64Url,
4720
- Ki as decodeBase64UrlFp,
4716
+ Wi as createStartParam,
4717
+ Ui as createStartParamFp,
4718
+ Qi as debug,
4719
+ Ki as decodeBase64Url,
4720
+ Ni as decodeBase64UrlFp,
4721
4721
  zi as decodeStartParam,
4722
- Ni as decodeStartParamFp,
4723
- Ji as deepSnakeToCamelObjKeys,
4724
- Yi as defineHostBridge,
4725
- Zi as defineWebComponentBridge,
4726
- Sn as deviceStorage,
4727
- Kn as downloadFile,
4728
- ir as downloadFileFp,
4729
- Xi as emitEvent,
4730
- eo as encodeBase64Url,
4722
+ Ji as decodeStartParamFp,
4723
+ Yi as deepSnakeToCamelObjKeys,
4724
+ Zi as defineHostBridge,
4725
+ Xi as defineWebComponentBridge,
4726
+ Cn as deviceStorage,
4727
+ Nn as downloadFile,
4728
+ or as downloadFileFp,
4729
+ eo as emitEvent,
4730
+ to as encodeBase64Url,
4731
4731
  zn as getCurrentTime,
4732
- cr as getCurrentTimeFp,
4733
- to as getHostBridge,
4734
- so as getReleaseVersion,
4735
- kn as hapticFeedback,
4736
- Nn as hideKeyboard,
4737
- lr as hideKeyboardFp,
4738
- ni as hostBackButton,
4739
- di as hostBiometry,
4740
- yi as hostChat,
4741
- Ci as hostClipboard,
4742
- Fi as hostClosingBehavior,
4743
- qi as hostCustomMethod,
4744
- gi as hostEmojiStatus,
4745
- vi as hostFiles,
4746
- li as hostHapticFeedback,
4747
- mi as hostHomeScreen,
4748
- hi as hostInvoice,
4749
- fi as hostLink,
4750
- bi as hostLocationManager,
4751
- ii as hostMainButton,
4752
- ui as hostMiniApp,
4753
- Ii as hostNotification,
4754
- ci as hostPopup,
4755
- wi as hostPrivacy,
4756
- _i as hostQrScanner,
4757
- oi as hostSecondaryButton,
4758
- ai as hostSettingsButton,
4759
- ki as hostSharing,
4760
- Si as hostSwipeBehavior,
4732
+ pr as getCurrentTimeFp,
4733
+ so as getHostBridge,
4734
+ ro as getReleaseVersion,
4735
+ yn as hapticFeedback,
4736
+ Jn as hideKeyboard,
4737
+ dr as hideKeyboardFp,
4738
+ ii as hostBackButton,
4739
+ hi as hostBiometry,
4740
+ qi as hostChat,
4741
+ vi as hostClipboard,
4742
+ Si as hostClosingBehavior,
4743
+ Ii as hostCustomMethod,
4744
+ mi as hostEmojiStatus,
4745
+ ki as hostFiles,
4746
+ di as hostHapticFeedback,
4747
+ wi as hostHomeScreen,
4748
+ _i as hostInvoice,
4749
+ gi as hostLink,
4750
+ fi as hostLocationManager,
4751
+ oi as hostMainButton,
4752
+ li as hostMiniApp,
4753
+ Ei as hostNotification,
4754
+ pi as hostPopup,
4755
+ Fi as hostPrivacy,
4756
+ bi as hostQrScanner,
4757
+ ai as hostSecondaryButton,
4758
+ ci as hostSettingsButton,
4759
+ yi as hostSharing,
4760
+ Ci as hostSwipeBehavior,
4761
4761
  Bi as hostThemeParams,
4762
- pi as hostViewport,
4763
- Ei as init,
4764
- In as initData,
4765
- rn as initFp,
4762
+ ui as hostViewport,
4763
+ Ai as init,
4764
+ En as initData,
4765
+ nn as initFp,
4766
4766
  Bn as invoice,
4767
- Wt as invokeCustomMethod,
4768
- ko as isAnyRGB,
4767
+ Ut as invokeCustomMethod,
4768
+ yo as isAnyRGB,
4769
4769
  st as isColorDark,
4770
- ks as isColorDarkFp,
4771
- yo as isRGB,
4772
- qo as isRGBA,
4773
- Io as isRGBAShort,
4770
+ ys as isColorDarkFp,
4771
+ qo as isRGB,
4772
+ Io as isRGBA,
4773
+ Eo as isRGBAShort,
4774
4774
  Bo as isRGBShort,
4775
- ro as isSafeToCreateStartParam,
4776
- no as isVBma,
4777
- io as isVBmaFp,
4778
- Mn as locationManager,
4779
- oo as logger,
4780
- Rn as mainButton,
4781
- Es as miniApp,
4782
- ao as mockVBotEnv,
4775
+ no as isSafeToCreateStartParam,
4776
+ io as isVBma,
4777
+ oo as isVBmaFp,
4778
+ Rn as locationManager,
4779
+ ao as logger,
4780
+ Tn as mainButton,
4781
+ As as miniApp,
4782
+ co as mockVBotEnv,
4783
4783
  Vn as notification,
4784
- co as off,
4785
- po as offAll,
4786
- uo as on,
4787
- En as openLink,
4788
- _s as openLinkFp,
4789
- An as openVBotLink,
4784
+ po as off,
4785
+ uo as offAll,
4786
+ lo as on,
4787
+ An as openLink,
4788
+ bs as openLinkFp,
4789
+ xn as openVBotLink,
4790
4790
  tt as openVBotLinkFp,
4791
- Eo as parseInitDataQuery,
4792
- Ao as parseInitDataQueryFp,
4793
- xo as parseLaunchParamsQuery,
4794
- Mo as parseLaunchParamsQueryFp,
4795
- Tn as popup,
4791
+ Ao as parseInitDataQuery,
4792
+ xo as parseInitDataQueryFp,
4793
+ Mo as parseLaunchParamsQuery,
4794
+ Ro as parseLaunchParamsQueryFp,
4795
+ Ln as popup,
4796
4796
  Vt as postEvent,
4797
4797
  re as postEventFp,
4798
- On as qrScanner,
4799
- Jn as readTextFromClipboard,
4800
- _r as readTextFromClipboardFp,
4801
- Dn as refresh,
4802
- fn as request,
4803
- gn as request2,
4798
+ Dn as qrScanner,
4799
+ Yn as readTextFromClipboard,
4800
+ br as readTextFromClipboardFp,
4801
+ jn as refresh,
4802
+ gn as request,
4803
+ mn as request2,
4804
4804
  Xe as request2Fp,
4805
- Pn as requestContact,
4806
- $n as requestContactComplete,
4805
+ Hn as requestContact,
4806
+ Pn as requestContactComplete,
4807
4807
  it as requestContactCompleteFp,
4808
- js as requestContactFp,
4809
- Cn as requestEmojiStatusAccess,
4810
- Jt as requestEmojiStatusAccessFp,
4811
- Ht as requestFp,
4812
- Ln as requestPhoneAccess,
4808
+ Gs as requestContactFp,
4809
+ vn as requestEmojiStatusAccess,
4810
+ Yt as requestEmojiStatusAccessFp,
4811
+ Ot as requestFp,
4812
+ $n as requestPhoneAccess,
4813
4813
  nt as requestPhoneAccessFp,
4814
- Hn as requestWriteAccess,
4815
- Us as requestWriteAccessFp,
4816
- Yn as retrieveAndroidDeviceData,
4817
- br as retrieveAndroidDeviceDataFrom,
4818
- lo as retrieveLaunchParams,
4819
- ho as retrieveLaunchParamsFp,
4820
- _o as retrieveRawInitData,
4821
- bo as retrieveRawInitDataFp,
4822
- fo as retrieveRawLaunchParams,
4823
- go as retrieveRawLaunchParamsFp,
4824
- jn as secondaryButton,
4825
- Gn as secureStorage,
4826
- Zn as sendData,
4827
- mr as sendDataFp,
4828
- Ro as serializeInitDataQuery,
4814
+ On as requestWriteAccess,
4815
+ Qs as requestWriteAccessFp,
4816
+ Zn as retrieveAndroidDeviceData,
4817
+ fr as retrieveAndroidDeviceDataFrom,
4818
+ ho as retrieveLaunchParams,
4819
+ _o as retrieveLaunchParamsFp,
4820
+ bo as retrieveRawInitData,
4821
+ fo as retrieveRawInitDataFp,
4822
+ go as retrieveRawLaunchParams,
4823
+ mo as retrieveRawLaunchParamsFp,
4824
+ Gn as secondaryButton,
4825
+ Wn as secureStorage,
4826
+ Xn as sendData,
4827
+ wr as sendDataFp,
4828
+ To as serializeInitDataQuery,
4829
4829
  Vo as serializeLaunchParamsQuery,
4830
- mo as setDebug,
4831
- vn as setEmojiStatus,
4832
- Xt as setEmojiStatusFp,
4833
- wo as setLaunchParams,
4834
- Fo as setTargetOrigin,
4835
- Wn as settingsButton,
4836
- Xn as shareMessage,
4837
- Sr as shareMessageFp,
4838
- ei as shareStory,
4839
- kr as shareStoryFp,
4840
- xn as shareURL,
4841
- ws as shareURLFp,
4842
- ri as storagePermission,
4843
- So as supports,
4844
- Un as swipeBehavior,
4845
- ti as switchInlineQuery,
4846
- Ir as switchInlineQueryFp,
4847
- Co as targetOrigin,
4830
+ wo as setDebug,
4831
+ kn as setEmojiStatus,
4832
+ es as setEmojiStatusFp,
4833
+ Fo as setLaunchParams,
4834
+ So as setTargetOrigin,
4835
+ Un as settingsButton,
4836
+ ei as shareMessage,
4837
+ Cr as shareMessageFp,
4838
+ ti as shareStory,
4839
+ yr as shareStoryFp,
4840
+ Mn as shareURL,
4841
+ Fs as shareURLFp,
4842
+ ni as storagePermission,
4843
+ Co as supports,
4844
+ Qn as swipeBehavior,
4845
+ si as switchInlineQuery,
4846
+ Er as switchInlineQueryFp,
4847
+ vo as targetOrigin,
4848
4848
  de as themeParams,
4849
- To as toRGB,
4850
- Lo as toRGBFp,
4851
- $o as toRGBFull,
4852
- Po as toRGBFullFp,
4853
- si as viewport
4849
+ Lo as toRGB,
4850
+ $o as toRGBFp,
4851
+ Po as toRGBFull,
4852
+ Ho as toRGBFullFp,
4853
+ ri as viewport
4854
4854
  };
4855
4855
  //# sourceMappingURL=index.js.map