useblocks 1.1.65 → 1.1.71

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 (195) hide show
  1. package/README.md +2 -0
  2. package/assets/images/project-settings-inbox-envelope.png +0 -0
  3. package/assets/images/project-settings-plugin-support-avatar.png +0 -0
  4. package/fileManager.d.ts +519 -0
  5. package/iframe/css/sandbox-dark.css +1 -1
  6. package/iframe/css/sandbox-darktheme.css +1 -1
  7. package/iframe/css/sandbox-light.css +1 -1
  8. package/iframe/css/sandbox.css +112 -89
  9. package/iframe/js/amp.DllX-Im0.js +1 -0
  10. package/iframe/js/iframe-eblock.js +1 -1
  11. package/iframe/js/iframe.js +1 -1
  12. package/iframe/js/rules.4N5s3OV-.js +1 -1
  13. package/npm-publish.manifest.json +7 -7
  14. package/package.json +4 -1
  15. package/runtime/THIRD_PARTY_LICENSES.txt +1 -1
  16. package/static/core/{d2f93451.js → 0e53b7b5.js} +3 -3
  17. package/static/core/0fe242f22.js +3251 -0
  18. package/static/core/{e9ff66762.js → 10f0dad9.js} +3 -3
  19. package/static/core/{a79573972.js → 115218a42.js} +3 -3
  20. package/static/core/{d6b377d3.js → 1202bfdd.js} +3 -3
  21. package/static/core/{8d4aa933.js → 16c2d0e42.js} +6 -6
  22. package/static/core/{8aa09f022.js → 1ae75b972.js} +3 -3
  23. package/static/core/{e7c982c02.js → 2011fc95.js} +3 -3
  24. package/static/core/{925a1cfd2.js → 211482892.js} +3 -3
  25. package/static/core/222d29d9.js +468 -0
  26. package/static/core/{f8c9371e.js → 23546a64.js} +238 -257
  27. package/static/core/{6e177eb6.js → 26a1af95.js} +3 -3
  28. package/static/core/{9d8297c7.js → 27f62a39.js} +3 -3
  29. package/static/core/{fb834fb22.js → 288ca9522.js} +6 -6
  30. package/static/core/{45da436c.js → 28e9d3ff.js} +3 -3
  31. package/static/core/{1c82c2d52.js → 2bd2da322.js} +3 -3
  32. package/static/core/{712b11ba.js → 2c65c059.js} +3 -3
  33. package/static/core/{1d2a32d02.js → 2f216fd4.js} +4 -4
  34. package/static/core/{45fcca4f2.js → 2fd502bd2.js} +3 -3
  35. package/static/core/{b303b2a4.js → 34e0b0dc.js} +3 -3
  36. package/static/core/{b22e5dd5.js → 35ad3ae5.js} +173 -173
  37. package/static/core/{8e6e6aaa2.js → 35e0d55e.js} +3 -3
  38. package/static/core/36bf6931.js +2119 -0
  39. package/static/core/{a953bf24.js → 375e98282.js} +3 -3
  40. package/static/core/{40d6d494.js → 38302247.js} +3 -3
  41. package/static/core/{99fd0b342.js → 38e879e9.js} +3 -3
  42. package/static/core/{b283b340.js → 39a68c91.js} +3 -3
  43. package/static/core/{68edd344.js → 3bbe4800.js} +3 -3
  44. package/static/core/{43108a122.js → 3bda5ccf2.js} +4 -4
  45. package/static/core/{220b2c2a.js → 3c1ef117.js} +7 -7
  46. package/static/core/{9982be76.js → 3f22a9d32.js} +2018 -1808
  47. package/static/core/{8b8811812.js → 412f0d1c.js} +3 -3
  48. package/static/core/{601b4e7b.js → 46959096.js} +3 -3
  49. package/static/core/{9d1a7a182.js → 46abec11.js} +3 -3
  50. package/static/core/{292fe55d2.js → 4740c91e2.js} +3 -3
  51. package/static/core/{c7588e5f.js → 48560c89.js} +387 -385
  52. package/static/core/{1d173e97.js → 48d0a8bd2.js} +3 -3
  53. package/static/core/{af691d1f.js → 490f59592.js} +21 -21
  54. package/static/core/{205266672.js → 4953bced.js} +3 -3
  55. package/static/core/{668ae858.js → 4b59ab9f.js} +3 -3
  56. package/static/core/{664c38f8.js → 4bc74a4f.js} +3 -3
  57. package/static/core/{8b28b024.js → 508bcaba.js} +5 -5
  58. package/static/core/513594a8.js +583 -0
  59. package/static/core/54eadcf42.js +39 -0
  60. package/static/core/{da4b0874.js → 578fcc88.js} +3 -3
  61. package/static/core/{43764f5b.js → 585259872.js} +189 -181
  62. package/static/core/{cee370ea.js → 5b64d3ce2.js} +8 -8
  63. package/static/core/{b450a16a.js → 5e082e16.js} +59 -59
  64. package/static/core/{bc1a9cb2.js → 5e7c6c9c.js} +4 -4
  65. package/static/core/{bc557d9c.js → 60dcae06.js} +6 -6
  66. package/static/core/{fa23ae7b.js → 616e99a4.js} +3 -3
  67. package/static/core/{66f4dea3.js → 62c13c96.js} +3 -3
  68. package/static/core/{d892d2c82.js → 62f33dda.js} +3 -3
  69. package/static/core/{9c236031.js → 62fd385b.js} +3 -3
  70. package/static/core/{958e85b5.js → 6313868b.js} +3 -3
  71. package/static/core/63206e112.js +8956 -0
  72. package/static/core/{67e3306c.js → 68ec11c8.js} +640 -638
  73. package/static/core/{951b9e3d.js → 6ca6133e.js} +9 -9
  74. package/static/core/6e2a0152.js +61 -0
  75. package/static/core/{656a0edc2.js → 6ee1838f2.js} +3 -3
  76. package/static/core/{b09300472.js → 7527fdc92.js} +3 -3
  77. package/static/core/{d8df6d5a.js → 75c2f232.js} +8 -8
  78. package/static/core/{49a037b02.js → 76c0586a2.js} +3 -3
  79. package/static/core/{2d8a7133.js → 76ea88d3.js} +5 -5
  80. package/static/core/{42e9eb802.js → 77c2efbb.js} +3 -3
  81. package/static/core/{5d0c727e.js → 7d07bfac.js} +3 -3
  82. package/static/core/{d46cb9672.js → 7d19dd28.js} +4 -4
  83. package/static/core/{2d13936a.js → 7ec8e1fc.js} +3 -3
  84. package/static/core/{9954153b2.js → 84326fa6.js} +3 -3
  85. package/static/core/{c52e08d6.js → 86515d932.js} +4 -4
  86. package/static/core/{a97bdbc8.js → 879bd3b1.js} +3 -3
  87. package/static/core/{e47711662.js → 8a061db42.js} +5 -5
  88. package/static/core/{4b0f73af.js → 8ed78147.js} +3 -3
  89. package/static/core/{1cbab2af2.js → 8ef06b232.js} +10 -10
  90. package/static/core/{75e8d4672.js → 8fafd12f2.js} +3 -3
  91. package/static/core/{a898230f.js → 8fbde229.js} +3 -3
  92. package/static/core/{f61e3e55.js → 92871f5a2.js} +7 -7
  93. package/static/core/{a83b01cb2.js → 92d1a0c9.js} +519 -523
  94. package/static/core/9355751a.js +126 -0
  95. package/static/core/{95d1d1aa2.js → 93b3c668.js} +3 -3
  96. package/static/core/{873142eb.js → 9933d0ff2.js} +3 -3
  97. package/static/core/{96417e98.js → 9a0c05f1.js} +4 -4
  98. package/static/core/9ab1c444.js +11452 -0
  99. package/static/core/{c8cb5d88.js → 9c09ec92.js} +7 -7
  100. package/static/core/{31ba662c2.js → 9df9c5262.js} +5 -5
  101. package/static/core/{85ea16112.js → a061a37c2.js} +3 -3
  102. package/static/core/{fff1a8622.js → a64e6cce2.js} +3 -3
  103. package/static/core/{f5d4906d2.js → a6d92d0b2.js} +5 -5
  104. package/static/core/{2e9906f7.js → a7518d2c.js} +3 -3
  105. package/static/core/{3c6f1d122.js → a8bed12d2.js} +3 -3
  106. package/static/core/{72e2612a2.js → a8f08cb22.js} +3 -3
  107. package/static/core/{6eb316fe2.js → ac70dfae2.js} +6 -6
  108. package/static/core/{89e7cc57.js → b8cecec8.js} +17 -17
  109. package/static/core/{a35fd8d22.js → b8ed4fd62.js} +13 -13
  110. package/static/core/{474c47d5.js → b9b92e01.js} +15 -15
  111. package/static/core/{b57c9e1f.js → bc703487.js} +3 -3
  112. package/static/core/{b165c6f6.js → bc9faec1.js} +134 -134
  113. package/static/core/{54e7728d.js → bf3a9be2.js} +5 -5
  114. package/static/core/c370a46c.js +683 -0
  115. package/static/core/{cf21862f.js → c3b45fb6.js} +1846 -1847
  116. package/static/core/{d54353e72.js → c56eaffd.js} +3 -3
  117. package/static/core/{f562fb51.js → c5cf470c.js} +3 -3
  118. package/static/core/{ceffb8322.js → c8a41267.js} +3 -3
  119. package/static/core/{19572306.js → cc251d11.js} +3 -3
  120. package/static/core/{84df1edd2.js → cce631ad.js} +3 -3
  121. package/static/core/{a88996b3.js → ce9be2ec2.js} +4965 -4753
  122. package/static/core/cf655a1a.js +33627 -0
  123. package/static/core/{ab86b06a.js → d3bbb05e.js} +3 -3
  124. package/static/core/{4a9bd173.js → d43babb9.js} +3 -3
  125. package/static/core/{1a415abd2.js → d46d10f12.js} +12 -12
  126. package/static/core/{7ad0031e2.js → d684b4ef2.js} +38 -38
  127. package/static/core/{affffdf2.js → d8835f5f.js} +7 -7
  128. package/static/core/{b04145ff2.js → db5fa769.js} +10 -10
  129. package/static/core/{d32841a32.js → dbc6f1e52.js} +3 -3
  130. package/static/core/{db4e60fa2.js → dc256ccd2.js} +3 -3
  131. package/static/core/{eaa635532.js → dc6fa7c1.js} +3 -3
  132. package/static/core/{4b9709dc.js → dcc518ef2.js} +3 -3
  133. package/static/core/df237243.js +56 -0
  134. package/static/core/{5ea0fc40.js → e02024fb2.js} +97 -97
  135. package/static/core/e199fd0a.js +49 -0
  136. package/static/core/{678594cd.js → e3a541ab.js} +3 -3
  137. package/static/core/{6f0d961a2.js → e4c6d91e2.js} +7 -7
  138. package/static/core/{c2a2dc79.js → e4d01015.js} +40775 -44576
  139. package/static/core/e57e8a80.js +22 -0
  140. package/static/core/{d7a9fd822.js → e6ac2e652.js} +3 -3
  141. package/static/core/{de2e2a02.js → e6c7e14f.js} +3 -3
  142. package/static/core/{81a5ffb92.js → e83c0b482.js} +3 -3
  143. package/static/core/{2515c6a52.js → e923d1aa2.js} +3 -3
  144. package/static/core/{b78a67b9.js → ea6c5c93.js} +3237 -3101
  145. package/static/core/{d85e34c42.js → ebd51d83.js} +3 -3
  146. package/static/core/{b54ad117.js → ec4f2d562.js} +3 -3
  147. package/static/core/{da25e8fc.js → f0364bbd2.js} +4 -4
  148. package/static/core/{b1b3186f.js → f51ccb57.js} +7 -7
  149. package/static/core/{7fd85aa0.js → f73bbe35.js} +5 -5
  150. package/static/core/{211ca90b.js → f85b09cb.js} +3 -3
  151. package/static/core/{3ab5d1a4.js → f9aaa4b7.js} +7 -7
  152. package/static/core/{4c5c889d.js → fc962c9a2.js} +5 -5
  153. package/static/core/{fd9034a2.js → fd7386aa2.js} +37 -37
  154. package/static/core/{62dd04ca2.js → fe4feb362.js} +3 -3
  155. package/static/core/{f3b4a3102.js → ffcf92522.js} +3 -3
  156. package/static/media/image-editor/fonts/Rubik-Black.woff2 +0 -0
  157. package/static/media/image-editor/fonts/Rubik-Bold.woff2 +0 -0
  158. package/static/media/image-editor/fonts/Rubik-Light.woff2 +0 -0
  159. package/static/media/image-editor/fonts/Rubik-Regular.woff2 +0 -0
  160. package/static/media/image-editor/fonts/caveat-v23-cyrillic_latin-regular.woff2 +0 -0
  161. package/static/media/image-editor/fonts/commissioner-v24-cyrillic_latin-regular.woff2 +0 -0
  162. package/static/media/image-editor/fonts/inter-v20-cyrillic_latin-regular.woff2 +0 -0
  163. package/static/media/image-editor/fonts/oswald-v57-cyrillic_latin-regular.woff2 +0 -0
  164. package/static/media/image-editor/fonts/pacifico-v23-cyrillic_latin-regular.woff2 +0 -0
  165. package/static/media/image-editor/fonts/playfair-display-v40-cyrillic_latin-regular.woff2 +0 -0
  166. package/static/umd-runtime/ui-kit.js +1638 -1416
  167. package/test-font.otf +0 -0
  168. package/test-font.ttf +0 -0
  169. package/test-font.woff2 +0 -0
  170. package/two_step_headless_plugin.html +1 -1
  171. package/ui-kit/index.js +1317 -1104
  172. package/{useblocks-core.bfe3fe29.js → useblocks-core.77131b3d.js} +8 -8
  173. package/useblocks-esm.js +6 -3
  174. package/useblocks-po.77131b3d.js +5945 -0
  175. package/useblocks.d.ts +36 -525
  176. package/useblocks.js +3 -3
  177. package/vite/index.cjs +4 -4
  178. package/vite/index.d.ts +4 -4
  179. package/vite/index.js +4 -4
  180. package/vite/pluginDev/index.cjs +2 -2
  181. package/vite/pluginDev/index.d.ts +12 -12
  182. package/vite/pluginDev/index.js +2 -2
  183. package/webpack/pluginDev/index.d.ts +12 -12
  184. package/iframe/js/amp.BP7EklKo.js +0 -1
  185. package/static/core/2047d7f8.js +0 -12294
  186. package/static/core/63b7b25e.js +0 -68
  187. package/static/core/6dbdca2f.js +0 -2089
  188. package/static/core/8460710a.js +0 -27
  189. package/static/core/86577bae.js +0 -666
  190. package/static/core/97aafd5d.js +0 -43109
  191. package/static/core/aa783b9b.js +0 -124
  192. package/static/core/db999761.js +0 -465
  193. package/static/core/dc19c4fa.js +0 -93052
  194. /package/iframe/{iframe-eblock.bfe3fe29.html → iframe-eblock.77131b3d.html} +0 -0
  195. /package/iframe/{iframe.bfe3fe29.html → iframe.77131b3d.html} +0 -0
