!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ABCWallet=e():t.ABCWallet=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=44)}([function(t,e,r){"use strict";var n=Array.isArray;e.a=n},function(t,e,r){"use strict";var n=r(28),o="object"==typeof self&&self&&self.Object===Object&&self,i=n.a||o||Function("return this")();e.a=i},function(t,e,r){"use strict";var n,o=r(26),i=r(1).a["__core-js_shared__"],a=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";var u=function(t){return!!a&&a in t},c=r(3),s=r(8),l=/^\[object .+?Constructor\]$/,f=Function.prototype,p=Object.prototype,d=f.toString,v=p.hasOwnProperty,h=RegExp("^"+d.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var y=function(t){return!(!Object(c.a)(t)||u(t))&&(Object(o.default)(t)?h:l).test(Object(s.a)(t))};var _=function(t,e){return null==t?void 0:t[e]};e.a=function(t,e){var r=_(t,e);return y(r)?r:void 0}},function(t,e,r){"use strict";e.a=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){"use strict";var n=r(1).a.Symbol;e.a=n},function(t,e,r){"use strict";e.a=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){"use strict";var n=r(4),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n.a?n.a.toStringTag:void 0;var c=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o},s=Object.prototype.toString;var l=function(t){return s.call(t)},f=n.a?n.a.toStringTag:void 0;e.a=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":f&&f in Object(t)?c(t):l(t)}},function(t,e,r){"use strict";var n=r(18);e.a=function(t){if("string"==typeof t||Object(n.a)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,r){"use strict";var n=Function.prototype.toString;e.a=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){"use strict";var n=r(26),o=r(19);e.a=function(t){return null!=t&&Object(o.a)(t.length)&&!Object(n.default)(t)}},function(t,e,r){"use strict";var n=/^(?:0|[1-9]\d*)$/;e.a=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){"use strict";e.a=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){"use strict";var n=function(){this.__data__=[],this.size=0},o=r(11);var i=function(t,e){for(var r=t.length;r--;)if(Object(o.a)(t[r][0],e))return r;return-1},a=Array.prototype.splice;var u=function(t){var e=this.__data__,r=i(e,t);return!(r<0)&&(r==e.length-1?e.pop():a.call(e,r,1),--this.size,!0)};var c=function(t){var e=this.__data__,r=i(e,t);return r<0?void 0:e[r][1]};var s=function(t){return i(this.__data__,t)>-1};var l=function(t,e){var r=this.__data__,n=i(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function f(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}f.prototype.clear=n,f.prototype.delete=u,f.prototype.get=c,f.prototype.has=s,f.prototype.set=l;e.a=f},function(t,e,r){"use strict";var n=r(0),o=r(20),i=r(17);function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(a.Cache||i.a),r}a.Cache=i.a;var u=a;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,l=function(t){var e=u(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(c,(function(t,r,n,o){e.push(n?o.replace(s,"$1"):r||t)})),e})),f=r(36);e.a=function(t,e){return Object(n.a)(t)?t:Object(o.a)(t,e)?[t]:l(Object(f.a)(t))}},function(t,e,r){"use strict";var n=r(2),o=r(1),i=Object(n.a)(o.a,"Map");e.a=i},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.invokeNative=e.isDocumentHidden=e.verifyParams=e.isRequest=void 0;var o=n(r(72)),i=n(r(42)),a=r(50);function u(){return document.hidden||"hidden"===document.visibilityState}e.isRequest=function(t){return o.default(["jsonrpc","id","namespace","method","params"],(function(e){return t.hasOwnProperty(e)}))},e.verifyParams=function(t,e){if(i.default(t))throw a.ABCWalletError.fromCode(10,"["+e.toString()+"]");for(var r=[],n=0,o=e;n<o.length;n++){var u=o[n];t.hasOwnProperty(u)&&!i.default(t[u])||r.push(u)}if(r.length>0)throw a.ABCWalletError.fromCode(10,"["+r.toString()+"]");return!0},e.isDocumentHidden=u,e.invokeNative=function(t,e){void 0===e&&(e=5e3);var r=!1,n=Date.now(),o=function(){u()&&(r=!0)};return document.addEventListener("visibilitychange",o),new Promise((function(i,a){"string"==typeof t&&(window.location.href=t),"function"==typeof t&&t(),setTimeout((function(){document.removeEventListener("visibilitychange",o);var t=Date.now()-n>e+1e3;u()||r||t?i():a(new Error("open failed"))}),e)}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseAPI=void 0;var n=function(){function t(t){this._abcwallet=t}return t.prototype._request=function(t,e){return void 0===e&&(e=!1),t.namespace=this._namespace,this._abcwallet.request(t,e)},t}();e.BaseAPI=n,e.default=n},function(t,e,r){"use strict";var n=r(2),o=Object(n.a)(Object,"create");var i=function(){this.__data__=o?o(null):{},this.size=0};var a=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},u=Object.prototype.hasOwnProperty;var c=function(t){var e=this.__data__;if(o){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return u.call(e,t)?e[t]:void 0},s=Object.prototype.hasOwnProperty;var l=function(t){var e=this.__data__;return o?void 0!==e[t]:s.call(e,t)};var f=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=o&&void 0===e?"__lodash_hash_undefined__":e,this};function p(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}p.prototype.clear=i,p.prototype.delete=a,p.prototype.get=c,p.prototype.has=l,p.prototype.set=f;var d=p,v=r(12),h=r(14);var y=function(){this.size=0,this.__data__={hash:new d,map:new(h.a||v.a),string:new d}};var _=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var b=function(t,e){var r=t.__data__;return _(e)?r["string"==typeof e?"string":"hash"]:r.map};var j=function(t){var e=b(this,t).delete(t);return this.size-=e?1:0,e};var O=function(t){return b(this,t).get(t)};var m=function(t){return b(this,t).has(t)};var g=function(t,e){var r=b(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function w(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}w.prototype.clear=y,w.prototype.delete=j,w.prototype.get=O,w.prototype.has=m,w.prototype.set=g;e.a=w},function(t,e,r){"use strict";var n=r(6),o=r(5);e.a=function(t){return"symbol"==typeof t||Object(o.a)(t)&&"[object Symbol]"==Object(n.a)(t)}},function(t,e,r){"use strict";e.a=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,r){"use strict";var n=r(0),o=r(18),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.a=function(t,e){if(Object(n.a)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Object(o.a)(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e,r){"use strict";var n=r(13),o=r(7);e.a=function(t,e){for(var r=0,i=(e=Object(n.a)(e,t)).length;null!=t&&r<i;)t=t[Object(o.a)(e[r++])];return r&&r==i?t:void 0}},function(t,e,r){"use strict";var n=r(12);var o=function(){this.__data__=new n.a,this.size=0};var i=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};var a=function(t){return this.__data__.get(t)};var u=function(t){return this.__data__.has(t)},c=r(14),s=r(17);var l=function(t,e){var r=this.__data__;if(r instanceof n.a){var o=r.__data__;if(!c.a||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new s.a(o)}return r.set(t,e),this.size=r.size,this};function f(t){var e=this.__data__=new n.a(t);this.size=e.size}f.prototype.clear=o,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=u,f.prototype.set=l;var p=f;var d=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var v=function(t){return this.__data__.has(t)};function h(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new s.a;++e<r;)this.add(t[e])}h.prototype.add=h.prototype.push=d,h.prototype.has=v;var y=h;var _=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var b=function(t,e){return t.has(e)};var j=function(t,e,r,n,o,i){var a=1&r,u=t.length,c=e.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(t),l=i.get(e);if(s&&l)return s==e&&l==t;var f=-1,p=!0,d=2&r?new y:void 0;for(i.set(t,e),i.set(e,t);++f<u;){var v=t[f],h=e[f];if(n)var j=a?n(h,v,f,e,t,i):n(v,h,f,t,e,i);if(void 0!==j){if(j)continue;p=!1;break}if(d){if(!_(e,(function(t,e){if(!b(d,e)&&(v===t||o(v,t,r,n,i)))return d.push(e)}))){p=!1;break}}else if(v!==h&&!o(v,h,r,n,i)){p=!1;break}}return i.delete(t),i.delete(e),p},O=r(4),m=r(1),g=m.a.Uint8Array,w=r(11);var P=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r};var A=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},C=O.a?O.a.prototype:void 0,I=C?C.valueOf:void 0;var x=function(t,e,r,n,o,i,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new g(t),new g(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Object(w.a)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=P;case"[object Set]":var c=1&n;if(u||(u=A),t.size!=e.size&&!c)return!1;var s=a.get(t);if(s)return s==e;n|=2,a.set(t,e);var l=j(u(t),u(e),n,o,i,a);return a.delete(t),l;case"[object Symbol]":if(I)return I.call(t)==I.call(e)}return!1},S=r(32),T=r(39),B=r(23);var E=function(t){return Object(S.a)(t,B.a,T.a)},M=Object.prototype.hasOwnProperty;var D=function(t,e,r,n,o,i){var a=1&r,u=E(t),c=u.length;if(c!=E(e).length&&!a)return!1;for(var s=c;s--;){var l=u[s];if(!(a?l in e:M.call(e,l)))return!1}var f=i.get(t),p=i.get(e);if(f&&p)return f==e&&p==t;var d=!0;i.set(t,e),i.set(e,t);for(var v=a;++s<c;){var h=t[l=u[s]],y=e[l];if(n)var _=a?n(y,h,l,e,t,i):n(h,y,l,t,e,i);if(!(void 0===_?h===y||o(h,y,r,n,i):_)){d=!1;break}v||(v="constructor"==l)}if(d&&!v){var b=t.constructor,j=e.constructor;b==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof j&&j instanceof j||(d=!1)}return i.delete(t),i.delete(e),d},k=r(2),q=Object(k.a)(m.a,"DataView"),W=Object(k.a)(m.a,"Promise"),L=Object(k.a)(m.a,"Set"),z=Object(k.a)(m.a,"WeakMap"),N=r(6),F=r(8),H=Object(F.a)(q),R=Object(F.a)(c.a),K=Object(F.a)(W),U=Object(F.a)(L),V=Object(F.a)(z),$=N.a;(q&&"[object DataView]"!=$(new q(new ArrayBuffer(1)))||c.a&&"[object Map]"!=$(new c.a)||W&&"[object Promise]"!=$(W.resolve())||L&&"[object Set]"!=$(new L)||z&&"[object WeakMap]"!=$(new z))&&($=function(t){var e=Object(N.a)(t),r="[object Object]"==e?t.constructor:void 0,n=r?Object(F.a)(r):"";if(n)switch(n){case H:return"[object DataView]";case R:return"[object Map]";case K:return"[object Promise]";case U:return"[object Set]";case V:return"[object WeakMap]"}return e});var J=$,G=r(0),Z=r(27),Q=r(35),Y=Object.prototype.hasOwnProperty;var X=function(t,e,r,n,o,i){var a=Object(G.a)(t),u=Object(G.a)(e),c=a?"[object Array]":J(t),s=u?"[object Array]":J(e),l="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),f="[object Object]"==(s="[object Arguments]"==s?"[object Object]":s),d=c==s;if(d&&Object(Z.a)(t)){if(!Object(Z.a)(e))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new p),a||Object(Q.a)(t)?j(t,e,r,n,o,i):x(t,e,c,r,n,o,i);if(!(1&r)){var v=l&&Y.call(t,"__wrapped__"),h=f&&Y.call(e,"__wrapped__");if(v||h){var y=v?t.value():t,_=h?e.value():e;return i||(i=new p),o(y,_,r,n,i)}}return!!d&&(i||(i=new p),D(t,e,r,n,o,i))},tt=r(5);var et=function t(e,r,n,o,i){return e===r||(null==e||null==r||!Object(tt.a)(e)&&!Object(tt.a)(r)?e!=e&&r!=r:X(e,r,n,o,t,i))};var rt=function(t,e,r,n){var o=r.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var u=r[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<i;){var c=(u=r[o])[0],s=t[c],l=u[1];if(a&&u[2]){if(void 0===s&&!(c in t))return!1}else{var f=new p;if(n)var d=n(s,l,c,t,e,f);if(!(void 0===d?et(l,s,3,n,f):d))return!1}}return!0},nt=r(3);var ot=function(t){return t==t&&!Object(nt.a)(t)};var it=function(t){for(var e=Object(B.a)(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,ot(o)]}return e};var at=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}};var ut=function(t){var e=it(t);return 1==e.length&&e[0][2]?at(e[0][0],e[0][1]):function(r){return r===t||rt(r,t,e)}},ct=r(21);var st=function(t,e,r){var n=null==t?void 0:Object(ct.a)(t,e);return void 0===n?r:n};var lt=function(t,e){return null!=t&&e in Object(t)},ft=r(13),pt=r(38),dt=r(10),vt=r(19),ht=r(7);var yt=function(t,e,r){for(var n=-1,o=(e=Object(ft.a)(e,t)).length,i=!1;++n<o;){var a=Object(ht.a)(e[n]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Object(vt.a)(o)&&Object(dt.a)(a,o)&&(Object(G.a)(t)||Object(pt.a)(t))};var _t=function(t,e){return null!=t&&yt(t,e,lt)},bt=r(20);var jt=function(t,e){return Object(bt.a)(t)&&ot(e)?at(Object(ht.a)(t),e):function(r){var n=st(r,t);return void 0===n&&n===e?_t(r,t):et(e,n,3)}};var Ot=function(t){return t};var mt=function(t){return function(e){return null==e?void 0:e[t]}};var gt=function(t){return function(e){return Object(ct.a)(e,t)}};var wt=function(t){return Object(bt.a)(t)?mt(Object(ht.a)(t)):gt(t)};e.a=function(t){return"function"==typeof t?t:null==t?Ot:"object"==typeof t?Object(G.a)(t)?jt(t[0],t[1]):ut(t):wt(t)}},function(t,e,r){"use strict";var n=r(37),o=r(30),i=r(31),a=Object(i.a)(Object.keys,Object),u=Object.prototype.hasOwnProperty;var c=function(t){if(!Object(o.a)(t))return a(t);var e=[];for(var r in Object(t))u.call(t,r)&&"constructor"!=r&&e.push(r);return e},s=r(9);e.a=function(t){return Object(s.a)(t)?Object(n.a)(t):c(t)}},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BTCAPI=void 0;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="btc",e}return o(e,t),e.prototype.offerIdentity=function(){return this._request({method:"offerIdentity",params:{}})},e.prototype.sign=function(t){return this._request({method:"sign",params:t})},e.prototype.sendTransaction=function(t){return this._request({method:"sendTransaction",params:t})},e.prototype.signMessage=function(t){return this._request({method:"signMessage",params:t})},e.prototype.verifyMessage=function(t){return this._request({method:"verifyMessage",params:t})},e}(i(r(25)).default);e.BTCAPI=a,e.default=a},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ChainBaseAPI=void 0;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.pushSimpleTransaction=function(t){return this._request({method:"pushSimpleTransaction",params:{}})},e.prototype.getAddressFromAddressBook=function(){return this._request({method:"getAddressFromAddressBook",params:{}})},e.prototype.getAddressFromCard=function(){return this._request({method:"getAddressFromCard",params:{}})},e.prototype.sendSimpleTransaction=function(t){return this._request({method:"sendSimpleTransaction",params:t})},e}(i(r(16)).default);e.ChainBaseAPI=a,e.default=a},function(t,e,r){"use strict";r.r(e);var n=r(6),o=r(3);e.default=function(t){if(!Object(o.a)(t))return!1;var e=Object(n.a)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){"use strict";(function(t){var n=r(1),o=r(43),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.a.Buffer:void 0,c=(u?u.isBuffer:void 0)||o.a;e.a=c}).call(this,r(41)(t))},function(t,e,r){"use strict";(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.a=r}).call(this,r(48))},function(t,e,r){"use strict";e.a=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},function(t,e,r){"use strict";var n=Object.prototype;e.a=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,r){"use strict";e.a=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){"use strict";var n=r(33),o=r(0);e.a=function(t,e,r){var i=e(t);return Object(o.a)(t)?i:Object(n.a)(i,r(t))}},function(t,e,r){"use strict";e.a=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){"use strict";e.a=function(){return[]}},function(t,e,r){"use strict";var n=r(6),o=r(19),i=r(5),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var u=function(t){return Object(i.a)(t)&&Object(o.a)(t.length)&&!!a[Object(n.a)(t)]};var c=function(t){return function(e){return t(e)}},s=r(40),l=s.a&&s.a.isTypedArray,f=l?c(l):u;e.a=f},function(t,e,r){"use strict";var n=r(4),o=r(29),i=r(0),a=r(18),u=n.a?n.a.prototype:void 0,c=u?u.toString:void 0;var s=function t(e){if("string"==typeof e)return e;if(Object(i.a)(e))return Object(o.a)(e,t)+"";if(Object(a.a)(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r};e.a=function(t){return null==t?"":s(t)}},function(t,e,r){"use strict";var n=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},o=r(38),i=r(0),a=r(27),u=r(10),c=r(35),s=Object.prototype.hasOwnProperty;e.a=function(t,e){var r=Object(i.a)(t),l=!r&&Object(o.a)(t),f=!r&&!l&&Object(a.a)(t),p=!r&&!l&&!f&&Object(c.a)(t),d=r||l||f||p,v=d?n(t.length,String):[],h=v.length;for(var y in t)!e&&!s.call(t,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||Object(u.a)(y,h))||v.push(y);return v}},function(t,e,r){"use strict";var n=r(6),o=r(5);var i=function(t){return Object(o.a)(t)&&"[object Arguments]"==Object(n.a)(t)},a=Object.prototype,u=a.hasOwnProperty,c=a.propertyIsEnumerable,s=i(function(){return arguments}())?i:function(t){return Object(o.a)(t)&&u.call(t,"callee")&&!c.call(t,"callee")};e.a=s},function(t,e,r){"use strict";var n=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i},o=r(34),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o.a;e.a=u},function(t,e,r){"use strict";(function(t){var n=r(28),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.a.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();e.a=u}).call(this,r(41)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,r){"use strict";r.r(e),e.default=function(t){return null==t}},function(t,e,r){"use strict";e.a=function(){return!1}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(45)),i=r(46),a=o.default.getLogger("ABCWallet");a.setLevel("debug");var u=new i.ABCWallet(a);e.default=u},function(t,e,r){var n,o;!function(i,a){"use strict";void 0===(o="function"==typeof(n=function(){var t=function(){},e="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function n(t,e){var r=t[e];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch(e){return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function i(r){return"debug"===r&&(r="log"),"undefined"!=typeof console&&("trace"===r&&e?o:void 0!==console[r]?n(console,r):void 0!==console.log?n(console,"log"):t)}function a(e,n){for(var o=0;o<r.length;o++){var i=r[o];this[i]=o<e?t:this.methodFactory(i,e,n)}this.log=this.debug}function u(t,e,r){return function(){"undefined"!=typeof console&&(a.call(this,e,r),this[t].apply(this,arguments))}}function c(t,e,r){return i(t)||u.apply(this,arguments)}function s(t,e,n){var o,i=this,u="loglevel";function s(){var t;if("undefined"!=typeof window&&u){try{t=window.localStorage[u]}catch(t){}if(void 0===t)try{var e=window.document.cookie,r=e.indexOf(encodeURIComponent(u)+"=");-1!==r&&(t=/^([^;]+)/.exec(e.slice(r))[1])}catch(t){}return void 0===i.levels[t]&&(t=void 0),t}}"string"==typeof t?u+=":"+t:"symbol"==typeof t&&(u=void 0),i.name=t,i.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},i.methodFactory=n||c,i.getLevel=function(){return o},i.setLevel=function(e,n){if("string"==typeof e&&void 0!==i.levels[e.toUpperCase()]&&(e=i.levels[e.toUpperCase()]),!("number"==typeof e&&e>=0&&e<=i.levels.SILENT))throw"log.setLevel() called with invalid level: "+e;if(o=e,!1!==n&&function(t){var e=(r[t]||"silent").toUpperCase();if("undefined"!=typeof window&&u){try{return void(window.localStorage[u]=e)}catch(t){}try{window.document.cookie=encodeURIComponent(u)+"="+e+";"}catch(t){}}}(e),a.call(i,e,t),"undefined"==typeof console&&e<i.levels.SILENT)return"No console available for logging"},i.setDefaultLevel=function(t){s()||i.setLevel(t,!1)},i.enableAll=function(t){i.setLevel(i.levels.TRACE,t)},i.disableAll=function(t){i.setLevel(i.levels.SILENT,t)};var l=s();null==l&&(l=null==e?"WARN":e),i.setLevel(l,!1)}var l=new s,f={};l.getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=f[t];return e||(e=f[t]=new s(t,l.getLevel(),l.methodFactory)),e};var p="undefined"!=typeof window?window.log:void 0;return l.noConflict=function(){return"undefined"!=typeof window&&window.log===l&&(window.log=p),l},l.getLoggers=function(){return f},l.default=l,l})?n.call(e,r,e,t):n)||(t.exports=o)}()},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ABCWallet=void 0;var a=i(r(47)),u=i(r(26)),c=i(r(49)),s=r(15),l=i(r(52)),f=r(67),p=r(70),d=function(t){function e(e){var r=t.call(this)||this;r._promises=new Map,r.version=p.version,window.ABCWallet=r,r.log=e,window.self!==window.top?(r._channel=new f.IframeChannel,window.onmessage=function(t){t.data&&"string"==typeof t.data&&t.data.includes('"jsonrpc":"2.0"')&&r.response(t.data)}):r._channel=new f.NativeChannel("ABCWalletBridge",e);for(var n=0,o=Object.keys(l.default);n<o.length;n++){var i=o[n];r[i]=new l.default[i](r)}return r._timer=setInterval((function(){var t=(new Date).getTime();r._promises.forEach((function(e){t-e.createdAt.getTime()>36e5&&r.log.warn("ABCWallet.response take too long(more than 5000ms):",e.path)}))}),1e3),r}return o(e,t),e.prototype.request=function(t,e){var r=this;return void 0===e&&(e=!1),new Promise((function(n,o){t=Object.assign(t,{id:e?"":a.default("abcwallet-"),jsonrpc:"2.0"}),e||(r.log.debug("ABCWallet.request add promise: ",t.id),r._promises.set(t.id,{resolve:n,reject:o,path:t.namespace+":"+t.method,createdAt:new Date})),r.log.debug("ABCWallet.request will send message:",t),r._channel.postMessage(t)}))},e.prototype.response=function(t){try{t=JSON.parse(t),this.log.debug("ABCWallet.response received message:",t)}catch(t){return void this.log.error("ABCWallet.call parse message JSON failed.")}var e=t.id,r=t.method,n=t.params;if(s.isRequest(t))this.log.debug("ABCWallet.response trigger notify:",e),this.emit("notify:"+r,n);else{var o=this._promises.get(e);if(!o)return void this.log.error("ABCWallet.response can not find promise for message:",e);(new Date).getTime()-o.createdAt.getTime()>5e3&&this.log.warn("ABCWallet.response take too long(more than 5000ms):",o.path),this._promises.delete(e),this.log.debug("ABCWallet.response find and delete promise:",e),t.error?(this.log.error("ABCWallet.response error:",t.error),o.reject.call(this,t.error)):(this.log.debug("ABCWallet.response result:",t.result),o.resolve.call(this,t.result))}},e.prototype.call=function(t){var e=this;try{t=JSON.parse(t),this.log.debug("ABCWallet.call received message:",t)}catch(t){return void this.log.error("ABCWallet.call parse message JSON failed.")}var r=t.id,n=t.namespace,o=t.method,i=t.params,a=window[n];if(a)if(a[o]&&u.default(a[o])){var c=a[o](i);c.then&&c.catch?c.then((function(t){e._channel.postMessage({jsonrpc:"2.0",id:r,result:t})})):this._channel.postMessage({jsonrpc:"2.0",id:r,result:c})}else this.log.error("ABCWallet.call can not find method: "+n+"."+o);else this.log.error("ABCWallet.call can not find namespace: "+n)},Object.defineProperty(e.prototype,"isABCWallet",{get:function(){var t=window.navigator.userAgent;return/ABCWallet/i.test(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientVersion",{get:function(){var t=window.navigator.userAgent.match(/ABCWallet\/([a-zA-Z-_]+)/g),e=t&&t[t.length-1]&&t[t.length-1].split("/"),r="";return e[1]&&(r=e[1]),r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientLanguage",{get:function(){var t=window.navigator.userAgent.match(/Language\/([a-zA-Z-_]+)/g),e=t&&t[t.length-1]&&t[t.length-1].split("/"),r="";return e[1]&&(r=e[1]),r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientFiat",{get:function(){var t=window.navigator.userAgent.match(/Fiat\/([a-zA-Z-_]+)/g),e=t&&t[t.length-1]&&t[t.length-1].split("/"),r="";return e[1]&&(r=e[1]),r},enumerable:!1,configurable:!0}),e.prototype.compareVersion=function(t){var e=this.clientVersion;if(!e)return null;for(var r=e.split("."),n=t.split("."),o=0;o<r.length;o++){var i=parseInt(r[o]),a=parseInt(n[o]);if(i>a)return 1;if(i<a)return-1}return 0},e}(c.default);e.ABCWallet=d,e.default=d},function(t,e,r){"use strict";r.r(e);var n=r(36),o=0;e.default=function(t){var e=++o;return Object(n.a)(t)+e}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o="~";function i(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function u(t,e,r,n,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var u=new a(r,n||t,i),c=o?o+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],u]:t._events[c].push(u):(t._events[c]=u,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),s.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(o?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},s.prototype.listeners=function(t){var e=o?o+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,i=r.length,a=new Array(i);n<i;n++)a[n]=r[n].fn;return a},s.prototype.listenerCount=function(t){var e=o?o+t:t,r=this._events[e];return r?r.fn?1:r.length:0},s.prototype.emit=function(t,e,r,n,i,a){var u=o?o+t:t;if(!this._events[u])return!1;var c,s,l=this._events[u],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,n),!0;case 5:return l.fn.call(l.context,e,r,n,i),!0;case 6:return l.fn.call(l.context,e,r,n,i,a),!0}for(s=1,c=new Array(f-1);s<f;s++)c[s-1]=arguments[s];l.fn.apply(l.context,c)}else{var p,d=l.length;for(s=0;s<d;s++)switch(l[s].once&&this.removeListener(t,l[s].fn,void 0,!0),f){case 1:l[s].fn.call(l[s].context);break;case 2:l[s].fn.call(l[s].context,e);break;case 3:l[s].fn.call(l[s].context,e,r);break;case 4:l[s].fn.call(l[s].context,e,r,n);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[s].fn.apply(l[s].context,c)}}return!0},s.prototype.on=function(t,e,r){return u(this,t,e,r,!1)},s.prototype.once=function(t,e,r){return u(this,t,e,r,!0)},s.prototype.removeListener=function(t,e,r,n){var i=o?o+t:t;if(!this._events[i])return this;if(!e)return c(this,i),this;var a=this._events[i];if(a.fn)a.fn!==e||n&&!a.once||r&&a.context!==r||c(this,i);else{for(var u=0,s=[],l=a.length;u<l;u++)(a[u].fn!==e||n&&!a[u].once||r&&a[u].context!==r)&&s.push(a[u]);s.length?this._events[i]=1===s.length?s[0]:s:c(this,i)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=o?o+t:t,this._events[e]&&c(this,e)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=o,s.EventEmitter=s,t.exports=s},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ABCWalletError=void 0;var i=function(t){function e(e,r){var n=t.call(this,r)||this;return n.code=e,n}return o(e,t),e.fromCode=function(t,r){return void 0===r&&(r=""),new e(t,e.messages[t]+r)},e.messages={1:"Unkown error",10:"Params error, missing required params "},e}(r(51).CustomError);e.ABCWalletError=i},function(t,e,r){"use strict";function n(t,e){void 0===e&&(e=t.constructor);var r=Error.captureStackTrace;r&&r(t,e)}r.r(e),r.d(e,"CustomError",(function(){return a})),r.d(e,"customErrorFactory",(function(){return c}));var o,i=(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=function(t){function e(e){var r,o,i,a=this.constructor,u=t.call(this,e)||this;return Object.defineProperty(u,"name",{value:a.name,enumerable:!1,configurable:!0}),r=u,o=a.prototype,(i=Object.setPrototypeOf)?i(r,o):r.__proto__=o,n(u),u}return i(e,t),e}(Error),u=function(){for(var t=arguments,e=0,r=0,n=arguments.length;r<n;r++)e+=t[r].length;var o=Array(e),i=0;for(r=0;r<n;r++)for(var a=arguments[r],u=0,c=a.length;u<c;u++,i++)o[i]=a[u];return o};function c(t,e){function r(){for(var o=arguments,i=[],a=0;a<arguments.length;a++)i[a]=o[a];if(!(this instanceof r))return new(r.bind.apply(r,u([void 0],i)));e.apply(this,i),Object.defineProperty(this,"name",{value:t.name||e.name,enumerable:!1,configurable:!0}),t.apply(this,i),n(this,r)}return void 0===e&&(e=Error),Object.defineProperties(r,{prototype:{value:Object.create(e.prototype,{constructor:{value:r,writable:!0,configurable:!0}})}})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserAPI=e.EOSAPI=e.ETCAPI=e.ETHAPI=e.CKBAPI=e.DASHAPI=e.LTCAPI=e.BSVAPI=e.BCHAPI=e.BTCAPI=e.PrivateAPI=e.ABCIDAPI=e.PartnerAPI=e.DappAPI=e.WebviewAPI=void 0;var n=r(53);Object.defineProperty(e,"WebviewAPI",{enumerable:!0,get:function(){return n.WebviewAPI}});var o=r(54);Object.defineProperty(e,"DappAPI",{enumerable:!0,get:function(){return o.DappAPI}});var i=r(55);Object.defineProperty(e,"PartnerAPI",{enumerable:!0,get:function(){return i.PartnerAPI}});var a=r(56);Object.defineProperty(e,"ABCIDAPI",{enumerable:!0,get:function(){return a.ABCIDAPI}});var u=r(57);Object.defineProperty(e,"PrivateAPI",{enumerable:!0,get:function(){return u.PrivateAPI}});var c=r(24);Object.defineProperty(e,"BTCAPI",{enumerable:!0,get:function(){return c.BTCAPI}});var s=r(58);Object.defineProperty(e,"BCHAPI",{enumerable:!0,get:function(){return s.BCHAPI}});var l=r(59);Object.defineProperty(e,"BSVAPI",{enumerable:!0,get:function(){return l.BSVAPI}});var f=r(60);Object.defineProperty(e,"LTCAPI",{enumerable:!0,get:function(){return f.LTCAPI}});var p=r(61);Object.defineProperty(e,"DASHAPI",{enumerable:!0,get:function(){return p.DASHAPI}});var d=r(62);Object.defineProperty(e,"CKBAPI",{enumerable:!0,get:function(){return d.CKBAPI}});var v=r(63);Object.defineProperty(e,"ETHAPI",{enumerable:!0,get:function(){return v.ETHAPI}});var h=r(64);Object.defineProperty(e,"ETCAPI",{enumerable:!0,get:function(){return h.ETCAPI}});var y=r(65);Object.defineProperty(e,"EOSAPI",{enumerable:!0,get:function(){return y.EOSAPI}});var _=r(66);Object.defineProperty(e,"BrowserAPI",{enumerable:!0,get:function(){return _.BrowserAPI}}),e.default={webview:n.WebviewAPI,dapp:o.DappAPI,partner:i.PartnerAPI,abcid:a.ABCIDAPI,private:u.PrivateAPI,btc:c.BTCAPI,bch:s.BCHAPI,bsv:l.BSVAPI,ltc:f.LTCAPI,dash:p.DASHAPI,ckb:d.CKBAPI,eth:v.ETHAPI,etc:h.ETCAPI,eos:y.EOSAPI,browser:_.BrowserAPI}},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WebviewAPI=void 0;var a=i(r(42)),u=i(r(71)),c=r(15),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="webview",e}return o(e,t),e.prototype.setOrientation=function(t){return c.verifyParams(t,["horizontal"]),this._request({method:"setOrientation",params:t},!0)},e.prototype.setFullscreen=function(t){return c.verifyParams(t,["fullscreen"]),this._request({method:"setFullscreen",params:t},!0)},e.prototype.setTitlebar=function(t){return t=u.default(t,a.default),this._request({method:"setTitlebar",params:t},!0)},e.prototype.home=function(){return this._request({method:"home",params:{}},!0)},e.prototype.back=function(){return this._request({method:"back",params:{}},!0)},e.prototype.close=function(){return this._request({method:"close",params:{}},!0)},e.prototype.share=function(t){return void 0===t&&(t={}),this._request({method:"share",params:t},!0)},e.prototype.openUrl=function(t){return c.verifyParams(t,["url"]),this._request({method:"openUrl",params:t},!0)},e.prototype.invokeQRScanner=function(){return this._request({method:"invokeQRScanner",params:{}})},e.prototype.copy=function(t){return this._request({method:"copy",params:t})},e}(i(r(16)).default);e.WebviewAPI=s,e.default=s},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DappAPI=void 0;var a=r(15),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="dapp",e}return o(e,t),e.prototype.getDapp=function(){return this._request({method:"getDapp",params:{}})},e.prototype.isCardExist=function(t){return a.verifyParams(t,["userId"]),this._request({method:"isCardExist",params:t})},e.prototype.addCard=function(t){return this._request({method:"addCard",params:t})},e.prototype.updateCard=function(t){return this._request({method:"updateCard",params:t})},e.prototype.getCard=function(t){return this._request({method:"getCard",params:t})},e.prototype.updateCardBalance=function(t){return this._request({method:"updateCardBalance",params:t})},e}(i(r(16)).default);e.DappAPI=u,e.default=u},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.PartnerAPI=void 0;var a=i(r(16)),u=r(15),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="partner",e}return o(e,t),e.prototype.addPartnerCard=function(){return this._request({method:"addPartnerCard",params:{}})},e.prototype.isPartnerCardExist=function(){return this._request({method:"isPartnerCardExist",params:{}})},e.prototype.addKeypairCard=function(t){return u.verifyParams(t,["chainType"]),this._request({method:"addKeypairCard",params:t})},e}(a.default);e.PartnerAPI=c,e.default=c},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ABCIDAPI=void 0;var a=r(15),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="abcid",e}return o(e,t),e.prototype.getABCID=function(t){return a.verifyParams(t,["randomStr"]),this._request({method:"getABCID",params:{randomStr:t.randomStr}})},e.prototype.getIDInfo=function(t){return this._request({method:"getIDInfo",params:t})},e}(i(r(16)).default);e.ABCIDAPI=u,e.default=u},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrivateAPI=void 0;var a=r(15),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="abcwallet",e}return o(e,t),e.prototype.ensureHasCard=function(t){return a.verifyParams(t,["chainType"]),this._request({method:"ensureHasCards",params:t},!0)},e.prototype.buildGiftTransaction=function(t){return a.verifyParams(t,["chainType","toAddress","toPrivateKey","value","skin","message"]),this._request({method:"buildGiftTransaction",params:t})},e.prototype.encryptDataWithPrivateKey=function(t){return a.verifyParams(t,["chainType","data","publicKey"]),this._request({method:"encryptDataWithPrivateKey",params:t})},e.prototype.decryptDataWithPrivateKey=function(t){return a.verifyParams(t,["chainType","cipher","publicKey"]),this._request({method:"decryptDataWithPrivateKey",params:t})},e.prototype.forward=function(t){return a.verifyParams(t,["dapp","method","params"]),this._request({method:"forward",params:t})},e}(i(r(16)).default);e.PrivateAPI=u,e.default=u},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BCHAPI=void 0;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="bch",e}return o(e,t),e}(i(r(24)).default);e.BCHAPI=a,e.default=a},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BSVAPI=void 0;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="bsv",e}return o(e,t),e}(i(r(24)).default);e.BSVAPI=a,e.default=a},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.LTCAPI=void 0;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="ltc",e}return o(e,t),e}(i(r(24)).default);e.LTCAPI=a,e.default=a},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DASHAPI=void 0;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="dash",e}return o(e,t),e}(i(r(24)).default);e.DASHAPI=a,e.default=a},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CKBAPI=void 0;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="ckb",e}return o(e,t),e.prototype.sign=function(t){return console.log(t),this._request({method:"sign",params:t})},e.prototype.sendTransaction=function(t){return this._request({method:"sendTransaction",params:t})},e}(i(r(25)).default);e.CKBAPI=a,e.default=a},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ETHAPI=void 0;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="eth",e}return o(e,t),e}(i(r(25)).default);e.ETHAPI=a,e.default=a},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ETCAPI=void 0;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="etc",e}return o(e,t),e}(i(r(25)).default);e.ETCAPI=a,e.default=a},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.EOSAPI=void 0;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="eos",e}return o(e,t),e}(i(r(25)).default);e.EOSAPI=a,e.default=a},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserAPI=void 0;var a=r(15),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._namespace="dapp",e}return o(e,t),e.prototype.openDapp=function(t){var e=t.url,r=t.dapp_id;return a.invokeNative("abcwallet://open-dapp?url="+encodeURIComponent(e)+"&dapp_id="+r)},e}(i(r(16)).default);e.BrowserAPI=u,e.default=u},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(68),e),o(r(69),e)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IframeChannel=void 0;var n=function(){function t(){}return t.prototype.postMessage=function(t){parent.postMessage(t,"*")},t}();e.IframeChannel=n,e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeChannel=void 0;var n=function(){function t(t,e){this._isIOS=!1,this._isAndroid=!1,this._isElectron=!1,this.log=e,this.requestChannel=t;var r=navigator.userAgent.toLowerCase();this._isIOS=r.includes("iphone"),this._isAndroid=r.includes("android"),this._isElectron=r.includes("electron")}return t.prototype.postMessage=function(t){var e=this.requestChannel;if(this._isIOS)if(this.log.debug("NativeChannel send to ios "+e),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers[e]&&window.webkit.messageHandlers[e].postMessage)window.webkit.messageHandlers[e].postMessage(t);else{var r=document.createElement("iframe");r.setAttribute("src","abcwallet://"+e+"?data="+this._dataToString(t)),r.setAttribute("style","display: none"),document.body.appendChild(r),setTimeout((function(){document.body.removeChild(r)}),100)}else this._isAndroid?(this.log.debug("NativeChannel send to android "+e),window[e].postMessage(this._dataToString(t))):this._isElectron?(this.log.debug("NativeChannel send to electron "+e),window[e].postMessage(this._dataToString(t))):this.log.info("Development runtime environment, no data will be sent.\nYou may create mock response like this in console:\nABCWallet.response(JSON.stringify(JSON.stringify( { jsonrpc: '"+t.jsonrpc+"', id: '"+t.id+"', result: your expected response object } )))\n")},t.prototype._dataToString=function(t){return"string"==typeof t?t:JSON.stringify(t)},t}();e.NativeChannel=n,e.default=n},function(t){t.exports=JSON.parse('{"name":"abcwallet","version":"1.7.0","description":"The only and best SDK for ABCWallet application development.","repository":"https://github.com/BlockABC/abcwallet.js","license":"MIT","scripts":{"build":"npm run build:esm && npm run build:cjs && npm run build:umd","build:umd":"webpack --mode=production --config webpack.conf.js","build:esm":"tsc -p tsconfig.esm.json","build:cjs":"tsc -p tsconfig.cjs.json","build:analysis":"webpack --mode=production --env.analysis --config webpack.conf.js","dev":"webpack-dev-server --mode=development --config webpack.conf.js","lint":"eslint --ext .ts --fix src/","lint:nofix":"eslint --ext .ts src/","test":"jest","test:coverage":"jest --collect-coverage","commit":"npx git-cz","release":"node release.js","pm2:reload":"pm2 reload ecosystem.config.js --only abcwallet.js"},"types":"./types/index.d.ts","files":["src/","cjs/","esm/","dist/","types/","public/"],"keywords":["eospark","api","service"],"author":"BlockABC FE Team","main":"./cjs/index.js","module":"./esm/index.js","browser":"./dist/abcwallet.umd.min.js","dependencies":{"eventemitter3":"^4.0.0","lodash-es":"^4.0.0","loglevel":"^1.0.0","ts-custom-error":"^3.0.0"},"devDependencies":{"@semantic-release/changelog":"^5.0.0","@semantic-release/exec":"^5.0.0","@semantic-release/git":"^9.0.0","@types/jest":"^24.0.11","@types/node":"^11.13.4","babel-eslint":"^10.0.3","chokidar":"^3.0.2","commitizen":"^4.0.3","cz-conventional-changelog":"^3.1.0","eslint":"^6.2.2","eslint-config-blockabc":"^0.9.1","html-webpack-plugin":"^4.0.1","jest":"^24.8.0","semantic-release":"^17.4.0","ts-jest":"^24.0.0","ts-loader":"^5.0.0","typescript":"^4.0.0","webpack":"^4.29.6","webpack-bundle-analyzer":"^3.3.2","webpack-cli":"^3.3.0","webpack-dev-server":"^3.7.2","webpack-merge":"^4.2.1","dotenv":"^8.2.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}}}')},function(t,e,r){"use strict";r.r(e);var n=r(22);var o=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}},i=r(29),a=r(21),u=r(2),c=function(){try{var t=Object(u.a)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var s=function(t,e,r){"__proto__"==e&&c?c(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},l=r(11),f=Object.prototype.hasOwnProperty;var p=function(t,e,r){var n=t[e];f.call(t,e)&&Object(l.a)(n,r)&&(void 0!==r||e in t)||s(t,e,r)},d=r(13),v=r(10),h=r(3),y=r(7);var _=function(t,e,r,n){if(!Object(h.a)(t))return t;for(var o=-1,i=(e=Object(d.a)(e,t)).length,a=i-1,u=t;null!=u&&++o<i;){var c=Object(y.a)(e[o]),s=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=a){var l=u[c];void 0===(s=n?n(l,c,u):void 0)&&(s=Object(h.a)(l)?l:Object(v.a)(e[o+1])?[]:{})}p(u,c,s),u=u[c]}return t};var b=function(t,e,r){for(var n=-1,o=e.length,i={};++n<o;){var u=e[n],c=Object(a.a)(t,u);r(c,u)&&_(i,Object(d.a)(u,t),c)}return i},j=r(32),O=r(33),m=r(31),g=Object(m.a)(Object.getPrototypeOf,Object),w=r(39),P=r(34),A=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Object(O.a)(e,Object(w.a)(t)),t=g(t);return e}:P.a,C=r(37),I=r(30);var x=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e},S=Object.prototype.hasOwnProperty;var T=function(t){if(!Object(h.a)(t))return x(t);var e=Object(I.a)(t),r=[];for(var n in t)("constructor"!=n||!e&&S.call(t,n))&&r.push(n);return r},B=r(9);var E=function(t){return Object(B.a)(t)?Object(C.a)(t,!0):T(t)};var M=function(t){return Object(j.a)(t,E,A)};var D=function(t,e){if(null==t)return{};var r=Object(i.a)(M(t),(function(t){return[t]}));return e=Object(n.a)(e),b(t,r,(function(t,r){return e(t,r[0])}))};e.default=function(t,e){return D(t,o(Object(n.a)(e)))}},function(t,e,r){"use strict";r.r(e);var n=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0};var o=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}(),i=r(23);var a=function(t,e){return t&&o(t,e,i.a)},u=r(9);var c=function(t,e){return function(r,n){if(null==r)return r;if(!Object(u.a)(r))return t(r,n);for(var o=r.length,i=e?o:-1,a=Object(r);(e?i--:++i<o)&&!1!==n(a[i],i,a););return r}}(a);var s=function(t,e){var r=!0;return c(t,(function(t,n,o){return r=!!e(t,n,o)})),r},l=r(22),f=r(0),p=r(11),d=r(10),v=r(3);var h=function(t,e,r){if(!Object(v.a)(r))return!1;var n=typeof e;return!!("number"==n?Object(u.a)(r)&&Object(d.a)(e,r.length):"string"==n&&e in r)&&Object(p.a)(r[e],t)};e.default=function(t,e,r){var o=Object(f.a)(t)?n:s;return r&&h(t,e,r)&&(e=void 0),o(t,Object(l.a)(e,3))}}]).default}));
//# sourceMappingURL=abcwallet.umd.min.js.map