Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
1 lines (1 sloc) 29.3 KB
{"version":3,"file":"vendors~news.c41752de01f1630fa8af.js","sources":["webpack:///vendors~news.c41752de01f1630fa8af.js"],"sourcesContent":["(this.webpackJsonp=this.webpackJsonp||[]).push([[25],{2058:function(t,e,a){\"use strict\";var r=function(){function t(t,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,a,r){return a&&t(e.prototype,a),r&&t(e,r),e}}(),o=function(t){return t&&t.__esModule?t:{default:t}}(a(2212));var i=a(2219),n=function(){function t(e){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),(0,o.default)(e,function(t,e){a[e]=t})}return r(t,[{key:\"get\",value:function(t){return this[t]}},{key:\"set\",value:function(t,e){this[t]=e}}]),t}();if(t.exports=new n(i),void 0!==t.exports.Config)throw new Error(\"default config.json file may not contain a property 'Config'\");t.exports.Config=n},2059:function(t,e,a){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=function(){function t(t,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,a,r){return a&&t(e.prototype,a),r&&t(e,r),e}}();e.jsonRpc=f;var o=s(a(2222)),i=s(a(865)),n=s(a(2060));function s(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function u(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function c(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=(0,i.default)(\"steem:http\"),l=function(t){function e(t){p(this,e);var a=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.message));return a.name=\"RPCError\",a.code=t.code,a.data=t.data,a}return c(e,Error),e}();function f(t,e){var a=e.method,r=e.id,i=e.params,n={id:r,jsonrpc:\"2.0\",method:a,params:i};return(0,o.default)(t,{body:JSON.stringify(n),method:\"post\",mode:\"cors\",headers:{Accept:\"application/json, text/plain, */*\",\"Content-Type\":\"application/json\"}}).then(function(t){if(!t.ok)throw new Error(\"HTTP \"+t.status+\": \"+t.statusText);return t.json()}).then(function(t){if(t.id!==r)throw new Error(\"Invalid response id: \"+t.id);if(t.error)throw new l(t.error);return t.result})}var h=function(t){function e(){return p(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,n.default),r(e,[{key:\"send\",value:function(t,e,a){this.options.useAppbaseApi&&(t=\"condenser_api\"),d(\"Steem::send\",t,e);var r=e.id||this.id++,o=[t,e.method,e.params];f(this.options.uri,{method:\"call\",id:r,params:o}).then(function(t){a(null,t)},function(t){a(t)})}}]),e}();e.default=h},2060:function(t,e,a){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=function(){function t(t,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,a,r){return a&&t(e.prototype,a),r&&t(e,r),e}}(),o=function(t){return t&&t.__esModule?t:{default:t}}(a(360));var i=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return a.options=t,a.id=0,a}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:\"setOptions\",value:function(t){Object.assign(this.options,t),this.stop()}},{key:\"listenTo\",value:function(t,e,a){return t.addEventListener?t.addEventListener(e,a):t.on(e,a),function(){t.removeEventListener?t.removeEventListener(e,a):t.removeListener(e,a)}}},{key:\"send\",value:function(){}},{key:\"start\",value:function(){}},{key:\"stop\",value:function(){}}]),e}();e.default=i},2061:function(t,e,a){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.camelCase=function(t){return t.replace(r,function(t,e){return e.toUpperCase()})};var r=/_([a-z])/g},2210:function(t,e,a){\"use strict\";var r=a(2211),o=a(2058),i=a(2061);t.exports={api:r,config:o,utils:i}},2211:function(t,e,a){\"use strict\";var 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=function(){function t(t,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,a,r){return a&&t(e.prototype,a),r&&t(e,r),e}}(),i=d(a(360)),n=d(a(2058)),s=d(a(2220)),p=d(a(2221)),u=a(2061),c=a(2059);function d(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return a._setTransport(t),a._setLogger(t),a.options=t,a.seqNo=0,s.default.forEach(function(t){var e=t.method_name||(0,u.camelCase)(t.method),r=t.params||[];a[e+\"With\"]=function(e,o){return new Promise(function(o,i){a.send(t.api,{method:t.method,params:r.map(function(t){return e[t]})},function(t,e){t?i(t):o(e)})})},a[e]=function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];var n=r.reduce(function(t,e,a){return t[e]=o[a],t},{}),s=o[r.length];return a[e+\"With\"](n,s)}}),a}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),o(e,[{key:\"_setTransport\",value:function(t){if(t.url&&t.url.match(\"^((http|https)?://)\"))t.uri=t.url,t.transport=\"http\",this._transportType=t.transport,this.options=t,this.transport=new p.default.http(t);else if(t.url&&t.url.match(\"^((ws|wss)?://)\"))t.websocket=t.url,t.transport=\"ws\",this._transportType=t.transport,this.options=t,this.transport=new p.default.ws(t);else if(t.transport)if(this.transport&&this._transportType!==t.transport&&this.transport.stop(),this._transportType=t.transport,\"string\"==typeof t.transport){if(!p.default[t.transport])throw new TypeError(\"Invalid `transport`, valid values are `http`, `ws` or a class\");this.transport=new p.default[t.transport](t)}else this.transport=new t.transport(t);else this.transport=new p.default.ws(t)}},{key:\"_setLogger\",value:function(t){if(t.hasOwnProperty(\"logger\"))switch(r(t.logger)){case\"function\":this.__logger={log:t.logger};break;case\"object\":if(\"function\"!=typeof t.logger.log)throw new Error(\"setOptions({logger:{}}) must have a property .log of type function\");this.__logger=t.logger;break;case\"undefined\":if(this.__logger)break;default:this.__logger=!1}}},{key:\"log\",value:function(t){if(this.__logger)if(arguments.length>1&&\"function\"==typeof this.__logger[t]){var e=Array.prototype.slice.call(arguments,1);this.__logger[t].apply(this.__logger,e)}else this.__logger.log.apply(this.__logger,arguments)}},{key:\"start\",value:function(){return this.transport.start()}},{key:\"stop\",value:function(){return this.transport.stop()}},{key:\"send\",value:function(t,e,a){var r=a;if(this.__logger){var o=Math.random(),i=this;this.log(\"xmit:\"+o+\":\",e),r=function(t,e){t?i.log(\"error\",\"rsp:\"+o+\":\\n\\n\",t,e):i.log(\"rsp:\"+o+\":\",e),a&&a.apply(i,arguments)}}return this.transport.send(t,e,r)}},{key:\"call\",value:function(t,e,a){if(\"http\"===this._transportType){var r=++this.seqNo;(0,c.jsonRpc)(this.options.uri,{method:t,params:e,id:r}).then(function(t){a(null,t)},function(t){a(t)})}else a(new Error(\"RPC methods can only be called when using http transport\"))}},{key:\"setOptions\",value:function(t){Object.assign(this.options,t),this._setLogger(t),this._setTransport(t),this.transport.setOptions(t)}},{key:\"setWebSocket\",value:function(t){this.setOptions({websocket:t})}},{key:\"setUri\",value:function(t){this.setOptions({uri:t})}}]),e}(),f=new l(n.default);(t.exports=f).Steem=l},2212:function(t,e,a){t.exports=a(2213)},2213:function(t,e,a){var r=a(2214),o=a(2215),i=a(2218),n=a(172);t.exports=function(t,e){return(n(t)?r:o)(t,i(e))}},2214:function(t,e){t.exports=function(t,e){for(var a=-1,r=null==t?0:t.length;++a<r&&!1!==e(t[a],a,t););return t}},2215:function(t,e,a){var r=a(2216),o=a(2217)(r);t.exports=o},2216:function(t,e,a){var r=a(869),o=a(460);t.exports=function(t,e){return t&&r(t,e,o)}},2217:function(t,e,a){var r=a(330);t.exports=function(t,e){return function(a,o){if(null==a)return a;if(!r(a))return t(a,o);for(var i=a.length,n=e?i:-1,s=Object(a);(e?n--:++n<i)&&!1!==o(s[n],n,s););return a}}},2218:function(t,e,a){var r=a(459);t.exports=function(t){return\"function\"==typeof t?t:r}},2219:function(t){t.exports={transport:\"http\",websocket:\"wss://gtg.steem.house:8090\",uri:\"https://api.steemit.com\",url:\"\",dev_uri:\"https://api.steemitdev.com\",stage_uri:\"https://api.steemitstage.com\",address_prefix:\"STM\",chain_id:\"0000000000000000000000000000000000000000000000000000000000000000\"}},2220:function(t,e,a){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=[{api:\"database_api\",method:\"set_subscribe_callback\",params:[\"callback\",\"clearFilter\"]},{api:\"database_api\",method:\"set_pending_transaction_callback\",params:[\"cb\"]},{api:\"database_api\",method:\"set_block_applied_callback\",params:[\"cb\"]},{api:\"database_api\",method:\"cancel_all_subscriptions\"},{api:\"database_api\",method:\"get_trending_tags\",params:[\"afterTag\",\"limit\"]},{api:\"database_api\",method:\"get_tags_used_by_author\",params:[\"author\"]},{api:\"database_api\",method:\"get_post_discussions_by_payout\",params:[\"query\"]},{api:\"database_api\",method:\"get_comment_discussions_by_payout\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_trending\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_trending30\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_created\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_active\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_cashout\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_payout\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_votes\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_children\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_hot\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_feed\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_blog\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_comments\",params:[\"query\"]},{api:\"database_api\",method:\"get_discussions_by_promoted\",params:[\"query\"]},{api:\"database_api\",method:\"get_block_header\",params:[\"blockNum\"]},{api:\"database_api\",method:\"get_block\",params:[\"blockNum\"]},{api:\"database_api\",method:\"get_ops_in_block\",params:[\"blockNum\",\"onlyVirtual\"]},{api:\"database_api\",method:\"get_state\",params:[\"path\"]},{api:\"database_api\",method:\"get_trending_categories\",params:[\"after\",\"limit\"]},{api:\"database_api\",method:\"get_best_categories\",params:[\"after\",\"limit\"]},{api:\"database_api\",method:\"get_active_categories\",params:[\"after\",\"limit\"]},{api:\"database_api\",method:\"get_recent_categories\",params:[\"after\",\"limit\"]},{api:\"database_api\",method:\"get_config\"},{api:\"database_api\",method:\"get_dynamic_global_properties\"},{api:\"database_api\",method:\"get_chain_properties\"},{api:\"database_api\",method:\"get_feed_history\"},{api:\"database_api\",method:\"get_current_median_history_price\"},{api:\"database_api\",method:\"get_witness_schedule\"},{api:\"database_api\",method:\"get_hardfork_version\"},{api:\"database_api\",method:\"get_next_scheduled_hardfork\"},{api:\"account_by_key_api\",method:\"get_key_references\",params:[\"key\"]},{api:\"database_api\",method:\"get_accounts\",params:[\"names\"]},{api:\"database_api\",method:\"get_account_references\",params:[\"accountId\"]},{api:\"database_api\",method:\"lookup_account_names\",params:[\"accountNames\"]},{api:\"database_api\",method:\"lookup_accounts\",params:[\"lowerBoundName\",\"limit\"]},{api:\"database_api\",method:\"get_account_count\"},{api:\"database_api\",method:\"get_conversion_requests\",params:[\"accountName\"]},{api:\"database_api\",method:\"get_account_history\",params:[\"account\",\"from\",\"limit\"]},{api:\"database_api\",method:\"get_owner_history\",params:[\"account\"]},{api:\"database_api\",method:\"get_recovery_request\",params:[\"account\"]},{api:\"database_api\",method:\"get_escrow\",params:[\"from\",\"escrowId\"]},{api:\"database_api\",method:\"get_withdraw_routes\",params:[\"account\",\"withdrawRouteType\"]},{api:\"database_api\",method:\"get_account_bandwidth\",params:[\"account\",\"bandwidthType\"]},{api:\"database_api\",method:\"get_savings_withdraw_from\",params:[\"account\"]},{api:\"database_api\",method:\"get_savings_withdraw_to\",params:[\"account\"]},{api:\"database_api\",method:\"get_order_book\",params:[\"limit\"]},{api:\"database_api\",method:\"get_open_orders\",params:[\"owner\"]},{api:\"database_api\",method:\"get_liquidity_queue\",params:[\"startAccount\",\"limit\"]},{api:\"database_api\",method:\"get_transaction_hex\",params:[\"trx\"]},{api:\"database_api\",method:\"get_transaction\",params:[\"trxId\"]},{api:\"database_api\",method:\"get_required_signatures\",params:[\"trx\",\"availableKeys\"]},{api:\"database_api\",method:\"get_potential_signatures\",params:[\"trx\"]},{api:\"database_api\",method:\"verify_authority\",params:[\"trx\"]},{api:\"database_api\",method:\"verify_account_authority\",params:[\"nameOrId\",\"signers\"]},{api:\"database_api\",method:\"get_active_votes\",params:[\"author\",\"permlink\"]},{api:\"database_api\",method:\"get_account_votes\",params:[\"voter\"]},{api:\"database_api\",method:\"get_content\",params:[\"author\",\"permlink\"]},{api:\"database_api\",method:\"get_content_replies\",params:[\"author\",\"permlink\"]},{api:\"database_api\",method:\"get_discussions_by_author_before_date\",params:[\"author\",\"startPermlink\",\"beforeDate\",\"limit\"]},{api:\"database_api\",method:\"get_replies_by_last_update\",params:[\"startAuthor\",\"startPermlink\",\"limit\"]},{api:\"database_api\",method:\"get_witnesses\",params:[\"witnessIds\"]},{api:\"database_api\",method:\"get_witness_by_account\",params:[\"accountName\"]},{api:\"database_api\",method:\"get_witnesses_by_vote\",params:[\"from\",\"limit\"]},{api:\"database_api\",method:\"lookup_witness_accounts\",params:[\"lowerBoundName\",\"limit\"]},{api:\"database_api\",method:\"get_witness_count\"},{api:\"database_api\",method:\"get_active_witnesses\"},{api:\"database_api\",method:\"get_miner_queue\"},{api:\"database_api\",method:\"get_reward_fund\",params:[\"name\"]},{api:\"database_api\",method:\"get_vesting_delegations\",params:[\"account\",\"from\",\"limit\"]},{api:\"login_api\",method:\"login\",params:[\"username\",\"password\"]},{api:\"login_api\",method:\"get_api_by_name\",params:[\"database_api\"]},{api:\"login_api\",method:\"get_version\"},{api:\"follow_api\",method:\"get_followers\",params:[\"following\",\"startFollower\",\"followType\",\"limit\"]},{api:\"follow_api\",method:\"get_following\",params:[\"follower\",\"startFollowing\",\"followType\",\"limit\"]},{api:\"follow_api\",method:\"get_follow_count\",params:[\"account\"]},{api:\"follow_api\",method:\"get_feed_entries\",params:[\"account\",\"entryId\",\"limit\"]},{api:\"follow_api\",method:\"get_feed\",params:[\"account\",\"entryId\",\"limit\"]},{api:\"follow_api\",method:\"get_blog_entries\",params:[\"account\",\"entryId\",\"limit\"]},{api:\"follow_api\",method:\"get_blog\",params:[\"account\",\"entryId\",\"limit\"]},{api:\"follow_api\",method:\"get_account_reputations\",params:[\"lowerBoundName\",\"limit\"]},{api:\"follow_api\",method:\"get_reblogged_by\",params:[\"author\",\"permlink\"]},{api:\"follow_api\",method:\"get_blog_authors\",params:[\"blogAccount\"]},{api:\"network_broadcast_api\",method:\"broadcast_transaction\",params:[\"trx\"]},{api:\"network_broadcast_api\",method:\"broadcast_transaction_with_callback\",params:[\"confirmationCallback\",\"trx\"]},{api:\"network_broadcast_api\",method:\"broadcast_transaction_synchronous\",params:[\"trx\"]},{api:\"network_broadcast_api\",method:\"broadcast_block\",params:[\"b\"]},{api:\"network_broadcast_api\",method:\"set_max_block_age\",params:[\"maxBlockAge\"]},{api:\"market_history_api\",method:\"get_ticker\",params:[]},{api:\"market_history_api\",method:\"get_volume\",params:[]},{api:\"market_history_api\",method:\"get_order_book\",method_name:\"getMarketOrderBook\",params:[\"limit\"]},{api:\"market_history_api\",method:\"get_trade_history\",params:[\"start\",\"end\",\"limit\"]},{api:\"market_history_api\",method:\"get_recent_trades\",params:[\"limit\"]},{api:\"market_history_api\",method:\"get_market_history\",params:[\"bucket_seconds\",\"start\",\"end\"]},{api:\"market_history_api\",method:\"get_market_history_buckets\",params:[]}]},2221:function(t,e,a){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=i(a(2059)),o=i(a(2223));function i(t){return t&&t.__esModule?t:{default:t}}e.default={http:r.default,ws:o.default}},2222:function(t,e){var a={};!function(t){\"use strict\";if(!t.fetch){var e={searchParams:\"URLSearchParams\"in t,iterable:\"Symbol\"in t&&\"iterator\"in Symbol,blob:\"FileReader\"in t&&\"Blob\"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:\"FormData\"in t,arrayBuffer:\"ArrayBuffer\"in t};if(e.arrayBuffer)var a=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],r=function(t){return t&&DataView.prototype.isPrototypeOf(t)},o=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};c.prototype.append=function(t,e){t=s(t),e=p(e);var a=this.map[t];this.map[t]=a?a+\",\"+e:e},c.prototype.delete=function(t){delete this.map[s(t)]},c.prototype.get=function(t){return t=s(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(s(t))},c.prototype.set=function(t,e){this.map[s(t)]=p(e)},c.prototype.forEach=function(t,e){for(var a in this.map)this.map.hasOwnProperty(a)&&t.call(e,this.map[a],a,this)},c.prototype.keys=function(){var t=[];return this.forEach(function(e,a){t.push(a)}),u(t)},c.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),u(t)},c.prototype.entries=function(){var t=[];return this.forEach(function(e,a){t.push([a,e])}),u(t)},e.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var i=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},_.call(m.prototype),_.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:\"\"});return t.type=\"error\",t};var n=[301,302,303,307,308];b.redirect=function(t,e){if(-1===n.indexOf(e))throw new RangeError(\"Invalid status code\");return new b(null,{status:e,headers:{location:t}})},t.Headers=c,t.Request=m,t.Response=b,t.fetch=function(t,a){return new Promise(function(r,o){var i=new m(t,a),n=new XMLHttpRequest;n.onload=function(){var t={status:n.status,statusText:n.statusText,headers:function(t){var e=new c;return t.split(/\\r?\\n/).forEach(function(t){var a=t.split(\":\"),r=a.shift().trim();if(r){var o=a.join(\":\").trim();e.append(r,o)}}),e}(n.getAllResponseHeaders()||\"\")};t.url=\"responseURL\"in n?n.responseURL:t.headers.get(\"X-Request-URL\");var e=\"response\"in n?n.response:n.responseText;r(new b(e,t))},n.onerror=function(){o(new TypeError(\"Network request failed\"))},n.ontimeout=function(){o(new TypeError(\"Network request failed\"))},n.open(i.method,i.url,!0),\"include\"===i.credentials&&(n.withCredentials=!0),\"responseType\"in n&&e.blob&&(n.responseType=\"blob\"),i.headers.forEach(function(t,e){n.setRequestHeader(e,t)}),n.send(void 0===i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}function s(t){if(\"string\"!=typeof t&&(t=String(t)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(t))throw new TypeError(\"Invalid character in header field name\");return t.toLowerCase()}function p(t){return\"string\"!=typeof t&&(t=String(t)),t}function u(t){var a={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(a[Symbol.iterator]=function(){return a}),a}function c(t){this.map={},t instanceof c?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));t.bodyUsed=!0}function l(t){return new Promise(function(e,a){t.onload=function(){e(t.result)},t.onerror=function(){a(t.error)}})}function f(t){var e=new FileReader,a=l(e);return e.readAsArrayBuffer(t),a}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if(\"string\"==typeof t)this._bodyText=t;else if(e.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(e.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(e.arrayBuffer&&e.blob&&r(t))this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!e.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!o(t))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=h(t)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof t?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},e.blob&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,a=l(e);return e.readAsText(t),a}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),a=new Array(e.length),r=0;r<e.length;r++)a[r]=String.fromCharCode(e[r]);return a.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}function m(t,e){var a=(e=e||{}).body;if(t instanceof m){if(t.bodyUsed)throw new TypeError(\"Already read\");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,a||null==t._bodyInit||(a=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||\"omit\",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=function(t){var e=t.toUpperCase();return i.indexOf(e)>-1?e:t}(e.method||this.method||\"GET\"),this.mode=e.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&a)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(a)}function y(t){var e=new FormData;return t.trim().split(\"&\").forEach(function(t){if(t){var a=t.split(\"=\"),r=a.shift().replace(/\\+/g,\" \"),o=a.join(\"=\").replace(/\\+/g,\" \");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function b(t,e){e||(e={}),this.type=\"default\",this.status=\"status\"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText=\"statusText\"in e?e.statusText:\"OK\",this.headers=new c(e.headers),this.url=e.url||\"\",this._initBody(t)}}(void 0!==a?a:this);var r=a.fetch;r.fetch=r,r.Response=a.Response,r.Headers=a.Headers,r.Request=a.Request,t.exports=r},2223:function(t,e,a){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=function(){function t(t,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,a,r){return a&&t(e.prototype,a),r&&t(e,r),e}}(),o=s(a(2224)),i=s(a(865)),n=s(a(2060));function s(t){return t&&t.__esModule?t:{default:t}}var p=void 0;if(o.default)p=a(2225);else{if(\"undefined\"==typeof window)throw new Error(\"Couldn't decide on a `WebSocket` class\");p=window.WebSocket}var u=(0,i.default)(\"steem:ws\"),c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Object.assign({id:0},t)));return a._requests=new Map,a.inFlight=0,a.isOpen=!1,a}return function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,n.default),r(e,[{key:\"start\",value:function(){var t=this;return this.startPromise?this.startPromise:(this.startPromise=new Promise(function(e,a){t.ws=new p(t.options.websocket),t.ws.onerror=function(e){t.startPromise=null,a(e)},t.ws.onopen=function(){t.isOpen=!0,t.ws.onerror=t.onError.bind(t),t.ws.onmessage=t.onMessage.bind(t),t.ws.onclose=t.onClose.bind(t),e()}}),this.startPromise)}},{key:\"stop\",value:function(){u(\"Stopping...\"),this.startPromise=null,this.isOpen=!1,this._requests.clear(),this.ws&&(this.ws.onerror=this.ws.onmessage=this.ws.onclose=null,this.ws.close(),this.ws=null)}},{key:\"send\",value:function(t,e,a){var r=this;return u(\"Steem::send\",t,e),this.start().then(function(){var o={};new Promise(function(t,e){o.resolve=function(e){t(e),a(null,e)},o.reject=function(t){e(t),a(t)}}),r.options.useAppbaseApi&&(t=\"condenser_api\");var i={deferral:o,startedAt:Date.now(),message:{id:e.id||r.id++,method:\"call\",jsonrpc:\"2.0\",params:[t,e.method,e.params]}};return r.inFlight++,r._requests.set(i.message.id,i),r.ws.send(JSON.stringify(i.message)),o})}},{key:\"onError\",value:function(t){var e=!0,a=!1,r=void 0;try{for(var o,i=this._requests[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){o.value.deferral.reject(t)}}catch(t){a=!0,r=t}finally{try{!e&&i.return&&i.return()}finally{if(a)throw r}}this.stop()}},{key:\"onClose\",value:function(){var t=new Error(\"Connection was closed\"),e=!0,a=!1,r=void 0;try{for(var o,i=this._requests[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){o.value.deferral.reject(t)}}catch(t){a=!0,r=t}finally{try{!e&&i.return&&i.return()}finally{if(a)throw r}}this._requests.clear()}},{key:\"onMessage\",value:function(t){var e=JSON.parse(t.data);if(u(\"-- Steem.onMessage --\\x3e\",e.id),!this._requests.has(e.id))throw new Error(\"Panic: no request in queue for message id \"+e.id);var a=this._requests.get(e.id);this._requests.delete(e.id);var r=e.error;if(r){var o=new Error((r.message||\"Failed to complete operation\")+\" (see err.payload for the full error payload)\");o.payload=e,a.deferral.reject(o)}else this.emit(\"track-performance\",a.message.method,Date.now()-a.startedAt),a.deferral.resolve(e.result)}}]),e}();e.default=c},2224:function(t,e,a){(function(e){t.exports=!1;try{t.exports=\"[object process]\"===Object.prototype.toString.call(e.process)}catch(t){}}).call(this,a(59))}}]);"],"mappings":"AAAA","sourceRoot":""}
You can’t perform that action at this time.