@dodoex/wallet-web3 0.0.43-beta.2 → 0.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/dist/alchemy-provider-5870b6fa-233c80b6.js +1 -0
  2. package/dist/alchemy-websocket-provider-213da986-64068b80.js +1 -0
  3. package/dist/blocto-4c3b71f5.js +1 -0
  4. package/dist/ccip-da46c435.js +1 -0
  5. package/dist/cjs/alchemy-provider-5870b6fa-686578f0.cjs +1 -0
  6. package/dist/cjs/alchemy-websocket-provider-213da986-fff1f59d.cjs +1 -0
  7. package/dist/cjs/blocto-621f54a9.cjs +1 -0
  8. package/dist/cjs/ccip-4b1d6858.cjs +1 -0
  9. package/dist/cjs/{draggabilly-5c45132c.cjs → draggabilly-5b36eaf0.cjs} +1 -1
  10. package/dist/cjs/id-0b41bc31.cjs +1 -0
  11. package/dist/{index-9a0e5b83.js → cjs/index-1e729250.cjs} +2 -2
  12. package/dist/cjs/index-283b89ff.cjs +1 -0
  13. package/dist/cjs/index-2d5de895.cjs +1 -0
  14. package/dist/cjs/{index-eb09e54d.cjs → index-35edc6a0.cjs} +1 -1
  15. package/dist/cjs/{index-3f7251ad.cjs → index-44b7a45e.cjs} +3 -3
  16. package/dist/cjs/index-5560dc58.cjs +17 -0
  17. package/dist/cjs/index-73e4d7eb.cjs +6 -0
  18. package/dist/cjs/{index-df8e5839.cjs → index-9f2a69d5.cjs} +1 -1
  19. package/dist/cjs/index-a4478ddb.cjs +1 -0
  20. package/dist/cjs/index-d528b9d2.cjs +1 -0
  21. package/dist/cjs/index-d54b57b8.cjs +1 -0
  22. package/dist/cjs/index-db36b0fa.cjs +29 -0
  23. package/dist/cjs/index.cjs +1 -1
  24. package/dist/cjs/index.es-e3bf027a.cjs +9 -0
  25. package/dist/cjs/{interface-bc5624b1.cjs → interface-d076e79e.cjs} +1 -1
  26. package/dist/cjs/{lib-typedarrays-7f24496d.cjs → lib-typedarrays-68c72268.cjs} +1 -1
  27. package/dist/cjs/{portis-211bf6ad.cjs → portis-7f3437fb.cjs} +1 -1
  28. package/dist/cjs/provider-e53a855b.cjs +1 -0
  29. package/dist/cjs/providers/connector/alchemy/index.d.ts +913 -0
  30. package/dist/cjs/providers/connector/alchemy/provider.d.ts +914 -0
  31. package/dist/cjs/providers/connector/alchemy/signer.d.ts +23 -0
  32. package/dist/cjs/providers/connector/index.d.ts +951 -43
  33. package/dist/cjs/providers/connector/ledgerUSB/index.d.ts +43 -43
  34. package/dist/cjs/providers/connector/ledgerUSB/provider.d.ts +10 -10
  35. package/dist/cjs/providers/connector/types.d.ts +4 -0
  36. package/dist/cjs/providers/connector/uniPass/index.d.ts +43 -43
  37. package/dist/cjs/providers/connector/uniPass/provider.d.ts +10 -10
  38. package/dist/cjs/providers/wallets/index.d.ts +2 -1
  39. package/dist/cjs/providers/wallets/standalone.d.ts +1 -0
  40. package/dist/cjs/providers/wallets/types.d.ts +1 -0
  41. package/dist/cjs/rainbow-dc533bc9.cjs +1 -0
  42. package/dist/cjs/sha224-d1ef1120.cjs +1 -0
  43. package/dist/cjs/sha256-0f5b78af.cjs +1 -0
  44. package/dist/cjs/typed-data-248c37d5.cjs +1 -0
  45. package/dist/cjs/uAuth-d9d66e7c.cjs +1 -0
  46. package/dist/cjs/walletConnect-0d1d9c65.cjs +1 -0
  47. package/dist/cjs/walletLink-a6046616.cjs +3 -0
  48. package/dist/{draggabilly-fb1c9db3.js → draggabilly-ad95d562.js} +1 -1
  49. package/dist/id-d4f3e36f.js +1 -0
  50. package/dist/index-21179dd1.js +1 -0
  51. package/dist/index-2691f407.js +1 -0
  52. package/dist/index-4f86d0d9.js +1 -0
  53. package/dist/{index-0e53e209.js → index-52949a22.js} +2 -2
  54. package/dist/index-5526977f.js +17 -0
  55. package/dist/index-5a7908b7.js +1 -0
  56. package/dist/{index-0ee5ef8d.js → index-65d96278.js} +1 -1
  57. package/dist/index-7e9e2ba1.js +1 -0
  58. package/dist/{index-2068a4fe.js → index-7f74b1e8.js} +3 -3
  59. package/dist/index-af6c16a1.js +29 -0
  60. package/dist/{cjs/index-2a741fbb.cjs → index-cd1a9a88.js} +2 -2
  61. package/dist/{index-e0d3617a.js → index-f08d6a6b.js} +1 -1
  62. package/dist/index.es-bb0f01ae.js +9 -0
  63. package/dist/index.js +1 -1
  64. package/dist/{interface-cb5e1e98.js → interface-8030d5f3.js} +1 -1
  65. package/dist/{lib-typedarrays-f8420380.js → lib-typedarrays-a4c67579.js} +1 -1
  66. package/dist/{portis-0d9d874b.js → portis-e2bba602.js} +1 -1
  67. package/dist/provider-459277d5.js +1 -0
  68. package/dist/providers/connector/alchemy/index.d.ts +913 -0
  69. package/dist/providers/connector/alchemy/provider.d.ts +914 -0
  70. package/dist/providers/connector/alchemy/signer.d.ts +23 -0
  71. package/dist/providers/connector/index.d.ts +951 -43
  72. package/dist/providers/connector/ledgerUSB/index.d.ts +43 -43
  73. package/dist/providers/connector/ledgerUSB/provider.d.ts +10 -10
  74. package/dist/providers/connector/types.d.ts +4 -0
  75. package/dist/providers/connector/uniPass/index.d.ts +43 -43
  76. package/dist/providers/connector/uniPass/provider.d.ts +10 -10
  77. package/dist/providers/wallets/index.d.ts +2 -1
  78. package/dist/providers/wallets/standalone.d.ts +1 -0
  79. package/dist/providers/wallets/types.d.ts +1 -0
  80. package/dist/rainbow-a06575a1.js +1 -0
  81. package/dist/sha224-10712709.js +1 -0
  82. package/dist/sha256-656b18f4.js +1 -0
  83. package/dist/typed-data-b07573b9.js +1 -0
  84. package/dist/uAuth-7b727766.js +1 -0
  85. package/dist/walletConnect-9c01b144.js +1 -0
  86. package/dist/{walletLink-000fcb81.js → walletLink-1b8c2056.js} +2 -2
  87. package/package.json +12 -5
  88. package/dist/DefaultJsonRpcProvider-a5375519.js +0 -1
  89. package/dist/__node-resolve_empty-0ed2c058.js +0 -1
  90. package/dist/blocto-739837e0.js +0 -1
  91. package/dist/bn-dbf1b053.js +0 -1
  92. package/dist/browser-ponyfill-65b68016.js +0 -1
  93. package/dist/cjs/DefaultJsonRpcProvider-af04cc55.cjs +0 -1
  94. package/dist/cjs/__node-resolve_empty-e2dee16c.cjs +0 -1
  95. package/dist/cjs/blocto-e8847b99.cjs +0 -1
  96. package/dist/cjs/bn-87cba44d.cjs +0 -1
  97. package/dist/cjs/browser-ponyfill-de0a8ec9.cjs +0 -1
  98. package/dist/cjs/ethers-2b86e17d.cjs +0 -1
  99. package/dist/cjs/id-1eb25db0.cjs +0 -1
  100. package/dist/cjs/index-0740e7fe.cjs +0 -1
  101. package/dist/cjs/index-18446412.cjs +0 -1
  102. package/dist/cjs/index-1af4ac9a.cjs +0 -1
  103. package/dist/cjs/index-21b90e8c.cjs +0 -6
  104. package/dist/cjs/index-2587eef5.cjs +0 -1
  105. package/dist/cjs/index-38ed564c.cjs +0 -15
  106. package/dist/cjs/index-53583bbc.cjs +0 -1
  107. package/dist/cjs/index-aaf32aa5.cjs +0 -9
  108. package/dist/cjs/index-d22bf825.cjs +0 -1
  109. package/dist/cjs/index-e9e5106b.cjs +0 -1
  110. package/dist/cjs/index.es-3e845f07.cjs +0 -9
  111. package/dist/cjs/provider-0ddad67c.cjs +0 -1
  112. package/dist/cjs/rainbow-73e82c82.cjs +0 -1
  113. package/dist/cjs/sha224-8056f6e3.cjs +0 -1
  114. package/dist/cjs/sha256-43414cf6.cjs +0 -1
  115. package/dist/cjs/uAuth-5166de3a.cjs +0 -1
  116. package/dist/cjs/walletConnect-41dc68ec.cjs +0 -1
  117. package/dist/cjs/walletLink-689340b5.cjs +0 -3
  118. package/dist/ethers-b291db18.js +0 -1
  119. package/dist/id-4e950ad4.js +0 -1
  120. package/dist/index-05ecccce.js +0 -1
  121. package/dist/index-1aa609d8.js +0 -1
  122. package/dist/index-27d4b342.js +0 -1
  123. package/dist/index-54955d07.js +0 -1
  124. package/dist/index-8151dacc.js +0 -1
  125. package/dist/index-929dd85e.js +0 -15
  126. package/dist/index-948c094e.js +0 -9
  127. package/dist/index-d00482ad.js +0 -1
  128. package/dist/index-ede11a7b.js +0 -1
  129. package/dist/index.es-818610ea.js +0 -9
  130. package/dist/provider-0b6bd3ac.js +0 -1
  131. package/dist/rainbow-688b2e16.js +0 -1
  132. package/dist/sha224-3fa562e2.js +0 -1
  133. package/dist/sha256-39cd7493.js +0 -1
  134. package/dist/uAuth-4ba62d4b.js +0 -1
  135. package/dist/walletConnect-96c9baa7.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";var e=require("./index-aaf32aa5.cjs");require("@ethersproject/providers"),require("zustand"),require("events"),require("@ethersproject/address"),require("@ethersproject/constants"),require("@ethersproject/contracts"),require("@ethersproject/properties"),require("@ethersproject/transactions"),require("@ethersproject/bytes");const t="dapp-inpage-integration",i="openblock-content-integration",n=["https://cocoswap.com","https://app.openocean.finance"],s=["https://oec.cocoswap.com"];class o{constructor(){console.log("start initialize openblockinpage provider"),this.callBackList={},this.eventListener={},this.isMetaMask=!0,this.isOpenBlock=!0,this.chainId=null,this.networkVersion=null,this.selectedAddress=null,this.request=this.request.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.on=this.on.bind(this),this.isConnected=this.isConnected.bind(this),this.enable=this.enable.bind(this),this._metamask=this._getExperimentalApi(),this._initInpageListener(),this.getProviderData()}getProviderData(){var t;return e.__awaiter(this,void 0,void 0,(function*(){const e=yield this.request("metamask_getProviderState");this.chainId=null==e?void 0:e.chainId,this.networkVersion=null==e?void 0:e.networkVersion,this.selectedAddress=null===(t=null==e?void 0:e.accounts)||void 0===t?void 0:t[0]}))}request(t){return e.__awaiter(this,void 0,void 0,(function*(){if("eth_requestAccounts"===t.method){const e=yield this._hookRequest("eth_accounts");if(e.length)return new Promise((t=>t(e)))}return this._hookRequest(t)}))}send(...t){return e.__awaiter(this,void 0,void 0,(function*(){if("function"!=typeof t[1])return"string"==typeof t[0]?this.request({method:t[0],params:t[1]}):1===t.length?this.request(t):void 0;this.sendAsync(t[0],t[1])}))}sendAsync(...t){return e.__awaiter(this,void 0,void 0,(function*(){const e={method:t[0].method,params:t[0].params},i=t[0].id;this.request(e).then((e=>{t[1](null,{id:i,jsonrpc:"2.0",result:e})})).catch((e=>{t[1](null,{id:i,jsonrpc:"2.0",error:e})}))}))}isConnected(){return!0}enable(){return e.__awaiter(this,void 0,void 0,(function*(){const e=yield this._hookRequest("eth_accounts");return e.length?new Promise((t=>t(e))):this.request({method:"eth_requestAccounts"})}))}on(e,t){"string"==typeof e&&"function"==typeof t&&(this.eventListener[e]&&this.eventListener[e].length>5||(this.eventListener[e]?(this.eventListener[e].push(t),this.eventListener[e]=Array.from(new Set(this.eventListener[e]))):this.eventListener[e]||(this.eventListener=Object.assign(Object.assign({},this.eventListener),{[e]:[t]})),this._registerEvent(e)))}removeListener(){}_initInpageListener(){window.addEventListener("message",(e=>{var i,n,s;if(e.data.target!==t)return;const o=null===(s=null===(n=null===(i=e.data)||void 0===i?void 0:i.value)||void 0===n?void 0:n.data)||void 0===s?void 0:s.mark;o&&("call_method"===o.type?this._handleNormalMethod(o,e):"register_event"===o.type&&this._handleEventMethod(o,e))}),!1)}_handleNormalMethod(e,t){var i,n,s,o,r;(null===(i=t.data.value.data)||void 0===i?void 0:i.error)?null===(n=this.callBackList[e.id])||void 0===n||n.reject(null===(s=t.data.value.data)||void 0===s?void 0:s.error):null===(o=this.callBackList[e.id])||void 0===o||o.resolve(null===(r=t.data.value.data)||void 0===r?void 0:r.result),delete this.callBackList[e.id]}_handleEventMethod(e,t){var i,o,r,a,d,h,l;const c=null===(a=null===(r=null===(o=null===(i=t.data)||void 0===i?void 0:i.value)||void 0===o?void 0:o.data)||void 0===r?void 0:r.mark)||void 0===a?void 0:a.eventName,u=null===(l=null===(h=null===(d=t.data)||void 0===d?void 0:d.value)||void 0===h?void 0:h.data)||void 0===l?void 0:l.params;if(c){const e=this.eventListener[c];if(!e)return void("https://app.openocean.finance"===window.location.origin&&window.location.reload());e.forEach((e=>{"chainChanged"===c&&(this.chainId=u,this.networkVersion=Number(u)),s.includes(window.location.origin)&&"chainChanged"===c||(n.includes(window.location.origin)?window.location.reload():e(u))}))}}_hookRequest(e){return new Promise(((n,s)=>{const o=(()=>{function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+e()+e()+e()+e()+e()+e()})();"string"==typeof e&&(e={method:e}),e=Object.assign(Object.assign({},e),{mark:{id:o,method:e.method,type:"call_method"}}),window.parent.postMessage({from:t,target:i,data:e},"*"),this.callBackList[o]={resolve:n,reject:s}}))}_registerEvent(e){const n={mark:{eventName:e,type:"register_event"},eventName:e};window.parent.postMessage({from:t,target:i,data:n},"*")}_getExperimentalApi(){return new Proxy({isUnlocked:()=>new Promise((e=>e(!0)))},{get:(e,t,...i)=>Reflect.get(e,t,...i)})}}exports.default=function(){var e;if(null===(e=window.obethereum)||void 0===e?void 0:e.isOpenBlock)return window.obethereum;let t=new o;t=new Proxy(t,{deleteProperty:()=>!0});try{Object.defineProperty(window,"obethereum",{set(e){console.log("set ethereum",e)},get:()=>t})}catch(e){console.log("initializeProvider error",e),window.obethereum=t}return window.web3=Object.assign({},window.web3),window.web3.currentProvider=t,window.dispatchEvent(new Event("ethereum#initialized")),t};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./index-aaf32aa5.cjs"),r=require("./index.es-3e845f07.cjs");require("@ethersproject/address"),require("@ethersproject/providers"),require("zustand"),require("events"),require("@ethersproject/constants"),require("@ethersproject/contracts"),require("@ethersproject/properties"),require("@ethersproject/transactions"),require("@ethersproject/bytes"),require("./_commonjs-dynamic-modules-f09a98c7.cjs"),require("./__node-resolve_empty-e2dee16c.cjs"),require("./browser-ponyfill-de0a8ec9.cjs"),exports.default=function({chainId:o,rpcUrl:n,rpc:t,walletConnectParams:i,darkMode:c},a){return e.__awaiter(this,void 0,void 0,(function*(){let s,d,u="wss://relay.walletconnect.com",l=!0;i&&(u=i.bridge||u,l=void 0!==i.qrcode?i.qrcode:l,i.infuraId,d=i.qrModalOptions||void 0),t?s=t:o&&n&&(s={[o]:n});const p=e.getIsMobile(),h=yield r.EthereumProvider.init({projectId:"59e050d1f27ed617e65bb9637c9498d6",chains:o?[o]:[],showQrModal:!p,rpcMap:s,qrModalOptions:Object.assign({themeMode:c?"dark":"light"},d)});return h.on("display_uri",(e=>{(null==d?void 0:d.openCallback)&&d.openCallback(e)})),h.on("connect",a.connect),h.on("disconnect",(e=>{a.disconnect(e),a.accountsChanged([])})),h.on("accountsChanged",a.accountsChanged),h.on("chainChanged",a.chainChanged),h.on("message",(({type:e,data:r})=>a.message(e,r))),new Promise((r=>e.__awaiter(this,void 0,void 0,(function*(){p?(h.once("display_uri",(o=>{let n=o;e.getIsIOS()&&(n=`rainbow://wc?uri=${encodeURIComponent(o)}&connector=rainbowkit`),window.location.href=n,r(e.convertWeb3Provider(h))})),h.enable()):(yield h.enable(),r(e.convertWeb3Provider(h)))}))))}))};
