diff --git a/ng-dist/main.js b/ng-dist/main.js index 046e0e73..d1629784 100644 --- a/ng-dist/main.js +++ b/ng-dist/main.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{9:function(t,n,e){t.exports=e("zUnb")},RnhZ:function(t,n,e){var l={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function r(t){var n=o(t);return e(n)}function o(t){var n=l[t];if(!(n+1)){var e=new Error('Cannot find module "'+t+'".');throw e.code="MODULE_NOT_FOUND",e}return n}r.keys=function(){return Object.keys(l)},r.resolve=o,t.exports=r,r.id="RnhZ"},ZECR:function(t,n,e){(function(n,e){var l;t.exports=function t(n,e,r){function o(u,a){if(!e[u]){if(!n[u]){if(!a&&"function"==typeof l&&l)return l(u,!0);if(i)return i(u,!0);var s=new Error("Cannot find module '"+u+"'");throw s.code="MODULE_NOT_FOUND",s}var c=e[u]={exports:{}};n[u][0].call(c.exports,function(t){return o(n[u][1][t]||t)},c,c.exports,t,n,e,r)}return e[u].exports}for(var i="function"==typeof l&&l,u=0;u1&&void 0!==arguments[1])||arguments[1];return l(o,"required account"),0==i&&null!=e[o]?Promise.resolve(e[o]):t.getCode(o).then(function(t){var i=t.abi;l(i,"Missing ABI for account: "+o);var u=function(t){var n={};return t.types&&t.types.forEach(function(t){n[t.new_type_name]=t.type}),t.structs&&t.structs.forEach(function(t){var e={},l=!0,r=!1,o=void 0;try{for(var i,u=t.fields[Symbol.iterator]();!(l=(i=u.next()).done);l=!0){var a=i.value;e[a.name]=a.type}}catch(t){r=!0,o=t}finally{try{!l&&u.return&&u.return()}finally{if(r)throw o}}n[t.name]={base:t.base,fields:e},""===t.base&&delete n[t.name].base}),n}(i),a=r(n,u);return e[o]=Object.assign({abi:i,schema:u},a)})},abi:function(t){var n=e[t];if(null==n)throw new Error("Abi '"+t+"' is not cached");return n}}}},{"./structs":9,assert:11}],2:[function(t,n,e){"use strict";var l=function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,n){var e=[],l=!0,r=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(l=(i=u.next()).done)&&(e.push(i.value),!n||e.length!==n);l=!0);}catch(t){r=!0,o=t}finally{try{!l&&u.return&&u.return()}finally{if(r)throw o}}return e}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=t("assert");function i(t){var n={"SYS@eosio.token":{precision:4},"EOS@eosio.token":{precision:4}};return{lookupAsync:function(e,i){o(e,"required symbol"),o(i,"required contract"),"eosio"===i&&(i="eosio.token");var a=e+"@"+i;if(null!=n[a])return Promise.resolve(n[a]);var s=t.getCurrencyStats(i,e).then(function(t){var i=t[e];if(i){var u=i.max_supply;o.equal(void 0===u?"undefined":r(u),"string","Expecting max_supply string in currency stats: "+t),o(new RegExp("^[0-9]+(.[0-9]+)? "+e+"$").test(u),"Expecting max_supply string like 10000.0000 SYS, instead got: "+u);var s=u.split(" "),c=l(s,1)[0].split("."),f=l(c,2)[1],d=(void 0===f?"":f).length;return o(d>=0&&d<=18,"unable to determine precision from string: "+u),n[a]={precision:d}}n[a]=null});return u.push(s),n[a]=s},lookup:function(t,e){o(t,"required symbol"),o(e,"required contract"),"eosio"===e&&(e="eosio.token");var l=n[t+"@"+e];if(!(l instanceof Promise))return l}}}t("./structs"),n.exports=i;var u=[];i.resolve=function(){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(Promise.all(u));case 2:u=[];case 3:case"end":return t.stop()}},null,this)},i.pending=function(){return 0!==u.length}},{"./structs":9,assert:11}],3:[function(t,n,e){"use strict";var l=function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,n){var e=[],l=!0,r=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(l=(i=u.next()).done)&&(e.push(i.value),!n||e.length!==n);l=!0);}catch(t){r=!0,o=t}finally{try{!l&&u.return&&u.return()}finally{if(r)throw o}}return e}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=t("assert"),i=t("bytebuffer").Long;function u(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;if("number"==typeof t){if(t>Number.MAX_SAFE_INTEGER)throw new TypeError("value parameter overflow");t=i.fromString(String(t),n,e)}else if("string"==typeof t)t=i.fromString(t,n,e);else if(!i.isLong(t))throw new TypeError("value parameter is a requied Long, Number or String");return t}n.exports={ULong:u,isName:function(t,n){try{return c(t),!0}catch(t){return n&&n(t),!1}},encodeName:c,decodeName:f,encodeNameHex:function(t){return i.fromString(c(t),!0).toString(16)},decodeNameHex:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return f(i.fromString(t,!0,16).toString(),n)},UDecimalString:d,UDecimalPad:h,UDecimalImply:function(t,n){return h(t,n).replace(".","")},UDecimalUnimply:function(t,n){o(null!=t,"value is required"),t="object"===t&&t.toString?t.toString():String(t),o(/^\d+$/.test(t),"invalid whole number "+t),o(null!=n,"precision required"),o(n>=0&&n<=18,"Precision should be 18 characters or less");var e=n-t.length;e>0&&(t=""+"0".repeat(e)+t);var l=t.length-n;return h(t=t.slice(0,l)+"."+t.slice(l),n)},joinAssetString:p,parseExtendedAsset:function(t){var n=t.split(" "),e=l(n,1)[0].match(/^([0-9]+(\.[0-9]+)?)( |$)/),r=e?e[1]:null,i=t.match(/(^| )([0-9]+),([A-Z]+)(@|$)/),u=i?Number(i[2]):null,a=t.match(/(^| |,)([A-Z]+)(@|$)/),s=a?a[2]:null,c=t.split("@"),f=l(c,2)[1],d=/^[a-z0-5]+(\.[a-z0-5]+)*$/.test(f)?f:null,h=p({amount:r,precision:u,symbol:s,contract:d});return o.equal(t,h,"Invalid extended asset string: "+t+" !== "+h),null!=u&&o(u>=0&&u<=18,"Precision should be 18 characters or less"),null!=s&&o(s.length<=7,"Asset symbol is 7 characters or less"),null!=d&&o(d.length<=12,"Contract is 12 characters or less"),{amount:r,precision:u,symbol:s,contract:d}}};var a=".12345abcdefghijklmnopqrstuvwxyz",s=function(t){var n=a.indexOf(t);if(-1===n)throw new TypeError("Invalid character: '"+t+"'");return n};function c(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("string"!=typeof t)throw new TypeError("name parameter is a required string");if(t.length>12)throw new TypeError("A name can be up to 12 characters long");for(var e="",l=0;l<=12;l++){var r=lo)throw new TypeError("Invalid name "+t);e+=u="0".repeat(o-u.length)+u}var a=i.fromString(e,!0,2),c="",f=n?a.toBytesLE():a.toBytesBE(),d=!0,h=!1,p=void 0;try{for(var m,g=f[Symbol.iterator]();!(d=(m=g.next()).done);d=!0){var v=Number(m.value).toString(16);c+=(1===v.length?"0":"")+v}}catch(t){h=!0,p=t}finally{try{!d&&g.return&&g.return()}finally{if(h)throw p}}return i.fromString(c,!0,16).toString().toString()}function f(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t=u(t);var e="",l=n?t.toBytesLE():t.toBytesBE(),r=!0,o=!1,s=void 0;try{for(var c,f=l[Symbol.iterator]();!(r=(c=f.next()).done);r=!0){var d=Number(c.value).toString(16);e+=(1===d.length?"0":"")+d}}catch(t){o=!0,s=t}finally{try{!r&&f.return&&f.return()}finally{if(o)throw s}}e+="0".repeat(16-e.length);for(var h=i.fromNumber(31,!0),p=i.fromNumber(15,!0),m="",g=i.fromString(e,!0,16),v=0;v<=12;v++)m=a[g.and(0===v?p:h)]+m,g=g.shiftRight(0===v?4:5);return m.replace(/\.+$/,"")}function d(t){o(null!=t,"value is required"),"."===(t="object"===t&&t.toString?t.toString():String(t))[0]&&(t="0"+t);var n=t.split(".");return o(n.length<=2,"invalid decimal "+t),o(/^\d+(,?\d)*\d*$/.test(n[0]),"invalid decimal "+t),2===n.length&&(o(/^\d*$/.test(n[1]),"invalid decimal "+t),n[1]=n[1].replace(/0+$/,""),""===n[1]&&n.pop()),n[0]=n[0].replace(/^0*/,""),""===n[0]&&(n[0]="0"),n.join(".")}function h(t,n){var e=d(t);if(null==n)return t;o(n>=0&&n<=18,"Precision should be 18 characters or less");var l=e.split(".");if(0===n&&1===l.length)return l[0];if(1===l.length)return l[0]+"."+"0".repeat(n);var r=n-l[1].length;return o(r>=0,"decimal '"+e+"' exceeds precision "+n),l[0]+"."+l[1]+"0".repeat(r)}function p(t){var n=t.amount,e=t.precision,l=t.symbol,i=t.contract;o.equal(void 0===l?"undefined":r(l),"string","symbol is a required string");var u=function(t,n){return null==t?"":null==n?"":t+n},a=u(e,",")+l;return u(n," ")+a+u("@",i)}},{assert:11,bytebuffer:41}],4:[function(t,n,e){"use strict";var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};try{t("babel-polyfill")}catch(t){-1===t.message.indexOf("only one instance of babel-polyfill is allowed")&&console.error(t)}var r=t("eosjs-ecc"),o=t("fcbuffer"),i=t("eosjs-api"),u=t("assert"),a=t("./structs"),s=t("./abi-cache"),c=t("./asset-cache"),f=t("./write-api"),d=t("./format"),h=t("./schema"),p=t("../package.json"),m={broadcast:!0,debug:!1,sign:!0},g=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=i(t);if(t.network=n,t.assetCache=c(n),t.abiCache=s(n,t),t.chainId||(t.chainId="cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f"),function(t,n){t.getInfo({}).then(function(t){t.chain_id!==n&&console.warn("WARN: chainId mismatch, signatures will not match transaction authority. expected "+n+" !== actual "+t.chain_id)}).catch(function(t){console.error(t)})}(n,t.chainId),null!=t.mockTransactions){if("string"==typeof t.mockTransactions){var e=t.mockTransactions;t.mockTransactions=function(){return e}}u.equal(l(t.mockTransactions),"function","config.mockTransactions")}var r=a(t),o=r.structs,d=r.types,p=r.fromBuffer,m=r.toBuffer,g=function(t,n,e){u(t.network,"network instance required");var l=t.network,r=Object.assign({},l),o=f(n,l,e,t,h);return function(t,n,e){for(var l in t)if(n[l])throw new TypeError("Conflicting methods in EosApi and Transaction Api: "+l)}(r,o),Object.assign(r,o),r}(t,i,o);return Object.assign(g,{fc:{structs:o,types:d,fromBuffer:p,toBuffer:m}}),t.signProvider||(t.signProvider=b(g,t)),g}(Object.assign({},{apiLog:v(t.verbose),transactionLog:v(t.verbose)},m,t))};function v(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(n,e,l){n?(l&&console.error(l,"error"),console.error(n)):t&&(l&&console.log(l,"reply:"),console.log(JSON.stringify(e,null,4)))}}n.exports=g,Object.assign(g,{version:p.version,modules:{format:d,api:i,ecc:r,json:{api:i.api,schema:h},Fcbuffer:o},Testnet:function(t){return console.error("deprecated, change Eos.Testnet(..) to just Eos(..)"),g(t)},Localnet:function(t){return console.error("deprecated, change Eos.Localnet(..) to just Eos(..)"),g(t)}});var b=function(t,n){return function(e){var l,o,i,a,s,c,f,d,h,p,m=e.sign,g=e.buf,v=e.transaction;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(l=n.keyProvider){e.next=3;break}throw new TypeError("This transaction requires a config.keyProvider for signing");case 3:return o=l,"function"==typeof l&&(o=l({transaction:v})),e.next=7,regeneratorRuntime.awrap(Promise.resolve(o));case 7:if(o=e.sent,Array.isArray(o)||(o=[o]),(o=o.map(function(t){try{return{private:r.PrivateKey(t).toString()}}catch(n){return{public:r.PublicKey(t).toString()}}u(!1,"expecting public or private keys from keyProvider")})).length){e.next=12;break}throw new Error("missing key, check your keyProvider");case 12:if(1!==o.length||!o[0].private){e.next=15;break}return e.abrupt("return",m(g,o[0].private));case 15:for(i=new Map,a=!0,s=!1,c=void 0,e.prev=19,f=o[Symbol.iterator]();!(a=(d=f.next()).done);a=!0)null!=(h=d.value).private?i.set(r.privateToPublic(h.private),h.private):i.set(h.public,null);e.next=27;break;case 23:e.prev=23,e.t0=e.catch(19),s=!0,c=e.t0;case 27:e.prev=27,e.prev=28,!a&&f.return&&f.return();case 30:if(e.prev=30,!s){e.next=33;break}throw c;case 33:return e.finish(30);case 34:return e.finish(27);case 35:return p=Array.from(i.keys()),e.abrupt("return",t.getRequiredKeys(v,p).then(function(t){var n=t.required_keys;if(!n.length)throw new Error("missing required keys for "+JSON.stringify(v));var e=[],o=[],a=!0,s=!1,c=void 0;try{for(var f,d=n[Symbol.iterator]();!(a=(f=d.next()).done);a=!0){var h=f.value;h=r.PublicKey(h).toString();var p=i.get(h);p?e.push(p):o.push(h)}}catch(t){s=!0,c=t}finally{try{!a&&d.return&&d.return()}finally{if(s)throw c}}0!==o.length&&(u("function"==typeof l,"keyProvider function is needed for private key lookup"),l({pubkeys:o}).forEach(function(t){e.push(t)}));var b=[],_=!0,y=!1,w=void 0;try{for(var E,C=e[Symbol.iterator]();!(_=(E=C.next()).done);_=!0)b.push(m(g,E.value))}catch(t){y=!0,w=t}finally{try{!_&&C.return&&C.return()}finally{if(y)throw w}}return b}));case 37:case"end":return e.stop()}},null,this,[[19,23,27,35],[28,,30,34]])}}},{"../package.json":453,"./abi-cache":1,"./asset-cache":2,"./format":3,"./schema":8,"./structs":9,"./write-api":10,assert:11,"babel-polyfill":12,"eosjs-api":383,"eosjs-ecc":392,fcbuffer:401}],5:[function(t,n,e){n.exports={name:"uint64",checksum160:"fixed_bytes20",checksum256:"fixed_bytes32",checksum512:"fixed_bytes64",signature:"fixed_bytes65",public_key:"fixed_bytes33",message_type:"fixed_string16",symbol:"uint64",symbol_code:"uint64",field_name:"string",account_name:"name",permission_name:"name",type_name:"string",token_name:"name",table_name:"name",scope_name:"name",action_name:"name",time_point:"int64",time_point_sec:"time",timestamp:"uint32",block_timestamp_type:"timestamp",block_id:"fixed_bytes32",checksum_type:"fixed_bytes32",checksum256_type:"fixed_bytes32",checksum512_type:"fixed_bytes64",checksum160_type:"fixed_bytes20",sha256:"fixed_bytes32",sha512:"fixed_bytes64",sha160:"fixed_bytes20",weight_type:"uint16",block_num_type:"uint32",share_type:"int64",digest_type:"checksum_type",context_free_type:"bytes",unsigned_int:"varuint32",bool:"uint8",extensions_type:{base:"",fields:{type:"uint16",data:"bytes"}},transaction_header:{base:"",fields:{expiration:"time",ref_block_num:"uint16",ref_block_prefix:"uint32",net_usage_words:"unsigned_int",max_cpu_usage_ms:"uint8",delay_sec:"unsigned_int"}},transaction:{base:"transaction_header",fields:{context_free_actions:"action[]",actions:"action[]",transaction_extensions:"extensions_type[]"}},signed_transaction:{base:"transaction",fields:{signatures:"signature[]",context_free_data:"bytes[]"}},fields:"field_def[]",field_def:{fields:{name:"field_name",type:"type_name"}},asset:{fields:{amount:"share_type",sym:"symbol"}},producer_key:{fields:{producer_name:"account_name",block_signing_key:"public_key"}},producer_schedule:{fields:{version:"uint32",producers:"producer_key[]"}},chain_config:{fields:{target_block_size:"uint32",max_block_size:"uint32",target_block_acts_per_scope:"uint32",max_block_acts_per_scope:"uint32",target_block_acts:"uint32",max_block_acts:"uint32",real_threads:"uint64",max_storage_size:"uint64",max_transaction_lifetime:"uint32",max_authority_depth:"uint16",max_transaction_exec_time:"uint32",max_inline_depth:"uint16",max_inline_action_size:"uint32",max_generated_transaction_size:"uint32"}},type_def:{base:"",fields:{new_type_name:"type_name",type:"type_name"}},struct_def:{base:"",fields:{name:"type_name",base:"type_name",fields:"field_def[]"}},clause_pair:{base:"",fields:{id:"string",body:"string"}},error_message:{base:"",fields:{error_code:"uint64",error_msg:"string"}},abi_def:{base:"",fields:{version:"string",types:"type_def[]",structs:"struct_def[]",actions:"action_def[]",tables:"table_def[]",ricardian_clauses:"clause_pair[]",error_messages:"error_message[]",abi_extensions:"extensions_type[]"}},table_def:{base:"",fields:{name:"table_name",index_type:"type_name",key_names:"field_name[]",key_types:"type_name[]",type:"type_name"}},action:{base:"",fields:{account:"account_name",name:"action_name",authorization:"permission_level[]",data:"bytes"}},action_def:{base:"",fields:{name:"action_name",type:"type_name",ricardian_contract:"string"}},block_header:{base:"",fields:{previous:"checksum256",timestamp:"timestamp",transaction_mroot:"checksum256",action_mroot:"checksum256",block_mroot:"checksum256",producer:"account_name",schedule_version:"uint32",new_producers:"producer_schedule?"}},packed_transaction:{fields:{signatures:"signature[]",compression:"uint8",packed_context_free_data:"bytes",packed_trx:"bytes"}}}},{}],6:[function(t,n,e){n.exports={account_name:"name",action_name:"name",authority:{base:"",fields:{threshold:"uint32",keys:"key_weight[]",accounts:"permission_level_weight[]",waits:"wait_weight[]"}},bidname:{base:"",action:{name:"bidname",account:"eosio"},fields:{bidder:"account_name",newname:"account_name",bid:"asset"}},blockchain_parameters:{base:"",fields:{max_block_net_usage:"uint64",target_block_net_usage_pct:"uint32",max_transaction_net_usage:"uint32",base_per_transaction_net_usage:"uint32",net_usage_leeway:"uint32",context_free_discount_net_usage_num:"uint32",context_free_discount_net_usage_den:"uint32",max_block_cpu_usage:"uint32",target_block_cpu_usage_pct:"uint32",max_transaction_cpu_usage:"uint32",min_transaction_cpu_usage:"uint32",max_transaction_lifetime:"uint32",deferred_trx_expiration_window:"uint32",max_transaction_delay:"uint32",max_inline_action_size:"uint32",max_inline_action_depth:"uint16",max_authority_depth:"uint16"}},buyram:{base:"",action:{name:"buyram",account:"eosio"},fields:{payer:"account_name",receiver:"account_name",quant:"asset"}},buyrambytes:{base:"",action:{name:"buyrambytes",account:"eosio"},fields:{payer:"account_name",receiver:"account_name",bytes:"uint32"}},canceldelay:{base:"",action:{name:"canceldelay",account:"eosio"},fields:{canceling_auth:"permission_level",trx_id:"transaction_id_type"}},claimrewards:{base:"",action:{name:"claimrewards",account:"eosio"},fields:{owner:"account_name"}},connector:{base:"",fields:{balance:"asset",weight:"float64"}},delegatebw:{base:"",action:{name:"delegatebw",account:"eosio"},fields:{from:"account_name",receiver:"account_name",stake_net_quantity:"asset",stake_cpu_quantity:"asset",transfer:"bool"}},self_delegated_bandwidth:{base:"",fields:{from:"account_name",to:"account_name",net_weight:"asset",cpu_weight:"asset"}},deleteauth:{base:"",action:{name:"deleteauth",account:"eosio"},fields:{account:"account_name",permission:"permission_name"}},eosio_global_state:{base:"blockchain_parameters",fields:{max_ram_size:"uint64",total_ram_bytes_reserved:"uint64",total_ram_stake:"int64",last_producer_schedule_update:"block_timestamp_type",last_pervote_bucket_fill:"uint64",pervote_bucket:"int64",perblock_bucket:"int64",total_unpaid_blocks:"uint32",total_activated_stake:"int64",thresh_activated_stake_time:"uint64",last_producer_schedule_size:"uint16",total_producer_vote_weight:"float64",last_name_close:"block_timestamp_type"}},exchange_state:{base:"",fields:{supply:"asset",base:"connector",quote:"connector"}},key_weight:{base:"",fields:{key:"public_key",weight:"weight_type"}},linkauth:{base:"",action:{name:"linkauth",account:"eosio"},fields:{account:"account_name",code:"account_name",type:"action_name",requirement:"permission_name"}},newaccount:{base:"",action:{name:"newaccount",account:"eosio"},fields:{creator:"account_name",name:"account_name",owner:"authority",active:"authority"}},onerror:{base:"",action:{name:"onerror",account:"eosio"},fields:{sender_id:"uint128",sent_trx:"bytes"}},permission_level:{base:"",fields:{actor:"account_name",permission:"permission_name"}},permission_level_weight:{base:"",fields:{permission:"permission_level",weight:"weight_type"}},permission_name:"name",producer_info:{base:"",fields:{owner:"account_name",total_votes:"float64",producer_key:"public_key",is_active:"bool",url:"string",unpaid_blocks:"uint32",last_claim_time:"uint64",location:"uint16"}},producer_key:{base:"",fields:{producer_name:"account_name",block_signing_key:"public_key"}},refund:{base:"",action:{name:"refund",account:"eosio"},fields:{owner:"account_name"}},refund_request:{base:"",fields:{owner:"account_name",request_time:"time_point_sec",net_amount:"asset",cpu_amount:"asset"}},regproducer:{base:"",action:{name:"regproducer",account:"eosio"},fields:{producer:"account_name",producer_key:"public_key",url:"string",location:"uint16"}},regproxy:{base:"",action:{name:"regproxy",account:"eosio"},fields:{proxy:"account_name",isproxy:"bool"}},require_auth:{base:"",action:{name:"reqauth",account:"eosio"},fields:{from:"account_name"}},rmvproducer:{base:"",action:{name:"rmvproducer",account:"eosio"},fields:{producer:"account_name"}},sellram:{base:"",action:{name:"sellram",account:"eosio"},fields:{account:"account_name",bytes:"uint64"}},set_account_limits:{base:"",action:{name:"setalimits",account:"eosio"},fields:{account:"account_name",ram_bytes:"int64",net_weight:"int64",cpu_weight:"int64"}},set_global_limits:{base:"",action:{name:"setglimits",account:"eosio"},fields:{cpu_usec_per_period:"int64"}},set_producers:{base:"",action:{name:"setprods",account:"eosio"},fields:{schedule:"producer_key[]"}},setabi:{base:"",action:{name:"setabi",account:"eosio"},fields:{account:"account_name",abi:"bytes"}},setcode:{base:"",action:{name:"setcode",account:"eosio"},fields:{account:"account_name",vmtype:"uint8",vmversion:"uint8",code:"bytes"}},setparams:{base:"",action:{name:"setparams",account:"eosio"},fields:{params:"blockchain_parameters"}},setpriv:{base:"",action:{name:"setpriv",account:"eosio"},fields:{account:"account_name",is_priv:"int8"}},setram:{base:"",action:{name:"setram",account:"eosio"},fields:{max_ram_size:"uint64"}},total_resources:{base:"",fields:{owner:"account_name",net_weight:"asset",cpu_weight:"asset",ram_bytes:"uint64"}},transaction_id_type:"checksum256",undelegatebw:{base:"",action:{name:"undelegatebw",account:"eosio"},fields:{from:"account_name",receiver:"account_name",unstake_net_quantity:"asset",unstake_cpu_quantity:"asset"}},unlinkauth:{base:"",action:{name:"unlinkauth",account:"eosio"},fields:{account:"account_name",code:"account_name",type:"action_name"}},unregprod:{base:"",action:{name:"unregprod",account:"eosio"},fields:{producer:"account_name"}},updateauth:{base:"",action:{name:"updateauth",account:"eosio"},fields:{account:"account_name",permission:"permission_name",parent:"permission_name",auth:"authority"}},user_resources:{base:"",fields:{owner:"account_name",net_weight:"asset",cpu_weight:"asset",ram_bytes:"uint64"}},voteproducer:{base:"",action:{name:"voteproducer",account:"eosio"},fields:{voter:"account_name",proxy:"account_name",producers:"account_name[]"}},voter_info:{base:"",fields:{owner:"account_name",proxy:"account_name",producers:"account_name[]",staked:"int64",last_vote_weight:"float64",proxied_vote_weight:"float64",is_proxy:"bool",deferred_trx_id:"uint32",last_unstake_time:"time_point_sec",unstaking:"asset"}},wait_weight:{base:"",fields:{wait_sec:"uint32",weight:"weight_type"}},weight_type:"uint16"}},{}],7:[function(t,n,e){n.exports={account:{base:"",fields:{balance:"asset"}},account_name:"name",create:{base:"",action:{name:"create",account:"eosio.token"},fields:{issuer:"account_name",maximum_supply:"asset"}},currency_stats:{base:"",fields:{supply:"asset",max_supply:"asset",issuer:"account_name"}},issue:{base:"",action:{name:"issue",account:"eosio.token"},fields:{to:"account_name",quantity:"asset",memo:"string"}},transfer:{base:"",action:{name:"transfer",account:"eosio.token"},fields:{from:"account_name",to:"account_name",quantity:"asset",memo:"string"}}}},{}],8:[function(t,n,e){"use strict";var l=Object.assign({},t("./chain_types.json"),t("./eosio_system.json"),t("./eosio_token.json"));n.exports=l},{"./chain_types.json":5,"./eosio_system.json":6,"./eosio_token.json":7}],9:[function(t,n,e){(function(e){"use strict";var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,n){var e=[],l=!0,r=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(l=(i=u.next()).done)&&(e.push(i.value),!n||e.length!==n);l=!0);}catch(t){r=!0,o=t}finally{try{!l&&u.return&&u.return()}finally{if(r)throw o}}return e}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=t("eosjs-ecc"),i=o.Signature,u=o.PublicKey,a=t("fcbuffer"),s=t("bytebuffer"),c=t("assert"),f={schema:t("./schema")},d=t("./format"),h=d.encodeName,p=d.decodeName,m=d.UDecimalPad,g=d.UDecimalImply,v=d.UDecimalUnimply,b=d.joinAssetString,_=d.parseExtendedAsset;n.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],e=function(n,e){if(new Set(["eosio","eosio.token"]).has(e))return c[n];var l=t.abiCache.abi(e),r=l.structs[n];if(null!=r)return r;var o=!0,i=!1,u=void 0;try{for(var a,s=l.abi.actions[Symbol.iterator]();!(o=(a=s.next()).done);o=!0){var f=a.value;if(f.name===n){var d=l.structs[f.type];if(null!=d)return d}}}catch(t){i=!0,u=t}finally{try{!o&&s.return&&s.return()}finally{if(i)throw u}}throw new Error("Missing ABI struct or action: "+n)},l=null==t.forceActionDataHex||t.forceActionDataHex,r=Object.assign({},D,M(e),I(t),j(e,l),t.override),o=t.assetCache,i=Object.assign({},{name:function(){return[y]},public_key:function(){return[w(E)]},symbol:function(){return[A(o)]},extended_symbol:function(){return[x(o)]},asset:function(){return[F(o)]},extended_asset:function(){return[k(o)]},signature:function(){return[w(B)]}},t.customTypes);(t=Object.assign({override:r},{customTypes:i},t)).sort=Object.assign({},t.sort),t.sort["action.authorization"]=!0,t.sort["signed_transaction.signature"]=!0,t.sort["authority.accounts"]=!0,t.sort["authority.keys"]=!0;var u=Object.assign({},f.schema,n),s=a(u,t),c=s.structs,d=s.types,h=s.errors,p=s.fromBuffer,m=s.toBuffer;if(0!==h.length)throw new Error(JSON.stringify(h,null,4));return{structs:c,types:d,fromBuffer:p,toBuffer:m}};var y=function(t){return{fromByteBuffer:function(t){return p(t.readUint64(),!1)},appendByteBuffer:function(t,n){t.writeUint64(h(n,!1))},fromObject:function(t){return t},toObject:function(n){return t.defaults&&null==n?"":n}}},w=function(){for(var t=arguments.length,n=Array(t),e=0;e2&&void 0!==arguments[2]?arguments[2]:"";c.equal(void 0===t?"undefined":l(t),"string","expecting asset string, got "+(void 0===t?"undefined":l(t)));var r=C(n,t),o=r.precision,i=r.symbol,u=r.amount,a=r.contract;if("plain_asset"===e)return m(u,o)+" "+i;if("extended_asset"===e){var s=a?"@"+a:"";return m(u,o)+" "+i+s}if("full_asset"===e){var f=null!=o?o+",":"";return m(u,o)+" "+f+i}if("full_extended_asset"===e){var d=a?"@"+a:"",h=null!=o?o+",":"";return m(u,o)+" "+h+i+d}c(!1,"format should be: plain, extended, or full")}var F=function(t){return function(n,e,r){var o=e.int64(n),i=r.symbol(n);return{fromByteBuffer:function(n){var e=o.fromByteBuffer(n),l=i.fromByteBuffer(n),r=C(t,l),u=r.precision,a=r.symbol;return S(v(e,u)+" "+u+","+a,t,"full_asset")},appendByteBuffer:function(n,e){c.equal(void 0===e?"undefined":l(e),"string","expecting asset string, got "+(void 0===e?"undefined":l(e)));var r=C(t,e),u=r.amount,a=r.precision;c(null!=a,"Precision unknown for asset: "+e),o.appendByteBuffer(n,g(u,a)),i.appendByteBuffer(n,e)},fromObject:function(n){return S(n,t,"full_asset")},toObject:function(e){return n.defaults&&null==e?"0.0001 SYS":S(e,t,"plain_asset")}}}},k=function(t){return function(n,e,o){var i=o.asset(n),u=o.name(n);return{fromByteBuffer:function(t){var n=i.fromByteBuffer(t),e=u.fromByteBuffer(t);return _(n+"@"+e)},appendByteBuffer:function(t,n){c.equal(void 0===n?"undefined":l(n),"object","expecting extended_asset object, got "+(void 0===n?"undefined":l(n)));var e=b(n),o=e.split("@"),a=r(o,2)[1];c.equal(void 0===a?"undefined":l(a),"string","Invalid extended asset: "+n),i.appendByteBuffer(t,e),u.appendByteBuffer(t,a)},fromObject:function(t){var n={};"string"==typeof t?Object.assign(n,_(t)):"object"===(void 0===t?"undefined":l(t))?Object.assign(n,t):c(!1,"expecting extended_asset, got: "+(void 0===t?"undefined":l(t)));var e=n.amount,r=n.precision,o=n.symbol,i=n.contract;return c(null!=e,"missing amount"),c(null==r||"number"==typeof r,"precision is an optional number"),c(null!=o,"missing symbol"),c(null!=i,"missing contract"),{amount:e,precision:r,symbol:o,contract:i}},toObject:function(e){if(n.defaults&&null==e)return{amount:"1.0000",precision:4,symbol:"SYS",contract:"eosio.token"};c.equal(void 0===e?"undefined":l(e),"object","expecting extended_asset object");var r=C(t,b(e)),o=r.precision,i=r.symbol,u=r.contract;return{amount:m(r.amount,o),precision:o,symbol:i,contract:u}}}}},B=function(t,n){var e=n.fixed_bytes65(t);return{fromByteBuffer:function(t){var n=e.fromByteBuffer(t);return i.from(n).toString()},appendByteBuffer:function(t,n){var l=i.from(n);e.appendByteBuffer(t,l.toBuffer())},fromObject:function(t){return i.from(t).toString()},toObject:function(n){return t.defaults&&null==n?"SIG_K1_bas58signature..":i.from(n).toString()}}},D={"authority.fromObject":function(t){if(u.fromString(t))return{threshold:1,keys:[{key:t,weight:1}]};if("string"==typeof t){var n=t.split("@"),e=r(n,2),l=e[1];return{threshold:1,accounts:[{permission:{actor:e[0],permission:void 0===l?"active":l},weight:1}]}}}},M=function(t){return{"abi.fromObject":function(t){return"string"==typeof t?JSON.parse(t):e.isBuffer(t)?JSON.parse(t.toString()):void 0},"setabi.abi.appendByteBuffer":function(n){var e=n.object,l=n.b,r=t("abi_def","eosio"),o=new s(s.DEFAULT_CAPACITY,s.LITTLE_ENDIAN);r.appendByteBuffer(o,e.abi),l.writeVarint32(o.offset),l.append(o.copy(0,o.offset),"binary")}}},I=function(t){return{"setcode.code.fromObject":function(n){var l=n.object,r=n.result;try{var o=l.code.toString();if(/^\s*\(module/.test(o)){var i=t.binaryen;c(null!=i,'required: config.binaryen = require("binaryen")'),t.debug&&console.log("Assembling WASM..");var u=e.from(i.parseText(o).emitBinary());r.code=u}else r.code=l.code}catch(t){throw console.error(t,l.code),t}}}},j=function(t,n){return{"action.data.fromByteBuffer":function(n){var l=n.object,r=n.b,o=n.config,i=""==(l.name||"")?n.fields.data:t(l.name,l.account);if(i)r.readVarint32(),l.data=i.fromByteBuffer(r,o);else{var u=r.readVarint32(),a=r.copy(r.offset,r.offset+u);r.skip(u),l.data=e.from(a.toBinary(),"binary")}},"action.data.appendByteBuffer":function(n){var l=n.object,r=n.b,o=""==(l.name||"")?n.fields.data:t(l.name,l.account);if(o){var i=new s(s.DEFAULT_CAPACITY,s.LITTLE_ENDIAN);o.appendByteBuffer(i,l.data),r.writeVarint32(i.offset),r.append(i.copy(0,i.offset),"binary")}else{var u="string"==typeof l.data?new e(l.data,"hex"):l.data;if(!e.isBuffer(u))throw new TypeError("Unknown struct '"+l.name+"' for contract '"+l.account+"', locate this struct or provide serialized action.data");r.writeVarint32(u.length),r.append(u.toString("binary"),"binary")}},"action.data.fromObject":function(n){var r=n.object,o=n.result,i=r.data,u=r.name,s=""==(u||"")?n.fields.data:t(u,r.account);if(s)if("object"===(void 0===i?"undefined":l(i)))o.data=s.fromObject(i);else{if("string"!=typeof i)throw new TypeError("Expecting hex string or object in action.data");var c=new e(i,"hex");o.data=a.fromBuffer(s,c)}else o.data=i},"action.data.toObject":function(l){var r=l.object,o=l.result,i=l.config,u=r||{},a=u.data,c=u.name,f=""==(c||"")?l.fields.data:t(c,r.account);if(f){if(n){var d=new s(s.DEFAULT_CAPACITY,s.LITTLE_ENDIAN);return a&&f.appendByteBuffer(d,a),void(o.data=d.copy(0,d.offset).toString("hex"))}o.data=f.toObject(a,i)}else o.data=e.isBuffer(a)?a.toString("hex"):a}}}}).call(this,t("buffer").Buffer)},{"./format":3,"./schema":8,assert:11,buffer:40,bytebuffer:41,"eosjs-ecc":392,fcbuffer:401}],10:[function(t,n,e){(function(e){"use strict";var l=function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,n){var e=[],l=!0,r=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(l=(i=u.next()).done)&&(e.push(i.value),!n||e.length!==n);l=!0);}catch(t){r=!0,o=t}finally{try{!l&&u.return&&u.return()}finally{if(r)throw o}}return e}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=t("assert"),i=t("eosjs-ecc"),u=t("fcbuffer"),a=t("create-hash"),s=t("eosjs-api").processArgs,c=t("./structs"),f=t("./asset-cache");n.exports=function(t,n,v,b,_){if("string"!=typeof b.chainId)throw new TypeError("config.chainId is required");var y=function(t,n,v,b){var _=function(t,n){return function(){for(var t=arguments.length,e=Array(t),l=0;l1&&"function"==typeof e[e.length-1]&&(a=e.pop()),e.length>1&&"object"===r(e[e.length-1])&&(u=e.pop()),o.equal(e.length,1,"transaction args: contracts, transaction, [options], [callback]"),w=e[0],!i){t.next=67;break}for(o(!a,"callback with contracts are not supported"),o.equal("function",void 0===w?"undefined":r(w),"provide function callback following contracts array parameter"),A=[],x=!0,S=!1,F=void 0,t.prev=50,k=i[Symbol.iterator]();!(x=(B=k.next()).done);x=!0)A.push(y(B.value,n.transaction));t.next=58;break;case 54:t.prev=54,t.t1=t.catch(50),S=!0,F=t.t1;case 58:t.prev=58,t.prev=59,!x&&k.return&&k.return();case 61:if(t.prev=61,!S){t.next=64;break}throw F;case 64:return t.finish(61);case 65:return t.finish(58);case 66:return t.abrupt("return",Promise.all(A).then(function(t){var n={};return t.forEach(function(t,e){n[i[e]]=t}),E(w,u,s?n:n[i[0]])}));case 67:if("function"!=typeof w){t.next=69;break}return t.abrupt("return",E(w,u,n));case 69:if("object"!==(void 0===w?"undefined":r(w))){t.next=71;break}return t.abrupt("return",C(w,u,a));case 71:throw new Error("first transaction argument unrecognized",w);case 72:case"end":return t.stop()}},null,this,[[18,22,26,34],[27,,29,33],[50,54,58,66],[59,,61,65]])}};function y(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return v.abiCache.abiAsync(t).then(function(e){o(Array.isArray(e.abi.actions)&&e.abi.actions.length,"No actions");var l={};return l.transaction=n||_(e.structs,l),e.abi.actions.forEach(function(n){var r=n.name,o=n.type,i=g(e.schema,o);l[r]=w(o,i,l.transaction,t,r)}),l.fc=e,l})}function w(n,e,i){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"eosio.token",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n;return function(){for(var f=arguments.length,d=Array(f),h=0;hn.actor?1:t.actor0&&void 0!==arguments[0]?arguments[0]:"")+"\n"};i("CONTRACT"),i(l),i(),i("FUNCTION"),i(t),i();var u=void 0;if("eosio"===l||"eosio.token"===l)u=c(Object.assign({defaults:!0,network:e},r)).structs[t],i("PARAMETERS"),i(JSON.stringify(n,null,4)),i(),i("EXAMPLE"),i(JSON.stringify(u.toObject(),null,4));else{var a=r.abiCache.abi(l);i("PARAMETERS"),i(JSON.stringify(g(a.schema,t),null,4)),i(),u=a.structs[t],i("EXAMPLE"),i(JSON.stringify(u.toObject(),null,4))}if(null==u)throw TypeError("Unknown type: "+t);return o}(n,e,t,u,v))}}function E(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments[2];o.equal("function",void 0===t?"undefined":r(t),"trCallback"),o.equal("object",void 0===n?"undefined":r(n),"options"),o.equal("object",void 0===e?"undefined":r(e),"merges"),o(!Array.isArray(e),"merges should not be an array"),o.equal("function",r(C),"transaction");var i=[],u={},a=function(t){return function(){for(var n=arguments.length,e=Array(n),l=0;l0&&-1===t.findIndex(function(t){return"string"!=typeof t})},p=function(t){return"object"===(void 0===t?"undefined":r(t))?t:"boolean"==typeof t?{broadcast:t}:void 0},m=function(t,n){return function(e,l){e?(console.log("error",e),t(e)):Promise.resolve(n(l)).catch(function(n){t(n)})}};function g(t,n){var e=t[n],l=e.base,r=e.fields,o={};return l&&""!==l&&Object.assign(o,g(t,l)),Object.assign(o,r),o}}).call(this,t("buffer").Buffer)},{"./asset-cache":2,"./structs":9,assert:11,buffer:40,"create-hash":368,"eosjs-api":383,"eosjs-ecc":392,fcbuffer:401}],11:[function(t,e,l){(function(n){"use strict";function l(t,n){if(t===n)return 0;for(var e=t.length,l=n.length,r=0,o=Math.min(e,l);r=0;s--)if(c[s]!==f[s])return!1;for(s=c.length-1;s>=0;s--)if(!b(t[a=c[s]],n[a],e,l))return!1;return!0}(t,n,e,i))}return e?t===n:t==n}function _(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function y(t,n){if(!t||!n)return!1;if("[object RegExp]"==Object.prototype.toString.call(n))return n.test(t);try{if(t instanceof n)return!0}catch(t){}return!Error.isPrototypeOf(n)&&!0===n.call({},t)}function w(t,n,e,l){var r;if("function"!=typeof n)throw new TypeError('"block" argument must be a function');"string"==typeof e&&(l=e,e=null),r=function(t){var n;try{t()}catch(t){n=t}return n}(n),l=(e&&e.name?" ("+e.name+").":".")+(l?" "+l:"."),t&&!r&&g(r,e,"Missing expected exception"+l);var i="string"==typeof l,u=!t&&o.isError(r),a=!t&&r&&!e;if((u&&i&&y(r,e)||a)&&g(r,e,"Got unwanted exception"+l),t&&r&&e&&!y(r,e)||!t&&r)throw r}f.AssertionError=function(t){var n;this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=p(m((n=this).actual),128)+" "+n.operator+" "+p(m(n.expected),128),this.generatedMessage=!0);var e=t.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var l=new Error;if(l.stack){var r=l.stack,o=h(e),i=r.indexOf("\n"+o);if(i>=0){var u=r.indexOf("\n",i+1);r=r.substring(u+1)}this.stack=r}}},o.inherits(f.AssertionError,Error),f.fail=g,f.ok=v,f.equal=function(t,n,e){t!=n&&g(t,n,e,"==",f.equal)},f.notEqual=function(t,n,e){t==n&&g(t,n,e,"!=",f.notEqual)},f.deepEqual=function(t,n,e){b(t,n,!1)||g(t,n,e,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(t,n,e){b(t,n,!0)||g(t,n,e,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(t,n,e){b(t,n,!1)&&g(t,n,e,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function t(n,e,l){b(n,e,!0)&&g(n,e,l,"notDeepStrictEqual",t)},f.strictEqual=function(t,n,e){t!==n&&g(t,n,e,"===",f.strictEqual)},f.notStrictEqual=function(t,n,e){t===n&&g(t,n,e,"!==",f.notStrictEqual)},f.throws=function(t,n,e){w(!0,t,n,e)},f.doesNotThrow=function(t,n,e){w(!1,t,n,e)},f.ifError=function(t){if(t)throw t};var E=Object.keys||function(t){var n=[];for(var e in t)i.call(t,e)&&n.push(e);return n}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":451}],12:[function(t,e,l){(function(n){"use strict";if(t("core-js/shim"),t("regenerator-runtime/runtime"),t("core-js/fn/regexp/escape"),n._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");n._babelPolyfill=!0;var e="defineProperty";function l(t,n,l){t[n]||Object[e](t,n,{writable:!0,configurable:!0,value:l})}l(String.prototype,"padLeft","".padStart),l(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&l(Array,t,Function.call.bind([][t]))})}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/fn/regexp/escape":44,"core-js/shim":366,"regenerator-runtime/runtime":13}],13:[function(t,e,l){(function(t){!function(t){"use strict";var n,l=Object.prototype,r=l.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag",s="object"==typeof e,c=t.regeneratorRuntime;if(c)s&&(e.exports=c);else{(c=t.regeneratorRuntime=s?e.exports:{}).wrap=y;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",m={},g={};g[i]=function(){return this};var v=Object.getPrototypeOf,b=v&&v(v(M([])));b&&b!==l&&r.call(b,i)&&(g=b);var _=A.prototype=E.prototype=Object.create(g);C.prototype=_.constructor=A,A.constructor=C,A[a]=C.displayName="GeneratorFunction",c.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===C||"GeneratorFunction"===(n.displayName||n.name))},c.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(_),t},c.awrap=function(t){return{__await:t}},x(S.prototype),S.prototype[u]=function(){return this},c.AsyncIterator=S,c.async=function(t,n,e,l){var r=new S(y(t,n,e,l));return c.isGeneratorFunction(n)?r:r.next().then(function(t){return t.done?t.value:r.next()})},x(_),_[a]="Generator",_[i]=function(){return this},_.toString=function(){return"[object Generator]"},c.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var l=n.pop();if(l in t)return e.value=l,e.done=!1,e}return e.done=!0,e}},c.values=M,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(B),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function l(l,r){return u.type="throw",u.arg=t,e.next=l,r&&(e.method="next",e.arg=n),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return l("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(a&&s){if(this.prev=0;--e){var l=this.tryEntries[e];if(l.tryLoc<=this.prev&&r.call(l,"finallyLoc")&&this.prev=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),B(e),m}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var l=e.completion;if("throw"===l.type){var r=l.arg;B(e)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,l){return this.delegate={iterator:M(t),resultName:e,nextLoc:l},"next"===this.method&&(this.arg=n),m}}}function y(t,n,e,l){var r=Object.create((n&&n.prototype instanceof E?n:E).prototype),o=new D(l||[]);return r._invoke=function(t,n,e){var l=f;return function(r,o){if(l===h)throw new Error("Generator is already running");if(l===p){if("throw"===r)throw o;return I()}for(e.method=r,e.arg=o;;){var i=e.delegate;if(i){var u=F(i,e);if(u){if(u===m)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(l===f)throw l=p,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);l=h;var a=w(t,n,e);if("normal"===a.type){if(l=e.done?p:d,a.arg===m)continue;return{value:a.arg,done:e.done}}"throw"===a.type&&(l=p,e.method="throw",e.arg=a.arg)}}}(t,e,o),r}function w(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}function E(){}function C(){}function A(){}function x(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function S(n){function e(t,l,o,i){var u=w(n[t],n,l);if("throw"!==u.type){var a=u.arg,s=a.value;return s&&"object"==typeof s&&r.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,o,i)},function(t){e("throw",t,o,i)}):Promise.resolve(s).then(function(t){a.value=t,o(a)},i)}i(u.arg)}var l;"object"==typeof t.process&&t.process.domain&&(e=t.process.domain.bind(e)),this._invoke=function(t,n){function r(){return new Promise(function(l,r){e(t,n,l,r)})}return l=l?l.then(r,r):r()}}function F(t,e){var l=t.iterator[e.method];if(l===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,F(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=w(l,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,m;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function k(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function B(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function M(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var l=-1,o=function e(){for(;++l>=8;for(;s>0;)o.push(255&s),s>>=8}for(var c=0;t[c]===r&&c0;)l.push(i%e),i=i/e|0}for(var u="",a=0;0===n[a]&&a=0;--s)u+=t[l[s]];return u},decodeUnsafe:u,decode:function(t){var n=u(t);if(n)return n;throw new Error("Non-base"+e+" character")}}}},{"safe-buffer":436}],15:[function(t,n,e){"use strict";e.byteLength=function(t){return 3*t.length/4-s(t)},e.toByteArray=function(t){var n,e,l,i,u,a=t.length;i=s(t),u=new o(3*a/4-i),e=i>0?a-4:a;var c=0;for(n=0;n>16&255,u[c++]=l>>8&255,u[c++]=255&l;return 2===i?(l=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[c++]=255&l):1===i&&(l=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[c++]=l>>8&255,u[c++]=255&l),u},e.fromByteArray=function(t){for(var n,e=t.length,r=e%3,o="",i=[],u=0,a=e-r;ua?a:u+16383));return 1===r?(o+=l[(n=t[e-1])>>2],o+=l[n<<4&63],o+="=="):2===r&&(o+=l[(n=(t[e-2]<<8)+t[e-1])>>10],o+=l[n>>4&63],o+=l[n<<2&63],o+="="),i.push(o),i.join("")};for(var l=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=i.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[n-2]?2:"="===t[n-1]?1:0}function c(t,n,e){for(var r,o=[],i=n;i>18&63]+l[r>>12&63]+l[r>>6&63]+l[63&r]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},{}],16:[function(t,n,e){function l(t,n,e){if(!(this instanceof l))return new l(t,n,e);null!=t&&("number"==typeof t?this.fromNumber(t,n,e):this.fromString(t,null==n&&"string"!=typeof t?256:n))}var r=l.prototype;r.__bigi=t("../package.json").version,l.isBigInteger=function(t,n){return t&&t.__bigi&&(!n||t.__bigi===r.__bigi)},l.prototype.am=function(t,n,e,l,r,o){for(;--o>=0;){var i=n*this[t++]+e[l]+r;r=Math.floor(i/67108864),e[l++]=67108863&i}return r},l.prototype.DB=26,l.prototype.DM=67108863;var o=l.prototype.DV=1<<26;l.prototype.FV=Math.pow(2,52),l.prototype.F1=26,l.prototype.F2=0;var i,u,a="0123456789abcdefghijklmnopqrstuvwxyz",s=new Array;for(i="0".charCodeAt(0),u=0;u<=9;++u)s[i++]=u;for(i="a".charCodeAt(0),u=10;u<36;++u)s[i++]=u;for(i="A".charCodeAt(0),u=10;u<36;++u)s[i++]=u;function c(t){return a.charAt(t)}function f(t,n){var e=s[t.charCodeAt(n)];return null==e?-1:e}function d(t){var n=new l;return n.fromInt(t),n}function h(t){var n,e=1;return 0!=(n=t>>>16)&&(t=n,e+=16),0!=(n=t>>8)&&(t=n,e+=8),0!=(n=t>>4)&&(t=n,e+=4),0!=(n=t>>2)&&(t=n,e+=2),0!=(n=t>>1)&&(t=n,e+=1),e}function p(t){this.m=t}function m(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,n+=16),0==(255&t)&&(t>>=8,n+=8),0==(15&t)&&(t>>=4,n+=4),0==(3&t)&&(t>>=2,n+=2),0==(1&t)&&++n,n}function w(t){for(var n=0;0!=t;)t&=t-1,++n;return n}function E(){}function C(t){return t}function A(t){this.r2=new l,this.q3=new l,l.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}p.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},p.prototype.revert=function(t){return t},p.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},p.prototype.mulTo=function(t,n,e){t.multiplyTo(n,e),this.reduce(e)},p.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},m.prototype.convert=function(t){var n=new l;return t.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),t.s<0&&n.compareTo(l.ZERO)>0&&this.m.subTo(n,n),n},m.prototype.revert=function(t){var n=new l;return t.copyTo(n),this.reduce(n),n},m.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var n=0;n>15)*this.mpl&this.um)<<15)&t.DM;for(t[e=n+this.m.t]+=this.m.am(0,l,t,n,0,this.m.t);t[e]>=t.DV;)t[e]-=t.DV,t[++e]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},m.prototype.mulTo=function(t,n,e){t.multiplyTo(n,e),this.reduce(e)},m.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},r.copyTo=function(t){for(var n=this.t-1;n>=0;--n)t[n]=this[n];t.t=this.t,t.s=this.s},r.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+o:this.t=0},r.fromString=function(t,n){var e;if(16==n)e=4;else if(8==n)e=3;else if(256==n)e=8;else if(2==n)e=1;else if(32==n)e=5;else{if(4!=n)return void this.fromRadix(t,n);e=2}this.t=0,this.s=0;for(var r=t.length,o=!1,i=0;--r>=0;){var u=8==e?255&t[r]:f(t,r);u<0?"-"==t.charAt(r)&&(o=!0):(o=!1,0==i?this[this.t++]=u:i+e>this.DB?(this[this.t-1]|=(u&(1<>this.DB-i):this[this.t-1]|=u<=this.DB&&(i-=this.DB))}8==e&&0!=(128&t[0])&&(this.s=-1,i>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},r.dlShiftTo=function(t,n){var e;for(e=this.t-1;e>=0;--e)n[e+t]=this[e];for(e=t-1;e>=0;--e)n[e]=0;n.t=this.t+t,n.s=this.s},r.drShiftTo=function(t,n){for(var e=t;e=0;--e)n[e+i+1]=this[e]>>r|u,u=(this[e]&o)<=0;--e)n[e]=0;n[i]=u,n.t=this.t+i+1,n.s=this.s,n.clamp()},r.rShiftTo=function(t,n){n.s=this.s;var e=Math.floor(t/this.DB);if(e>=this.t)n.t=0;else{var l=t%this.DB,r=this.DB-l,o=(1<>l;for(var i=e+1;i>l;l>0&&(n[this.t-e-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;l+=this.s}else{for(l+=this.s;e>=this.DB;l-=t.s}n.s=l<0?-1:0,l<-1?n[e++]=this.DV+l:l>0&&(n[e++]=l),n.t=e,n.clamp()},r.multiplyTo=function(t,n){var e=this.abs(),r=t.abs(),o=e.t;for(n.t=o+r.t;--o>=0;)n[o]=0;for(o=0;o=0;)t[e]=0;for(e=0;e=n.DV&&(t[e+n.t]-=n.DV,t[e+n.t+1]=1)}t.t>0&&(t[t.t-1]+=n.am(e,n[e],t,2*e,0,1)),t.s=0,t.clamp()},r.divRemTo=function(t,n,e){var r=t.abs();if(!(r.t<=0)){var o=this.abs();if(o.t0?(r.lShiftTo(s,i),o.lShiftTo(s,e)):(r.copyTo(i),o.copyTo(e));var c=i.t,f=i[c-1];if(0!=f){var d=f*(1<1?i[c-2]>>this.F2:0),p=this.FV/d,m=(1<=0&&(e[e.t++]=1,e.subTo(_,e)),l.ONE.dlShiftTo(c,_),_.subTo(i,i);i.t=0;){var y=e[--v]==f?this.DM:Math.floor(e[v]*p+(e[v-1]+g)*m);if((e[v]+=i.am(0,y,e,b,0,c))0&&e.rShiftTo(s,e),u<0&&l.ZERO.subTo(e,e)}}},r.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var n=3&t;return(n=(n=(n=(n=n*(2-(15&t)*n)&15)*(2-(255&t)*n)&255)*(2-((65535&t)*n&65535))&65535)*(2-t*n%this.DV)%this.DV)>0?this.DV-n:-n},r.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},r.exp=function(t,n){if(t>4294967295||t<1)return l.ONE;var e=new l,r=new l,o=n.convert(this),i=h(t)-1;for(o.copyTo(e);--i>=0;)if(n.sqrTo(e,r),(t&1<0)n.mulTo(r,o,e);else{var u=e;e=r,r=u}return n.revert(e)},r.toString=function(t){var n;if(this.s<0)return"-"+this.negate().toString(t);if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return this.toRadix(t);n=2}var e,l=(1<0)for(u>u)>0&&(r=!0,o=c(e));i>=0;)u>(u+=this.DB-n)):(e=this[i]>>(u-=n)&l,u<=0&&(u+=this.DB,--i)),e>0&&(r=!0),r&&(o+=c(e));return r?o:"0"},r.negate=function(){var t=new l;return l.ZERO.subTo(this,t),t},r.abs=function(){return this.s<0?this.negate():this},r.compareTo=function(t){var n=this.s-t.s;if(0!=n)return n;var e=this.t;if(0!=(n=e-t.t))return this.s<0?-n:n;for(;--e>=0;)if(0!=(n=this[e]-t[e]))return n;return 0},r.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+h(this[this.t-1]^this.s&this.DM)},r.byteLength=function(){return this.bitLength()>>3},r.mod=function(t){var n=new l;return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(l.ZERO)>0&&t.subTo(n,n),n},r.modPowInt=function(t,n){var e;return e=t<256||n.isEven()?new p(n):new m(n),this.exp(t,e)},E.prototype.convert=C,E.prototype.revert=C,E.prototype.mulTo=function(t,n,e){t.multiplyTo(n,e)},E.prototype.sqrTo=function(t,n){t.squareTo(n)},A.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var n=new l;return t.copyTo(n),this.reduce(n),n},A.prototype.revert=function(t){return t},A.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},A.prototype.mulTo=function(t,n,e){t.multiplyTo(n,e),this.reduce(e)},A.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)};var x=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],S=(1<<26)/x[x.length-1];r.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var n=this.chunkSize(t),e=Math.pow(t,n),r=d(e),o=new l,i=new l,u="";for(this.divRemTo(r,o,i);o.signum()>0;)u=(e+i.intValue()).toString(t).substr(1)+u,o.divRemTo(r,o,i);return i.intValue().toString(t)+u},r.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var e=this.chunkSize(n),r=Math.pow(n,e),o=!1,i=0,u=0,a=0;a=e&&(this.dMultiply(r),this.dAddOffset(u,0),i=0,u=0))}i>0&&(this.dMultiply(Math.pow(n,i)),this.dAddOffset(u,0)),o&&l.ZERO.subTo(this,this)},r.fromNumber=function(t,n,e){if("number"==typeof n)if(t<2)this.fromInt(1);else for(this.fromNumber(t,e),this.testBit(t-1)||this.bitwiseTo(l.ONE.shiftLeft(t-1),v,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(l.ONE.shiftLeft(t-1),this);else{var r=new Array,o=7&t;r.length=1+(t>>3),n.nextBytes(r),o>0?r[0]&=(1<>=this.DB;if(t.t>=this.DB;l+=this.s}else{for(l+=this.s;e>=this.DB;l+=t.s}n.s=l<0?-1:0,l>0?n[e++]=l:l<-1&&(n[e++]=this.DV+l),n.t=e,n.clamp()},r.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.dAddOffset=function(t,n){if(0!=t){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=t;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},r.multiplyLowerTo=function(t,n,e){var l,r=Math.min(this.t+t.t,n);for(e.s=0,e.t=r;r>0;)e[--r]=0;for(l=e.t-this.t;r=0;)e[l]=0;for(l=Math.max(n-this.t,0);l0)if(0==n)e=this[0]%t;else for(var l=this.t-1;l>=0;--l)e=(n*e+this[l])%t;return e},r.millerRabin=function(t){var n=this.subtract(l.ONE),e=n.getLowestSetBit();if(e<=0)return!1;var r=n.shiftRight(e);(t=t+1>>1)>x.length&&(t=x.length);for(var o=new l(null),i=[],u=0;u>24},r.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},r.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},r.toByteArray=function(){var t=this.t,n=new Array;n[0]=this.s;var e,l=this.DB-t*this.DB%8,r=0;if(t-- >0)for(l>l)!=(this.s&this.DM)>>l&&(n[r++]=e|this.s<=0;)l<8?(e=(this[t]&(1<>(l+=this.DB-8)):(e=this[t]>>(l-=8)&255,l<=0&&(l+=this.DB,--t)),0!=(128&e)&&(e|=-256),0===r&&(128&this.s)!=(128&e)&&++r,(r>0||e!=this.s)&&(n[r++]=e);return n},r.equals=function(t){return 0==this.compareTo(t)},r.min=function(t){return this.compareTo(t)<0?this:t},r.max=function(t){return this.compareTo(t)>0?this:t},r.and=function(t){var n=new l;return this.bitwiseTo(t,g,n),n},r.or=function(t){var n=new l;return this.bitwiseTo(t,v,n),n},r.xor=function(t){var n=new l;return this.bitwiseTo(t,b,n),n},r.andNot=function(t){var n=new l;return this.bitwiseTo(t,_,n),n},r.not=function(){for(var t=new l,n=0;n=this.t?0!=this.s:0!=(this[n]&1<1){var f=new l;for(r.sqrTo(u[1],f);a<=c;)u[a]=new l,r.mulTo(f,u[a-2],u[a]),a+=2}var g,v,b=t.t-1,_=!0,y=new l;for(o=h(t[b])-1;b>=0;){for(o>=s?g=t[b]>>o-s&c:(g=(t[b]&(1<0&&(g|=t[b-1]>>this.DB+o-s)),a=e;0==(1&g);)g>>=1,--a;if((o-=a)<0&&(o+=this.DB,--b),_)u[g].copyTo(i),_=!1;else{for(;a>1;)r.sqrTo(i,y),r.sqrTo(y,i),a-=2;a>0?r.sqrTo(i,y):(v=i,i=y,y=v),r.mulTo(y,u[g],i)}for(;b>=0&&0==(t[b]&1<=0?(e.subTo(r,e),n&&o.subTo(u,o),i.subTo(a,i)):(r.subTo(e,r),n&&u.subTo(o,u),a.subTo(i,a))}if(0!=r.compareTo(l.ONE))return l.ZERO;for(;a.compareTo(t)>=0;)a.subTo(t,a);for(;a.signum()<0;)a.addTo(t,a);return a},r.pow=function(t){return this.exp(t,new E)},r.gcd=function(t){var n=this.s<0?this.negate():this.clone(),e=t.s<0?t.negate():t.clone();if(n.compareTo(e)<0){var l=n;n=e,e=l}var r=n.getLowestSetBit(),o=e.getLowestSetBit();if(o<0)return n;for(r0&&(n.rShiftTo(o,n),e.rShiftTo(o,e));n.signum()>0;)(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),(r=e.getLowestSetBit())>0&&e.rShiftTo(r,e),n.compareTo(e)>=0?(n.subTo(e,n),n.rShiftTo(1,n)):(e.subTo(n,e),e.rShiftTo(1,e));return o>0&&e.lShiftTo(o,e),e},r.isProbablePrime=function(t){var n,e=this.abs();if(1==e.t&&e[0]<=x[x.length-1]){for(n=0;n=49&&i<=54?i-49+10:i>=17&&i<=22?i-17+10:15&i}return l}function a(t,n,e,l){for(var r=0,o=Math.min(t.length,e),i=n;i=49?u-49+10:u>=17?u-17+10:u}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,n){return t.cmp(n)>0?t:n},o.min=function(t,n){return t.cmp(n)<0?t:n},o.prototype._init=function(t,n,e){if("number"==typeof t)return this._initNumber(t,n,e);if("object"==typeof t)return this._initArray(t,n,e);"hex"===n&&(n=16),l(n===(0|n)&&n>=2&&n<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===n?this._parseHex(t,r):this._parseBase(t,n,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),n,e)},o.prototype._initNumber=function(t,n,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(l(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),n,e)},o.prototype._initArray=function(t,n,e){if(l("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r=0;r-=3)this.words[o]|=(i=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===e)for(r=0,o=0;r>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this.strip()},o.prototype._parseHex=function(t,n){this.length=Math.ceil((t.length-n)/6),this.words=new Array(this.length);for(var e=0;e=n;e-=6)r=u(t,e,e+6),this.words[l]|=r<>>26-o&4194303,(o+=24)>=26&&(o-=26,l++);e+6!==n&&(r=u(t,n,e+6),this.words[l]|=r<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,n,e){this.words=[0],this.length=1;for(var l=0,r=1;r<=67108863;r*=n)l++;r=r/n|0;for(var o=t.length-e,i=o%--l,u=Math.min(o,o-i)+e,s=0,c=e;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var s=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,n,e){e.negative=n.negative^t.negative;var l=t.length+n.length|0;e.length=l,l=l-1|0;var r=0|t.words[0],o=0|n.words[0],i=r*o,u=i/67108864|0;e.words[0]=67108863&i;for(var a=1;a>>26,c=67108863&u,f=Math.min(a,n.length-1),d=Math.max(0,a-t.length+1);d<=f;d++)s+=(i=(r=0|t.words[a-d|0])*(o=0|n.words[d])+c)/67108864|0,c=67108863&i;e.words[a]=0|c,u=0|s}return 0!==u?e.words[a]=0|u:e.length--,e.strip()}o.prototype.toString=function(t,n){var e;if(t=t||10,n=0|n||1,16===t||"hex"===t){e="";for(var r=0,o=0,i=0;i>>24-r&16777215)||i!==this.length-1?s[6-a.length]+a+e:a+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%n!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(t===(0|t)&&t>=2&&t<=36){var d=c[t],h=f[t];e="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(t);e=(p=p.idivn(h)).isZero()?m+e:s[d-m.length]+m+e}for(this.isZero()&&(e="0"+e);e.length%n!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}l(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,n){return l(void 0!==i),this.toArrayLike(i,t,n)},o.prototype.toArray=function(t,n){return this.toArrayLike(Array,t,n)},o.prototype.toArrayLike=function(t,n,e){var r=this.byteLength(),o=e||Math.max(1,r);l(r<=o,"byte array longer than desired length"),l(o>0,"Requested array length <= 0"),this.strip();var i,u,a="le"===n,s=new t(o),c=this.clone();if(a){for(u=0;!c.isZero();u++)i=c.andln(255),c.iushrn(8),s[u]=i;for(;u=4096&&(e+=13,n>>>=13),n>=64&&(e+=7,n>>>=7),n>=8&&(e+=4,n>>>=4),n>=2&&(e+=2,n>>>=2),e+n},o.prototype._zeroBits=function(t){if(0===t)return 26;var n=t,e=0;return 0==(8191&n)&&(e+=13,n>>>=13),0==(127&n)&&(e+=7,n>>>=7),0==(15&n)&&(e+=4,n>>>=4),0==(3&n)&&(e+=2,n>>>=2),0==(1&n)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,n=0;nt.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var n;n=this.length>t.length?t:this;for(var e=0;et.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var n,e;this.length>t.length?(n=this,e=t):(n=t,e=this);for(var l=0;lt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){l("number"==typeof t&&t>=0);var n=0|Math.ceil(t/26),e=t%26;this._expand(n),e>0&&n--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-e),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,n){l("number"==typeof t&&t>=0);var e=t/26|0,r=t%26;return this._expand(e+1),this.words[e]=n?this.words[e]|1<t.length?(e=this,l=t):(e=t,l=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=e.length,0!==r)this.words[this.length]=r,this.length++;else if(e!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var e,l,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(e=this,l=t):(e=t,l=this);for(var o=0,i=0;i>26,this.words[i]=67108863&n;for(;0!==o&&i>26,this.words[i]=67108863&n;if(0===o&&i>>13,h=0|i[1],p=8191&h,m=h>>>13,g=0|i[2],v=8191&g,b=g>>>13,_=0|i[3],y=8191&_,w=_>>>13,E=0|i[4],C=8191&E,A=E>>>13,x=0|i[5],S=8191&x,F=x>>>13,k=0|i[6],B=8191&k,D=k>>>13,M=0|i[7],I=8191&M,j=M>>>13,O=0|i[8],T=8191&O,R=O>>>13,N=0|i[9],P=8191&N,L=N>>>13,q=0|u[0],U=8191&q,V=q>>>13,z=0|u[1],H=8191&z,G=z>>>13,Z=0|u[2],K=8191&Z,W=Z>>>13,$=0|u[3],Y=8191&$,X=$>>>13,J=0|u[4],Q=8191&J,tt=J>>>13,nt=0|u[5],et=8191&nt,lt=nt>>>13,rt=0|u[6],ot=8191&rt,it=rt>>>13,ut=0|u[7],at=8191&ut,st=ut>>>13,ct=0|u[8],ft=8191&ct,dt=ct>>>13,ht=0|u[9],pt=8191&ht,mt=ht>>>13;e.negative=t.negative^n.negative,e.length=19;var gt=(s+(l=Math.imul(f,U))|0)+((8191&(r=(r=Math.imul(f,V))+Math.imul(d,U)|0))<<13)|0;s=((o=Math.imul(d,V))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,l=Math.imul(p,U),r=(r=Math.imul(p,V))+Math.imul(m,U)|0,o=Math.imul(m,V);var vt=(s+(l=l+Math.imul(f,H)|0)|0)+((8191&(r=(r=r+Math.imul(f,G)|0)+Math.imul(d,H)|0))<<13)|0;s=((o=o+Math.imul(d,G)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,l=Math.imul(v,U),r=(r=Math.imul(v,V))+Math.imul(b,U)|0,o=Math.imul(b,V),l=l+Math.imul(p,H)|0,r=(r=r+Math.imul(p,G)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,G)|0;var bt=(s+(l=l+Math.imul(f,K)|0)|0)+((8191&(r=(r=r+Math.imul(f,W)|0)+Math.imul(d,K)|0))<<13)|0;s=((o=o+Math.imul(d,W)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,l=Math.imul(y,U),r=(r=Math.imul(y,V))+Math.imul(w,U)|0,o=Math.imul(w,V),l=l+Math.imul(v,H)|0,r=(r=r+Math.imul(v,G)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,G)|0,l=l+Math.imul(p,K)|0,r=(r=r+Math.imul(p,W)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,W)|0;var _t=(s+(l=l+Math.imul(f,Y)|0)|0)+((8191&(r=(r=r+Math.imul(f,X)|0)+Math.imul(d,Y)|0))<<13)|0;s=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,l=Math.imul(C,U),r=(r=Math.imul(C,V))+Math.imul(A,U)|0,o=Math.imul(A,V),l=l+Math.imul(y,H)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,G)|0,l=l+Math.imul(v,K)|0,r=(r=r+Math.imul(v,W)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,W)|0,l=l+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,X)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,X)|0;var yt=(s+(l=l+Math.imul(f,Q)|0)|0)+((8191&(r=(r=r+Math.imul(f,tt)|0)+Math.imul(d,Q)|0))<<13)|0;s=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,l=Math.imul(S,U),r=(r=Math.imul(S,V))+Math.imul(F,U)|0,o=Math.imul(F,V),l=l+Math.imul(C,H)|0,r=(r=r+Math.imul(C,G)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,G)|0,l=l+Math.imul(y,K)|0,r=(r=r+Math.imul(y,W)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,W)|0,l=l+Math.imul(v,Y)|0,r=(r=r+Math.imul(v,X)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,X)|0,l=l+Math.imul(p,Q)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(s+(l=l+Math.imul(f,et)|0)|0)+((8191&(r=(r=r+Math.imul(f,lt)|0)+Math.imul(d,et)|0))<<13)|0;s=((o=o+Math.imul(d,lt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,l=Math.imul(B,U),r=(r=Math.imul(B,V))+Math.imul(D,U)|0,o=Math.imul(D,V),l=l+Math.imul(S,H)|0,r=(r=r+Math.imul(S,G)|0)+Math.imul(F,H)|0,o=o+Math.imul(F,G)|0,l=l+Math.imul(C,K)|0,r=(r=r+Math.imul(C,W)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,W)|0,l=l+Math.imul(y,Y)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,X)|0,l=l+Math.imul(v,Q)|0,r=(r=r+Math.imul(v,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,l=l+Math.imul(p,et)|0,r=(r=r+Math.imul(p,lt)|0)+Math.imul(m,et)|0,o=o+Math.imul(m,lt)|0;var Et=(s+(l=l+Math.imul(f,ot)|0)|0)+((8191&(r=(r=r+Math.imul(f,it)|0)+Math.imul(d,ot)|0))<<13)|0;s=((o=o+Math.imul(d,it)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,l=Math.imul(I,U),r=(r=Math.imul(I,V))+Math.imul(j,U)|0,o=Math.imul(j,V),l=l+Math.imul(B,H)|0,r=(r=r+Math.imul(B,G)|0)+Math.imul(D,H)|0,o=o+Math.imul(D,G)|0,l=l+Math.imul(S,K)|0,r=(r=r+Math.imul(S,W)|0)+Math.imul(F,K)|0,o=o+Math.imul(F,W)|0,l=l+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,X)|0,l=l+Math.imul(y,Q)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,l=l+Math.imul(v,et)|0,r=(r=r+Math.imul(v,lt)|0)+Math.imul(b,et)|0,o=o+Math.imul(b,lt)|0,l=l+Math.imul(p,ot)|0,r=(r=r+Math.imul(p,it)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,it)|0;var Ct=(s+(l=l+Math.imul(f,at)|0)|0)+((8191&(r=(r=r+Math.imul(f,st)|0)+Math.imul(d,at)|0))<<13)|0;s=((o=o+Math.imul(d,st)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,l=Math.imul(T,U),r=(r=Math.imul(T,V))+Math.imul(R,U)|0,o=Math.imul(R,V),l=l+Math.imul(I,H)|0,r=(r=r+Math.imul(I,G)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,G)|0,l=l+Math.imul(B,K)|0,r=(r=r+Math.imul(B,W)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,W)|0,l=l+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,X)|0)+Math.imul(F,Y)|0,o=o+Math.imul(F,X)|0,l=l+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,l=l+Math.imul(y,et)|0,r=(r=r+Math.imul(y,lt)|0)+Math.imul(w,et)|0,o=o+Math.imul(w,lt)|0,l=l+Math.imul(v,ot)|0,r=(r=r+Math.imul(v,it)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,it)|0,l=l+Math.imul(p,at)|0,r=(r=r+Math.imul(p,st)|0)+Math.imul(m,at)|0,o=o+Math.imul(m,st)|0;var At=(s+(l=l+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,dt)|0)+Math.imul(d,ft)|0))<<13)|0;s=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,l=Math.imul(P,U),r=(r=Math.imul(P,V))+Math.imul(L,U)|0,o=Math.imul(L,V),l=l+Math.imul(T,H)|0,r=(r=r+Math.imul(T,G)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,G)|0,l=l+Math.imul(I,K)|0,r=(r=r+Math.imul(I,W)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,W)|0,l=l+Math.imul(B,Y)|0,r=(r=r+Math.imul(B,X)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,X)|0,l=l+Math.imul(S,Q)|0,r=(r=r+Math.imul(S,tt)|0)+Math.imul(F,Q)|0,o=o+Math.imul(F,tt)|0,l=l+Math.imul(C,et)|0,r=(r=r+Math.imul(C,lt)|0)+Math.imul(A,et)|0,o=o+Math.imul(A,lt)|0,l=l+Math.imul(y,ot)|0,r=(r=r+Math.imul(y,it)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,it)|0,l=l+Math.imul(v,at)|0,r=(r=r+Math.imul(v,st)|0)+Math.imul(b,at)|0,o=o+Math.imul(b,st)|0,l=l+Math.imul(p,ft)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0;var xt=(s+(l=l+Math.imul(f,pt)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(d,pt)|0))<<13)|0;s=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,l=Math.imul(P,H),r=(r=Math.imul(P,G))+Math.imul(L,H)|0,o=Math.imul(L,G),l=l+Math.imul(T,K)|0,r=(r=r+Math.imul(T,W)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,W)|0,l=l+Math.imul(I,Y)|0,r=(r=r+Math.imul(I,X)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,X)|0,l=l+Math.imul(B,Q)|0,r=(r=r+Math.imul(B,tt)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,tt)|0,l=l+Math.imul(S,et)|0,r=(r=r+Math.imul(S,lt)|0)+Math.imul(F,et)|0,o=o+Math.imul(F,lt)|0,l=l+Math.imul(C,ot)|0,r=(r=r+Math.imul(C,it)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,it)|0,l=l+Math.imul(y,at)|0,r=(r=r+Math.imul(y,st)|0)+Math.imul(w,at)|0,o=o+Math.imul(w,st)|0,l=l+Math.imul(v,ft)|0,r=(r=r+Math.imul(v,dt)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0;var St=(s+(l=l+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;s=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,l=Math.imul(P,K),r=(r=Math.imul(P,W))+Math.imul(L,K)|0,o=Math.imul(L,W),l=l+Math.imul(T,Y)|0,r=(r=r+Math.imul(T,X)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,X)|0,l=l+Math.imul(I,Q)|0,r=(r=r+Math.imul(I,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,l=l+Math.imul(B,et)|0,r=(r=r+Math.imul(B,lt)|0)+Math.imul(D,et)|0,o=o+Math.imul(D,lt)|0,l=l+Math.imul(S,ot)|0,r=(r=r+Math.imul(S,it)|0)+Math.imul(F,ot)|0,o=o+Math.imul(F,it)|0,l=l+Math.imul(C,at)|0,r=(r=r+Math.imul(C,st)|0)+Math.imul(A,at)|0,o=o+Math.imul(A,st)|0,l=l+Math.imul(y,ft)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(w,ft)|0,o=o+Math.imul(w,dt)|0;var Ft=(s+(l=l+Math.imul(v,pt)|0)|0)+((8191&(r=(r=r+Math.imul(v,mt)|0)+Math.imul(b,pt)|0))<<13)|0;s=((o=o+Math.imul(b,mt)|0)+(r>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,l=Math.imul(P,Y),r=(r=Math.imul(P,X))+Math.imul(L,Y)|0,o=Math.imul(L,X),l=l+Math.imul(T,Q)|0,r=(r=r+Math.imul(T,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,l=l+Math.imul(I,et)|0,r=(r=r+Math.imul(I,lt)|0)+Math.imul(j,et)|0,o=o+Math.imul(j,lt)|0,l=l+Math.imul(B,ot)|0,r=(r=r+Math.imul(B,it)|0)+Math.imul(D,ot)|0,o=o+Math.imul(D,it)|0,l=l+Math.imul(S,at)|0,r=(r=r+Math.imul(S,st)|0)+Math.imul(F,at)|0,o=o+Math.imul(F,st)|0,l=l+Math.imul(C,ft)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0;var kt=(s+(l=l+Math.imul(y,pt)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;s=((o=o+Math.imul(w,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,l=Math.imul(P,Q),r=(r=Math.imul(P,tt))+Math.imul(L,Q)|0,o=Math.imul(L,tt),l=l+Math.imul(T,et)|0,r=(r=r+Math.imul(T,lt)|0)+Math.imul(R,et)|0,o=o+Math.imul(R,lt)|0,l=l+Math.imul(I,ot)|0,r=(r=r+Math.imul(I,it)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,it)|0,l=l+Math.imul(B,at)|0,r=(r=r+Math.imul(B,st)|0)+Math.imul(D,at)|0,o=o+Math.imul(D,st)|0,l=l+Math.imul(S,ft)|0,r=(r=r+Math.imul(S,dt)|0)+Math.imul(F,ft)|0,o=o+Math.imul(F,dt)|0;var Bt=(s+(l=l+Math.imul(C,pt)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(A,pt)|0))<<13)|0;s=((o=o+Math.imul(A,mt)|0)+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,l=Math.imul(P,et),r=(r=Math.imul(P,lt))+Math.imul(L,et)|0,o=Math.imul(L,lt),l=l+Math.imul(T,ot)|0,r=(r=r+Math.imul(T,it)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,it)|0,l=l+Math.imul(I,at)|0,r=(r=r+Math.imul(I,st)|0)+Math.imul(j,at)|0,o=o+Math.imul(j,st)|0,l=l+Math.imul(B,ft)|0,r=(r=r+Math.imul(B,dt)|0)+Math.imul(D,ft)|0,o=o+Math.imul(D,dt)|0;var Dt=(s+(l=l+Math.imul(S,pt)|0)|0)+((8191&(r=(r=r+Math.imul(S,mt)|0)+Math.imul(F,pt)|0))<<13)|0;s=((o=o+Math.imul(F,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,l=Math.imul(P,ot),r=(r=Math.imul(P,it))+Math.imul(L,ot)|0,o=Math.imul(L,it),l=l+Math.imul(T,at)|0,r=(r=r+Math.imul(T,st)|0)+Math.imul(R,at)|0,o=o+Math.imul(R,st)|0,l=l+Math.imul(I,ft)|0,r=(r=r+Math.imul(I,dt)|0)+Math.imul(j,ft)|0,o=o+Math.imul(j,dt)|0;var Mt=(s+(l=l+Math.imul(B,pt)|0)|0)+((8191&(r=(r=r+Math.imul(B,mt)|0)+Math.imul(D,pt)|0))<<13)|0;s=((o=o+Math.imul(D,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,l=Math.imul(P,at),r=(r=Math.imul(P,st))+Math.imul(L,at)|0,o=Math.imul(L,st),l=l+Math.imul(T,ft)|0,r=(r=r+Math.imul(T,dt)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0;var It=(s+(l=l+Math.imul(I,pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,mt)|0)+Math.imul(j,pt)|0))<<13)|0;s=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,l=Math.imul(P,ft),r=(r=Math.imul(P,dt))+Math.imul(L,ft)|0,o=Math.imul(L,dt);var jt=(s+(l=l+Math.imul(T,pt)|0)|0)+((8191&(r=(r=r+Math.imul(T,mt)|0)+Math.imul(R,pt)|0))<<13)|0;s=((o=o+Math.imul(R,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Ot=(s+(l=Math.imul(P,pt))|0)+((8191&(r=(r=Math.imul(P,mt))+Math.imul(L,pt)|0))<<13)|0;return s=((o=Math.imul(L,mt))+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,a[0]=gt,a[1]=vt,a[2]=bt,a[3]=_t,a[4]=yt,a[5]=wt,a[6]=Et,a[7]=Ct,a[8]=At,a[9]=xt,a[10]=St,a[11]=Ft,a[12]=kt,a[13]=Bt,a[14]=Dt,a[15]=Mt,a[16]=It,a[17]=jt,a[18]=Ot,0!==s&&(a[19]=s,e.length++),e};function p(t,n,e){return(new m).mulp(t,n,e)}function m(t,n){this.x=t,this.y=n}Math.imul||(h=d),o.prototype.mulTo=function(t,n){var e=this.length+t.length;return 10===this.length&&10===t.length?h(this,t,n):e<63?d(this,t,n):e<1024?function(t,n,e){e.negative=n.negative^t.negative,e.length=t.length+n.length;for(var l=0,r=0,o=0;o>>26)|0)>>>26,i&=67108863}e.words[o]=u,l=i,i=r}return 0!==l?e.words[o]=l:e.length--,e.strip()}(this,t,n):p(this,t,n)},m.prototype.makeRBT=function(t){for(var n=new Array(t),e=o.prototype._countBits(t)-1,l=0;l>=1;return l},m.prototype.permute=function(t,n,e,l,r,o){for(var i=0;i>>=1)r++;return 1<>>=13),o>>>=13;for(i=2*n;i>=26,n+=r/67108864|0,n+=o>>>26,this.words[e]=67108863&o}return 0!==n&&(this.words[e]=n,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var n=function(t){for(var n=new Array(t.bitLength()),e=0;e>>l}return n}(t);if(0===n.length)return new o(1);for(var e=this,l=0;l=0);var n,e=t%26,r=(t-e)/26,o=67108863>>>26-e<<26-e;if(0!==e){var i=0;for(n=0;n>>26-e}i&&(this.words[n]=i,this.length++)}if(0!==r){for(n=this.length-1;n>=0;n--)this.words[n+r]=this.words[n];for(n=0;n=0),r=n?(n-n%26)/26:0;var o=t%26,i=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<i)for(this.length-=i,s=0;s=0&&(0!==c||s>=r);s--){var f=0|this.words[s];this.words[s]=c<<26-o|f>>>o,c=f&u}return a&&0!==c&&(a.words[a.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,n,e){return l(0===this.negative),this.iushrn(t,n,e)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){l("number"==typeof t&&t>=0);var n=t%26,e=(t-n)/26;return!(this.length<=e||!(this.words[e]&1<=0);var n=t%26,e=(t-n)/26;return l(0===this.negative,"imaskn works only with positive numbers"),this.length<=e?this:(0!==n&&e++,this.length=Math.min(e,this.length),0!==n&&(this.words[this.length-1]&=67108863^67108863>>>n<=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},o.prototype.isubn=function(t){if(l("number"==typeof t),l(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n>26)-(u/67108864|0),this.words[r+e]=67108863&o}for(;r>26,this.words[r+e]=67108863&o;if(0===i)return this.strip();for(l(-1===i),i=0,r=0;r>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,n){var e,l=this.clone(),r=t,i=0|r.words[r.length-1];0!=(e=26-this._countBits(i))&&(r=r.ushln(e),l.iushln(e),i=0|r.words[r.length-1]);var u,a=l.length-r.length;if("mod"!==n){(u=new o(null)).length=a+1,u.words=new Array(u.length);for(var s=0;s=0;f--){var d=67108864*(0|l.words[r.length+f])+(0|l.words[r.length+f-1]);for(d=Math.min(d/i|0,67108863),l._ishlnsubmul(r,d,f);0!==l.negative;)d--,l.negative=0,l._ishlnsubmul(r,1,f),l.isZero()||(l.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),l.strip(),"div"!==n&&0!==e&&l.iushrn(e),{div:u||null,mod:l}},o.prototype.divmod=function(t,n,e){return l(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,n),"mod"!==n&&(r=u.div.neg()),"div"!==n&&(i=u.mod.neg(),e&&0!==i.negative&&i.iadd(t)),{div:r,mod:i}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),n),"mod"!==n&&(r=u.div.neg()),{div:r,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),n),"div"!==n&&(i=u.mod.neg(),e&&0!==i.negative&&i.isub(t)),{div:u.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===n?{div:this.divn(t.words[0]),mod:null}:"mod"===n?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,n);var r,i,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var n=this.divmod(t);if(n.mod.isZero())return n.div;var e=0!==n.div.negative?n.mod.isub(t):n.mod,l=t.ushrn(1),r=t.andln(1),o=e.cmp(l);return o<0||1===r&&0===o?n.div:0!==n.div.negative?n.div.isubn(1):n.div.iaddn(1)},o.prototype.modn=function(t){l(t<=67108863);for(var n=(1<<26)%t,e=0,r=this.length-1;r>=0;r--)e=(n*e+(0|this.words[r]))%t;return e},o.prototype.idivn=function(t){l(t<=67108863);for(var n=0,e=this.length-1;e>=0;e--){var r=(0|this.words[e])+67108864*n;this.words[e]=r/t|0,n=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){l(0===t.negative),l(!t.isZero());var n=this,e=t.clone();n=0!==n.negative?n.umod(t):n.clone();for(var r=new o(1),i=new o(0),u=new o(0),a=new o(1),s=0;n.isEven()&&e.isEven();)n.iushrn(1),e.iushrn(1),++s;for(var c=e.clone(),f=n.clone();!n.isZero();){for(var d=0,h=1;0==(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)(r.isOdd()||i.isOdd())&&(r.iadd(c),i.isub(f)),r.iushrn(1),i.iushrn(1);for(var p=0,m=1;0==(e.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(u.isOdd()||a.isOdd())&&(u.iadd(c),a.isub(f)),u.iushrn(1),a.iushrn(1);n.cmp(e)>=0?(n.isub(e),r.isub(u),i.isub(a)):(e.isub(n),u.isub(r),a.isub(i))}return{a:u,b:a,gcd:e.iushln(s)}},o.prototype._invmp=function(t){l(0===t.negative),l(!t.isZero());var n=this,e=t.clone();n=0!==n.negative?n.umod(t):n.clone();for(var r,i=new o(1),u=new o(0),a=e.clone();n.cmpn(1)>0&&e.cmpn(1)>0;){for(var s=0,c=1;0==(n.words[0]&c)&&s<26;++s,c<<=1);if(s>0)for(n.iushrn(s);s-- >0;)i.isOdd()&&i.iadd(a),i.iushrn(1);for(var f=0,d=1;0==(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)u.isOdd()&&u.iadd(a),u.iushrn(1);n.cmp(e)>=0?(n.isub(e),i.isub(u)):(e.isub(n),u.isub(i))}return(r=0===n.cmpn(1)?i:u).cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var n=this.clone(),e=t.clone();n.negative=0,e.negative=0;for(var l=0;n.isEven()&&e.isEven();l++)n.iushrn(1),e.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;e.isEven();)e.iushrn(1);var r=n.cmp(e);if(r<0){var o=n;n=e,e=o}else if(0===r||0===e.cmpn(1))break;n.isub(e)}return e.iushln(l)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){l("number"==typeof t);var n=t%26,e=(t-n)/26,r=1<>>26,this.words[i]=u&=67108863}return 0!==o&&(this.words[i]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var n,e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;if(this.strip(),this.length>1)n=1;else{e&&(t=-t),l(t<=67108863,"Number is too big");var r=0|this.words[0];n=r===t?0:rt.length)return 1;if(this.length=0;e--){var l=0|this.words[e],r=0|t.words[e];if(l!==r){lr&&(n=1);break}}return n},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return l(!this.red,"Already a number in reduction context"),l(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return l(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return l(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function v(t,n){this.name=t,this.p=new o(n,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function y(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var n=o._prime(t);this.m=n.p,this.prime=n}else l(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var n,e=t;do{this.split(e,this.tmp),n=(e=(e=this.imulK(e)).iadd(this.tmp)).bitLength()}while(n>this.n);var l=n0?e.isub(this.p):e.strip(),e},v.prototype.split=function(t,n){t.iushrn(this.n,0,n)},v.prototype.imulK=function(t){return t.imul(this.k)},r(b,v),b.prototype.split=function(t,n){for(var e=Math.min(t.length,9),l=0;l>>22,r=o}t.words[l-10]=r>>>=22,t.length-=0===r&&t.length>10?10:9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var n=0,e=0;e>>=26,t.words[e]=r,n=l}return 0!==n&&(t.words[t.length++]=n),t},o._prime=function(t){if(g[t])return g[t];var n;if("k256"===t)n=new b;else if("p224"===t)n=new _;else if("p192"===t)n=new y;else{if("p25519"!==t)throw new Error("Unknown prime "+t);n=new w}return g[t]=n,n},E.prototype._verify1=function(t){l(0===t.negative,"red works only with positives"),l(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,n){l(0==(t.negative|n.negative),"red works only with positives"),l(t.red&&t.red===n.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,n){this._verify2(t,n);var e=t.add(n);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},E.prototype.iadd=function(t,n){this._verify2(t,n);var e=t.iadd(n);return e.cmp(this.m)>=0&&e.isub(this.m),e},E.prototype.sub=function(t,n){this._verify2(t,n);var e=t.sub(n);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},E.prototype.isub=function(t,n){this._verify2(t,n);var e=t.isub(n);return e.cmpn(0)<0&&e.iadd(this.m),e},E.prototype.shl=function(t,n){return this._verify1(t),this.imod(t.ushln(n))},E.prototype.imul=function(t,n){return this._verify2(t,n),this.imod(t.imul(n))},E.prototype.mul=function(t,n){return this._verify2(t,n),this.imod(t.mul(n))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var n=this.m.andln(3);if(l(n%2==1),3===n){var e=this.m.add(new o(1)).iushrn(2);return this.pow(t,e)}for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);l(!r.isZero());var u=new o(1).toRed(this),a=u.redNeg(),s=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,s).cmp(a);)c.redIAdd(a);for(var f=this.pow(c,r),d=this.pow(t,r.addn(1).iushrn(1)),h=this.pow(t,r),p=i;0!==h.cmp(u);){for(var m=h,g=0;0!==m.cmp(u);g++)m=m.redSqr();l(g=0;l--){for(var s=n.words[l],c=a-1;c>=0;c--){var f=s>>c&1;r!==e[0]&&(r=this.sqr(r)),0!==f||0!==i?(i<<=1,i|=f,(4==++u||0===l&&0===c)&&(r=this.mul(r,e[i]),u=0,i=0)):u=0}a=26}return r},E.prototype.convertTo=function(t){var n=t.umod(this.m);return n===t?n.clone():n},E.prototype.convertFrom=function(t){var n=t.clone();return n.red=null,n},o.mont=function(t){return new C(t)},r(C,E),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var n=this.imod(t.mul(this.rinv));return n.red=null,n},C.prototype.imul=function(t,n){if(t.isZero()||n.isZero())return t.words[0]=0,t.length=1,t;var e=t.imul(n),l=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=e.isub(l).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(t,n){if(t.isZero()||n.isZero())return new o(0)._forceRed(this);var e=t.mul(n),l=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=e.isub(l).iushrn(this.shift),i=r;return r.cmp(this.m)>=0?i=r.isub(this.m):r.cmpn(0)<0&&(i=r.iadd(this.m)),i._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===n||n,this)},{buffer:21}],21:[function(t,n,e){},{}],22:[function(t,n,e){var l=t("safe-buffer").Buffer;function r(t){l.isBuffer(t)||(t=l.from(t));for(var n=t.length/4|0,e=new Array(n),r=0;r>>24]^c[p>>>16&255]^f[m>>>8&255]^d[255&g]^n[v++],i=s[p>>>24]^c[m>>>16&255]^f[g>>>8&255]^d[255&h]^n[v++],u=s[m>>>24]^c[g>>>16&255]^f[h>>>8&255]^d[255&p]^n[v++],a=s[g>>>24]^c[h>>>16&255]^f[p>>>8&255]^d[255&m]^n[v++],h=o,p=i,m=u,g=a;return o=(l[h>>>24]<<24|l[p>>>16&255]<<16|l[m>>>8&255]<<8|l[255&g])^n[v++],i=(l[p>>>24]<<24|l[m>>>16&255]<<16|l[g>>>8&255]<<8|l[255&h])^n[v++],u=(l[m>>>24]<<24|l[g>>>16&255]<<16|l[h>>>8&255]<<8|l[255&p])^n[v++],a=(l[g>>>24]<<24|l[h>>>16&255]<<16|l[p>>>8&255]<<8|l[255&m])^n[v++],[o>>>=0,i>>>=0,u>>>=0,a>>>=0]}var u=[0,1,2,4,8,16,32,64,128,27,54],a=function(){for(var t=new Array(256),n=0;n<256;n++)t[n]=n<128?n<<1:n<<1^283;for(var e=[],l=[],r=[[],[],[],[]],o=[[],[],[],[]],i=0,u=0,a=0;a<256;++a){var s=u^u<<1^u<<2^u<<3^u<<4;e[i]=s=s>>>8^255&s^99,l[s]=i;var c=t[i],f=t[c],d=t[f],h=257*t[s]^16843008*s;r[0][i]=h<<24|h>>>8,r[1][i]=h<<16|h>>>16,r[2][i]=h<<8|h>>>24,r[3][i]=h,o[0][s]=(h=16843009*d^65537*f^257*c^16843008*i)<<24|h>>>8,o[1][s]=h<<16|h>>>16,o[2][s]=h<<8|h>>>24,o[3][s]=h,0===i?i=u=1:(i=c^t[t[t[d^c]]],u^=t[t[u]])}return{SBOX:e,INV_SBOX:l,SUB_MIX:r,INV_SUB_MIX:o}}();function s(t){this._key=r(t),this._reset()}s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var t=this._key,n=t.length,e=n+6,l=4*(e+1),r=[],o=0;o>>24)>>>24]<<24|a.SBOX[i>>>16&255]<<16|a.SBOX[i>>>8&255]<<8|a.SBOX[255&i],i^=u[o/n|0]<<24):n>6&&o%n==4&&(i=a.SBOX[i>>>24]<<24|a.SBOX[i>>>16&255]<<16|a.SBOX[i>>>8&255]<<8|a.SBOX[255&i]),r[o]=r[o-n]^i}for(var s=[],c=0;c>>24]]^a.INV_SUB_MIX[1][a.SBOX[d>>>16&255]]^a.INV_SUB_MIX[2][a.SBOX[d>>>8&255]]^a.INV_SUB_MIX[3][a.SBOX[255&d]]}this._nRounds=e,this._keySchedule=r,this._invKeySchedule=s},s.prototype.encryptBlockRaw=function(t){return i(t=r(t),this._keySchedule,a.SUB_MIX,a.SBOX,this._nRounds)},s.prototype.encryptBlock=function(t){var n=this.encryptBlockRaw(t),e=l.allocUnsafe(16);return e.writeUInt32BE(n[0],0),e.writeUInt32BE(n[1],4),e.writeUInt32BE(n[2],8),e.writeUInt32BE(n[3],12),e},s.prototype.decryptBlock=function(t){var n=(t=r(t))[1];t[1]=t[3],t[3]=n;var e=i(t,this._invKeySchedule,a.INV_SUB_MIX,a.INV_SBOX,this._nRounds),o=l.allocUnsafe(16);return o.writeUInt32BE(e[0],0),o.writeUInt32BE(e[3],4),o.writeUInt32BE(e[2],8),o.writeUInt32BE(e[1],12),o},s.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},n.exports.AES=s},{"safe-buffer":436}],23:[function(t,n,e){var l=t("./aes"),r=t("safe-buffer").Buffer,o=t("cipher-base"),i=t("inherits"),u=t("./ghash"),a=t("buffer-xor");function s(t,n,e,i){o.call(this),this._finID=r.concat([e,r.from([0,0,0,1])]),e=r.concat([e,r.from([0,0,0,2])]),this._cipher=new l.AES(n),this._prev=r.from(e),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=t;var a=r.alloc(4,0);this._ghash=new u(this._cipher.encryptBlock(a)),this._authTag=null,this._called=!1}i(s,o),s.prototype._update=function(t){if(!this._called&&this._alen){var n=16-this._alen%16;n<16&&(n=r.alloc(n,0),this._ghash.update(n))}this._called=!0;var e=this._mode.encrypt(this,t);return this._ghash.update(this._decrypt?t:e),this._len+=t.length,e},s.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=a(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,n){var e=0;t.length!==n.length&&e++;for(var l=Math.min(t.length,n.length),r=0;r16)return n=this.cache.slice(0,16),this.cache=this.cache.slice(16),n}else if(this.cache.length>=16)return n=this.cache.slice(0,16),this.cache=this.cache.slice(16),n;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,n){var e=o[t.toLowerCase()];if(!e)throw new TypeError("invalid suite type");var l=s(n,!1,e.key,e.iv);return d(t,l.key,l.iv)},e.createDecipheriv=d},{"./aes":22,"./authCipher":23,"./modes":34,"./streamCipher":37,"cipher-base":43,evp_bytestokey:399,inherits:407,"safe-buffer":436}],26:[function(t,n,e){var l=t("./modes"),r=t("./authCipher"),o=t("safe-buffer").Buffer,i=t("./streamCipher"),u=t("cipher-base"),a=t("./aes"),s=t("evp_bytestokey");function c(t,n,e){u.call(this),this._cache=new d,this._cipher=new a.AES(n),this._prev=o.from(e),this._mode=t,this._autopadding=!0}t("inherits")(c,u),c.prototype._update=function(t){var n,e;this._cache.add(t);for(var l=[];n=this._cache.get();)e=this._mode.encrypt(this,n),l.push(e);return o.concat(l)};var f=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function h(t,n,e){var u=l[t.toLowerCase()];if(!u)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=o.from(n)),n.length!==u.key/8)throw new TypeError("invalid key length "+n.length);if("string"==typeof e&&(e=o.from(e)),e.length!==u.iv)throw new TypeError("invalid iv length "+e.length);return"stream"===u.type?new i(u.module,n,e):"auth"===u.type?new r(u.module,n,e):new c(u.module,n,e)}c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=o.concat([this.cache,t])},d.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},d.prototype.flush=function(){for(var t=16-this.cache.length,n=o.allocUnsafe(t),e=-1;++e>>0,0),n.writeUInt32BE(t[1]>>>0,4),n.writeUInt32BE(t[2]>>>0,8),n.writeUInt32BE(t[3]>>>0,12),n}function i(t){this.h=t,this.state=l.alloc(16,0),this.cache=l.allocUnsafe(0)}i.prototype.ghash=function(t){for(var n=-1;++n0;n--)l[n]=l[n]>>>1|(1&l[n-1])<<31;l[0]=l[0]>>>1,e&&(l[0]=l[0]^225<<24)}this.state=o(r)},i.prototype.update=function(t){var n;for(this.cache=l.concat([this.cache,t]);this.cache.length>=16;)n=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(n)},i.prototype.final=function(t,n){return this.cache.length&&this.ghash(l.concat([this.cache,r],16)),this.ghash(o([0,t,0,n])),this.state},n.exports=i},{"safe-buffer":436}],28:[function(t,n,e){var l=t("buffer-xor");e.encrypt=function(t,n){var e=l(n,t._prev);return t._prev=t._cipher.encryptBlock(e),t._prev},e.decrypt=function(t,n){var e=t._prev;t._prev=n;var r=t._cipher.decryptBlock(n);return l(r,e)}},{"buffer-xor":39}],29:[function(t,n,e){var l=t("safe-buffer").Buffer,r=t("buffer-xor");function o(t,n,e){var o=n.length,i=r(n,t._cache);return t._cache=t._cache.slice(o),t._prev=l.concat([t._prev,e?n:i]),i}e.encrypt=function(t,n,e){for(var r,i=l.allocUnsafe(0);n.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=l.allocUnsafe(0)),!(t._cache.length<=n.length)){i=l.concat([i,o(t,n,e)]);break}i=l.concat([i,o(t,n.slice(0,r=t._cache.length),e)]),n=n.slice(r)}return i}},{"buffer-xor":39,"safe-buffer":436}],30:[function(t,n,e){var l=t("safe-buffer").Buffer;function r(t,n,e){for(var l,r,i=-1,u=0;++i<8;)u+=(128&(r=t._cipher.encryptBlock(t._prev)[0]^(l=n&1<<7-i?128:0)))>>i%8,t._prev=o(t._prev,e?l:r);return u}function o(t,n){var e=t.length,r=-1,o=l.allocUnsafe(t.length);for(t=l.concat([t,l.from([n])]);++r>7;return o}e.encrypt=function(t,n,e){for(var o=n.length,i=l.allocUnsafe(o),u=-1;++uo)throw new RangeError("Invalid typed array length");var n=new Uint8Array(t);return n.__proto__=u.prototype,n}function u(t,n,e){if("number"==typeof t){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return c(t)}return a(t,n,e)}function a(t,n,e){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return L(t)?function(t,n,e){if(n<0||t.byteLength=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function h(t,n){if(u.isBuffer(t))return t.length;if(q(t)||L(t))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var l=!1;;)switch(n){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return N(t).length;default:if(l)return R(t).length;n=(""+n).toLowerCase(),l=!0}}function p(t,n,e){var l=t[n];t[n]=t[e],t[e]=l}function m(t,n,e,l,r){if(0===t.length)return-1;if("string"==typeof e?(l=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),U(e=+e)&&(e=r?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(r)return-1;e=t.length-1}else if(e<0){if(!r)return-1;e=0}if("string"==typeof n&&(n=u.from(n,l)),u.isBuffer(n))return 0===n.length?-1:g(t,n,e,l,r);if("number"==typeof n)return n&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,n,e):Uint8Array.prototype.lastIndexOf.call(t,n,e):g(t,[n],e,l,r);throw new TypeError("val must be string, number or Buffer")}function g(t,n,e,l,r){var o,i=1,u=t.length,a=n.length;if(void 0!==l&&("ucs2"===(l=String(l).toLowerCase())||"ucs-2"===l||"utf16le"===l||"utf-16le"===l)){if(t.length<2||n.length<2)return-1;i=2,u/=2,a/=2,e/=2}function s(t,n){return 1===i?t[n]:t.readUInt16BE(n*i)}if(r){var c=-1;for(o=e;ou&&(e=u-a),o=e;o>=0;o--){for(var f=!0,d=0;dr&&(l=r):l=r;var o=n.length;if(o%2!=0)throw new TypeError("Invalid hex string");l>o/2&&(l=o/2);for(var i=0;i>8,r.push(e%256),r.push(l);return r}(n,t.length-e),t,e,l)}function C(t,n,e){return l.fromByteArray(0===n&&e===t.length?t:t.slice(n,e))}function A(t,n,e){e=Math.min(t.length,e);for(var l=[],r=n;r239?4:s>223?3:s>191?2:1;if(r+f<=e)switch(f){case 1:s<128&&(c=s);break;case 2:128==(192&(o=t[r+1]))&&(a=(31&s)<<6|63&o)>127&&(c=a);break;case 3:i=t[r+2],128==(192&(o=t[r+1]))&&128==(192&i)&&(a=(15&s)<<12|(63&o)<<6|63&i)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:i=t[r+2],u=t[r+3],128==(192&(o=t[r+1]))&&128==(192&i)&&128==(192&u)&&(a=(15&s)<<18|(63&o)<<12|(63&i)<<6|63&u)>65535&&a<1114112&&(c=a)}null===c?(c=65533,f=1):c>65535&&(l.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),l.push(c),r+=f}return function(t){var n=t.length;if(n<=x)return String.fromCharCode.apply(String,t);for(var e="",l=0;lthis.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(n>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,n,e);case"utf8":case"utf-8":return A(this,n,e);case"ascii":return S(this,n,e);case"latin1":case"binary":return F(this,n,e);case"base64":return C(this,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,n,e);default:if(l)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),l=!0}}).apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,n,e,l,r){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===e&&(e=t?t.length:0),void 0===l&&(l=0),void 0===r&&(r=this.length),n<0||e>t.length||l<0||r>this.length)throw new RangeError("out of range index");if(l>=r&&n>=e)return 0;if(l>=r)return-1;if(n>=e)return 1;if(n>>>=0,e>>>=0,l>>>=0,r>>>=0,this===t)return 0;for(var o=r-l,i=e-n,a=Math.min(o,i),s=this.slice(l,r),c=t.slice(n,e),f=0;f>>=0,isFinite(e)?(e>>>=0,void 0===l&&(l="utf8")):(l=e,e=void 0)}var r=this.length-n;if((void 0===e||e>r)&&(e=r),t.length>0&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");l||(l="utf8");for(var o=!1;;)switch(l){case"hex":return v(this,t,n,e);case"utf8":case"utf-8":return b(this,t,n,e);case"ascii":return _(this,t,n,e);case"latin1":case"binary":return y(this,t,n,e);case"base64":return w(this,t,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n,e);default:if(o)throw new TypeError("Unknown encoding: "+l);l=(""+l).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function S(t,n,e){var l="";e=Math.min(t.length,e);for(var r=n;rr)&&(e=r);for(var o="",i=n;ie)throw new RangeError("Trying to access beyond buffer length")}function M(t,n,e,l,r,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>r||nt.length)throw new RangeError("Index out of range")}function I(t,n,e,l,r,o){if(e+l>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function j(t,n,e,l,o){return n=+n,e>>>=0,o||I(t,0,e,4),r.write(t,n,e,l,23,4),e+4}function O(t,n,e,l,o){return n=+n,e>>>=0,o||I(t,0,e,8),r.write(t,n,e,l,52,8),e+8}u.prototype.slice=function(t,n){var e=this.length;t=~~t,n=void 0===n?e:~~n,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),n<0?(n+=e)<0&&(n=0):n>e&&(n=e),n>>=0,n>>>=0,e||D(t,n,this.length);for(var l=this[t],r=1,o=0;++o>>=0,n>>>=0,e||D(t,n,this.length);for(var l=this[t+--n],r=1;n>0&&(r*=256);)l+=this[t+--n]*r;return l},u.prototype.readUInt8=function(t,n){return t>>>=0,n||D(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,n){return t>>>=0,n||D(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,n){return t>>>=0,n||D(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,n){return t>>>=0,n||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,n){return t>>>=0,n||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,n,e){t>>>=0,n>>>=0,e||D(t,n,this.length);for(var l=this[t],r=1,o=0;++o=(r*=128)&&(l-=Math.pow(2,8*n)),l},u.prototype.readIntBE=function(t,n,e){t>>>=0,n>>>=0,e||D(t,n,this.length);for(var l=n,r=1,o=this[t+--l];l>0&&(r*=256);)o+=this[t+--l]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*n)),o},u.prototype.readInt8=function(t,n){return t>>>=0,n||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,n){t>>>=0,n||D(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},u.prototype.readInt16BE=function(t,n){t>>>=0,n||D(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},u.prototype.readInt32LE=function(t,n){return t>>>=0,n||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,n){return t>>>=0,n||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,n){return t>>>=0,n||D(t,4,this.length),r.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,n){return t>>>=0,n||D(t,4,this.length),r.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,n){return t>>>=0,n||D(t,8,this.length),r.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,n){return t>>>=0,n||D(t,8,this.length),r.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,n,e,l){t=+t,n>>>=0,e>>>=0,l||M(this,t,n,e,Math.pow(2,8*e)-1,0);var r=1,o=0;for(this[n]=255&t;++o>>=0,e>>>=0,l||M(this,t,n,e,Math.pow(2,8*e)-1,0);var r=e-1,o=1;for(this[n+r]=255&t;--r>=0&&(o*=256);)this[n+r]=t/o&255;return n+e},u.prototype.writeUInt8=function(t,n,e){return t=+t,n>>>=0,e||M(this,t,n,1,255,0),this[n]=255&t,n+1},u.prototype.writeUInt16LE=function(t,n,e){return t=+t,n>>>=0,e||M(this,t,n,2,65535,0),this[n]=255&t,this[n+1]=t>>>8,n+2},u.prototype.writeUInt16BE=function(t,n,e){return t=+t,n>>>=0,e||M(this,t,n,2,65535,0),this[n]=t>>>8,this[n+1]=255&t,n+2},u.prototype.writeUInt32LE=function(t,n,e){return t=+t,n>>>=0,e||M(this,t,n,4,4294967295,0),this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t,n+4},u.prototype.writeUInt32BE=function(t,n,e){return t=+t,n>>>=0,e||M(this,t,n,4,4294967295,0),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t,n+4},u.prototype.writeIntLE=function(t,n,e,l){if(t=+t,n>>>=0,!l){var r=Math.pow(2,8*e-1);M(this,t,n,e,r-1,-r)}var o=0,i=1,u=0;for(this[n]=255&t;++o>0)-u&255;return n+e},u.prototype.writeIntBE=function(t,n,e,l){if(t=+t,n>>>=0,!l){var r=Math.pow(2,8*e-1);M(this,t,n,e,r-1,-r)}var o=e-1,i=1,u=0;for(this[n+o]=255&t;--o>=0&&(i*=256);)t<0&&0===u&&0!==this[n+o+1]&&(u=1),this[n+o]=(t/i>>0)-u&255;return n+e},u.prototype.writeInt8=function(t,n,e){return t=+t,n>>>=0,e||M(this,t,n,1,127,-128),t<0&&(t=255+t+1),this[n]=255&t,n+1},u.prototype.writeInt16LE=function(t,n,e){return t=+t,n>>>=0,e||M(this,t,n,2,32767,-32768),this[n]=255&t,this[n+1]=t>>>8,n+2},u.prototype.writeInt16BE=function(t,n,e){return t=+t,n>>>=0,e||M(this,t,n,2,32767,-32768),this[n]=t>>>8,this[n+1]=255&t,n+2},u.prototype.writeInt32LE=function(t,n,e){return t=+t,n>>>=0,e||M(this,t,n,4,2147483647,-2147483648),this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24,n+4},u.prototype.writeInt32BE=function(t,n,e){return t=+t,n>>>=0,e||M(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t,n+4},u.prototype.writeFloatLE=function(t,n,e){return j(this,t,n,!0,e)},u.prototype.writeFloatBE=function(t,n,e){return j(this,t,n,!1,e)},u.prototype.writeDoubleLE=function(t,n,e){return O(this,t,n,!0,e)},u.prototype.writeDoubleBE=function(t,n,e){return O(this,t,n,!1,e)},u.prototype.copy=function(t,n,e,l){if(e||(e=0),l||0===l||(l=this.length),n>=t.length&&(n=t.length),n||(n=0),l>0&&l=this.length)throw new RangeError("sourceStart out of bounds");if(l<0)throw new RangeError("sourceEnd out of bounds");l>this.length&&(l=this.length),t.length-n=0;--r)t[r+n]=this[r+e];else if(o<1e3)for(r=0;r>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=n;o55295&&e<57344){if(!r){if(e>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(i+1===l){(n-=3)>-1&&o.push(239,191,189);continue}r=e;continue}if(e<56320){(n-=3)>-1&&o.push(239,191,189),r=e;continue}e=65536+(r-55296<<10|e-56320)}else r&&(n-=3)>-1&&o.push(239,191,189);if(r=null,e<128){if((n-=1)<0)break;o.push(e)}else if(e<2048){if((n-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((n-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function N(t){return l.toByteArray(function(t){if((t=t.trim().replace(T,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function P(t,n,e,l){for(var r=0;r=n.length||r>=t.length);++r)n[r+e]=t[r];return r}function L(t){return t instanceof ArrayBuffer||null!=t&&null!=t.constructor&&"ArrayBuffer"===t.constructor.name&&"number"==typeof t.byteLength}function q(t){return"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(t)}function U(t){return t!=t}},{"base64-js":15,ieee754:406}],41:[function(t,n,e){var l;l=function(t){"use strict";var n=function(t,e,r){if(void 0===t&&(t=n.DEFAULT_CAPACITY),void 0===e&&(e=n.DEFAULT_ENDIAN),void 0===r&&(r=n.DEFAULT_NOASSERT),!r){if((t|=0)<0)throw RangeError("Illegal capacity");e=!!e,r=!!r}this.buffer=0===t?l:new ArrayBuffer(t),this.view=0===t?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=t,this.littleEndian=e,this.noAssert=r};n.VERSION="5.0.1",n.LITTLE_ENDIAN=!0,n.BIG_ENDIAN=!1,n.DEFAULT_CAPACITY=16,n.DEFAULT_ENDIAN=n.BIG_ENDIAN,n.DEFAULT_NOASSERT=!1,n.Long=t||null;var e=n.prototype;Object.defineProperty(e,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1});var l=new ArrayBuffer(0),r=String.fromCharCode;function o(t){var n=0;return function(){return n1024&&(n.push(r.apply(String,t)),t.length=0),Array.prototype.push.apply(t,arguments)}}function u(t,n,e,l,r){var o,i,u=8*r-l-1,a=(1<>1,c=-7,f=e?r-1:0,d=e?-1:1,h=t[n+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=u;c>0;o=256*o+t[n+f],f+=d,c-=8);for(i=o&(1<<-c)-1,o>>=-c,c+=l;c>0;i=256*i+t[n+f],f+=d,c-=8);if(0===o)o=1-s;else{if(o===a)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,l),o-=s}return(h?-1:1)*i*Math.pow(2,o-l)}function a(t,n,e,l,r,o){var i,u,a,s=8*o-r-1,c=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=l?0:o-1,p=l?1:-1,m=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(u=isNaN(n)?1:0,i=c):(i=Math.floor(Math.log(n)/Math.LN2),n*(a=Math.pow(2,-i))<1&&(i--,a*=2),(n+=i+f>=1?d/a:d*Math.pow(2,1-f))*a>=2&&(i++,a/=2),i+f>=c?(u=0,i=c):i+f>=1?(u=(n*a-1)*Math.pow(2,r),i+=f):(u=n*Math.pow(2,f-1)*Math.pow(2,r),i=0));r>=8;t[e+h]=255&u,h+=p,u/=256,r-=8);for(i=i<0;t[e+h]=255&i,h+=p,i/=256,s-=8);t[e+h-p]|=128*m}n.accessor=function(){return Uint8Array},n.allocate=function(t,e,l){return new n(t,e,l)},n.concat=function(t,e,l,r){"boolean"!=typeof e&&"string"==typeof e||(r=l,l=e,e=void 0);for(var o,i=0,u=0,a=t.length;u0&&(i+=o);if(0===i)return new n(0,l,r);var s,c=new n(i,l,r);for(u=0;u0&&(i.buffer=t.buffer,i.offset=t.byteOffset,i.limit=t.byteOffset+t.byteLength,i.view=new Uint8Array(t.buffer));else if(t instanceof ArrayBuffer)i=new n(0,r,o),t.byteLength>0&&(i.buffer=t,i.offset=0,i.limit=t.byteLength,i.view=t.byteLength>0?new Uint8Array(t):null);else{if("[object Array]"!==Object.prototype.toString.call(t))throw TypeError("Illegal buffer");(i=new n(t.length,r,o)).limit=t.length;for(var u=0;u>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var l,r=n,o=t.length,i=o>>3,u=0;for(n+=this.writeVarint32(o,n);i--;)l=1&!!t[u++]|(1&!!t[u++])<<1|(1&!!t[u++])<<2|(1&!!t[u++])<<3|(1&!!t[u++])<<4|(1&!!t[u++])<<5|(1&!!t[u++])<<6|(1&!!t[u++])<<7,this.writeByte(l,n++);if(u>3,i=0,u=[];for(t+=l.length;o--;)e=this.readByte(t++),u[i++]=!!(1&e),u[i++]=!!(2&e),u[i++]=!!(4&e),u[i++]=!!(8&e),u[i++]=!!(16&e),u[i++]=!!(32&e),u[i++]=!!(64&e),u[i++]=!!(128&e);if(i>a++&1)}return n&&(this.offset=t),u},e.readBytes=function(t,n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+t>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+"+t+") <= "+this.buffer.byteLength)}var l=this.slice(n,n+t);return e&&(this.offset+=t),l},e.writeBytes=e.append,e.writeInt8=function(t,n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var l=this.buffer.byteLength;return(n+=1)>l&&this.resize((l*=2)>n?l:n),this.view[n-=1]=t,e&&(this.offset+=1),this},e.writeByte=e.writeInt8,e.readInt8=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var e=this.view[t];return 128==(128&e)&&(e=-(255-e+1)),n&&(this.offset+=1),e},e.readByte=e.readInt8,e.writeUint8=function(t,n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var l=this.buffer.byteLength;return(n+=1)>l&&this.resize((l*=2)>n?l:n),this.view[n-=1]=t,e&&(this.offset+=1),this},e.writeUInt8=e.writeUint8,e.readUint8=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var e=this.view[t];return n&&(this.offset+=1),e},e.readUInt8=e.readUint8,e.writeInt16=function(t,n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var l=this.buffer.byteLength;return(n+=2)>l&&this.resize((l*=2)>n?l:n),n-=2,this.littleEndian?(this.view[n+1]=(65280&t)>>>8,this.view[n]=255&t):(this.view[n]=(65280&t)>>>8,this.view[n+1]=255&t),e&&(this.offset+=2),this},e.writeShort=e.writeInt16,e.readInt16=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+2) <= "+this.buffer.byteLength)}var e=0;return this.littleEndian?(e=this.view[t],e|=this.view[t+1]<<8):(e=this.view[t]<<8,e|=this.view[t+1]),32768==(32768&e)&&(e=-(65535-e+1)),n&&(this.offset+=2),e},e.readShort=e.readInt16,e.writeUint16=function(t,n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var l=this.buffer.byteLength;return(n+=2)>l&&this.resize((l*=2)>n?l:n),n-=2,this.littleEndian?(this.view[n+1]=(65280&t)>>>8,this.view[n]=255&t):(this.view[n]=(65280&t)>>>8,this.view[n+1]=255&t),e&&(this.offset+=2),this},e.writeUInt16=e.writeUint16,e.readUint16=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+2) <= "+this.buffer.byteLength)}var e=0;return this.littleEndian?(e=this.view[t],e|=this.view[t+1]<<8):(e=this.view[t]<<8,e|=this.view[t+1]),n&&(this.offset+=2),e},e.readUInt16=e.readUint16,e.writeInt32=function(t,n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var l=this.buffer.byteLength;return(n+=4)>l&&this.resize((l*=2)>n?l:n),n-=4,this.littleEndian?(this.view[n+3]=t>>>24&255,this.view[n+2]=t>>>16&255,this.view[n+1]=t>>>8&255,this.view[n]=255&t):(this.view[n]=t>>>24&255,this.view[n+1]=t>>>16&255,this.view[n+2]=t>>>8&255,this.view[n+3]=255&t),e&&(this.offset+=4),this},e.writeInt=e.writeInt32,e.readInt32=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var e=0;return this.littleEndian?(e=this.view[t+2]<<16,e|=this.view[t+1]<<8,e|=this.view[t],e+=this.view[t+3]<<24>>>0):(e=this.view[t+1]<<16,e|=this.view[t+2]<<8,e|=this.view[t+3],e+=this.view[t]<<24>>>0),e|=0,n&&(this.offset+=4),e},e.readInt=e.readInt32,e.writeUint32=function(t,n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var l=this.buffer.byteLength;return(n+=4)>l&&this.resize((l*=2)>n?l:n),n-=4,this.littleEndian?(this.view[n+3]=t>>>24&255,this.view[n+2]=t>>>16&255,this.view[n+1]=t>>>8&255,this.view[n]=255&t):(this.view[n]=t>>>24&255,this.view[n+1]=t>>>16&255,this.view[n+2]=t>>>8&255,this.view[n+3]=255&t),e&&(this.offset+=4),this},e.writeUInt32=e.writeUint32,e.readUint32=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var e=0;return this.littleEndian?(e=this.view[t+2]<<16,e|=this.view[t+1]<<8,e|=this.view[t],e+=this.view[t+3]<<24>>>0):(e=this.view[t+1]<<16,e|=this.view[t+2]<<8,e|=this.view[t+3],e+=this.view[t]<<24>>>0),n&&(this.offset+=4),e},e.readUInt32=e.readUint32,t&&(e.writeInt64=function(n,e){var l=void 0===e;if(l&&(e=this.offset),!this.noAssert){if("number"==typeof n)n=t.fromNumber(n);else if("string"==typeof n)n=t.fromString(n);else if(!(n&&n instanceof t))throw TypeError("Illegal value: "+n+" (not an integer or Long)");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}"number"==typeof n?n=t.fromNumber(n):"string"==typeof n&&(n=t.fromString(n));var r=this.buffer.byteLength;(e+=8)>r&&this.resize((r*=2)>e?r:e),e-=8;var o=n.low,i=n.high;return this.littleEndian?(this.view[e+3]=o>>>24&255,this.view[e+2]=o>>>16&255,this.view[e+1]=o>>>8&255,this.view[e]=255&o,this.view[(e+=4)+3]=i>>>24&255,this.view[e+2]=i>>>16&255,this.view[e+1]=i>>>8&255,this.view[e]=255&i):(this.view[e]=i>>>24&255,this.view[e+1]=i>>>16&255,this.view[e+2]=i>>>8&255,this.view[e+3]=255&i,this.view[e+=4]=o>>>24&255,this.view[e+1]=o>>>16&255,this.view[e+2]=o>>>8&255,this.view[e+3]=255&o),l&&(this.offset+=8),this},e.writeLong=e.writeInt64,e.readInt64=function(n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+8) <= "+this.buffer.byteLength)}var l=0,r=0;this.littleEndian?(l=this.view[n+2]<<16,l|=this.view[n+1]<<8,l|=this.view[n],l+=this.view[n+3]<<24>>>0,r=this.view[(n+=4)+2]<<16,r|=this.view[n+1]<<8,r|=this.view[n],r+=this.view[n+3]<<24>>>0):(r=this.view[n+1]<<16,r|=this.view[n+2]<<8,r|=this.view[n+3],r+=this.view[n]<<24>>>0,l=this.view[(n+=4)+1]<<16,l|=this.view[n+2]<<8,l|=this.view[n+3],l+=this.view[n]<<24>>>0);var o=new t(l,r,!1);return e&&(this.offset+=8),o},e.readLong=e.readInt64,e.writeUint64=function(n,e){var l=void 0===e;if(l&&(e=this.offset),!this.noAssert){if("number"==typeof n)n=t.fromNumber(n);else if("string"==typeof n)n=t.fromString(n);else if(!(n&&n instanceof t))throw TypeError("Illegal value: "+n+" (not an integer or Long)");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}"number"==typeof n?n=t.fromNumber(n):"string"==typeof n&&(n=t.fromString(n));var r=this.buffer.byteLength;(e+=8)>r&&this.resize((r*=2)>e?r:e),e-=8;var o=n.low,i=n.high;return this.littleEndian?(this.view[e+3]=o>>>24&255,this.view[e+2]=o>>>16&255,this.view[e+1]=o>>>8&255,this.view[e]=255&o,this.view[(e+=4)+3]=i>>>24&255,this.view[e+2]=i>>>16&255,this.view[e+1]=i>>>8&255,this.view[e]=255&i):(this.view[e]=i>>>24&255,this.view[e+1]=i>>>16&255,this.view[e+2]=i>>>8&255,this.view[e+3]=255&i,this.view[e+=4]=o>>>24&255,this.view[e+1]=o>>>16&255,this.view[e+2]=o>>>8&255,this.view[e+3]=255&o),l&&(this.offset+=8),this},e.writeUInt64=e.writeUint64,e.readUint64=function(n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+8) <= "+this.buffer.byteLength)}var l=0,r=0;this.littleEndian?(l=this.view[n+2]<<16,l|=this.view[n+1]<<8,l|=this.view[n],l+=this.view[n+3]<<24>>>0,r=this.view[(n+=4)+2]<<16,r|=this.view[n+1]<<8,r|=this.view[n],r+=this.view[n+3]<<24>>>0):(r=this.view[n+1]<<16,r|=this.view[n+2]<<8,r|=this.view[n+3],r+=this.view[n]<<24>>>0,l=this.view[(n+=4)+1]<<16,l|=this.view[n+2]<<8,l|=this.view[n+3],l+=this.view[n]<<24>>>0);var o=new t(l,r,!0);return e&&(this.offset+=8),o},e.readUInt64=e.readUint64),e.writeFloat32=function(t,n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof t)throw TypeError("Illegal value: "+t+" (not a number)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var l=this.buffer.byteLength;return(n+=4)>l&&this.resize((l*=2)>n?l:n),a(this.view,t,n-=4,this.littleEndian,23,4),e&&(this.offset+=4),this},e.writeFloat=e.writeFloat32,e.readFloat32=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var e=u(this.view,t,this.littleEndian,23,4);return n&&(this.offset+=4),e},e.readFloat=e.readFloat32,e.writeFloat64=function(t,n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof t)throw TypeError("Illegal value: "+t+" (not a number)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var l=this.buffer.byteLength;return(n+=8)>l&&this.resize((l*=2)>n?l:n),a(this.view,t,n-=8,this.littleEndian,52,8),e&&(this.offset+=8),this},e.writeDouble=e.writeFloat64,e.readFloat64=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var e=u(this.view,t,this.littleEndian,52,8);return n&&(this.offset+=8),e},e.readDouble=e.readFloat64,n.MAX_VARINT32_BYTES=5,n.calculateVarint32=function(t){return(t>>>=0)<128?1:t<16384?2:t<1<<21?3:t<1<<28?4:5},n.zigZagEncode32=function(t){return((t|=0)<<1^t>>31)>>>0},n.zigZagDecode32=function(t){return t>>>1^-(1&t)|0},e.writeVarint32=function(t,e){var l=void 0===e;if(l&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var r=n.calculateVarint32(t),o=this.buffer.byteLength;for((e+=r)>o&&this.resize((o*=2)>e?o:e),e-=r,t>>>=0;t>=128;)this.view[e++]=127&t|128,t>>>=7;return this.view[e++]=t,l?(this.offset=e,this):r},e.writeVarint32ZigZag=function(t,e){return this.writeVarint32(n.zigZagEncode32(t),e)},e.readVarint32=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var e,l=0,r=0;do{if(!this.noAssert&&t>this.limit){var o=Error("Truncated");throw o.truncated=!0,o}e=this.view[t++],l<5&&(r|=(127&e)<<7*l),++l}while(0!=(128&e));return r|=0,n?(this.offset=t,r):{value:r,length:l}},e.readVarint32ZigZag=function(t){var e=this.readVarint32(t);return"object"==typeof e?e.value=n.zigZagDecode32(e.value):e=n.zigZagDecode32(e),e},t&&(n.MAX_VARINT64_BYTES=10,n.calculateVarint64=function(n){"number"==typeof n?n=t.fromNumber(n):"string"==typeof n&&(n=t.fromString(n));var e=n.toInt()>>>0,l=n.shiftRightUnsigned(28).toInt()>>>0,r=n.shiftRightUnsigned(56).toInt()>>>0;return 0==r?0==l?e<16384?e<128?1:2:e<1<<21?3:4:l<16384?l<128?5:6:l<1<<21?7:8:r<128?9:10},n.zigZagEncode64=function(n){return"number"==typeof n?n=t.fromNumber(n,!1):"string"==typeof n?n=t.fromString(n,!1):!1!==n.unsigned&&(n=n.toSigned()),n.shiftLeft(1).xor(n.shiftRight(63)).toUnsigned()},n.zigZagDecode64=function(n){return"number"==typeof n?n=t.fromNumber(n,!1):"string"==typeof n?n=t.fromString(n,!1):!1!==n.unsigned&&(n=n.toSigned()),n.shiftRightUnsigned(1).xor(n.and(t.ONE).toSigned().negate()).toSigned()},e.writeVarint64=function(e,l){var r=void 0===l;if(r&&(l=this.offset),!this.noAssert){if("number"==typeof e)e=t.fromNumber(e);else if("string"==typeof e)e=t.fromString(e);else if(!(e&&e instanceof t))throw TypeError("Illegal value: "+e+" (not an integer or Long)");if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}"number"==typeof e?e=t.fromNumber(e,!1):"string"==typeof e?e=t.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned());var o=n.calculateVarint64(e),i=e.toInt()>>>0,u=e.shiftRightUnsigned(28).toInt()>>>0,a=e.shiftRightUnsigned(56).toInt()>>>0,s=this.buffer.byteLength;switch((l+=o)>s&&this.resize((s*=2)>l?s:l),l-=o,o){case 10:this.view[l+9]=a>>>7&1;case 9:this.view[l+8]=9!==o?128|a:127&a;case 8:this.view[l+7]=8!==o?u>>>21|128:u>>>21&127;case 7:this.view[l+6]=7!==o?u>>>14|128:u>>>14&127;case 6:this.view[l+5]=6!==o?u>>>7|128:u>>>7&127;case 5:this.view[l+4]=5!==o?128|u:127&u;case 4:this.view[l+3]=4!==o?i>>>21|128:i>>>21&127;case 3:this.view[l+2]=3!==o?i>>>14|128:i>>>14&127;case 2:this.view[l+1]=2!==o?i>>>7|128:i>>>7&127;case 1:this.view[l]=1!==o?128|i:127&i}return r?(this.offset+=o,this):o},e.writeVarint64ZigZag=function(t,e){return this.writeVarint64(n.zigZagEncode64(t),e)},e.readVarint64=function(n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+1) <= "+this.buffer.byteLength)}var l=n,r=0,o=0,i=0,u=0;if(r=127&(u=this.view[n++]),128&u&&(r|=(127&(u=this.view[n++]))<<7,(128&u||this.noAssert&&void 0===u)&&(r|=(127&(u=this.view[n++]))<<14,(128&u||this.noAssert&&void 0===u)&&(r|=(127&(u=this.view[n++]))<<21,(128&u||this.noAssert&&void 0===u)&&(o=127&(u=this.view[n++]),(128&u||this.noAssert&&void 0===u)&&(o|=(127&(u=this.view[n++]))<<7,(128&u||this.noAssert&&void 0===u)&&(o|=(127&(u=this.view[n++]))<<14,(128&u||this.noAssert&&void 0===u)&&(o|=(127&(u=this.view[n++]))<<21,(128&u||this.noAssert&&void 0===u)&&(i=127&(u=this.view[n++]),(128&u||this.noAssert&&void 0===u)&&(i|=(127&(u=this.view[n++]))<<7,128&u||this.noAssert&&void 0===u))))))))))throw Error("Buffer overrun");var a=t.fromBits(r|o<<28,o>>>4|i<<24,!1);return e?(this.offset=n,a):{value:a,length:n-l}},e.readVarint64ZigZag=function(e){var l=this.readVarint64(e);return l&&l.value instanceof t?l.value=n.zigZagDecode64(l.value):l=n.zigZagDecode64(l),l}),e.writeCString=function(t,n){var e=void 0===n;e&&(n=this.offset);var l,r=t.length;if(!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");for(l=0;l>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}r=c.calculateUTF16asUTF8(o(t))[1];var i=this.buffer.byteLength;return(n+=r+1)>i&&this.resize((i*=2)>n?i:n),n-=r+1,c.encodeUTF16toUTF8(o(t),(function(t){this.view[n++]=t}).bind(this)),this.view[n++]=0,e?(this.offset=n,this):r},e.readCString=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var e,l=t,r=-1;return c.decodeUTF8toUTF16((function(){if(0===r)return null;if(t>=this.limit)throw RangeError("Illegal range: Truncated data, "+t+" < "+this.limit);return 0===(r=this.view[t++])?null:r}).bind(this),e=i(),!0),n?(this.offset=t,e()):{string:e(),length:t-l}},e.writeIString=function(t,n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var l,r=n;l=c.calculateUTF16asUTF8(o(t),this.noAssert)[1];var i=this.buffer.byteLength;if((n+=4+l)>i&&this.resize((i*=2)>n?i:n),n-=4+l,this.littleEndian?(this.view[n+3]=l>>>24&255,this.view[n+2]=l>>>16&255,this.view[n+1]=l>>>8&255,this.view[n]=255&l):(this.view[n]=l>>>24&255,this.view[n+1]=l>>>16&255,this.view[n+2]=l>>>8&255,this.view[n+3]=255&l),n+=4,c.encodeUTF16toUTF8(o(t),(function(t){this.view[n++]=t}).bind(this)),n!==r+4+l)throw RangeError("Illegal range: Truncated data, "+n+" == "+(n+4+l));return e?(this.offset=n,this):n-r},e.readIString=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var l=t,r=this.readUint32(t),o=this.readUTF8String(r,n.METRICS_BYTES,t+=4);return t+=o.length,e?(this.offset=t,o.string):{string:o.string,length:t-l}},n.METRICS_CHARS="c",n.METRICS_BYTES="b",e.writeUTF8String=function(t,n){var e,l=void 0===n;if(l&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var r=n;e=c.calculateUTF16asUTF8(o(t))[1];var i=this.buffer.byteLength;return(n+=e)>i&&this.resize((i*=2)>n?i:n),n-=e,c.encodeUTF16toUTF8(o(t),(function(t){this.view[n++]=t}).bind(this)),l?(this.offset=n,this):n-r},e.writeString=e.writeUTF8String,n.calculateUTF8Chars=function(t){return c.calculateUTF16asUTF8(o(t))[0]},n.calculateUTF8Bytes=function(t){return c.calculateUTF16asUTF8(o(t))[1]},n.calculateString=n.calculateUTF8Bytes,e.readUTF8String=function(t,e,l){"number"==typeof e&&(l=e,e=void 0);var r=void 0===l;if(r&&(l=this.offset),void 0===e&&(e=n.METRICS_CHARS),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal length: "+t+" (not an integer)");if(t|=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var o,u=0,a=l;if(e===n.METRICS_CHARS){if(o=i(),c.decodeUTF8((function(){return u>>=0)<0||l+t>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+"+t+") <= "+this.buffer.byteLength)}var s=l+t;if(c.decodeUTF8toUTF16((function(){return l>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var r,i,u=e;r=c.calculateUTF16asUTF8(o(t),this.noAssert)[1],i=n.calculateVarint32(r);var a=this.buffer.byteLength;if((e+=i+r)>a&&this.resize((a*=2)>e?a:e),e-=i+r,e+=this.writeVarint32(r,e),c.encodeUTF16toUTF8(o(t),(function(t){this.view[e++]=t}).bind(this)),e!==u+r+i)throw RangeError("Illegal range: Truncated data, "+e+" == "+(e+r+i));return l?(this.offset=e,this):e-u},e.readVString=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var l=t,r=this.readVarint32(t),o=this.readUTF8String(r.value,n.METRICS_BYTES,t+=r.length);return t+=o.length,e?(this.offset=t,o.string):{string:o.string,length:t-l}},e.append=function(t,e,l){"number"!=typeof e&&"string"==typeof e||(l=e,e=void 0);var r=void 0===l;if(r&&(l=this.offset),!this.noAssert){if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}t instanceof n||(t=n.wrap(t,e));var o=t.limit-t.offset;if(o<=0)return this;var i=this.buffer.byteLength;return(l+=o)>i&&this.resize((i*=2)>l?i:l),l-=o,this.view.set(t.view.subarray(t.offset,t.limit),l),t.offset+=o,r&&(this.offset+=o),this},e.appendTo=function(t,n){return t.append(this,n),this},e.assert=function(t){return this.noAssert=!t,this},e.capacity=function(){return this.buffer.byteLength},e.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},e.clone=function(t){var e=new n(0,this.littleEndian,this.noAssert);return t?(e.buffer=new ArrayBuffer(this.buffer.byteLength),e.view=new Uint8Array(e.buffer)):(e.buffer=this.buffer,e.view=this.view),e.offset=this.offset,e.markedOffset=this.markedOffset,e.limit=this.limit,e},e.compact=function(t,n){if(void 0===t&&(t=this.offset),void 0===n&&(n=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal end: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}if(0===t&&n===this.buffer.byteLength)return this;var e=n-t;if(0===e)return this.buffer=l,this.view=null,this.markedOffset>=0&&(this.markedOffset-=t),this.offset=0,this.limit=0,this;var r=new ArrayBuffer(e),o=new Uint8Array(r);return o.set(this.view.subarray(t,n)),this.buffer=r,this.view=o,this.markedOffset>=0&&(this.markedOffset-=t),this.offset=0,this.limit=e,this},e.copy=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}if(t===e)return new n(0,this.littleEndian,this.noAssert);var l=e-t,r=new n(l,this.littleEndian,this.noAssert);return r.offset=0,r.limit=l,r.markedOffset>=0&&(r.markedOffset-=t),this.copyTo(r,0,t,e),r},e.copyTo=function(t,e,l,r){var o,i;if(!this.noAssert&&!n.isByteBuffer(t))throw TypeError("Illegal target: Not a ByteBuffer");if(e=(i=void 0===e)?t.offset:0|e,l=(o=void 0===l)?this.offset:0|l,r=void 0===r?this.limit:0|r,e<0||e>t.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+e+" <= "+t.buffer.byteLength);if(l<0||r>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+l+" <= "+this.buffer.byteLength);var u=r-l;return 0===u?t:(t.ensureCapacity(e+u),t.view.set(this.view.subarray(l,r),e),o&&(this.offset+=u),i&&(t.offset+=u),this)},e.ensureCapacity=function(t){var n=this.buffer.byteLength;return nt?n:t):this},e.fill=function(t,n,e){var l=void 0===n;if(l&&(n=this.offset),"string"==typeof t&&t.length>0&&(t=t.charCodeAt(0)),void 0===n&&(n=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal begin: Not an integer");if(n>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,n<0||n>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+n+" <= "+e+" <= "+this.buffer.byteLength)}if(n>=e)return this;for(;n>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=t,this},e.order=function(t){if(!this.noAssert&&"boolean"!=typeof t)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!t,this},e.LE=function(t){return this.littleEndian=void 0===t||!!t,this},e.BE=function(t){return this.littleEndian=void 0!==t&&!t,this},e.prepend=function(t,e,l){"number"!=typeof e&&"string"==typeof e||(l=e,e=void 0);var r=void 0===l;if(r&&(l=this.offset),!this.noAssert){if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}t instanceof n||(t=n.wrap(t,e));var o=t.limit-t.offset;if(o<=0)return this;var i=o-l;if(i>0){var u=new ArrayBuffer(this.buffer.byteLength+i),a=new Uint8Array(u);a.set(this.view.subarray(l,this.buffer.byteLength),o),this.buffer=u,this.view=a,this.offset+=i,this.markedOffset>=0&&(this.markedOffset+=i),this.limit+=i,l+=i}else new Uint8Array(this.buffer);return this.view.set(t.view.subarray(t.offset,t.limit),l-o),t.offset=t.limit,r&&(this.offset-=o),this},e.prependTo=function(t,n){return t.prepend(this,n),this},e.printDebug=function(t){"function"!=typeof t&&(t=console.log.bind(console)),t(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},e.remaining=function(){return this.limit-this.offset},e.reset=function(){return this.markedOffset>=0?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},e.resize=function(t){if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal capacity: "+t+" (not an integer)");if((t|=0)<0)throw RangeError("Illegal capacity: 0 <= "+t)}if(this.buffer.byteLength>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal end: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}return t===n?this:(Array.prototype.reverse.call(this.view.subarray(t,n)),this)},e.skip=function(t){if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal length: "+t+" (not an integer)");t|=0}var n=this.offset+t;if(!this.noAssert&&(n<0||n>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+t+" <= "+this.buffer.byteLength);return this.offset=n,this},e.slice=function(t,n){if(void 0===t&&(t=this.offset),void 0===n&&(n=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal end: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}var e=this.clone();return e.offset=t,e.limit=n,e},e.toBuffer=function(t){var n=this.offset,e=this.limit;if(!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: Not an integer");if(n>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal limit: Not an integer");if(e>>>=0,n<0||n>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+n+" <= "+e+" <= "+this.buffer.byteLength)}if(!t&&0===n&&e===this.buffer.byteLength)return this.buffer;if(n===e)return l;var r=new ArrayBuffer(e-n);return new Uint8Array(r).set(new Uint8Array(this.buffer).subarray(n,e),0),r},e.toArrayBuffer=e.toBuffer,e.toString=function(t,n,e){if(void 0===t)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof t&&(e=n=t="utf8"),t){case"utf8":return this.toUTF8(n,e);case"base64":return this.toBase64(n,e);case"hex":return this.toHex(n,e);case"binary":return this.toBinary(n,e);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+t)}};var s=function(){for(var t={},n=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],e=[],l=0,r=n.length;l>2&63]),r=(3&l)<<4,null!==(l=t())?(e(n[63&((r|=l>>4&15)|l>>4&15)]),r=(15&l)<<2,null!==(l=t())?(e(n[63&(r|l>>6&3)]),e(n[63&l])):(e(n[63&r]),e(61))):(e(n[63&r]),e(61),e(61))},t.decode=function(t,n){var l,r,o;function i(t){throw Error("Illegal character code: "+t)}for(;null!==(l=t());)if(void 0===(r=e[l])&&i(l),null!==(l=t())&&(void 0===(o=e[l])&&i(l),n(r<<2>>>0|(48&o)>>4),null!==(l=t()))){if(void 0===(r=e[l])){if(61===l)break;i(l)}if(n((15&o)<<4>>>0|(60&r)>>2),null!==(l=t())){if(void 0===(o=e[l])){if(61===l)break;i(l)}n((3&r)<<6>>>0|o)}}},t.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)},t}();e.toBase64=function(t,n){if(void 0===t&&(t=this.offset),void 0===n&&(n=this.limit),n|=0,(t|=0)<0||n>this.capacity||t>n)throw RangeError("begin, end");var e;return s.encode((function(){return tthis.capacity()||t>n)throw RangeError("begin, end");if(t===n)return"";for(var e=[],l=[];t=1024&&(l.push(String.fromCharCode.apply(String,e)),e=[]);return l.join("")+String.fromCharCode.apply(String,e)},n.fromBinary=function(t,e){if("string"!=typeof t)throw TypeError("str");for(var l,r=0,o=t.length,i=new n(o,e);r255)throw RangeError("illegal char code: "+l);i.view[r++]=l}return i.limit=o,i},e.toDebug=function(t){for(var n,e=-1,l=this.buffer.byteLength,r="",o="",i="";e32&&n<127?String.fromCharCode(n):".")),++e,t&&e>0&&e%16==0&&e!==l){for(;r.length<51;)r+=" ";i+=r+o+"\n",r=o=""}r+=e===this.offset&&e===this.limit?e===this.markedOffset?"!":"|":e===this.offset?e===this.markedOffset?"[":"<":e===this.limit?e===this.markedOffset?"]":">":e===this.markedOffset?"'":t||0!==e&&e!==l?" ":""}if(t&&" "!==r){for(;r.length<51;)r+=" ";i+=r+o+"\n"}return t?i:r},n.fromDebug=function(t,e,l){for(var r,o,i=t.length,u=new n((i+1)/3|0,e,l),a=0,s=0,c=!1,f=!1,d=!1,h=!1,p=!1;a":if(!l){if(h){p=!0;break}h=!0}u.limit=s,c=!1;break;case"'":if(!l){if(d){p=!0;break}d=!0}u.markedOffset=s,c=!1;break;case" ":c=!1;break;default:if(!l&&c){p=!0;break}if(o=parseInt(r+t.charAt(a++),16),!l&&(isNaN(o)||o<0||o>255))throw TypeError("Illegal str: Not a debug encoded string");u.view[s++]=o,c=!0}if(p)throw TypeError("Illegal str: Invalid symbol at "+a)}if(!l){if(!f||!h)throw TypeError("Illegal str: Missing offset or limit");if(s>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal end: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}for(var e,l=new Array(n-t);t255))throw TypeError("Illegal str: Contains non-hex characters");i.view[a++]=r}return i.limit=a,i};var c=function(){var t={MAX_CODEPOINT:1114111,encodeUTF8:function(t,n){var e=null;for("number"==typeof t&&(e=t,t=function(){return null});null!==e||null!==(e=t());)e<128?n(127&e):e<2048?(n(e>>6&31|192),n(63&e|128)):e<65536?(n(e>>12&15|224),n(e>>6&63|128),n(63&e|128)):(n(e>>18&7|240),n(e>>12&63|128),n(e>>6&63|128),n(63&e|128)),e=null},decodeUTF8:function(t,n){for(var e,l,r,o,i=function(t){t=t.slice(0,t.indexOf(null));var n=Error(t.toString());throw n.name="TruncatedError",n.bytes=t,n};null!==(e=t());)if(0==(128&e))n(e);else if(192==(224&e))null===(l=t())&&i([e,l]),n((31&e)<<6|63&l);else if(224==(240&e))(null===(l=t())||null===(r=t()))&&i([e,l,r]),n((15&e)<<12|(63&l)<<6|63&r);else{if(240!=(248&e))throw RangeError("Illegal starting byte: "+e);(null===(l=t())||null===(r=t())||null===(o=t()))&&i([e,l,r,o]),n((7&e)<<18|(63&l)<<12|(63&r)<<6|63&o)}},UTF16toUTF8:function(t,n){for(var e,l=null;null!==(e=null!==l?l:t());)e>=55296&&e<=57343&&null!==(l=t())&&l>=56320&&l<=57343?(n(1024*(e-55296)+l-56320+65536),l=null):n(e);null!==l&&n(l)},UTF8toUTF16:function(t,n){var e=null;for("number"==typeof t&&(e=t,t=function(){return null});null!==e||null!==(e=t());)e<=65535?n(e):(n(55296+((e-=65536)>>10)),n(e%1024+56320)),e=null},encodeUTF16toUTF8:function(n,e){t.UTF16toUTF8(n,function(n){t.encodeUTF8(n,e)})},decodeUTF8toUTF16:function(n,e){t.decodeUTF8(n,function(n){t.UTF8toUTF16(n,e)})},calculateCodePoint:function(t){return t<128?1:t<2048?2:t<65536?3:4},calculateUTF8:function(t){for(var n,e=0;null!==(n=t());)e+=n<128?1:n<2048?2:n<65536?3:4;return e},calculateUTF16asUTF8:function(n){var e=0,l=0;return t.UTF16toUTF8(n,function(t){++e,l+=t<128?1:t<2048?2:t<65536?3:4}),[e,l]}};return t}();return e.toUTF8=function(t,n){if(void 0===t&&(t=this.offset),void 0===n&&(n=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal end: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}var e;try{c.decodeUTF8toUTF16((function(){return t2?arguments[2]:void 0,c=Math.min((void 0===s?i:r(s,i))-a,i-u),f=1;for(a0;)a in e?e[u]=e[a]:delete e[u],u+=f,a+=f;return e}},{"./_to-absolute-index":153,"./_to-length":157,"./_to-object":158}],51:[function(t,n,e){"use strict";var l=t("./_to-object"),r=t("./_to-absolute-index"),o=t("./_to-length");n.exports=function(t){for(var n=l(this),e=o(n.length),i=arguments.length,u=r(i>1?arguments[1]:void 0,e),a=i>2?arguments[2]:void 0,s=void 0===a?e:r(a,e);s>u;)n[u++]=t;return n}},{"./_to-absolute-index":153,"./_to-length":157,"./_to-object":158}],52:[function(t,n,e){var l=t("./_for-of");n.exports=function(t,n){var e=[];return l(t,!1,e.push,e,n),e}},{"./_for-of":81}],53:[function(t,n,e){var l=t("./_to-iobject"),r=t("./_to-length"),o=t("./_to-absolute-index");n.exports=function(t){return function(n,e,i){var u,a=l(n),s=r(a.length),c=o(i,s);if(t&&e!=e){for(;s>c;)if((u=a[c++])!=u)return!0}else for(;s>c;c++)if((t||c in a)&&a[c]===e)return t||c||0;return!t&&-1}}},{"./_to-absolute-index":153,"./_to-iobject":156,"./_to-length":157}],54:[function(t,n,e){var l=t("./_ctx"),r=t("./_iobject"),o=t("./_to-object"),i=t("./_to-length"),u=t("./_array-species-create");n.exports=function(t,n){var e=1==t,a=2==t,s=3==t,c=4==t,f=6==t,d=5==t||f,h=n||u;return function(n,u,p){for(var m,g,v=o(n),b=r(v),_=l(u,p,3),y=i(b.length),w=0,E=e?h(n,y):a?h(n,0):void 0;y>w;w++)if((d||w in b)&&(g=_(m=b[w],w,v),t))if(e)E[w]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:E.push(m)}else if(c)return!1;return f?-1:s||c?c:E}}},{"./_array-species-create":57,"./_ctx":67,"./_iobject":89,"./_to-length":157,"./_to-object":158}],55:[function(t,n,e){var l=t("./_a-function"),r=t("./_to-object"),o=t("./_iobject"),i=t("./_to-length");n.exports=function(t,n,e,u,a){l(n);var s=r(t),c=o(s),f=i(s.length),d=a?f-1:0,h=a?-1:1;if(e<2)for(;;){if(d in c){u=c[d],d+=h;break}if(d+=h,a?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;a?d>=0:f>d;d+=h)d in c&&(u=n(u,c[d],d,s));return u}},{"./_a-function":45,"./_iobject":89,"./_to-length":157,"./_to-object":158}],56:[function(t,n,e){var l=t("./_is-object"),r=t("./_is-array"),o=t("./_wks")("species");n.exports=function(t){var n;return r(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!r(n.prototype)||(n=void 0),l(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},{"./_is-array":91,"./_is-object":93,"./_wks":167}],57:[function(t,n,e){var l=t("./_array-species-constructor");n.exports=function(t,n){return new(l(t))(n)}},{"./_array-species-constructor":56}],58:[function(t,n,e){"use strict";var l=t("./_a-function"),r=t("./_is-object"),o=t("./_invoke"),i=[].slice,u={};n.exports=Function.bind||function(t){var n=l(this),e=i.call(arguments,1),a=function(){var l=e.concat(i.call(arguments));return this instanceof a?function(t,n,e){if(!(n in u)){for(var l=[],r=0;r1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(l(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!g(p(this,n),t)}}),d&&l(c.prototype,"size",{get:function(){return p(this,n)[m]}}),c},def:function(t,n,e){var l,r,o=g(t,n);return o?o.v=e:(t._l=o={i:r=h(n,!0),k:n,v:e,p:l=t._l,n:void 0,r:!1},t._f||(t._f=o),l&&(l.n=o),t[m]++,"F"!==r&&(t._i[r]=o)),t},getEntry:g,setStrong:function(t,n,e){s(t,n,function(t,e){this._t=p(t,n),this._k=e,this._l=void 0},function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?c(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,c(1))},e?"entries":"values",!e,!0),f(n)}}},{"./_an-instance":48,"./_ctx":67,"./_descriptors":71,"./_for-of":81,"./_iter-define":97,"./_iter-step":99,"./_meta":107,"./_object-create":112,"./_object-dp":113,"./_redefine-all":132,"./_set-species":139,"./_validate-collection":164}],62:[function(t,n,e){var l=t("./_classof"),r=t("./_array-from-iterable");n.exports=function(t){return function(){if(l(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},{"./_array-from-iterable":52,"./_classof":59}],63:[function(t,n,e){"use strict";var l=t("./_redefine-all"),r=t("./_meta").getWeak,o=t("./_an-object"),i=t("./_is-object"),u=t("./_an-instance"),a=t("./_for-of"),s=t("./_array-methods"),c=t("./_has"),f=t("./_validate-collection"),d=s(5),h=s(6),p=0,m=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},v=function(t,n){return d(t.a,function(t){return t[0]===n})};g.prototype={get:function(t){var n=v(this,t);if(n)return n[1]},has:function(t){return!!v(this,t)},set:function(t,n){var e=v(this,t);e?e[1]=n:this.a.push([t,n])},delete:function(t){var n=h(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},n.exports={getConstructor:function(t,n,e,o){var s=t(function(t,l){u(t,s,n,"_i"),t._t=n,t._i=p++,t._l=void 0,void 0!=l&&a(l,e,t[o],t)});return l(s.prototype,{delete:function(t){if(!i(t))return!1;var e=r(t);return!0===e?m(f(this,n)).delete(t):e&&c(e,this._i)&&delete e[this._i]},has:function(t){if(!i(t))return!1;var e=r(t);return!0===e?m(f(this,n)).has(t):e&&c(e,this._i)}}),s},def:function(t,n,e){var l=r(o(n),!0);return!0===l?m(t).set(n,e):l[t._i]=e,t},ufstore:m}},{"./_an-instance":48,"./_an-object":49,"./_array-methods":54,"./_for-of":81,"./_has":83,"./_is-object":93,"./_meta":107,"./_redefine-all":132,"./_validate-collection":164}],64:[function(t,n,e){"use strict";var l=t("./_global"),r=t("./_export"),o=t("./_redefine"),i=t("./_redefine-all"),u=t("./_meta"),a=t("./_for-of"),s=t("./_an-instance"),c=t("./_is-object"),f=t("./_fails"),d=t("./_iter-detect"),h=t("./_set-to-string-tag"),p=t("./_inherit-if-required");n.exports=function(t,n,e,m,g,v){var b=l[t],_=b,y=g?"set":"add",w=_&&_.prototype,E={},C=function(t){var n=w[t];o(w,t,"delete"==t?function(t){return!(v&&!c(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(v&&!c(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!c(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof _&&(v||w.forEach&&!f(function(){(new _).entries().next()}))){var A=new _,x=A[y](v?{}:-0,1)!=A,S=f(function(){A.has(1)}),F=d(function(t){new _(t)}),k=!v&&f(function(){for(var t=new _,n=5;n--;)t[y](n,n);return!t.has(-0)});F||((_=n(function(n,e){s(n,_,t);var l=p(new b,n,_);return void 0!=e&&a(e,g,l[y],l),l})).prototype=w,w.constructor=_),(S||k)&&(C("delete"),C("has"),g&&C("get")),(k||x)&&C(y),v&&w.clear&&delete w.clear}else _=m.getConstructor(n,t,g,y),i(_.prototype,e),u.NEED=!0;return h(_,t),E[t]=_,r(r.G+r.W+r.F*(_!=b),E),v||m.setStrong(_,t,g),_}},{"./_an-instance":48,"./_export":75,"./_fails":77,"./_for-of":81,"./_global":82,"./_inherit-if-required":87,"./_is-object":93,"./_iter-detect":98,"./_meta":107,"./_redefine":133,"./_redefine-all":132,"./_set-to-string-tag":140}],65:[function(t,n,e){var l=n.exports={version:"2.5.1"};"number"==typeof __e&&(__e=l)},{}],66:[function(t,n,e){"use strict";var l=t("./_object-dp"),r=t("./_property-desc");n.exports=function(t,n,e){n in t?l.f(t,n,r(0,e)):t[n]=e}},{"./_object-dp":113,"./_property-desc":131}],67:[function(t,n,e){var l=t("./_a-function");n.exports=function(t,n,e){if(l(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,l){return t.call(n,e,l)};case 3:return function(e,l,r){return t.call(n,e,l,r)}}return function(){return t.apply(n,arguments)}}},{"./_a-function":45}],68:[function(t,n,e){"use strict";var l=t("./_fails"),r=Date.prototype.getTime,o=Date.prototype.toISOString,i=function(t){return t>9?t:"0"+t};n.exports=l(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!l(function(){o.call(new Date(NaN))})?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),e=t.getUTCMilliseconds(),l=n<0?"-":n>9999?"+":"";return l+("00000"+Math.abs(n)).slice(l?-6:-4)+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())+"."+(e>99?e:"0"+i(e))+"Z"}:o},{"./_fails":77}],69:[function(t,n,e){"use strict";var l=t("./_an-object"),r=t("./_to-primitive");n.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return r(l(this),"number"!=t)}},{"./_an-object":49,"./_to-primitive":159}],70:[function(t,n,e){n.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],71:[function(t,n,e){n.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":77}],72:[function(t,n,e){var l=t("./_is-object"),r=t("./_global").document,o=l(r)&&l(r.createElement);n.exports=function(t){return o?r.createElement(t):{}}},{"./_global":82,"./_is-object":93}],73:[function(t,n,e){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],74:[function(t,n,e){var l=t("./_object-keys"),r=t("./_object-gops"),o=t("./_object-pie");n.exports=function(t){var n=l(t),e=r.f;if(e)for(var i,u=e(t),a=o.f,s=0;u.length>s;)a.call(t,i=u[s++])&&n.push(i);return n}},{"./_object-gops":119,"./_object-keys":122,"./_object-pie":123}],75:[function(t,n,e){var l=t("./_global"),r=t("./_core"),o=t("./_hide"),i=t("./_redefine"),u=t("./_ctx"),a=function(t,n,e){var s,c,f,d,h=t&a.F,p=t&a.G,m=t&a.P,g=t&a.B,v=p?l:t&a.S?l[n]||(l[n]={}):(l[n]||{}).prototype,b=p?r:r[n]||(r[n]={}),_=b.prototype||(b.prototype={});for(s in p&&(e=n),e)f=((c=!h&&v&&void 0!==v[s])?v:e)[s],d=g&&c?u(f,l):m&&"function"==typeof f?u(Function.call,f):f,v&&i(v,s,f,t&a.U),b[s]!=f&&o(b,s,d),m&&_[s]!=f&&(_[s]=f)};l.core=r,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,n.exports=a},{"./_core":65,"./_ctx":67,"./_global":82,"./_hide":84,"./_redefine":133}],76:[function(t,n,e){var l=t("./_wks")("match");n.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[l]=!1,!"/./"[t](n)}catch(t){}}return!0}},{"./_wks":167}],77:[function(t,n,e){n.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],78:[function(t,n,e){"use strict";var l=t("./_hide"),r=t("./_redefine"),o=t("./_fails"),i=t("./_defined"),u=t("./_wks");n.exports=function(t,n,e){var a=u(t),s=e(i,a,""[t]),c=s[0],f=s[1];o(function(){var n={};return n[a]=function(){return 7},7!=""[t](n)})&&(r(String.prototype,t,c),l(RegExp.prototype,a,2==n?function(t,n){return f.call(t,this,n)}:function(t){return f.call(t,this)}))}},{"./_defined":70,"./_fails":77,"./_hide":84,"./_redefine":133,"./_wks":167}],79:[function(t,n,e){"use strict";var l=t("./_an-object");n.exports=function(){var t=l(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},{"./_an-object":49}],80:[function(t,n,e){"use strict";var l=t("./_is-array"),r=t("./_is-object"),o=t("./_to-length"),i=t("./_ctx"),u=t("./_wks")("isConcatSpreadable");n.exports=function t(n,e,a,s,c,f,d,h){for(var p,m,g=c,v=0,b=!!d&&i(d,h,3);v0)g=t(n,e,p,o(p.length),g,f-1)-1;else{if(g>=9007199254740991)throw TypeError();n[g]=p}g++}v++}return g}},{"./_ctx":67,"./_is-array":91,"./_is-object":93,"./_to-length":157,"./_wks":167}],81:[function(t,n,e){var l=t("./_ctx"),r=t("./_iter-call"),o=t("./_is-array-iter"),i=t("./_an-object"),u=t("./_to-length"),a=t("./core.get-iterator-method"),s={},c={};(e=n.exports=function(t,n,e,f,d){var h,p,m,g,v=d?function(){return t}:a(t),b=l(e,f,n?2:1),_=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(h=u(t.length);h>_;_++)if((g=n?b(i(p=t[_])[0],p[1]):b(t[_]))===s||g===c)return g}else for(m=v.call(t);!(p=m.next()).done;)if((g=r(m,b,p.value,n))===s||g===c)return g}).BREAK=s,e.RETURN=c},{"./_an-object":49,"./_ctx":67,"./_is-array-iter":90,"./_iter-call":95,"./_to-length":157,"./core.get-iterator-method":168}],82:[function(t,n,e){var l=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=l)},{}],83:[function(t,n,e){var l={}.hasOwnProperty;n.exports=function(t,n){return l.call(t,n)}},{}],84:[function(t,n,e){var l=t("./_object-dp"),r=t("./_property-desc");n.exports=t("./_descriptors")?function(t,n,e){return l.f(t,n,r(1,e))}:function(t,n,e){return t[n]=e,t}},{"./_descriptors":71,"./_object-dp":113,"./_property-desc":131}],85:[function(t,n,e){var l=t("./_global").document;n.exports=l&&l.documentElement},{"./_global":82}],86:[function(t,n,e){n.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":71,"./_dom-create":72,"./_fails":77}],87:[function(t,n,e){var l=t("./_is-object"),r=t("./_set-proto").set;n.exports=function(t,n,e){var o,i=n.constructor;return i!==e&&"function"==typeof i&&(o=i.prototype)!==e.prototype&&l(o)&&r&&r(t,o),t}},{"./_is-object":93,"./_set-proto":138}],88:[function(t,n,e){n.exports=function(t,n,e){var l=void 0===e;switch(n.length){case 0:return l?t():t.call(e);case 1:return l?t(n[0]):t.call(e,n[0]);case 2:return l?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return l?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return l?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},{}],89:[function(t,n,e){var l=t("./_cof");n.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==l(t)?t.split(""):Object(t)}},{"./_cof":60}],90:[function(t,n,e){var l=t("./_iterators"),r=t("./_wks")("iterator"),o=Array.prototype;n.exports=function(t){return void 0!==t&&(l.Array===t||o[r]===t)}},{"./_iterators":100,"./_wks":167}],91:[function(t,n,e){var l=t("./_cof");n.exports=Array.isArray||function(t){return"Array"==l(t)}},{"./_cof":60}],92:[function(t,n,e){var l=t("./_is-object"),r=Math.floor;n.exports=function(t){return!l(t)&&isFinite(t)&&r(t)===t}},{"./_is-object":93}],93:[function(t,n,e){n.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],94:[function(t,n,e){var l=t("./_is-object"),r=t("./_cof"),o=t("./_wks")("match");n.exports=function(t){var n;return l(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==r(t))}},{"./_cof":60,"./_is-object":93,"./_wks":167}],95:[function(t,n,e){var l=t("./_an-object");n.exports=function(t,n,e,r){try{return r?n(l(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&l(o.call(t)),n}}},{"./_an-object":49}],96:[function(t,n,e){"use strict";var l=t("./_object-create"),r=t("./_property-desc"),o=t("./_set-to-string-tag"),i={};t("./_hide")(i,t("./_wks")("iterator"),function(){return this}),n.exports=function(t,n,e){t.prototype=l(i,{next:r(1,e)}),o(t,n+" Iterator")}},{"./_hide":84,"./_object-create":112,"./_property-desc":131,"./_set-to-string-tag":140,"./_wks":167}],97:[function(t,n,e){"use strict";var l=t("./_library"),r=t("./_export"),o=t("./_redefine"),i=t("./_hide"),u=t("./_has"),a=t("./_iterators"),s=t("./_iter-create"),c=t("./_set-to-string-tag"),f=t("./_object-gpo"),d=t("./_wks")("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};n.exports=function(t,n,e,m,g,v,b){s(e,n,m);var _,y,w,E=function(t){if(!h&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},C=n+" Iterator",A="values"==g,x=!1,S=t.prototype,F=S[d]||S["@@iterator"]||g&&S[g],k=F||E(g),B=g?A?E("entries"):k:void 0,D="Array"==n&&S.entries||F;if(D&&(w=f(D.call(new t)))!==Object.prototype&&w.next&&(c(w,C,!0),l||u(w,d)||i(w,d,p)),A&&F&&"values"!==F.name&&(x=!0,k=function(){return F.call(this)}),l&&!b||!h&&!x&&S[d]||i(S,d,k),a[n]=k,a[C]=p,g)if(_={values:A?k:E("values"),keys:v?k:E("keys"),entries:B},b)for(y in _)y in S||o(S,y,_[y]);else r(r.P+r.F*(h||x),n,_);return _}},{"./_export":75,"./_has":83,"./_hide":84,"./_iter-create":96,"./_iterators":100,"./_library":101,"./_object-gpo":120,"./_redefine":133,"./_set-to-string-tag":140,"./_wks":167}],98:[function(t,n,e){var l=t("./_wks")("iterator"),r=!1;try{var o=[7][l]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}n.exports=function(t,n){if(!n&&!r)return!1;var e=!1;try{var o=[7],i=o[l]();i.next=function(){return{done:e=!0}},o[l]=function(){return i},t(o)}catch(t){}return e}},{"./_wks":167}],99:[function(t,n,e){n.exports=function(t,n){return{value:n,done:!!t}}},{}],100:[function(t,n,e){n.exports={}},{}],101:[function(t,n,e){n.exports=!1},{}],102:[function(t,n,e){var l=Math.expm1;n.exports=!l||l(10)>22025.465794806718||l(10)<22025.465794806718||-2e-17!=l(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:l},{}],103:[function(t,n,e){var l=t("./_math-sign"),r=Math.pow,o=r(2,-52),i=r(2,-23),u=r(2,127)*(2-i),a=r(2,-126);n.exports=Math.fround||function(t){var n,e,r=Math.abs(t),s=l(t);return ru||e!=e?s*(1/0):s*e}},{"./_math-sign":106}],104:[function(t,n,e){n.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},{}],105:[function(t,n,e){n.exports=Math.scale||function(t,n,e,l,r){return 0===arguments.length||t!=t||n!=n||e!=e||l!=l||r!=r?NaN:t===1/0||t===-1/0?t:(t-n)*(r-l)/(e-n)+l}},{}],106:[function(t,n,e){n.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},{}],107:[function(t,n,e){var l=t("./_uid")("meta"),r=t("./_is-object"),o=t("./_has"),i=t("./_object-dp").f,u=0,a=Object.isExtensible||function(){return!0},s=!t("./_fails")(function(){return a(Object.preventExtensions({}))}),c=function(t){i(t,l,{value:{i:"O"+ ++u,w:{}}})},f=n.exports={KEY:l,NEED:!1,fastKey:function(t,n){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,l)){if(!a(t))return"F";if(!n)return"E";c(t)}return t[l].i},getWeak:function(t,n){if(!o(t,l)){if(!a(t))return!0;if(!n)return!1;c(t)}return t[l].w},onFreeze:function(t){return s&&f.NEED&&a(t)&&!o(t,l)&&c(t),t}}},{"./_fails":77,"./_has":83,"./_is-object":93,"./_object-dp":113,"./_uid":163}],108:[function(t,n,e){var l=t("./es6.map"),r=t("./_export"),o=t("./_shared")("metadata"),i=o.store||(o.store=new(t("./es6.weak-map"))),u=function(t,n,e){var r=i.get(t);if(!r){if(!e)return;i.set(t,r=new l)}var o=r.get(n);if(!o){if(!e)return;r.set(n,o=new l)}return o};n.exports={store:i,map:u,has:function(t,n,e){var l=u(n,e,!1);return void 0!==l&&l.has(t)},get:function(t,n,e){var l=u(n,e,!1);return void 0===l?void 0:l.get(t)},set:function(t,n,e,l){u(e,l,!0).set(t,n)},keys:function(t,n){var e=u(t,n,!1),l=[];return e&&e.forEach(function(t,n){l.push(n)}),l},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){r(r.S,"Reflect",t)}}},{"./_export":75,"./_shared":142,"./es6.map":199,"./es6.weak-map":305}],109:[function(t,n,e){var l=t("./_global"),r=t("./_task").set,o=l.MutationObserver||l.WebKitMutationObserver,i=l.process,u=l.Promise,a="process"==t("./_cof")(i);n.exports=function(){var t,n,e,s=function(){var l,r;for(a&&(l=i.domain)&&l.exit();t;){r=t.fn,t=t.next;try{r()}catch(l){throw t?e():n=void 0,l}}n=void 0,l&&l.enter()};if(a)e=function(){i.nextTick(s)};else if(o){var c=!0,f=document.createTextNode("");new o(s).observe(f,{characterData:!0}),e=function(){f.data=c=!c}}else if(u&&u.resolve){var d=u.resolve();e=function(){d.then(s)}}else e=function(){r.call(l,s)};return function(l){var r={fn:l,next:void 0};n&&(n.next=r),t||(t=r,e()),n=r}}},{"./_cof":60,"./_global":82,"./_task":152}],110:[function(t,n,e){"use strict";var l=t("./_a-function");n.exports.f=function(t){return new function(t){var n,e;this.promise=new t(function(t,l){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=l}),this.resolve=l(n),this.reject=l(e)}(t)}},{"./_a-function":45}],111:[function(t,n,e){"use strict";var l=t("./_object-keys"),r=t("./_object-gops"),o=t("./_object-pie"),i=t("./_to-object"),u=t("./_iobject"),a=Object.assign;n.exports=!a||t("./_fails")(function(){var t={},n={},e=Symbol(),l="abcdefghijklmnopqrst";return t[e]=7,l.split("").forEach(function(t){n[t]=t}),7!=a({},t)[e]||Object.keys(a({},n)).join("")!=l})?function(t,n){for(var e=i(t),a=arguments.length,s=1,c=r.f,f=o.f;a>s;)for(var d,h=u(arguments[s++]),p=c?l(h).concat(c(h)):l(h),m=p.length,g=0;m>g;)f.call(h,d=p[g++])&&(e[d]=h[d]);return e}:a},{"./_fails":77,"./_iobject":89,"./_object-gops":119,"./_object-keys":122,"./_object-pie":123,"./_to-object":158}],112:[function(t,n,e){var l=t("./_an-object"),r=t("./_object-dps"),o=t("./_enum-bug-keys"),i=t("./_shared-key")("IE_PROTO"),u=function(){},a=function(){var n,e=t("./_dom-create")("iframe"),l=o.length;for(e.style.display="none",t("./_html").appendChild(e),e.src="javascript:",(n=e.contentWindow.document).open(),n.write("