@@ -0,0 +1,683 @@
1
+ __useblocks__.define("static/core/c370a46c.js", [
2
+ "require",
3
+ "exports",
4
+ "module",
5
+ "static/core/e57e8a80.js"
6
+ ], function(d, j, Mr) {
7
+ const P = d("./e57e8a80.js");
8
+ P.init__polyfill_node_global();
9
+ var y = [], A = [], b = typeof Uint8Array < "u" ? Uint8Array : Array, M = !1;
10
+ function k() {
11
+ M = !0;
12
+ for (var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = 0, i = n.length; r < i; ++r) y[r] = n[r], A[n.charCodeAt(r)] = r;
13
+ A[45] = 62, A[95] = 63;
14
+ }
15
+ function rr(n) {
16
+ M || k();
17
+ var r, i, t, e, o, u, a = n.length;
18
+ if (a % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
19
+ o = n[a - 2] === "=" ? 2 : n[a - 1] === "=" ? 1 : 0, u = new b(a * 3 / 4 - o), t = o > 0 ? a - 4 : a;
20
+ var c = 0;
21
+ for (r = 0, i = 0; r < t; r += 4, i += 3) e = A[n.charCodeAt(r)] << 18 | A[n.charCodeAt(r + 1)] << 12 | A[n.charCodeAt(r + 2)] << 6 | A[n.charCodeAt(r + 3)], u[c++] = e >> 16 & 255, u[c++] = e >> 8 & 255, u[c++] = e & 255;
22
+ return o === 2 ? (e = A[n.charCodeAt(r)] << 2 | A[n.charCodeAt(r + 1)] >> 4, u[c++] = e & 255) : o === 1 && (e = A[n.charCodeAt(r)] << 10 | A[n.charCodeAt(r + 1)] << 4 | A[n.charCodeAt(r + 2)] >> 2, u[c++] = e >> 8 & 255, u[c++] = e & 255), u;
23
+ }
24
+ function ir(n) {
25
+ return y[n >> 18 & 63] + y[n >> 12 & 63] + y[n >> 6 & 63] + y[n & 63];
26
+ }
27
+ function nr(n, r, i) {
28
+ for (var t, e = [], o = r; o < i; o += 3) t = (n[o] << 16) + (n[o + 1] << 8) + n[o + 2], e.push(ir(t));
29
+ return e.join("");
30
+ }
31
+ function N(n) {
32
+ M || k();
33
+ for (var r, i = n.length, t = i % 3, e = "", o = [], u = 16383, a = 0, c = i - t; a < c; a += u) o.push(nr(n, a, a + u > c ? c : a + u));
34
+ return t === 1 ? (r = n[i - 1], e += y[r >> 2], e += y[r << 4 & 63], e += "==") : t === 2 && (r = (n[i - 2] << 8) + n[i - 1], e += y[r >> 10], e += y[r >> 4 & 63], e += y[r << 2 & 63], e += "="), o.push(e), o.join("");
35
+ }
36
+ function U(n, r, i, t, e) {
37
+ var o, u, a = e * 8 - t - 1, c = (1 << a) - 1, l = c >> 1, s = -7, p = i ? e - 1 : 0, _ = i ? -1 : 1, E = n[r + p];
38
+ for (p += _, o = E & (1 << -s) - 1, E >>= -s, s += a; s > 0; o = o * 256 + n[r + p], p += _, s -= 8);
39
+ for (u = o & (1 << -s) - 1, o >>= -s, s += t; s > 0; u = u * 256 + n[r + p], p += _, s -= 8);
40
+ if (o === 0) o = 1 - l;
41
+ else {
42
+ if (o === c) return u ? NaN : (E ? -1 : 1) * Infinity;
43
+ u = u + Math.pow(2, t), o = o - l;
44
+ }
45
+ return (E ? -1 : 1) * u * Math.pow(2, o - t);
46
+ }
47
+ function F(n, r, i, t, e, o) {
48
+ var u, a, c, l = o * 8 - e - 1, s = (1 << l) - 1, p = s >> 1, _ = e === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, E = t ? 0 : o - 1, I = t ? 1 : -1, Pr = r < 0 || r === 0 && 1 / r < 0 ? 1 : 0;
49
+ for (r = Math.abs(r), isNaN(r) || r === Infinity ? (a = isNaN(r) ? 1 : 0, u = s) : (u = Math.floor(Math.log(r) / Math.LN2), r * (c = Math.pow(2, -u)) < 1 && (u--, c *= 2), u + p >= 1 ? r += _ / c : r += _ * Math.pow(2, 1 - p), r * c >= 2 && (u++, c /= 2), u + p >= s ? (a = 0, u = s) : u + p >= 1 ? (a = (r * c - 1) * Math.pow(2, e), u = u + p) : (a = r * Math.pow(2, p - 1) * Math.pow(2, e), u = 0)); e >= 8; n[i + E] = a & 255, E += I, a /= 256, e -= 8);
50
+ for (u = u << e | a, l += e; l > 0; n[i + E] = u & 255, E += I, u /= 256, l -= 8);
51
+ n[i + E - I] |= Pr * 128;
52
+ }
53
+ var tr = {}.toString, L = Array.isArray || function(n) {
54
+ return tr.call(n) == "[object Array]";
55
+ };
56
+ h.TYPED_ARRAY_SUPPORT = P._polyfill_node_global_default.TYPED_ARRAY_SUPPORT !== void 0 ? P._polyfill_node_global_default.TYPED_ARRAY_SUPPORT : !0;
57
+ T();
58
+ function T() {
59
+ return h.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
60
+ }
61
+ function g(n, r) {
62
+ if (T() < r) throw new RangeError("Invalid typed array length");
63
+ return h.TYPED_ARRAY_SUPPORT ? (n = new Uint8Array(r), n.__proto__ = h.prototype) : (n === null && (n = new h(r)), n.length = r), n;
64
+ }
65
+ function h(n, r, i) {
66
+ if (!h.TYPED_ARRAY_SUPPORT && !(this instanceof h)) return new h(n, r, i);
67
+ if (typeof n == "number") {
68
+ if (typeof r == "string") throw new Error("If encoding is specified then the first argument must be a string");
69
+ return D(this, n);
70
+ }
71
+ return W(this, n, r, i);
72
+ }
73
+ h.poolSize = 8192, h._augment = function(n) {
74
+ return n.__proto__ = h.prototype, n;
75
+ };
76
+ function W(n, r, i, t) {
77
+ if (typeof r == "number") throw new TypeError("\"value\" argument must not be a number");
78
+ return typeof ArrayBuffer < "u" && r instanceof ArrayBuffer ? ur(n, r, i, t) : typeof r == "string" ? or(n, r, i) : hr(n, r);
79
+ }
80
+ h.from = function(n, r, i) {
81
+ return W(null, n, r, i);
82
+ }, h.TYPED_ARRAY_SUPPORT && (h.prototype.__proto__ = Uint8Array.prototype, h.__proto__ = Uint8Array, typeof Symbol < "u" && Symbol.species && h[Symbol.species]);
83
+ function H(n) {
84
+ if (typeof n != "number") throw new TypeError("\"size\" argument must be a number");
85
+ if (n < 0) throw new RangeError("\"size\" argument must not be negative");
86
+ }
87
+ function er(n, r, i, t) {
88
+ return H(r), r <= 0 ? g(n, r) : i !== void 0 ? typeof t == "string" ? g(n, r).fill(i, t) : g(n, r).fill(i) : g(n, r);
89
+ }
90
+ h.alloc = function(n, r, i) {
91
+ return er(null, n, r, i);
92
+ };
93
+ function D(n, r) {
94
+ if (H(r), n = g(n, r < 0 ? 0 : C(r) | 0), !h.TYPED_ARRAY_SUPPORT) for (var i = 0; i < r; ++i) n[i] = 0;
95
+ return n;
96
+ }
97
+ h.allocUnsafe = function(n) {
98
+ return D(null, n);
99
+ }, h.allocUnsafeSlow = function(n) {
100
+ return D(null, n);
101
+ };
102
+ function or(n, r, i) {
103
+ if ((typeof i != "string" || i === "") && (i = "utf8"), !h.isEncoding(i)) throw new TypeError("\"encoding\" must be a valid string encoding");
104
+ var t = V(r, i) | 0;
105
+ n = g(n, t);
106
+ var e = n.write(r, i);
107
+ return e !== t && (n = n.slice(0, e)), n;
108
+ }
109
+ function x(n, r) {
110
+ var i = r.length < 0 ? 0 : C(r.length) | 0;
111
+ n = g(n, i);
112
+ for (var t = 0; t < i; t += 1) n[t] = r[t] & 255;
113
+ return n;
114
+ }
115
+ function ur(n, r, i, t) {
116
+ if (r.byteLength, i < 0 || r.byteLength < i) throw new RangeError("'offset' is out of bounds");
117
+ if (r.byteLength < i + (t || 0)) throw new RangeError("'length' is out of bounds");
118
+ return i === void 0 && t === void 0 ? r = new Uint8Array(r) : t === void 0 ? r = new Uint8Array(r, i) : r = new Uint8Array(r, i, t), h.TYPED_ARRAY_SUPPORT ? (n = r, n.__proto__ = h.prototype) : n = x(n, r), n;
119
+ }
120
+ function hr(n, r) {
121
+ if (R(r)) {
122
+ var i = C(r.length) | 0;
123
+ return n = g(n, i), n.length === 0 || r.copy(n, 0, 0, i), n;
124
+ }
125
+ if (r) {
126
+ if (typeof ArrayBuffer < "u" && r.buffer instanceof ArrayBuffer || "length" in r) return typeof r.length != "number" || vr(r.length) ? g(n, 0) : x(n, r);
127
+ if (r.type === "Buffer" && L(r.data)) return x(n, r.data);
128
+ }
129
+ throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
130
+ }
131
+ function C(n) {
132
+ if (n >= T()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + T().toString(16) + " bytes");
133
+ return n | 0;
134
+ }
135
+ h.isBuffer = Yr;
136
+ function R(n) {
137
+ return !!(n != null && n._isBuffer);
138
+ }
139
+ h.compare = function(r, i) {
140
+ if (!R(r) || !R(i)) throw new TypeError("Arguments must be Buffers");
141
+ if (r === i) return 0;
142
+ for (var t = r.length, e = i.length, o = 0, u = Math.min(t, e); o < u; ++o) if (r[o] !== i[o]) {
143
+ t = r[o], e = i[o];
144
+ break;
145
+ }
146
+ return t < e ? -1 : e < t ? 1 : 0;
147
+ }, h.isEncoding = function(r) {
148
+ switch (String(r).toLowerCase()) {
149
+ case "hex":
150
+ case "utf8":
151
+ case "utf-8":
152
+ case "ascii":
153
+ case "latin1":
154
+ case "binary":
155
+ case "base64":
156
+ case "ucs2":
157
+ case "ucs-2":
158
+ case "utf16le":
159
+ case "utf-16le": return !0;
160
+ default: return !1;
161
+ }
162
+ }, h.concat = function(r, i) {
163
+ if (!L(r)) throw new TypeError("\"list\" argument must be an Array of Buffers");
164
+ if (r.length === 0) return h.alloc(0);
165
+ var t;
166
+ if (i === void 0) for (i = 0, t = 0; t < r.length; ++t) i += r[t].length;
167
+ var e = h.allocUnsafe(i), o = 0;
168
+ for (t = 0; t < r.length; ++t) {
169
+ var u = r[t];
170
+ if (!R(u)) throw new TypeError("\"list\" argument must be an Array of Buffers");
171
+ u.copy(e, o), o += u.length;
172
+ }
173
+ return e;
174
+ };
175
+ function V(n, r) {
176
+ if (R(n)) return n.length;
177
+ if (typeof ArrayBuffer < "u" && typeof ArrayBuffer.isView == "function" && (ArrayBuffer.isView(n) || n instanceof ArrayBuffer)) return n.byteLength;
178
+ typeof n != "string" && (n = "" + n);
179
+ var i = n.length;
180
+ if (i === 0) return 0;
181
+ for (var t = !1;;) switch (r) {
182
+ case "ascii":
183
+ case "latin1":
184
+ case "binary": return i;
185
+ case "utf8":
186
+ case "utf-8":
187
+ case void 0: return Y(n).length;
188
+ case "ucs2":
189
+ case "ucs-2":
190
+ case "utf16le":
191
+ case "utf-16le": return i * 2;
192
+ case "hex": return i >>> 1;
193
+ case "base64": return Q(n).length;
194
+ default:
195
+ if (t) return Y(n).length;
196
+ r = ("" + r).toLowerCase(), t = !0;
197
+ }
198
+ }
199
+ h.byteLength = V;
200
+ function ar(n, r, i) {
201
+ var t = !1;
202
+ if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, r >>>= 0, i <= r)) return "";
203
+ for (n || (n = "utf8");;) switch (n) {
204
+ case "hex": return yr(this, r, i);
205
+ case "utf8":
206
+ case "utf-8": return O(this, r, i);
207
+ case "ascii": return Ar(this, r, i);
208
+ case "latin1":
209
+ case "binary": return _r(this, r, i);
210
+ case "base64": return wr(this, r, i);
211
+ case "ucs2":
212
+ case "ucs-2":
213
+ case "utf16le":
214
+ case "utf-16le": return Rr(this, r, i);
215
+ default:
216
+ if (t) throw new TypeError("Unknown encoding: " + n);
217
+ n = (n + "").toLowerCase(), t = !0;
218
+ }
219
+ }
220
+ h.prototype._isBuffer = !0;
221
+ function m(n, r, i) {
222
+ var t = n[r];
223
+ n[r] = n[i], n[i] = t;
224
+ }
225
+ h.prototype.swap16 = function() {
226
+ var r = this.length;
227
+ if (r % 2 !== 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
228
+ for (var i = 0; i < r; i += 2) m(this, i, i + 1);
229
+ return this;
230
+ }, h.prototype.swap32 = function() {
231
+ var r = this.length;
232
+ if (r % 4 !== 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
233
+ for (var i = 0; i < r; i += 4) m(this, i, i + 3), m(this, i + 1, i + 2);
234
+ return this;
235
+ }, h.prototype.swap64 = function() {
236
+ var r = this.length;
237
+ if (r % 8 !== 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
238
+ for (var i = 0; i < r; i += 8) m(this, i, i + 7), m(this, i + 1, i + 6), m(this, i + 2, i + 5), m(this, i + 3, i + 4);
239
+ return this;
240
+ }, h.prototype.toString = function() {
241
+ var r = this.length | 0;
242
+ return r === 0 ? "" : arguments.length === 0 ? O(this, 0, r) : ar.apply(this, arguments);
243
+ }, h.prototype.equals = function(r) {
244
+ if (!R(r)) throw new TypeError("Argument must be a Buffer");
245
+ return this === r ? !0 : h.compare(this, r) === 0;
246
+ }, h.prototype.inspect = function() {
247
+ var r = "", i = 50;
248
+ return this.length > 0 && (r = this.toString("hex", 0, i).match(/.{2}/g).join(" "), this.length > i && (r += " ... ")), "<Buffer " + r + ">";
249
+ }, h.prototype.compare = function(r, i, t, e, o) {
250
+ if (!R(r)) throw new TypeError("Argument must be a Buffer");
251
+ if (i === void 0 && (i = 0), t === void 0 && (t = r ? r.length : 0), e === void 0 && (e = 0), o === void 0 && (o = this.length), i < 0 || t > r.length || e < 0 || o > this.length) throw new RangeError("out of range index");
252
+ if (e >= o && i >= t) return 0;
253
+ if (e >= o) return -1;
254
+ if (i >= t) return 1;
255
+ if (i >>>= 0, t >>>= 0, e >>>= 0, o >>>= 0, this === r) return 0;
256
+ for (var u = o - e, a = t - i, c = Math.min(u, a), l = this.slice(e, o), s = r.slice(i, t), p = 0; p < c; ++p) if (l[p] !== s[p]) {
257
+ u = l[p], a = s[p];
258
+ break;
259
+ }
260
+ return u < a ? -1 : a < u ? 1 : 0;
261
+ };
262
+ function q(n, r, i, t, e) {
263
+ if (n.length === 0) return -1;
264
+ if (typeof i == "string" ? (t = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, isNaN(i) && (i = e ? 0 : n.length - 1), i < 0 && (i = n.length + i), i >= n.length) {
265
+ if (e) return -1;
266
+ i = n.length - 1;
267
+ } else if (i < 0) if (e) i = 0;
268
+ else return -1;
269
+ if (typeof r == "string" && (r = h.from(r, t)), R(r)) return r.length === 0 ? -1 : G(n, r, i, t, e);
270
+ if (typeof r == "number") return r = r & 255, h.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? e ? Uint8Array.prototype.indexOf.call(n, r, i) : Uint8Array.prototype.lastIndexOf.call(n, r, i) : G(n, [r], i, t, e);
271
+ throw new TypeError("val must be string, number or Buffer");
272
+ }
273
+ function G(n, r, i, t, e) {
274
+ var o = 1, u = n.length, a = r.length;
275
+ if (t !== void 0 && (t = String(t).toLowerCase(), t === "ucs2" || t === "ucs-2" || t === "utf16le" || t === "utf-16le")) {
276
+ if (n.length < 2 || r.length < 2) return -1;
277
+ o = 2, u /= 2, a /= 2, i /= 2;
278
+ }
279
+ function c(E, I) {
280
+ return o === 1 ? E[I] : E.readUInt16BE(I * o);
281
+ }
282
+ var l;
283
+ if (e) {
284
+ var s = -1;
285
+ for (l = i; l < u; l++) if (c(n, l) === c(r, s === -1 ? 0 : l - s)) {
286
+ if (s === -1 && (s = l), l - s + 1 === a) return s * o;
287
+ } else s !== -1 && (l -= l - s), s = -1;
288
+ } else for (i + a > u && (i = u - a), l = i; l >= 0; l--) {
289
+ for (var p = !0, _ = 0; _ < a; _++) if (c(n, l + _) !== c(r, _)) {
290
+ p = !1;
291
+ break;
292
+ }
293
+ if (p) return l;
294
+ }
295
+ return -1;
296
+ }
297
+ h.prototype.includes = function(r, i, t) {
298
+ return this.indexOf(r, i, t) !== -1;
299
+ }, h.prototype.indexOf = function(r, i, t) {
300
+ return q(this, r, i, t, !0);
301
+ }, h.prototype.lastIndexOf = function(r, i, t) {
302
+ return q(this, r, i, t, !1);
303
+ };
304
+ function cr(n, r, i, t) {
305
+ i = Number(i) || 0;
306
+ var e = n.length - i;
307
+ t ? (t = Number(t), t > e && (t = e)) : t = e;
308
+ var o = r.length;
309
+ if (o % 2 !== 0) throw new TypeError("Invalid hex string");
310
+ t > o / 2 && (t = o / 2);
311
+ for (var u = 0; u < t; ++u) {
312
+ var a = parseInt(r.substr(u * 2, 2), 16);
313
+ if (isNaN(a)) return u;
314
+ n[i + u] = a;
315
+ }
316
+ return u;
317
+ }
318
+ function pr(n, r, i, t) {
319
+ return S(Y(r, n.length - i), n, i, t);
320
+ }
321
+ function J(n, r, i, t) {
322
+ return S(Tr(r), n, i, t);
323
+ }
324
+ function lr(n, r, i, t) {
325
+ return J(n, r, i, t);
326
+ }
327
+ function sr(n, r, i, t) {
328
+ return S(Q(r), n, i, t);
329
+ }
330
+ function fr(n, r, i, t) {
331
+ return S(Br(r, n.length - i), n, i, t);
332
+ }
333
+ h.prototype.write = function(r, i, t, e) {
334
+ if (i === void 0) e = "utf8", t = this.length, i = 0;
335
+ else if (t === void 0 && typeof i == "string") e = i, t = this.length, i = 0;
336
+ else if (isFinite(i)) i = i | 0, isFinite(t) ? (t = t | 0, e === void 0 && (e = "utf8")) : (e = t, t = void 0);
337
+ else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
338
+ var o = this.length - i;
339
+ if ((t === void 0 || t > o) && (t = o), r.length > 0 && (t < 0 || i < 0) || i > this.length) throw new RangeError("Attempt to write outside buffer bounds");
340
+ e || (e = "utf8");
341
+ for (var u = !1;;) switch (e) {
342
+ case "hex": return cr(this, r, i, t);
343
+ case "utf8":
344
+ case "utf-8": return pr(this, r, i, t);
345
+ case "ascii": return J(this, r, i, t);
346
+ case "latin1":
347
+ case "binary": return lr(this, r, i, t);
348
+ case "base64": return sr(this, r, i, t);
349
+ case "ucs2":
350
+ case "ucs-2":
351
+ case "utf16le":
352
+ case "utf-16le": return fr(this, r, i, t);
353
+ default:
354
+ if (u) throw new TypeError("Unknown encoding: " + e);
355
+ e = ("" + e).toLowerCase(), u = !0;
356
+ }
357
+ }, h.prototype.toJSON = function() {
358
+ return {
359
+ type: "Buffer",
360
+ data: Array.prototype.slice.call(this._arr || this, 0)
361
+ };
362
+ };
363
+ function wr(n, r, i) {
364
+ return r === 0 && i === n.length ? N(n) : N(n.slice(r, i));
365
+ }
366
+ function O(n, r, i) {
367
+ i = Math.min(n.length, i);
368
+ for (var t = [], e = r; e < i;) {
369
+ var o = n[e], u = null, a = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
370
+ if (e + a <= i) {
371
+ var c, l, s, p;
372
+ switch (a) {
373
+ case 1:
374
+ o < 128 && (u = o);
375
+ break;
376
+ case 2:
377
+ c = n[e + 1], (c & 192) === 128 && (p = (o & 31) << 6 | c & 63, p > 127 && (u = p));
378
+ break;
379
+ case 3:
380
+ c = n[e + 1], l = n[e + 2], (c & 192) === 128 && (l & 192) === 128 && (p = (o & 15) << 12 | (c & 63) << 6 | l & 63, p > 2047 && (p < 55296 || p > 57343) && (u = p));
381
+ break;
382
+ case 4: c = n[e + 1], l = n[e + 2], s = n[e + 3], (c & 192) === 128 && (l & 192) === 128 && (s & 192) === 128 && (p = (o & 15) << 18 | (c & 63) << 12 | (l & 63) << 6 | s & 63, p > 65535 && p < 1114112 && (u = p));
383
+ }
384
+ }
385
+ u === null ? (u = 65533, a = 1) : u > 65535 && (u -= 65536, t.push(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), t.push(u), e += a;
386
+ }
387
+ return Er(t);
388
+ }
389
+ var X = 4096;
390
+ function Er(n) {
391
+ var r = n.length;
392
+ if (r <= X) return String.fromCharCode.apply(String, n);
393
+ for (var i = "", t = 0; t < r;) i += String.fromCharCode.apply(String, n.slice(t, t += X));
394
+ return i;
395
+ }
396
+ function Ar(n, r, i) {
397
+ var t = "";
398
+ i = Math.min(n.length, i);
399
+ for (var e = r; e < i; ++e) t += String.fromCharCode(n[e] & 127);
400
+ return t;
401
+ }
402
+ function _r(n, r, i) {
403
+ var t = "";
404
+ i = Math.min(n.length, i);
405
+ for (var e = r; e < i; ++e) t += String.fromCharCode(n[e]);
406
+ return t;
407
+ }
408
+ function yr(n, r, i) {
409
+ var t = n.length;
410
+ (!r || r < 0) && (r = 0), (!i || i < 0 || i > t) && (i = t);
411
+ for (var e = "", o = r; o < i; ++o) e += Ur(n[o]);
412
+ return e;
413
+ }
414
+ function Rr(n, r, i) {
415
+ for (var t = n.slice(r, i), e = "", o = 0; o < t.length; o += 2) e += String.fromCharCode(t[o] + t[o + 1] * 256);
416
+ return e;
417
+ }
418
+ h.prototype.slice = function(r, i) {
419
+ var t = this.length;
420
+ r = ~~r, i = i === void 0 ? t : ~~i, r < 0 ? (r += t, r < 0 && (r = 0)) : r > t && (r = t), i < 0 ? (i += t, i < 0 && (i = 0)) : i > t && (i = t), i < r && (i = r);
421
+ var e;
422
+ if (h.TYPED_ARRAY_SUPPORT) e = this.subarray(r, i), e.__proto__ = h.prototype;
423
+ else {
424
+ var o = i - r;
425
+ e = new h(o, void 0);
426
+ for (var u = 0; u < o; ++u) e[u] = this[u + r];
427
+ }
428
+ return e;
429
+ };
430
+ function f(n, r, i) {
431
+ if (n % 1 !== 0 || n < 0) throw new RangeError("offset is not uint");
432
+ if (n + r > i) throw new RangeError("Trying to access beyond buffer length");
433
+ }
434
+ h.prototype.readUIntLE = function(r, i, t) {
435
+ r = r | 0, i = i | 0, t || f(r, i, this.length);
436
+ for (var e = this[r], o = 1, u = 0; ++u < i && (o *= 256);) e += this[r + u] * o;
437
+ return e;
438
+ }, h.prototype.readUIntBE = function(r, i, t) {
439
+ r = r | 0, i = i | 0, t || f(r, i, this.length);
440
+ for (var e = this[r + --i], o = 1; i > 0 && (o *= 256);) e += this[r + --i] * o;
441
+ return e;
442
+ }, h.prototype.readUInt8 = function(r, i) {
443
+ return i || f(r, 1, this.length), this[r];
444
+ }, h.prototype.readUInt16LE = function(r, i) {
445
+ return i || f(r, 2, this.length), this[r] | this[r + 1] << 8;
446
+ }, h.prototype.readUInt16BE = function(r, i) {
447
+ return i || f(r, 2, this.length), this[r] << 8 | this[r + 1];
448
+ }, h.prototype.readUInt32LE = function(r, i) {
449
+ return i || f(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216;
450
+ }, h.prototype.readUInt32BE = function(r, i) {
451
+ return i || f(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
452
+ }, h.prototype.readIntLE = function(r, i, t) {
453
+ r = r | 0, i = i | 0, t || f(r, i, this.length);
454
+ for (var e = this[r], o = 1, u = 0; ++u < i && (o *= 256);) e += this[r + u] * o;
455
+ return o *= 128, e >= o && (e -= Math.pow(2, 8 * i)), e;
456
+ }, h.prototype.readIntBE = function(r, i, t) {
457
+ r = r | 0, i = i | 0, t || f(r, i, this.length);
458
+ for (var e = i, o = 1, u = this[r + --e]; e > 0 && (o *= 256);) u += this[r + --e] * o;
459
+ return o *= 128, u >= o && (u -= Math.pow(2, 8 * i)), u;
460
+ }, h.prototype.readInt8 = function(r, i) {
461
+ return i || f(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
462
+ }, h.prototype.readInt16LE = function(r, i) {
463
+ i || f(r, 2, this.length);
464
+ var t = this[r] | this[r + 1] << 8;
465
+ return t & 32768 ? t | 4294901760 : t;
466
+ }, h.prototype.readInt16BE = function(r, i) {
467
+ i || f(r, 2, this.length);
468
+ var t = this[r + 1] | this[r] << 8;
469
+ return t & 32768 ? t | 4294901760 : t;
470
+ }, h.prototype.readInt32LE = function(r, i) {
471
+ return i || f(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24;
472
+ }, h.prototype.readInt32BE = function(r, i) {
473
+ return i || f(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
474
+ }, h.prototype.readFloatLE = function(r, i) {
475
+ return i || f(r, 4, this.length), U(this, r, !0, 23, 4);
476
+ }, h.prototype.readFloatBE = function(r, i) {
477
+ return i || f(r, 4, this.length), U(this, r, !1, 23, 4);
478
+ }, h.prototype.readDoubleLE = function(r, i) {
479
+ return i || f(r, 8, this.length), U(this, r, !0, 52, 8);
480
+ }, h.prototype.readDoubleBE = function(r, i) {
481
+ return i || f(r, 8, this.length), U(this, r, !1, 52, 8);
482
+ };
483
+ function w(n, r, i, t, e, o) {
484
+ if (!R(n)) throw new TypeError("\"buffer\" argument must be a Buffer instance");
485
+ if (r > e || r < o) throw new RangeError("\"value\" argument is out of bounds");
486
+ if (i + t > n.length) throw new RangeError("Index out of range");
487
+ }
488
+ h.prototype.writeUIntLE = function(r, i, t, e) {
489
+ if (r = +r, i = i | 0, t = t | 0, !e) {
490
+ var o = Math.pow(2, 8 * t) - 1;
491
+ w(this, r, i, t, o, 0);
492
+ }
493
+ var u = 1, a = 0;
494
+ for (this[i] = r & 255; ++a < t && (u *= 256);) this[i + a] = r / u & 255;
495
+ return i + t;
496
+ }, h.prototype.writeUIntBE = function(r, i, t, e) {
497
+ if (r = +r, i = i | 0, t = t | 0, !e) {
498
+ var o = Math.pow(2, 8 * t) - 1;
499
+ w(this, r, i, t, o, 0);
500
+ }
501
+ var u = t - 1, a = 1;
502
+ for (this[i + u] = r & 255; --u >= 0 && (a *= 256);) this[i + u] = r / a & 255;
503
+ return i + t;
504
+ }, h.prototype.writeUInt8 = function(r, i, t) {
505
+ return r = +r, i = i | 0, t || w(this, r, i, 1, 255, 0), h.TYPED_ARRAY_SUPPORT || (r = Math.floor(r)), this[i] = r & 255, i + 1;
506
+ };
507
+ function B(n, r, i, t) {
508
+ r < 0 && (r = 65535 + r + 1);
509
+ for (var e = 0, o = Math.min(n.length - i, 2); e < o; ++e) n[i + e] = (r & 255 << 8 * (t ? e : 1 - e)) >>> (t ? e : 1 - e) * 8;
510
+ }
511
+ h.prototype.writeUInt16LE = function(r, i, t) {
512
+ return r = +r, i = i | 0, t || w(this, r, i, 2, 65535, 0), h.TYPED_ARRAY_SUPPORT ? (this[i] = r & 255, this[i + 1] = r >>> 8) : B(this, r, i, !0), i + 2;
513
+ }, h.prototype.writeUInt16BE = function(r, i, t) {
514
+ return r = +r, i = i | 0, t || w(this, r, i, 2, 65535, 0), h.TYPED_ARRAY_SUPPORT ? (this[i] = r >>> 8, this[i + 1] = r & 255) : B(this, r, i, !1), i + 2;
515
+ };
516
+ function v(n, r, i, t) {
517
+ r < 0 && (r = 4294967295 + r + 1);
518
+ for (var e = 0, o = Math.min(n.length - i, 4); e < o; ++e) n[i + e] = r >>> (t ? e : 3 - e) * 8 & 255;
519
+ }
520
+ h.prototype.writeUInt32LE = function(r, i, t) {
521
+ return r = +r, i = i | 0, t || w(this, r, i, 4, 4294967295, 0), h.TYPED_ARRAY_SUPPORT ? (this[i + 3] = r >>> 24, this[i + 2] = r >>> 16, this[i + 1] = r >>> 8, this[i] = r & 255) : v(this, r, i, !0), i + 4;
522
+ }, h.prototype.writeUInt32BE = function(r, i, t) {
523
+ return r = +r, i = i | 0, t || w(this, r, i, 4, 4294967295, 0), h.TYPED_ARRAY_SUPPORT ? (this[i] = r >>> 24, this[i + 1] = r >>> 16, this[i + 2] = r >>> 8, this[i + 3] = r & 255) : v(this, r, i, !1), i + 4;
524
+ }, h.prototype.writeIntLE = function(r, i, t, e) {
525
+ if (r = +r, i = i | 0, !e) {
526
+ var o = Math.pow(2, 8 * t - 1);
527
+ w(this, r, i, t, o - 1, -o);
528
+ }
529
+ var u = 0, a = 1, c = 0;
530
+ for (this[i] = r & 255; ++u < t && (a *= 256);) r < 0 && c === 0 && this[i + u - 1] !== 0 && (c = 1), this[i + u] = (r / a >> 0) - c & 255;
531
+ return i + t;
532
+ }, h.prototype.writeIntBE = function(r, i, t, e) {
533
+ if (r = +r, i = i | 0, !e) {
534
+ var o = Math.pow(2, 8 * t - 1);
535
+ w(this, r, i, t, o - 1, -o);
536
+ }
537
+ var u = t - 1, a = 1, c = 0;
538
+ for (this[i + u] = r & 255; --u >= 0 && (a *= 256);) r < 0 && c === 0 && this[i + u + 1] !== 0 && (c = 1), this[i + u] = (r / a >> 0) - c & 255;
539
+ return i + t;
540
+ }, h.prototype.writeInt8 = function(r, i, t) {
541
+ return r = +r, i = i | 0, t || w(this, r, i, 1, 127, -128), h.TYPED_ARRAY_SUPPORT || (r = Math.floor(r)), r < 0 && (r = 255 + r + 1), this[i] = r & 255, i + 1;
542
+ }, h.prototype.writeInt16LE = function(r, i, t) {
543
+ return r = +r, i = i | 0, t || w(this, r, i, 2, 32767, -32768), h.TYPED_ARRAY_SUPPORT ? (this[i] = r & 255, this[i + 1] = r >>> 8) : B(this, r, i, !0), i + 2;
544
+ }, h.prototype.writeInt16BE = function(r, i, t) {
545
+ return r = +r, i = i | 0, t || w(this, r, i, 2, 32767, -32768), h.TYPED_ARRAY_SUPPORT ? (this[i] = r >>> 8, this[i + 1] = r & 255) : B(this, r, i, !1), i + 2;
546
+ }, h.prototype.writeInt32LE = function(r, i, t) {
547
+ return r = +r, i = i | 0, t || w(this, r, i, 4, 2147483647, -2147483648), h.TYPED_ARRAY_SUPPORT ? (this[i] = r & 255, this[i + 1] = r >>> 8, this[i + 2] = r >>> 16, this[i + 3] = r >>> 24) : v(this, r, i, !0), i + 4;
548
+ }, h.prototype.writeInt32BE = function(r, i, t) {
549
+ return r = +r, i = i | 0, t || w(this, r, i, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), h.TYPED_ARRAY_SUPPORT ? (this[i] = r >>> 24, this[i + 1] = r >>> 16, this[i + 2] = r >>> 8, this[i + 3] = r & 255) : v(this, r, i, !1), i + 4;
550
+ };
551
+ function z(n, r, i, t, e, o) {
552
+ if (i + t > n.length) throw new RangeError("Index out of range");
553
+ if (i < 0) throw new RangeError("Index out of range");
554
+ }
555
+ function Z(n, r, i, t, e) {
556
+ return e || z(n, r, i, 4), F(n, r, i, t, 23, 4), i + 4;
557
+ }
558
+ h.prototype.writeFloatLE = function(r, i, t) {
559
+ return Z(this, r, i, !0, t);
560
+ }, h.prototype.writeFloatBE = function(r, i, t) {
561
+ return Z(this, r, i, !1, t);
562
+ };
563
+ function K(n, r, i, t, e) {
564
+ return e || z(n, r, i, 8), F(n, r, i, t, 52, 8), i + 8;
565
+ }
566
+ h.prototype.writeDoubleLE = function(r, i, t) {
567
+ return K(this, r, i, !0, t);
568
+ }, h.prototype.writeDoubleBE = function(r, i, t) {
569
+ return K(this, r, i, !1, t);
570
+ }, h.prototype.copy = function(r, i, t, e) {
571
+ if (t || (t = 0), !e && e !== 0 && (e = this.length), i >= r.length && (i = r.length), i || (i = 0), e > 0 && e < t && (e = t), e === t || r.length === 0 || this.length === 0) return 0;
572
+ if (i < 0) throw new RangeError("targetStart out of bounds");
573
+ if (t < 0 || t >= this.length) throw new RangeError("sourceStart out of bounds");
574
+ if (e < 0) throw new RangeError("sourceEnd out of bounds");
575
+ e > this.length && (e = this.length), r.length - i < e - t && (e = r.length - i + t);
576
+ var o = e - t, u;
577
+ if (this === r && t < i && i < e) for (u = o - 1; u >= 0; --u) r[u + i] = this[u + t];
578
+ else if (o < 1e3 || !h.TYPED_ARRAY_SUPPORT) for (u = 0; u < o; ++u) r[u + i] = this[u + t];
579
+ else Uint8Array.prototype.set.call(r, this.subarray(t, t + o), i);
580
+ return o;
581
+ }, h.prototype.fill = function(r, i, t, e) {
582
+ if (typeof r == "string") {
583
+ if (typeof i == "string" ? (e = i, i = 0, t = this.length) : typeof t == "string" && (e = t, t = this.length), r.length === 1) {
584
+ var o = r.charCodeAt(0);
585
+ o < 256 && (r = o);
586
+ }
587
+ if (e !== void 0 && typeof e != "string") throw new TypeError("encoding must be a string");
588
+ if (typeof e == "string" && !h.isEncoding(e)) throw new TypeError("Unknown encoding: " + e);
589
+ } else typeof r == "number" && (r = r & 255);
590
+ if (i < 0 || this.length < i || this.length < t) throw new RangeError("Out of range index");
591
+ if (t <= i) return this;
592
+ i = i >>> 0, t = t === void 0 ? this.length : t >>> 0, r || (r = 0);
593
+ var u;
594
+ if (typeof r == "number") for (u = i; u < t; ++u) this[u] = r;
595
+ else {
596
+ var a = R(r) ? r : Y(new h(r, e).toString()), c = a.length;
597
+ for (u = 0; u < t - i; ++u) this[u + i] = a[u % c];
598
+ }
599
+ return this;
600
+ };
601
+ var gr = /[^+\/0-9A-Za-z-_]/g;
602
+ function mr(n) {
603
+ if (n = Ir(n).replace(gr, ""), n.length < 2) return "";
604
+ for (; n.length % 4 !== 0;) n = n + "=";
605
+ return n;
606
+ }
607
+ function Ir(n) {
608
+ return n.trim ? n.trim() : n.replace(/^\s+|\s+$/g, "");
609
+ }
610
+ function Ur(n) {
611
+ return n < 16 ? "0" + n.toString(16) : n.toString(16);
612
+ }
613
+ function Y(n, r) {
614
+ r = r || Infinity;
615
+ for (var i, t = n.length, e = null, o = [], u = 0; u < t; ++u) {
616
+ if (i = n.charCodeAt(u), i > 55295 && i < 57344) {
617
+ if (!e) {
618
+ if (i > 56319) {
619
+ (r -= 3) > -1 && o.push(239, 191, 189);
620
+ continue;
621
+ } else if (u + 1 === t) {
622
+ (r -= 3) > -1 && o.push(239, 191, 189);
623
+ continue;
624
+ }
625
+ e = i;
626
+ continue;
627
+ }
628
+ if (i < 56320) {
629
+ (r -= 3) > -1 && o.push(239, 191, 189), e = i;
630
+ continue;
631
+ }
632
+ i = (e - 55296 << 10 | i - 56320) + 65536;
633
+ } else e && (r -= 3) > -1 && o.push(239, 191, 189);
634
+ if (e = null, i < 128) {
635
+ if ((r -= 1) < 0) break;
636
+ o.push(i);
637
+ } else if (i < 2048) {
638
+ if ((r -= 2) < 0) break;
639
+ o.push(i >> 6 | 192, i & 63 | 128);
640
+ } else if (i < 65536) {
641
+ if ((r -= 3) < 0) break;
642
+ o.push(i >> 12 | 224, i >> 6 & 63 | 128, i & 63 | 128);
643
+ } else if (i < 1114112) {
644
+ if ((r -= 4) < 0) break;
645
+ o.push(i >> 18 | 240, i >> 12 & 63 | 128, i >> 6 & 63 | 128, i & 63 | 128);
646
+ } else throw new Error("Invalid code point");
647
+ }
648
+ return o;
649
+ }
650
+ function Tr(n) {
651
+ for (var r = [], i = 0; i < n.length; ++i) r.push(n.charCodeAt(i) & 255);
652
+ return r;
653
+ }
654
+ function Br(n, r) {
655
+ for (var i, t, e, o = [], u = 0; u < n.length && !((r -= 2) < 0); ++u) i = n.charCodeAt(u), t = i >> 8, e = i % 256, o.push(e), o.push(t);
656
+ return o;
657
+ }
658
+ function Q(n) {
659
+ return rr(mr(n));
660
+ }
661
+ function S(n, r, i, t) {
662
+ for (var e = 0; e < t && !(e + i >= r.length || e >= n.length); ++e) r[e + i] = n[e];
663
+ return e;
664
+ }
665
+ function vr(n) {
666
+ return n !== n;
667
+ }
668
+ function Yr(n) {
669
+ return n != null && (!!n._isBuffer || $(n) || Sr(n));
670
+ }
671
+ function $(n) {
672
+ return !!n.constructor && typeof n.constructor.isBuffer == "function" && n.constructor.isBuffer(n);
673
+ }
674
+ function Sr(n) {
675
+ return typeof n.readFloatLE == "function" && typeof n.slice == "function" && $(n.slice(0, 0));
676
+ }
677
+ Object.defineProperty(j, "Buffer", {
678
+ enumerable: !0,
679
+ get: function() {
680
+ return h;
681
+ }
682
+ });
683
+ });