-
Notifications
You must be signed in to change notification settings - Fork 0
/
27.4e8f15db01ce8ccb071f.js
1 lines (1 loc) · 64.6 KB
/
27.4e8f15db01ce8ccb071f.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"+bBA":function(e,t,n){"use strict";var r=n("h7bn");r(n("sVx8")),r(n("cSd0")),r(n("6kbT")),r(n("9/D5")),r(n("2bz0")),r(n("fbQx")),r(n("kKNU")),r(n("INcP")),r(n("1gKp")),r(n("IsTo")),r(n("iSpK")),r(n("Ug/K")),r(n("45mM")),r(n("7rqn")),r(n("vnWk")),r(n("Q15x")),r(n("19mY")),r(n("hED2")),r(n("0vSo")),r(n("xrFu"))},"/CWR":function(e,t,n){"use strict";t.__esModule=!0,t.CERTIFICATE_TYPE=t.ADDRESS_TYPE=t.NETWORK_IDS=t.PROTOCOL_MAGICS=void 0;var r=Object.freeze({mainnet:764824073,testnet:42});t.PROTOCOL_MAGICS=r;var o=Object.freeze({mainnet:1,testnet:0});t.NETWORK_IDS=o;var i=Object.freeze({Base:0,Pointer:4,Enterprise:6,Byron:8,Reward:14});t.ADDRESS_TYPE=i;var s=Object.freeze({StakeRegistration:0,StakeDeregistration:1,StakeDelegation:2});t.CERTIFICATE_TYPE=s},"/pEn":function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},"0vSo":function(e,t,n){"use strict";n("sVx8")},"0zl2":function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},"19mY":function(e,t,n){},"1gKp":function(e,t,n){"use strict";n("/CWR")},"2bz0":function(e,t,n){},"4+4z":function(e,t,n){var r=n("cPrX"),o=n("wynC"),i=n("8sEe"),s=n("bcN7");function a(t){var n="function"==typeof Map?new Map:void 0;return e.exports=a=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return s(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},a(t)}e.exports=a},"45mM":function(e,t,n){},"4aYt":function(e,t,n){"use strict";t.__esModule=!0,t.FIAT_RATES_UPDATE=t.NOTIFICATION=t.BLOCK=t.CONNECT=t.ERROR=void 0,t.ERROR="blockchain-error",t.CONNECT="blockchain-connect",t.BLOCK="blockchain-block",t.NOTIFICATION="blockchain-notification",t.FIAT_RATES_UPDATE="fiat-rates-update"},"6kbT":function(e,t,n){"use strict";n("sVx8")},"7rqn":function(e,t,n){},"8sEe":function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},"9/D5":function(e,t,n){},C2mV:function(e,t,n){"use strict";(function(e){t.__esModule=!0,t.popupConsole=t.enableByPrefix=t.getLog=t.enable=t.init=t.default=void 0;var n=void 0,r={DescriptorStream:"color: #77ab59",DeviceList:"color: #36802d",Device:"color: #bada55",Core:"color: #c9df8a",IFrame:"color: #FFFFFF; background: #f4a742;",Popup:"color: #f48a00"},o=function(){function e(e,t){void 0===t&&(t=!1),this.prefix=e,this.enabled=t,this.messages=[],this.css=r[e]||"color: #000000; background: #FFFFFF;"}var t=e.prototype;return t.addMessage=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];this.messages.push({level:e,prefix:t,message:r,timestamp:(new Date).getTime()})},t.log=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;this.addMessage.apply(this,["log",this.prefix].concat(t)),this.enabled&&(r=console).log.apply(r,[this.prefix].concat(t))},t.error=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;this.addMessage.apply(this,["error",this.prefix].concat(t)),this.enabled&&(r=console).error.apply(r,[this.prefix].concat(t))},t.warn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;this.addMessage.apply(this,["warn",this.prefix].concat(t)),this.enabled&&(r=console).warn.apply(r,[this.prefix].concat(t))},t.debug=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;this.addMessage.apply(this,["debug",this.prefix].concat(t)),this.enabled&&(r=console).log.apply(r,["%c"+this.prefix,this.css].concat(t))},e}();t.default=o;var i={};t.init=function(e,t){var n=new o(e,"boolean"==typeof t&&t);return i[e]=n,n},t.enable=function(e){for(var t=0,n=Object.keys(i);t<n.length;t++)i[n[t]].enabled=e},t.getLog=function(e){for(var t=[],n=0,r=Object.keys(i);n<r.length;n++)t=t.concat(i[r[n]].messages);return t.sort(function(e,t){return e.timestamp-t.timestamp}),t},t.enableByPrefix=function(e,t){i[e]&&(i[e].enabled=t)},t.popupConsole=function(t,r){var o=e.console,i={error:o.error,info:o.info,debug:o.debug,log:o.log},s=[],a=function(e,i){return function(){for(var a=(new Date).toUTCString(),c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return s.push([i,a].concat(u)),r.apply(n,[{type:t,level:i,time:a,args:JSON.stringify(u)}]),e.apply(o,u)}};for(var c in i)o[c]=a(i[c],c)}}).call(this,n("yLpj"))},Cnhs:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},Dc05:function(e,t,n){"use strict";t.__esModule=!0;var r=n("+bBA");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))});var o=n("0vSo");Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))});var i=n("hED2");Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))});var s=n("cSd0");Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))});var a=n("fbQx");Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))});var c=n("6kbT");Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))});var u=n("9/D5");Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))});var l=n("kKNU");Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))});var d=n("INcP");Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))});var p=n("1gKp");Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))});var f=n("IsTo");Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))});var E=n("iSpK");Object.keys(E).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))});var h=n("Ug/K");Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))});var m=n("45mM");Object.keys(m).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))});var b=n("7rqn");Object.keys(b).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))});var y=n("vnWk");Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))});var _=n("Q15x");Object.keys(_).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||(t[e]=_[e]))});var v=n("19mY");Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))});var S=n("xrFu");Object.keys(S).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===S[e]||(t[e]=S[e]))});var g=n("R2YI");Object.keys(g).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))})},INcP:function(e,t,n){},IlcN:function(e,t,n){"use strict";t.__esModule=!0,t.IFRAME_FAILURE=t.ADDRESS_VALIDATION=t.BUNDLE_PROGRESS=t.LOGIN_CHALLENGE_RESPONSE=t.LOGIN_CHALLENGE_REQUEST=t.CUSTOM_MESSAGE_RESPONSE=t.CUSTOM_MESSAGE_REQUEST=t.CHANGE_SETTINGS=t.RECEIVE_WORD=t.RECEIVE_FEE=t.RECEIVE_ACCOUNT=t.CHANGE_ACCOUNT=t.RECEIVE_DEVICE=t.RECEIVE_PASSPHRASE=t.RECEIVE_PIN=t.RECEIVE_CONFIRMATION=t.RECEIVE_PERMISSION=t.REQUEST_WORD=t.REQUEST_BUTTON=t.INSUFFICIENT_FUNDS=t.UPDATE_CUSTOM_FEE=t.SELECT_FEE=t.SELECT_ACCOUNT=t.SELECT_DEVICE=t.SET_OPERATION=t.LOADING=t.CONNECT=t.INVALID_PASSPHRASE_ACTION=t.INVALID_PASSPHRASE=t.REQUEST_PASSPHRASE_ON_DEVICE=t.REQUEST_PASSPHRASE=t.INVALID_PIN=t.REQUEST_PIN=t.REQUEST_CONFIRMATION=t.REQUEST_PERMISSION=t.CLOSE_UI_WINDOW=t.REQUEST_UI_WINDOW=t.DEVICE_NEEDS_BACKUP=t.FIRMWARE_PROGRESS=t.FIRMWARE_NOT_INSTALLED=t.FIRMWARE_NOT_COMPATIBLE=t.FIRMWARE_NOT_SUPPORTED=t.FIRMWARE_OUTDATED=t.FIRMWARE_OLD=t.SEEDLESS=t.INITIALIZE=t.REQUIRE_MODE=t.NOT_IN_BOOTLOADER=t.BOOTLOADER=t.TRANSPORT=void 0,t.TRANSPORT="ui-no_transport",t.BOOTLOADER="ui-device_bootloader_mode",t.NOT_IN_BOOTLOADER="ui-device_not_in_bootloader_mode",t.REQUIRE_MODE="ui-device_require_mode",t.INITIALIZE="ui-device_not_initialized",t.SEEDLESS="ui-device_seedless",t.FIRMWARE_OLD="ui-device_firmware_old",t.FIRMWARE_OUTDATED="ui-device_firmware_outdated",t.FIRMWARE_NOT_SUPPORTED="ui-device_firmware_unsupported",t.FIRMWARE_NOT_COMPATIBLE="ui-device_firmware_not_compatible",t.FIRMWARE_NOT_INSTALLED="ui-device_firmware_not_installed",t.FIRMWARE_PROGRESS="ui-firmware-progress",t.DEVICE_NEEDS_BACKUP="ui-device_needs_backup",t.REQUEST_UI_WINDOW="ui-request_window",t.CLOSE_UI_WINDOW="ui-close_window",t.REQUEST_PERMISSION="ui-request_permission",t.REQUEST_CONFIRMATION="ui-request_confirmation",t.REQUEST_PIN="ui-request_pin",t.INVALID_PIN="ui-invalid_pin",t.REQUEST_PASSPHRASE="ui-request_passphrase",t.REQUEST_PASSPHRASE_ON_DEVICE="ui-request_passphrase_on_device",t.INVALID_PASSPHRASE="ui-invalid_passphrase",t.INVALID_PASSPHRASE_ACTION="ui-invalid_passphrase_action",t.CONNECT="ui-connect",t.LOADING="ui-loading",t.SET_OPERATION="ui-set_operation",t.SELECT_DEVICE="ui-select_device",t.SELECT_ACCOUNT="ui-select_account",t.SELECT_FEE="ui-select_fee",t.UPDATE_CUSTOM_FEE="ui-update_custom_fee",t.INSUFFICIENT_FUNDS="ui-insufficient_funds",t.REQUEST_BUTTON="ui-button",t.REQUEST_WORD="ui-request_word",t.RECEIVE_PERMISSION="ui-receive_permission",t.RECEIVE_CONFIRMATION="ui-receive_confirmation",t.RECEIVE_PIN="ui-receive_pin",t.RECEIVE_PASSPHRASE="ui-receive_passphrase",t.RECEIVE_DEVICE="ui-receive_device",t.CHANGE_ACCOUNT="ui-change_account",t.RECEIVE_ACCOUNT="ui-receive_account",t.RECEIVE_FEE="ui-receive_fee",t.RECEIVE_WORD="ui-receive_word",t.CHANGE_SETTINGS="ui-change_settings",t.CUSTOM_MESSAGE_REQUEST="ui-custom_request",t.CUSTOM_MESSAGE_RESPONSE="ui-custom_response",t.LOGIN_CHALLENGE_REQUEST="ui-login_challenge_request",t.LOGIN_CHALLENGE_RESPONSE="ui-login_challenge_response",t.BUNDLE_PROGRESS="ui-bundle_progress",t.ADDRESS_VALIDATION="ui-address_validation",t.IFRAME_FAILURE="ui-iframe_failure"},IsTo:function(e,t,n){},MSiO:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},MbSw:function(e,t,n){"use strict";var r=n("whn2");t.__esModule=!0,t.create=function(e,t){var n,r=function(e){},s=function(e){},a=new Promise(function(){var t=(0,i.default)(o.default.mark(function t(i,a){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=i,s=a,"function"!=typeof e){t.next=11;break}return t.prev=3,t.next=6,e();case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(3),a(t.t0);case 11:"string"==typeof e&&(n=e);case 12:case"end":return t.stop()}},t,null,[[3,8]])}));return function(e,n){return t.apply(this,arguments)}}());return{id:n,device:t,resolve:r,reject:s,promise:a}},t.createAsync=function(e){var t=function(e){},n=function(e){},r=new Promise(function(e,r){t=e,n=r}),s=function(){var t=(0,i.default)(o.default.mark(function t(){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();return{resolve:t,reject:n,promise:r,run:function(){return s(),r}}},t.resolveTimeoutPromise=function(e,t){return new Promise(function(n){setTimeout(function(){n(t)},e)})},t.rejectTimeoutPromise=function(e,t){return new Promise(function(n,r){setTimeout(function(){r(t)},e)})};var o=r(n("rXUk")),i=r(n("oTgP"))},NGBi:function(e,t,n){"use strict";(function(e){var r=n("whn2");t.__esModule=!0,t.parse=t.corsValidator=t.getEnv=t.DEFAULT_PRIORITY=void 0;var o=r(n("MSiO"));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var s="8.1.19",a="https://connect.trezor.io/"+s.split(".").map(function(e){return parseInt(e)})[0]+"/";t.DEFAULT_PRIORITY=2;var c={configSrc:"./data/config.json",version:s,debug:!1,priority:2,trustedHost:!1,connectSrc:a,iframeSrc:a+"iframe.html",popup:!0,popupSrc:a+"popup.html",webusbSrc:a+"webusb.html",transportReconnect:!1,webusb:!0,pendingTransportEvent:!0,supportedBrowser:"undefined"==typeof navigator||!/Trident|MSIE|Edge/.test(navigator.userAgent),manifest:null,env:"web",lazyLoad:!1,timestamp:(new Date).getTime(),interactionTimeout:600},u=function(){if("undefined"!=typeof chrome&&chrome.runtime&&void 0!==chrome.runtime.onConnect)return"webextension";if("undefined"!=typeof navigator){if("string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase())return"react-native";if(navigator.userAgent.toLowerCase().indexOf(" electron/")>-1)return"electron"}return"web"};t.getEnv=u;var l=function(e){if("string"==typeof e)return e.match(/^https:\/\/([A-Za-z0-9\-_]+\.)*trezor\.io\//)||e.match(/^https?:\/\/localhost:[58][0-9]{3}\//)||e.match(/^https:\/\/([A-Za-z0-9\-_]+\.)*sldev\.cz\//)||e.match(/^https?:\/\/([A-Za-z0-9\-_]+\.)*trezoriovpjcahpzkrewelclulmszwbqpzmzgub37gbcjlvluxtruqad\.onion\//)?e:void 0};t.corsValidator=l,t.parse=function(t){void 0===t&&(t={});var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,o.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},c);if(Object.prototype.hasOwnProperty.call(t,"debug")&&(Array.isArray(t),"boolean"==typeof t.debug?n.debug=t.debug:"string"==typeof t.debug&&(n.debug="true"===t.debug)),"string"==typeof t.connectSrc&&(n.connectSrc=t.connectSrc),void 0!==e&&"string"==typeof e.__TREZOR_CONNECT_SRC&&(n.connectSrc=l(e.__TREZOR_CONNECT_SRC),n.debug=!0),"undefined"!=typeof window&&window.location&&"string"==typeof window.location.search){var r=window.location.search.split("&").find(function(e){return e.indexOf("trezor-connect-src")>=0});if(r){var s=r.split("=");n.connectSrc=l(decodeURIComponent(s[1])),n.debug=!0}}var d=n.connectSrc||a;return n.iframeSrc=d+"iframe.html",n.popupSrc=d+"popup.html",n.webusbSrc=d+"webusb.html","boolean"==typeof t.transportReconnect&&(n.transportReconnect=t.transportReconnect),"boolean"==typeof t.webusb&&(n.webusb=t.webusb),"boolean"==typeof t.popup&&(n.popup=t.popup),"boolean"==typeof t.lazyLoad&&(n.lazyLoad=t.lazyLoad),"boolean"==typeof t.pendingTransportEvent&&(n.pendingTransportEvent=t.pendingTransportEvent),"undefined"!=typeof window&&window.location&&"file:"===window.location.protocol&&(n.origin="file://"+window.location.pathname,n.webusb=!1),"string"==typeof t.extension&&(n.extension=t.extension),n.env="string"==typeof t.env?t.env:u(),"number"==typeof t.timestamp&&(n.timestamp=t.timestamp),"number"==typeof t.interactionTimeout&&(n.interactionTimeout=t.interactionTimeout),"object"==typeof t.manifest&&(n.manifest=function(e){if(e&&"string"==typeof e.email&&"string"==typeof e.appUrl)return{email:e.email,appUrl:e.appUrl}}(t.manifest)),c=n}}).call(this,n("yLpj"))},NKZU:function(e,t,n){"use strict";var r=n("whn2");t.__esModule=!0,t.getOrigin=t.httpRequest=void 0;var o=r(n("rXUk")),i=r(n("oTgP"));n("NNYk"),t.httpRequest=function(){var e=(0,i.default)(o.default.mark(function e(t,n){var r;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n="text"),e.next=3,fetch(t,{credentials:"same-origin"});case 3:if(!(r=e.sent).ok){e.next=23;break}if("json"!==n){e.next=12;break}return e.next=8,r.text();case 8:return e.abrupt("return",JSON.parse(e.sent));case 12:if("binary"!==n){e.next=18;break}return e.next=15,r.arrayBuffer();case 15:return e.abrupt("return",e.sent);case 18:return e.next=20,r.text();case 20:return e.abrupt("return",e.sent);case 21:e.next=24;break;case 23:throw new Error("httpRequest error: "+t+" "+r.statusText);case 24:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),t.getOrigin=function(e){if(0===e.indexOf("file://"))return"file://";var t=e.match(/^.+\:\/\/[^\/]+/);return Array.isArray(t)&&t.length>0?t[0]:"unknown"}},NNYk:function(e,t,n){"use strict";n.r(t),n.d(t,"Headers",function(){return E}),n.d(t,"Request",function(){return S}),n.d(t,"Response",function(){return w}),n.d(t,"DOMException",function(){return T}),n.d(t,"fetch",function(){return R});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,o="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,s="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in r,c="ArrayBuffer"in r;if(c)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&u.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function E(e){this.map={},e instanceof E?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function b(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&s&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(b)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=m(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}E.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},E.prototype.delete=function(e){delete this.map[d(e)]},E.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},E.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},E.prototype.set=function(e,t){this.map[d(e)]=p(t)},E.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},E.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),f(e)},E.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},E.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),f(e)},i&&(E.prototype[Symbol.iterator]=E.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof S){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new E(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new E(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new E(t.headers),this.url=t.url||"",this._initBody(e)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})},_.call(S.prototype),_.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new E(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];w.redirect=function(e,t){if(-1===O.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})};var T=r.DOMException;try{new T}catch(I){(T=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),T.prototype.constructor=T}function R(e,t){return new Promise(function(n,o){var i=new S(e,t);if(i.signal&&i.signal.aborted)return o(new T("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new E,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;setTimeout(function(){n(new w(o,r))},0)},a.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){o(new T("Aborted","AbortError"))},0)},a.open(i.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(s?a.responseType="blob":c&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof E?i.headers.forEach(function(e,t){a.setRequestHeader(t,e)}):Object.getOwnPropertyNames(t.headers).forEach(function(e){a.setRequestHeader(e,p(t.headers[e]))}),i.signal&&(i.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",u)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})}R.polyfill=!0,r.fetch||(r.fetch=R,r.Headers=E,r.Request=S,r.Response=w)},Ne8P:function(e,t,n){"use strict";t.__esModule=!0,t.CALL=t.ERROR=t.INIT=t.LOADED=t.BOOTSTRAP=void 0,t.BOOTSTRAP="iframe-bootstrap",t.LOADED="iframe-loaded",t.INIT="iframe-init",t.ERROR="iframe-error",t.CALL="iframe-call"},NktQ:function(e,t,n){"use strict";var r=n("whn2");t.__esModule=!0,t.WEBUSB_ERROR_MESSAGE=t.INVALID_PIN_ERROR_MESSAGE=t.WRONG_PREVIOUS_SESSION_ERROR_MESSAGE=t.TypedError=t.TrezorError=t.ERROR_CODES=void 0;var o=r(n("/pEn")),i=r(n("4+4z")),s={Init_NotInitialized:"TrezorConnect not yet initialized",Init_AlreadyInitialized:"TrezorConnect has been already initialized",Init_IframeBlocked:"Iframe blocked",Init_IframeTimeout:"Iframe timeout",Init_ManifestMissing:"Manifest not set. Read more at https://github.com/trezor/connect/blob/develop/docs/index.md",Popup_ConnectionMissing:"Unable to establish connection with iframe",Transport_Missing:"Transport is missing",Transport_InvalidProtobuf:"",Method_InvalidPackage:"This version of trezor-connect is not suitable to work without browser. Use trezor-connect@extended package instead",Method_InvalidParameter:"",Method_NotAllowed:"Method not allowed for this configuration",Method_PermissionsNotGranted:"Permissions not granted",Method_Cancel:"Cancelled",Method_Interrupted:"Popup closed",Method_UnknownCoin:"Coin not found",Method_AddressNotMatch:"Addresses do not match",Method_FirmwareUpdate_DownloadFailed:"Failed to download firmware binary",Method_CustomMessage_Callback:'Parameter "callback" is not a function',Method_Discovery_BundleException:"",Method_Override:"override",Method_NoResponse:"Call resolved without response",Backend_NotSupported:"BlockchainLink settings not found in coins.json",Backend_WorkerMissing:"",Backend_Disconnected:"Backend disconnected",Backend_Invalid:"Invalid backend",Backend_Error:"",Runtime:"",Device_NotFound:"Device not found",Device_InitializeFailed:"",Device_FwException:"",Device_ModeException:"",Device_Disconnected:"Device disconnected",Device_UsedElsewhere:"Device is used in another window",Device_InvalidState:"Passphrase is incorrect",Device_CallInProgress:"Device call in progress"};t.ERROR_CODES=s;var a=function(e){function t(t,n){var r;return(r=e.call(this,n)||this).code=t,r.message=n,r}return(0,o.default)(t,e),t}((0,i.default)(Error));t.TrezorError=a,t.TypedError=function(e,t){return new a(e,t||s[e])},t.WRONG_PREVIOUS_SESSION_ERROR_MESSAGE="wrong previous session",t.INVALID_PIN_ERROR_MESSAGE="PIN invalid",t.WEBUSB_ERROR_MESSAGE="NetworkError: Unable to claim interface."},Q15x:function(e,t,n){},Ql4R:function(e,t,n){"use strict";var r=n("h7bn"),o=n("whn2");t.__esModule=!0,t.default=void 0;var i=o(n("rXUk")),s=o(n("oTgP")),a=o(n("Cnhs")),c=o(n("/pEn")),u=o(n("MSiO")),l=o(n("+qE3")),d=r(n("jRTs")),p=r(n("Ne8P")),f=r(n("IlcN")),E=n("RJKs"),h=n("NKZU"),m=n("MbSw");t.default=function(e){function t(t){var n;return n=e.call(this)||this,(0,u.default)((0,a.default)(n),"requestTimeout",0),(0,u.default)((0,a.default)(n),"closeInterval",0),(0,u.default)((0,a.default)(n),"extensionTabId",0),n.settings=t,n.origin=(0,h.getOrigin)(t.popupSrc),n.handleMessage=n.handleMessage.bind((0,a.default)(n)),n.iframeHandshake=(0,m.create)(p.LOADED),"webextension"===n.settings.env&&(n.handleExtensionConnect=n.handleExtensionConnect.bind((0,a.default)(n)),n.handleExtensionMessage=n.handleExtensionMessage.bind((0,a.default)(n)),chrome.runtime.onConnect.addListener(n.handleExtensionConnect)),window.addEventListener("message",n.handleMessage,!1),n}(0,c.default)(t,e);var n=t.prototype;return n.request=function(e){var t=this;if(void 0===e&&(e=!1),this.locked)this._window&&("webextension"===this.settings.env?chrome.tabs.update(this._window.id,{active:!0}):this._window.focus());else{var n=this.open.bind(this);this.locked=!0,this.settings.supportedBrowser?this.requestTimeout=window.setTimeout(function(){t.requestTimeout=0,n(e)},e||"webextension"===this.settings.env?1:850):n()}},n.cancel=function(){this.close()},n.unlock=function(){this.locked=!1},n.open=function(e){var t=this,n=this.settings.popupSrc;this.settings.supportedBrowser?(this.popupPromise=(0,m.create)(d.LOADED),this.openWrapper(e?n+"#loading":n),this.closeInterval=window.setInterval(function(){t._window&&("webextension"===t.settings.env?chrome.tabs.get(t._window.id,function(e){e||(t.close(),t.emit(d.CLOSED))}):t._window.closed&&(t.close(),t.emit(d.CLOSED)))},500),this.openTimeout=window.setTimeout(function(){t.close(),(0,E.showPopupRequest)(t.open.bind(t),function(){t.emit(d.CLOSED)})},3e3)):this.openWrapper(n+"#unsupported")},n.openWrapper=function(e){var t=this;"webextension"===this.settings.env?chrome.windows.getCurrent(null,function(n){"normal"!==n.type?chrome.windows.create({url:e},function(e){chrome.tabs.query({windowId:e.id,active:!0},function(e){t._window=e[0]})}):chrome.tabs.query({currentWindow:!0,active:!0},function(n){t.extensionTabId=n[0].id,chrome.tabs.create({url:e,index:n[0].index+1},function(e){t._window=e})})}):"electron"===this.settings.env?this._window=window.open(e,"modal"):(this._window=window.open("","_blank"),this._window&&(this._window.location.href=e))},n.handleExtensionConnect=function(e){"trezor-connect"===e.name&&(!this._window||this._window&&this._window.id!==e.sender.tab.id?e.disconnect():(window.clearTimeout(this.openTimeout),this.extensionPort=e,this.extensionPort.onMessage.addListener(this.handleExtensionMessage)))},n.handleExtensionMessage=function(e){var t=this;if(this.extensionPort){var n=this.extensionPort,r=e.data;if(r&&"object"==typeof r)if(r.type===d.ERROR){var o=r.payload&&"string"==typeof r.payload.error?r.payload.error:null;this.emit(d.CLOSED,o?"Popup error: "+o:null),this.close()}else r.type===d.LOADED?(this.popupPromise&&this.popupPromise.resolve(),this.iframeHandshake.promise.then(function(){n.postMessage({type:d.INIT,payload:{settings:t.settings}})})):r.type===d.EXTENSION_USB_PERMISSIONS?chrome.tabs.query({currentWindow:!0,active:!0},function(e){chrome.tabs.create({url:"trezor-usb-permissions.html",index:e[0].index+1},function(e){})}):r.type===d.CLOSE_WINDOW&&(this.emit(d.CLOSED),this.close())}},n.handleMessage=function(e){var t=this,n=e.data;if((0,h.getOrigin)(e.origin)===this.origin&&n&&"object"==typeof n)if(n.type===p.LOADED)this.iframeHandshake.resolve();else if(n.type===d.BOOTSTRAP)window.clearTimeout(this.openTimeout);else if(n.type===d.ERROR&&this._window){var r=n.payload&&"string"==typeof n.payload.error?n.payload.error:null;this.emit(d.CLOSED,r?"Popup error: "+r:null),this.close()}else n.type===d.LOADED?(this.popupPromise&&this.popupPromise.resolve(),this.iframeHandshake.promise.then(function(){t._window.postMessage({type:d.INIT,payload:{settings:t.settings}},t.origin)})):n.type!==d.CANCEL_POPUP_REQUEST&&n.type!==f.CLOSE_UI_WINDOW||this.close()},n.close=function(){this.locked=!1,this.popupPromise=void 0,this.requestTimeout&&(window.clearTimeout(this.requestTimeout),this.requestTimeout=0),this.openTimeout&&(window.clearTimeout(this.openTimeout),this.openTimeout=0),this.closeInterval&&(window.clearInterval(this.closeInterval),this.closeInterval=0),this.extensionPort&&(this.extensionPort.disconnect(),this.extensionPort=null),this.extensionTabId&&(chrome.tabs.update(this.extensionTabId,{active:!0}),this.extensionTabId=0),this._window&&("webextension"===this.settings.env?(chrome,chrome.tabs.remove(this._window.id,function(){chrome})):this._window.close(),this._window=null)},n.postMessage=function(){var e=(0,s.default)(i.default.mark(function e(t){var n=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._window||t.type===f.REQUEST_UI_WINDOW||!this.openTimeout){e.next=4;break}return this.close(),(0,E.showPopupRequest)(this.open.bind(this),function(){n.emit(d.CLOSED)}),e.abrupt("return");case 4:if(!this.popupPromise){e.next=7;break}return e.next=7,this.popupPromise.promise;case 7:this._window&&this._window.postMessage(t,this.origin);case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),n.onBeforeUnload=function(){this.close()},t}(l.default)},R2YI:function(e,t,n){},RJKs:function(e,t,n){"use strict";t.__esModule=!0,t.showPopupRequest=void 0;var r="TrezorConnectInteractionLayer";t.showPopupRequest=function(e,t){if(!document.getElementById(r)){var n=document.createElement("div");n.id=r,n.className="trezorconnect-container",n.innerHTML='\n <div class="trezorconnect-container" id="TrezorConnectInteractionLayer">\n <div class="trezorconnect-window">\n <div class="trezorconnect-head">\n <svg class="trezorconnect-logo" x="0px" y="0px" viewBox="0 0 163.7 41.9" width="78px" height="20px" preserveAspectRatio="xMinYMin meet">\n <polygon points="101.1,12.8 118.2,12.8 118.2,17.3 108.9,29.9 118.2,29.9 118.2,35.2 101.1,35.2 101.1,30.7 110.4,18.1 101.1,18.1"/>\n <path d="M158.8,26.9c2.1-0.8,4.3-2.9,4.3-6.6c0-4.5-3.1-7.4-7.7-7.4h-10.5v22.3h5.8v-7.5h2.2l4.1,7.5h6.7L158.8,26.9z M154.7,22.5 h-4V18h4c1.5,0,2.5,0.9,2.5,2.2C157.2,21.6,156.2,22.5,154.7,22.5z"/>\n <path d="M130.8,12.5c-6.8,0-11.6,4.9-11.6,11.5s4.9,11.5,11.6,11.5s11.7-4.9,11.7-11.5S137.6,12.5,130.8,12.5z M130.8,30.3 c-3.4,0-5.7-2.6-5.7-6.3c0-3.8,2.3-6.3,5.7-6.3c3.4,0,5.8,2.6,5.8,6.3C136.6,27.7,134.2,30.3,130.8,30.3z"/>\n <polygon points="82.1,12.8 98.3,12.8 98.3,18 87.9,18 87.9,21.3 98,21.3 98,26.4 87.9,26.4 87.9,30 98.3,30 98.3,35.2 82.1,35.2 "/>\n <path d="M24.6,9.7C24.6,4.4,20,0,14.4,0S4.2,4.4,4.2,9.7v3.1H0v22.3h0l14.4,6.7l14.4-6.7h0V12.9h-4.2V9.7z M9.4,9.7 c0-2.5,2.2-4.5,5-4.5s5,2,5,4.5v3.1H9.4V9.7z M23,31.5l-8.6,4l-8.6-4V18.1H23V31.5z"/>\n <path d="M79.4,20.3c0-4.5-3.1-7.4-7.7-7.4H61.2v22.3H67v-7.5h2.2l4.1,7.5H80l-4.9-8.3C77.2,26.1,79.4,24,79.4,20.3z M71,22.5h-4V18 h4c1.5,0,2.5,0.9,2.5,2.2C73.5,21.6,72.5,22.5,71,22.5z"/>\n <polygon points="40.5,12.8 58.6,12.8 58.6,18.1 52.4,18.1 52.4,35.2 46.6,35.2 46.6,18.1 40.5,18.1 "/>\n </svg>\n <div class="trezorconnect-close">\n <svg x="0px" y="0px" viewBox="24 24 60 60" width="24px" height="24px" preserveAspectRatio="xMinYMin meet">\n <polygon class="st0" points="40,67.9 42.1,70 55,57.1 67.9,70 70,67.9 57.1,55 70,42.1 67.9,40 55,52.9 42.1,40 40,42.1 52.9,55 "/>\n </svg>\n </div>\n </div>\n <div class="trezorconnect-body">\n <h3>Popup was blocked</h3>\n <p>Please click to \u201cContinue\u201d to open popup manually</p>\n <button class="trezorconnect-open">Continue</button>\n </div>\n </div>\n </div>\n',document.body&&document.body.appendChild(n),n.getElementsByClassName("trezorconnect-open")[0].onclick=function(){e(),document.body&&document.body.removeChild(n)},n.getElementsByClassName("trezorconnect-close")[0].onclick=function(){t(),document.body&&document.body.removeChild(n)}}}},"Ug/K":function(e,t,n){},W6j3:function(e,t,n){"use strict";var r=n("whn2");t.__esModule=!0,t.clearTimeout=t.dispose=t.postMessage=t.init=t.messagePromises=t.error=t.timeout=t.initPromise=t.origin=t.instance=void 0;var o,i,s=r(n("rXUk")),a=r(n("oTgP")),c=n("MbSw"),u=n("sVx8"),l=n("NKZU"),d=r(n("we8g"));t.instance=o,t.origin=i;var p=(0,c.create)();t.initPromise=p;var f,E=0;t.timeout=E,t.error=f;var h=0,m={};t.messagePromises=m;var b=function(){var e=(0,a.default)(s.default.mark(function e(n){var r,a,d,f,h;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.initPromise=p=(0,c.create)(),(r=document.getElementById("trezorconnect"))?t.instance=o=r:(t.instance=o=document.createElement("iframe"),o.frameBorder="0",o.width="0px",o.height="0px",o.style.position="absolute",o.style.display="none",o.style.border="0px",o.style.width="0px",o.style.height="0px",o.id="trezorconnect"),"web"===n.env?(d=n.manifest?JSON.stringify(n.manifest):"undefined",f="version="+n.version+"&manifest="+encodeURIComponent(btoa(JSON.stringify(d))),a=n.iframeSrc+"?"+f):a=n.iframeSrc,o.setAttribute("src",a),n.webusb&&o.setAttribute("allow","usb"),t.origin=i=(0,l.getOrigin)(o.src),t.timeout=E=window.setTimeout(function(){p.reject(u.ERRORS.TypedError("Init_IframeTimeout"))},1e4),h=function(){if(o){try{var e=o.contentWindow.location.origin;if(!e||"null"===e)return void _()}catch(r){}var t;"undefined"!=typeof chrome&&chrome.runtime&&void 0!==chrome.runtime.onConnect&&(chrome.runtime.onConnect.addListener(function(){}),t=chrome.runtime.id),o.contentWindow.postMessage({type:u.IFRAME.INIT,payload:{settings:n,extension:t}},i),o.onload=void 0}else p.reject(u.ERRORS.TypedError("Init_IframeBlocked"))},o.attachEvent?o.attachEvent("onload",h):o.onload=h,document.body&&(document.body.appendChild(o),y()),e.prev=11,e.next=14,p.promise;case 14:e.next=20;break;case 16:throw e.prev=16,e.t0=e.catch(11),o&&(o.parentNode&&o.parentNode.removeChild(o),t.instance=o=null),e.t0;case 20:return e.prev=20,window.clearTimeout(E),t.timeout=E=0,e.finish(20);case 24:case"end":return e.stop()}},e,null,[[11,16,20,24]])}));return function(t){return e.apply(this,arguments)}}();t.init=b;var y=function(){if(!o)throw u.ERRORS.TypedError("Init_IframeBlocked");var e=o.ownerDocument,t=e.head||e.getElementsByTagName("head")[0],n=document.createElement("style");n.setAttribute("type","text/css"),n.setAttribute("id","TrezorConnectStylesheet"),n.styleSheet?(n.styleSheet.cssText=d.default,t.appendChild(n)):(n.appendChild(document.createTextNode(d.default)),t.append(n))},_=function(){window.clearTimeout(E),t.error=f=u.ERRORS.TypedError("Init_IframeBlocked"),v(),p.reject(f)};t.postMessage=function(e,t){if(void 0===t&&(t=!0),!o)throw u.ERRORS.TypedError("Init_IframeBlocked");if(t){h++,e.id=h,m[h]=(0,c.create)();var n=m[h].promise;return o.contentWindow.postMessage(e,i),n}return o.contentWindow.postMessage(e,i),null};var v=function(){if(o&&o.parentNode)try{o.parentNode.removeChild(o)}catch(f){}t.instance=o=null,t.timeout=E=0};t.dispose=v,t.clearTimeout=function(){window.clearTimeout(E)}},bcN7:function(e,t,n){var r=n("wynC"),o=n("nqpy");function i(t,n,s){return e.exports=i=o()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},i.apply(null,arguments)}e.exports=i},cPrX:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},cSd0:function(e,t,n){},fbQx:function(e,t,n){},h7bn:function(e,t,n){var r=n("0zl2");function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,t&&t.set(e,n),n}},hED2:function(e,t,n){},hga2:function(e,t,n){"use strict";var r=n("whn2");t.__esModule=!0;var o={};t.default=void 0;var i=r(n("MSiO")),s=n("sVx8");Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))});var a=n("psyQ"),c=n("Dc05");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,i.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}),t.default={manifest:a.manifest,init:function(e){return(0,a.init)(e)},getSettings:a.getSettings,on:function(e,t){a.eventEmitter.on(e,t)},off:function(e,t){a.eventEmitter.removeListener(e,t)},removeAllListeners:function(){a.eventEmitter.removeAllListeners()},uiResponse:a.uiResponse,blockchainGetAccountBalanceHistory:function(e){return(0,a.call)(l({method:"blockchainGetAccountBalanceHistory"},e))},blockchainGetCurrentFiatRates:function(e){return(0,a.call)(l({method:"blockchainGetCurrentFiatRates"},e))},blockchainGetFiatRatesForTimestamps:function(e){return(0,a.call)(l({method:"blockchainGetFiatRatesForTimestamps"},e))},blockchainDisconnect:function(e){return(0,a.call)(l({method:"blockchainDisconnect"},e))},blockchainEstimateFee:function(e){return(0,a.call)(l({method:"blockchainEstimateFee"},e))},blockchainGetTransactions:function(e){return(0,a.call)(l({method:"blockchainGetTransactions"},e))},blockchainSetCustomBackend:function(e){return(0,a.call)(l({method:"blockchainSetCustomBackend"},e))},blockchainSubscribe:function(e){return(0,a.call)(l({method:"blockchainSubscribe"},e))},blockchainSubscribeFiatRates:function(e){return(0,a.call)(l({method:"blockchainSubscribeFiatRates"},e))},blockchainUnsubscribe:function(e){return(0,a.call)(l({method:"blockchainUnsubscribe"},e))},blockchainUnsubscribeFiatRates:function(e){return(0,a.call)(l({method:"blockchainUnsubscribeFiatRates"},e))},customMessage:function(e){return(0,a.customMessage)(e)},requestLogin:function(e){return(0,a.requestLogin)(e)},cardanoGetAddress:function(e){var t=a.eventEmitter.listenerCount(s.UI.ADDRESS_VALIDATION)>0;return(0,a.call)(l(l({method:"cardanoGetAddress"},e),{},{useEventListener:t}))},cardanoGetPublicKey:function(e){return(0,a.call)(l({method:"cardanoGetPublicKey"},e))},cardanoSignTransaction:function(e){return(0,a.call)(l({method:"cardanoSignTransaction"},e))},cipherKeyValue:function(e){return(0,a.call)(l({method:"cipherKeyValue"},e))},composeTransaction:function(e){return(0,a.call)(l({method:"composeTransaction"},e))},debugLinkDecision:function(e){return(0,a.call)(l({method:"debugLinkDecision"},e))},debugLinkGetState:function(e){return(0,a.call)(l({method:"debugLinkGetState"},e))},ethereumGetAddress:function(e){var t=a.eventEmitter.listenerCount(s.UI.ADDRESS_VALIDATION)>0;return(0,a.call)(l(l({method:"ethereumGetAddress"},e),{},{useEventListener:t}))},ethereumGetPublicKey:function(e){return(0,a.call)(l({method:"ethereumGetPublicKey"},e))},ethereumSignMessage:function(e){return(0,a.call)(l({method:"ethereumSignMessage"},e))},ethereumSignTransaction:function(e){return(0,a.call)(l({method:"ethereumSignTransaction"},e))},ethereumVerifyMessage:function(e){return(0,a.call)(l({method:"ethereumVerifyMessage"},e))},getAccountInfo:function(e){return(0,a.call)(l({method:"getAccountInfo"},e))},getAddress:function(e){var t=a.eventEmitter.listenerCount(s.UI.ADDRESS_VALIDATION)>0;return(0,a.call)(l(l({method:"getAddress"},e),{},{useEventListener:t}))},getDeviceState:function(e){return(0,a.call)(l({method:"getDeviceState"},e))},getFeatures:function(e){return(0,a.call)(l({method:"getFeatures"},e))},getPublicKey:function(e){return(0,a.call)(l({method:"getPublicKey"},e))},liskGetAddress:function(e){var t=a.eventEmitter.listenerCount(s.UI.ADDRESS_VALIDATION)>0;return(0,a.call)(l(l({method:"liskGetAddress"},e),{},{useEventListener:t}))},liskGetPublicKey:function(e){return(0,a.call)(l({method:"liskGetPublicKey"},e))},liskSignMessage:function(e){return(0,a.call)(l({method:"liskSignMessage"},e))},liskSignTransaction:function(e){return(0,a.call)(l({method:"liskSignTransaction"},e))},liskVerifyMessage:function(e){return(0,a.call)(l({method:"liskVerifyMessage"},e))},nemGetAddress:function(e){var t=a.eventEmitter.listenerCount(s.UI.ADDRESS_VALIDATION)>0;return(0,a.call)(l(l({method:"nemGetAddress"},e),{},{useEventListener:t}))},nemSignTransaction:function(e){return(0,a.call)(l({method:"nemSignTransaction"},e))},pushTransaction:function(e){return(0,a.call)(l({method:"pushTransaction"},e))},rippleGetAddress:function(e){var t=a.eventEmitter.listenerCount(s.UI.ADDRESS_VALIDATION)>0;return(0,a.call)(l(l({method:"rippleGetAddress"},e),{},{useEventListener:t}))},rippleSignTransaction:function(e){return(0,a.call)(l({method:"rippleSignTransaction"},e))},signMessage:function(e){return(0,a.call)(l({method:"signMessage"},e))},signTransaction:function(e){return(0,a.call)(l({method:"signTransaction"},e))},stellarGetAddress:function(e){var t=a.eventEmitter.listenerCount(s.UI.ADDRESS_VALIDATION)>0;return(0,a.call)(l(l({method:"stellarGetAddress"},e),{},{useEventListener:t}))},stellarSignTransaction:function(e){return(0,a.call)(l({method:"stellarSignTransaction"},e))},tezosGetAddress:function(e){var t=a.eventEmitter.listenerCount(s.UI.ADDRESS_VALIDATION)>0;return(0,a.call)(l(l({method:"tezosGetAddress"},e),{},{useEventListener:t}))},tezosGetPublicKey:function(e){return(0,a.call)(l({method:"tezosGetPublicKey"},e))},tezosSignTransaction:function(e){return(0,a.call)(l({method:"tezosSignTransaction"},e))},eosGetPublicKey:function(e){return(0,a.call)(l({method:"eosGetPublicKey"},e))},eosSignTransaction:function(e){return(0,a.call)(l({method:"eosSignTransaction"},e))},binanceGetAddress:function(e){var t=a.eventEmitter.listenerCount(s.UI.ADDRESS_VALIDATION)>0;return(0,a.call)(l(l({method:"binanceGetAddress"},e),{},{useEventListener:t}))},binanceGetPublicKey:function(e){return(0,a.call)(l({method:"binanceGetPublicKey"},e))},binanceSignTransaction:function(e){return(0,a.call)(l({method:"binanceSignTransaction"},e))},verifyMessage:function(e){return(0,a.call)(l({method:"verifyMessage"},e))},resetDevice:function(e){return(0,a.call)(l({method:"resetDevice"},e))},wipeDevice:function(e){return(0,a.call)(l({method:"wipeDevice"},e))},applyFlags:function(e){return(0,a.call)(l({method:"applyFlags"},e))},applySettings:function(e){return(0,a.call)(l({method:"applySettings"},e))},backupDevice:function(e){return(0,a.call)(l({method:"backupDevice"},e))},changePin:function(e){return(0,a.call)(l({method:"changePin"},e))},firmwareUpdate:function(e){return(0,a.call)(l({method:"firmwareUpdate"},e))},recoveryDevice:function(e){return(0,a.call)(l({method:"recoveryDevice"},e))},getCoinInfo:function(e){return(0,a.call)(l({method:"getCoinInfo"},e))},dispose:function(){(0,a.dispose)()},cancel:a.cancel,renderWebUSBButton:function(e){(0,a.renderWebUSBButton)(e)},disableWebUSB:function(){(0,a.disableWebUSB)()}}},iSpK:function(e,t,n){},jRTs:function(e,t,n){"use strict";t.__esModule=!0,t.CLOSE_WINDOW=t.CANCEL_POPUP_REQUEST=t.CLOSED=t.HANDSHAKE=t.EXTENSION_USB_PERMISSIONS=t.ERROR=t.INIT=t.LOADED=t.BOOTSTRAP=void 0,t.BOOTSTRAP="popup-bootstrap",t.LOADED="popup-loaded",t.INIT="popup-init",t.ERROR="popup-error",t.EXTENSION_USB_PERMISSIONS="open-usb-permissions",t.HANDSHAKE="popup-handshake",t.CLOSED="popup-closed",t.CANCEL_POPUP_REQUEST="ui-cancel-popup-request",t.CLOSE_WINDOW="window.close"},kKNU:function(e,t,n){},lHEK:function(e,t,n){"use strict";t.__esModule=!0,t.TYPES=void 0;var r=Object.freeze({bitcoin:"Bitcoin",ethereum:"Ethereum",eos:"Eos",nem:"NEM",stellar:"Stellar",lisk:"Lisk",cardano:"Cardano",ripple:"Ripple",tezos:"Tezors",binance:"Binance"});t.TYPES=r},n0n0:function(e,t,n){"use strict";t.__esModule=!0,t.errorMessage=t.parseMessage=void 0,t.parseMessage=function(e){var t={event:e.event,type:e.type,payload:e.payload};return"number"==typeof e.id&&(t.id=e.id),"boolean"==typeof e.success&&(t.success=e.success),t},t.errorMessage=function(e){return{success:!1,payload:{error:e.message,code:e.code}}}},nqpy:function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}},oTgP:function(e,t){function n(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(u){return void n(u)}a.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(o,i){var s=e.apply(t,r);function a(e){n(s,o,i,a,c,"next",e)}function c(e){n(s,o,i,a,c,"throw",e)}a(void 0)})}}},psyQ:function(e,t,n){"use strict";var r=n("h7bn"),o=n("whn2");t.__esModule=!0,t.disableWebUSB=t.requestLogin=t.customMessage=t.getSettings=t.renderWebUSBButton=t.uiResponse=t.call=t.init=t.cancel=t.dispose=t.manifest=t.eventEmitter=void 0;var i=o(n("MSiO")),s=o(n("rXUk")),a=o(n("oTgP")),c=o(n("+qE3")),u=o(n("Ql4R")),l=r(n("W6j3")),d=o(n("sZ4M")),p=n("n0n0"),f=n("uuRi"),E=n("NGBi"),h=r(n("C2mV")),m=n("sVx8");function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){(0,i.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}r(n("Dc05"));var _=new c.default;t.eventEmitter=_;var v,S,g=(0,h.init)("[trezor-connect.js]"),w=function(){var e=new u.default(v);return e.on(m.POPUP.CLOSED,function(e){l.postMessage({type:m.POPUP.CLOSED,payload:e?{error:e}:null},!1)}),e};t.manifest=function(e){v=(0,E.parse)({manifest:e})};var O=function(){l.dispose(),S&&S.close()};t.dispose=O,t.cancel=function(e){S&&S.emit(m.POPUP.CLOSED,e)};var T=function(e){if(e.origin===l.origin){var t=(0,p.parseMessage)(e.data),n=t.event,r=t.type,o=t.payload,i=t.id||0;switch(g.log("handleMessage",t),n){case m.RESPONSE_EVENT:l.messagePromises[i]?(l.messagePromises[i].resolve({id:i,success:t.success,payload:o}),delete l.messagePromises[i]):g.warn("Unknown message id "+i);break;case m.DEVICE_EVENT:case m.TRANSPORT_EVENT:case m.BLOCKCHAIN_EVENT:_.emit(n,t),_.emit(r,o);break;case m.UI_EVENT:if(r===m.IFRAME.BOOTSTRAP){l.clearTimeout();break}r===m.IFRAME.LOADED&&l.initPromise.resolve(),r===m.IFRAME.ERROR&&l.initPromise.reject(o.error),_.emit(n,t),_.emit(r,o);break;default:g.log("Undefined message",n,e)}}},R=function(){var e=(0,a.default)(s.default.mark(function e(t){return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t&&(t={}),!l.instance){e.next=3;break}throw m.ERRORS.TypedError("Init_AlreadyInitialized");case 3:if(v||(v=(0,E.parse)(t)),v.manifest){e.next=6;break}throw m.ERRORS.TypedError("Init_ManifestMissing");case 6:if(!v.lazyLoad){e.next=9;break}return v.lazyLoad=!1,e.abrupt("return");case 9:return S||(S=w()),g.enabled=!!v.debug,window.addEventListener("message",T),window.addEventListener("unload",O),e.next=15,l.init(v);case 15:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();t.init=R;var I=function(){var e=(0,a.default)(s.default.mark(function e(t){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l.instance||l.timeout){e.next=15;break}if((v=(0,E.parse)(v)).manifest){e.next=4;break}return e.abrupt("return",(0,p.errorMessage)(m.ERRORS.TypedError("Init_ManifestMissing")));case 4:return S||(S=w()),S.request(!0),e.prev=6,e.next=9,R(v);case 9:e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(6),S&&(["Init_IframeBlocked","Init_IframeTimeout"].includes(e.t0.code)?S.postMessage((0,f.UiMessage)(m.UI.IFRAME_FAILURE)):S.close()),e.abrupt("return",(0,p.errorMessage)(e.t0));case 15:if(!l.timeout){e.next=19;break}return e.abrupt("return",(0,p.errorMessage)(m.ERRORS.TypedError("Init_ManifestMissing")));case 19:if(!l.error){e.next=21;break}return e.abrupt("return",(0,p.errorMessage)(l.error));case 21:return v.popup&&S&&S.request(),e.prev=22,e.next=25,l.postMessage({type:m.IFRAME.CALL,payload:t});case 25:if(!(n=e.sent)){e.next=31;break}return!n.success&&"Device_CallInProgress"!==n.payload.error.code&&S&&S.unlock(),e.abrupt("return",n);case 31:return S&&S.unlock(),e.abrupt("return",(0,p.errorMessage)(m.ERRORS.TypedError("Method_NoResponse")));case 33:e.next=40;break;case 35:return e.prev=35,e.t1=e.catch(22),g.error("__call error",e.t1),S&&S.close(),e.abrupt("return",(0,p.errorMessage)(e.t1));case 40:case"end":return e.stop()}},e,null,[[6,11],[22,35]])}));return function(t){return e.apply(this,arguments)}}();t.call=I,t.uiResponse=function(e){l.postMessage({event:m.UI_EVENT,type:e.type,payload:e.payload})},t.renderWebUSBButton=function(e){(0,d.default)(e,v.webusbSrc,l.origin)},t.getSettings=function(){var e=(0,a.default)(s.default.mark(function e(){return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l.instance){e.next=2;break}return e.abrupt("return",(0,p.errorMessage)(m.ERRORS.TypedError("Init_NotInitialized")));case 2:return e.next=4,I({method:"getSettings"});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),t.customMessage=function(){var e=(0,a.default)(s.default.mark(function e(t){var n,r,o;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"==typeof t.callback){e.next=2;break}return e.abrupt("return",(0,p.errorMessage)(m.ERRORS.TypedError("Method_CustomMessage_Callback")));case 2:return n=t.callback,r=function(){var e=(0,a.default)(s.default.mark(function e(t){var r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=t.data)||r.type!==m.UI.CUSTOM_MESSAGE_REQUEST){e.next=6;break}return e.next=4,n(r.payload);case 4:l.postMessage({event:m.UI_EVENT,type:m.UI.CUSTOM_MESSAGE_RESPONSE,payload:e.sent||{message:"release"}});case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),window.addEventListener("message",r,!1),e.next=7,I(y(y({method:"customMessage"},t),{},{callback:null}));case 7:return o=e.sent,window.removeEventListener("message",r),e.abrupt("return",o);case 10:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),t.requestLogin=function(){var e=(0,a.default)(s.default.mark(function e(t){var n,r,o;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t.callback){e.next=11;break}return n=t.callback,r=function(){var e=(0,a.default)(s.default.mark(function e(t){var r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=t.data)||r.type!==m.UI.LOGIN_CHALLENGE_REQUEST){e.next=12;break}return e.prev=2,e.next=5,n();case 5:l.postMessage({event:m.UI_EVENT,type:m.UI.LOGIN_CHALLENGE_RESPONSE,payload:e.sent}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),l.postMessage({event:m.UI_EVENT,type:m.UI.LOGIN_CHALLENGE_RESPONSE,payload:e.t0.message});case 12:case"end":return e.stop()}},e,null,[[2,9]])}));return function(t){return e.apply(this,arguments)}}(),window.addEventListener("message",r,!1),e.next=6,I(y(y({method:"requestLogin"},t),{},{asyncChallenge:!0,callback:null}));case 6:return o=e.sent,window.removeEventListener("message",r),e.abrupt("return",o);case 11:return e.next=13,I(y({method:"requestLogin"},t));case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),t.disableWebUSB=function(){l.postMessage({event:m.UI_EVENT,type:m.TRANSPORT.DISABLE_WEBUSB})}},rXUk:function(e,t,n){e.exports=n("ls82")},sVx8:function(e,t,n){"use strict";var r=n("h7bn");t.__esModule=!0,t.CARDANO=t.UI=t.TRANSPORT=t.POPUP=t.NETWORK=t.IFRAME=t.ERRORS=t.DEVICE=t.BLOCKCHAIN=t.BLOCKCHAIN_EVENT=t.RESPONSE_EVENT=t.TRANSPORT_EVENT=t.DEVICE_EVENT=t.UI_EVENT=t.CORE_EVENT=void 0;var o=r(n("4aYt"));t.BLOCKCHAIN=o;var i=r(n("uE4B"));t.DEVICE=i;var s=r(n("NktQ"));t.ERRORS=s;var a=r(n("Ne8P"));t.IFRAME=a;var c=r(n("lHEK"));t.NETWORK=c;var u=r(n("jRTs"));t.POPUP=u;var l=r(n("tM+K"));t.TRANSPORT=l;var d=r(n("IlcN"));t.UI=d;var p=r(n("/CWR"));t.CARDANO=p,t.CORE_EVENT="CORE_EVENT",t.UI_EVENT="UI_EVENT",t.DEVICE_EVENT="DEVICE_EVENT",t.TRANSPORT_EVENT="TRANSPORT_EVENT",t.RESPONSE_EVENT="RESPONSE_EVENT",t.BLOCKCHAIN_EVENT="BLOCKCHAIN_EVENT"},sZ4M:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default=function(e,t,n){var r=document.querySelectorAll(e||".trezor-webusb-button"),o=t+"?"+Date.now();r.forEach(function(e){if(e.getElementsByTagName("iframe").length<1){var t=e.getBoundingClientRect(),r=document.createElement("iframe");r.frameBorder="0",r.width=Math.round(t.width)+"px",r.height=Math.round(t.height)+"px",r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.style.zIndex="1",r.setAttribute("allow","usb"),r.setAttribute("scrolling","no"),r.onload=function(){r.contentWindow.postMessage({},n)},r.src=o,e.append(r)}})}},"tM+K":function(e,t,n){"use strict";t.__esModule=!0,t.START_PENDING=t.DISABLE_WEBUSB=t.REQUEST=t.STREAM=t.UPDATE=t.ERROR=t.START=void 0,t.START="transport-start",t.ERROR="transport-error",t.UPDATE="transport-update",t.STREAM="transport-stream",t.REQUEST="transport-request_device",t.DISABLE_WEBUSB="transport-disable_webusb",t.START_PENDING="transport-start_pending"},uE4B:function(e,t,n){"use strict";t.__esModule=!0,t.UNREADABLE=t.WAIT_FOR_SELECTION=t.WORD=t.PASSPHRASE_ON_DEVICE=t.PASSPHRASE=t.PIN=t.BUTTON=t.LOADING=t.USED_ELSEWHERE=t.RELEASED=t.ACQUIRED=t.RELEASE=t.ACQUIRE=t.CHANGED=t.DISCONNECT=t.CONNECT_UNACQUIRED=t.CONNECT=void 0,t.CONNECT="device-connect",t.CONNECT_UNACQUIRED="device-connect_unacquired",t.DISCONNECT="device-disconnect",t.CHANGED="device-changed",t.ACQUIRE="device-acquire",t.RELEASE="device-release",t.ACQUIRED="device-acquired",t.RELEASED="device-released",t.USED_ELSEWHERE="device-used_elsewhere",t.LOADING="device-loading",t.BUTTON="button",t.PIN="pin",t.PASSPHRASE="passphrase",t.PASSPHRASE_ON_DEVICE="passphrase_on_device",t.WORD="word",t.WAIT_FOR_SELECTION="device-wait_for_selection",t.UNREADABLE="unreadable-device"},uuRi:function(e,t,n){"use strict";var r=n("whn2");t.__esModule=!0,t.BlockchainMessage=t.ResponseMessage=t.TransportMessage=t.DeviceMessage=t.UiMessage=void 0;var o=r(n("MSiO")),i=n("sVx8");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,o.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}t.UiMessage=function(e,t){return{event:i.UI_EVENT,type:e,payload:t}},t.DeviceMessage=function(e,t){return{event:i.DEVICE_EVENT,type:e,payload:t}},t.TransportMessage=function(e,t){return{event:i.TRANSPORT_EVENT,type:e,payload:t.error?a(a({},t),{},{error:t.error.message,code:t.error.code}):t}},t.ResponseMessage=function(e,t,n){return void 0===n&&(n=null),{event:i.RESPONSE_EVENT,type:i.RESPONSE_EVENT,id:e,success:t,payload:t?n:{error:n.error.message,code:n.error.code}}},t.BlockchainMessage=function(e,t){return{event:i.BLOCKCHAIN_EVENT,type:e,payload:t}}},vnWk:function(e,t,n){},we8g:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default='.trezorconnect-container{position:fixed!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-webkit-flex-direction:column!important;-ms-flex-direction:column!important;flex-direction:column!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important;z-index:10000!important;width:100%!important;height:100%!important;top:0!important;left:0!important;background:rgba(0,0,0,.35)!important;overflow:auto!important;padding:20px!important;margin:0!important}.trezorconnect-container .trezorconnect-window{position:relative!important;display:block!important;width:370px!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;margin:auto!important;border-radius:3px!important;background-color:#fff!important;text-align:center!important;overflow:hidden!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head{text-align:left;padding:12px 24px!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-logo{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close{cursor:pointer!important;height:24px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close svg{fill:#757575;-webkit-transition:fill .3s ease-in-out!important;transition:fill .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close:hover svg{fill:#494949}.trezorconnect-container .trezorconnect-window .trezorconnect-body{padding:24px 24px 32px!important;background:#FBFBFB!important;border-top:1px solid #EBEBEB}.trezorconnect-container .trezorconnect-window .trezorconnect-body h3{color:#505050!important;font-size:16px!important;font-weight:500!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body p{margin:8px 0 24px!important;font-weight:400!important;color:#A9A9A9!important;font-size:12px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button{width:100%!important;padding:12px 24px!important;margin:0!important;border-radius:3px!important;font-size:14px!important;font-weight:300!important;cursor:pointer!important;background:#01B757!important;color:#fff!important;border:0!important;-webkit-transition:background-color .3s ease-in-out!important;transition:background-color .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:hover{background-color:#00AB51!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:active{background-color:#009546!important}/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0IiwiJHN0ZGluIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNBLHlCQUNJLFNBQUEsZ0JBQ0EsUUFBQSxzQkFDQSxRQUFBLHVCQUNBLFFBQUEsc0JBRUEsUUFBQSxlQUNBLG1CQUFBLG1CQUNBLHNCQUFBLGlCQUNBLHVCQUFBLGlCQUNBLG1CQUFBLGlCQUNBLGVBQUEsaUJBRUEsa0JBQUEsaUJBQ0Esb0JBQUEsaUJBQ0EsZUFBQSxpQkNmTSxZQUFhLGlCREFyQixRQUFTLGdCQWtCSCxNQUFBLGVBQ0EsT0FBQSxlQUNBLElBQUEsWUFDQSxLQUFBLFlBQ0EsV0FBQSwwQkFDQSxTQUFBLGVBQ0EsUUFBQSxlQUNBLE9BQUEsWUNkUiwrQ0RYRSxTQUFVLG1CQTZCQSxRQUFBLGdCQUNBLE1BQUEsZ0JBQ0EsWUFBQSxjQUFBLG1CQUFBLFdBQUEsT0FBQSxpQkFBQSxNQUFBLHFCQUNBLE9BQUEsZUNmVixjQUFlLGNEakJmLGlCQWlCRSxlQWtCWSxXQUFBLGlCQ2ZkLFNBQVUsaUJEbUJJLG1FQUNBLFdBQUEsS0NoQmQsUUFBUyxLQUFLLGVEeEJkLFFBQVMsc0JBMENTLFFBQUEsdUJBQ0EsUUFBQSxzQkNmbEIsUUFBUyxlRGlCSyxrQkE1QlosaUJBOEJvQixvQkFBQSxpQkNoQmxCLGVBQWdCLGlCRC9CWixZQWlCTixpQkFzQ1EsdUZBQ0EsaUJBQUEsRUNwQlYsYUFBYyxFRHBDVixTQUFVLEVBMkRBLEtBQUEsRUFFQSx3RkNwQmQsT0FBUSxrQkR6Q1IsT0FBUSxlQWlFTSw0RkFDQSxLQUFBLFFBQ0EsbUJBQUEsS0FBQSxJQUFBLHNCQ3BCZCxXQUFZLEtBQUssSUFBSyxzQkR3QlIsa0dBQ0EsS0FBQSxRQUVBLG1FQUNBLFFBQUEsS0FBQSxLQUFBLGVBQ0EsV0FBQSxrQkFDQSxXQUFBLElBQUEsTUFBQSxRQUVBLHNFQUNBLE1BQUEsa0JBQ0EsVUFBQSxlQ3JCZCxZQUFhLGNEd0JLLHFFQ3JCbEIsT0FBUSxJQUFJLEVBQUksZUR3QkYsWUFBQSxjQUNJLE1BQUEsa0JDdEJsQixVQUFXLGVBRWIsMEVBQ0UsTUFBTyxlQUNQLFFBQVMsS0FBSyxlQUNkLE9BQVEsWUFDUixjQUFlLGNBQ2YsVUFBVyxlQUNYLFlBQWEsY0FDYixPQUFRLGtCQUNSLFdBQVksa0JBQ1osTUFBTyxlQUNQLE9BQVEsWUFDUixtQkFBb0IsaUJBQWlCLElBQUssc0JBQzFDLFdBQVksaUJBQWlCLElBQUssc0JBRXBDLGdGQUNFLGlCQUFrQixrQkFFcEIsaUZBQ0UsaUJBQWtCIn0= */'},whn2:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},wynC:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},xrFu:function(e,t,n){"use strict";n("sVx8")}}]);