From d3478edc63c0e97258c4ba9f4b8c9bdb2e328e90 Mon Sep 17 00:00:00 2001 From: Jernej Pregelj Date: Tue, 23 Oct 2018 16:38:08 +0200 Subject: [PATCH 1/3] Release 3.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8824842..0c8c325 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bigchaindb-orm", - "version": "3.0.1", + "version": "3.0.2", "description": "A CRAB-based ORM for BigchainDB", "homepage": "https://www.bigchaindb.com/", "bugs": "https://github.com/bigchaindb/js-driver-orm/issues", From ab038a928e35746dc14926a3c09797edd1a1bc3a Mon Sep 17 00:00:00 2001 From: Jernej Pregelj Date: Tue, 23 Oct 2018 16:42:21 +0200 Subject: [PATCH 2/3] build --- dist/browser/bigchaindb-orm.amd.min.js | 2 +- dist/browser/bigchaindb-orm.amd.min.js.map | 2 +- dist/browser/bigchaindb-orm.cjs.min.js | 2 +- dist/browser/bigchaindb-orm.cjs.min.js.map | 2 +- dist/browser/bigchaindb-orm.cjs2.min.js | 2 +- dist/browser/bigchaindb-orm.cjs2.min.js.map | 2 +- dist/browser/bigchaindb-orm.umd.min.js | 2 +- dist/browser/bigchaindb-orm.umd.min.js.map | 2 +- dist/browser/bigchaindb-orm.window.min.js | 2 +- dist/browser/bigchaindb-orm.window.min.js.map | 2 +- dist/node/ormobject.js | 4 +++- 11 files changed, 13 insertions(+), 11 deletions(-) diff --git a/dist/browser/bigchaindb-orm.amd.min.js b/dist/browser/bigchaindb-orm.amd.min.js index a4cb89e..5cc4938 100644 --- a/dist/browser/bigchaindb-orm.amd.min.js +++ b/dist/browser/bigchaindb-orm.amd.min.js @@ -81,5 +81,5 @@ var n="xregexp",i={astral:!1},u={exec:RegExp.prototype.exec,test:RegExp.prototyp * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.4+314e4831 */ -!function(t,r){e.exports=r()}(0,function(){"use strict";function e(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,u=void 0,o=void 0,a=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(o?o(b):y())},f="undefined"!=typeof window?window:void 0,d=f||{},s=d.MutationObserver||d.WebKitMutationObserver,c="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function l(){var e=setTimeout;return function(){return e(b,1)}}var p=new Array(1e3);function b(){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},r=t.jsonBody,i=t.query,u=t.urlTemplateSpec,d=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["jsonBody","query","urlTemplateSpec"]),c=e;return null!=u&&(Array.isArray(u)&&u.length?c=(0,o.vsprintf)(e,u):u&&"object"===(void 0===u?"undefined":n(u))&&Object.keys(u).length&&(c=(0,a.default)(e,u))),null!=i&&("string"==typeof i?c+=i:i&&"object"===(void 0===i?"undefined":n(i))&&(c+=(0,f.default)(i))),null!=r&&(d.body=JSON.stringify(r)),s.fetch(c,d).then(function(e){if(!e||!e.ok)throw{message:"HTTP Error: Requested page not reachable",status:e.status+" "+e.statusText,requestURI:e.url};return e})};var i=r(74),u=d(r(73)),o=r(18),a=d(r(72)),f=d(r(71));function d(e){return e&&e.__esModule?e:{default:e}}var s=(0,u.default)(i.Promise)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=n({},a,t,{query:t.query&&(0,u.default)(t.query)}),o=e;return r.jsonBody&&(r.headers=n({},r.headers,{"Content-Type":"application/json"})),e?(0,i.default)(o,r).then(function(e){return e.json()}).catch(function(e){throw console.error(e),e}):Promise.reject(new Error("Request was not given a url."))};var i=o(r(75)),u=o(r(33));function o(e){return e&&e.__esModule?e:{default:e}}var a={headers:{Accept:"application/json"}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.path=t,this.headers=n({},r),Object.keys(r).forEach(function(e){if(o.includes(e.toLowerCase()))throw new Error("Header "+e+" is reserved and cannot be set.")})}return i(e,[{key:"getApiUrls",value:function(e){return this.path+{blocks:"blocks",blocksDetail:"blocks/%(blockHeight)s",outputs:"outputs",transactions:"transactions",transactionsSync:"transactions?mode=sync",transactionsAsync:"transactions?mode=async",transactionsCommit:"transactions?mode=commit",transactionsDetail:"transactions/%(transactionId)s",assets:"assets",metadata:"metadata",votes:"votes"}[e]}},{key:"_req",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.headers=n({},t.headers,this.headers),(0,u.default)(e,t)}},{key:"getBlock",value:function(e){return this._req(this.getApiUrls("blocksDetail"),{urlTemplateSpec:{blockHeight:e}})}},{key:"getTransaction",value:function(e){return this._req(this.getApiUrls("transactionsDetail"),{urlTemplateSpec:{transactionId:e}})}},{key:"listBlocks",value:function(e){return this._req(this.getApiUrls("blocks"),{query:{transaction_id:e}})}},{key:"listOutputs",value:function(e,t){var r={public_key:e};return void 0!==t&&(r.spent=t.toString()),this._req(this.getApiUrls("outputs"),{query:r})}},{key:"listTransactions",value:function(e,t){return this._req(this.getApiUrls("transactions"),{query:{asset_id:e,operation:t}})}},{key:"listVotes",value:function(e){return this._req(this.getApiUrls("votes"),{query:{block_id:e}})}},{key:"postTransaction",value:function(e){return this.postTransactionCommit(e)}},{key:"postTransactionSync",value:function(e){return this._req(this.getApiUrls("transactionsSync"),{method:"POST",jsonBody:e})}},{key:"postTransactionAsync",value:function(e){return this._req(this.getApiUrls("transactionsAsync"),{method:"POST",jsonBody:e})}},{key:"postTransactionCommit",value:function(e){return this._req(this.getApiUrls("transactionsCommit"),{method:"POST",jsonBody:e})}},{key:"searchAssets",value:function(e){return this._req(this.getApiUrls("assets"),{query:{search:e}})}},{key:"searchMetadata",value:function(e){return this._req(this.getApiUrls("metadata"),{query:{search:e}})}}]),e}();t.default=a},function(e,t){},function(e,t,r){!function(e){"use strict";var t=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function b(e,t,r,n,i){var u,o=0;for(u=0;u>>8)-1}function y(e,t,r,n){return b(e,t,r,n,16)}function m(e,t,r,n){return b(e,t,r,n,32)}function g(e,t,r,n){!function(e,t,r,n){for(var i,u=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,d=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,g=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16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0&255,e[5]=S>>>8&255,e[6]=S>>>16&255,e[7]=S>>>24&255,e[8]=E>>>0&255,e[9]=E>>>8&255,e[10]=E>>>16&255,e[11]=E>>>24&255,e[12]=A>>>0&255,e[13]=A>>>8&255,e[14]=A>>>16&255,e[15]=A>>>24&255,e[16]=x>>>0&255,e[17]=x>>>8&255,e[18]=x>>>16&255,e[19]=x>>>24&255,e[20]=k>>>0&255,e[21]=k>>>8&255,e[22]=k>>>16&255,e[23]=k>>>24&255,e[24]=M>>>0&255,e[25]=M>>>8&255,e[26]=M>>>16&255,e[27]=M>>>24&255,e[28]=I>>>0&255,e[29]=I>>>8&255,e[30]=I>>>16&255,e[31]=I>>>24&255,e[32]=T>>>0&255,e[33]=T>>>8&255,e[34]=T>>>16&255,e[35]=T>>>24&255,e[36]=B>>>0&255,e[37]=B>>>8&255,e[38]=B>>>16&255,e[39]=B>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=C>>>0&255,e[45]=C>>>8&255,e[46]=C>>>16&255,e[47]=C>>>24&255,e[48]=O>>>0&255,e[49]=O>>>8&255,e[50]=O>>>16&255,e[51]=O>>>24&255,e[52]=R>>>0&255,e[53]=R>>>8&255,e[54]=R>>>16&255,e[55]=R>>>24&255,e[56]=j>>>0&255,e[57]=j>>>8&255,e[58]=j>>>16&255,e[59]=j>>>24&255,e[60]=U>>>0&255,e[61]=U>>>8&255,e[62]=U>>>16&255,e[63]=U>>>24&255}(e,t,r,n)}function v(e,t,r,n){!function(e,t,r,n){for(var i,u=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,d=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,g=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,_=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,w=0;w<20;w+=2)u^=(i=(m^=(i=(l^=(i=(d^=(i=u+m|0)<<7|i>>>25)+u|0)<<9|i>>>23)+d|0)<<13|i>>>19)+l|0)<<18|i>>>14,s^=(i=(o^=(i=(g^=(i=(p^=(i=s+o|0)<<7|i>>>25)+s|0)<<9|i>>>23)+p|0)<<13|i>>>19)+g|0)<<18|i>>>14,b^=(i=(c^=(i=(a^=(i=(v^=(i=b+c|0)<<7|i>>>25)+b|0)<<9|i>>>23)+v|0)<<13|i>>>19)+a|0)<<18|i>>>14,_^=(i=(y^=(i=(h^=(i=(f^=(i=_+y|0)<<7|i>>>25)+_|0)<<9|i>>>23)+f|0)<<13|i>>>19)+h|0)<<18|i>>>14,u^=(i=(f^=(i=(a^=(i=(o^=(i=u+f|0)<<7|i>>>25)+u|0)<<9|i>>>23)+o|0)<<13|i>>>19)+a|0)<<18|i>>>14,s^=(i=(d^=(i=(h^=(i=(c^=(i=s+d|0)<<7|i>>>25)+s|0)<<9|i>>>23)+c|0)<<13|i>>>19)+h|0)<<18|i>>>14,b^=(i=(p^=(i=(l^=(i=(y^=(i=b+p|0)<<7|i>>>25)+b|0)<<9|i>>>23)+y|0)<<13|i>>>19)+l|0)<<18|i>>>14,_^=(i=(v^=(i=(g^=(i=(m^=(i=_+v|0)<<7|i>>>25)+_|0)<<9|i>>>23)+m|0)<<13|i>>>19)+g|0)<<18|i>>>14;e[0]=u>>>0&255,e[1]=u>>>8&255,e[2]=u>>>16&255,e[3]=u>>>24&255,e[4]=s>>>0&255,e[5]=s>>>8&255,e[6]=s>>>16&255,e[7]=s>>>24&255,e[8]=b>>>0&255,e[9]=b>>>8&255,e[10]=b>>>16&255,e[11]=b>>>24&255,e[12]=_>>>0&255,e[13]=_>>>8&255,e[14]=_>>>16&255,e[15]=_>>>24&255,e[16]=c>>>0&255,e[17]=c>>>8&255,e[18]=c>>>16&255,e[19]=c>>>24&255,e[20]=h>>>0&255,e[21]=h>>>8&255,e[22]=h>>>16&255,e[23]=h>>>24&255,e[24]=l>>>0&255,e[25]=l>>>8&255,e[26]=l>>>16&255,e[27]=l>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}var _=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,r,n,i,u,o){var a,f,d=new Uint8Array(16),s=new Uint8Array(64);for(f=0;f<16;f++)d[f]=0;for(f=0;f<8;f++)d[f]=u[f];for(;i>=64;){for(g(s,d,o,_),f=0;f<64;f++)e[t+f]=r[n+f]^s[f];for(a=1,f=8;f<16;f++)a=a+(255&d[f])|0,d[f]=255&a,a>>>=8;i-=64,t+=64,n+=64}if(i>0)for(g(s,d,o,_),f=0;f=64;){for(g(f,a,i,_),o=0;o<64;o++)e[t+o]=f[o];for(u=1,o=8;o<16;o++)u=u+(255&a[o])|0,a[o]=255&u,u>>>=8;r-=64,t+=64}if(r>0)for(g(f,a,i,_),o=0;o>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),u=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|u<<12),this.r[5]=u>>>1&8190,o=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(u>>>14|o<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(o>>>11|a<<5),f=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>8|f<<8),this.r[9]=f>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function k(e,t,r,n,i,u){var o=new x(u);return o.update(r,n,i),o.finish(e,t),0}function M(e,t,r,n,i,u){var o=new Uint8Array(16);return k(o,0,r,n,i,u),y(e,t,o,0)}function I(e,t,r,n,i){var u;if(r<32)return-1;for(A(e,0,t,0,r,n,i),k(e,16,e,32,r-32,e),u=0;u<16;u++)e[u]=0;return 0}function T(e,t,r,n,i){var u,o=new Uint8Array(32);if(r<32)return-1;if(E(o,0,32,n,i),0!==M(t,16,t,32,r-32,o))return-1;for(A(e,0,t,0,r,n,i),u=0;u<32;u++)e[u]=0;return 0}function B(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function P(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function C(e,t,r){for(var n,i=~(r-1),u=0;u<16;u++)n=i&(e[u]^t[u]),e[u]^=n,t[u]^=n}function O(e,r){var n,i,u,o=t(),a=t();for(n=0;n<16;n++)a[n]=r[n];for(P(a),P(a),P(a),i=0;i<2;i++){for(o[0]=a[0]-65517,n=1;n<15;n++)o[n]=a[n]-65535-(o[n-1]>>16&1),o[n-1]&=65535;o[15]=a[15]-32767-(o[14]>>16&1),u=o[15]>>16&1,o[14]&=65535,C(a,o,1-u)}for(n=0;n<16;n++)e[2*n]=255&a[n],e[2*n+1]=a[n]>>8}function R(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return O(r,e),O(n,t),m(r,0,n,0)}function j(e){var t=new Uint8Array(32);return O(t,e),1&t[0]}function U(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function L(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function N(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function D(e,t,r){var n,i,u=0,o=0,a=0,f=0,d=0,s=0,c=0,h=0,l=0,p=0,b=0,y=0,m=0,g=0,v=0,_=0,w=0,S=0,E=0,A=0,x=0,k=0,M=0,I=0,T=0,B=0,P=0,C=0,O=0,R=0,j=0,U=r[0],L=r[1],N=r[2],D=r[3],F=r[4],z=r[5],q=r[6],K=r[7],Y=r[8],H=r[9],J=r[10],G=r[11],V=r[12],W=r[13],X=r[14],Z=r[15];u+=(n=t[0])*U,o+=n*L,a+=n*N,f+=n*D,d+=n*F,s+=n*z,c+=n*q,h+=n*K,l+=n*Y,p+=n*H,b+=n*J,y+=n*G,m+=n*V,g+=n*W,v+=n*X,_+=n*Z,o+=(n=t[1])*U,a+=n*L,f+=n*N,d+=n*D,s+=n*F,c+=n*z,h+=n*q,l+=n*K,p+=n*Y,b+=n*H,y+=n*J,m+=n*G,g+=n*V,v+=n*W,_+=n*X,w+=n*Z,a+=(n=t[2])*U,f+=n*L,d+=n*N,s+=n*D,c+=n*F,h+=n*z,l+=n*q,p+=n*K,b+=n*Y,y+=n*H,m+=n*J,g+=n*G,v+=n*V,_+=n*W,w+=n*X,S+=n*Z,f+=(n=t[3])*U,d+=n*L,s+=n*N,c+=n*D,h+=n*F,l+=n*z,p+=n*q,b+=n*K,y+=n*Y,m+=n*H,g+=n*J,v+=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*D,w+=n*F,S+=n*z,E+=n*q,A+=n*K,x+=n*Y,k+=n*H,M+=n*J,I+=n*G,T+=n*V,B+=n*W,P+=n*X,C+=n*Z,g+=(n=t[13])*U,v+=n*L,_+=n*N,w+=n*D,S+=n*F,E+=n*z,A+=n*q,x+=n*K,k+=n*Y,M+=n*H,I+=n*J,T+=n*G,B+=n*V,P+=n*W,C+=n*X,O+=n*Z,v+=(n=t[14])*U,_+=n*L,w+=n*N,S+=n*D,E+=n*F,A+=n*z,x+=n*q,k+=n*K,M+=n*Y,I+=n*H,T+=n*J,B+=n*G,P+=n*V,C+=n*W,O+=n*X,R+=n*Z,_+=(n=t[15])*U,o+=38*(S+=n*N),a+=38*(E+=n*D),f+=38*(A+=n*F),d+=38*(x+=n*z),s+=38*(k+=n*q),c+=38*(M+=n*K),h+=38*(I+=n*Y),l+=38*(T+=n*H),p+=38*(B+=n*J),b+=38*(P+=n*G),y+=38*(C+=n*V),m+=38*(O+=n*W),g+=38*(R+=n*X),v+=38*(j+=n*Z),u=(n=(u+=38*(w+=n*L))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),o=(n=o+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=(u+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),o=(n=o+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),u+=i-1+37*(i-1),e[0]=u,e[1]=o,e[2]=a,e[3]=f,e[4]=d,e[5]=s,e[6]=c,e[7]=h,e[8]=l,e[9]=p,e[10]=b,e[11]=y,e[12]=m,e[13]=g,e[14]=v,e[15]=_}function F(e,t){D(e,t,t)}function z(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)F(i,i),2!==n&&4!==n&&D(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function q(e,r,n){var i,u,o=new Uint8Array(32),a=new Float64Array(80),d=t(),s=t(),c=t(),h=t(),l=t(),p=t();for(u=0;u<31;u++)o[u]=r[u];for(o[31]=127&r[31]|64,o[0]&=248,U(a,n),u=0;u<16;u++)s[u]=a[u],h[u]=d[u]=c[u]=0;for(d[0]=h[0]=1,u=254;u>=0;--u)C(d,s,i=o[u>>>3]>>>(7&u)&1),C(c,h,i),L(l,d,c),N(d,d,c),L(c,s,h),N(s,s,h),F(h,l),F(p,d),D(d,c,d),D(c,s,l),L(l,d,c),N(d,d,c),F(s,d),N(c,h,p),D(d,c,f),L(d,d,h),D(c,c,d),D(d,h,p),D(h,s,a),F(s,l),C(d,s,i),C(c,h,i);for(u=0;u<16;u++)a[u+16]=d[u],a[u+32]=c[u],a[u+48]=s[u],a[u+64]=h[u];var b=a.subarray(32),y=a.subarray(16);return z(b,b),D(y,y,b),O(e,y),0}function K(e,t){return q(e,t,u)}function Y(e,t){return n(t,32),K(e,t)}function H(e,t,r){var n=new Uint8Array(32);return q(n,r,t),v(e,i,n,_)}x.prototype.blocks=function(e,t,r){for(var n,i,u,o,a,f,d,s,c,h,l,p,b,y,m,g,v,_,w,S=this.fin?0:2048,E=this.h[0],A=this.h[1],x=this.h[2],k=this.h[3],M=this.h[4],I=this.h[5],T=this.h[6],B=this.h[7],P=this.h[8],C=this.h[9],O=this.r[0],R=this.r[1],j=this.r[2],U=this.r[3],L=this.r[4],N=this.r[5],D=this.r[6],F=this.r[7],z=this.r[8],q=this.r[9];r>=16;)E+=8191&(n=255&e[t+0]|(255&e[t+1])<<8),A+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3),x+=8191&(i>>>10|(u=255&e[t+4]|(255&e[t+5])<<8)<<6),k+=8191&(u>>>7|(o=255&e[t+6]|(255&e[t+7])<<8)<<9),M+=8191&(o>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12),I+=a>>>1&8191,T+=8191&(a>>>14|(f=255&e[t+10]|(255&e[t+11])<<8)<<2),B+=8191&(f>>>11|(d=255&e[t+12]|(255&e[t+13])<<8)<<5),s=255&e[t+14]|(255&e[t+15])<<8,h=c=0,h+=E*O,h+=A*(5*q),h+=x*(5*z),h+=k*(5*F),c=(h+=M*(5*D))>>>13,h&=8191,h+=I*(5*N),h+=T*(5*L),h+=B*(5*U),h+=(P+=8191&(d>>>8|s<<8))*(5*j),l=c+=(h+=(C+=s>>>5|S)*(5*R))>>>13,l+=E*R,l+=A*O,l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I=m&=8191,T=g&=8191,B=v&=8191,P=_&=8191,C=w&=8191,t+=16,r-=16;this.h[0]=E,this.h[1]=A,this.h[2]=x,this.h[3]=k,this.h[4]=M,this.h[5]=I,this.h[6]=T,this.h[7]=B,this.h[8]=P,this.h[9]=C},x.prototype.finish=function(e,t){var r,n,i,u,o=new Uint16Array(10);if(this.leftover){for(u=this.leftover,this.buffer[u++]=1;u<16;u++)this.buffer[u]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,u=2;u<10;u++)this.h[u]+=r,r=this.h[u]>>>13,this.h[u]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,o[0]=this.h[0]+5,r=o[0]>>>13,o[0]&=8191,u=1;u<10;u++)o[u]=this.h[u]+r,r=o[u]>>>13,o[u]&=8191;for(o[9]-=8192,n=(1^r)-1,u=0;u<10;u++)o[u]&=n;for(n=~n,u=0;u<10;u++)this.h[u]=this.h[u]&n|o[u];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,u=1;u<8;u++)i=(this.h[u]+this.pad[u]|0)+(i>>>16)|0,this.h[u]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},x.prototype.update=function(e,t,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n=128;){for(S=0;S<16;S++)E=8*S+W,B[S]=r[E+0]<<24|r[E+1]<<16|r[E+2]<<8|r[E+3],P[S]=r[E+4]<<24|r[E+5]<<16|r[E+6]<<8|r[E+7];for(S=0;S<80;S++)if(i=C,u=O,o=R,a=j,f=U,d=L,s=N,c=D,h=F,l=z,p=q,b=K,y=Y,m=H,g=J,v=G,k=65535&(x=G),M=x>>>16,I=65535&(A=D),T=A>>>16,k+=65535&(x=(Y>>>14|U<<18)^(Y>>>18|U<<14)^(U>>>9|Y<<23)),M+=x>>>16,I+=65535&(A=(U>>>14|Y<<18)^(U>>>18|Y<<14)^(Y>>>9|U<<23)),T+=A>>>16,k+=65535&(x=Y&H^~Y&J),M+=x>>>16,I+=65535&(A=U&L^~U&N),T+=A>>>16,A=V[2*S],k+=65535&(x=V[2*S+1]),M+=x>>>16,I+=65535&A,T+=A>>>16,A=B[S%16],M+=(x=P[S%16])>>>16,I+=65535&A,T+=A>>>16,I+=(M+=(k+=65535&x)>>>16)>>>16,k=65535&(x=w=65535&k|M<<16),M=x>>>16,I=65535&(A=_=65535&I|(T+=I>>>16)<<16),T=A>>>16,k+=65535&(x=(F>>>28|C<<4)^(C>>>2|F<<30)^(C>>>7|F<<25)),M+=x>>>16,I+=65535&(A=(C>>>28|F<<4)^(F>>>2|C<<30)^(F>>>7|C<<25)),T+=A>>>16,M+=(x=F&z^F&q^z&q)>>>16,I+=65535&(A=C&O^C&R^O&R),T+=A>>>16,c=65535&(I+=(M+=(k+=65535&x)>>>16)>>>16)|(T+=I>>>16)<<16,v=65535&k|M<<16,k=65535&(x=b),M=x>>>16,I=65535&(A=a),T=A>>>16,M+=(x=w)>>>16,I+=65535&(A=_),T+=A>>>16,O=i,R=u,j=o,U=a=65535&(I+=(M+=(k+=65535&x)>>>16)>>>16)|(T+=I>>>16)<<16,L=f,N=d,D=s,C=c,z=h,q=l,K=p,Y=b=65535&k|M<<16,H=y,J=m,G=g,F=v,S%16==15)for(E=0;E<16;E++)A=B[E],k=65535&(x=P[E]),M=x>>>16,I=65535&A,T=A>>>16,A=B[(E+9)%16],k+=65535&(x=P[(E+9)%16]),M+=x>>>16,I+=65535&A,T+=A>>>16,_=B[(E+1)%16],k+=65535&(x=((w=P[(E+1)%16])>>>1|_<<31)^(w>>>8|_<<24)^(w>>>7|_<<25)),M+=x>>>16,I+=65535&(A=(_>>>1|w<<31)^(_>>>8|w<<24)^_>>>7),T+=A>>>16,_=B[(E+14)%16],M+=(x=((w=P[(E+14)%16])>>>19|_<<13)^(_>>>29|w<<3)^(w>>>6|_<<26))>>>16,I+=65535&(A=(_>>>19|w<<13)^(w>>>29|_<<3)^_>>>6),T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,B[E]=65535&I|T<<16,P[E]=65535&k|M<<16;k=65535&(x=F),M=x>>>16,I=65535&(A=C),T=A>>>16,A=e[0],M+=(x=t[0])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[0]=C=65535&I|T<<16,t[0]=F=65535&k|M<<16,k=65535&(x=z),M=x>>>16,I=65535&(A=O),T=A>>>16,A=e[1],M+=(x=t[1])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[1]=O=65535&I|T<<16,t[1]=z=65535&k|M<<16,k=65535&(x=q),M=x>>>16,I=65535&(A=R),T=A>>>16,A=e[2],M+=(x=t[2])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[2]=R=65535&I|T<<16,t[2]=q=65535&k|M<<16,k=65535&(x=K),M=x>>>16,I=65535&(A=j),T=A>>>16,A=e[3],M+=(x=t[3])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[3]=j=65535&I|T<<16,t[3]=K=65535&k|M<<16,k=65535&(x=Y),M=x>>>16,I=65535&(A=U),T=A>>>16,A=e[4],M+=(x=t[4])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[4]=U=65535&I|T<<16,t[4]=Y=65535&k|M<<16,k=65535&(x=H),M=x>>>16,I=65535&(A=L),T=A>>>16,A=e[5],M+=(x=t[5])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[5]=L=65535&I|T<<16,t[5]=H=65535&k|M<<16,k=65535&(x=J),M=x>>>16,I=65535&(A=N),T=A>>>16,A=e[6],M+=(x=t[6])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[6]=N=65535&I|T<<16,t[6]=J=65535&k|M<<16,k=65535&(x=G),M=x>>>16,I=65535&(A=D),T=A>>>16,A=e[7],M+=(x=t[7])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[7]=D=65535&I|T<<16,t[7]=G=65535&k|M<<16,W+=128,n-=128}return n}function X(e,t,r){var n,i=new Int32Array(8),u=new Int32Array(8),o=new Uint8Array(256),a=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,u[0]=4089235720,u[1]=2227873595,u[2]=4271175723,u[3]=1595750129,u[4]=2917565137,u[5]=725511199,u[6]=4215389547,u[7]=327033209,W(i,u,t,r),r%=128,n=0;n=0;--i)$(e,t,n=r[i/8|0]>>(7&i)&1),Z(t,e),Z(e,e),$(e,t,n)}function te(e,r){var n=[t(),t(),t(),t()];B(n[0],c),B(n[1],h),B(n[2],a),D(n[3],c,h),ee(e,n,r)}function re(e,r,i){var u,o=new Uint8Array(64),a=[t(),t(),t(),t()];for(i||n(r,32),X(o,r,32),o[0]&=248,o[31]&=127,o[31]|=64,te(a,o),Q(e,a),u=0;u<32;u++)r[u+32]=e[u];return 0}var ne=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var r,n,i,u;for(n=63;n>=32;--n){for(r=0,i=n-32,u=n-12;i>8,t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*ne[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*ne[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function ue(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,r)}function oe(e,r,n,i){var u,o,a=new Uint8Array(64),f=new Uint8Array(64),d=new Uint8Array(64),s=new Float64Array(64),c=[t(),t(),t(),t()];X(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var h=n+64;for(u=0;u=0;n--)F(i,i),1!==n&&D(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}(n,n),D(n,n,u),D(n,n,f),D(n,n,f),D(e[0],n,f),F(i,e[0]),D(i,i,f),R(i,u)&&D(e[0],e[0],l),F(i,e[0]),D(i,i,f),R(i,u)?-1:(j(e[0])===r[31]>>7&&N(e[0],o,e[0]),D(e[3],e[0],e[1]),0)}function fe(e,r,n,i){var u,o=new Uint8Array(32),a=new Uint8Array(64),f=[t(),t(),t(),t()],d=[t(),t(),t(),t()];if(n<64)return-1;if(ae(d,i))return-1;for(u=0;u=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(le(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),r=0;r>1,s=-7,c=r?i-1:0,h=r?-1:1,l=e[t+c];for(c+=h,u=l&(1<<-s)-1,l>>=-s,s+=a;s>0;u=256*u+e[t+c],c+=h,s-=8);for(o=u&(1<<-s)-1,u>>=-s,s+=n;s>0;o=256*o+e[t+c],c+=h,s-=8);if(0===u)u=1-d;else{if(u===f)return o?NaN:1/0*(l?-1:1);o+=Math.pow(2,n),u-=d}return(l?-1:1)*o*Math.pow(2,u-n)},t.write=function(e,t,r,n,i,u){var o,a,f,d=8*u-i-1,s=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:u-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=s):(o=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-o))<1&&(o--,f*=2),(t+=o+c>=1?h/f:h*Math.pow(2,1-c))*f>=2&&(o++,f/=2),o+c>=s?(a=0,o=s):o+c>=1?(a=(t*f-1)*Math.pow(2,i),o+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+l]=255&a,l+=p,a/=256,i-=8);for(o=o<0;e[r+l]=255&o,l+=p,o/=256,d-=8);e[r+l-p]|=128*b}},function(e,t,r){"use strict";t.byteLength=function(e){var t=d(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){for(var t,r=d(e),n=r[0],o=r[1],a=new u(3*(n+o)/4-o),f=0,s=o>0?n-4:n,c=0;c>16&255,a[f++]=t>>8&255,a[f++]=255&t;return 2===o&&(t=i[e.charCodeAt(c)]<<2|i[e.charCodeAt(c+1)]>>4,a[f++]=255&t),1===o&&(t=i[e.charCodeAt(c)]<<10|i[e.charCodeAt(c+1)]<<4|i[e.charCodeAt(c+2)]>>2,a[f++]=t>>8&255,a[f++]=255&t),a},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,u=[],o=0,a=r-i;oa?a:o+16383));return 1===i?(t=e[r-1],u.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],u.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),u.join("")};for(var n=[],i=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,f=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function s(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function c(e,t,r){for(var n,i=[],u=t;u>=8;for(;d>0;)u.push(255&d),d>>=8}for(var s=0;e[s]===i&&s0;)n.push(a%r),a=a/r|0}for(var f="",d=0;0===t[d]&&d=0;--s)f+=e[n[s]];return f},decodeUnsafe:a,decode:function(e){var t=a(e);if(t)return t;throw new Error("Non-base"+r+" character")}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e?i.default.sign.keyPair.fromSeed(e):i.default.sign.keyPair();this.publicKey=n.default.encode(t.publicKey),this.privateKey=n.default.encode(t.secretKey.slice(0,32))};var n=u(r(3)),i=u(r(79));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ccJsonify=t.ccJsonLoad=t.Transaction=t.Connection=t.Ed25519Keypair=void 0;var n=f(r(85)),i=f(r(77)),u=f(r(29)),o=f(r(19)),a=f(r(9));function f(e){return e&&e.__esModule?e:{default:e}}t.Ed25519Keypair=n.default,t.Connection=i.default,t.Transaction=u.default,t.ccJsonLoad=o.default,t.ccJsonify=a.default},function(e,t,r){e.exports=r(86)}])},function(e,t,r){"use strict";var n=r(54)(!0);r(37)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(14),i=r(8),u=r(38),o=r(6),a=r(13),f=r(55),d=r(27),s=r(60),c=r(0)("iterator"),h=!([].keys&&"next"in[].keys()),l=function(){return this};e.exports=function(e,t,r,p,b,y,m){f(r,t,p);var g,v,_,w=function(e){if(!h&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",E="values"==b,A=!1,x=e.prototype,k=x[c]||x["@@iterator"]||b&&x[b],M=k||w(b),I=b?E?w("entries"):M:void 0,T="Array"==t&&x.entries||k;if(T&&(_=s(T.call(new e)))!==Object.prototype&&_.next&&(d(_,S,!0),n||"function"==typeof _[c]||o(_,c,l)),E&&k&&"values"!==k.name&&(A=!0,M=function(){return k.call(this)}),n&&!m||!h&&!A&&x[c]||o(x,c,M),a[t]=M,a[S]=l,b)if(g={values:E?M:w("values"),keys:y?M:w("keys"),entries:I},m)for(v in g)v in x||u(x,v,g[v]);else i(i.P+i.F*(h||A),t,g);return g}},function(e,t,r){e.exports=r(6)},function(e,t,r){var n=r(9),i=r(56),u=r(26),o=r(24)("IE_PROTO"),a=function(){},f=function(){var e,t=r(34)("iframe"),n=u.length;for(t.style.display="none",r(59).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("