@wormhole-foundation/wormhole-connect 0.3.4-beta.3-development → 0.3.4-beta.4-development

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 (52) hide show
  1. package/dist/assets/{cosmos-9t5ds48M.js → cosmos-TcYN7x14.js} +1 -1
  2. package/dist/assets/index-7UgR9Epe.js +3 -0
  3. package/dist/assets/{solana-QOFlt-jY.js → solana-r3vOVfGL.js} +2 -2
  4. package/dist/assets/{solanaEmbed.esm-bag_3ej_.js → solanaEmbed.esm-8lU7Qhqn.js} +1 -1
  5. package/dist/main.js +87 -87
  6. package/dist/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
  7. package/dist/src/routes/ntt/chains/solana/nttQuoter.d.ts +2 -2
  8. package/dist/src/routes/ntt/chains/solana/nttQuoter.d.ts.map +1 -1
  9. package/dist/src/routes/ntt/nttRelay.d.ts.map +1 -1
  10. package/lib/{aptos-LzsTT-yE.mjs → aptos-XkxFn0iA.mjs} +1 -1
  11. package/lib/{aptos-A2P3fZwR.js → aptos-yj-TK3PA.js} +1 -1
  12. package/lib/{ccip-EX9Uy7uh.mjs → ccip-FGsI2Vy1.mjs} +3 -3
  13. package/lib/{ccip-MYRIWxwr.js → ccip-fjiaQRuA.js} +1 -1
  14. package/lib/{cosmos-LAGywRPJ.js → cosmos-AUjYaZap.js} +1 -1
  15. package/lib/{cosmos-8BhxGLk5.mjs → cosmos-MDA8Rp7a.mjs} +3 -3
  16. package/lib/{evm-rkkBtxAA.js → evm-AzWd7TIg.js} +3 -3
  17. package/lib/{evm-4xBDvIbh.mjs → evm-EK7l4v5F.mjs} +4 -4
  18. package/lib/{index-oQ6mMVQe.mjs → index-0q2THm2w.mjs} +3 -3
  19. package/lib/index-9vpoegf2.js +3 -0
  20. package/lib/{index-TXf-Y_5p.mjs → index-GqCbgO6w.mjs} +96 -87
  21. package/lib/{index-DiFBiIsU.js → index-Lyx2KgEl.js} +6 -6
  22. package/lib/{index-IzBi7jkq.js → index-M5muoSKm.js} +1 -1
  23. package/lib/{index-6l7AaQMo.mjs → index-U4-cs6LF.mjs} +68 -68
  24. package/lib/{index-HrOVvUmR.mjs → index-ZqzSOsNH.mjs} +1 -1
  25. package/lib/{index-f0MmfW4C.js → index-e4IwQovx.js} +1 -1
  26. package/lib/{index-SXsxLkBQ.mjs → index-i3M9x9ys.mjs} +2 -2
  27. package/lib/{index-DFThg9zD.js → index-uD29Qviy.js} +1 -1
  28. package/lib/{index.es-i0PmGTV8.js → index.es-3N17U6U-.js} +2 -2
  29. package/lib/{index.es-wdCYxk2S.mjs → index.es-4yp-p17j.mjs} +2 -2
  30. package/lib/{index.es-qoSsRT_G.mjs → index.es-D5PlxUXA.mjs} +4 -4
  31. package/lib/{index.es-dyXbfeDn.js → index.es-OMs0sEbV.js} +1 -1
  32. package/lib/{index.es-JGv9-9pp.js → index.es-m2T5sCHF.js} +1 -1
  33. package/lib/{index.es-B2GmSqJ1.mjs → index.es-sWP5wBk1.mjs} +1 -1
  34. package/lib/index.js +1 -1
  35. package/lib/index.mjs +1 -1
  36. package/lib/{libsodium-wrappers-x1Tf86Kb.js → libsodium-wrappers-LCJ8UHG9.js} +1 -1
  37. package/lib/{libsodium-wrappers-ffJoUj0j.mjs → libsodium-wrappers-w6994RX-.mjs} +1 -1
  38. package/lib/{sei-ams4Dv3V.js → sei-Oplz3AG7.js} +1 -1
  39. package/lib/{sei-yioT3-Yb.mjs → sei-w_LUpthw.mjs} +2 -2
  40. package/lib/{solana-VyhiGF9X.mjs → solana-1K5mHs_m.mjs} +3 -3
  41. package/lib/{solana-2Gb2ijrF.js → solana-GtJSObQi.js} +1 -1
  42. package/lib/{solanaEmbed.esm-AyFAReSD.js → solanaEmbed.esm-3t3NYEW9.js} +1 -1
  43. package/lib/{solanaEmbed.esm-O2q9SxIk.mjs → solanaEmbed.esm-7dEAUE3p.mjs} +2 -2
  44. package/lib/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
  45. package/lib/src/routes/ntt/chains/solana/nttQuoter.d.ts +2 -2
  46. package/lib/src/routes/ntt/chains/solana/nttQuoter.d.ts.map +1 -1
  47. package/lib/src/routes/ntt/nttRelay.d.ts.map +1 -1
  48. package/lib/{sui-8zqO_WMc.mjs → sui-Z4KdsJtV.mjs} +1 -1
  49. package/lib/{sui-vAj128v8.js → sui-tt-QRxQS.js} +1 -1
  50. package/package.json +1 -1
  51. package/dist/assets/index-bti7uInf.js +0 -3
  52. package/lib/index-FCAzcpcI.js +0 -3
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-DFThg9zD.js"),Io=require("./dijkstra-dsi_GddY.js"),ko=require("./index-DiFBiIsU.js");require("react");require("react-dom");var Mo=function(t){for(var r=[],n=t.length,o=0;o<n;o++){var i=t.charCodeAt(o);if(i>=55296&&i<=56319&&n>o+1){var a=t.charCodeAt(o+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-uD29Qviy.js"),Io=require("./dijkstra-dsi_GddY.js"),ko=require("./index-Lyx2KgEl.js");require("react");require("react-dom");var Mo=function(t){for(var r=[],n=t.length,o=0;o<n;o++){var i=t.charCodeAt(o);if(i>=55296&&i<=56319&&n>o+1){var a=t.charCodeAt(o+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,4 +1,4 @@
1
- import { q as P, b0 as Ye, d as Z, b1 as Ze, aW as it } from "./index-TXf-Y_5p.mjs";
1
+ import { q as P, b1 as Ye, b0 as Ze, d as Z, aW as it } from "./index-GqCbgO6w.mjs";
2
2
  var Je = {}, Qe = { exports: {} }, je = {};
3
3
  (function(o) {
4
4
  o.fetch = n(P.fetch) && n(P.ReadableStream), o.writableStream = n(P.WritableStream), o.abortController = n(P.AbortController);
@@ -33,13 +33,13 @@ var Je = {}, Qe = { exports: {} }, je = {};
33
33
  }
34
34
  r = null;
35
35
  })(je);
36
- var xe = {}, Ke = je, ft = Ze, et = Ye(), Ae = xe.readyStates = {
36
+ var Oe = {}, Ke = je, ft = Ye(), et = Ze(), Ae = Oe.readyStates = {
37
37
  UNSENT: 0,
38
38
  OPENED: 1,
39
39
  HEADERS_RECEIVED: 2,
40
40
  LOADING: 3,
41
41
  DONE: 4
42
- }, $e = xe.IncomingMessage = function(o, r, h, f) {
42
+ }, $e = Oe.IncomingMessage = function(o, r, h, f) {
43
43
  var n = this;
44
44
  if (et.Readable.call(n), n._mode = h, n.headers = {}, n.rawHeaders = [], n.trailers = {}, n.rawTrailers = [], n.on("end", function() {
45
45
  Z.process.nextTick(function() {
@@ -147,11 +147,11 @@ $e.prototype._onXHRProgress = function(o) {
147
147
  }
148
148
  r._xhr.readyState === Ae.DONE && r._mode !== "ms-stream" && (o(!0), r.push(null));
149
149
  };
150
- var he = je, ht = Ze, tt = xe, ke = Ye(), ut = tt.IncomingMessage, Ve = tt.readyStates;
150
+ var he = je, ht = Ye(), tt = Oe, ke = Ze(), ut = tt.IncomingMessage, Ve = tt.readyStates;
151
151
  function ct(o, r) {
152
152
  return he.fetch && r ? "fetch" : he.mozchunkedarraybuffer ? "moz-chunked-arraybuffer" : he.msstream ? "ms-stream" : he.arraybuffer && o ? "arraybuffer" : "text";
153
153
  }
154
- var S = Qe.exports = function(o) {
154
+ var I = Qe.exports = function(o) {
155
155
  var r = this;
156
156
  ke.Writable.call(r), r._opts = o, r._body = [], r._headers = {}, o.auth && r.setHeader("Authorization", "Basic " + Z.Buffer.from(o.auth).toString("base64")), Object.keys(o.headers).forEach(function(n) {
157
157
  r.setHeader(n, o.headers[n]);
@@ -171,23 +171,23 @@ var S = Qe.exports = function(o) {
171
171
  r._onFinish();
172
172
  });
173
173
  };
174
- ht(S, ke.Writable);
175
- S.prototype.setHeader = function(o, r) {
174
+ ht(I, ke.Writable);
175
+ I.prototype.setHeader = function(o, r) {
176
176
  var h = this, f = o.toLowerCase();
177
177
  pt.indexOf(f) === -1 && (h._headers[f] = {
178
178
  name: o,
179
179
  value: r
180
180
  });
181
181
  };
182
- S.prototype.getHeader = function(o) {
182
+ I.prototype.getHeader = function(o) {
183
183
  var r = this._headers[o.toLowerCase()];
184
184
  return r ? r.value : null;
185
185
  };
186
- S.prototype.removeHeader = function(o) {
186
+ I.prototype.removeHeader = function(o) {
187
187
  var r = this;
188
188
  delete r._headers[o.toLowerCase()];
189
189
  };
190
- S.prototype._onFinish = function() {
190
+ I.prototype._onFinish = function() {
191
191
  var o = this;
192
192
  if (!o._destroyed) {
193
193
  var r = o._opts;
@@ -267,43 +267,43 @@ function lt(o) {
267
267
  return !1;
268
268
  }
269
269
  }
270
- S.prototype._onXHRProgress = function() {
270
+ I.prototype._onXHRProgress = function() {
271
271
  var o = this;
272
272
  o._resetTimers(!1), !(!lt(o._xhr) || o._destroyed) && (o._response || o._connect(), o._response._onXHRProgress(o._resetTimers.bind(o)));
273
273
  };
274
- S.prototype._connect = function() {
274
+ I.prototype._connect = function() {
275
275
  var o = this;
276
276
  o._destroyed || (o._response = new ut(o._xhr, o._fetchResponse, o._mode, o._resetTimers.bind(o)), o._response.on("error", function(r) {
277
277
  o.emit("error", r);
278
278
  }), o.emit("response", o._response));
279
279
  };
280
- S.prototype._write = function(o, r, h) {
280
+ I.prototype._write = function(o, r, h) {
281
281
  var f = this;
282
282
  f._body.push(o), h();
283
283
  };
284
- S.prototype._resetTimers = function(o) {
284
+ I.prototype._resetTimers = function(o) {
285
285
  var r = this;
286
286
  P.clearTimeout(r._socketTimer), r._socketTimer = null, o ? (P.clearTimeout(r._fetchTimer), r._fetchTimer = null) : r._socketTimeout && (r._socketTimer = P.setTimeout(function() {
287
287
  r.emit("timeout");
288
288
  }, r._socketTimeout));
289
289
  };
290
- S.prototype.abort = S.prototype.destroy = function(o) {
290
+ I.prototype.abort = I.prototype.destroy = function(o) {
291
291
  var r = this;
292
292
  r._destroyed = !0, r._resetTimers(!0), r._response && (r._response._destroyed = !0), r._xhr ? r._xhr.abort() : r._fetchAbortController && r._fetchAbortController.abort(), o && r.emit("error", o);
293
293
  };
294
- S.prototype.end = function(o, r, h) {
294
+ I.prototype.end = function(o, r, h) {
295
295
  var f = this;
296
296
  typeof o == "function" && (h = o, o = void 0), ke.Writable.prototype.end.call(f, o, r, h);
297
297
  };
298
- S.prototype.setTimeout = function(o, r) {
298
+ I.prototype.setTimeout = function(o, r) {
299
299
  var h = this;
300
300
  r && h.once("timeout", r), h._socketTimeout = o, h._resetTimers(!1);
301
301
  };
302
- S.prototype.flushHeaders = function() {
302
+ I.prototype.flushHeaders = function() {
303
303
  };
304
- S.prototype.setNoDelay = function() {
304
+ I.prototype.setNoDelay = function() {
305
305
  };
306
- S.prototype.setSocketKeepAlive = function() {
306
+ I.prototype.setSocketKeepAlive = function() {
307
307
  };
308
308
  var pt = [
309
309
  "accept-charset",
@@ -405,7 +405,7 @@ qe.exports;
405
405
  (function(h) {
406
406
  var f = r && !r.nodeType && r, n = o && !o.nodeType && o, g = typeof P == "object" && P;
407
407
  (g.global === g || g.window === g || g.self === g) && (h = g);
408
- var u, a = 2147483647, v = 36, T = 1, C = 26, m = 38, A = 700, te = 72, ae = 128, I = "-", Oe = /^xn--/, Ee = /[^\x20-\x7E]/, Ue = /[\x2E\u3002\uFF0E\uFF61]/g, Le = {
408
+ var u, a = 2147483647, v = 36, T = 1, C = 26, m = 38, A = 700, te = 72, ae = 128, S = "-", xe = /^xn--/, Ee = /[^\x20-\x7E]/, Ue = /[\x2E\u3002\uFF0E\uFF61]/g, Le = {
409
409
  overflow: "Overflow: input needs wider integers to process",
410
410
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
411
411
  "invalid-input": "Invalid input"
@@ -449,7 +449,7 @@ qe.exports;
449
449
  }
450
450
  function we(i) {
451
451
  var p = [], y = i.length, b, w = 0, U = ae, q = te, R, N, B, G, L, H, k, W, Q;
452
- for (R = i.lastIndexOf(I), R < 0 && (R = 0), N = 0; N < R; ++N)
452
+ for (R = i.lastIndexOf(S), R < 0 && (R = 0), N = 0; N < R; ++N)
453
453
  i.charCodeAt(N) >= 128 && J("not-basic"), p.push(i.charCodeAt(N));
454
454
  for (B = R > 0 ? R + 1 : 0; B < y; ) {
455
455
  for (G = w, L = 1, H = v; B >= y && J("invalid-input"), k = oe(i.charCodeAt(B++)), (k >= v || k > M((a - w) / L)) && J("overflow"), w += k * L, W = H <= q ? T : H >= q + C ? C : H - q, !(k < W); H += v)
@@ -462,7 +462,7 @@ qe.exports;
462
462
  var p, y, b, w, U, q, R, N, B, G, L, H = [], k, W, Q, me;
463
463
  for (i = Te(i), k = i.length, p = ae, y = 0, U = te, q = 0; q < k; ++q)
464
464
  L = i[q], L < 128 && H.push(re(L));
465
- for (b = w = H.length, w && H.push(I); b < k; ) {
465
+ for (b = w = H.length, w && H.push(S); b < k; ) {
466
466
  for (R = a, q = 0; q < k; ++q)
467
467
  L = i[q], L >= p && L < R && (R = L);
468
468
  for (W = b + 1, R - p > M((a - y) / W) && J("overflow"), y += (R - p) * W, p = R, q = 0; q < k; ++q)
@@ -479,10 +479,10 @@ qe.exports;
479
479
  }
480
480
  function Pe(i) {
481
481
  return be(i, function(p) {
482
- return Oe.test(p) ? we(p.slice(4).toLowerCase()) : p;
482
+ return xe.test(p) ? we(p.slice(4).toLowerCase()) : p;
483
483
  });
484
484
  }
485
- function Se(i) {
485
+ function Ie(i) {
486
486
  return be(i, function(p) {
487
487
  return Ee.test(p) ? "xn--" + Re(p) : p;
488
488
  });
@@ -507,7 +507,7 @@ qe.exports;
507
507
  },
508
508
  decode: we,
509
509
  encode: Re,
510
- toASCII: Se,
510
+ toASCII: Ie,
511
511
  toUnicode: Pe
512
512
  }, f && n)
513
513
  if (o.exports == f)
@@ -539,11 +539,11 @@ var _t = qe.exports;
539
539
  isNullOrUndefined: function(e) {
540
540
  return e == null;
541
541
  }
542
- }, v = g.default, T = a, C = ne, m = Re, A = Pe, te = we, ae = I;
543
- function I() {
542
+ }, v = g.default, T = a, C = ne, m = Re, A = Pe, te = we, ae = S;
543
+ function S() {
544
544
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
545
545
  }
546
- var Oe = /^([a-z0-9.+-]+:)/i, Ee = /:[0-9]*$/, Ue = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Le = ["<", ">", '"', "`", " ", "\r", `
546
+ var xe = /^([a-z0-9.+-]+:)/i, Ee = /:[0-9]*$/, Ue = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Le = ["<", ">", '"', "`", " ", "\r", `
547
547
  `, " "], pe = ["{", "}", "|", "\\", "^", "`"].concat(Le), M = ["'"].concat(pe), re = ["%", "/", "?", ";", "#"].concat(M), ie = ["/", "?", "#"], J = 255, de = /^[+a-z0-9A-Z_-]{0,63}$/, be = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Te = {
548
548
  javascript: !0,
549
549
  "javascript:": !0
@@ -563,12 +563,12 @@ var _t = qe.exports;
563
563
  "file:": !0
564
564
  }, ce = u.default;
565
565
  function ne(e, s, t) {
566
- if (e && T.isObject(e) && e instanceof I)
566
+ if (e && T.isObject(e) && e instanceof S)
567
567
  return e;
568
- var l = new I();
568
+ var l = new S();
569
569
  return l.parse(e, s, t), l;
570
570
  }
571
- I.prototype.parse = function(e, s, t) {
571
+ S.prototype.parse = function(e, s, t) {
572
572
  if (!T.isString(e))
573
573
  throw new TypeError("Parameter 'url' must be a string, not " + typeof e);
574
574
  var l = e.indexOf("?"), _ = l !== -1 && l < e.indexOf("#") ? "?" : "#", D = e.split(_), j = /\\/g;
@@ -579,37 +579,37 @@ var _t = qe.exports;
579
579
  if (K)
580
580
  return this.path = c, this.href = c, this.pathname = K[1], K[2] ? (this.search = K[2], s ? this.query = ce.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : s && (this.search = "", this.query = {}), this;
581
581
  }
582
- var x = Oe.exec(c);
583
- if (x) {
584
- x = x[0];
585
- var fe = x.toLowerCase();
586
- this.protocol = fe, c = c.substr(x.length);
582
+ var O = xe.exec(c);
583
+ if (O) {
584
+ O = O[0];
585
+ var fe = O.toLowerCase();
586
+ this.protocol = fe, c = c.substr(O.length);
587
587
  }
588
- if (t || x || c.match(/^\/\/[^@\/]+@[^@\/]+/)) {
588
+ if (t || O || c.match(/^\/\/[^@\/]+@[^@\/]+/)) {
589
589
  var ve = c.substr(0, 2) === "//";
590
- ve && !(x && ue[x]) && (c = c.substr(2), this.slashes = !0);
590
+ ve && !(O && ue[O]) && (c = c.substr(2), this.slashes = !0);
591
591
  }
592
- if (!ue[x] && (ve || x && !oe[x])) {
593
- for (var F = -1, O = 0; O < ie.length; O++) {
594
- var ee = c.indexOf(ie[O]);
592
+ if (!ue[O] && (ve || O && !oe[O])) {
593
+ for (var F = -1, x = 0; x < ie.length; x++) {
594
+ var ee = c.indexOf(ie[x]);
595
595
  ee !== -1 && (F === -1 || ee < F) && (F = ee);
596
596
  }
597
597
  var ye, $;
598
598
  F === -1 ? $ = c.lastIndexOf("@") : $ = c.lastIndexOf("@", F), $ !== -1 && (ye = c.slice(0, $), c = c.slice($ + 1), this.auth = decodeURIComponent(ye)), F = -1;
599
- for (var O = 0; O < re.length; O++) {
600
- var ee = c.indexOf(re[O]);
599
+ for (var x = 0; x < re.length; x++) {
600
+ var ee = c.indexOf(re[x]);
601
601
  ee !== -1 && (F === -1 || ee < F) && (F = ee);
602
602
  }
603
603
  F === -1 && (F = c.length), this.host = c.slice(0, F), c = c.slice(F), this.parseHost(), this.hostname = this.hostname || "";
604
604
  var ge = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
605
605
  if (!ge)
606
- for (var d = this.hostname.split(/\./), O = 0, E = d.length; O < E; O++) {
607
- var V = d[O];
606
+ for (var d = this.hostname.split(/\./), x = 0, E = d.length; x < E; x++) {
607
+ var V = d[x];
608
608
  if (V && !V.match(de)) {
609
- for (var z = "", X = 0, Ie = V.length; X < Ie; X++)
609
+ for (var z = "", X = 0, Se = V.length; X < Se; X++)
610
610
  V.charCodeAt(X) > 127 ? z += "x" : z += V[X];
611
611
  if (!z.match(de)) {
612
- var se = d.slice(0, O), Y = d.slice(O + 1), le = V.match(be);
612
+ var se = d.slice(0, x), Y = d.slice(x + 1), le = V.match(be);
613
613
  le && (se.push(le[1]), Y.unshift(le[2])), Y.length && (c = "/" + Y.join(".") + c), this.hostname = se.join(".");
614
614
  break;
615
615
  }
@@ -620,8 +620,8 @@ var _t = qe.exports;
620
620
  this.host = st + Fe, this.href += this.host, ge && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), c[0] !== "/" && (c = "/" + c));
621
621
  }
622
622
  if (!Te[fe])
623
- for (var O = 0, E = M.length; O < E; O++) {
624
- var _e = M[O];
623
+ for (var x = 0, E = M.length; x < E; x++) {
624
+ var _e = M[x];
625
625
  if (c.indexOf(_e) !== -1) {
626
626
  var Me = encodeURIComponent(_e);
627
627
  Me === _e && (Me = escape(_e)), c = c.split(_e).join(Me);
@@ -637,9 +637,9 @@ var _t = qe.exports;
637
637
  return this.href = this.format(), this;
638
638
  };
639
639
  function we(e) {
640
- return T.isString(e) && (e = ne(e)), e instanceof I ? e.format() : I.prototype.format.call(e);
640
+ return T.isString(e) && (e = ne(e)), e instanceof S ? e.format() : S.prototype.format.call(e);
641
641
  }
642
- I.prototype.format = function() {
642
+ S.prototype.format = function() {
643
643
  var e = this.auth || "";
644
644
  e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@");
645
645
  var s = this.protocol || "", t = this.pathname || "", l = this.hash || "", _ = !1, D = "";
@@ -652,18 +652,18 @@ var _t = qe.exports;
652
652
  function Re(e, s) {
653
653
  return ne(e, !1, !0).resolve(s);
654
654
  }
655
- I.prototype.resolve = function(e) {
655
+ S.prototype.resolve = function(e) {
656
656
  return this.resolveObject(ne(e, !1, !0)).format();
657
657
  };
658
658
  function Pe(e, s) {
659
659
  return e ? ne(e, !1, !0).resolveObject(s) : s;
660
660
  }
661
- I.prototype.resolveObject = function(e) {
661
+ S.prototype.resolveObject = function(e) {
662
662
  if (T.isString(e)) {
663
- var s = new I();
663
+ var s = new S();
664
664
  s.parse(e, !1, !0), e = s;
665
665
  }
666
- for (var t = new I(), l = Object.keys(this), _ = 0; _ < l.length; _++) {
666
+ for (var t = new S(), l = Object.keys(this), _ = 0; _ < l.length; _++) {
667
667
  var D = l[_];
668
668
  t[D] = this[D];
669
669
  }
@@ -678,8 +678,8 @@ var _t = qe.exports;
678
678
  }
679
679
  if (e.protocol && e.protocol !== t.protocol) {
680
680
  if (!oe[e.protocol]) {
681
- for (var x = Object.keys(e), fe = 0; fe < x.length; fe++) {
682
- var ve = x[fe];
681
+ for (var O = Object.keys(e), fe = 0; fe < O.length; fe++) {
682
+ var ve = O[fe];
683
683
  t[ve] = e[ve];
684
684
  }
685
685
  return t.href = t.format(), t;
@@ -691,8 +691,8 @@ var _t = qe.exports;
691
691
  } else
692
692
  t.pathname = e.pathname;
693
693
  if (t.search = e.search, t.query = e.query, t.host = e.host || "", t.auth = e.auth, t.hostname = e.hostname || e.host, t.port = e.port, t.pathname || t.search) {
694
- var F = t.pathname || "", O = t.search || "";
695
- t.path = F + O;
694
+ var F = t.pathname || "", x = t.search || "";
695
+ t.path = F + x;
696
696
  }
697
697
  return t.slashes = t.slashes || e.slashes, t.href = t.format(), t;
698
698
  }
@@ -711,12 +711,12 @@ var _t = qe.exports;
711
711
  }
712
712
  if (!d.length)
713
713
  return t.pathname = null, t.search ? t.path = "/" + t.search : t.path = null, t.href = t.format(), t;
714
- for (var X = d.slice(-1)[0], Ie = (t.host || e.host || d.length > 1) && (X === "." || X === "..") || X === "", se = 0, Y = d.length; Y >= 0; Y--)
714
+ for (var X = d.slice(-1)[0], Se = (t.host || e.host || d.length > 1) && (X === "." || X === "..") || X === "", se = 0, Y = d.length; Y >= 0; Y--)
715
715
  X = d[Y], X === "." ? d.splice(Y, 1) : X === ".." ? (d.splice(Y, 1), se++) : se && (d.splice(Y, 1), se--);
716
716
  if (!$ && !ge)
717
717
  for (; se--; se)
718
718
  d.unshift("..");
719
- $ && d[0] !== "" && (!d[0] || d[0].charAt(0) !== "/") && d.unshift(""), Ie && d.join("/").substr(-1) !== "/" && d.push("");
719
+ $ && d[0] !== "" && (!d[0] || d[0].charAt(0) !== "/") && d.unshift(""), Se && d.join("/").substr(-1) !== "/" && d.push("");
720
720
  var le = d[0] === "" || d[0] && d[0].charAt(0) === "/";
721
721
  if (V) {
722
722
  t.hostname = t.host = le ? "" : d.length ? d.shift() : "";
@@ -724,11 +724,11 @@ var _t = qe.exports;
724
724
  z && (t.auth = z.shift(), t.host = t.hostname = z.shift());
725
725
  }
726
726
  return $ = $ || t.host && d.length, $ && !le && d.unshift(""), d.length ? t.pathname = d.join("/") : (t.pathname = null, t.path = null), (!T.isNull(t.pathname) || !T.isNull(t.search)) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.auth = e.auth || t.auth, t.slashes = t.slashes || e.slashes, t.href = t.format(), t;
727
- }, I.prototype.parseHost = function() {
727
+ }, S.prototype.parseHost = function() {
728
728
  var e = this.host, s = Ee.exec(e);
729
729
  s && (s = s[0], s !== ":" && (this.port = s.substr(1)), e = e.substr(0, e.length - s.length)), e && (this.hostname = e);
730
730
  };
731
- function Se(e, s) {
731
+ function Ie(e, s) {
732
732
  for (var t = 0, l = e.length - 1; l >= 0; l--) {
733
733
  var _ = e[l];
734
734
  _ === "." ? e.splice(l, 1) : _ === ".." ? (e.splice(l, 1), t++) : t && (e.splice(l, 1), t--);
@@ -747,7 +747,7 @@ var _t = qe.exports;
747
747
  continue;
748
748
  e = l + "/" + e, s = l.charAt(0) === "/";
749
749
  }
750
- return e = Se(p(e.split("/"), function(_) {
750
+ return e = Ie(p(e.split("/"), function(_) {
751
751
  return !!_;
752
752
  }), !s).join("/"), (s ? "/" : "") + e || ".";
753
753
  }
@@ -859,8 +859,8 @@ var _t = qe.exports;
859
859
  return b(s);
860
860
  if (typeof t != "object" || t === null)
861
861
  throw new TypeError('The "options" argument must be of type object.');
862
- var j = (l = t.auth) != null ? l : !0, c = (_ = t.fragment) != null ? _ : !0, K = (D = t.search) != null ? D : !0, x = new R(s.toString());
863
- return j || (x.username = "", x.password = ""), c || (x.hash = ""), K || (x.search = ""), x.toString();
862
+ var j = (l = t.auth) != null ? l : !0, c = (_ = t.fragment) != null ? _ : !0, K = (D = t.search) != null ? D : !0, O = new R(s.toString());
863
+ return j || (O.username = "", O.password = ""), c || (O.hash = ""), K || (O.search = ""), O.toString();
864
864
  }
865
865
  ), We = {
866
866
  format: Xe,
@@ -879,7 +879,7 @@ var _t = qe.exports;
879
879
  })(He, He.exports);
880
880
  var rt = He.exports;
881
881
  (function(o) {
882
- var r = dt, h = xe, f = mt, n = gt, g = rt, u = o;
882
+ var r = dt, h = Oe, f = mt, n = gt, g = rt, u = o;
883
883
  u.request = function(a, v) {
884
884
  typeof a == "string" ? a = g.parse(a) : a = f(a);
885
885
  var T = P.location.protocol.search(/^https?:$/) === -1 ? "http:" : "", C = a.protocol || T, m = a.hostname || a.host, A = a.port, te = a.path || "/";
@@ -396,7 +396,7 @@ class ke {
396
396
  }
397
397
  async initUi() {
398
398
  if (typeof window < "u") {
399
- await import("./index-SXsxLkBQ.mjs");
399
+ await import("./index-i3M9x9ys.mjs");
400
400
  const t = document.createElement("wcm-modal");
401
401
  document.body.insertAdjacentElement("beforeend", t), w.setIsUiLoaded(!0);
402
402
  }
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index-DiFBiIsU.js"),kr=require("./dijkstra-dsi_GddY.js"),Qt=require("./index.es-dyXbfeDn.js"),pt=require("./index.es-JGv9-9pp.js");require("react");require("react-dom");var Ar=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},Nr=Ar,mt={"text/plain":"Text","text/html":"Url",default:"Text"},Br="Copy to clipboard: #{key}, Enter";function Rr(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Lr(e,t){var n,r,o,a,i,l,c=!1;t||(t={}),n=t.debug||!1;try{o=Nr(),a=document.createRange(),i=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(s){if(s.stopPropagation(),t.format)if(s.preventDefault(),typeof s.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=mt[t.format]||mt.default;window.clipboardData.setData(d,e)}else s.clipboardData.clearData(),s.clipboardData.setData(t.format,e);t.onCopy&&(s.preventDefault(),t.onCopy(s.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),i.addRange(a);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(s){n&&console.error("unable to copy using execCommand: ",s),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=Rr("message"in t?t.message:Br),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var Mr=Lr,Ge={},A={};Object.defineProperty(A,"__esModule",{value:!0});var Jt=A.getLocalStorage=ln=A.getLocalStorageOrThrow=an=A.getCrypto=on=A.getCryptoOrThrow=rn=A.getLocation=nn=A.getLocationOrThrow=tn=A.getNavigator=en=A.getNavigatorOrThrow=Zt=A.getDocument=Xt=A.getDocumentOrThrow=Gt=A.getFromWindowOrThrow=jt=A.getFromWindow=void 0;function Q(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}var jt=A.getFromWindow=Q;function re(e){const t=Q(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}var Gt=A.getFromWindowOrThrow=re;function Pr(){return re("document")}var Xt=A.getDocumentOrThrow=Pr;function Or(){return Q("document")}var Zt=A.getDocument=Or;function Ir(){return re("navigator")}var en=A.getNavigatorOrThrow=Ir;function Dr(){return Q("navigator")}var tn=A.getNavigator=Dr;function Ur(){return re("location")}var nn=A.getLocationOrThrow=Ur;function $r(){return Q("location")}var rn=A.getLocation=$r;function Wr(){return re("crypto")}var on=A.getCryptoOrThrow=Wr;function Fr(){return Q("crypto")}var an=A.getCrypto=Fr;function zr(){return re("localStorage")}var ln=A.getLocalStorageOrThrow=zr;function qr(){return Q("localStorage")}Jt=A.getLocalStorage=qr;Object.defineProperty(Ge,"__esModule",{value:!0});var cn=Ge.getWindowMetadata=void 0;const vt=A;function Hr(){let e,t;try{e=vt.getDocumentOrThrow(),t=vt.getLocationOrThrow()}catch{return null}function n(){const d=e.getElementsByTagName("link"),y=[];for(let _=0;_<d.length;_++){const h=d[_],b=h.getAttribute("rel");if(b&&b.toLowerCase().indexOf("icon")>-1){const f=h.getAttribute("href");if(f)if(f.toLowerCase().indexOf("https:")===-1&&f.toLowerCase().indexOf("http:")===-1&&f.indexOf("//")!==0){let v=t.protocol+"//"+t.host;if(f.indexOf("/")===0)v+=f;else{const m=t.pathname.split("/");m.pop();const g=m.join("/");v+=g+"/"+f}y.push(v)}else if(f.indexOf("//")===0){const v=t.protocol+f;y.push(v)}else y.push(f)}}return y}function r(...d){const y=e.getElementsByTagName("meta");for(let _=0;_<y.length;_++){const h=y[_],b=["itemprop","property","name"].map(f=>h.getAttribute(f)).filter(f=>f?d.includes(f):!1);if(b.length&&b){const f=h.getAttribute("content");if(f)return f}}return""}function o(){let d=r("name","og:site_name","og:title","twitter:title");return d||(d=e.title),d}function a(){return r("description","og:description","twitter:description","keywords")}const i=o(),l=a(),c=t.origin,u=n();return{description:l,url:c,icons:u,name:i}}cn=Ge.getWindowMetadata=Hr;var Kr=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,l=a.length;i<l;i++,o++)r[o]=a[i];return r},Vr=function(){function e(t,n,r){this.name=t,this.version=n,this.os=r,this.type="browser"}return e}(),Yr=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=B.dist.process.platform}return e}(),Qr=function(){function e(t,n,r,o){this.name=t,this.version=n,this.os=r,this.bot=o,this.type="bot-device"}return e}(),Jr=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),jr=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),Gr=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Xr=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,wt=3,Zr=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",Gr]],yt=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function eo(e){return e?bt(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new jr:typeof navigator<"u"?bt(navigator.userAgent):ro()}function to(e){return e!==""&&Zr.reduce(function(t,n){var r=n[0],o=n[1];if(t)return t;var a=o.exec(e);return!!a&&[r,a]},!1)}function bt(e){var t=to(e);if(!t)return null;var n=t[0],r=t[1];if(n==="searchbot")return new Jr;var o=r[1]&&r[1].split(/[._]/).slice(0,3);o?o.length<wt&&(o=Kr(o,oo(wt-o.length))):o=[];var a=o.join("."),i=no(e),l=Xr.exec(e);return l&&l[1]?new Qr(n,a,i,l[1]):new Vr(n,a,i)}function no(e){for(var t=0,n=yt.length;t<n;t++){var r=yt[t],o=r[0],a=r[1],i=a.exec(e);if(i)return o}return null}function ro(){var e=typeof B.dist.process<"u"&&B.dist.process.version;return e?new Yr(B.dist.process.version.slice(1)):null}function oo(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}function Xe(e){return eo(e)}function xe(){const e=Xe();return e&&e.os?e.os:void 0}function sn(){const e=xe();return e?e.toLowerCase().includes("android"):!1}function un(){const e=xe();return e?e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function ao(){return xe()?sn()||un():!1}function fn(){const e=Xe();return e&&e.name?e.name.toLowerCase()==="node":!1}function io(){return!fn()&&!!dn()}const lo=jt,co=Gt,so=Xt,uo=Zt,fo=en,dn=tn,_o=nn,ho=rn,go=on,po=an,mo=ln,Te=Jt;function vo(){return cn()}function wo(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch{return e}}function yo(e){return typeof e=="string"?e:JSON.stringify(e)}const _n=wo,hn=yo;function gn(e,t){const n=hn(t),r=Te();r&&r.setItem(e,n)}function bo(e){let t=null,n=null;const r=Te();return r&&(n=r.getItem(e)),t=n&&_n(n),t}function Co(e){const t=Te();t&&t.removeItem(e)}const pn="WALLETCONNECT_DEEPLINK_CHOICE";function Eo(e,t){const n=encodeURIComponent(e);return t.universalLink?`${t.universalLink}/wc?uri=${n}`:t.deepLink?`${t.deepLink}${t.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function xo(e){const t=e.href.split("?")[0];gn(pn,Object.assign(Object.assign({},e),{href:t}))}function mn(e,t){return e.filter(n=>n.name.toLowerCase().includes(t.toLowerCase()))[0]}function To(e,t){let n=e;return t&&(n=t.map(r=>mn(e,r)).filter(Boolean)),n}const vn="https://registry.walletconnect.com";function So(){return vn+"/api/v2/wallets"}function ko(){return vn+"/api/v2/dapps"}function wn(e,t="mobile"){var n;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:(n=e.image_url.sm)!==null&&n!==void 0?n:"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function Ao(e,t="mobile"){return Object.values(e).filter(n=>!!n[t].universal||!!n[t].native).map(n=>wn(n,t))}const No=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:Xe,detectOS:xe,formatIOSMobile:Eo,formatMobileRegistry:Ao,formatMobileRegistryEntry:wn,getClientMeta:vo,getCrypto:po,getCryptoOrThrow:go,getDappRegistryUrl:ko,getDocument:uo,getDocumentOrThrow:so,getFromWindow:lo,getFromWindowOrThrow:co,getLocal:bo,getLocalStorage:Te,getLocalStorageOrThrow:mo,getLocation:ho,getLocationOrThrow:_o,getMobileLinkRegistry:To,getMobileRegistryEntry:mn,getNavigator:dn,getNavigatorOrThrow:fo,getWalletRegistryUrl:So,isAndroid:sn,isBrowser:io,isIOS:un,isMobile:ao,isNode:fn,mobileLinkChoiceKey:pn,removeLocal:Co,safeJsonParse:_n,safeJsonStringify:hn,saveMobileLinkInfo:xo,setLocal:gn},Symbol.toStringTag,{value:"Module"})),Bo=B.getAugmentedNamespace(No);var de={},Ro=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},yn={},K={},Lo={}.toString,Ze=Array.isArray||function(e){return Lo.call(e)=="[object Array]"},Mo=Ze;function Po(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42}catch{return!1}}T.TYPED_ARRAY_SUPPORT=Po();var Ct=T.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function T(e,t,n){return!T.TYPED_ARRAY_SUPPORT&&!(this instanceof T)?new T(e,t,n):typeof e=="number"?bn(this,e):Fo(this,e,t,n)}T.TYPED_ARRAY_SUPPORT&&(T.prototype.__proto__=Uint8Array.prototype,T.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&T[Symbol.species]===T&&Object.defineProperty(T,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function et(e){if(e>=Ct)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ct.toString(16)+" bytes");return e|0}function Oo(e){return e!==e}function G(e,t){var n;return T.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=T.prototype):(n=e,n===null&&(n=new T(t)),n.length=t),n}function bn(e,t){var n=G(e,t<0?0:et(t)|0);if(!T.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)n[r]=0;return n}function Io(e,t){var n=En(t)|0,r=G(e,n),o=r.write(t);return o!==n&&(r=r.slice(0,o)),r}function Fe(e,t){for(var n=t.length<0?0:et(t.length)|0,r=G(e,n),o=0;o<n;o+=1)r[o]=t[o]&255;return r}function Do(e,t,n,r){if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");var o;return n===void 0&&r===void 0?o=new Uint8Array(t):r===void 0?o=new Uint8Array(t,n):o=new Uint8Array(t,n,r),T.TYPED_ARRAY_SUPPORT?o.__proto__=T.prototype:o=Fe(e,o),o}function Uo(e,t){if(T.isBuffer(t)){var n=et(t.length)|0,r=G(e,n);return r.length===0||t.copy(r,0,0,n),r}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||Oo(t.length)?G(e,0):Fe(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return Fe(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Cn(e,t){t=t||1/0;for(var n,r=e.length,o=null,a=[],i=0;i<r;++i){if(n=e.charCodeAt(i),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return a}function En(e){if(T.isBuffer(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var t=e.length;return t===0?0:Cn(e).length}function $o(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Wo(e,t,n,r){return $o(Cn(t,e.length-n),e,n,r)}function Fo(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?Do(e,t,n,r):typeof t=="string"?Io(e,t):Uo(e,t)}T.prototype.write=function(t,n,r){n===void 0?(r=this.length,n=0):r===void 0&&typeof n=="string"?(r=this.length,n=0):isFinite(n)&&(n=n|0,isFinite(r)?r=r|0:r=void 0);var o=this.length-n;if((r===void 0||r>o)&&(r=o),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Wo(this,t,n,r)};T.prototype.slice=function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var o;if(T.TYPED_ARRAY_SUPPORT)o=this.subarray(t,n),o.__proto__=T.prototype;else{var a=n-t;o=new T(a,void 0);for(var i=0;i<a;++i)o[i]=this[i+t]}return o};T.prototype.copy=function(t,n,r,o){if(r||(r=0),!o&&o!==0&&(o=this.length),n>=t.length&&(n=t.length),n||(n=0),o>0&&o<r&&(o=r),o===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-n<o-r&&(o=t.length-n+r);var a=o-r,i;if(this===t&&r<n&&n<o)for(i=a-1;i>=0;--i)t[i+n]=this[i+r];else if(a<1e3||!T.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+n]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),n);return a};T.prototype.fill=function(t,n,r){if(typeof t=="string"){if(typeof n=="string"?(n=0,r=this.length):typeof r=="string"&&(r=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var a;if(typeof t=="number")for(a=n;a<r;++a)this[a]=t;else{var i=T.isBuffer(t)?t:new T(t),l=i.length;for(a=0;a<r-n;++a)this[a+n]=i[a%l]}return this};T.concat=function(t,n){if(!Mo(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return G(null,0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var o=bn(null,n),a=0;for(r=0;r<t.length;++r){var i=t[r];if(!T.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(o,a),a+=i.length}return o};T.byteLength=En;T.prototype._isBuffer=!0;T.isBuffer=function(t){return!!(t!=null&&t._isBuffer)};K.alloc=function(e){var t=new T(e);return t.fill(0),t};K.from=function(e){return new T(e)};var O={},tt,zo=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};O.getSymbolTotalCodewords=function(t){return zo[t]};O.getBCHDigit=function(e){for(var t=0;e!==0;)t++,e>>>=1;return t};O.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');tt=t};O.isKanjiModeEnabled=function(){return typeof tt<"u"};O.toSJIS=function(t){return tt(t)};var Se={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");var r=n.toLowerCase();switch(r){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}})(Se);function xn(){this.buffer=[],this.length=0}xn.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var qo=xn,Et=K;function _e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=Et.alloc(e*e),this.reservedBit=Et.alloc(e*e)}_e.prototype.set=function(e,t,n,r){var o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)};_e.prototype.get=function(e,t){return this.data[e*this.size+t]};_e.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};_e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ho=_e,Tn={};(function(e){var t=O.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];for(var o=Math.floor(r/7)+2,a=t(r),i=a===145?26:Math.ceil((a-13)/(2*o-2))*2,l=[a-7],c=1;c<o-1;c++)l[c]=l[c-1]-i;return l.push(6),l.reverse()},e.getPositions=function(r){for(var o=[],a=e.getRowColCoords(r),i=a.length,l=0;l<i;l++)for(var c=0;c<i;c++)l===0&&c===0||l===0&&c===i-1||l===i-1&&c===0||o.push([a[l],a[c]]);return o}})(Tn);var Sn={},Ko=O.getSymbolSize,xt=7;Sn.getPositions=function(t){var n=Ko(t);return[[0,0],[n-xt,0],[0,n-xt]]};var kn={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){for(var a=o.size,i=0,l=0,c=0,u=null,s=null,d=0;d<a;d++){l=c=0,u=s=null;for(var y=0;y<a;y++){var _=o.get(d,y);_===u?l++:(l>=5&&(i+=t.N1+(l-5)),u=_,l=1),_=o.get(y,d),_===s?c++:(c>=5&&(i+=t.N1+(c-5)),s=_,c=1)}l>=5&&(i+=t.N1+(l-5)),c>=5&&(i+=t.N1+(c-5))}return i},e.getPenaltyN2=function(o){for(var a=o.size,i=0,l=0;l<a-1;l++)for(var c=0;c<a-1;c++){var u=o.get(l,c)+o.get(l,c+1)+o.get(l+1,c)+o.get(l+1,c+1);(u===4||u===0)&&i++}return i*t.N2},e.getPenaltyN3=function(o){for(var a=o.size,i=0,l=0,c=0,u=0;u<a;u++){l=c=0;for(var s=0;s<a;s++)l=l<<1&2047|o.get(u,s),s>=10&&(l===1488||l===93)&&i++,c=c<<1&2047|o.get(s,u),s>=10&&(c===1488||c===93)&&i++}return i*t.N3},e.getPenaltyN4=function(o){for(var a=0,i=o.data.length,l=0;l<i;l++)a+=o.data[l];var c=Math.abs(Math.ceil(a*100/i/5)-10);return c*t.N4};function n(r,o,a){switch(r){case e.Patterns.PATTERN000:return(o+a)%2===0;case e.Patterns.PATTERN001:return o%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(o+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return o*a%2+o*a%3===0;case e.Patterns.PATTERN110:return(o*a%2+o*a%3)%2===0;case e.Patterns.PATTERN111:return(o*a%3+(o+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(o,a){for(var i=a.size,l=0;l<i;l++)for(var c=0;c<i;c++)a.isReserved(c,l)||a.xor(c,l,n(o,c,l))},e.getBestMask=function(o,a){for(var i=Object.keys(e.Patterns).length,l=0,c=1/0,u=0;u<i;u++){a(u),e.applyMask(u,o);var s=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(u,o),s<c&&(c=s,l=u)}return l}})(kn);var ke={},q=Se,pe=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],me=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ke.getBlocksCount=function(t,n){switch(n){case q.L:return pe[(t-1)*4+0];case q.M:return pe[(t-1)*4+1];case q.Q:return pe[(t-1)*4+2];case q.H:return pe[(t-1)*4+3];default:return}};ke.getTotalCodewordsCount=function(t,n){switch(n){case q.L:return me[(t-1)*4+0];case q.M:return me[(t-1)*4+1];case q.Q:return me[(t-1)*4+2];case q.H:return me[(t-1)*4+3];default:return}};var An={},Ae={},Nn=K,ie=Nn.alloc(512),we=Nn.alloc(256);(function(){for(var t=1,n=0;n<255;n++)ie[n]=t,we[t]=n,t<<=1,t&256&&(t^=285);for(n=255;n<512;n++)ie[n]=ie[n-255]})();Ae.log=function(t){if(t<1)throw new Error("log("+t+")");return we[t]};Ae.exp=function(t){return ie[t]};Ae.mul=function(t,n){return t===0||n===0?0:ie[we[t]+we[n]]};(function(e){var t=K,n=Ae;e.mul=function(o,a){for(var i=t.alloc(o.length+a.length-1),l=0;l<o.length;l++)for(var c=0;c<a.length;c++)i[l+c]^=n.mul(o[l],a[c]);return i},e.mod=function(o,a){for(var i=t.from(o);i.length-a.length>=0;){for(var l=i[0],c=0;c<a.length;c++)i[c]^=n.mul(a[c],l);for(var u=0;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(o){for(var a=t.from([1]),i=0;i<o;i++)a=e.mul(a,[1,n.exp(i)]);return a}})(An);var Tt=K,Bn=An,Vo=B.bufferPolyfill.Buffer;function nt(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}nt.prototype.initialize=function(t){this.degree=t,this.genPoly=Bn.generateECPolynomial(this.degree)};nt.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var n=Tt.alloc(this.degree),r=Vo.concat([t,n],t.length+this.degree),o=Bn.mod(r,this.genPoly),a=this.degree-o.length;if(a>0){var i=Tt.alloc(this.degree);return o.copy(i,a),i}return o};var Yo=nt,Rn={},V={},rt={};rt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var D={},Ln="[0-9]+",Qo="[A-Z $%*+\\-./:]+",se="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";se=se.replace(/u/g,"\\u");var Jo="(?:(?![A-Z0-9 $%*+\\-./:]|"+se+`)(?:.|[\r
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index-Lyx2KgEl.js"),kr=require("./dijkstra-dsi_GddY.js"),Qt=require("./index.es-OMs0sEbV.js"),pt=require("./index.es-m2T5sCHF.js");require("react");require("react-dom");var Ar=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},Nr=Ar,mt={"text/plain":"Text","text/html":"Url",default:"Text"},Br="Copy to clipboard: #{key}, Enter";function Rr(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Lr(e,t){var n,r,o,a,i,l,c=!1;t||(t={}),n=t.debug||!1;try{o=Nr(),a=document.createRange(),i=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(s){if(s.stopPropagation(),t.format)if(s.preventDefault(),typeof s.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=mt[t.format]||mt.default;window.clipboardData.setData(d,e)}else s.clipboardData.clearData(),s.clipboardData.setData(t.format,e);t.onCopy&&(s.preventDefault(),t.onCopy(s.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),i.addRange(a);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(s){n&&console.error("unable to copy using execCommand: ",s),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=Rr("message"in t?t.message:Br),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var Mr=Lr,Ge={},A={};Object.defineProperty(A,"__esModule",{value:!0});var Jt=A.getLocalStorage=ln=A.getLocalStorageOrThrow=an=A.getCrypto=on=A.getCryptoOrThrow=rn=A.getLocation=nn=A.getLocationOrThrow=tn=A.getNavigator=en=A.getNavigatorOrThrow=Zt=A.getDocument=Xt=A.getDocumentOrThrow=Gt=A.getFromWindowOrThrow=jt=A.getFromWindow=void 0;function Q(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}var jt=A.getFromWindow=Q;function re(e){const t=Q(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}var Gt=A.getFromWindowOrThrow=re;function Pr(){return re("document")}var Xt=A.getDocumentOrThrow=Pr;function Or(){return Q("document")}var Zt=A.getDocument=Or;function Ir(){return re("navigator")}var en=A.getNavigatorOrThrow=Ir;function Dr(){return Q("navigator")}var tn=A.getNavigator=Dr;function Ur(){return re("location")}var nn=A.getLocationOrThrow=Ur;function $r(){return Q("location")}var rn=A.getLocation=$r;function Wr(){return re("crypto")}var on=A.getCryptoOrThrow=Wr;function Fr(){return Q("crypto")}var an=A.getCrypto=Fr;function zr(){return re("localStorage")}var ln=A.getLocalStorageOrThrow=zr;function qr(){return Q("localStorage")}Jt=A.getLocalStorage=qr;Object.defineProperty(Ge,"__esModule",{value:!0});var cn=Ge.getWindowMetadata=void 0;const vt=A;function Hr(){let e,t;try{e=vt.getDocumentOrThrow(),t=vt.getLocationOrThrow()}catch{return null}function n(){const d=e.getElementsByTagName("link"),y=[];for(let _=0;_<d.length;_++){const h=d[_],b=h.getAttribute("rel");if(b&&b.toLowerCase().indexOf("icon")>-1){const f=h.getAttribute("href");if(f)if(f.toLowerCase().indexOf("https:")===-1&&f.toLowerCase().indexOf("http:")===-1&&f.indexOf("//")!==0){let v=t.protocol+"//"+t.host;if(f.indexOf("/")===0)v+=f;else{const m=t.pathname.split("/");m.pop();const g=m.join("/");v+=g+"/"+f}y.push(v)}else if(f.indexOf("//")===0){const v=t.protocol+f;y.push(v)}else y.push(f)}}return y}function r(...d){const y=e.getElementsByTagName("meta");for(let _=0;_<y.length;_++){const h=y[_],b=["itemprop","property","name"].map(f=>h.getAttribute(f)).filter(f=>f?d.includes(f):!1);if(b.length&&b){const f=h.getAttribute("content");if(f)return f}}return""}function o(){let d=r("name","og:site_name","og:title","twitter:title");return d||(d=e.title),d}function a(){return r("description","og:description","twitter:description","keywords")}const i=o(),l=a(),c=t.origin,u=n();return{description:l,url:c,icons:u,name:i}}cn=Ge.getWindowMetadata=Hr;var Kr=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,l=a.length;i<l;i++,o++)r[o]=a[i];return r},Vr=function(){function e(t,n,r){this.name=t,this.version=n,this.os=r,this.type="browser"}return e}(),Yr=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=B.dist.process.platform}return e}(),Qr=function(){function e(t,n,r,o){this.name=t,this.version=n,this.os=r,this.bot=o,this.type="bot-device"}return e}(),Jr=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),jr=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),Gr=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Xr=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,wt=3,Zr=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",Gr]],yt=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function eo(e){return e?bt(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new jr:typeof navigator<"u"?bt(navigator.userAgent):ro()}function to(e){return e!==""&&Zr.reduce(function(t,n){var r=n[0],o=n[1];if(t)return t;var a=o.exec(e);return!!a&&[r,a]},!1)}function bt(e){var t=to(e);if(!t)return null;var n=t[0],r=t[1];if(n==="searchbot")return new Jr;var o=r[1]&&r[1].split(/[._]/).slice(0,3);o?o.length<wt&&(o=Kr(o,oo(wt-o.length))):o=[];var a=o.join("."),i=no(e),l=Xr.exec(e);return l&&l[1]?new Qr(n,a,i,l[1]):new Vr(n,a,i)}function no(e){for(var t=0,n=yt.length;t<n;t++){var r=yt[t],o=r[0],a=r[1],i=a.exec(e);if(i)return o}return null}function ro(){var e=typeof B.dist.process<"u"&&B.dist.process.version;return e?new Yr(B.dist.process.version.slice(1)):null}function oo(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}function Xe(e){return eo(e)}function xe(){const e=Xe();return e&&e.os?e.os:void 0}function sn(){const e=xe();return e?e.toLowerCase().includes("android"):!1}function un(){const e=xe();return e?e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function ao(){return xe()?sn()||un():!1}function fn(){const e=Xe();return e&&e.name?e.name.toLowerCase()==="node":!1}function io(){return!fn()&&!!dn()}const lo=jt,co=Gt,so=Xt,uo=Zt,fo=en,dn=tn,_o=nn,ho=rn,go=on,po=an,mo=ln,Te=Jt;function vo(){return cn()}function wo(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch{return e}}function yo(e){return typeof e=="string"?e:JSON.stringify(e)}const _n=wo,hn=yo;function gn(e,t){const n=hn(t),r=Te();r&&r.setItem(e,n)}function bo(e){let t=null,n=null;const r=Te();return r&&(n=r.getItem(e)),t=n&&_n(n),t}function Co(e){const t=Te();t&&t.removeItem(e)}const pn="WALLETCONNECT_DEEPLINK_CHOICE";function Eo(e,t){const n=encodeURIComponent(e);return t.universalLink?`${t.universalLink}/wc?uri=${n}`:t.deepLink?`${t.deepLink}${t.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function xo(e){const t=e.href.split("?")[0];gn(pn,Object.assign(Object.assign({},e),{href:t}))}function mn(e,t){return e.filter(n=>n.name.toLowerCase().includes(t.toLowerCase()))[0]}function To(e,t){let n=e;return t&&(n=t.map(r=>mn(e,r)).filter(Boolean)),n}const vn="https://registry.walletconnect.com";function So(){return vn+"/api/v2/wallets"}function ko(){return vn+"/api/v2/dapps"}function wn(e,t="mobile"){var n;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:(n=e.image_url.sm)!==null&&n!==void 0?n:"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function Ao(e,t="mobile"){return Object.values(e).filter(n=>!!n[t].universal||!!n[t].native).map(n=>wn(n,t))}const No=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:Xe,detectOS:xe,formatIOSMobile:Eo,formatMobileRegistry:Ao,formatMobileRegistryEntry:wn,getClientMeta:vo,getCrypto:po,getCryptoOrThrow:go,getDappRegistryUrl:ko,getDocument:uo,getDocumentOrThrow:so,getFromWindow:lo,getFromWindowOrThrow:co,getLocal:bo,getLocalStorage:Te,getLocalStorageOrThrow:mo,getLocation:ho,getLocationOrThrow:_o,getMobileLinkRegistry:To,getMobileRegistryEntry:mn,getNavigator:dn,getNavigatorOrThrow:fo,getWalletRegistryUrl:So,isAndroid:sn,isBrowser:io,isIOS:un,isMobile:ao,isNode:fn,mobileLinkChoiceKey:pn,removeLocal:Co,safeJsonParse:_n,safeJsonStringify:hn,saveMobileLinkInfo:xo,setLocal:gn},Symbol.toStringTag,{value:"Module"})),Bo=B.getAugmentedNamespace(No);var de={},Ro=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},yn={},K={},Lo={}.toString,Ze=Array.isArray||function(e){return Lo.call(e)=="[object Array]"},Mo=Ze;function Po(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42}catch{return!1}}T.TYPED_ARRAY_SUPPORT=Po();var Ct=T.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function T(e,t,n){return!T.TYPED_ARRAY_SUPPORT&&!(this instanceof T)?new T(e,t,n):typeof e=="number"?bn(this,e):Fo(this,e,t,n)}T.TYPED_ARRAY_SUPPORT&&(T.prototype.__proto__=Uint8Array.prototype,T.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&T[Symbol.species]===T&&Object.defineProperty(T,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function et(e){if(e>=Ct)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ct.toString(16)+" bytes");return e|0}function Oo(e){return e!==e}function G(e,t){var n;return T.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=T.prototype):(n=e,n===null&&(n=new T(t)),n.length=t),n}function bn(e,t){var n=G(e,t<0?0:et(t)|0);if(!T.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)n[r]=0;return n}function Io(e,t){var n=En(t)|0,r=G(e,n),o=r.write(t);return o!==n&&(r=r.slice(0,o)),r}function Fe(e,t){for(var n=t.length<0?0:et(t.length)|0,r=G(e,n),o=0;o<n;o+=1)r[o]=t[o]&255;return r}function Do(e,t,n,r){if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");var o;return n===void 0&&r===void 0?o=new Uint8Array(t):r===void 0?o=new Uint8Array(t,n):o=new Uint8Array(t,n,r),T.TYPED_ARRAY_SUPPORT?o.__proto__=T.prototype:o=Fe(e,o),o}function Uo(e,t){if(T.isBuffer(t)){var n=et(t.length)|0,r=G(e,n);return r.length===0||t.copy(r,0,0,n),r}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||Oo(t.length)?G(e,0):Fe(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return Fe(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Cn(e,t){t=t||1/0;for(var n,r=e.length,o=null,a=[],i=0;i<r;++i){if(n=e.charCodeAt(i),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return a}function En(e){if(T.isBuffer(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var t=e.length;return t===0?0:Cn(e).length}function $o(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Wo(e,t,n,r){return $o(Cn(t,e.length-n),e,n,r)}function Fo(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?Do(e,t,n,r):typeof t=="string"?Io(e,t):Uo(e,t)}T.prototype.write=function(t,n,r){n===void 0?(r=this.length,n=0):r===void 0&&typeof n=="string"?(r=this.length,n=0):isFinite(n)&&(n=n|0,isFinite(r)?r=r|0:r=void 0);var o=this.length-n;if((r===void 0||r>o)&&(r=o),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Wo(this,t,n,r)};T.prototype.slice=function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var o;if(T.TYPED_ARRAY_SUPPORT)o=this.subarray(t,n),o.__proto__=T.prototype;else{var a=n-t;o=new T(a,void 0);for(var i=0;i<a;++i)o[i]=this[i+t]}return o};T.prototype.copy=function(t,n,r,o){if(r||(r=0),!o&&o!==0&&(o=this.length),n>=t.length&&(n=t.length),n||(n=0),o>0&&o<r&&(o=r),o===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-n<o-r&&(o=t.length-n+r);var a=o-r,i;if(this===t&&r<n&&n<o)for(i=a-1;i>=0;--i)t[i+n]=this[i+r];else if(a<1e3||!T.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+n]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),n);return a};T.prototype.fill=function(t,n,r){if(typeof t=="string"){if(typeof n=="string"?(n=0,r=this.length):typeof r=="string"&&(r=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var a;if(typeof t=="number")for(a=n;a<r;++a)this[a]=t;else{var i=T.isBuffer(t)?t:new T(t),l=i.length;for(a=0;a<r-n;++a)this[a+n]=i[a%l]}return this};T.concat=function(t,n){if(!Mo(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return G(null,0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var o=bn(null,n),a=0;for(r=0;r<t.length;++r){var i=t[r];if(!T.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(o,a),a+=i.length}return o};T.byteLength=En;T.prototype._isBuffer=!0;T.isBuffer=function(t){return!!(t!=null&&t._isBuffer)};K.alloc=function(e){var t=new T(e);return t.fill(0),t};K.from=function(e){return new T(e)};var O={},tt,zo=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};O.getSymbolTotalCodewords=function(t){return zo[t]};O.getBCHDigit=function(e){for(var t=0;e!==0;)t++,e>>>=1;return t};O.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');tt=t};O.isKanjiModeEnabled=function(){return typeof tt<"u"};O.toSJIS=function(t){return tt(t)};var Se={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");var r=n.toLowerCase();switch(r){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}})(Se);function xn(){this.buffer=[],this.length=0}xn.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var qo=xn,Et=K;function _e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=Et.alloc(e*e),this.reservedBit=Et.alloc(e*e)}_e.prototype.set=function(e,t,n,r){var o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)};_e.prototype.get=function(e,t){return this.data[e*this.size+t]};_e.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};_e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ho=_e,Tn={};(function(e){var t=O.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];for(var o=Math.floor(r/7)+2,a=t(r),i=a===145?26:Math.ceil((a-13)/(2*o-2))*2,l=[a-7],c=1;c<o-1;c++)l[c]=l[c-1]-i;return l.push(6),l.reverse()},e.getPositions=function(r){for(var o=[],a=e.getRowColCoords(r),i=a.length,l=0;l<i;l++)for(var c=0;c<i;c++)l===0&&c===0||l===0&&c===i-1||l===i-1&&c===0||o.push([a[l],a[c]]);return o}})(Tn);var Sn={},Ko=O.getSymbolSize,xt=7;Sn.getPositions=function(t){var n=Ko(t);return[[0,0],[n-xt,0],[0,n-xt]]};var kn={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){for(var a=o.size,i=0,l=0,c=0,u=null,s=null,d=0;d<a;d++){l=c=0,u=s=null;for(var y=0;y<a;y++){var _=o.get(d,y);_===u?l++:(l>=5&&(i+=t.N1+(l-5)),u=_,l=1),_=o.get(y,d),_===s?c++:(c>=5&&(i+=t.N1+(c-5)),s=_,c=1)}l>=5&&(i+=t.N1+(l-5)),c>=5&&(i+=t.N1+(c-5))}return i},e.getPenaltyN2=function(o){for(var a=o.size,i=0,l=0;l<a-1;l++)for(var c=0;c<a-1;c++){var u=o.get(l,c)+o.get(l,c+1)+o.get(l+1,c)+o.get(l+1,c+1);(u===4||u===0)&&i++}return i*t.N2},e.getPenaltyN3=function(o){for(var a=o.size,i=0,l=0,c=0,u=0;u<a;u++){l=c=0;for(var s=0;s<a;s++)l=l<<1&2047|o.get(u,s),s>=10&&(l===1488||l===93)&&i++,c=c<<1&2047|o.get(s,u),s>=10&&(c===1488||c===93)&&i++}return i*t.N3},e.getPenaltyN4=function(o){for(var a=0,i=o.data.length,l=0;l<i;l++)a+=o.data[l];var c=Math.abs(Math.ceil(a*100/i/5)-10);return c*t.N4};function n(r,o,a){switch(r){case e.Patterns.PATTERN000:return(o+a)%2===0;case e.Patterns.PATTERN001:return o%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(o+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return o*a%2+o*a%3===0;case e.Patterns.PATTERN110:return(o*a%2+o*a%3)%2===0;case e.Patterns.PATTERN111:return(o*a%3+(o+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(o,a){for(var i=a.size,l=0;l<i;l++)for(var c=0;c<i;c++)a.isReserved(c,l)||a.xor(c,l,n(o,c,l))},e.getBestMask=function(o,a){for(var i=Object.keys(e.Patterns).length,l=0,c=1/0,u=0;u<i;u++){a(u),e.applyMask(u,o);var s=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(u,o),s<c&&(c=s,l=u)}return l}})(kn);var ke={},q=Se,pe=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],me=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ke.getBlocksCount=function(t,n){switch(n){case q.L:return pe[(t-1)*4+0];case q.M:return pe[(t-1)*4+1];case q.Q:return pe[(t-1)*4+2];case q.H:return pe[(t-1)*4+3];default:return}};ke.getTotalCodewordsCount=function(t,n){switch(n){case q.L:return me[(t-1)*4+0];case q.M:return me[(t-1)*4+1];case q.Q:return me[(t-1)*4+2];case q.H:return me[(t-1)*4+3];default:return}};var An={},Ae={},Nn=K,ie=Nn.alloc(512),we=Nn.alloc(256);(function(){for(var t=1,n=0;n<255;n++)ie[n]=t,we[t]=n,t<<=1,t&256&&(t^=285);for(n=255;n<512;n++)ie[n]=ie[n-255]})();Ae.log=function(t){if(t<1)throw new Error("log("+t+")");return we[t]};Ae.exp=function(t){return ie[t]};Ae.mul=function(t,n){return t===0||n===0?0:ie[we[t]+we[n]]};(function(e){var t=K,n=Ae;e.mul=function(o,a){for(var i=t.alloc(o.length+a.length-1),l=0;l<o.length;l++)for(var c=0;c<a.length;c++)i[l+c]^=n.mul(o[l],a[c]);return i},e.mod=function(o,a){for(var i=t.from(o);i.length-a.length>=0;){for(var l=i[0],c=0;c<a.length;c++)i[c]^=n.mul(a[c],l);for(var u=0;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(o){for(var a=t.from([1]),i=0;i<o;i++)a=e.mul(a,[1,n.exp(i)]);return a}})(An);var Tt=K,Bn=An,Vo=B.bufferPolyfill.Buffer;function nt(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}nt.prototype.initialize=function(t){this.degree=t,this.genPoly=Bn.generateECPolynomial(this.degree)};nt.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var n=Tt.alloc(this.degree),r=Vo.concat([t,n],t.length+this.degree),o=Bn.mod(r,this.genPoly),a=this.degree-o.length;if(a>0){var i=Tt.alloc(this.degree);return o.copy(i,a),i}return o};var Yo=nt,Rn={},V={},rt={};rt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var D={},Ln="[0-9]+",Qo="[A-Z $%*+\\-./:]+",se="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";se=se.replace(/u/g,"\\u");var Jo="(?:(?![A-Z0-9 $%*+\\-./:]|"+se+`)(?:.|[\r
2
2
  ]))+`;D.KANJI=new RegExp(se,"g");D.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");D.BYTE=new RegExp(Jo,"g");D.NUMERIC=new RegExp(Ln,"g");D.ALPHANUMERIC=new RegExp(Qo,"g");var jo=new RegExp("^"+se+"$"),Go=new RegExp("^"+Ln+"$"),Xo=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");D.testKanji=function(t){return jo.test(t)};D.testNumeric=function(t){return Go.test(t)};D.testAlphanumeric=function(t){return Xo.test(t)};(function(e){var t=rt,n=D;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,i){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?a.ccBits[0]:i<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");var a=o.toLowerCase();switch(a){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(a,i){if(e.isValid(a))return a;try{return r(a)}catch{return i}}})(V);(function(e){var t=O,n=ke,r=Se,o=V,a=rt,i=Ze,l=7973,c=t.getBCHDigit(l);function u(_,h,b){for(var f=1;f<=40;f++)if(h<=e.getCapacity(f,b,_))return f}function s(_,h){return o.getCharCountIndicator(_,h)+4}function d(_,h){var b=0;return _.forEach(function(f){var v=s(f.mode,h);b+=v+f.getBitsLength()}),b}function y(_,h){for(var b=1;b<=40;b++){var f=d(_,b);if(f<=e.getCapacity(b,h,o.MIXED))return b}}e.from=function(h,b){return a.isValid(h)?parseInt(h,10):b},e.getCapacity=function(h,b,f){if(!a.isValid(h))throw new Error("Invalid QR Code version");typeof f>"u"&&(f=o.BYTE);var v=t.getSymbolTotalCodewords(h),m=n.getTotalCodewordsCount(h,b),g=(v-m)*8;if(f===o.MIXED)return g;var p=g-s(f,h);switch(f){case o.NUMERIC:return Math.floor(p/10*3);case o.ALPHANUMERIC:return Math.floor(p/11*2);case o.KANJI:return Math.floor(p/13);case o.BYTE:default:return Math.floor(p/8)}},e.getBestVersionForData=function(h,b){var f,v=r.from(b,r.M);if(i(h)){if(h.length>1)return y(h,v);if(h.length===0)return 1;f=h[0]}else f=h;return u(f.mode,f.getLength(),v)},e.getEncodedBits=function(h){if(!a.isValid(h)||h<7)throw new Error("Invalid QR Code version");for(var b=h<<12;t.getBCHDigit(b)-c>=0;)b^=l<<t.getBCHDigit(b)-c;return h<<12|b}})(Rn);var Mn={},ze=O,Pn=1335,Zo=21522,St=ze.getBCHDigit(Pn);Mn.getEncodedBits=function(t,n){for(var r=t.bit<<3|n,o=r<<10;ze.getBCHDigit(o)-St>=0;)o^=Pn<<ze.getBCHDigit(o)-St;return(r<<10|o)^Zo};var On={},ea=V;function X(e){this.mode=ea.NUMERIC,this.data=e.toString()}X.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};X.prototype.getLength=function(){return this.data.length};X.prototype.getBitsLength=function(){return X.getBitsLength(this.data.length)};X.prototype.write=function(t){var n,r,o;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),o=parseInt(r,10),t.put(o,10);var a=this.data.length-n;a>0&&(r=this.data.substr(n),o=parseInt(r,10),t.put(o,a*3+1))};var ta=X,na=V,Me=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Z(e){this.mode=na.ALPHANUMERIC,this.data=e}Z.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Z.prototype.getLength=function(){return this.data.length};Z.prototype.getBitsLength=function(){return Z.getBitsLength(this.data.length)};Z.prototype.write=function(t){var n;for(n=0;n+2<=this.data.length;n+=2){var r=Me.indexOf(this.data[n])*45;r+=Me.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(Me.indexOf(this.data[n]),6)};var ra=Z,oa=K,aa=V;function ee(e){this.mode=aa.BYTE,this.data=oa.from(e)}ee.getBitsLength=function(t){return t*8};ee.prototype.getLength=function(){return this.data.length};ee.prototype.getBitsLength=function(){return ee.getBitsLength(this.data.length)};ee.prototype.write=function(e){for(var t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var ia=ee,la=V,ca=O;function te(e){this.mode=la.KANJI,this.data=e}te.getBitsLength=function(t){return t*13};te.prototype.getLength=function(){return this.data.length};te.prototype.getBitsLength=function(){return te.getBitsLength(this.data.length)};te.prototype.write=function(e){var t;for(t=0;t<this.data.length;t++){var n=ca.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
3
  Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var sa=te;(function(e){var t=V,n=ta,r=ra,o=ia,a=sa,i=D,l=O,c=kr.dijkstraExports;function u(v){return unescape(encodeURIComponent(v)).length}function s(v,m,g){for(var p=[],E;(E=v.exec(g))!==null;)p.push({data:E[0],index:E.index,mode:m,length:E[0].length});return p}function d(v){var m=s(i.NUMERIC,t.NUMERIC,v),g=s(i.ALPHANUMERIC,t.ALPHANUMERIC,v),p,E;l.isKanjiModeEnabled()?(p=s(i.BYTE,t.BYTE,v),E=s(i.KANJI,t.KANJI,v)):(p=s(i.BYTE_KANJI,t.BYTE,v),E=[]);var S=m.concat(g,p,E);return S.sort(function(x,k){return x.index-k.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.length}})}function y(v,m){switch(m){case t.NUMERIC:return n.getBitsLength(v);case t.ALPHANUMERIC:return r.getBitsLength(v);case t.KANJI:return a.getBitsLength(v);case t.BYTE:return o.getBitsLength(v)}}function _(v){return v.reduce(function(m,g){var p=m.length-1>=0?m[m.length-1]:null;return p&&p.mode===g.mode?(m[m.length-1].data+=g.data,m):(m.push(g),m)},[])}function h(v){for(var m=[],g=0;g<v.length;g++){var p=v[g];switch(p.mode){case t.NUMERIC:m.push([p,{data:p.data,mode:t.ALPHANUMERIC,length:p.length},{data:p.data,mode:t.BYTE,length:p.length}]);break;case t.ALPHANUMERIC:m.push([p,{data:p.data,mode:t.BYTE,length:p.length}]);break;case t.KANJI:m.push([p,{data:p.data,mode:t.BYTE,length:u(p.data)}]);break;case t.BYTE:m.push([{data:p.data,mode:t.BYTE,length:u(p.data)}])}}return m}function b(v,m){for(var g={},p={start:{}},E=["start"],S=0;S<v.length;S++){for(var x=v[S],k=[],R=0;R<x.length;R++){var N=x[R],Y=""+S+R;k.push(Y),g[Y]={node:N,lastCount:0},p[Y]={};for(var U=0;U<E.length;U++){var P=E[U];g[P]&&g[P].node.mode===N.mode?(p[P][Y]=y(g[P].lastCount+N.length,N.mode)-y(g[P].lastCount,N.mode),g[P].lastCount+=N.length):(g[P]&&(g[P].lastCount=N.length),p[P][Y]=y(N.length,N.mode)+4+t.getCharCountIndicator(N.mode,m))}}E=k}for(U=0;U<E.length;U++)p[E[U]].end=0;return{map:p,table:g}}function f(v,m){var g,p=t.getBestModeForData(v);if(g=t.from(m,p),g!==t.BYTE&&g.bit<p.bit)throw new Error('"'+v+'" cannot be encoded with mode '+t.toString(g)+`.
4
4
  Suggested mode is: `+t.toString(p));switch(g===t.KANJI&&!l.isKanjiModeEnabled()&&(g=t.BYTE),g){case t.NUMERIC:return new n(v);case t.ALPHANUMERIC:return new r(v);case t.KANJI:return new a(v);case t.BYTE:return new o(v)}}e.fromArray=function(m){return m.reduce(function(g,p){return typeof p=="string"?g.push(f(p,null)):p.data&&g.push(f(p.data,p.mode)),g},[])},e.fromString=function(m,g){for(var p=d(m,l.isKanjiModeEnabled()),E=h(p),S=b(E,g),x=c.find_path(S.map,"start","end"),k=[],R=1;R<x.length-1;R++)k.push(S.table[x[R]].node);return e.fromArray(_(k))},e.rawSplit=function(m){return e.fromArray(d(m,l.isKanjiModeEnabled()))}})(On);var kt=K,Ne=O,Pe=Se,ua=qo,fa=Ho,da=Tn,_a=Sn,qe=kn,He=ke,ha=Yo,ye=Rn,ga=Mn,pa=V,Oe=On,ma=Ze;function va(e,t){for(var n=e.size,r=_a.getPositions(t),o=0;o<r.length;o++)for(var a=r[o][0],i=r[o][1],l=-1;l<=7;l++)if(!(a+l<=-1||n<=a+l))for(var c=-1;c<=7;c++)i+c<=-1||n<=i+c||(l>=0&&l<=6&&(c===0||c===6)||c>=0&&c<=6&&(l===0||l===6)||l>=2&&l<=4&&c>=2&&c<=4?e.set(a+l,i+c,!0,!0):e.set(a+l,i+c,!1,!0))}function wa(e){for(var t=e.size,n=8;n<t-8;n++){var r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function ya(e,t){for(var n=da.getPositions(t),r=0;r<n.length;r++)for(var o=n[r][0],a=n[r][1],i=-2;i<=2;i++)for(var l=-2;l<=2;l++)i===-2||i===2||l===-2||l===2||i===0&&l===0?e.set(o+i,a+l,!0,!0):e.set(o+i,a+l,!1,!0)}function ba(e,t){for(var n=e.size,r=ye.getEncodedBits(t),o,a,i,l=0;l<18;l++)o=Math.floor(l/3),a=l%3+n-8-3,i=(r>>l&1)===1,e.set(o,a,i,!0),e.set(a,o,i,!0)}function Ie(e,t,n){var r=e.size,o=ga.getEncodedBits(t,n),a,i;for(a=0;a<15;a++)i=(o>>a&1)===1,a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(r-15+a,8,i,!0),a<8?e.set(8,r-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(r-8,8,1,!0)}function Ca(e,t){for(var n=e.size,r=-1,o=n-1,a=7,i=0,l=n-1;l>0;l-=2)for(l===6&&l--;;){for(var c=0;c<2;c++)if(!e.isReserved(o,l-c)){var u=!1;i<t.length&&(u=(t[i]>>>a&1)===1),e.set(o,l-c,u),a--,a===-1&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}function Ea(e,t,n){var r=new ua;n.forEach(function(u){r.put(u.mode.bit,4),r.put(u.getLength(),pa.getCharCountIndicator(u.mode,e)),u.write(r)});var o=Ne.getSymbolTotalCodewords(e),a=He.getTotalCodewordsCount(e,t),i=(o-a)*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);for(var l=(i-r.getLengthInBits())/8,c=0;c<l;c++)r.put(c%2?17:236,8);return xa(r,e,t)}function xa(e,t,n){for(var r=Ne.getSymbolTotalCodewords(t),o=He.getTotalCodewordsCount(t,n),a=r-o,i=He.getBlocksCount(t,n),l=r%i,c=i-l,u=Math.floor(r/i),s=Math.floor(a/i),d=s+1,y=u-s,_=new ha(y),h=0,b=new Array(i),f=new Array(i),v=0,m=kt.from(e.buffer),g=0;g<i;g++){var p=g<c?s:d;b[g]=m.slice(h,h+p),f[g]=_.encode(b[g]),h+=p,v=Math.max(v,p)}var E=kt.alloc(r),S=0,x,k;for(x=0;x<v;x++)for(k=0;k<i;k++)x<b[k].length&&(E[S++]=b[k][x]);for(x=0;x<y;x++)for(k=0;k<i;k++)E[S++]=f[k][x];return E}function Ta(e,t,n,r){var o;if(ma(e))o=Oe.fromArray(e);else if(typeof e=="string"){var a=t;if(!a){var i=Oe.rawSplit(e);a=ye.getBestVersionForData(i,n)}o=Oe.fromString(e,a||40)}else throw new Error("Invalid data");var l=ye.getBestVersionForData(o,n);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=l;else if(t<l)throw new Error(`
@@ -1,6 +1,6 @@
1
- import { n as _t, s as ce, T as N, o as ot, R as Do, a as C, t as U, p as q, y as gt } from "./index-HrOVvUmR.mjs";
1
+ import { n as _t, s as ce, T as N, o as ot, R as Do, a as C, t as U, p as q, y as gt } from "./index-ZqzSOsNH.mjs";
2
2
  import { d as Uo } from "./dijkstra-_4avdlbo.mjs";
3
- import { d as Wo } from "./index-TXf-Y_5p.mjs";
3
+ import { d as Wo } from "./index-GqCbgO6w.mjs";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  var jo = function(t) {