forked from cerc-io/cosmos-explorer
3 lines
473 KiB
JavaScript
3 lines
473 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f717d484"],{"00dc":function(e,t,r){(function(e){var i=r("58a2"),n=r("c24d"),o=r("561d");function a(t){var r=new e(n[t].prime,"hex"),i=new e(n[t].gen,"hex");return new o(r,i)}var s={binary:!0,hex:!0,base64:!0};function f(t,r,n,a){return e.isBuffer(r)||void 0===s[r]?f(t,"binary",r,n):(r=r||"binary",a=a||"binary",n=n||new e([2]),e.isBuffer(n)||(n=new e(n,a)),"number"===typeof t?new o(i(t,n),n,!0):(e.isBuffer(t)||(t=new e(t,r)),new o(t,n,!0)))}t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=a,t.createDiffieHellman=t.DiffieHellman=f}).call(this,r("b639").Buffer)},"0145":function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},"0184":function(e,t,r){"use strict";var i=r("da3e");function n(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=n,n.prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0;i<r;i++)this.buffer[this.bufferOff+i]=e[t+i];return this.bufferOff+=r,r},n.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(e){var t=0,r=0,i=(this.bufferOff+e.length)/this.blockSize|0,n=new Array(i*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(n,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,n,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},n.prototype._updateDecrypt=function(e){for(var t=0,r=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,n=new Array(i*this.blockSize);i>0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;while(t<e.length)e[t++]=0;return!0},n.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},n.prototype._unpad=function(e){return e},n.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},"0211":function(e,t,r){"use strict";const i=t;i._reverse=function(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const i=e[r];t[i]=r})),t},i.der=r("8b71")},"02f1":function(e,t,r){"use strict";(function(e){var i=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.serializePathv2=f,t.signSendChunkv2=h,t.publicKeyv2=c;var n=i(r("a34a")),o=i(r("c973")),a=r("4af0"),s=r("47fe");function f(t){if(!t||5!==t.length)throw new Error("Invalid path.");var r=e.alloc(20);return r.writeUInt32LE(2147483648+t[0],0),r.writeUInt32LE(2147483648+t[1],4),r.writeUInt32LE(2147483648+t[2],8),r.writeUInt32LE(t[3],12),r.writeUInt32LE(t[4],16),r}function h(e,t,r,i){return u.apply(this,arguments)}function u(){return u=(0,o.default)(n.default.mark((function e(t,r,i,o){var f;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return f=s.PAYLOAD_TYPE.ADD,1===r&&(f=s.PAYLOAD_TYPE.INIT),r===i&&(f=s.PAYLOAD_TYPE.LAST),e.abrupt("return",(0,a.signSendChunkv1)(t,f,0,o));case 4:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function c(e,t){return d.apply(this,arguments)}function d(){return d=(0,o.default)(n.default.mark((function t(r,i){return n.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",r.transport.send(s.CLA,s.INS.GET_ADDR_SECP256K1,0,0,i,[s.ERROR_CODE.NoError]).then((function(t){var r=t.slic
|
|||
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|||
|
var i=r("b639"),n=i.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=a),a.prototype=Object.create(n.prototype),o(n,a),a.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"===typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},8840:function(e,t,r){const i=r("df02"),n=(e,t,r)=>{const n=new i(e,r),o=new i(t,r);return n.compare(o)||n.compareBuild(o)};e.exports=n},8854:function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return f}));var i=r("ddc3"),n=r.n(i);const o={blue:{id:"blue",productName:"Ledger Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,blockSize:4096,getBlockSize:e=>4096},nanoS:{id:"nanoS",productName:"Ledger Nano S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,blockSize:4096,getBlockSize:e=>n.a.lt(n.a.coerce(e),"2.0.0")?4096:2048},nanoX:{id:"nanoX",productName:"Ledger Nano X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,blockSize:4096,getBlockSize:e=>4096,bluetoothSpec:[{serviceUuid:"d973f2e0-b19e-11e2-9e96-0800200c9a66",notifyUuid:"d973f2e1-b19e-11e2-9e96-0800200c9a66",writeUuid:"d973f2e2-b19e-11e2-9e96-0800200c9a66"},{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572"}]}},a=Object.values(o),s=11415,f=e=>{const t=a.find(t=>t.legacyUsbProductId===e);if(t)return t;const r=e>>8,i=a.find(e=>e.productIdMM===r);return i},h=[],u={};for(let c in o){const e=o[c],{bluetoothSpec:t}=e;if(t)for(let r=0;r<t.length;r++){const i=t[r];h.push(i.serviceUuid),u[i.serviceUuid]=u[i.serviceUuid.replace(/-/g,"")]={deviceModel:e,...i}}}},8947:function(e,t,r){var i=r("bac2"),n=r("82f0"),o=r("8707").Buffer,a=r("09f5"),s=r("6430"),f=r("39f5"),h=r("ae84"),u=r("3fb5");function c(e,t,r){s.call(this),this._cache=new l,this._cipher=new f.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}u(c,s),c.prototype._update=function(e){var t,r;this._cache.add(e);var i=[];while(t=this._cache.get())r=this._mode.encrypt(this,t),i.push(r);return o.concat(i)};var d=o.alloc(16,16);function l(){this.cache=o.allocUnsafe(0)}function p(e,t,r){var s=i[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"===typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new n(s.module,t,r):new c(s.module,t,r)}function b(e,t){var r=i[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=h(t,!1,r.key,r.iv);return p(e,n.key,n.iv)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=o.concat([this.cache,e])},l.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;while(++r<e)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=p,t.createCipher=b},"89fd":function(e,t,r){e.exports=r("0ac3").Transform},"8b71":function(e,t,r){"use strict";function i(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const i=e[r];t[i]
|