@@ -1 +0,0 @@
1
- "use strict";var e,r=require("./index-aaf32aa5.cjs"),a=require("./sha256-43414cf6.cjs"),i={exports:{}};exports.requireSha224=function(){return e||(e=1,t=i,r.commonjsGlobal,t.exports=(l=a.requireCore(),a.requireSha256(),s=(o=l).lib.WordArray,n=o.algo,c=n.SHA256,u=n.SHA224=c.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=4,e}}),o.SHA224=c._createHelper(u),o.HmacSHA224=c._createHmacHelper(u),l.SHA224)),i.exports;var t,o,s,n,c,u,l};
@@ -1 +0,0 @@
1
- "use strict";var t,n=require("./index-aaf32aa5.cjs"),e=require("./_commonjs-dynamic-modules-f09a98c7.cjs"),r=require("./__node-resolve_empty-e2dee16c.cjs"),i={exports:{}};function o(){return t||(t=1,o=i,n.commonjsGlobal,o.exports=(s=s||function(t,i){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==n.commonjsGlobal&&n.commonjsGlobal.crypto&&(o=n.commonjsGlobal.crypto),!o&&"function"==typeof e.commonjsRequire)try{o=r.require$$1}catch(t){}var s=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(n){var e;return t.prototype=n,e=new t,t.prototype=null,e}}(),c={},u=c.lib={},f=u.Base={extend:function(t){var n=a(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},h=u.WordArray=f.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=i?n:4*t.length},toString:function(t){return(t||p).stringify(this)},concat:function(t){var n=this.words,e=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=e[o>>>2]>>>24-o%4*8&255;n[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)n[r+a>>>2]=e[a>>>2];return this.sigBytes+=i,this},clamp:function(){var n=this.words,e=this.sigBytes;n[e>>>2]&=4294967295<<32-e%4*8,n.length=t.ceil(e/4)},clone:function(){var t=f.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],e=0;e<t;e+=4)n.push(s());return new h.init(n,t)}}),l=c.enc={},p=l.Hex={stringify:function(t){for(var n=t.words,e=t.sigBytes,r=[],i=0;i<e;i++){var o=n[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var n=t.length,e=[],r=0;r<n;r+=2)e[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new h.init(e,n/2)}},d=l.Latin1={stringify:function(t){for(var n=t.words,e=t.sigBytes,r=[],i=0;i<e;i++){var o=n[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,e=[],r=0;r<n;r++)e[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new h.init(e,n)}},y=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},m=u.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=y.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var e,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=n?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,u=t.min(4*c,o);if(c){for(var f=0;f<c;f+=s)this._doProcessBlock(i,f);e=i.splice(0,c),r.sigBytes-=u}return new h.init(e,u)},clone:function(){var t=f.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});u.Hasher=m.extend({cfg:f.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(n,e){return new t.init(e).finalize(n)}},_createHmacHelper:function(t){return function(n,e){return new g.HMAC.init(t,e).finalize(n)}}});var g=c.algo={};return c}(Math),s)),i.exports;var o,s}var s,a={exports:{}};exports.requireCore=o,exports.requireSha256=function(){return s||(s=1,t=a,n.commonjsGlobal,t.exports=(e=o(),function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.algo,a=[],c=[];!function(){function n(n){for(var e=t.sqrt(n),r=2;r<=e;r++)if(!(n%r))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)n(r)&&(i<8&&(a[i]=e(t.pow(r,.5))),c[i]=e(t.pow(r,1/3)),i++),r++}();var u=[],f=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,n){for(var e=this._hash.words,r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],f=e[5],h=e[6],l=e[7],p=0;p<64;p++){if(p<16)u[p]=0|t[n+p];else{var d=u[p-15],y=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,m=u[p-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[p]=y+u[p-7]+g+u[p-16]}var w=r&i^r&o^i&o,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=l+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&f^~a&h)+c[p]+u[p];l=h,h=f,f=a,a=s+_|0,s=o,o=i,i=r,r=_+(v+w)|0}e[0]=e[0]+r|0,e[1]=e[1]+i|0,e[2]=e[2]+o|0,e[3]=e[3]+s|0,e[4]=e[4]+a|0,e[5]=e[5]+f|0,e[6]=e[6]+h|0,e[7]=e[7]+l|0},_doFinalize:function(){var n=this._data,e=n.words,r=8*this._nDataBytes,i=8*n.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=t.floor(r/4294967296),e[15+(i+64>>>9<<4)]=r,n.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=o._createHelper(f),n.HmacSHA256=o._createHmacHelper(f)}(Math),e.SHA256)),a.exports;var t,e};