diff --git a/asset-manifest.json b/asset-manifest.json index 1f1beb0..9e7281d 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/static/css/main.a5a87122.css", - "main.js": "/static/js/main.fac6cec4.js", + "main.js": "/static/js/main.28af4245.js", "static/js/529.1494d80a.chunk.js": "/static/js/529.1494d80a.chunk.js", "static/media/montserrat-all-700-normal.woff": "/static/media/montserrat-all-700-normal.168d5b114e5a6d216802.woff", "static/media/montserrat-all-500-normal.woff": "/static/media/montserrat-all-500-normal.124bdbbc44b5aae423df.woff", @@ -34,11 +34,11 @@ "static/media/background.svg": "/static/media/background.63e7f18a9804bd3861eed21469656f14.svg", "index.html": "/index.html", "main.a5a87122.css.map": "/static/css/main.a5a87122.css.map", - "main.fac6cec4.js.map": "/static/js/main.fac6cec4.js.map", + "main.28af4245.js.map": "/static/js/main.28af4245.js.map", "529.1494d80a.chunk.js.map": "/static/js/529.1494d80a.chunk.js.map" }, "entrypoints": [ "static/css/main.a5a87122.css", - "static/js/main.fac6cec4.js" + "static/js/main.28af4245.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 35aa375..67b81b4 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Ownables NFT Paris
\ No newline at end of file +Ownables NFT Paris
\ No newline at end of file diff --git a/ownables/antenna.zip b/ownables/antenna.zip index 684367b..bc7f150 100644 Binary files a/ownables/antenna.zip and b/ownables/antenna.zip differ diff --git a/ownables/armor.zip b/ownables/armor.zip index daacc13..f8b588d 100644 Binary files a/ownables/armor.zip and b/ownables/armor.zip differ diff --git a/ownables/car.zip b/ownables/car.zip index 9a56727..68697e7 100644 Binary files a/ownables/car.zip and b/ownables/car.zip differ diff --git a/ownables/cookie.zip b/ownables/cookie.zip new file mode 100644 index 0000000..ff31e66 Binary files /dev/null and b/ownables/cookie.zip differ diff --git a/ownables/paint.zip b/ownables/paint.zip index 5b26b6b..e4de814 100644 Binary files a/ownables/paint.zip and b/ownables/paint.zip differ diff --git a/ownables/potion.zip b/ownables/potion.zip index e7ae050..169e730 100644 Binary files a/ownables/potion.zip and b/ownables/potion.zip differ diff --git a/ownables/robot.zip b/ownables/robot.zip index 34f209a..c79c664 100644 Binary files a/ownables/robot.zip and b/ownables/robot.zip differ diff --git a/ownables/speakers.zip b/ownables/speakers.zip index 41906ab..c318486 100644 Binary files a/ownables/speakers.zip and b/ownables/speakers.zip differ diff --git a/ownables/storiedApes.zip b/ownables/storiedApes.zip new file mode 100644 index 0000000..d0ca165 Binary files /dev/null and b/ownables/storiedApes.zip differ diff --git a/ownables/taytay.zip b/ownables/taytay.zip new file mode 100644 index 0000000..ec8ad7c Binary files /dev/null and b/ownables/taytay.zip differ diff --git a/ownables/verticalFlippedApes.zip b/ownables/verticalFlippedApes.zip new file mode 100644 index 0000000..4e16a28 Binary files /dev/null and b/ownables/verticalFlippedApes.zip differ diff --git a/static/js/main.fac6cec4.js b/static/js/main.28af4245.js similarity index 99% rename from static/js/main.fac6cec4.js rename to static/js/main.28af4245.js index 53ac4f7..8410fe3 100644 --- a/static/js/main.fac6cec4.js +++ b/static/js/main.28af4245.js @@ -1,3 +1,3 @@ -/*! For license information please see main.fac6cec4.js.LICENSE.txt */ -(function(){var __webpack_modules__={6060:function(e,t,n){var r=n(9728).default,i=n(6690).default,o=n(1655).default,a=n(6389).default,s=n(3496).default;!function(){"use strict";var t={831:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){o(n,e);var t=a(n);function n(e,r,o,a,s){var u;return i(this,n),(u=t.call(this,e+":"+o+":"+a+": "+r)).reason=r,u.filename=e,u.line=o,u.column=a,u.source=s,u}return r(n)}(s(Error));t.default=n},711:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return r((function e(t,n,r){i(this,e),this.start=t,this.end=n,this.source=r}))}()},607:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0;var o=n(654);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.default}});var a=n(373);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.default}}),i(n(371),t),i(n(831),t),i(n(711),t)},654:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var r=n(831),i=n(711),o=n(371),a=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function s(e){return e?e.trim():""}function u(e,t){var n=e&&"string"==typeof e.type,r=n?e:t;for(var i in e){var o=e[i];Array.isArray(o)?o.forEach((function(e){u(e,r)})):o&&"object"==typeof o&&u(o,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}t.parse=function(e,t){t=t||{};var n=1,c=1;function l(){var e={line:n,column:c};return function(r){return r.position=new i.default(e,{line:n,column:c},(null==t?void 0:t.source)||""),y(),r}}var f=[];function d(i){var o=new r.default((null==t?void 0:t.source)||"",i,n,c,e);if(!(null==t?void 0:t.silent))throw o;f.push(o)}function p(){return m(/^{\s*/)}function h(){return m(/^}/)}function v(){var t,n=[];for(y(),b(n);e.length&&"}"!==e.charAt(0)&&(t=A()||T());)t&&(n.push(t),b(n));return n}function m(t){var r=t.exec(e);if(r){var i=r[0];return function(e){var t=e.match(/\n/g);t&&(n+=t.length);var r=e.lastIndexOf("\n");c=~r?e.length-r:c+e.length}(i),e=e.slice(i.length),r}}function y(){m(/^\s*/)}function b(e){var t;for(e=e||[];t=g();)t&&e.push(t);return e}function g(){var t=l();if("/"===e.charAt(0)&&"*"===e.charAt(1)){var n=m(/^\/\*[^]*?\*\//);return n?t({type:o.CssTypes.comment,comment:n[0].slice(2,-2)}):d("End of comment missing")}}function w(){var e=m(/^([^{]+)/);if(e){var t=s(e[0]).replace(/\/\*[^]*?\*\//gm,"");return-1===t.indexOf(",")?[t]:t.replace(/("|')(?:\\\1|.)*?\1|\(.*?\)/g,(function(e){return e.replace(/,/g,"\u200c")})).split(",").map((function(e){return s(e.replace(/\u200C/g,","))}))}}function x(){var e=l(),t=m(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){var n=s(t[0]);if(!m(/^:\s*/))return d("property missing ':'");var r=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),i=e({type:o.CssTypes.declaration,property:n.replace(a,""),value:r?s(r[0]).replace(a,""):""});return m(/^[;\s]*/),i}}function k(){var e,t=[];if(!p())return d("missing '{'");for(b(t);e=x();)e&&(t.push(e),b(t));return h()?t:d("missing '}'")}function _(){for(var e,t=[],n=l();e=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),m(/^,\s*/);if(t.length)return n({type:o.CssTypes.keyframe,values:t,declarations:k()||[]})}var S=F("import"),E=F("charset"),C=F("namespace");function F(e){var t=new RegExp("^@"+e+"\\s*((:?[^;'\"]|\"(?:\\\\\"|[^\"])*?\"|'(?:\\\\'|[^'])*?')+);");return function(){var n=l(),r=m(t);if(r){var i={type:e};return i[e]=r[1].trim(),n(i)}}}function A(){if("@"===e[0])return function(){var e=l(),t=m(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1],r=m(/^([-\w]+)\s*/);if(!r)return d("@keyframes missing name");var i=r[1];if(!p())return d("@keyframes missing '{'");for(var a,s=b();a=_();)s.push(a),s=s.concat(b());return h()?e({type:o.CssTypes.keyframes,name:i,vendor:n,keyframes:s}):d("@keyframes missing '}'")}}()||function(){var e=l(),t=m(/^@media *([^{]+)/);if(t){var n=s(t[1]);if(!p())return d("@media missing '{'");var r=b().concat(v());return h()?e({type:o.CssTypes.media,media:n,rules:r}):d("@media missing '}'")}}()||function(){var e=l(),t=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:o.CssTypes.customMedia,name:s(t[1]),media:s(t[2])})}()||function(){var e=l(),t=m(/^@supports *([^{]+)/);if(t){var n=s(t[1]);if(!p())return d("@supports missing '{'");var r=b().concat(v());return h()?e({type:o.CssTypes.supports,supports:n,rules:r}):d("@supports missing '}'")}}()||S()||E()||C()||function(){var e=l(),t=m(/^@([-\w]+)?document *([^{]+)/);if(t){var n=s(t[1]),r=s(t[2]);if(!p())return d("@document missing '{'");var i=b().concat(v());return h()?e({type:o.CssTypes.document,document:r,vendor:n,rules:i}):d("@document missing '}'")}}()||function(){var e=l();if(m(/^@page */)){var t=w()||[];if(!p())return d("@page missing '{'");for(var n,r=b();n=x();)r.push(n),r=r.concat(b());return h()?e({type:o.CssTypes.page,selectors:t,declarations:r}):d("@page missing '}'")}}()||function(){var e=l();if(m(/^@host\s*/)){if(!p())return d("@host missing '{'");var t=b().concat(v());return h()?e({type:o.CssTypes.host,rules:t}):d("@host missing '}'")}}()||function(){var e=l();if(m(/^@font-face\s*/)){if(!p())return d("@font-face missing '{'");for(var t,n=b();t=x();)n.push(t),n=n.concat(b());return h()?e({type:o.CssTypes.fontFace,declarations:n}):d("@font-face missing '}'")}}()||function(){var e=l(),t=m(/^@container *([^{]+)/);if(t){var n=s(t[1]);if(!p())return d("@container missing '{'");var r=b().concat(v());return h()?e({type:o.CssTypes.container,container:n,rules:r}):d("@container missing '}'")}}()||function(){var e=l(),t=m(/^@layer *([^{;@]+)/);if(t){var n=s(t[1]);if(!p())return m(/^[;\s]*/),e({type:o.CssTypes.layer,layer:n});var r=b().concat(v());return h()?e({type:o.CssTypes.layer,layer:n,rules:r}):d("@layer missing '}'")}}()}function T(){var e=l(),t=w();return t?(b(),e({type:o.CssTypes.rule,selectors:t,declarations:k()||[]})):d("selector missing")}return u(function(){var e=v();return{type:o.CssTypes.stylesheet,stylesheet:{source:null==t?void 0:t.source,rules:e,parsingErrors:f}}}())},t.default=t.parse},854:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(371);t.default=function(){function e(t){i(this,e),this.level=0,this.indentation=" ",this.compress=!1,"string"==typeof(null==t?void 0:t.indent)&&(this.indentation=null==t?void 0:t.indent),(null==t?void 0:t.compress)&&(this.compress=!0)}return r(e,[{key:"emit",value:function(e,t){return e}},{key:"indent",value:function(e){return this.level=this.level||1,e?(this.level+=e,""):Array(this.level).join(this.indentation)}},{key:"visit",value:function(e){switch(e.type){case o.CssTypes.stylesheet:return this.stylesheet(e);case o.CssTypes.rule:return this.rule(e);case o.CssTypes.declaration:return this.declaration(e);case o.CssTypes.comment:return this.comment(e);case o.CssTypes.container:return this.container(e);case o.CssTypes.charset:return this.charset(e);case o.CssTypes.document:return this.document(e);case o.CssTypes.customMedia:return this.customMedia(e);case o.CssTypes.fontFace:return this.fontFace(e);case o.CssTypes.host:return this.host(e);case o.CssTypes.import:return this.import(e);case o.CssTypes.keyframes:return this.keyframes(e);case o.CssTypes.keyframe:return this.keyframe(e);case o.CssTypes.layer:return this.layer(e);case o.CssTypes.media:return this.media(e);case o.CssTypes.namespace:return this.namespace(e);case o.CssTypes.page:return this.page(e);case o.CssTypes.supports:return this.supports(e)}}},{key:"mapVisit",value:function(e,t){var n="";t=t||"";for(var r=0,i=e.length;r0?l(w,--b):0,m--,10===g&&(m=1,v--),g}function S(){return g=b2||A(g)>3?"":" "}function B(e,t){for(;--t&&S()&&!(g<48||g>102||g>57&&g<65||g>70&&g<97););return F(e,C()+(t<6&&32==E()&&32==S()))}function Z(e){for(;S();)switch(g){case e:return b;case 34:case 39:34!==e&&39!==e&&Z(g);break;case 40:41===e&&Z(e);break;case 92:S()}return b}function R(e,t){for(;S()&&e+g!==57&&(e+g!==84||47!==E()););return"/*"+F(t,b-1)+"*"+o(47===e?e:S())}function I(e){for(;!A(E());)S();return F(e,b)}var M="-ms-",D="-moz-",N="-webkit-",z="comm",L="rule",U="decl",H="@import",V="@keyframes";function K(e,t){for(var n="",r=p(e),i=0;i0&&d(D)-y&&h(g>32?J(D+";",r,n,y-1):J(u(D," ","")+";",r,n,y-2),p);break;case 59:D+=";";default:if(h(M=Y(D,t,n,v,m,i,f,T,P=[],Z=[],y),a),123===A)if(0===m)G(D,t,M,M,P,a,y,f,Z);else switch(99===b&&110===l(D,3)?100:b){case 100:case 109:case 115:G(e,M,M,r&&h(Y(e,M,M,0,0,i,f,T,i,P=[],y),Z),i,Z,y,f,r?P:Z);break;default:G(D,M,M,M,[""],Z,0,f,Z)}}v=m=g=0,x=F=1,T=D="",y=s;break;case 58:y=1+d(D),g=w;default:if(x<1)if(123==A)--x;else if(125==A&&0==x++&&125==_())continue;switch(D+=o(A),A*x){case 38:F=m>0?1:(D+="\f",-1);break;case 44:f[v++]=(d(D)-1)*F,F=1;break;case 64:45===E()&&(D+=O(S())),b=E(),m=y=d(T=D+=I(C())),A++;break;case 45:45===w&&2==d(D)&&(x=0)}}return a}function Y(e,t,n,r,o,a,c,l,d,h,v){for(var m=o-1,y=0===o?a:[""],b=p(y),g=0,w=0,k=0;g0?y[_]+" "+S:u(S,/&\f/g,y[_])))&&(d[k++]=E);return x(e,t,n,0===o?L:l,d,h,v)}function X(e,t,n){return x(e,t,n,z,o(g),f(e,2,-2),0)}function J(e,t,n,r){return x(e,t,n,U,f(e,0,r),f(e,r+1,-1),r)}var Q=function(e,t,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(t[n]=1),!A(i);)S();return F(e,b)},$=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Q(b-1,t,n);break;case 2:e[n]+=O(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=S());return e}(T(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(n))&&!r){ee.set(e,!0);for(var i=[],o=$(t,i),a=n.props,s=0,u=0;s6)switch(l(e,t+1)){case 109:if(45!==l(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+D+(108==l(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?re(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==l(e,t+1))break;case 6444:switch(l(e,d(e)-3-(~c(e,"!important")&&10))){case 107:return u(e,":",":"+N)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(45===l(e,14)?"inline-":"")+"box$3$1"+N+"$2$3$1"+M+"$2box$3")+e}break;case 5936:switch(l(e,t+11)){case 114:return N+e+M+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+M+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+M+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return N+e+M+e+e}return e}var ie=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=re(e.value,e.length);break;case V:return K([k(e,{value:u(e.value,"@","@"+N)})],r);case L:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return K([k(e,{props:[u(t,/:(read-\w+)/,":"+D+"$1")]})],r);case"::placeholder":return K([k(e,{props:[u(t,/:(plac\w+)/,":"+N+"input-$1")]}),k(e,{props:[u(t,/:(plac\w+)/,":"+D+"$1")]}),k(e,{props:[u(t,/:(plac\w+)/,M+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||ie;var o,a,s={},u=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(3213),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},l=(0,o.Z)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===i[e]||u(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"L";switch(o(this,e),this.networkId=t,this.networkId){case"L":this.nodeAddress=f.DEFAULT_MAINNET_NODE;break;case"T":this.nodeAddress=f.DEFAULT_TESTNET_NODE}this.accountFactories={ed25519:new u.AccountFactoryED25519(this.networkId),secp256r1:new u.AccountFactoryECDSA(this.networkId,"secp256r1"),secp256k1:new u.AccountFactoryECDSA(this.networkId,"secp256k1")}}return a(e,[{key:"nodeAddress",get:function(){if(!this._nodeAddress)throw Error("Public node not configured");return this._nodeAddress},set:function(e){this._nodeAddress=e,this._node=new c.PublicNode(e)}},{key:"node",get:function(){if(!this._node)throw Error("Public node not configured");return this._node},set:function(e){this._node=e,this._nodeAddress=e.url}},{key:"account",value:function(){var t,n,r,i,o,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=this.accountFactories[null!==(r=null!==(t=a.keyType)&&void 0!==t?t:null===(n=a.parent)||void 0===n?void 0:n.keyType)&&void 0!==r?r:"ed25519"];if(a.seed){var c=a.seedPassword?p.decryptSeed(a.seed,a.seedPassword,f.SEED_ENCRYPTION_ROUNDS):a.seed;o=s.createFromSeed(c,null!==(i=a.nonce)&&void 0!==i?i:0)}else o=a.parent?s.createFromSeed(a.parent.seed,a.nonce):a.privateKey?s.createFromPrivateKey(a.privateKey):a.publicKey?s.createFromPublicKey(a.publicKey):s.create();return a.parent&&(o.parent=a.parent instanceof u.Account?a.parent:this.account(Object.assign({keyType:a.keyType},a.parent))),e.guardAccount(o,a.address,a.publicKey,a.privateKey)}},{key:"isValidAddress",value:function(e){return l.isValidAddress(e,this.networkId)}},{key:"transfer",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return new d.Transfer(t,n,r).signWith(e).broadcastTo(this.node)}},{key:"massTransfer",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return new d.MassTransfer(t,n).signWith(e).broadcastTo(this.node)}},{key:"burn",value:function(e,t){return new d.Burn(t).signWith(e).broadcastTo(this.node)}},{key:"anchor",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r5&&void 0!==arguments[5]?arguments[5]:0;r(this,e),this.cypher=t,this.keyType=t.keyType,this.address=n,this.networkId=c.getNetwork(n),this.signKey=i,this.encryptKey=o,this.seed=s,this.nonce="number"===typeof u?u:new a.default(u)}return i(e,[{key:"encryptSeed",value:function(e){if(!this.seed)throw new Error("Account seed unknown");return u.encryptSeed(this.seed,e,s.SEED_ENCRYPTION_ROUNDS)}},{key:"encodeSeed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.Encoding.base58;if(!this.seed)throw new Error("Account seed unknown");return o.encode(l.strToBytes(this.seed),e)}},{key:"signMessage",value:function(e){return new a.default(this.cypher.createSignature(new a.default(e)))}},{key:"sign",value:function(e){return"object"===typeof e&&"signWith"in e?e.signWith(this):this.signMessage(e)}},{key:"verify",value:function(e,t){return this.cypher.verifySignature(new a.default(e),t)}},{key:"encryptFor",value:function(e,t){return new a.default(this.cypher.encryptMessage(new a.default(t),e.encryptKey.publicKey))}},{key:"decryptFrom",value:function(e,t){return new a.default(this.cypher.decryptMessage(t,e.encryptKey.publicKey))}},{key:"publicKey",get:function(){return this.signKey.publicKey.base58}},{key:"privateKey",get:function(){return this.signKey.privateKey.base58}},{key:"did",get:function(){return"lto:did:"+this.address}}]),e}();t.default=f},5020:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0});var o=n(2187),a=function(){function e(t){r(this,e),this.chainId=t}return i(e,null,[{key:"nonce",value:function(e){return"number"===typeof e?o.int32ToBytes(e,!0):e}}]),e}();t.default=a},2907:function(e,t,n){"use strict";var r=n(9728).default,i=n(6690).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Cypher=void 0;var o=r((function e(t){i(this,e),this.keyType=t}));t.Cypher=o},5700:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(5020),u=n(1988),c=n(3678),l=n(1141),f=n(263),d=n(1968),p=n(154),h=n(4118),v=function(e){o(n,e);var t=a(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"secp256k1";return r(this,n),(i=t.call(this,e)).curve=o,i}return i(n,[{key:"createFromSeed",value:function(e){throw new Error("Not implemented")}},{key:"createFromPublicKey",value:function(e){var t=null;e.length>68&&"string"==typeof e&&(t="x"==e[1]?c.decode(e.substring(2),c.Encoding.hex):c.decode(e,c.Encoding.hex),e=c.decode(h.getCompressPublicKey(e),c.Encoding.hex));var n="string"===typeof e?p.default.fromBase58(e):new p.default(e),r={privateKey:null,publicKey:n},i={privateKey:null,publicKey:new p.default(t)},o=l.buildRawAddress(n,this.chainId),a=new d.ECDSA(this.curve,i);return new u.default(a,o,r)}},{key:"createFromPrivateKey",value:function(e){var t=n.buildSignKeyPairFromPrivateKey(e,this.curve),r=t.compressed,i=t.uncompressed,o=new d.ECDSA(this.curve,i),a=l.buildRawAddress(r.publicKey,this.chainId);return new u.default(o,a,r)}},{key:"create",value:function(){var e=n.buildSignKeyPairFromRandom(this.curve),t=e.compressed,r=e.uncompressed,i=new d.ECDSA(this.curve,r),o=l.buildRawAddress(t.publicKey,this.chainId);return new u.default(i,o,t)}}],[{key:"buildSignKeyPairFromRandom",value:function(e){var t=new f.crypto.ECDSA({curve:e}),n=t.generateKeyPairHex(),r=t.getPublicKeyXYHex().y,i=t.getPublicKeyXYHex().x;return{compressed:{privateKey:p.default.fromHex(n.ecprvhex),publicKey:p.default.fromHex(h.addPrefix(i,r))},uncompressed:{privateKey:p.default.fromHex(n.ecprvhex),publicKey:p.default.fromHex(n.ecpubhex)}}}},{key:"buildSignKeyPairFromPrivateKey",value:function(e,t){var n="string"===typeof e?p.default.fromBase58(e):new p.default(e),r=new f.crypto.ECDSA({curve:t,prv:n.hex}),i=r.generatePublicKeyHex(),o=r.getPublicKeyXYHex().y,a=r.getPublicKeyXYHex().x;return{compressed:{privateKey:n,publicKey:p.default.fromHex(h.addPrefix(a,o))},uncompressed:{privateKey:n,publicKey:p.default.fromHex(i)}}}}]),n}(s.default);t.default=v},1968:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ECDSA=void 0;var s=n(2907),u=n(3678),c=n(263),l=n(2283),f=function(e){o(n,e);var t=a(n);function n(e,i){var o;return r(this,n),(o=t.call(this,e)).sign=i,o.ec=new c.crypto.ECDSA({curve:e}),o}return i(n,[{key:"createSignature",value:function(e){if(!this.sign.privateKey)throw new Error("Unable to sign: no private key");var t=this.ec.signHex(l.sha256(e),this.sign.privateKey.hex);return u.decode(c.crypto.ECDSA.asn1SigToConcatSig(t),u.Encoding.hex)}},{key:"verifySignature",value:function(e,t){return this.ec.verifyHex(l.sha256(e),c.crypto.ECDSA.concatSigToASN1Sig(u.encode(t,u.Encoding.hex)),u.encode(this.sign.publicKey,u.Encoding.hex))}},{key:"encryptMessage",value:function(e,t){throw new Error("Encryption not implemented for ECDSA")}},{key:"decryptMessage",value:function(e){throw new Error("Encryption not implemented for ECDSA")}}]),n}(s.Cypher);t.ECDSA=f},4901:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(5020),u=n(1988),c=n(9808),l=n(6053),f=n(6896),d=n(1915),p=n(154),h=n(2187),v=n(5302),m=n(1141),y=n(3001),b=function(e){o(n,e);var t=a(n);function n(e){var i;return r(this,n),(i=t.call(this,e)).keyType="ed25519",i}return i(n,[{key:"createFromSeed",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=n.buildSignKeyPairFromSeed(e,t),i={privateKey:r.privateKey,publicKey:r.publicKey},o={privateKey:d.default.convertSecretKey(r.privateKey),publicKey:d.default.convertSecretKey(r.publicKey)},a=new f.ED25519(i,o),s=m.buildRawAddress(i.publicKey,this.chainId);return new u.default(a,s,i,o,e,t)}},{key:"createFromPrivateKey",value:function(e){var t=n.buildSignKeyPairFromPrivateKey(e),r={privateKey:t.privateKey,publicKey:t.publicKey},i={privateKey:d.default.convertSecretKey(t.privateKey),publicKey:d.default.convertSecretKey(t.publicKey)},o=new f.ED25519(r,i),a=m.buildRawAddress(r.publicKey,this.chainId);return new u.default(o,a,r,i)}},{key:"createFromPublicKey",value:function(e){var t={privateKey:new p.default,publicKey:p.default.fromBase58(e)},n={privateKey:t.privateKey,publicKey:t.publicKey},r={privateKey:new p.default,publicKey:d.default.convertSecretKey(t.publicKey)},i=new f.ED25519(n,r),o=m.buildRawAddress(n.publicKey,this.chainId);return new u.default(i,o,n,r)}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15;return this.createFromSeed(v.generateNewSeed(e))}}],[{key:"buildSignKeyPairFromSeed",value:function(e,t){if(!e||"string"!==typeof e)throw new Error("Missing or invalid seed phrase");var r=h.strToBytes(e),i=n.buildSeedHash(r,s.default.nonce(t)),o=c.sign.keyPair.fromSeed(i);return{privateKey:new p.default(o.secretKey),publicKey:new p.default(o.publicKey)}}},{key:"buildSeedHash",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8Array,n=h.concatBytes(t,e),r=m.secureHash(n);return y.sha256(r)}},{key:"buildSignKeyPairFromPrivateKey",value:function(e){var t=c.sign.keyPair.fromSecretKey(l.decode(e));return{privateKey:new p.default(t.secretKey),publicKey:new p.default(t.publicKey)}}}]),n}(s.default);t.default=b},6896:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ED25519=void 0;var s=n(2907),u=n(9808),c=n(1915),l=n(3667),f=n(2187),d=n(1141),p=function(e){o(n,e);var t=a(n);function n(e,i){var o;return r(this,n),o=t.call(this,"ed25519"),i||(i={privateKey:e.privateKey?c.default.convertSecretKey(e.privateKey):void 0,publicKey:c.default.convertSecretKey(e.publicKey)}),o.sign=e,o.encrypt=i,o}return i(n,[{key:"encryptMessage",value:function(e,t){if(!this.encrypt.privateKey)throw new Error("Missing private key for encryption");var n=d.randomNonce();return f.mergeTypedArrays(u.box(e,n,t,this.sign.privateKey),n)}},{key:"decryptMessage",value:function(e,t){var n=e.slice(0,-24),r=e.slice(-24),i=u.box.open(n,r,t,this.sign.privateKey);if(!i)throw new l.DecryptError("Unable to decrypt message with given keys");return i}},{key:"createSignature",value:function(e){if(!this.sign.privateKey)throw new Error("Missing private key for signing");return u.sign.detached(e,this.sign.privateKey)}},{key:"verifySignature",value:function(e,t){return u.sign.detached.verify(e,t,this.sign.publicKey)}}]),n}(s.Cypher);t.ED25519=p},552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1988);Object.defineProperty(t,"Account",{enumerable:!0,get:function(){return r.default}});var i=n(5020);Object.defineProperty(t,"AccountFactory",{enumerable:!0,get:function(){return i.default}});var o=n(5700);Object.defineProperty(t,"AccountFactoryECDSA",{enumerable:!0,get:function(){return o.default}});var a=n(4901);Object.defineProperty(t,"AccountFactoryED25519",{enumerable:!0,get:function(){return a.default}})},6318:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_TESTNET_NODE=t.DEFAULT_MAINNET_NODE=t.SEED_ENCRYPTION_ROUNDS=t.PUBLIC_KEY_LENGTH_ECDSA=t.UNCOMPRESSED_PUBLIC_KEY_LENGTH_ECDSA=t.PUBLIC_KEY_LENGTH=t.ADDRESS_VERSION=t.EVENT_CHAIN_VERSION=void 0,t.EVENT_CHAIN_VERSION=64,t.ADDRESS_VERSION=1,t.PUBLIC_KEY_LENGTH=32,t.UNCOMPRESSED_PUBLIC_KEY_LENGTH_ECDSA=65,t.PUBLIC_KEY_LENGTH_ECDSA=33,t.SEED_ENCRYPTION_ROUNDS=5e3,t.DEFAULT_MAINNET_NODE="https://nodes.lto.network",t.DEFAULT_TESTNET_NODE="https://testnet.lto.network"},1466:function(e,t,n){"use strict";var r=n(9728).default,i=n(6690).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){o(n,e);var t=a(n);function n(){return i(this,n),t.apply(this,arguments)}return r(n)}(n(8540).default);t.default=s},8540:function(e,t,n){"use strict";var r=n(9728).default,i=n(6690).default,o=n(1655).default,a=n(6389).default,s=n(3496).default;function u(e){return"\n".concat(e,"\n")}Object.defineProperty(t,"__esModule",{value:!0});var c=function(e){o(n,e);var t=a(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return i(this,n),r=t.call(this,"".concat(e,":\n").concat(function(e){if(e instanceof Error)return u(e.toString());if(void 0===e||null===e)return"";try{return u(JSON.stringify(e,null,2))}catch(t){return u("Not possible to retrieve error data")}}(o))),r.data=o,r}return r(n)}(s(Error));t.default=c},889:function(e,t,n){"use strict";var r=n(9728).default,i=n(6690).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(8540),u="Failed to fetch";var c=function(e){o(n,e);var t=a(n);function n(e,r){return i(this,n),t.call(this,"Server request to '".concat(e,"' has failed"),function(e){return!e.error&&e.message&&-1!==e.message.indexOf(u)?{error:-1,message:"Failed to fetch"}:e}(r))}return r(n)}(s.default);t.default=c},3667:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1466);Object.defineProperty(t,"DecryptError",{enumerable:!0,get:function(){return r.default}});var i=n(889);Object.defineProperty(t,"RequestError",{enumerable:!0,get:function(){return i.default}})},1328:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0});var o=n(7526),a=n(154),s=n(6896),u=n(2187),c=n(1968),l=n(1141),f=function(){function e(t,n,i){if(r(this,e),t instanceof a.default)this.mediaType=null!==n&&void 0!==n?n:"application/octet-stream",this.data=t;else{if(n&&"application/json"!==n)throw new Error("Unable to encode data as ".concat(n));this.mediaType=null!==n&&void 0!==n?n:"application/json",this.data=new a.default(JSON.stringify(t))}i&&(this.previous="string"==typeof i?a.default.fromBase58(i):new a.default(i))}return i(e,[{key:"hash",get:function(){var e;return null!==(e=this._hash)&&void 0!==e?e:new a.default(this.toBinary()).hash()}},{key:"toBinary",value:function(){if("undefined"==typeof this.data)throw new Error("Event cannot be converted to binary: data unknown");if(!this.signKey)throw new Error("Event cannot be converted to binary: sign key not set");if(!this.previous)throw new Error("Event cannot be converted to binary: event is not part of an event chain");return u.concatBytes(this.previous,Uint8Array.from([l.keyTypeId(this.signKey.keyType)]),this.signKey.publicKey,Uint8Array.from(o.longToByteArray(this.timestamp)),Uint8Array.from(o.stringToByteArray(this.mediaType)),this.data)}},{key:"cypher",get:function(){switch(this.signKey.keyType){case"ed25519":return new s.ED25519({publicKey:this.signKey.publicKey});case"secp256k1":return new c.ECDSA("secp256k1",{publicKey:this.signKey.publicKey});case"secp256r1":return new c.ECDSA("secp256r1",{publicKey:this.signKey.publicKey});default:throw Error("Unsupported key type ".concat(this.signKey.publicKey))}}},{key:"verifySignature",value:function(){var e;if(!this.signature||!this.signKey)throw new Error("Event ".concat(null===(e=this._hash)||void 0===e?void 0:e.base58," is not signed"));return this.cypher.verifySignature(this.toBinary(),this.signature)}},{key:"signWith",value:function(e){this.timestamp||(this.timestamp=Date.now());try{this.signKey={keyType:e.keyType,publicKey:a.default.fromBase58(e.publicKey)},this.signature=e.sign(this.toBinary()),this._hash=this.hash}catch(t){throw new Error("Failed to sign event. ".concat(t.message||t))}return this}},{key:"addTo",value:function(e){return e.add(this),this}},{key:"isSigned",value:function(){return!!this.signature}},{key:"parsedData",get:function(){if(!this.mediaType.startsWith("application/json"))throw new Error('Unable to parse data with media type "'.concat(this.mediaType,'"'));return JSON.parse(this.data.toString())}},{key:"toJSON",value:function(){var e,t;return{timestamp:this.timestamp,previous:null===(e=this.previous)||void 0===e?void 0:e.base58,signKey:this.signKey?{keyType:this.signKey.keyType,publicKey:this.signKey.publicKey.base58}:void 0,signature:null===(t=this.signature)||void 0===t?void 0:t.base58,hash:this.signKey?this.hash.base58:void 0,mediaType:this.mediaType,data:"base64:"+this.data.base64}}}],[{key:"create",value:function(){return Object.create(this.prototype)}},{key:"from",value:function(t){var n=e.create();try{n.timestamp=t.timestamp,t.previous&&(n.previous=a.default.fromBase58(t.previous)),t.signKey&&(n.signKey={publicKey:a.default.fromBase58(t.signKey.publicKey),keyType:t.signKey.keyType}),t.signature&&(n.signature=a.default.fromBase58(t.signature)),t.hash&&(n._hash=a.default.fromBase58(t.hash)),n.mediaType=t.mediaType,n.data="string"===typeof t.data&&t.data.startsWith("base64:")?a.default.fromBase64(t.data.substr(7)):new a.default(t.data)}catch(r){throw new Error("Unable to create event from JSON data: ".concat(r.message||r))}return n}}]),e}();t.default=f},1294:function(e,t,n){"use strict";var r=n(7424).default,i=n(4704).default,o=n(6690).default,a=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(1328),u=n(1272),c=n(154),l=n(9851),f=n(2187),d=n(6053),p=n(3001),h=n(1141),v=n(7526),m=function(){function e(t){o(this,e),this.events=[],this.id=t,this.networkId=h.getNetwork(t)}return a(e,[{key:"createDerivedId",value:function(t){var n=t?e.createNonce(t):e.getRandomNonce();return e.buildId(81,this.networkId,c.default.fromBase58(this.id),n)}},{key:"isDerivedId",value:function(t){return e.validateId(81,this.networkId,t,c.default.fromBase58(this.id))}},{key:"add",value:function(t){if(this.events.length>0&&!this.latestEvent.isSigned())throw new Error("Unable to add event: last event on chain is not signed");return t instanceof e?this._addChain(t):this._addEvent(t),this}},{key:"_addEvent",value:function(e){e.previous||(e.previous=this.latestHash),this.assertEvent(e),this.events.push(e)}},{key:"_addChain",value:function(e){if(e.id!==this.id)throw Error("Chain id mismatch");var t=0;if(e.partial&&(t=this.events.findIndex((function(t){return t.hash.hex===e.partial.hash.hex}))+1,0===t))throw new Error("Events don't fit onto this chain: Event ".concat(e.partial.hash.base58," not found"));var n,o=i(e.events.entries());try{for(o.s();!(n=o.n()).done;){var a=r(n.value,2),s=a[0],u=a[1];if(this.events[t+s]){if(this.events[t+s].hash.hex!==u.hash.hex)throw new l.default(this,this.events[t+s],e.events[s])}else this.assertEvent(u),this.events.push(u)}}catch(c){o.e(c)}finally{o.f()}}},{key:"has",value:function(e){var t=e instanceof s.default?e.hash:e;return!!this.events.find((function(e){return e.hash.hex===t.hex}))}},{key:"latestHash",get:function(){var e;return 0==this.events.length?(null===(e=this.partial)||void 0===e?void 0:e.hash)||this.initialHash:this.events.slice(-1)[0].hash}},{key:"initialHash",get:function(){return c.default.fromBase58(this.id).hash()}},{key:"latestEvent",get:function(){return this.events[this.events.length-1]}},{key:"state",get:function(){var e;return 0==this.events.length?(null===(e=this.partial)||void 0===e?void 0:e.state)||this.initialState:this.stateAt(this.events[this.events.length-1])}},{key:"initialState",get:function(){return c.default.fromBase58(this.id).reverse().hash()}},{key:"stateAt",value:function(e){if(!e.signature)throw new Error("Unable to get state: latest event is not signed");return e.signature.hash()}},{key:"assertEvent",value:function(e){if(!e.previous||e.previous.hex!=this.latestHash.hex)throw new Error("Event doesn't fit onto the chain after ".concat(this.latestHash.base58));if(e.isSigned()&&!e.verifySignature())throw new Error("Invalid signature of event ".concat(e.hash.base58))}},{key:"validate",value:function(){if(0===this.events.length)throw new Error("No events on event chain");if(this.validateEvents(),this.events[0].previous.hex===this.initialHash.hex&&!e.validateId(65,this.networkId,this.id,this.events[0].signKey.publicKey))throw new Error("Genesis event is not signed by chain creator")}},{key:"validateEvents",value:function(){var e,t,n=(null===(e=this.partial)||void 0===e?void 0:e.hash)||this.initialHash,r=i(this.events);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(!o.isSigned()){var a=void 0;try{a="Event ".concat(o.hash.base58)}catch(s){a=o===this.latestEvent?"Last event":"Event after ".concat(n.base58)}throw new Error("".concat(a," is not signed"))}if(!o.verifySignature())throw new Error("Invalid signature of event ".concat(o.hash.base58));if(n.hex!==o.previous.hex)throw new Error("Event ".concat(o.hash.base58," doesn't fit onto the chain"));n=o.hash}}catch(u){r.e(u)}finally{r.f()}}},{key:"isSigned",value:function(){return this.events.every((function(e){return e.isSigned()}))}},{key:"startingWith",value:function(e){return this.createPartial(e,0)}},{key:"startingAfter",value:function(e){return this.createPartial(e,1)}},{key:"createPartial",value:function(t,n){var r=t instanceof s.default?t.hash:t;if(this.initialHash.hex===r.hex)return this;var i=this.events.findIndex((function(e){return e.hash.hex===r.hex}));if(i<0)throw new Error("Event ".concat(r.hex," is not part of this event chain"));var o=i+n;if(0===o)return this;var a=new e(this.id);return a.partial={hash:this.events[o-1].hash,state:this.stateAt(this.events[o-1])},a.events=this.events.slice(o),a}},{key:"isPartial",value:function(){return!!this.partial}},{key:"isCreatedBy",value:function(t){return e.validateId(65,h.getNetwork(t.address),this.id,c.default.fromBase58(t.publicKey))}},{key:"anchorMap",get:function(){var e,t,n=[],r=(null===(e=this.partial)||void 0===e?void 0:e.state)||this.initialState,o=i(this.events);try{for(o.s();!(t=o.n()).done;){var a=t.value;n.push({key:r,value:a.hash}),r=this.stateAt(a)}}catch(s){o.e(s)}finally{o.f()}return n}},{key:"toJSON",value:function(){var e=this.events.map((function(e){return e.toJSON()}));return this.partial&&e.unshift({hash:this.partial.hash.base58,state:this.partial.state.base58}),{id:this.id,events:e}}}],[{key:"create",value:function(t,n){var r="undefined"!==typeof n?e.createNonce(n):e.getRandomNonce(),i=e.buildId(65,h.getNetwork(t.address),c.default.fromBase58(t.publicKey),r);return new e(i)}},{key:"from",value:function(t){var n,r=new e(t.id);if(0===t.events.length)return r;if("state"in t.events[0]){var o=t.events.shift();r.partial={hash:c.default.fromBase58(o.hash),state:c.default.fromBase58(o.state)}}var a,u=i(null!==(n=t.events)&&void 0!==n?n:[]);try{for(u.s();!(a=u.n()).done;){var l=a.value;r.events.push(s.default.from(l))}}catch(f){u.e(f)}finally{u.f()}return r}},{key:"createNonce",value:function(e){return Uint8Array.from(p.sha256(e).slice(0,20))}},{key:"getRandomNonce",value:function(){return u.randomUint8Array(20)}},{key:"buildId",value:function(e,t,n,r){if(20!==r.length)throw new Error("Random bytes should have a length of 20");var i=Uint8Array.from([e]),o=v.stringToByteArray(t),a=h.secureHash(n).slice(0,20),s=f.concatBytes(i,o,r,a),u=h.secureHash(s).slice(0,4);return d.encode(f.concatBytes(s,u))}},{key:"validateId",value:function(e,t,n,r){var i=d.decode(n);if(46!==i.length||i[0]!==e||String.fromCharCode(i[1])!==t)return!1;var o=i.slice(0,42),a=i.slice(42),s=h.secureHash(o).slice(0,4),u=f.compareBytes(a,s);if(u&&r){var c=o.slice(22),l=Uint8Array.from(h.secureHash(r).slice(0,20));u=f.compareBytes(c,l)}return u}}]),e}();t.default=m},9851:function(e,t,n){"use strict";var r=n(9728).default,i=n(6690).default,o=n(1655).default,a=n(6389).default,s=n(3496).default;Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){o(n,e);var t=a(n);function n(e,r,o){var a;return i(this,n),(a=t.call(this,"Merge conflict: Mismatch after ".concat(r.previous.base58," between ").concat(r.hash.base58," and ").concat(o.hash.base58))).chain=e,a.left=r,a.right=o,a}return r(n)}(s(Error));t.default=u},9326:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventChain=t.Event=void 0;var r=n(1328);t.Event=r.default;var i=n(1294);t.EventChain=i.default},9075:function(e,t,n){"use strict";var r=n(1589).default,i=n(6690).default,o=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0});var a=n(7526),s=n(6896),u=n(154),c=n(3001),l=function(){function e(t,n){i(this,e),this.clockSkew=300,this.request=t,this.headers=n}return o(e,[{key:"requestBytes",value:function(e){var t=Uint8Array.from(a.stringToByteArray(this.getMessage()));switch(e){case"ed25519":break;case"ed25519-sha256":t=c.sha256(t);break;default:throw new Error("Unsupported algorithm: ".concat(e))}return t}},{key:"getParams",value:function(){if(this.params)return this.params;if(!this.request.headers.authorization)throw new Error("no authorization header in the request");var e=this.request.headers.authorization.split(" "),t=r(e),n=t[0],i=t.slice(1).join(" ");if("signature"!==n.toLowerCase())throw new Error('authorization schema is not "Signature"');var o,a=/(\w+)s*=s*"([^"]+)"s*(,|$)/g;for(this.params={};o=a.exec(i);)this.params[o[1]]=o[2];return this.assertParams(),this.params}},{key:"getParam",value:function(e){return this.getParams()[e]}},{key:"signWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ed25519-sha256",n=e.publicKey,r=e.sign(this.requestBytes(t)).base64,i=this.headers.join(" ");return'keyId="'.concat(n,'",algorithm="').concat(t,'",headers="').concat(i,'",signature="').concat(r,'"')}},{key:"getMessage",value:function(){var e=this;return this.getHeaders().map((function(t){return"(request-target)"===t?"(request-target): ".concat(e.request.getRequestTarget()):"".concat(t,": ").concat(e.request.headers[t])})).join("\n")}},{key:"verify",value:function(){var e=this.getParam("keyId"),t=this.getParam("signature"),n=this.getParam("algorithm"),r=new s.ED25519({publicKey:u.default.fromBase58(e)}),i=this.requestBytes(n);if(!r.verifySignature(i,u.default.fromBase64(t)))throw new Error("invalid signature");this.assertSignatureAge()}},{key:"getHeaders",value:function(){return this.params?this.getParam("headers").split(" "):this.headers}},{key:"assertParams",value:function(){var e=this,t=this.getParam("algorithm");if(["keyId","algorithm","signature"].forEach((function(t){if(!(t in e.params))throw new Error("".concat(t," was not specified"))})),"ed25519"!==t&&"ed25519-sha256"!==t)throw new Error("only the 'ed25519' and 'ed25519-sha256' algorithms are supported")}},{key:"assertSignatureAge",value:function(){var e=this.request.headers["x-date"]?this.request.headers["x-date"]:this.request.headers.date;if(!e||Date.now()-Date.parse(e)>1e3*this.clockSkew)throw new Error("signature to old or clock offset")}}]),e}();t.default=l},4059:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0});var o=n(9501),a=n(3001),s=function(){function e(t,n,i,o){r(this,e),this.url=new URL(t),this.method=n.toLowerCase(),this.headers=i,o&&(this.body="object"==typeof o?JSON.stringify(o):o,this.headers.digest||(this.headers.digest="SHA-256=".concat(this.getDigest())))}return i(e,[{key:"getRequestTarget",value:function(){return"".concat(this.method," ").concat(this.url.pathname)}},{key:"getDigest",value:function(){if(!this.body)throw new Error("No body set to create digest");return o.encode(a.sha256(this.body))}}]),e}();t.default=s},4305:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9075);Object.defineProperty(t,"HTTPSignature",{enumerable:!0,get:function(){return r.default}});var i=n(4059);Object.defineProperty(t,"Request",{enumerable:!0,get:function(){return i.default}})},4701:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0});var o=n(2595),a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];r(this,e),this.$schema=t,this.$type=n}return i(e,[{key:"asVerifiableCredential",value:function(e){var t=new o.default(this);return e&&t.issueWith(e),t}},{key:"toJson",value:function(){var e=Object.assign({},this);return delete e.$schema,delete e.$type,e}}]),e}();t.default=a},9118:function(e,t,n){"use strict";var r=n(3515).default,i=n(861).default,o=n(6690).default,a=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(1145),u=n(154),c=function(){function e(t){o(this,e),this.newMethods=[],this.account=t}return a(e,[{key:"addVerificationMethod",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256;return this.newMethods.push({account:e,associationType:t}),this}},{key:"transactions",get:function(){var e=this;if(0===this.newMethods.length)return[new s.Anchor(u.default.fromHex("f491f5a9fa2d782566ff516a8a708e6a82db407428ec5d8f365c7cdf2fe6ef99")).signWith(this.account)];var t=[],n=this.newMethods.map((function(e){return e.account}));return t.push(r(s.Register,i(n)).signWith(this.account)),this.newMethods.forEach((function(n){t.push(new s.Association(n.associationType,n.account.address).signWith(e.account))})),t}}]),e}();t.default=c},7547:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){r(this,e)}return i(e,null,[{key:"of",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"assertionMethod",i=new e;return i.type=e.signatureTypeOfAccount(n),i.created=new Date,i.verificationMethod=n.did+"#sign",i.proofPurpose=r,i.proofValue=n.sign("string"==typeof t?t:t.canonicalize()).base58,i}},{key:"signatureTypeOfAccount",value:function(e){if("ed25519"===e.keyType)return"Ed25519Signature2020";throw Error("Unsupported key type")}}]),e}();t.default=o},2595:function(e,t,n){"use strict";var r=n(7061).default,i=n(861).default,o=n(6690).default,a=n(9728).default,s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});var u=n(4701),c=n(7547),l=n(154),f=n(1145),d=function(){function e(t){o(this,e),this.credentialSubject=t}return a(e,[{key:"credentialSchema",get:function(){return{id:this.credentialSubject.$schema,type:"FullJsonSchemaValidator2021"}}},{key:"type",get:function(){var e;return(e=["VerifiableCredential"]).concat.apply(e,i(this.credentialSubject.$type))}},{key:"issueWith",value:function(e){var t,n;return this.id=(Math.random()+1).toString(36).substring(2),this.issuer=e,this.issued=null!==(t=this.issued)&&void 0!==t?t:new Date,this.validFrom=null!==(n=this.validFrom)&&void 0!==n?n:this.issued,this.proof=c.default.of(this,e),this}},{key:"toJSON",value:function(){return{"@context":["https://www.w3.org/2018/credentials/v1"],id:this.id,type:this.type,issuer:this.issuer.did,issued:this.issued,issuanceDate:this.issued,validFrom:this.validFrom,validUntil:this.validUntil,expirationDate:this.validUntil,credentialSubject:this.credentialSubject,credentialSchema:this.credentialSchema,proof:this.proof}}},{key:"canonicalize",value:function(){return JSON.stringify(this)}},{key:"hash",get:function(){return new l.default(this.canonicalize()).hash()}},{key:"getRecipient",value:function(){var e=this.credentialSubject.id;if("string"!==typeof e)throw new Error("Credential subject has no or invalid id property");if(!e.startsWith("did:lto:"))throw new Error("Unable to extract LTO address from subject id '".concat(e,"'"));return e.replace(/^did:lto:/,"")}},{key:"register",value:function(e){return s(this,void 0,void 0,r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new f.Association(16,this.getRecipient(),this.hash,this.validUntil).signWith(this.issuer).broadcastTo(e));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"revoke",value:function(e){return s(this,void 0,void 0,r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new f.RevokeAssociation(16,this.getRecipient(),this.hash).signWith(this.issuer).broadcastTo(e));case 1:case"end":return t.stop()}}),t,this)})))}}],[{key:"from",value:function(e){var t=new this(new u.default(e.credentialSchema.id,e.type));return t.id=e.id,t.issuer=e.issuer,e.issued&&(t.issued=e.issued instanceof Date?e.issued:new Date(e.issued)),e.validFrom&&(t.validFrom=e.validFrom instanceof Date?e.validFrom:new Date(e.validFrom)),e.validUntil&&(t.validUntil=e.validUntil instanceof Date?e.validUntil:new Date(e.validUntil)),e.proof&&(t.proof=Object.assign(new c.default,e.proof)),t}}]),e}();t.default=d},6538:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VerificationRelationship=void 0;var r=n(9118);Object.defineProperty(t,"IdentityBuilder",{enumerable:!0,get:function(){return r.default}});var i=n(4701);Object.defineProperty(t,"Credential",{enumerable:!0,get:function(){return i.default}});var o=n(7547);Object.defineProperty(t,"Proof",{enumerable:!0,get:function(){return o.default}});var a=n(2595);Object.defineProperty(t,"VerifiableCredential",{enumerable:!0,get:function(){return a.default}}),function(e){e[e.none=256]="none",e[e.authentication=257]="authentication",e[e.assertion=258]="assertion",e[e.keyAgreement=260]="keyAgreement",e[e.capabilityInvocation=264]="capabilityInvocation",e[e.capabilityDelegation=272]="capabilityDelegation"}(t.VerificationRelationship||(t.VerificationRelationship={}))},9195:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LTO=void 0;var o=n(2581);t.LTO=o.default,t.default=o.default;var a=n(154);Object.defineProperty(t,"Binary",{enumerable:!0,get:function(){return a.default}}),i(n(552),t),i(n(3667),t),i(n(9326),t),i(n(4305),t),i(n(6538),t),i(n(9494),t),i(n(1145),t);var s=n(3001);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return s.sha256}});var u=n(1547);Object.defineProperty(t,"blake2b",{enumerable:!0,get:function(){return u.blake2b}})},6053:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;var n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",r=n.split("").reduce((function(e,t,n){return e[t]=n,e}),{});t.encode=function(e){if(!e.length)return"";for(var t=[0],r=0;r>8,t[s]&=255;for(;a;)t.push(255&a),a>>=8}for(var u=0;"1"===e[u]&&u=4294967296&&i++,e[t]=r,e[t+1]=i}function i(e,t,n,r){var i=e[t]+n;n<0&&(i+=4294967296);var o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function o(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function a(e,t,n,o,a,s){var u=l[a],f=l[a+1],d=l[s],p=l[s+1];r(c,e,t),i(c,e,u,f);var h=c[o]^c[e],v=c[o+1]^c[e+1];c[o]=v,c[o+1]=h,r(c,n,o),h=c[t]^c[n],v=c[t+1]^c[n+1],c[t]=h>>>24^v<<8,c[t+1]=v>>>24^h<<8,r(c,e,t),i(c,e,d,p),h=c[o]^c[e],v=c[o+1]^c[e+1],c[o]=h>>>16^v<<16,c[o+1]=v>>>16^h<<16,r(c,n,o),h=c[t]^c[n],v=c[t+1]^c[n+1],c[t]=v>>>31^h<<1,c[t+1]=h>>>31^v<<1}var s=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),c=new Uint32Array(32),l=new Uint32Array(32);function f(e,t){var n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=s[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)l[n]=o(e.b,4*n);for(n=0;n<12;n++)a(0,8,16,24,u[16*n+0],u[16*n+1]),a(2,10,18,26,u[16*n+2],u[16*n+3]),a(4,12,20,28,u[16*n+4],u[16*n+5]),a(6,14,22,30,u[16*n+6],u[16*n+7]),a(0,10,20,30,u[16*n+8],u[16*n+9]),a(2,12,22,24,u[16*n+10],u[16*n+11]),a(4,14,16,26,u[16*n+12],u[16*n+13]),a(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}function d(e,t){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");for(var n={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e},r=0;r<16;r++)n.h[r]=s[r];var i=t?t.length:0;return n.h[0]^=16842752^i<<8^e,t&&(p(n,t),n.c=128),n}function p(e,t){for(var n=0;n>2]>>8*(3&n);return t}function v(e,t,r){r=r||64,e=function(e){var t;if(e instanceof Uint8Array)t=e;else if(e instanceof Buffer)t=new Uint8Array(e);else{if("string"!==typeof e)throw new Error(n);t=new Uint8Array(Buffer.from(e,"utf8"))}return t}(e);var i=d(r,t);return p(i,e),h(i)}t.blake2bInit=d,t.blake2bUpdate=p,t.blake2bFinal=h,t.blake2b=v,t.blake2bHex=function(e,t,n){var r,i=v(e,t,n);return r=i,Array.prototype.map.call(r,(function(e){return(e<16?"0":"")+e.toString(16)})).join("")}},4915:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){var e,t={},r=[];for(e=0;e<=9;++e){var i=e.toString();t[i]=e,r.push(i)}for(e=10;e<=15;++e){var o=String.fromCharCode("a".charCodeAt(0)+e-10),a=String.fromCharCode("A".charCodeAt(0)+e-10);t[o]=e,t[a]=e,r.push(o)}return{byteArrayToHexString:function(e){for(var t="",n=0;n>4]+r[15&e[n]];return t},stringToByteArray:function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),n=0;n=0;i--)n=r.multiply(new BigInteger("256",10)),r=n.add(new BigInteger(e[t+i].toString(10),10));return r},byteArrayToWordArray:function(e){for(var t=0,n=0,r=0,i=e.length,o=new Uint32Array((i/4|0)+(i%4==0?0:1));t1&&(r|=e[t++]<<16),i%4>2&&(r|=e[t++]<<8),o[n]=r);var a={};return a.sigBytes=i,a.words=o,a},wordArrayToByteArray:function(e){return n.wordArrayToByteArrayImpl(e,!0)},wordArrayToByteArrayImpl:function(e,t){var n=e.words.length;if(0==n)return new Array(0);var r,i,o=new Array(e.sigBytes),a=0;for(i=0;i>24:r>>24&255,o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=255&r;return r=e.words[n-1],o[a++]=t?r>>24:r>>24&255,e.sigBytes%4==0&&(o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=255&r),e.sigBytes%4>1&&(o[a++]=r>>16&255),e.sigBytes%4>2&&(o[a++]=r>>8&255),o},byteArrayToString:function(e,t,n){if(0==n)return"";if(t&&n){this.checkBytesToIntInput(e,parseInt(n,10),parseInt(t,10));e=e.slice(t,t+n)}return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},byteArrayToShortArray:function(e){var t,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<16;t++)n[t]=e[2*t]|e[2*t+1]<<8;return n},shortArrayToByteArray:function(e){var t,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<16;t++)n[2*t]=255&e[t],n[2*t+1]=e[t]>>8;return n},shortArrayToHexString:function(e){for(var t="",n=0;n>4&15]+r[15&e[n]]+r[e[n]>>12&15]+r[e[n]>>8&15];return t},intToBytes_:function(e,t,n,r){var i=Math.floor(n/2),o=-1*(i+1);if(e!=Math.floor(e)||en)throw new Error(e+" is not a "+8*t+" bit integer");var a,s=[],u=e>=0&&e<=i?0:e>i&&e<=n?1:2;2==u&&(e=-1*e-1);for(var c=0;c>=8;return s},int32ToBytes:function(e,t){return n.intToBytes_(e,4,4294967295,t)},int16ToBytes:function(e,t){return n.intToBytes_(e,2,65535,t)},wordArrayToByteArrayEx:function(e){for(var t=e.words,n=e.sigBytes,r=new Uint8Array(n),i=0;i>>2]>>>24-i%4*8&255;r[i]=o}return r}}}();t.default=n},1915:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9808),i=Object.create(null),o=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,f(s,a,1-i)}for(n=0;n<16;n++)e[2*n]=255&s[n],e[2*n+1]=s[n]>>8}function y(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return m(n,e),m(r,t),function(e,t,n,r,i){var o,a=0;for(o=0;o>>8)-1}(n,0,r,0,32)}function b(e,t){var n=o(),r=o(),i=o(),l=o(),f=o(),b=o(),g=o();return function(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}(e[2],s),function(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}(e[1],t),v(i,e[1]),h(l,i,u),p(i,i,e[2]),d(l,e[2],l),v(f,l),v(b,f),h(g,b,f),h(n,g,i),h(n,n,l),function(e,t){var n,r=o();for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)v(r,r),1!==n&&h(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}(n,n),h(n,n,i),h(n,n,l),h(n,n,l),h(e[0],n,l),v(r,e[0]),h(r,r,l),y(r,i)&&h(e[0],e[0],c),v(r,e[0]),h(r,r,l),y(r,i)?-1:(function(e){var t=new Uint8Array(32);return m(t,e),1&t[0]}(e[0])===t[31]>>7&&p(e[0],a,e[0]),h(e[3],e[0],e[1]),0)}i.convertPublicKey=function(e){var t=new Uint8Array(32),n=[o(),o(),o(),o()],r=o(),i=o();if(b(n,e))return null;var a=n[1];return d(r,s,a),p(i,s,a),function(e,t){var n,r=o();for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)v(r,r),2!==n&&4!==n&&h(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}(i,i),h(r,r,i),m(t,r),t},i.convertSecretKey=function(e){var t,n=new Uint8Array(32),i=r.hash(e);for(i[0]&=248,i[31]&=127,i[31]|=64,t=0;t<32;t++)n[t]=i[t];for(t=0;t<64;t++)i[t]=0;return n},i.convertKeyPair=function(e){var t=this.convertPublicKey(e.publicKey);return t?{publicKey:t,secretKey:this.convertSecretKey(e.secretKey)}:null},t.default=i},263:function(e,t){"use strict";var n,r={userAgent:!1},i={};function o(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function a(){return new o(null)}"Microsoft Internet Explorer"==r.appName?(o.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},n=30):"Netscape"!=r.appName?(o.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},n=26):(o.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},n=28),o.prototype.DB=n,o.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function v(e){this.m=e}function m(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function k(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function _(){}function S(e){return e}function E(e){this.r2=a(),this.q3=a(),o.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}v.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},v.prototype.revert=function(e){return e},v.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},v.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},v.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},m.prototype.convert=function(e){var t=a();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(o.ZERO)>0&&this.m.subTo(t,t),t},m.prototype.revert=function(e){var t=a();return e.copyTo(t),this.reduce(t),t},m.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},m.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},m.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},o.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},o.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},o.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,a=0;--r>=0;){var s=8==n?255&e[r]:d(e,r);s<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==a?this[this.t++]=s:a+n>this.DB?(this[this.t-1]|=(s&(1<>this.DB-a):this[this.t-1]|=s<=this.DB&&(a-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},o.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},o.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},o.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},o.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},o.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(l,s),i.lShiftTo(l,n)):(r.copyTo(s),i.copyTo(n));var f=s.t,d=s[f-1];if(0!=d){var p=d*(1<1?s[f-2]>>this.F2:0),v=this.FV/p,m=(1<=0&&(n[n.t++]=1,n.subTo(w,n)),o.ONE.dlShiftTo(f,w),w.subTo(s,s);s.t=0;){var x=n[--b]==d?this.DM:Math.floor(n[b]*v+(n[b-1]+y)*m);if((n[b]+=s.am(0,x,n,g,0,f))0&&n.rShiftTo(l,n),u<0&&o.ZERO.subTo(n,n)}}},o.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},o.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},o.prototype.exp=function(e,t){if(e>4294967295||e<1)return o.ONE;var n=a(),r=a(),i=t.convert(this),s=h(e)-1;for(i.copyTo(n);--s>=0;)if(t.sqrTo(n,r),(e&1<0)t.mulTo(r,i,n);else{var u=n;n=r,r=u}return t.revert(n)},o.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<0)for(s>s)>0&&(i=!0,o=f(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=f(n));return i?o:"0"},o.prototype.negate=function(){var e=a();return o.ZERO.subTo(this,e),e},o.prototype.abs=function(){return this.s<0?this.negate():this},o.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},o.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+h(this[this.t-1]^this.s&this.DM)},o.prototype.mod=function(e){var t=a();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(o.ZERO)>0&&e.subTo(t,t),t},o.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new v(t):new m(t),this.exp(e,n)},o.ZERO=p(0),o.ONE=p(1),_.prototype.convert=S,_.prototype.revert=S,_.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},_.prototype.sqrTo=function(e,t){e.squareTo(t)},E.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=a();return e.copyTo(t),this.reduce(t),t},E.prototype.revert=function(e){return e},E.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},E.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},E.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var C=[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],F=(1<<26)/C[C.length-1];function A(){this.i=0,this.j=0,this.S=new Array}o.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},o.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=p(n),i=a(),o=a(),s="";for(this.divRemTo(r,i,o);i.signum()>0;)s=(n+o.intValue()).toString(e).substr(1)+s,i.divRemTo(r,i,o);return o.intValue().toString(e)+s},o.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),i=!1,a=0,s=0,u=0;u=n&&(this.dMultiply(r),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(s,0)),i&&o.ZERO.subTo(this,this)},o.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(o.ONE.shiftLeft(e-1),b,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(o.ONE.shiftLeft(e-1),this);else{var r=new Array,i=7&e;r.length=1+(e>>3),t.nextBytes(r),i>0?r[0]&=(1<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},o.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},o.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},o.prototype.multiplyLowerTo=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i=0;)n[r]=0;for(r=Math.max(t-this.t,0);r0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},o.prototype.millerRabin=function(e){var t=this.subtract(o.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);(e=e+1>>1)>C.length&&(e=C.length);for(var i=a(),s=0;s>24},o.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},o.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},o.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<=0;)r<8?(n=(this[e]&(1<>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},o.prototype.equals=function(e){return 0==this.compareTo(e)},o.prototype.min=function(e){return this.compareTo(e)<0?this:e},o.prototype.max=function(e){return this.compareTo(e)>0?this:e},o.prototype.and=function(e){var t=a();return this.bitwiseTo(e,y,t),t},o.prototype.or=function(e){var t=a();return this.bitwiseTo(e,b,t),t},o.prototype.xor=function(e){var t=a();return this.bitwiseTo(e,g,t),t},o.prototype.andNot=function(e){var t=a();return this.bitwiseTo(e,w,t),t},o.prototype.not=function(){for(var e=a(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var f=a();for(r.sqrTo(s[1],f);u<=l;)s[u]=a(),r.mulTo(f,s[u-2],s[u]),u+=2}var d,y,b=e.t-1,g=!0,w=a();for(i=h(e[b])-1;b>=0;){for(i>=c?d=e[b]>>i-c&l:(d=(e[b]&(1<0&&(d|=e[b-1]>>this.DB+i-c)),u=n;0==(1&d);)d>>=1,--u;if((i-=u)<0&&(i+=this.DB,--b),g)s[d].copyTo(o),g=!1;else{for(;u>1;)r.sqrTo(o,w),r.sqrTo(w,o),u-=2;u>0?r.sqrTo(o,w):(y=o,o=w,w=y),r.mulTo(w,s[d],o)}for(;b>=0&&0==(e[b]&1<=0?(n.subTo(r,n),t&&i.subTo(s,i),a.subTo(u,a)):(r.subTo(n,r),t&&s.subTo(i,s),u.subTo(a,u))}return 0!=r.compareTo(o.ONE)?o.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},o.prototype.pow=function(e){return this.exp(e,new _)},o.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},o.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=C[C.length-1]){for(t=0;t>8&255,P[O++]^=e>>16&255,P[O++]^=e>>24&255,O>=j&&(O-=j)}if(null==P){var Z;if(P=new Array,O=0,void 0!==i&&(void 0!==i.crypto||void 0!==i.msCrypto)){var R=i.crypto||i.msCrypto;if(R.getRandomValues){var I=new Uint8Array(32);for(R.getRandomValues(I),Z=0;Z<32;++Z)P[O++]=I[Z]}else if("Netscape"==r.appName&&r.appVersion<"5"){var M=i.crypto.random(32);for(Z=0;Z>>8,P[O++]=255&Z;O=0,B()}function D(){if(null==T){for(B(),(T=new A).init(P),O=0;O0;--t){a=a.twice();var f=r.testBit(t);f!=n.testBit(t)&&(a=a.add(f?this:i))}for(t=u.bitLength()-2;t>0;--t){c=c.twice();var d=u.testBit(t);d!=s.testBit(t)&&(c=c.add(d?c:l))}return a},L.prototype.multiplyTwo=function(e,t,n){var r;r=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(t);r>=0;)i=i.twice(),e.testBit(r)?i=n.testBit(r)?i.add(o):i.add(this):n.testBit(r)&&(i=i.add(t)),--r;return i},U.prototype.getQ=function(){return this.q},U.prototype.getA=function(){return this.a},U.prototype.getB=function(){return this.b},U.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},U.prototype.getInfinity=function(){return this.infinity},U.prototype.fromBigInteger=function(e){return new z(this.q,e)},U.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var t=e.substr(0,2),n=(e.substr(2),this.fromBigInteger(new o(u,16))),r=this.getA(),i=this.getB(),a=n.square().add(r).multiply(n).add(i).sqrt();return"03"==t&&(a=a.negate()),new L(this,n,a);case 4:case 6:case 7:var s=(e.length-2)/2,u=e.substr(2,s),c=e.substr(s+2,s);return new L(this,this.fromBigInteger(new o(u,16)),this.fromBigInteger(new o(c,16)));default:return null}},z.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},L.prototype.getEncoded=function(e){var t=function(e,t){var n=e.toByteArrayUnsigned();if(tn.length;)n.unshift(0);return n},n=this.getX().toBigInteger(),r=this.getY().toBigInteger(),i=t(n,32);return e?r.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(t(r,32))),i},L.decodeFrom=function(e,t){t[0];var n=t.length-1,r=t.slice(1,1+n/2),i=t.slice(1+n/2,1+n);r.unshift(0),i.unshift(0);var a=new o(r),s=new o(i);return new L(e,e.fromBigInteger(a),e.fromBigInteger(s))},L.decodeFromHex=function(e,t){t.substr(0,2);var n=t.length-2,r=t.substr(2,n/2),i=t.substr(2+n/2,n/2),a=new o(r,16),s=new o(i,16);return new L(e,e.fromBigInteger(a),e.fromBigInteger(s))},L.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),n=e.y.subtract(this.y).divide(t),r=n.square().subtract(this.x).subtract(e.x),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new L(this.curve,r,i)},L.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(o.valueOf(2)),t=this.curve.fromBigInteger(o.valueOf(3)),n=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),r=n.square().subtract(this.x.multiply(e)),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new L(this.curve,r,i)},L.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new o("3")),i=this.negate(),a=this;for(t=r.bitLength()-2;t>0;--t){a=a.twice();var s=r.testBit(t);s!=n.testBit(t)&&(a=a.add2D(s?this:i))}return a},L.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),r=this.curve.getB().toBigInteger(),i=this.curve.getQ(),o=t.multiply(t).mod(i),a=e.multiply(e).multiply(e).add(n.multiply(e)).add(r).mod(i);return o.equals(a)},L.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},L.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(t.compareTo(o.ONE)<0||t.compareTo(e.subtract(o.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(o.ONE)<0||n.compareTo(e.subtract(o.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0},"undefined"!=typeof H&&H||(H={}),"undefined"!=typeof H.asn1&&H.asn1||(H.asn1={}),H.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i15)throw new Error("ASN.1 length too long to represent by 8x: n = "+e.toString(16));return(128+n).toString(16)+t},this.tohex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(e){this.params=e},void 0!=e&&void 0!=e.tlv&&(this.hTLV=e.tlv,this.isModified=!1)},H.asn1.DERAbstractString=function(e){H.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=G(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e?this.setString(e):"undefined"!=typeof e.str?this.setString(e.str):"undefined"!=typeof e.hex&&this.setStringHex(e.hex))},re(H.asn1.DERAbstractString,H.asn1.ASN1Object),H.asn1.DERAbstractTime=function(e){H.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(e){var t=e.getTime()+6e4*e.getTimezoneOffset();return new Date(t)},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var u=r(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.setByParam=function(e){this.hV=null,this.hTLV=null,this.params=e},this.getString=function(){},this.setString=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.str=e},this.setByDate=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.date=e},this.setByDateValue=function(e,t,n,r,i,o){var a=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},re(H.asn1.DERAbstractTime,H.asn1.ASN1Object),H.asn1.DERAbstractStructured=function(e){H.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,"undefined"!=typeof e&&"undefined"!=typeof e.array&&(this.asn1Array=e.array)},re(H.asn1.DERAbstractStructured,H.asn1.ASN1Object),H.asn1.DERBoolean=function(e){H.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==e?"010100":"0101ff"},re(H.asn1.DERBoolean,H.asn1.ASN1Object),H.asn1.DERInteger=function(e){H.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=H.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new o(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e.bigint?this.setByBigInteger(e.bigint):"undefined"!=typeof e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e.hex&&this.setValueHex(e.hex))},re(H.asn1.DERInteger,H.asn1.ASN1Object),H.asn1.DERBitString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=H.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.tohex()}H.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7>6).toString(16)+r.toString(16))}r=128|(15&t)<<2|(192&n)>>6;var i=128|63&n;return Y((224|(240&t)>>4).toString(16)+r.toString(16)+i.toString(16))}));return t.join("")}function ee(e){for(var t=encodeURIComponent(e),n="",r=0;r=r)break}return a},V.getNthChildIdx=function(e,t,n){return V.getChildIdx(e,t)[n]},V.getIdxbyList=function(e,t,n,r){var i,o,a=V;return 0==n.length?void 0!==r&&e.substr(t,2)!==r?-1:t:(i=n.shift())>=(o=a.getChildIdx(e,t)).length?-1:a.getIdxbyList(e,o[i],n,r)},V.getIdxbyListEx=function(e,t,n,r){var i,o,a=V;if(0==n.length)return void 0!==r&&e.substr(t,2)!==r?-1:t;i=n.shift(),o=a.getChildIdx(e,t);for(var s=0,u=0;u=e.length?null:i.getTLV(e,o)},V.getTLVbyListEx=function(e,t,n,r){var i=V,o=i.getIdxbyListEx(e,t,n,r);return-1==o?null:i.getTLV(e,o)},V.getVbyList=function(e,t,n,r,i){var o,a,s=V;return-1==(o=s.getIdxbyList(e,t,n,r))||o>=e.length?null:(a=s.getV(e,o),!0===i&&(a=a.substr(2)),a)},V.getVbyListEx=function(e,t,n,r,i){var o,a,s=V;return-1==(o=s.getIdxbyListEx(e,t,n,r))?null:(a=s.getV(e,o),"03"==e.substr(o,2)&&!1!==i&&(a=a.substr(2)),a)},V.getInt=function(e,t,n){void 0==n&&(n=-1);try{var r=e.substr(t,2);if("02"!=r&&"03"!=r)return n;var i=V.getV(e,t);return"02"==r?parseInt(i,16):function(e){if(e.length%2!=0)return-1;if(e=e.toLowerCase(),null==e.match(/^[0-9a-f]+$/))return-1;try{var t=e.substr(0,2);if("00"==t)return parseInt(e.substr(2),16);var n=parseInt(t,16);if(n>7)return-1;var r=e.substr(2),i=parseInt(r,16).toString(2);"0"==i&&(i="00000000"),i=i.slice(0,0-n);var o=parseInt(i,2);return NaN==o?-1:o}catch(a){return-1}}(i)}catch(o){return n}},V.getOID=function(e,t,n){void 0==n&&(n=null);try{return"06"!=e.substr(t,2)?n:function(e){if(!te(e))return null;try{var t=[],n=e.substr(0,2),r=parseInt(n,16);t[0]=new String(Math.floor(r/40)),t[1]=new String(r%40);for(var i=e.substr(2),o=[],a=0;a0&&(c=c+"."+s.join(".")),c}catch(l){return null}}(V.getV(e,t))}catch(r){return n}},V.getOIDName=function(e,t,n){void 0==n&&(n=null);try{var r=V.getOID(e,t,n);if(r==n)return n;var i=H.asn1.x509.OID.oid2name(r);return""==i?r:i}catch(o){return n}},V.getString=function(e,t,n){void 0==n&&(n=null);try{return function(e){for(var t="",n=0;n=t?e:new Array(t-e.length+1).join("0")+e},n=[],r=e.substr(0,2),i=parseInt(r,16);n[0]=new String(Math.floor(i/40)),n[1]=new String(i%40);for(var o=e.substr(2),a=[],s=0;s0&&(l=l+"."+u.join(".")),l},V.dump=function(e,t,n,r){var i=V,o=i.getV,a=i.dump,s=i.getChildIdx,u=e;e instanceof H.asn1.ASN1Object&&(u=e.tohex());var c=function(e,t){return e.length<=2*t?e:e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t)};void 0===t&&(t={ommit_long_octet:32}),void 0===n&&(n=0),void 0===r&&(r="");var l,f=t.ommit_long_octet;if("01"==(l=u.substr(n,2)))return"00"==(d=o(u,n))?r+"BOOLEAN FALSE\n":r+"BOOLEAN TRUE\n";if("02"==l)return r+"INTEGER "+c(d=o(u,n),f)+"\n";if("03"==l){var d=o(u,n);if(i.isASN1HEX(d.substr(2))){var p=r+"BITSTRING, encapsulates\n";return p+=a(d.substr(2),t,0,r+" ")}return r+"BITSTRING "+c(d,f)+"\n"}if("04"==l){d=o(u,n);if(i.isASN1HEX(d)){p=r+"OCTETSTRING, encapsulates\n";return p+=a(d,t,0,r+" ")}return r+"OCTETSTRING "+c(d,f)+"\n"}if("05"==l)return r+"NULL\n";if("06"==l){var h=o(u,n),v=H.asn1.ASN1Util.oidHexToInt(h),m=H.asn1.x509.OID.oid2name(v),y=v.replace(/\./g," ");return""!=m?r+"ObjectIdentifier "+m+" ("+y+")\n":r+"ObjectIdentifier ("+y+")\n"}if("0a"==l)return r+"ENUMERATED "+parseInt(o(u,n))+"\n";if("0c"==l)return r+"UTF8String '"+Y(o(u,n))+"'\n";if("13"==l)return r+"PrintableString '"+Y(o(u,n))+"'\n";if("14"==l)return r+"TeletexString '"+Y(o(u,n))+"'\n";if("16"==l)return r+"IA5String '"+Y(o(u,n))+"'\n";if("17"==l)return r+"UTCTime "+Y(o(u,n))+"\n";if("18"==l)return r+"GeneralizedTime "+Y(o(u,n))+"\n";if("1a"==l)return r+"VisualString '"+Y(o(u,n))+"'\n";if("1e"==l)return r+"BMPString '"+$(o(u,n))+"'\n";if("30"==l){if("3000"==u.substr(n,4))return r+"SEQUENCE {}\n";p=r+"SEQUENCE\n";var b=t;if((2==(x=s(u,n)).length||3==x.length)&&"06"==u.substr(x[0],2)&&"04"==u.substr(x[x.length-1],2)){m=i.oidname(o(u,x[0]));var g=JSON.parse(JSON.stringify(t));g.x509ExtName=m,b=g}for(var w=0;w4?{enum:{hex:m}}:{enum:parseInt(m,16)};if("30"==h||"31"==h)return v[p[h]]=function(e){for(var t=[],r=a(e,0),i=0;i31)&&(128==(192&n)&&(31&n)==r))}catch(i){return!1}},V.isASN1HEX=function(e){var t=V;if(e.length%2==1)return!1;var n=t.getVblen(e,0),r=e.substr(0,2),i=t.getL(e,0);return e.length-r.length-i.length==2*n},V.checkStrictDER=function(e,t,n,r,i){var o=V;if(void 0===n){if("string"!=typeof e)throw new Error("not hex string");if(e=e.toLowerCase(),!H.lang.String.isHex(e))throw new Error("not hex string");n=e.length,i=(r=e.length/2)<128?1:Math.ceil(r.toString(16))+1}if(o.getL(e,t).length>2*i)throw new Error("L of TLV too long: idx="+t);var a=o.getVblen(e,t);if(a>r)throw new Error("value of L too long than hex: idx="+t);var s=o.getTLV(e,t),u=s.length-2-o.getL(e,t).length;if(u!==2*a)throw new Error("V string length and L's value not the same:"+u+"/"+2*a);if(0===t&&e.length!=s.length)throw new Error("total length and TLV length unmatch:"+e.length+"!="+s.length);var c=e.substr(t,2);if("02"===c){var l=o.getVidx(e,t);if("00"==e.substr(l,2)&&e.charCodeAt(l+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(c,16)){for(var f=o.getVblen(e,t),d=0,p=o.getChildIdx(e,t),h=0;h=t?e:new Array(t-e.length+1).join(n)+e};function re(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}"undefined"!=typeof H&&H||(H={}),"undefined"!=typeof H.crypto&&H.crypto||(H.crypto={}),H.crypto.ECDSA=function(e){var t=Error,n=o,r=L,i=H.crypto.ECDSA,a=H.crypto.ECParameterDB,s=i.getName,u=V,c=u.getVbyListEx,l=u.isASN1HEX,f=new N;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(e){return new n(e.bitLength(),f).mod(e.subtract(n.ONE)).add(n.ONE)},this.setNamedCurve=function(e){this.ecparams=a.getByName(e),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=e},this.setPrivateKeyHex=function(e){this.isPrivate=!0,this.prvKeyHex=e},this.setPublicKeyHex=function(e){this.isPublic=!0,this.pubKeyHex=e},this.getPublicKeyXYHex=function(){var e=this.pubKeyHex;if("04"!==e.substr(0,2))throw"this method supports uncompressed format(04) only";var t=this.ecparams.keycharlen;if(e.length!==2+2*t)throw"malformed public key hex length";var n={};return n.x=e.substr(2,t),n.y=e.substr(2+t),n},this.getShortNISTPCurveName=function(){var e=this.curveName;return"secp256r1"===e||"NIST P-256"===e||"P-256"===e||"prime256v1"===e?"P-256":"secp384r1"===e||"NIST P-384"===e||"P-384"===e?"P-384":"secp521r1"===e||"NIST P-521"===e||"P-521"===e?"P-521":null},this.generateKeyPairHex=function(){var e=this.ecparams.n,t=this.getBigRandom(e),n=this.ecparams.keycharlen,r=("0000000000"+t.toString(16)).slice(-n);return this.setPrivateKeyHex(r),{ecprvhex:r,ecpubhex:this.generatePublicKeyHex()}},this.generatePublicKeyHex=function(){var e=new n(this.prvKeyHex,16),t=this.ecparams.G.multiply(e),r=t.getX().toBigInteger(),i=t.getY().toBigInteger(),o=this.ecparams.keycharlen,a="04"+("0000000000"+r.toString(16)).slice(-o)+("0000000000"+i.toString(16)).slice(-o);return this.setPublicKeyHex(a),a},this.signWithMessageHash=function(e){return this.signHex(e,this.prvKeyHex)},this.signHex=function(e,t){var r=new n(t,16),o=this.ecparams.n,a=new n(e.substring(0,this.ecparams.keycharlen),16);do{var s=this.getBigRandom(o),u=this.ecparams.G.multiply(s).getX().toBigInteger().mod(o)}while(u.compareTo(n.ZERO)<=0);var c=s.modInverse(o).multiply(a.add(r.multiply(u))).mod(o);return i.biRSSigToASN1Sig(u,c)},this.sign=function(e,t){var r=t,i=this.ecparams.n,a=n.fromByteArrayUnsigned(e);do{var s=this.getBigRandom(i),u=this.ecparams.G.multiply(s).getX().toBigInteger().mod(i)}while(u.compareTo(o.ZERO)<=0);var c=s.modInverse(i).multiply(a.add(r.multiply(u))).mod(i);return this.serializeSig(u,c)},this.verifyWithMessageHash=function(e,t){return this.verifyHex(e,t,this.pubKeyHex)},this.verifyHex=function(e,t,o){try{var a,s,u=i.parseSigHex(t);a=u.r,s=u.s;var c=r.decodeFromHex(this.ecparams.curve,o),l=new n(e.substring(0,this.ecparams.keycharlen),16);return this.verifyRaw(l,a,s,c)}catch(f){return!1}},this.verify=function(e,t,i){var o,a,s;if(Bitcoin.Util.isArray(t)){var u=this.parseSig(t);o=u.r,a=u.s}else{if("object"!==typeof t||!t.r||!t.s)throw"Invalid value for signature";o=t.r,a=t.s}if(i instanceof L)s=i;else{if(!Bitcoin.Util.isArray(i))throw"Invalid format for pubkey value, must be byte array or ECPointFp";s=r.decodeFrom(this.ecparams.curve,i)}var c=n.fromByteArrayUnsigned(e);return this.verifyRaw(c,o,a,s)},this.verifyRaw=function(e,t,r,i){var o=this.ecparams.n,a=this.ecparams.G;if(t.compareTo(n.ONE)<0||t.compareTo(o)>=0)return!1;if(r.compareTo(n.ONE)<0||r.compareTo(o)>=0)return!1;var s=r.modInverse(o),u=e.multiply(s).mod(o),c=t.multiply(s).mod(o);return a.multiply(u).add(i.multiply(c)).getX().toBigInteger().mod(o).equals(t)},this.serializeSig=function(e,t){var n=e.toByteArraySigned(),r=t.toByteArraySigned(),i=[];return i.push(2),i.push(n.length),(i=i.concat(n)).push(2),i.push(r.length),(i=i.concat(r)).unshift(i.length),i.unshift(48),i},this.parseSig=function(e){var t;if(48!=e[0])throw new Error("Signature not a valid DERSequence");if(2!=e[t=2])throw new Error("First element in signature must be a DERInteger");var r=e.slice(t+2,t+2+e[t+1]);if(2!=e[t+=2+e[t+1]])throw new Error("Second element in signature must be a DERInteger");var i=e.slice(t+2,t+2+e[t+1]);return t+=2+e[t+1],{r:n.fromByteArrayUnsigned(r),s:n.fromByteArrayUnsigned(i)}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var r=this.ecparams.n;return{r:n.fromByteArrayUnsigned(e.slice(1,33)).mod(r),s:n.fromByteArrayUnsigned(e.slice(33,65)).mod(r),i:t}},this.readPKCS5PrvKeyHex=function(e){if(!1===l(e))throw new Error("not ASN.1 hex string");var t,n,r;try{t=c(e,0,["[0]",0],"06"),n=c(e,0,[1],"04");try{r=c(e,0,["[1]",0],"03")}catch(i){}}catch(i){throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=s(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(r),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){if(!1===l(e))throw new t("not ASN.1 hex string");var n,r,i;try{c(e,0,[1,0],"06"),n=c(e,0,[1,1],"06"),r=c(e,0,[2,0,1],"04");try{i=c(e,0,[2,0,"[1]",0],"03")}catch(o){}}catch(o){throw new t("malformed PKCS#8 plain ECC private key")}if(this.curveName=s(n),void 0===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){if(!1===l(e))throw new t("not ASN.1 hex string");var n,r;try{c(e,0,[0,0],"06"),n=c(e,0,[0,1],"06"),r=c(e,0,[1],"03")}catch(i){throw new t("malformed PKCS#8 ECC public key")}if(this.curveName=s(n),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(r)},this.readCertPubKeyHex=function(e,n){if(!1===l(e))throw new t("not ASN.1 hex string");var r,i;try{r=c(e,0,[0,5,0,1],"06"),i=c(e,0,[0,5,1],"03")}catch(o){throw new t("malformed X.509 certificate ECC public key")}if(this.curveName=s(r),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},H.crypto.ECDSA.parseSigHex=function(e){var t=H.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new o(t.r,16),s:new o(t.s,16)}},H.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=V,n=t.getChildIdx,r=t.getV;if(t.checkStrictDER(e,0),"30"!=e.substr(0,2))throw new Error("signature is not a ASN.1 sequence");var i=n(e,0);if(2!=i.length)throw new Error("signature shall have two elements");var o=i[0],a=i[1];if("02"!=e.substr(o,2))throw new Error("1st item not ASN.1 integer");if("02"!=e.substr(a,2))throw new Error("2nd item not ASN.1 integer");return{r:r(e,o),s:r(e,a)}},H.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=H.crypto.ECDSA.parseSigHexInHexRS(e),n=t.r,r=t.s;if(n.length>=130&&n.length<=134){if(n.length%2!=0)throw Error("unknown ECDSA sig r length error");if(r.length%2!=0)throw Error("unknown ECDSA sig s length error");"00"==n.substr(0,2)&&(n=n.substr(2)),"00"==r.substr(0,2)&&(r=r.substr(2));var i=Math.max(n.length,r.length);return(n=("000000"+n).slice(-i))+(r=("000000"+r).slice(-i))}if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),n.length%32==30&&(n="00"+n),r.length%32==30&&(r="00"+r),n.length%32!=0)throw Error("unknown ECDSA sig r length error");if(r.length%32!=0)throw Error("unknown ECDSA sig s length error");return n+r},H.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var t=e.substr(0,e.length/2),n=e.substr(e.length/2);return H.crypto.ECDSA.hexRSSigToASN1Sig(t,n)},H.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var n=new o(e,16),r=new o(t,16);return H.crypto.ECDSA.biRSSigToASN1Sig(n,r)},H.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var n=H.asn1,r=new n.DERInteger({bigint:e}),i=new n.DERInteger({bigint:t});return new n.DERSequence({array:[r,i]}).tohex()},H.crypto.ECDSA.getName=function(e){return"2b8104001f"===e?"secp192k1":"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040021"===e?"secp224r1":"2b81040022"===e?"secp384r1":"2b81040023"===e?"secp521r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(e)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":-1!=="|secp521r1|NIST P-521|P-521|".indexOf(e)?"secp521r1":null},"undefined"!=typeof H&&H||(H={}),"undefined"!=typeof H.crypto&&H.crypto||(H.crypto={}),H.crypto.ECParameterDB=new function(){var e={},t={};function n(e){return new o(e,16)}this.getByName=function(n){var r=n;if("undefined"!=typeof t[r]&&(r=t[n]),"undefined"!=typeof e[r])return e[r];throw"unregistered EC curve name: "+r},this.regist=function(r,i,o,a,s,u,c,l,f,d,p,h){e[r]={};var v=n(o),m=n(a),y=n(s),b=n(u),g=n(c),w=new U(v,m,y),x=w.decodePointHex("04"+l+f);e[r].name=r,e[r].keylen=i,e[r].keycharlen=2*Math.ceil(i/8),e[r].curve=w,e[r].G=x,e[r].n=b,e[r].h=g,e[r].oid=p,e[r].info=h;for(var k=0;k1&&void 0!==arguments[1]?arguments[1]:"";i(this,e),this.url=t,this.apiKey=n}return o(e,[{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a(this,void 0,void 0,r().mark((function i(){var o,a=this;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this.apiKey&&(n["X-API-Key"]=this.apiKey),n["content-type"]="application/json",r.next=4,u.default.post(e,t,{baseURL:this.url,headers:n}).catch((function(t){throw new c.RequestError(a.url.concat(e),t.response.data)}));case 4:return o=r.sent,r.abrupt("return",o.data);case 6:case"end":return r.stop()}}),i,this)})))}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,void 0,void 0,r().mark((function n(){var i,o=this;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.apiKey&&(t["X-API-Key"]=this.apiKey),n.next=3,u.default.get(e,{baseURL:this.url,headers:t}).catch((function(t){throw new c.RequestError(o.url.concat(e),t.response.data)}));case 3:return i=n.sent,n.abrupt("return",i.data);case 5:case"end":return n.stop()}}),n,this)})))}},{key:"broadcast",value:function(e){return a(this,void 0,void 0,r().mark((function t(){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.post("/transactions/broadcast",JSON.stringify(e));case 2:return n=t.sent,t.abrupt("return",s.txFromData(n));case 4:case"end":return t.stop()}}),t,this)})))}},{key:"nodeStatus",value:function(){return this.get("/node/status")}},{key:"nodeVersion",value:function(){return a(this,void 0,void 0,r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/node/version");case 2:return e.abrupt("return",e.sent.version);case 3:case"end":return e.stop()}}),e,this)})))}}]),e}();t.default=l},9494:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2532);Object.defineProperty(t,"PublicNode",{enumerable:!0,get:function(){return r.default}})},2228:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]},9474:function(e,t,n){"use strict";var r=n(3515).default,i=n(861).default,o=n(6690).default,a=n(9728).default,s=n(1655).default,u=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var c=n(5360),l=n(2187),f=n(6053),d=n(7526),p=n(1141),h=n(154),v=25e6,m=1e7,y=3,b=function(e){s(n,e);var t=u(n);function n(){var e;o(this,n);for(var r=arguments.length,i=new Array(r),a=0;a4&&void 0!==arguments[4]?arguments[4]:[];return r(this,n),(s=t.call(this,n.TYPE,y)).data=[],s.recipient="string"===typeof i?i:i.address,s.associationType=e,o&&(s.subject=new d.default(o)),s.expires=a instanceof Date?a.getTime():a,s.data=Array.isArray(u)?u:p.dictToData(u),s.fee=h+Math.ceil(s.dataToBinary().length/m)*v,s}return i(n,[{key:"dataToBinary",value:function(){return this.data.reduce((function(e,t){return u.concatBytes(e,t.toBinary())}),new Uint8Array)}},{key:"toBinaryV1",value:function(){var e=this.subject?u.concatBytes(Uint8Array.from([1]),l.shortToByteArray(this.subject.length),this.subject):Uint8Array.from([0]);return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),c.decode(this.senderPublicKey),c.decode(this.recipient),l.integerToByteArray(this.associationType),e,l.longToByteArray(this.timestamp),l.longToByteArray(this.fee))}},{key:"toBinaryV3",value:function(){var e,t,n,r;return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),c.decode(this.recipient),l.integerToByteArray(this.associationType),l.longToByteArray(null!==(e=this.expires)&&void 0!==e?e:0),l.shortToByteArray(null!==(n=null===(t=this.subject)||void 0===t?void 0:t.length)&&void 0!==n?n:0),null!==(r=this.subject)&&void 0!==r?r:new Uint8Array)}},{key:"toBinaryV4",value:function(){var e,t,n,r;return u.concatBytes(Uint8Array.from([this.type,this.version]),Uint8Array.from(u.strToBytes(this.chainId)),Uint8Array.from(l.longToByteArray(this.timestamp)),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),Uint8Array.from(l.longToByteArray(this.fee)),Uint8Array.from(l.longToByteArray(this.associationType)),c.decode(this.recipient),Uint8Array.from(l.longToByteArray(null!==(e=this.expires)&&void 0!==e?e:0)),Uint8Array.from(l.shortToByteArray(null!==(n=null===(t=this.subject)||void 0===t?void 0:t.length)&&void 0!==n?n:0)),null!==(r=this.subject)&&void 0!==r?r:new Uint8Array,Uint8Array.from(l.shortToByteArray(this.data.length)),this.dataToBinary())}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");switch(this.version){case 1:return this.toBinaryV1();case 3:return this.toBinaryV3();case 4:return this.toBinaryV4();default:throw Error("Incorrect version")}}},{key:"toJSON",value:function(){var e;return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,fee:this.fee,timestamp:this.timestamp,associationType:this.associationType,recipient:this.recipient,expires:this.expires,subject:null===(e=this.subject)||void 0===e?void 0:e.base58,data:this.data.length>0?this.data.map((function(e){return e.toJSON()})):void 0,proofs:this.proofs,height:this.height}}},{key:"dict",get:function(){var e={};return this.data.forEach((function(t){return e[t.key]=t.value})),e}}],[{key:"from",value:function(e){var t,r=new n(e.associationType,e.recipient,e.subject?d.default.fromBase58(e.subject):void 0,e.expires).initFrom(e);return r.data=(null!==(t=e.data)&&void 0!==t?t:[]).map(p.default.from),r}}]),n}(s.default);t.default=b,b.TYPE=16},9767:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(5360),u=n(2187),c=n(6053),l=n(7526),f=n(1141),d=1e8,p=3,h=function(e){o(n,e);var t=a(n);function n(e){var i;return r(this,n),(i=t.call(this,n.TYPE,p,d)).amount=e,i}return i(n,[{key:"toBinaryV3",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),l.longToByteArray(this.amount))}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");if(3===this.version)return this.toBinaryV3();throw Error("Incorrect version")}},{key:"toJSON",value:function(){return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,fee:this.fee,timestamp:this.timestamp,amount:this.amount,proofs:this.proofs,height:this.height}}}],[{key:"from",value:function(e){return new n(e.amount).initFrom(e)}}]),n}(s.default);t.default=h,h.TYPE=21},8174:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(5360),u=n(2187),c=n(6053),l=n(7526),f=n(1141),d=1e8,p=3,h=function(e){o(n,e);var t=a(n);function n(e){var i;return r(this,n),(i=t.call(this,n.TYPE,p,d)).leaseId=e,i}return i(n,[{key:"toBinaryV2",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),l.longToByteArray(this.timestamp),Uint8Array.from(c.decode(this.leaseId)))}},{key:"toBinaryV3",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),Uint8Array.from(c.decode(this.leaseId)))}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");switch(this.version){case 2:return this.toBinaryV2();case 3:return this.toBinaryV3();default:throw Error("Incorrect version")}}},{key:"toJSON",value:function(){return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,fee:this.fee,timestamp:this.timestamp,proofs:this.proofs,leaseId:this.leaseId,height:this.height}}}],[{key:"from",value:function(e){return new n(e.leaseId).initFrom(e)}}]),n}(s.default);t.default=h,h.TYPE=9},2240:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(5360),u=n(2187),c=n(6053),l=n(7526),f=n(1141),d=5e8,p=3,h=function(e){o(n,e);var t=a(n);function n(e){var i;return r(this,n),(i=t.call(this,n.TYPE,p,d)).recipient="string"===typeof e?e:e.address,i}return i(n,[{key:"toBinaryV1",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),c.decode(this.senderPublicKey),c.decode(this.recipient),l.longToByteArray(this.timestamp),l.longToByteArray(this.fee))}},{key:"toBinaryV3",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),c.decode(this.recipient))}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");switch(this.version){case 1:return this.toBinaryV1();case 3:return this.toBinaryV3();default:throw Error("Incorrect version")}}},{key:"toJSON",value:function(){return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,recipient:this.recipient,timestamp:this.timestamp,fee:this.fee,proofs:this.proofs,height:this.height}}}],[{key:"from",value:function(e){return new n(e.recipient).initFrom(e)}}]),n}(s.default);t.default=h,h.TYPE=19},2838:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(5360),u=n(2187),c=n(6053),l=n(7526),f=n(1141),d=n(3118),p=5e7,h=1e7,v=256,m=3,y=function(e){o(n,e);var t=a(n);function n(e){var i;return r(this,n),(i=t.call(this,n.TYPE,m)).data=[],i.data=Array.isArray(e)?e:d.dictToData(e),i.fee=p+Math.ceil(i.dataToBinary().length/v)*h,i}return i(n,[{key:"dataToBinary",value:function(){return this.data.reduce((function(e,t){return u.concatBytes(e,t.toBinary())}),new Uint8Array)}},{key:"toBinaryV3",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),l.shortToByteArray(this.data.length),this.dataToBinary())}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");if(3===this.version)return this.toBinaryV3();throw new Error("Incorrect version")}},{key:"toJSON",value:function(){return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,fee:this.fee,timestamp:this.timestamp,data:this.data.map((function(e){return e.toJSON()})),proofs:this.proofs,height:this.height}}},{key:"dict",get:function(){var e={};return this.data.forEach((function(t){return e[t.key]=t.value})),e}}],[{key:"from",value:function(e){var t,r=new n([]).initFrom(e);return r.data=(null!==(t=e.data)&&void 0!==t?t:[]).map(d.default.from),r}}]),n}(s.default);t.default=y,y.TYPE=12},3118:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0}),t.dictToData=void 0;var o=n(7526),a=n(2187),s=n(154),u=function(){function e(t,n,i){r(this,e),this.key=t,this.type=n,this.value=e.guard(t,n,i)}return i(e,[{key:"toBinary",value:function(){var e=o.stringToByteArray(this.key);return a.concatBytes(o.shortToByteArray(e.length),e,this.valueToBinary())}},{key:"valueToBinary",value:function(){switch(this.type){case"integer":return a.concatBytes(Uint8Array.from([0]),o.integerToByteArray(this.value));case"boolean":return a.concatBytes(Uint8Array.from([1]),Uint8Array.from([+this.value]));case"binary":return a.concatBytes(Uint8Array.from([2]),this.value);case"string":return a.concatBytes(Uint8Array.from([3]),o.stringToByteArray(this.value))}}},{key:"toJSON",value:function(){return{key:this.key,type:this.type,value:this.value instanceof s.default?"base64:"+this.value.base64:this.value}}}],[{key:"from",value:function(t){var n="binary"===t.type&&"string"===typeof t.value&&t.value.startsWith("base64:")?s.default.fromBase64(t.value.substr(7)):t.value;return new e(t.key,t.type,n)}},{key:"guess",value:function(t,n){if("number"===typeof n)return new e(t,"integer",n);if("boolean"===typeof n)return new e(t,"boolean",n);if("string"===typeof n)return new e(t,"string",n);if(n instanceof Uint8Array)return new e(t,"binary",n);throw Error("Type not recognized")}},{key:"guard",value:function(e,t,n){switch(t){case"integer":if("number"!==typeof n)throw Error("Invalid value for data entry '".concat(e,"' of type ").concat(t));return n;case"boolean":if("boolean"!==typeof n)throw Error("Invalid value for data entry '".concat(e,"' of type ").concat(t));return n;case"binary":if(!(n instanceof Uint8Array))throw Error("Invalid value for data entry '".concat(e,"' of type ").concat(t));return new s.default(n);case"string":if("string"!==typeof n)throw Error("Invalid value for data entry '".concat(e,"' of type ").concat(t));return n;default:throw Error("Unsupported data entry type ".concat(t))}}}]),e}();t.default=u,t.dictToData=function(e){var t=[];for(var n in e)t.push(u.guess(n,e[n]));return t}},1356:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(5360),u=n(2187),c=n(6053),l=n(7526),f=n(1141),d=1e8,p=3,h=function(e){o(n,e);var t=a(n);function n(e,i){var o;return r(this,n),(o=t.call(this,n.TYPE,p,d)).recipient="string"===typeof e?e:e.address,o.amount=i,o}return i(n,[{key:"toBinaryV2",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version,0]),c.decode(this.senderPublicKey),c.decode(this.recipient),l.longToByteArray(this.amount),l.longToByteArray(this.fee),l.longToByteArray(this.timestamp))}},{key:"toBinaryV3",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),c.decode(this.recipient),l.longToByteArray(this.amount))}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");switch(this.version){case 2:return this.toBinaryV2();case 3:return this.toBinaryV3();default:throw new Error("Incorrect version")}}},{key:"toJSON",value:function(){return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,fee:this.fee,timestamp:this.timestamp,recipient:this.recipient,amount:this.amount,proofs:this.proofs,height:this.height}}}],[{key:"from",value:function(e){return new n(e.recipient,e.amount).initFrom(e)}}]),n}(s.default);t.default=h,h.TYPE=8},9958:function(e,t,n){"use strict";var r=n(3515).default,i=n(861).default,o=n(7424).default,a=n(6690).default,s=n(9728).default,u=n(1655).default,c=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var l=n(5360),f=n(2187),d=n(6053),p=n(7526),h=n(1141),v=n(154),m=25e6,y=1e7,b=3,g=function(e){u(n,e);var t=c(n);function n(){var e;a(this,n);for(var r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return r(this,n),(i=t.call(this,n.TYPE,v,p+e.length*h)).transfers=e,i.attachment=new d.default(o),i}return i(n,[{key:"transferBinary",value:function(){return this.transfers.reduce((function(e,t){return u.concatBytes(e,c.decode(t.recipient),l.longToByteArray(t.amount))}),new Uint8Array)}},{key:"toBinaryV1",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),c.decode(this.senderPublicKey),l.shortToByteArray(this.transfers.length),this.transferBinary(),l.longToByteArray(this.timestamp),l.longToByteArray(this.fee),l.shortToByteArray(this.attachment.length),this.attachment)}},{key:"toBinaryV3",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),l.shortToByteArray(this.transfers.length),this.transferBinary(),l.shortToByteArray(this.attachment.length),this.attachment)}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");switch(this.version){case 1:return this.toBinaryV1();case 3:return this.toBinaryV3();default:throw Error("Incorrect version")}}},{key:"toJSON",value:function(){return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,fee:this.fee,timestamp:this.timestamp,transfers:this.transfers,attachment:this.attachment.base58,proofs:this.proofs,height:this.height}}}],[{key:"from",value:function(e){var t=e.attachment?d.default.fromBase58(e.attachment):"";return new n(e.transfers,t).initFrom(e)}}]),n}(s.default);t.default=m,m.TYPE=11},626:function(e,t,n){"use strict";var r=n(3515).default,i=n(861).default,o=n(6690).default,a=n(9728).default,s=n(1655).default,u=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var c=n(5360),l=n(2187),f=n(6053),d=n(7526),p=n(1141),h=25e6,v=1e7,m=3,y=function(e){s(n,e);var t=u(n);function n(){var e;o(this,n);for(var r=arguments.length,i=new Array(r),a=0;a100)throw new Error("Too many accounts");return e}return a(n,[{key:"accountToDict",value:function(e){return{keyType:e.keyType,publicKey:e.publicKey}}},{key:"accountsToBinary",value:function(){return this.accounts.reduce((function(e,t){return l.concatBytes(e,Uint8Array.from([p.keyTypeId(t.keyType)]),f.decode(t.publicKey))}),new Uint8Array)}},{key:"toBinaryV3",value:function(){return l.concatBytes(Uint8Array.from([this.type,this.version]),d.stringToByteArray(this.chainId),d.longToByteArray(this.timestamp),Uint8Array.from([p.keyTypeId(this.senderKeyType)]),f.decode(this.senderPublicKey),d.longToByteArray(this.fee),d.shortToByteArray(this.accounts.length),this.accountsToBinary())}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");if(3===this.version)return this.toBinaryV3();throw new Error("Incorrect version")}},{key:"toJSON",value:function(){return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,fee:this.fee,timestamp:this.timestamp,accounts:this.accounts,proofs:this.proofs,height:this.height}}}],[{key:"from",value:function(e){return r(n,i(e.accounts)).initFrom(e)}}]),n}(c.default);t.default=y,y.TYPE=20},3639:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(5360),u=n(2187),c=n(6053),l=n(7526),f=n(1141),d=n(154),p=5e7,h=3,v=function(e){o(n,e);var t=a(n);function n(e,i,o){var a;return r(this,n),(a=t.call(this,n.TYPE,h,p)).recipient="string"===typeof i?i:i.address,a.associationType=e,o&&(a.subject=new d.default(o)),a}return i(n,[{key:"toBinaryV1",value:function(){var e=this.subject?u.concatBytes(Uint8Array.from([1]),l.shortToByteArray(this.subject.length),Uint8Array.from(this.subject)):Uint8Array.from([0]);return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),c.decode(this.senderPublicKey),c.decode(this.recipient),l.integerToByteArray(this.associationType),e,l.longToByteArray(this.timestamp),l.longToByteArray(this.fee))}},{key:"toBinaryV3",value:function(){var e,t,n;return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),c.decode(this.recipient),l.integerToByteArray(this.associationType),l.shortToByteArray(null!==(t=null===(e=this.subject)||void 0===e?void 0:e.length)&&void 0!==t?t:0),null!==(n=this.subject)&&void 0!==n?n:new Uint8Array)}},{key:"toBinaryV4",value:function(){var e,t,n;return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),l.longToByteArray(this.associationType),c.decode(this.recipient),l.shortToByteArray(null!==(t=null===(e=this.subject)||void 0===e?void 0:e.length)&&void 0!==t?t:0),null!==(n=this.subject)&&void 0!==n?n:new Uint8Array)}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");switch(this.version){case 1:return this.toBinaryV1();case 3:return this.toBinaryV3();default:throw new Error("Incorrect version")}}},{key:"toJSON",value:function(){var e;return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,recipient:this.recipient,associationType:this.associationType,fee:this.fee,timestamp:this.timestamp,subject:null===(e=this.subject)||void 0===e?void 0:e.base58,proofs:this.proofs,height:this.height}}}],[{key:"from",value:function(e){return new n(e.associationType,e.recipient,e.subject?d.default.fromBase58(e.subject):void 0).initFrom(e)}}]),n}(s.default);t.default=v,v.TYPE=17},979:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(5360),u=n(2187),c=n(6053),l=n(7526),f=n(1141),d=5e8,p=3,h=function(e){o(n,e);var t=a(n);function n(e){var i;return r(this,n),(i=t.call(this,n.TYPE,p,d)).recipient="string"===typeof e?e:e.address,i}return i(n,[{key:"toBinaryV1",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),c.decode(this.senderPublicKey),c.decode(this.recipient),l.longToByteArray(this.timestamp),l.longToByteArray(this.fee))}},{key:"toBinaryV3",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),c.decode(this.recipient))}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");switch(this.version){case 1:return this.toBinaryV1();case 3:return this.toBinaryV3();default:throw Error("Incorrect version")}}},{key:"toJSON",value:function(){return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,recipient:this.recipient,timestamp:this.timestamp,fee:this.fee,proofs:this.proofs,height:this.height}}}],[{key:"from",value:function(e){return new n(e.recipient).initFrom(e)}}]),n}(s.default);t.default=h,h.TYPE=18},378:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(5360),u=n(2187),c=n(6053),l=n(7526),f=n(1141),d=n(154),p=n(3118),h=5e7,v=1e7,m=256,y=3,b=function(e){o(n,e);var t=a(n);function n(e,i,o){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return r(this,n),(a=t.call(this,n.TYPE,y)).data=[],a.statementType=e,a.recipient="string"===typeof i?i:i.address,o&&(a.subject=new d.default(o)),a.data=Array.isArray(s)?s:p.dictToData(s),a.fee=h+Math.ceil(a.dataToBinary().length/m)*v,a}return i(n,[{key:"dataToBinary",value:function(){return this.data.reduce((function(e,t){return u.concatBytes(e,t.toBinary())}),new Uint8Array)}},{key:"toBinaryV3",value:function(){var e,t,n;return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),l.longToByteArray(this.statementType),Uint8Array.from([this.recipient?1:0]),this.recipient?c.decode(this.recipient):new Uint8Array,l.shortToByteArray(null!==(t=null===(e=this.subject)||void 0===e?void 0:e.length)&&void 0!==t?t:0),null!==(n=this.subject)&&void 0!==n?n:new Uint8Array,l.shortToByteArray(this.data.length),this.dataToBinary())}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");if(3===this.version)return this.toBinaryV3();throw Error("Incorrect version")}},{key:"toJSON",value:function(){var e,t;return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,fee:this.fee,timestamp:this.timestamp,associationType:this.statementType,recipient:this.recipient,subject:null===(e=this.subject)||void 0===e?void 0:e.base58,data:null===(t=this.data)||void 0===t?void 0:t.map((function(e){return e.toJSON()})),proofs:this.proofs,height:this.height}}},{key:"dict",get:function(){var e={};return this.data.forEach((function(t){return e[t.key]=t.value})),e}}],[{key:"from",value:function(e){var t,r=new n(e.associationType,e.recipient,e.subject?d.default.fromBase58(e.subject):void 0).initFrom(e);return r.data=(null!==(t=e.data)&&void 0!==t?t:[]).map(p.default.from),r}}]),n}(s.default);t.default=b,b.TYPE=23},5360:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0});var o=n(6053),a=n(1141),s=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r(this,e),this.proofs=[],this.senderKeyType="ed25519",this.type=t,this.version=n,this.fee=i}return i(e,[{key:"isSigned",value:function(){return 0!=this.proofs.length}},{key:"signWith",value:function(e){this.timestamp||(this.timestamp=Date.now()),this.sender||(this.sender=e.address,this.senderKeyType=e.keyType,this.senderPublicKey=e.publicKey);var t=e.sign(this.toBinary()).base58;return this.proofs.includes(t)||this.proofs.push(t),"undefined"===typeof e.parent||this.sponsor||this.sponsorWith(e.parent),this}},{key:"chainId",get:function(){if(!this.sender)throw new Error("Chain id unknown");return a.getNetwork(this.sender)}},{key:"broadcastTo",value:function(e){return e.broadcast(this)}},{key:"sponsorWith",value:function(e){if(!this.isSigned())throw new Error("Transaction must be signed first");this.sponsor&&this.proofs.pop();var t=e.sign(this.toBinary());return this.sponsor=e.address,this.sponsorPublicKey=e.publicKey,this.sponsorKeyType=e.keyType,this.proofs.push(o.encode(t)),this}},{key:"initFrom",value:function(e){var t,n,r;return this.version=e.version,this.id=e.id,this.timestamp=e.timestamp,this.fee=e.fee,this.sender=e.sender,this.senderKeyType=null!==(t=e.senderKeyType)&&void 0!==t?t:"ed25519",this.senderPublicKey=e.senderPublicKey,e.sponsor&&(this.sponsor=e.sponsor,this.sponsorKeyType=null!==(n=e.sponsorKeyType)&&void 0!==n?n:"ed25519",this.sponsorPublicKey=e.sponsorPublicKey),this.proofs=null!==(r=e.proofs)&&void 0!==r?r:[],this.height=e.height,this}}]),e}();t.default=s},4961:function(e,t,n){"use strict";var r=n(6690).default,i=n(9728).default,o=n(1655).default,a=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(5360),u=n(2187),c=n(6053),l=n(7526),f=n(1141),d=n(154),p=1e8,h=3,v=function(e){o(n,e);var t=a(n);function n(e,i){var o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return r(this,n),(o=t.call(this,n.TYPE,h,p)).recipient="string"===typeof e?e:e.address,o.amount=i,o.attachment=new d.default(a),o}return i(n,[{key:"toBinaryV2",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),c.decode(this.senderPublicKey),l.longToByteArray(this.timestamp),l.longToByteArray(this.amount),l.longToByteArray(this.fee),c.decode(this.recipient),l.shortToByteArray(this.attachment.length),this.attachment)}},{key:"toBinaryV3",value:function(){return u.concatBytes(Uint8Array.from([this.type,this.version]),l.stringToByteArray(this.chainId),l.longToByteArray(this.timestamp),Uint8Array.from([f.keyTypeId(this.senderKeyType)]),c.decode(this.senderPublicKey),l.longToByteArray(this.fee),c.decode(this.recipient),l.longToByteArray(this.amount),l.shortToByteArray(this.attachment.length),this.attachment)}},{key:"toBinary",value:function(){if(!this.sender)throw Error("Transaction sender not set");switch(this.version){case 2:return this.toBinaryV2();case 3:return this.toBinaryV3();default:throw Error("Incorrect version")}}},{key:"toJSON",value:function(){return{id:this.id,type:this.type,version:this.version,sender:this.sender,senderKeyType:this.senderKeyType,senderPublicKey:this.senderPublicKey,sponsor:this.sponsor,sponsorKeyType:this.sponsorKeyType,sponsorPublicKey:this.sponsorPublicKey,fee:this.fee,timestamp:this.timestamp,amount:this.amount,recipient:this.recipient,attachment:this.attachment.base58,proofs:this.proofs,height:this.height}}}],[{key:"from",value:function(e){var t=e.attachment?d.default.fromBase58(e.attachment):"";return new n(e.recipient,e.amount,t).initFrom(e)}}]),n}(s.default);t.default=v,v.TYPE=4},1145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.txFromData=t.Statement=t.MappedAnchor=t.Burn=t.Transfer=t.CancelSponsorship=t.Sponsorship=t.Register=t.MassTransfer=t.CancelLease=t.Lease=t.Data=t.RevokeAssociation=t.Association=t.Anchor=t.Transaction=void 0;var r=n(5360);t.Transaction=r.default;var i=n(9474);t.Anchor=i.default;var o=n(4608);t.Association=o.default;var a=n(3639);t.RevokeAssociation=a.default;var s=n(2838);t.Data=s.default;var u=n(1356);t.Lease=u.default;var c=n(8174);t.CancelLease=c.default;var l=n(4072);t.MassTransfer=l.default;var f=n(626);t.Register=f.default;var d=n(979);t.Sponsorship=d.default;var p=n(2240);t.CancelSponsorship=p.default;var h=n(4961);t.Transfer=h.default;var v=n(9767);t.Burn=v.default;var m=n(9958);t.MappedAnchor=m.default;var y=n(378);t.Statement=y.default,t.txFromData=function(e){switch(e.type){case 4:return h.default.from(e);case 8:return u.default.from(e);case 9:return c.default.from(e);case 11:return l.default.from(e);case 12:return s.default.from(e);case 15:return i.default.from(e);case 16:return o.default.from(e);case 17:return a.default.from(e);case 18:return d.default.from(e);case 19:return p.default.from(e);case 20:return f.default.from(e);case 21:return v.default.from(e);case 22:return m.default.from(e);case 23:return y.default.from(e);default:throw Error("Transaction type not recognized")}}},1547:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blake2b=void 0;var r=n(6990);t.blake2b=function(e){return r.blake2b(e,null,32)}},2187:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.int16ToBytes=t.int32ToBytes=t.generateRandomUint32Array=t.mergeTypedArrays=t.strToBytes=t.compareBytes=t.concatBytes=t.bytesToHex=t.hexToBytes=void 0;var r=n(1272),i=n(2283);function o(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&r).toString(16))}return t.join("")}function a(e,t,n,r){var i=Math.floor(n/2),o=-1*(i+1);if(e!=Math.floor(e)||en)throw new Error(e+" is not a "+8*t+" bit integer");var a,s=[],u=e>=0&&e<=i?0:e>i&&e<=n?1:2;2==u&&(e=-1*e-1);for(var c=0;c>=8;return Uint8Array.from(s)}t.hexToBytes=function(e){for(var t=[],n=0;n=0;u--)s[u]="1"===o[u]&&"1"===a[u]?"1":"0";return parseInt(s.join(""),2)}t.booleanToBytes=function(e){if("boolean"!==typeof e)throw new Error("Boolean input is expected");return Uint8Array.from(e?[1]:[0])},t.shortToByteArray=function(e){if("number"!==typeof e)throw new Error("Numeric input is expected");return o.int16ToBytes(e,!0)},t.integerToByteArray=function(e){if("number"!==typeof e)throw new Error("Numeric input is expected");return o.int32ToBytes(e,!0)},t.bytesToByteArrayWithSize=function(e){if(!(e instanceof Array||e instanceof Uint8Array))throw new Error("Byte array or Uint8Array input is expected");if(e instanceof Array&&!e.every((function(e){return"number"===typeof e})))throw new Error("Byte array contains non-numeric elements");e instanceof Array||(e=Array.prototype.slice.call(e));var t=a.default.int16ToBytes(e.length,!0);return Uint8Array.from([].concat(r(t),r(e)))},t.longToByteArray=function(e){if("number"!==typeof e)throw new Error("Numeric input is expected");for(var t=new Array(7),n=7;n>=0;n--)t[n]=255&e,e/=256;return Uint8Array.from(t)},t.bigNumberToByteArray=function(e){if(!(e instanceof i.default))throw new Error("BigNumber input is expected");for(var t=s.bind(null,new i.default(255)),n=new Array(7),r=7;r>=0;r--)n[r]=t(e),e=e.div(256);return Uint8Array.from(n)},t.stringToByteArray=function(e){if("string"!==typeof e)throw new Error("String input is expected");return(new TextEncoder).encode(e)},t.stringToByteArrayWithSize=function(e){if("string"!==typeof e)throw new Error("String input is expected");var t=a.default.stringToByteArray(e),n=a.default.int16ToBytes(t.length,!0);return Uint8Array.from([].concat(r(n),r(t)))}},1141:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyTypeId=t.getNetwork=t.randomNonce=t.buildRawAddress=t.isValidAddress=t.secureHash=void 0;var r=n(6053),i=n(1272),o=n(2187),a=n(6318),s=n(3001),u=n(1547),c=1;function l(e){return s.sha256(u.blake2b(e))}t.secureHash=l,t.isValidAddress=function(e,t){if(!e||"string"!==typeof e)throw new Error("Missing or invalid address");var n="string"===typeof t?t.charCodeAt(0):t,i=r.decode(e);if(i[0]!==c||i[1]!==n)return!1;var a=i.slice(0,22),s=i.slice(22,26),u=l(a).slice(0,4);return o.compareBytes(u,s)},t.buildRawAddress=function(e,t){if(!e||e.length!==a.PUBLIC_KEY_LENGTH&&e.length!==a.PUBLIC_KEY_LENGTH_ECDSA&&e.length!==a.UNCOMPRESSED_PUBLIC_KEY_LENGTH_ECDSA||!(e instanceof Uint8Array))throw new Error("Missing or invalid public key");var n=Uint8Array.from([a.ADDRESS_VERSION,t.charCodeAt(0)]),i=Uint8Array.from(l(e).slice(0,20)),s=o.concatBytes(n,i),u=Uint8Array.from(l(s).slice(0,4));return r.encode(o.concatBytes(s,u))},t.randomNonce=function(){return i.randomUint8Array(24)},t.getNetwork=function(e){var t=r.decode(e);return String.fromCharCode(t[1])},t.keyTypeId=function(e){var t={ed25519:1,secp256k1:2,secp256r1:3};if(!(e in t))throw Error("Key Type not supported");return t[e]}},4118:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCompressPublicKey=t.addPrefix=void 0,t.addPrefix=function(e,t){var n=t.slice(t.length-1);return parseInt(n,16)%2==0?"02"+e:"03"+e},t.getCompressPublicKey=function(e){var t=(e="x"==e[1]?e.substring(4):e.substring(2)).length/2;return this.add_prefix(e.substr(0,t),e.substr(t+1))}},3678:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toHex=t.fromHex=t.recode=t.decode=t.encode=t.Encoding=void 0;var r,i=n(6053),o=n(9501),a=n(2187);function s(e){switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.base58){case r.base58:return i.encode(e);case r.base64:return o.encode(e);case r.hex:return a.bytesToHex(e)}}function u(e){switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.base58){case r.base58:return i.decode(e);case r.base64:return o.decode(e);case r.hex:return a.hexToBytes(e)}}!function(e){e.base58="base58",e.base64="base64",e.hex="hex"}(r=t.Encoding||(t.Encoding={})),t.encode=s,t.decode=u,t.recode=function(e,t,n){return s(u(e,t),n)},t.fromHex=function(e){return decodeURIComponent(e.replace(/(..)/g,"%$1"))},t.toHex=function(e){return unescape(encodeURIComponent(e)).split("").map((function(e){return e.charCodeAt(0).toString(16)})).join("")}},9255:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptSeed=t.encryptSeed=void 0;var r=n(8482),i=n(3001),o=n(2187);function a(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;t--;)e=o.bytesToHex(i.sha256(e));return e}t.encryptSeed=function(e,t,n){if(!e||"string"!==typeof e)throw new Error("Seed is required");if(!t||"string"!==typeof t)throw new Error("Password is required");return t=a(t,n),r.encrypt(e,t).toString()},t.decryptSeed=function(e,t,n){if(!e||"string"!==typeof e)throw new Error("Encrypted seed is required");if(!t||"string"!==typeof t)throw new Error("Password is required");t=a(t,n);var i=r.decrypt(e,t);return(new TextDecoder).decode(o.hexToBytes(i.toString()))}},5302:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateNewSeed=void 0;var r=n(2228),i=n(2187);t.generateNewSeed=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15,t=i.generateRandomUint32Array(e),n=r.default.length,o=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[200],light:b[50],dark:b[400]}:{main:b[700],light:b[400],dark:b[800]}}(n),C=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[200],light:v[50],dark:v[400]}:{main:v[500],light:v[300],dark:v[700]}}(n),F=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[500],light:m[300],dark:m[700]}:{main:m[700],light:m[400],dark:m[800]}}(n),A=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:g[700],light:g[500],dark:g[900]}}(n),T=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:w[400],light:w[300],dark:w[700]}:{main:w[800],light:w[500],dark:w[900]}}(n),P=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:"#ed6c02",light:y[500],dark:y[900]}}(n);function O(e){return(0,d.mi)(e,_.text.primary)>=u?_.text.primary:k.text.primary}var j=function(e){var t=e.color,n=e.name,i=e.mainShade,a=void 0===i?500:i,s=e.lightShade,u=void 0===s?300:s,c=e.darkShade,f=void 0===c?700:c;if(!(t=(0,r.Z)({},t)).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,o.Z)(11,n?" (".concat(n,")"):"",a));if("string"!==typeof t.main)throw new Error((0,o.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return S(t,"light",u,l),S(t,"dark",f,l),t.contrastText||(t.contrastText=O(t.main)),t},B={dark:_,light:k};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},p),mode:n,primary:j({color:E,name:"primary"}),secondary:j({color:C,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:j({color:F,name:"error"}),warning:j({color:P,name:"warning"}),info:j({color:A,name:"info"}),success:j({color:T,name:"success"}),grey:h,contrastThreshold:u,getContrastText:O,augmentColor:j,tonalOffset:l},B[n]),f)}var C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var F={textTransform:"uppercase"},A='"Roboto", "Helvetica", "Arial", sans-serif';function T(e,t){var n="function"===typeof t?t(e):t,o=n.fontFamily,s=void 0===o?A:o,u=n.fontSize,c=void 0===u?14:u,l=n.fontWeightLight,f=void 0===l?300:l,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,v=void 0===h?500:h,m=n.fontWeightBold,y=void 0===m?700:m,b=n.htmlFontSize,g=void 0===b?16:b,w=n.allVariants,x=n.pxToRem,k=(0,i.Z)(n,C);var _=c/14,S=x||function(e){return"".concat(e/g*_,"rem")},E=function(e,t,n,i,o){return(0,r.Z)({fontFamily:s,fontWeight:e,fontSize:S(t),lineHeight:n},s===A?{letterSpacing:"".concat((a=i/t,Math.round(1e5*a)/1e5),"em")}:{},o,w);var a},T={h1:E(f,96,1.167,-1.5),h2:E(f,60,1.2,-.5),h3:E(p,48,1.167,0),h4:E(p,34,1.235,.25),h5:E(p,24,1.334,0),h6:E(v,20,1.6,.15),subtitle1:E(p,16,1.75,.15),subtitle2:E(v,14,1.57,.1),body1:E(p,16,1.5,.15),body2:E(p,14,1.43,.15),button:E(v,14,1.75,.4,F),caption:E(p,12,1.66,.4),overline:E(p,12,2.66,1,F)};return(0,a.Z)((0,r.Z)({htmlFontSize:g,pxToRem:S,fontFamily:s,fontSize:c,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:y},T),k,{clone:!1})}var P=.2,O=.14,j=.12;function B(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(P,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(O,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(j,")")].join(",")}var Z=["none",B(0,2,1,-1,0,1,1,0,0,1,3,0),B(0,3,1,-2,0,2,2,0,0,1,5,0),B(0,3,3,-2,0,3,4,0,0,1,8,0),B(0,2,4,-1,0,4,5,0,0,1,10,0),B(0,3,5,-1,0,5,8,0,0,1,14,0),B(0,3,5,-1,0,6,10,0,0,1,18,0),B(0,4,5,-2,0,7,10,1,0,2,16,1),B(0,5,5,-3,0,8,10,1,0,3,14,2),B(0,5,6,-3,0,9,12,1,0,3,16,2),B(0,6,6,-3,0,10,14,1,0,4,18,3),B(0,6,7,-4,0,11,15,1,0,4,20,3),B(0,7,8,-4,0,12,17,2,0,5,22,4),B(0,7,8,-4,0,13,19,2,0,5,24,4),B(0,7,9,-4,0,14,21,2,0,5,26,4),B(0,8,9,-5,0,15,22,2,0,6,28,5),B(0,8,10,-5,0,16,24,2,0,6,30,5),B(0,8,11,-5,0,17,26,2,0,6,32,5),B(0,9,11,-5,0,18,28,2,0,7,34,6),B(0,9,12,-6,0,19,29,2,0,7,36,6),B(0,10,13,-6,0,20,31,3,0,8,38,7),B(0,10,13,-6,0,21,33,3,0,8,40,7),B(0,10,14,-6,0,22,35,3,0,8,42,7),B(0,11,14,-7,0,23,36,3,0,9,44,8),B(0,11,15,-7,0,24,38,3,0,9,46,8)],R=["duration","easing","delay"],I={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},M={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function D(e){return"".concat(Math.round(e),"ms")}function N(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function z(e){var t=(0,r.Z)({},I,e.easing),n=(0,r.Z)({},M,e.duration);return(0,r.Z)({getAutoHeightDuration:N,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.duration,a=void 0===o?n.standard:o,s=r.easing,u=void 0===s?t.easeInOut:s,c=r.delay,l=void 0===c?0:c;(0,i.Z)(r,R);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof a?a:D(a)," ").concat(u," ").concat("string"===typeof l?l:D(l))})).join(",")}},e,{easing:t,duration:n})}var L={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},U=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,l=e.palette,d=void 0===l?{}:l,p=e.transitions,h=void 0===p?{}:p,v=e.typography,m=void 0===v?{}:v,y=(0,i.Z)(e,U);if(e.vars)throw new Error((0,o.Z)(18));var b=E(d),g=(0,s.Z)(e),w=(0,a.Z)(g,{mixins:f(g.breakpoints,n),palette:b,shadows:Z.slice(),typography:T(b,m),transitions:z(h),zIndex:(0,r.Z)({},L)});w=(0,a.Z)(w,y);for(var x=arguments.length,k=new Array(x>1?x-1:0),_=1;_96?d:p},v=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,c.hC)(t,n,r);(0,f.L)((function(){return(0,c.My)(t,n,r)}));return null},y=function e(t,n){var o,a,s=t.__emotion_real===t,f=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var d=v(t,n,s),p=d||h(f),y=!p("as");return function(){var b=arguments,g=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&g.push("label:"+o+";"),null==b[0]||void 0===b[0].raw)g.push.apply(g,b);else{0,g.push(b[0][0]);for(var w=b.length,x=1;x0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function s(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}},1344:function(e,t,n){"use strict";n.d(t,{$n:function(){return f},Fq:function(){return c},_j:function(){return l},mi:function(){return u}});var r=n(6488);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var i,a=e.substring(t+1,e.length-1);if("color"===n){if(i=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.Z)(10,i))}else a=a.split(",");return{type:n,values:a=a.map((function(e){return parseFloat(e)})),colorSpace:i}}function a(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function s(e){var t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",l=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(c+="a",l.push(t[3])),a({type:c,values:l})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,a(e)}function l(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}},5958:function(e,t,n){"use strict";n.d(t,{ZP:function(){return _},x9:function(){return x}});var r=n(2982),i=n(885),o=n(3366),a=n(7462),s=n(9649),u=n(9422),c=n(1862),l=["variant"];function f(e){return 0===e.length}function d(e){var t=e.variant,n=(0,o.Z)(e,l),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?f(r)?e[t]:(0,c.Z)(e[t]):"".concat(f(r)?t:(0,c.Z)(t)).concat((0,c.Z)(e[t].toString()))})),r}var p=n(1834),h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],v=["theme"],m=["theme"];function y(e){return 0===Object.keys(e).length}var b=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},g=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=d(e.props);r[t]=e.style})),r},w=function(e,t,n,r){var i,o,a=e.ownerState,s=void 0===a?{}:a,u=[],c=null==n||null==(i=n.components)||null==(o=i[r])?void 0:o.variants;return c&&c.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){s[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&u.push(t[d(n.props)])})),u};function x(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var k=(0,u.Z)();function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=void 0===t?k:t,u=e.rootShouldForwardProp,c=void 0===u?x:u,l=e.slotShouldForwardProp,f=void 0===l?x:l,d=function(e){var t=y(e.theme)?n:e.theme;return(0,p.Z)((0,a.Z)({},e,{theme:t}))};return d.__mui_systemSx=!0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.Co)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var u=t.name,l=t.slot,p=t.skipVariantsResolver,k=t.skipSx,_=t.overridesResolver,S=(0,o.Z)(t,h),E=void 0!==p?p:l&&"Root"!==l||!1,C=k||!1;var F=x;"Root"===l?F=c:l?F=f:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(F=void 0);var A=(0,s.ZP)(e,(0,a.Z)({shouldForwardProp:F,label:undefined},S)),T=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),c=1;c0){var h=new Array(p).fill("");(f=[].concat((0,r.Z)(e),(0,r.Z)(h))).raw=[].concat((0,r.Z)(e.raw),(0,r.Z)(h))}else"function"===typeof e&&e.__emotion_real!==e&&(f=function(t){var r=t.theme,i=(0,o.Z)(t,m);return e((0,a.Z)({theme:y(r)?n:r},i))});return A.apply(void 0,[f].concat((0,r.Z)(l)))};return A.withConfig&&(T.withConfig=A.withConfig),T}}},9422:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(7462),i=n(3366),o=n(9454),a=n(4942),s=["values","unit","step"],u=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)({},e,(0,a.Z)({},t.key,t.val))}),{})};var c={borderRadius:4},l=n(4480);var f=n(1834),d=n(4183),p=["breakpoints","palette","spacing","shape"];var h=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,a=e.palette,h=void 0===a?{}:a,v=e.spacing,m=e.shape,y=void 0===m?{}:m,b=(0,i.Z)(e,p),g=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,o=e.unit,a=void 0===o?"px":o,c=e.step,l=void 0===c?5:c,f=(0,i.Z)(e,s),d=u(n),p=Object.keys(d);function h(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(a,")")}function v(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-l/100).concat(a,")")}function m(e,t){var r=p.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(a,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[p[r]]?n[p[r]]:t)-l/100).concat(a,")")}return(0,r.Z)({keys:p,values:d,up:h,down:v,between:m,only:function(e){return p.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,l.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?k-1:0),S=1;S2){if(!c[e])return[e];e=c[e]}var t=e.split(""),n=(0,r.Z)(t,2),i=n[0],o=n[1],a=s[i],l=u[o]||"";return Array.isArray(l)?l.map((function(e){return a+e})):[a+l]})),f=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[].concat(f,d);function h(e,t,n,r){var i,a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"===typeof a?function(e){return"string"===typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"===typeof e?e:a[e]}:"function"===typeof a?a:function(){}}function v(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function y(e,t,n,r){if(-1===t.indexOf(n))return null;var o=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=m(t,n),e}),{})}}(l(n),r),a=e[n];return(0,i.k9)(e,a,o)}function b(e,t){var n=v(e.theme);return Object.keys(e).map((function(r){return y(e,t,r,n)})).reduce(a.Z,{})}function g(e){return b(e,f)}function w(e){return b(e,d)}function x(e){return b(e,p)}g.propTypes={},g.filterProps=f,w.propTypes={},w.filterProps=d,x.propTypes={},x.filterProps=p},4334:function(e,t,n){"use strict";n.d(t,{DW:function(){return a},Jq:function(){return s}});var r=n(4942),i=n(1862),o=n(2059);function a(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function s(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:a(e,n)||i,t&&(r=t(r,i,e)),r}t.ZP=function(e){var t=e.prop,n=e.cssProperty,u=void 0===n?e.prop:n,c=e.themeKey,l=e.transform,f=function(e){if(null==e[t])return null;var n=e[t],f=a(e.theme,c)||{};return(0,o.k9)(e,n,(function(e){var n=s(f,l,e);return e===n&&"string"===typeof e&&(n=s(f,l,"".concat(t).concat("default"===e?"":(0,i.Z)(e)),e)),!1===u?n:(0,r.Z)({},u,n)}))};return f.propTypes={},f.filterProps=[t],f}},4183:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(4480),i=n(4334),o=n(7482);var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:o;return(0,i.Z)(e)}},9411:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1420);function i(e){var t=e.theme,n=e.name,i=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,i):i}},2947:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9411),i=n(4440);function o(e){var t=e.props,n=e.name,o=e.defaultTheme,a=(0,i.Z)(o);return(0,r.Z)({theme:a,name:n,props:t})}},2146:function(e,t,n){"use strict";var r=n(3675);t.Z=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=(0,r.Z)();return n&&(e=n,0!==Object.keys(e).length)?n:t}},4749:function(e,t){"use strict";var n=function(e){return e},r=function(){var e=n;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=n}}}();t.Z=r},1862:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6488);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},136:function(e,t,n){"use strict";function r(e,t,n){var r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){return r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},4478:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a2&&void 0!==arguments[2]?arguments[2]:{clone:!0},s=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=i(t[r])?o(t[r]):t[r]:s[r]=t[r])})),s}},6488:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n2&&void 0!==arguments[2]?arguments[2]:"Mui",o=i[t];return o?"".concat(n,"-").concat(o):"".concat(r.Z.generate(e),"-").concat(t)}},3580:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(817);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i={};return t.forEach((function(t){i[t]=(0,r.Z)(e,t,n)})),i}},5418:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},4385:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(5418);function i(e){return(0,r.Z)(e).defaultView||window}},1420:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7462);function i(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(o){if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.Z)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){var a=e[o]||{},s=t[o];n[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[o]=(0,r.Z)({},s),Object.keys(a).forEach((function(e){n[o][e]=i(a[e],s[e])}))):n[o]=s:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},7581:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},7277:function(e,t,n){"use strict";var r=n(4519),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=i},9522:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4519),i=n(7277);function o(e){var t=r.useRef(e);return(0,i.Z)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},3313:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4519),i=n(7581);function o(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),i=new Array(123),o=0;o<64;)i[r[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;n.encode=function(e,t,n){for(var i,o=null,a=[],s=0,u=0;t>2],i=(3&c)<<4,u=1;break;case 1:a[s++]=r[i|c>>4],i=(15&c)<<2,u=2;break;case 2:a[s++]=r[i|c>>6],a[s++]=r[63&c],u=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=r[i],a[s++]=61,1===u&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";n.decode=function(e,t,n){for(var r,o=n,s=0,u=0;u1)break;if(void 0===(c=i[c]))throw Error(a);switch(s){case 0:r=c,s=1;break;case 1:t[n++]=r<<2|(48&c)>>4,r=c,s=2;break;case 2:t[n++]=(15&r)<<4|(60&c)>>2,r=c,s=3;break;case 3:t[n++]=(3&r)<<6|c,s=0}}if(1===s)throw Error(a);return n-o},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},2993:function(e){"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var o=Math.floor(Math.log(t)/Math.LN2);e((i<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,n,r)}}function a(e,t,n){var r=e(t,n),i=2*(r>>31)+1,o=r>>>23&255,a=8388607&r;return 255===o?a?NaN:i*(1/0):0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=a.bind(null,i),e.readFloatBE=a.bind(null,o)}(),"undefined"!==typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function o(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?i:o,e.writeDoubleBE=r?o:i,e.readDoubleLE=r?a:s,e.readDoubleBE=r?s:a}():function(){function t(e,t,n,r,i,o){var a=r<0?1:0;if(a&&(r=-r),0===r)e(0,i,o+t),e(1/r>0?0:2147483648,i,o+n);else if(isNaN(r))e(0,i,o+t),e(2146959360,i,o+n);else if(r>17976931348623157e292)e(0,i,o+t),e((a<<31|2146435072)>>>0,i,o+n);else{var s;if(r<22250738585072014e-324)e((s=r/5e-324)>>>0,i,o+t),e((a<<31|s/4294967296)>>>0,i,o+n);else{var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(s=r*Math.pow(2,-u))>>>0,i,o+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,i,o+n)}}}function a(e,t,n,r,i){var o=e(r,i+t),a=e(r,i+n),s=2*(a>>31)+1,u=a>>>20&2047,c=4294967296*(1048575&a)+o;return 2047===u?c?NaN:s*(1/0):0===u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=a.bind(null,i,0,4),e.readDoubleBE=a.bind(null,o,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},5815:function(module){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},6881:function(e){"use strict";e.exports=function(e,t,n){var r=n||8192,i=r>>>1,o=null,a=r;return function(n){if(n<1||n>i)return e(n);a+n>r&&(o=e(r),a=0);var s=t.call(o,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},481:function(e,t){"use strict";var n=t;n.length=function(e){for(var t=0,n=0,r=0;r191&&r<224?o[a++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(r>>10),o[a++]=56320+(1023&r)):o[a++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,o.slice(0,a))),i.join("")):String.fromCharCode.apply(String,o.slice(0,a))},n.write=function(e,t,n){for(var r,i,o=n,a=0;a>6|192,t[n++]=63&r|128):55296===(64512&r)&&56320===(64512&(i=e.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&i),++a,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-o}},3999:function(e,t,n){"use strict";var r=n(861).default,i=n(7061).default,o=n(4704).default,a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.embedInline=t.embed=void 0;var s=n(6060),u=n(9811),c=n(9314);function l(e,t){var n;return a(this,void 0,void 0,i().mark((function r(){var a,s,c,l,f;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.filter((function(e){return"value"in e})).map((function(e){var t;return Array.from((null===(t=e.value)||void 0===t?void 0:t.matchAll(/\burl\((.+?)\)/g))||[])})).flat().map((function(e){return(0,u.default)(e[1])})).map((function(e){return t(e,"data-uri").then((function(t){return[e,t]}))})),r.t0=Map,r.next=4,Promise.all(a);case 4:r.t1=r.sent,s=new r.t0(r.t1),c=o(e),r.prev=7,c.s();case 9:if((l=c.n()).done){r.next=16;break}if("value"in(f=l.value)){r.next=13;break}return r.abrupt("continue",14);case 13:f.value=null===(n=f.value)||void 0===n?void 0:n.replace(/\burl\((.+?)\)/g,(function(e,t){var n=s.get((0,u.default)(t));return n?"url(".concat(n,")"):e}));case 14:r.next=9;break;case 16:r.next=21;break;case 18:r.prev=18,r.t2=r.catch(7),c.e(r.t2);case 21:return r.prev=21,c.f(),r.finish(21);case 24:case"end":return r.stop()}}),r,null,[[7,18,21,24]])})))}function f(e,t){return a(this,void 0,void 0,i().mark((function n(){var r,o,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=(0,u.default)(e.import.replace(/url\((.*)\)/,"$1")),n.next=3,t(r,"text");case 3:if(o=n.sent){n.next=6;break}return n.abrupt("return",[e]);case 6:return a=(0,s.parse)(o).stylesheet.rules,n.next=9,v(a,(0,c.default)(r,t));case 9:return n.abrupt("return",a);case 10:case"end":return n.stop()}}),n)})))}function d(e,t){return a(this,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all(e.map((function(e){return e.declarations})).filter((function(e){return!!e})).map((function(e){return l(e,t)})));case 2:case"end":return n.stop()}}),n)})))}function p(e,t){return a(this,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all(e.filter((function(e){return"media"===e.type})).map((function(e){return d(e.rules,t)})));case 2:case"end":return n.stop()}}),n)})))}function h(e,t){return a(this,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all(e.map((function(n,i){if("import"===n.type)return f(n,t).then((function(t){return e.splice.apply(e,[i,1].concat(r(t)))}))})));case 2:case"end":return n.stop()}}),n)})))}function v(e,t){return a(this,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([d(e,t),p(e,t)]);case 2:return n.next=4,h(e,t);case 4:case"end":return n.stop()}}),n)})))}t.embed=function(e,t,n){return a(this,void 0,void 0,i().mark((function r(){var o;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=(0,s.parse)(e,{source:n}),r.next=3,v(o.stylesheet.rules,(0,c.default)(n,t));case 3:return r.abrupt("return",(0,s.stringify)(o));case 4:case"end":return r.stop()}}),r)})))},t.embedInline=function(e,t){return a(this,void 0,void 0,i().mark((function n(){var r;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=(0,s.parse)("* { ".concat(e," }"))).stylesheet.rules[0].selectors=[],n.next=4,d(r.stylesheet.rules,t);case 4:return n.abrupt("return",(0,s.stringify)(r).replace(/^\s*\{\s*|\s*}\s*$/g,""));case 5:case"end":return n.stop()}}),n)})))}},9962:function(e,t,n){"use strict";var r=n(861).default,i=n(7061).default,o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapRead=void 0;var a=n(3999),s=n(9314);function u(e,t){return o(this,void 0,void 0,i().mark((function n(){var r,o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.hasAttribute("src")){n.next=2;break}return n.abrupt("return");case 2:return r=e.getAttribute("src"),n.next=5,t(r,"data-uri");case 5:if(o=n.sent){n.next=8;break}return n.abrupt("return");case 8:e.setAttribute("src",o);case 9:case"end":return n.stop()}}),n)})))}function c(e,t){return o(this,void 0,void 0,i().mark((function n(){var r,o,a,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.hasAttribute("srcset")){n.next=2;break}return n.abrupt("return");case 2:return r=e.getAttribute("srcset"),o=r.split(",").map((function(e){return e.match(/\S+/)[0]})).map((function(e){return t(e,"data-uri").then((function(t){return[e,t]}))})),n.t0=Map,n.next=7,Promise.all(o);case 7:n.t1=n.sent,a=new n.t0(n.t1),s=r.split(",").map((function(e){return e.replace(/\S+/,(function(e){return a.get(e)||e}))})).join(","),e.setAttribute("srcset",s);case 11:case"end":return n.stop()}}),n)})))}function l(e,t){return o(this,void 0,void 0,i().mark((function n(){var r,o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.hasAttribute("src")){n.next=2;break}return n.abrupt("return");case 2:return r=e.getAttribute("src"),n.next=5,t(r,"text");case 5:if(o=n.sent){n.next=8;break}return n.abrupt("return");case 8:e.removeAttribute("src"),e.textContent=o;case 10:case"end":return n.stop()}}),n)})))}function f(e,t){return o(this,void 0,void 0,i().mark((function n(){var r,o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.hasAttribute("src")){n.next=2;break}return n.abrupt("return");case 2:return r=e.getAttribute("src"),n.next=5,t(r,"text");case 5:if(o=n.sent){n.next=8;break}return n.abrupt("return");case 8:e.removeAttribute("src"),e.setAttribute("srcdoc",o);case 10:case"end":return n.stop()}}),n)})))}function d(e,t){return o(this,void 0,void 0,i().mark((function n(){var r,o,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.hasAttribute("href")){n.next=2;break}return n.abrupt("return");case 2:return r=e.getAttribute("href"),n.next=5,t(r,"text");case 5:if(o=n.sent){n.next=8;break}return n.abrupt("return");case 8:return s=e.ownerDocument.createElement("style"),n.next=11,a.embed(o,t,r);case 11:s.textContent=n.sent,e.replaceWith(s);case 13:case"end":return n.stop()}}),n)})))}function p(e,t){return o(this,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.textContent.match(/\burl\s*\(/)){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,a.embed(e.textContent,t);case 4:e.textContent=n.sent;case 5:case"end":return n.stop()}}),n)})))}function h(e,t){return o(this,void 0,void 0,i().mark((function n(){var r,o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((r=e.getAttribute("style")).match(/\burl\s*\(/)){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,a.embedInline(r,t);case 5:o=n.sent,e.setAttribute("style",o);case 7:case"end":return n.stop()}}),n)})))}Object.defineProperty(t,"wrapRead",{enumerable:!0,get:function(){return s.default}}),t.default=function(e,t){return o(this,void 0,void 0,i().mark((function n(){var o,a,s,v,m,y,b;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=Array.from(e.querySelectorAll("*[src]")).filter((function(e){return!["IFRAME","SCRIPT"].includes(e.tagName.toUpperCase())})),a=Array.from(e.querySelectorAll("*[srcset]")),s=Array.from(e.getElementsByTagName("script")),v=Array.from(e.querySelectorAll('link[rel="stylesheet"]')),m=Array.from(e.getElementsByTagName("iframe")),y=Array.from(e.getElementsByTagName("style")),b=Array.from(e.querySelectorAll('[style*="url"]')),n.next=9,Promise.all([].concat(r(o.map((function(e){return u(e,t)}))),r(a.map((function(e){return c(e,t)}))),r(s.map((function(e){return l(e,t)}))),r(m.map((function(e){return f(e,t)}))),r(v.map((function(e){return d(e,t)}))),r(y.map((function(e){return p(e,t)}))),r(b.map((function(e){return h(e,t)})))));case 9:case"end":return n.stop()}}),n)})))}},9811:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("'"!==e[0]&&'"'!==e[0])return e;var t=e[0],n="'"===t;return e.substring(1,e.length-1).replace(/\\\\/g,"\\").replace(n?/\\'/g:/\\"/g,t)}},9314:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!e.match(/.\//))return t;var n=e.replace(/[^/]+$/,"");return function(e,r){return t(function(e,t){return t.match(/^\w+:\/\//)?t:t.startsWith("/")?(e.match(/^\w+:\/\//)?e.replace(/^(\w+:\/\/[^/]+).*/,"$1"):"")+t:e+t}(n,e),r)}}},6787:function(e,t,n){e.exports=n(4034)},3866:function(e,t,n){"use strict";var r=n(2865),i=n(7520),o=n(1548),a=n(5136),s=n(7387),u=n(1279),c=n(660),l=n(7993),f=n(1488),d=n(4011);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,v=e.headers,m=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(g+":"+w)}var x=s(e.baseURL,e.url);function k(){if(b){var r="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,o={data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),y()}),(function(e){n(e),y()}),o),b=null}}if(b.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(n(l("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){n(l("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},r.isStandardBrowserEnv()){var _=(e.withCredentials||c(x))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;_&&(v[e.xsrfHeaderName]=_)}"setRequestHeader"in b&&r.forEach(v,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),m&&"json"!==m&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new d("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),b.send(h)}))}},4034:function(e,t,n){"use strict";var r=n(2865),i=n(3198),o=n(9988),a=n(2889);var s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(1488));s.Axios=o,s.Cancel=n(4011),s.CancelToken=n(2518),s.isCancel=n(6788),s.VERSION=n(5642).version,s.all=function(e){return Promise.all(e)},s.spread=n(7974),s.isAxiosError=n(8391),e.exports=s,e.exports.default=s},4011:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},2518:function(e,t,n){"use strict";var r=n(4011);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},5642:function(e){e.exports={version:"0.25.0"}},3198:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},7974:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},2307:function(e,t,n){"use strict";var r=n(5642).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],u=void 0===s||a(s,o,e);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},2865:function(e,t,n){"use strict";var r=n(3198),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function a(e){return"undefined"===typeof e}function s(e){return"[object ArrayBuffer]"===i.call(e)}function u(e){return null!==e&&"object"===typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function f(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n0||e===t?t:t-1}function w(e){for(var t,n,r=1,i=e.length,o=e[0]+"";rc^n?1:-1;for(s=(u=i.length)<(c=o.length)?u:c,a=0;ao[a]^n?1:-1;return u==c?0:u>c^n?1:-1}function k(e,t,n){return(e=F(e))>=t&&e<=n}function _(e){return"[object Array]"==Object.prototype.toString.call(e)}function S(e,t,n){for(var r,i,o=[0],a=0,s=e.length;an-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}function E(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function C(e,t){var n,r;if(t<0){for(r="0.";++t;r+="0");e=r+e}else if(++t>(n=e.length)){for(r="0",t-=n;--t;r+="0");e+=r}else t15&&q(i,f,e),c=!1):m.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1,p=U(p,10,t,m.s)}else{if(e instanceof L)return m.s=e.s,m.e=e.e,m.c=(e=e.c)?e.slice():e,void(i=0);if((c="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,s=e;s>=10;s/=10,o++);return m.e=o,m.c=[e],void(i=0)}p=e+""}else{if(!a.test(p=e+""))return r(m,p,c);m.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1}}for((o=p.indexOf("."))>-1&&(p=p.replace(".","")),(s=p.search(/e/i))>0?(o<0&&(o=s),o+=+p.slice(s+1),p=p.substring(0,s)):o<0&&(o=p.length),s=0;48===p.charCodeAt(s);s++);for(l=p.length;48===p.charCodeAt(--l););if(p=p.slice(s,l+1))if(l=p.length,c&&R&&l>15&&(e>v||e!==u(e))&&q(i,f,m.s*e),(o=o-s-1)>Z)m.c=m.e=null;else if(o=0&&(s=N,N=0,e=e.replace(".",""),c=(f=new L(r)).pow(e.length-p),N=s,f.c=S(C(w(c.c),c.e),10,t),f.e=f.c.length),a=s=(l=S(e,r,t)).length;0==l[--s];l.pop());if(!l[0])return"0";if(p<0?--a:(c.c=l,c.e=a,c.s=i,l=(c=n(c,f,h,v,t)).c,u=c.r,a=c.e),p=l[o=a+h+1],s=t/2,u=u||o<0||null!=l[o+1],u=v<4?(null!=p||u)&&(0==v||v==(c.s<0?3:2)):p>s||p==s&&(4==v||u||6==v&&1&l[o-1]||v==(c.s<0?8:7)),o<1||!l[0])e=u?C("1",-h):"0";else{if(l.length=o,u)for(--t;++l[--o]>t;)l[o]=0,o||(++a,l=[1].concat(l));for(s=l.length;!l[--s];);for(p=0,e="";p<=s;e+=d.charAt(l[p++]));e=C(e,a)}return e}function H(e,t,n,r){var i,o,a,s,u;if(n=null!=n&&I(n,0,8,r,l)?0|n:P,!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)u=w(e.c),u=19==r||24==r&&a<=O?E(u,a):C(u,a);else if(o=(e=G(new L(e),t,n)).e,s=(u=w(e.c)).length,19==r||24==r&&(t<=o||o<=O)){for(;ss){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-s)>0)for(o+1==s&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function V(e,t){var n,r,i=0;for(_(e[0])&&(e=e[0]),n=new L(e[0]);++in||e!=F(e))&&q(r,(i||"decimal places")+(en?" out of range":" not an integer"),e),!0}function W(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*h-1)>Z?e.c=e.e=null:n=10;c/=10,i++);if((o=t-i)<0)o+=h,a=t,d=(l=v[f=0])/y[i-a-1]%10|0;else if((f=s((o+1)/h))>=v.length){if(!r)break e;for(;v.length<=f;v.push(0));l=d=0,i=1,a=(o%=h)-h+1}else{for(l=c=v[f],i=1;c>=10;c/=10,i++);d=(a=(o%=h)-h+i)<0?0:l/y[i-a-1]%10|0}if(r=r||t<0||null!=v[f+1]||(a<0?l:l%y[i-a-1]),r=n<4?(d||r)&&(0==n||n==(e.s<0?3:2)):d>5||5==d&&(4==n||r||6==n&&(o>0?a>0?l/y[i-a]:0:v[f-1])%10&1||n==(e.s<0?8:7)),t<1||!v[0])return v.length=0,r?(t-=e.e+1,v[0]=y[(h-t%h)%h],e.e=-t||0):v[0]=e.e=0,e;if(0==o?(v.length=f,c=1,f--):(v.length=f+1,c=y[h-o],v[f]=a>0?u(l/y[i-a]%y[a])*c:0),r)for(;;){if(0==f){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=c,c=1;a>=10;a/=10,c++);o!=c&&(e.e++,v[0]==p&&(v[0]=1));break}if(v[f]+=c,v[f]!=p)break;v[f--]=0,c=1}for(o=v.length;0===v[--o];v.pop());}e.e>Z?e.c=e.e=null:e.en)return null!=(e=o[n++])};return s(t="DECIMAL_PLACES")&&I(e,0,b,2,t)&&(T=0|e),r[t]=T,s(t="ROUNDING_MODE")&&I(e,0,8,2,t)&&(P=0|e),r[t]=P,s(t="EXPONENTIAL_AT")&&(_(e)?I(e[0],-b,0,2,t)&&I(e[1],0,b,2,t)&&(O=0|e[0],j=0|e[1]):I(e,-b,b,2,t)&&(O=-(j=0|(e<0?-e:e)))),r[t]=[O,j],s(t="RANGE")&&(_(e)?I(e[0],-b,-1,2,t)&&I(e[1],1,b,2,t)&&(B=0|e[0],Z=0|e[1]):I(e,-b,b,2,t)&&(0|e?B=-(Z=0|(e<0?-e:e)):R&&q(2,t+" cannot be zero",e))),r[t]=[B,Z],s(t="ERRORS")&&(e===!!e||1===e||0===e?(i=0,I=(R=!!e)?K:k):R&&q(2,t+c,e)),r[t]=R,s(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?!(e="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?M=!0:R?q(2,"crypto unavailable",e?void 0:crypto):M=!1:M=!1:R&&q(2,t+c,e)),r[t]=M,s(t="MODULO_MODE")&&I(e,0,9,2,t)&&(D=0|e),r[t]=D,s(t="POW_PRECISION")&&I(e,0,b,2,t)&&(N=0|e),r[t]=N,s(t="FORMAT")&&("object"==typeof e?z=e:R&&q(2,t+" not an object",e)),r[t]=z,r},L.max=function(){return V(arguments,o.lt)},L.min=function(){return V(arguments,o.gt)},L.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return u(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var n,r,i,o,a,c=0,l=[],f=new L(A);if(e=null!=e&&I(e,0,b,14)?0|e:T,o=s(e/h),M)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[c]=r[0],n[c+1]=r[1]):(l.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(n=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(n,c):(l.push(a%1e14),c+=7);c=o/7}else M=!1,R&&q(14,"crypto unavailable",crypto);if(!M)for(;c=10;a/=10,c++);cr?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,o,a,s){var c,l,f,d,v,m,y,b,w,x,k,_,S,E,C,F,A,T=r.s==i.s?1:-1,P=r.c,O=i.c;if(!P||!P[0]||!O||!O[0])return new L(r.s&&i.s&&(P?!O||P[0]!=O[0]:O)?P&&0==P[0]||!O?0*T:T/0:NaN);for(w=(b=new L(T)).c=[],T=o+(l=r.e-i.e)+1,s||(s=p,l=g(r.e/h)-g(i.e/h),T=T/h|0),f=0;O[f]==(P[f]||0);f++);if(O[f]>(P[f]||0)&&l--,T<0)w.push(1),d=!0;else{for(E=P.length,F=O.length,f=0,T+=2,(v=u(s/(O[0]+1)))>1&&(O=e(O,v,s),P=e(P,v,s),F=O.length,E=P.length),S=F,k=(x=P.slice(0,F)).length;k=s/2&&C++;do{if(v=0,(c=t(O,x,F,k))<0){if(_=x[0],F!=k&&(_=_*s+(x[1]||0)),(v=u(_/C))>1)for(v>=s&&(v=s-1),y=(m=e(O,v,s)).length,k=x.length;1==t(m,x,y,k);)v--,n(m,F=10;T/=10,f++);G(b,o+(b.e=f+l*h-1)+1,a,d)}else b.e=l,b.r=+d;return b}}(),r=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,o=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,s,u,c){var l,f=u?s:s.replace(o,"");if(r.test(f))a.s=isNaN(f)?null:f<0?-1:1;else{if(!u&&(f=f.replace(e,(function(e,t,n){return l="x"==(n=n.toLowerCase())?16:"b"==n?2:8,c&&c!=l?e:t})),c&&(l=c,f=f.replace(t,"$1").replace(n,"0.$1")),s!=f))return new L(f,l);R&&q(i,"not a"+(c?" base "+c:"")+" number",s),a.s=null}a.c=a.e=null,i=0}}(),o.absoluteValue=o.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},o.ceil=function(){return G(new L(this),this.e+1,2)},o.comparedTo=o.cmp=function(e,t){return i=1,x(this,new L(e,t))},o.decimalPlaces=o.dp=function(){var e,t,n=this.c;if(!n)return null;if(e=((t=n.length-1)-g(this.e/h))*h,t=n[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},o.dividedBy=o.div=function(e,t){return i=3,n(this,new L(e,t),T,P)},o.dividedToIntegerBy=o.divToInt=function(e,t){return i=4,n(this,new L(e,t),0,1)},o.equals=o.eq=function(e,t){return i=5,0===x(this,new L(e,t))},o.floor=function(){return G(new L(this),this.e+1,3)},o.greaterThan=o.gt=function(e,t){return i=6,x(this,new L(e,t))>0},o.greaterThanOrEqualTo=o.gte=function(e,t){return i=7,1===(t=x(this,new L(e,t)))||0===t},o.isFinite=function(){return!!this.c},o.isInteger=o.isInt=function(){return!!this.c&&g(this.e/h)>this.c.length-2},o.isNaN=function(){return!this.s},o.isNegative=o.isNeg=function(){return this.s<0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.lessThan=o.lt=function(e,t){return i=8,x(this,new L(e,t))<0},o.lessThanOrEqualTo=o.lte=function(e,t){return i=9,-1===(t=x(this,new L(e,t)))||0===t},o.minus=o.sub=function(e,t){var n,r,o,a,s=this,u=s.s;if(i=10,t=(e=new L(e,t)).s,!u||!t)return new L(NaN);if(u!=t)return e.s=-t,s.plus(e);var c=s.e/h,l=e.e/h,f=s.c,d=e.c;if(!c||!l){if(!f||!d)return f?(e.s=-t,e):new L(d?s:NaN);if(!f[0]||!d[0])return d[0]?(e.s=-t,e):new L(f[0]?s:3==P?-0:0)}if(c=g(c),l=g(l),f=f.slice(),u=c-l){for((a=u<0)?(u=-u,o=f):(l=c,o=d),o.reverse(),t=u;t--;o.push(0));o.reverse()}else for(r=(a=(u=f.length)<(t=d.length))?u:t,u=t=0;t0)for(;t--;f[n++]=0);for(t=p-1;r>u;){if(f[--r]0?(s=a,n=c):(o=-o,n=u),n.reverse();o--;n.push(0));n.reverse()}for((o=u.length)-(t=c.length)<0&&(n=c,c=u,u=n,t=o),o=0;t;)o=(u[--t]=u[t]+c[t]+o)/p|0,u[t]=p===u[t]?0:u[t]%p;return o&&(u=[o].concat(u),++s),W(e,u,s)},o.precision=o.sd=function(e){var t,n,r=this,i=r.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(R&&q(13,"argument"+c,e),e!=!!e&&(e=null)),!i)return null;if(t=(n=i.length-1)*h+1,n=i[n]){for(;n%10==0;n/=10,t--);for(n=i[0];n>=10;n/=10,t++);}return e&&r.e+1>t&&(t=r.e+1),t},o.round=function(e,t){var n=new L(this);return(null==e||I(e,0,b,15))&&G(n,~~e+this.e+1,null!=t&&I(t,0,8,15,l)?0|t:P),n},o.shift=function(e){var t=this;return I(e,-v,v,16,"argument")?t.times("1e"+F(e)):new L(t.c&&t.c[0]&&(e<-v||e>v)?t.s*(e<0?0:1/0):t)},o.squareRoot=o.sqrt=function(){var e,t,r,i,o,a=this,s=a.c,u=a.s,c=a.e,l=T+4,f=new L("0.5");if(1!==u||!s||!s[0])return new L(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(u=Math.sqrt(+a))||u==1/0?(((t=w(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(t),c=g((c+1)/2)-(c<0||c%2),r=new L(t=u==1/0?"1e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new L(u+""),r.c[0])for((u=(c=r.e)+l)<3&&(u=0);;)if(o=r,r=f.times(o.plus(n(a,o,l,1))),w(o.c).slice(0,u)===(t=w(r.c)).slice(0,u)){if(r.e=0;){for(n=0,v=S[o]%x,m=S[o]/x|0,a=o+(s=c);a>o;)n=((l=v*(l=_[--s]%x)+(u=m*l+(f=_[s]/x|0)*v)%x*x+b[a]+n)/w|0)+(u/x|0)+m*f,b[a--]=l%w;b[a]=n}return n?++r:b.splice(0,1),W(e,b,r)},o.toDigits=function(e,t){var n=new L(this);return e=null!=e&&I(e,1,b,18,"precision")?0|e:null,t=null!=t&&I(t,0,8,18,l)?0|t:P,e?G(n,e,t):n},o.toExponential=function(e,t){return H(this,null!=e&&I(e,0,b,19)?1+~~e:null,t,19)},o.toFixed=function(e,t){return H(this,null!=e&&I(e,0,b,20)?~~e+this.e+1:null,t,20)},o.toFormat=function(e,t){var n=H(this,null!=e&&I(e,0,b,21)?~~e+this.e+1:null,t,21);if(this.c){var r,i=n.split("."),o=+z.groupSize,a=+z.secondaryGroupSize,s=z.groupSeparator,u=i[0],c=i[1],l=this.s<0,f=l?u.slice(1):u,d=f.length;if(a&&(r=o,o=a,a=r,d-=r),o>0&&d>0){for(r=d%o||o,u=f.substr(0,r);r0&&(u+=s+f.slice(r)),l&&(u="-"+u)}n=c?u+z.decimalSeparator+((a=+z.fractionGroupSize)?c.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+z.fractionGroupSeparator):c):u}return n},o.toFraction=function(e){var t,r,i,o,a,s,u,c,l,f=R,d=this,p=d.c,v=new L(A),y=r=new L(A),b=u=new L(A);if(null!=e&&(R=!1,s=new L(e),R=f,(f=s.isInt())&&!s.lt(A)||(R&&q(22,"max denominator "+(f?"out of range":"not an integer"),e),e=!f&&s.c&&G(s,s.e+1,1).gte(A)?s:null)),!p)return d.toString();for(l=w(p),o=v.e=l.length-d.e-1,v.c[0]=m[(a=o%h)<0?h+a:a],e=!e||s.cmp(v)>0?o>0?v:y:s,a=Z,Z=1/0,s=new L(l),u.c[0]=0;c=n(s,v,0,1),1!=(i=r.plus(c.times(b))).cmp(e);)r=b,b=i,y=u.plus(c.times(i=y)),u=i,v=s.minus(c.times(i=v)),s=i;return i=n(e.minus(r),b,0,1),u=u.plus(i.times(y)),r=r.plus(i.times(b)),u.s=y.s=d.s,t=n(y,b,o*=2,P).minus(d).abs().cmp(n(u,r,o,P).minus(d).abs())<1?[y.toString(),b.toString()]:[u.toString(),r.toString()],Z=a,t},o.toNumber=function(){return+this},o.toPower=o.pow=function(e,t){var n,r,o,a=u(e<0?-e:+e),c=this;if(null!=t&&(i=23,t=new L(t)),!I(e,-v,v,23,"exponent")&&(!isFinite(e)||a>v&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return n=Math.pow(+c,e),new L(t?n%t:n);for(t?e>1&&c.gt(A)&&c.isInt()&&t.gt(A)&&t.isInt()?c=c.mod(t):(o=t,t=null):N&&(n=s(N/h+2)),r=new L(A);;){if(a%2){if(!(r=r.times(c)).c)break;n?r.c.length>n&&(r.c.length=n):t&&(r=r.mod(t))}if(!(a=u(a/2)))break;c=c.times(c),n?c.c&&c.c.length>n&&(c.c.length=n):t&&(c=c.mod(t))}return t?r:(e<0&&(r=A.div(r)),o?r.mod(o):n?G(r,N,P):r)},o.toPrecision=function(e,t){return H(this,null!=e&&I(e,1,b,24,"precision")?0|e:null,t,24)},o.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(t=w(n.c),t=null!=e&&I(e,2,64,25,"base")?U(C(t,i),0|e,10,r):i<=O||i>=j?E(t,i):C(t,i),r<0&&n.c[0]&&(t="-"+t)),t},o.truncated=o.trunc=function(){return G(new L(this),this.e+1,1)},o.valueOf=o.toJSON=function(){var e,t=this,n=t.e;return null===n?t.toString():(e=w(t.c),e=n<=O||n>=j?E(e,n):C(e,n),t.s<0?"-"+e:e)},o.isBigNumber=!0,null!=t&&L.config(t),L}(),o.default=o.BigNumber=o,void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},2226:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t>>8^255&h^99,r[n]=h,i[h]=n;var v=e[n],m=e[v],y=e[m],b=257*e[h]^16843008*h;a[n]=b<<24|b>>>8,s[n]=b<<16|b>>>16,u[n]=b<<8|b>>>24,c[n]=b,b=16843009*y^65537*m^257*v^16843008*n,l[h]=b<<24|b>>>8,f[h]=b<<16|b>>>16,d[h]=b<<8|b>>>24,p[h]=b,n?(n=v^e[e[e[y^v]]],o^=e[e[o]]):n=o=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a6&&a%n==4&&(c=r[c>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c]):(c=r[(c=c<<8|c>>>24)>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c],c^=h[a/n|0]<<24),o[a]=o[a-n]^c);for(var s=this._invKeySchedule=[],u=0;u>>24]]^f[r[c>>>16&255]]^d[r[c>>>8&255]]^p[r[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,u,c,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,f,d,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var u=this._nRounds,c=e[t]^n[0],l=e[t+1]^n[1],f=e[t+2]^n[2],d=e[t+3]^n[3],p=4,h=1;h>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&d]^n[p++],m=r[l>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&c]^n[p++],y=r[f>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&l]^n[p++],b=r[d>>>24]^i[c>>>16&255]^o[l>>>8&255]^a[255&f]^n[p++];c=v,l=m,f=y,d=b}v=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^n[p++],m=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[p++],y=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^n[p++],b=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^n[p++],e[t]=v,e[t+1]=m,e[t+2]=y,e[t+3]=b},keySize:8});e.AES=t._createHelper(v)}(),o.AES)}()},6909:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(5777),n(4082),void(o.lib.Cipher||function(e){var t=o,n=t.lib,r=n.Base,i=n.WordArray,a=n.BufferedBlockAlgorithm,s=t.enc,u=(s.Utf8,s.Base64),c=t.algo.EvpKDF,l=n.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?g:y}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),f=(n.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),d=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=f.CBC=function(){var t=d.extend();function n(t,n,r){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},v=(n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:p,padding:h}),reset:function(){var e;l.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(u)},parse:function(e){var t,n=u.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},y=n.SerializableCipher=r.extend({cfg:r.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=i.random(8));var o=c.create({keySize:t+n}).compute(e,r),a=i.create(o.words.slice(t),4*n);return o.sigBytes=4*t,v.create({key:o,iv:a,salt:r})}},g=n.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:b}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var o=y.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,y.decrypt.call(this,e,t,i.key,r)}})}()))}()},5777:function(e,t,n){e.exports=function(){var e=e||function(e,t){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(2480)}catch(m){}var i=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},u=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=u.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},d=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},p=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},h=s.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*u,o);if(u){for(var f=0;f>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;oi&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,u=a.words,c=0;c>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],p=e[t+2],h=e[t+3],v=e[t+4],m=e[t+5],y=e[t+6],b=e[t+7],g=e[t+8],w=e[t+9],x=e[t+10],k=e[t+11],_=e[t+12],S=e[t+13],E=e[t+14],C=e[t+15],F=o[0],A=o[1],T=o[2],P=o[3];F=c(F,A,T,P,a,7,s[0]),P=c(P,F,A,T,u,12,s[1]),T=c(T,P,F,A,p,17,s[2]),A=c(A,T,P,F,h,22,s[3]),F=c(F,A,T,P,v,7,s[4]),P=c(P,F,A,T,m,12,s[5]),T=c(T,P,F,A,y,17,s[6]),A=c(A,T,P,F,b,22,s[7]),F=c(F,A,T,P,g,7,s[8]),P=c(P,F,A,T,w,12,s[9]),T=c(T,P,F,A,x,17,s[10]),A=c(A,T,P,F,k,22,s[11]),F=c(F,A,T,P,_,7,s[12]),P=c(P,F,A,T,S,12,s[13]),T=c(T,P,F,A,E,17,s[14]),F=l(F,A=c(A,T,P,F,C,22,s[15]),T,P,u,5,s[16]),P=l(P,F,A,T,y,9,s[17]),T=l(T,P,F,A,k,14,s[18]),A=l(A,T,P,F,a,20,s[19]),F=l(F,A,T,P,m,5,s[20]),P=l(P,F,A,T,x,9,s[21]),T=l(T,P,F,A,C,14,s[22]),A=l(A,T,P,F,v,20,s[23]),F=l(F,A,T,P,w,5,s[24]),P=l(P,F,A,T,E,9,s[25]),T=l(T,P,F,A,h,14,s[26]),A=l(A,T,P,F,g,20,s[27]),F=l(F,A,T,P,S,5,s[28]),P=l(P,F,A,T,p,9,s[29]),T=l(T,P,F,A,b,14,s[30]),F=f(F,A=l(A,T,P,F,_,20,s[31]),T,P,m,4,s[32]),P=f(P,F,A,T,g,11,s[33]),T=f(T,P,F,A,k,16,s[34]),A=f(A,T,P,F,E,23,s[35]),F=f(F,A,T,P,u,4,s[36]),P=f(P,F,A,T,v,11,s[37]),T=f(T,P,F,A,b,16,s[38]),A=f(A,T,P,F,x,23,s[39]),F=f(F,A,T,P,S,4,s[40]),P=f(P,F,A,T,a,11,s[41]),T=f(T,P,F,A,h,16,s[42]),A=f(A,T,P,F,y,23,s[43]),F=f(F,A,T,P,w,4,s[44]),P=f(P,F,A,T,_,11,s[45]),T=f(T,P,F,A,C,16,s[46]),F=d(F,A=f(A,T,P,F,p,23,s[47]),T,P,a,6,s[48]),P=d(P,F,A,T,b,10,s[49]),T=d(T,P,F,A,E,15,s[50]),A=d(A,T,P,F,m,21,s[51]),F=d(F,A,T,P,_,6,s[52]),P=d(P,F,A,T,h,10,s[53]),T=d(T,P,F,A,x,15,s[54]),A=d(A,T,P,F,u,21,s[55]),F=d(F,A,T,P,g,6,s[56]),P=d(P,F,A,T,C,10,s[57]),T=d(T,P,F,A,y,15,s[58]),A=d(A,T,P,F,S,21,s[59]),F=d(F,A,T,P,v,6,s[60]),P=d(P,F,A,T,k,10,s[61]),T=d(T,P,F,A,p,15,s[62]),A=d(A,T,P,F,w,21,s[63]),o[0]=o[0]+F|0,o[1]=o[1]+A|0,o[2]=o[2]+T|0,o[3]=o[3]+P|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<>>32-o)+t}function l(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),i.MD5)}()},1732:function(e,t,n){!function(t,r){var i;e.exports=(i=n(5777),function(){var e=i,t=e.lib,n=t.WordArray,r=t.Hasher,o=e.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31}var f=(r<<5|r>>>27)+u+a[c];f+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,u=s,s=o,o=i<<30|i>>>2,i=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),i.SHA1)}()},7032:function(e){"use strict";function t(e,t){for(var n in t)Object.defineProperty(e,n,{value:t[n],enumerable:!0,configurable:!0});return e}e.exports=function(e,n,r){if(!e||"string"===typeof e)throw new TypeError("Please pass an Error to err-code");r||(r={}),"object"===typeof n&&(r=n,n=""),n&&(r.code=n);try{return t(e,r)}catch(o){r.message=e.message,r.stack=e.stack;var i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(e)),t(new i,r)}}},3993:function(e,t,n){"use strict";var r=n(5775),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),v=u(n),m=0;m>6,a[u++]=128|63&o):o<55296||o>=57344?(a[u++]=224|o>>12,a[u++]=128|o>>6&63,a[u++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++r)),a[u++]=240|o>>18,a[u++]=128|o>>12&63,a[u++]=128|o>>6&63,a[u++]=128|63&o);e=a}else{if("object"!==i)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var c=[],l=[];for(r=0;r<64;++r){var f=e[r]||0;c[r]=92^f,l[r]=54^f}Sha256.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,i,o=0,a=e.length,s=this.blocks;o>2]|=e[o]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,i,o,a,s,u,c=this.h0,l=this.h1,f=this.h2,d=this.h3,p=this.h4,h=this.h5,v=this.h6,m=this.h7,y=this.blocks;for(e=16;e<64;++e)t=((i=y[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,n=((i=y[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,y[e]=y[e-16]+t+y[e-7]+n<<0;for(u=l&f,e=0;e<64;e+=4)this.first?(this.is224?(o=300032,m=(i=y[0]-1413257819)-150054599<<0,d=i+24177077<<0):(o=704751109,m=(i=y[0]-210244248)-1521486534<<0,d=i+143694565<<0),this.first=!1):(t=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),r=(o=c&l)^c&f^u,m=d+(i=m+(n=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&h^~p&v)+K[e]+y[e])<<0,d=i+(t+r)<<0),t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(a=d&c)^d&l^o,v=f+(i=v+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&p^~m&h)+K[e+1]+y[e+1])<<0,t=((f=i+(t+r)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(s=f&d)^f&c^a,h=l+(i=h+(n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&m^~v&p)+K[e+2]+y[e+2])<<0,t=((l=i+(t+r)<<0)>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),r=(u=l&f)^l&d^s,p=c+(i=p+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&v^~h&m)+K[e+3]+y[e+3])<<0,c=i+(t+r)<<0;this.h0=this.h0+c<<0,this.h1=this.h1+l<<0,this.h2=this.h2+f<<0,this.h3=this.h3+d<<0,this.h4=this.h4+p<<0,this.h5=this.h5+h<<0,this.h6=this.h6+v<<0,this.h7=this.h7+m<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,u=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(u+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),u},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,255&s),u},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},9638:function(e,t,n){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a>2,s=(3&t)<<4|n>>4,u=1>6:64,c=2>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(u=o.indexOf(e.charAt(c++))),d[l++]=t,64!==s&&(d[l++]=n),64!==u&&(d[l++]=r);return d}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function u(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(u,a),u.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},u.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new u("Deflate",e)},n.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n>>=8;return r}function i(e,t,n,i,a,l){var f,d,p=e.file,h=e.compression,v=l!==s.utf8encode,m=o.transformTo("string",l(p.name)),y=o.transformTo("string",s.utf8encode(p.name)),b=p.comment,g=o.transformTo("string",l(b)),w=o.transformTo("string",s.utf8encode(b)),x=y.length!==p.name.length,k=w.length!==b.length,_="",S="",E="",C=p.dir,F=p.date,A={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(A.crc32=e.crc32,A.compressedSize=e.compressedSize,A.uncompressedSize=e.uncompressedSize);var T=0;t&&(T|=8),v||!x&&!k||(T|=2048);var P=0,O=0;C&&(P|=16),"UNIX"===a?(O=798,P|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(p.unixPermissions,C)):(O=20,P|=function(e){return 63&(e||0)}(p.dosPermissions)),f=F.getUTCHours(),f<<=6,f|=F.getUTCMinutes(),f<<=5,f|=F.getUTCSeconds()/2,d=F.getUTCFullYear()-1980,d<<=4,d|=F.getUTCMonth()+1,d<<=5,d|=F.getUTCDate(),x&&(S=r(1,1)+r(u(m),4)+y,_+="up"+r(S.length,2)+S),k&&(E=r(1,1)+r(u(g),4)+w,_+="uc"+r(E.length,2)+E);var j="";return j+="\n\0",j+=r(T,2),j+=h.magic,j+=r(f,2),j+=r(d,2),j+=r(A.crc32,4),j+=r(A.compressedSize,4),j+=r(A.uncompressedSize,4),j+=r(m.length,2),j+=r(_.length,2),{fileRecord:c.LOCAL_FILE_HEADER+j+m+_,dirRecord:c.CENTRAL_FILE_HEADER+r(O,2)+j+r(g.length,2)+"\0\0\0\0"+r(P,4)+r(i,4)+m+_+g}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),u=e("../crc32"),c=e("../signature");function l(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(l,a),l.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},l.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),u=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new u(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n "+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),u=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function l(e,t){return new u.Promise((function(n,i){var o=[],s=e._internalType,u=e._outputType,c=e._mimeType;e.on("data",(function(e,n){o.push(e),t&&t(n)})).on("error",(function(e){o=[],i(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(u,function(e,t){var n,r=0,i=null,o=0;for(n=0;n>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,a=e.length,u=new Array(2*a);for(t=n=0;t>10&1023,u[n++]=56320|1023&i)}return u.length!==n&&(u.subarray?u=u.subarray(0,n):u.length=n),r.applyFromCharCode(u)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(c,a),c.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),u=t;a!==t.length&&(i.uint8array?(u=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(u=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(u),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(l,a),l.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function u(e,t){for(var n=0;n>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return u(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n>10&1023,c[r++]=56320|1023&i)}return u(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),u=e("./messages"),c=0,l=4,f=0,d=-2,p=-1,h=4,v=2,m=8,y=9,b=286,g=30,w=19,x=2*b+1,k=15,_=3,S=258,E=S+_+1,C=42,F=113,A=1,T=2,P=3,O=4;function j(e,t){return e.msg=u[t],t}function B(e){return(e<<1)-(4e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function I(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,R(e.strm)}function M(e,t){e.pending_buf[e.pending++]=t}function D(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function N(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-E?e.strstart-(e.w_size-E):0,c=e.window,l=e.w_mask,f=e.prev,d=e.strstart+S,p=c[o+a-1],h=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===h&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&ou&&0!=--i);return a<=e.lookahead?a:e.lookahead}function z(e){var t,n,r,o,u,c,l,f,d,p,h=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-E)){for(i.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;r=e.head[--t],e.head[t]=h<=r?r-h:0,--n;);for(t=n=h;r=e.prev[--t],e.prev[t]=h<=r?r-h:0,--n;);o+=h}if(0===e.strm.avail_in)break;if(c=e.strm,l=e.window,f=e.strstart+e.lookahead,p=void 0,(d=o)<(p=c.avail_in)&&(p=d),n=0===p?0:(c.avail_in-=p,i.arraySet(l,c.input,c.next_in,p,f),1===c.state.wrap?c.adler=a(c.adler,l,p,f):2===c.state.wrap&&(c.adler=s(c.adler,l,p,f)),c.next_in+=p,c.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=_)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<=_&&(e.ins_h=(e.ins_h<=_)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-_),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=_){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=_&&(e.ins_h=(e.ins_h<=_&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-_,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-_),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),0===e.lookahead&&t===c)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,I(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-E&&(I(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(I(e,!0),0===e.strm.avail_out?P:O):(e.strstart>e.block_start&&(I(e,!1),e.strm.avail_out),A)})),new H(4,4,8,4,L),new H(4,5,16,8,L),new H(4,6,32,32,L),new H(4,4,16,16,U),new H(8,16,32,32,U),new H(8,16,128,128,U),new H(8,32,128,256,U),new H(32,128,258,1024,U),new H(32,258,258,4096,U)],n.deflateInit=function(e,t){return q(e,t,m,15,8,0)},n.deflateInit2=q,n.deflateReset=W,n.deflateResetKeep=K,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,f):d},n.deflate=function(e,t){var n,i,a,u;if(!e||!e.state||5>8&255),M(i,i.gzhead.time>>16&255),M(i,i.gzhead.time>>24&255),M(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),M(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(M(i,255&i.gzhead.extra.length),M(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(M(i,0),M(i,0),M(i,0),M(i,0),M(i,0),M(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),M(i,3),i.status=F);else{var p=m+(i.w_bits-8<<4)<<8;p|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(p|=32),p+=31-p%31,i.status=F,D(i,p),0!==i.strstart&&(D(i,e.adler>>>16),D(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),R(e),a=i.pending,i.pending!==i.pending_buf_size));)M(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),R(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),R(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&R(e),i.pending+2<=i.pending_buf_size&&(M(i,255&e.adler),M(i,e.adler>>8&255),e.adler=0,i.status=F)):i.status=F),0!==i.pending){if(R(e),0===e.avail_out)return i.last_flush=-1,f}else if(0===e.avail_in&&B(t)<=B(n)&&t!==l)return j(e,-5);if(666===i.status&&0!==e.avail_in)return j(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){var h=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(z(e),0===e.lookahead)){if(t===c)return A;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(I(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(I(e,!0),0===e.strm.avail_out?P:O):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?A:T}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=S){if(z(e),e.lookahead<=S&&t===c)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=_&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=_?(n=o._tr_tally(e,1,e.match_length-_),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(I(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(I(e,!0),0===e.strm.avail_out?P:O):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?A:T}(i,t):r[i.level].func(i,t);if(h!==P&&h!==O||(i.status=666),h===A||h===P)return 0===e.avail_out&&(i.last_flush=-1),f;if(h===T&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(Z(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),R(e),0===e.avail_out))return i.last_flush=-1,f}return t!==l?f:i.wrap<=0?1:(2===i.wrap?(M(i,255&e.adler),M(i,e.adler>>8&255),M(i,e.adler>>16&255),M(i,e.adler>>24&255),M(i,255&e.total_in),M(i,e.total_in>>8&255),M(i,e.total_in>>16&255),M(i,e.total_in>>24&255)):(D(i,e.adler>>>16),D(i,65535&e.adler)),R(e),0=n.w_size&&(0===s&&(Z(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,h-n.w_size,n.w_size,0),t=p,h=n.w_size),u=e.avail_in,c=e.next_in,l=e.input,e.avail_in=h,e.next_in=0,e.input=t,z(n);n.lookahead>=_;){for(r=n.strstart,o=n.lookahead-(_-1);n.ins_h=(n.ins_h<>>=w=g>>>24,h-=w,0===(w=g>>>16&255))C[o++]=65535&g;else{if(!(16&w)){if(0==(64&w)){g=v[(65535&g)+(p&(1<>>=w,h-=w),h<15&&(p+=E[r++]<>>=w=g>>>24,h-=w,!(16&(w=g>>>16&255))){if(0==(64&w)){g=m[(65535&g)+(p&(1<>>=w,h-=w,(w=o-a)>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(h),t.sane=1,t.back=-1,l):f}function b(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,y(e)):f}function g(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,z,2,0),x=w=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",n.mode=30;break}if(x-=4,R=8+(15&(w>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(z[0]=255&w,z[1]=w>>>8&255,n.check=o(n.check,z,2,0)),x=w=0,n.mode=3;case 3:for(;x<32;){if(0===b)break e;b--,w+=p[m++]<>>8&255,z[2]=w>>>16&255,z[3]=w>>>24&255,n.check=o(n.check,z,4,0)),x=w=0,n.mode=4;case 4:for(;x<16;){if(0===b)break e;b--,w+=p[m++]<>8),512&n.flags&&(z[0]=255&w,z[1]=w>>>8&255,n.check=o(n.check,z,2,0)),x=w=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===b)break e;b--,w+=p[m++]<>>8&255,n.check=o(n.check,z,2,0)),x=w=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(b<(C=n.length)&&(C=b),C&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,p,m,C,R)),512&n.flags&&(n.check=o(n.check,p,C,m)),b-=C,m+=C,n.length-=C),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===b)break e;for(C=0;R=p[m+C++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R)),R&&C>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===b)break e;b--,w+=p[m++]<>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===b)break e;b--,w+=p[m++]<>>=1)){case 0:n.mode=14;break;case 1:if(S(n),n.mode=20,6!==t)break;w>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}w>>>=2,x-=2;break;case 14:for(w>>>=7&x,x-=7&x;x<32;){if(0===b)break e;b--,w+=p[m++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&w,x=w=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(C=n.length){if(b>>=5,x-=5,n.ndist=1+(31&w),w>>>=5,x-=5,n.ncode=4+(15&w),w>>>=4,x-=4,286>>=3,x-=3}for(;n.have<19;)n.lens[L[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,M={bits:n.lenbits},I=s(0,n.lens,0,19,n.lencode,0,n.work,M),n.lenbits=M.bits,I){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,O=65535&N,!((T=N>>>24)<=x);){if(0===b)break e;b--,w+=p[m++]<>>=T,x-=T,n.lens[n.have++]=O;else{if(16===O){for(D=T+2;x>>=T,x-=T,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}R=n.lens[n.have-1],C=3+(3&w),w>>>=2,x-=2}else if(17===O){for(D=T+3;x>>=T)),w>>>=3,x-=3}else{for(D=T+7;x>>=T)),w>>>=7,x-=7}if(n.have+C>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;C--;)n.lens[n.have++]=R}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,M={bits:n.lenbits},I=s(u,n.lens,0,n.nlen,n.lencode,0,n.work,M),n.lenbits=M.bits,I){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,M={bits:n.distbits},I=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,M),n.distbits=M.bits,I){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=b&&258<=g){e.next_out=y,e.avail_out=g,e.next_in=m,e.avail_in=b,n.hold=w,n.bits=x,a(e,_),y=e.next_out,h=e.output,g=e.avail_out,m=e.next_in,p=e.input,b=e.avail_in,w=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;P=(N=n.lencode[w&(1<>>16&255,O=65535&N,!((T=N>>>24)<=x);){if(0===b)break e;b--,w+=p[m++]<>j)])>>>16&255,O=65535&N,!(j+(T=N>>>24)<=x);){if(0===b)break e;b--,w+=p[m++]<>>=j,x-=j,n.back+=j}if(w>>>=T,x-=T,n.back+=T,n.length=O,0===P){n.mode=26;break}if(32&P){n.back=-1,n.mode=12;break}if(64&P){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&P,n.mode=22;case 22:if(n.extra){for(D=n.extra;x>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;P=(N=n.distcode[w&(1<>>16&255,O=65535&N,!((T=N>>>24)<=x);){if(0===b)break e;b--,w+=p[m++]<>j)])>>>16&255,O=65535&N,!(j+(T=N>>>24)<=x);){if(0===b)break e;b--,w+=p[m++]<>>=j,x-=j,n.back+=j}if(w>>>=T,x-=T,n.back+=T,64&P){e.msg="invalid distance code",n.mode=30;break}n.offset=O,n.extra=15&P,n.mode=24;case 24:if(n.extra){for(D=n.extra;x>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===g)break e;if(C=_-g,n.offset>C){if((C=n.offset-C)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}F=C>n.wnext?(C-=n.wnext,n.wsize-C):n.wnext-C,C>n.length&&(C=n.length),A=n.window}else A=h,F=y-n.offset,C=n.length;for(gb?(w=M[D+f[S]],B[Z+f[S]]):(w=96,0),p=1<<_-T,E=h=1<>T)+(h-=p)]=g<<24|w<<16|x|0,0!==h;);for(p=1<<_-1;j&p;)p>>=1;if(0!==p?(j&=p-1,j+=p):j=0,S++,0==--R[_]){if(_===C)break;_=t[n+f[S]]}if(F<_&&(j&m)!==v){for(0===T&&(T=F),y+=E,P=1<<(A=_-T);A+T>>7)]}function M(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function D(e,t,n){e.bi_valid>v-n?(e.bi_buf|=t<>v-e.bi_valid,e.bi_valid+=n-v):(e.bi_buf|=t<>>=1,n<<=1,0<--t;);return n>>>1}function L(e,t,n){var r,i,o=new Array(h+1),a=0;for(r=1;r<=h;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=z(o[s]++,s))}}function U(e){var t;for(t=0;t>1;1<=n;n--)K(e,o,n);for(i=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],K(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,K(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,u=t.dyn_tree,c=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,v=t.stat_desc.extra_base,m=t.stat_desc.max_length,y=0;for(o=0;o<=h;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n>=7;r>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==t?J(e,t,n,r):4===e.strategy||s===a?(D(e,2+(r?1:0),3),W(e,E,C)):(D(e,4+(r?1:0),3),function(e,t,n,r){var i;for(D(e,t-257,5),D(e,n-1,5),D(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(A[n]+c+1)]++,e.dyn_dtree[2*I(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){D(e,2,3),N(e,y,E),function(e){16===e.bi_valid?(M(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,r,i,o,a=1,s={},u=!1,c=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){i.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(d,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r255)return!1;return!0}function a(e,t){return(65535&e)*t+(((e>>>16)*t&65535)<<16)}function s(e,t){return e<>>32-t}function u(e){return e=a(e^=e>>>16,2246822507),e=a(e^=e>>>13,3266489909),e^=e>>>16}function c(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function l(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function f(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function d(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=p(e=l(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=p(e=l(e,[3301882366,444984403]),[0,e[0]>>>1])}i.x86.hash32=function(e,t){if(i.inputValidation&&!o(e))return r;t=t||0;for(var n=e.length%4,c=e.length-n,l=t,f=0,d=3432918353,p=461845907,h=0;h>>0},i.x86.hash128=function(e,t){if(i.inputValidation&&!o(e))return r;t=t||0;for(var n=e.length%16,c=e.length-n,l=t,f=t,d=t,p=t,h=0,v=0,m=0,y=0,b=597399067,g=2869860233,w=951274213,x=2716044179,k=0;k>>0).toString(16)).slice(-8)+("00000000"+(f>>>0).toString(16)).slice(-8)+("00000000"+(d>>>0).toString(16)).slice(-8)+("00000000"+(p>>>0).toString(16)).slice(-8)},i.x64.hash128=function(e,t){if(i.inputValidation&&!o(e))return r;t=t||0;for(var n=e.length%16,a=e.length-n,s=[0,t],u=[0,t],v=[0,0],m=[0,0],y=[2277735313,289559509],b=[1291169091,658871167],g=0;g>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)},e.exports&&(t=e.exports=i),t.murmurHash3=i}()},6755:function(e,t,n){"use strict";e.exports=u;var r,i=n(8282),o=i.LongBits,a=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c="undefined"!==typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},l=function(){return i.Buffer?function(e){return(u.create=function(e){return i.Buffer.isBuffer(e)?new r(e):c(e)})(e)}:c};function f(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new o(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}u.create=l(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return e}}(),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return d(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|d(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},u.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},u.prototype.skip=function(e){if("number"===typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!==(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){r=e,u.create=l(),r._configure();var t=i.Long?"toLong":"toNumber";i.merge(u.prototype,{int64:function(){return f.call(this)[t](!1)},uint64:function(){return f.call(this)[t](!0)},sint64:function(){return f.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},2690:function(e,t,n){"use strict";e.exports=o;var r=n(6755);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(8282);function o(e){r.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},6803:function(e,t,n){"use strict";e.exports=i;var r=n(8282);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new i(n,r)},i.from=function(e){if("number"===typeof e)return i.fromNumber(e);if(r.isString(e)){if(!r.Long)return i.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?o:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},8282:function(e,t,n){"use strict";var r=t;function i(e,t,n){for(var r=Object.keys(t),i=0;i0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(t){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"===typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"===typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!==typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=i,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=o,r.ProtocolError=o("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function m(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}f.create=d(),f.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(f.alloc=i.pool(f.alloc,i.Array.prototype.subarray)),f.prototype._push=function(e,t,n){return this.tail=this.tail.next=new u(e,t,n),this.len+=t,this},h.prototype=Object.create(u.prototype),h.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(v,10,o.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=o.from(e);return this._push(v,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(v,t.length(),t)},f.prototype.bool=function(e){return this._push(p,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var y=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(p,1,0);if(i.isString(e)){var n=f.alloc(t=a.length(e));a.decode(e,n,0),e=n}return this.uint32(t)._push(y,t,e)},f.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(p,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},f._configure=function(e){r=e,f.create=d(),r._configure()}},8652:function(e,t,n){"use strict";e.exports=o;var r=n(2305);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(8282);function o(){r.call(this)}function a(e,t,n){e.length<40?i.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},o._configure()},1571:function(e,t,n){"use strict";var r=n(4519),i=n(8514);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n